Sync with binutils: GCC: Pass --plugin to AR and RANLIB
[platform/upstream/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GDC_FOR_TARGET
617 GOC_FOR_TARGET
618 GFORTRAN_FOR_TARGET
619 GCC_FOR_TARGET
620 CXX_FOR_TARGET
621 CC_FOR_TARGET
622 RANLIB_PLUGIN_OPTION
623 AR_PLUGIN_OPTION
624 GDCFLAGS
625 READELF
626 OTOOL
627 OBJDUMP
628 OBJCOPY
629 WINDMC
630 WINDRES
631 STRIP
632 RANLIB
633 NM
634 LIPO
635 LD
636 DSYMUTIL
637 DLLTOOL
638 AS
639 AR
640 RUNTEST
641 EXPECT
642 MAKEINFO
643 FLEX
644 LEX
645 M4
646 BISON
647 YACC
648 WINDRES_FOR_BUILD
649 WINDMC_FOR_BUILD
650 RANLIB_FOR_BUILD
651 NM_FOR_BUILD
652 LD_FOR_BUILD
653 LDFLAGS_FOR_BUILD
654 GDC_FOR_BUILD
655 GOC_FOR_BUILD
656 GFORTRAN_FOR_BUILD
657 DSYMUTIL_FOR_BUILD
658 DLLTOOL_FOR_BUILD
659 CXX_FOR_BUILD
660 CXXFLAGS_FOR_BUILD
661 CPPFLAGS_FOR_BUILD
662 CPP_FOR_BUILD
663 CFLAGS_FOR_BUILD
664 CC_FOR_BUILD
665 AS_FOR_BUILD
666 AR_FOR_BUILD
667 target_configdirs
668 configdirs
669 build_configdirs
670 INSTALL_GDB_TK
671 GDB_TK
672 CONFIGURE_GDB_TK
673 build_tooldir
674 tooldir
675 GCC_SHLIB_SUBDIR
676 RPATH_ENVVAR
677 target_configargs
678 host_configargs
679 build_configargs
680 BUILD_CONFIG
681 LDFLAGS_FOR_TARGET
682 CXXFLAGS_FOR_TARGET
683 CFLAGS_FOR_TARGET
684 DEBUG_PREFIX_CFLAGS_FOR_TARGET
685 SYSROOT_CFLAGS_FOR_TARGET
686 get_gcc_base_ver
687 extra_host_zlib_configure_flags
688 extra_host_libiberty_configure_flags
689 stage1_languages
690 host_shared
691 extra_linker_plugin_flags
692 extra_linker_plugin_configure_flags
693 islinc
694 isllibs
695 poststage1_ldflags
696 poststage1_libs
697 stage1_ldflags
698 stage1_libs
699 extra_isl_gmp_configure_flags
700 extra_mpc_mpfr_configure_flags
701 extra_mpc_gmp_configure_flags
702 extra_mpfr_configure_flags
703 gmpinc
704 gmplibs
705 HAVE_CXX11_FOR_BUILD
706 HAVE_CXX11
707 do_compare
708 GDC
709 GNATMAKE
710 GNATBIND
711 ac_ct_CXX
712 CXXFLAGS
713 CXX
714 OBJEXT
715 EXEEXT
716 ac_ct_CC
717 CPPFLAGS
718 LDFLAGS
719 CFLAGS
720 CC
721 extra_liboffloadmic_configure_flags
722 target_subdir
723 host_subdir
724 build_subdir
725 build_libsubdir
726 AWK
727 SED
728 LN_S
729 LN
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 target_os
734 target_vendor
735 target_cpu
736 target
737 host_os
738 host_vendor
739 host_cpu
740 host
741 target_noncanonical
742 host_noncanonical
743 build_noncanonical
744 build_os
745 build_vendor
746 build_cpu
747 build
748 TOPLEVEL_CONFIGURE_ARGUMENTS
749 target_alias
750 host_alias
751 build_alias
752 LIBS
753 ECHO_T
754 ECHO_N
755 ECHO_C
756 DEFS
757 mandir
758 localedir
759 libdir
760 psdir
761 pdfdir
762 dvidir
763 htmldir
764 infodir
765 docdir
766 oldincludedir
767 includedir
768 localstatedir
769 sharedstatedir
770 sysconfdir
771 datadir
772 datarootdir
773 libexecdir
774 sbindir
775 bindir
776 program_transform_name
777 prefix
778 exec_prefix
779 PACKAGE_URL
780 PACKAGE_BUGREPORT
781 PACKAGE_STRING
782 PACKAGE_VERSION
783 PACKAGE_TARNAME
784 PACKAGE_NAME
785 PATH_SEPARATOR
786 SHELL'
787 ac_subst_files='serialization_dependencies
788 host_makefile_frag
789 target_makefile_frag
790 alphaieee_frag
791 ospace_frag'
792 ac_user_opts='
793 enable_option_checking
794 with_build_libsubdir
795 with_system_zlib
796 enable_as_accelerator_for
797 enable_offload_targets
798 enable_offload_defaulted
799 enable_gold
800 enable_ld
801 enable_compressed_debug_sections
802 enable_libquadmath
803 enable_libquadmath_support
804 enable_libada
805 enable_libssp
806 enable_libstdcxx
807 enable_liboffloadmic
808 enable_bootstrap
809 with_mpc
810 with_mpc_include
811 with_mpc_lib
812 with_mpfr_dir
813 with_mpfr
814 with_mpfr_include
815 with_mpfr_lib
816 with_gmp_dir
817 with_gmp
818 with_gmp_include
819 with_gmp_lib
820 with_stage1_libs
821 with_static_standard_libraries
822 with_stage1_ldflags
823 with_boot_libs
824 with_boot_ldflags
825 with_isl
826 with_isl_include
827 with_isl_lib
828 enable_isl_version_check
829 enable_lto
830 enable_linker_plugin_configure_flags
831 enable_linker_plugin_flags
832 enable_host_shared
833 enable_stage1_languages
834 enable_objc_gc
835 with_target_bdw_gc
836 with_target_bdw_gc_include
837 with_target_bdw_gc_lib
838 with_gcc_major_version_only
839 with_build_sysroot
840 with_debug_prefix_map
841 with_build_config
842 enable_vtable_verify
843 enable_serial_configure
844 with_build_time_tools
845 enable_maintainer_mode
846 enable_stage1_checking
847 enable_werror
848 '
849       ac_precious_vars='build_alias
850 host_alias
851 target_alias
852 CC
853 CFLAGS
854 LDFLAGS
855 LIBS
856 CPPFLAGS
857 CXX
858 CXXFLAGS
859 CCC
860 build_configargs
861 host_configargs
862 target_configargs
863 AR
864 AS
865 DLLTOOL
866 DSYMUTIL
867 LD
868 LIPO
869 NM
870 RANLIB
871 STRIP
872 WINDRES
873 WINDMC
874 OBJCOPY
875 OBJDUMP
876 OTOOL
877 READELF
878 CC_FOR_TARGET
879 CXX_FOR_TARGET
880 GCC_FOR_TARGET
881 GFORTRAN_FOR_TARGET
882 GOC_FOR_TARGET
883 GDC_FOR_TARGET
884 AR_FOR_TARGET
885 AS_FOR_TARGET
886 DLLTOOL_FOR_TARGET
887 DSYMUTIL_FOR_TARGET
888 LD_FOR_TARGET
889 LIPO_FOR_TARGET
890 NM_FOR_TARGET
891 OBJCOPY_FOR_TARGET
892 OBJDUMP_FOR_TARGET
893 OTOOL_FOR_TARGET
894 RANLIB_FOR_TARGET
895 READELF_FOR_TARGET
896 STRIP_FOR_TARGET
897 WINDRES_FOR_TARGET
898 WINDMC_FOR_TARGET'
899
900
901 # Initialize some variables set by options.
902 ac_init_help=
903 ac_init_version=false
904 ac_unrecognized_opts=
905 ac_unrecognized_sep=
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
908 cache_file=/dev/null
909 exec_prefix=NONE
910 no_create=
911 no_recursion=
912 prefix=NONE
913 program_prefix=NONE
914 program_suffix=NONE
915 program_transform_name=s,x,x,
916 silent=
917 site=
918 srcdir=
919 verbose=
920 x_includes=NONE
921 x_libraries=NONE
922
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE}'
940 infodir='${datarootdir}/info'
941 htmldir='${docdir}'
942 dvidir='${docdir}'
943 pdfdir='${docdir}'
944 psdir='${docdir}'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
948
949 ac_prev=
950 ac_dashdash=
951 for ac_option
952 do
953   # If the previous option needs an argument, assign it.
954   if test -n "$ac_prev"; then
955     eval $ac_prev=\$ac_option
956     ac_prev=
957     continue
958   fi
959
960   case $ac_option in
961   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962   *=)   ac_optarg= ;;
963   *)    ac_optarg=yes ;;
964   esac
965
966   # Accept the important Cygnus configure options, so we can diagnose typos.
967
968   case $ac_dashdash$ac_option in
969   --)
970     ac_dashdash=yes ;;
971
972   -bindir | --bindir | --bindi | --bind | --bin | --bi)
973     ac_prev=bindir ;;
974   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975     bindir=$ac_optarg ;;
976
977   -build | --build | --buil | --bui | --bu)
978     ac_prev=build_alias ;;
979   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980     build_alias=$ac_optarg ;;
981
982   -cache-file | --cache-file | --cache-fil | --cache-fi \
983   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984     ac_prev=cache_file ;;
985   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987     cache_file=$ac_optarg ;;
988
989   --config-cache | -C)
990     cache_file=config.cache ;;
991
992   -datadir | --datadir | --datadi | --datad)
993     ac_prev=datadir ;;
994   -datadir=* | --datadir=* | --datadi=* | --datad=*)
995     datadir=$ac_optarg ;;
996
997   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998   | --dataroo | --dataro | --datar)
999     ac_prev=datarootdir ;;
1000   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002     datarootdir=$ac_optarg ;;
1003
1004   -disable-* | --disable-*)
1005     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006     # Reject names that are not valid shell variable names.
1007     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008       as_fn_error $? "invalid feature name: $ac_useropt"
1009     ac_useropt_orig=$ac_useropt
1010     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011     case $ac_user_opts in
1012       *"
1013 "enable_$ac_useropt"
1014 "*) ;;
1015       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016          ac_unrecognized_sep=', ';;
1017     esac
1018     eval enable_$ac_useropt=no ;;
1019
1020   -docdir | --docdir | --docdi | --doc | --do)
1021     ac_prev=docdir ;;
1022   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023     docdir=$ac_optarg ;;
1024
1025   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026     ac_prev=dvidir ;;
1027   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028     dvidir=$ac_optarg ;;
1029
1030   -enable-* | --enable-*)
1031     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032     # Reject names that are not valid shell variable names.
1033     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034       as_fn_error $? "invalid feature name: $ac_useropt"
1035     ac_useropt_orig=$ac_useropt
1036     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037     case $ac_user_opts in
1038       *"
1039 "enable_$ac_useropt"
1040 "*) ;;
1041       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042          ac_unrecognized_sep=', ';;
1043     esac
1044     eval enable_$ac_useropt=\$ac_optarg ;;
1045
1046   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048   | --exec | --exe | --ex)
1049     ac_prev=exec_prefix ;;
1050   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052   | --exec=* | --exe=* | --ex=*)
1053     exec_prefix=$ac_optarg ;;
1054
1055   -gas | --gas | --ga | --g)
1056     # Obsolete; use --with-gas.
1057     with_gas=yes ;;
1058
1059   -help | --help | --hel | --he | -h)
1060     ac_init_help=long ;;
1061   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062     ac_init_help=recursive ;;
1063   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064     ac_init_help=short ;;
1065
1066   -host | --host | --hos | --ho)
1067     ac_prev=host_alias ;;
1068   -host=* | --host=* | --hos=* | --ho=*)
1069     host_alias=$ac_optarg ;;
1070
1071   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072     ac_prev=htmldir ;;
1073   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074   | --ht=*)
1075     htmldir=$ac_optarg ;;
1076
1077   -includedir | --includedir | --includedi | --included | --include \
1078   | --includ | --inclu | --incl | --inc)
1079     ac_prev=includedir ;;
1080   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081   | --includ=* | --inclu=* | --incl=* | --inc=*)
1082     includedir=$ac_optarg ;;
1083
1084   -infodir | --infodir | --infodi | --infod | --info | --inf)
1085     ac_prev=infodir ;;
1086   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087     infodir=$ac_optarg ;;
1088
1089   -libdir | --libdir | --libdi | --libd)
1090     ac_prev=libdir ;;
1091   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092     libdir=$ac_optarg ;;
1093
1094   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095   | --libexe | --libex | --libe)
1096     ac_prev=libexecdir ;;
1097   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098   | --libexe=* | --libex=* | --libe=*)
1099     libexecdir=$ac_optarg ;;
1100
1101   -localedir | --localedir | --localedi | --localed | --locale)
1102     ac_prev=localedir ;;
1103   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104     localedir=$ac_optarg ;;
1105
1106   -localstatedir | --localstatedir | --localstatedi | --localstated \
1107   | --localstate | --localstat | --localsta | --localst | --locals)
1108     ac_prev=localstatedir ;;
1109   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111     localstatedir=$ac_optarg ;;
1112
1113   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114     ac_prev=mandir ;;
1115   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116     mandir=$ac_optarg ;;
1117
1118   -nfp | --nfp | --nf)
1119     # Obsolete; use --without-fp.
1120     with_fp=no ;;
1121
1122   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123   | --no-cr | --no-c | -n)
1124     no_create=yes ;;
1125
1126   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128     no_recursion=yes ;;
1129
1130   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132   | --oldin | --oldi | --old | --ol | --o)
1133     ac_prev=oldincludedir ;;
1134   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137     oldincludedir=$ac_optarg ;;
1138
1139   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140     ac_prev=prefix ;;
1141   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142     prefix=$ac_optarg ;;
1143
1144   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145   | --program-pre | --program-pr | --program-p)
1146     ac_prev=program_prefix ;;
1147   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149     program_prefix=$ac_optarg ;;
1150
1151   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152   | --program-suf | --program-su | --program-s)
1153     ac_prev=program_suffix ;;
1154   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156     program_suffix=$ac_optarg ;;
1157
1158   -program-transform-name | --program-transform-name \
1159   | --program-transform-nam | --program-transform-na \
1160   | --program-transform-n | --program-transform- \
1161   | --program-transform | --program-transfor \
1162   | --program-transfo | --program-transf \
1163   | --program-trans | --program-tran \
1164   | --progr-tra | --program-tr | --program-t)
1165     ac_prev=program_transform_name ;;
1166   -program-transform-name=* | --program-transform-name=* \
1167   | --program-transform-nam=* | --program-transform-na=* \
1168   | --program-transform-n=* | --program-transform-=* \
1169   | --program-transform=* | --program-transfor=* \
1170   | --program-transfo=* | --program-transf=* \
1171   | --program-trans=* | --program-tran=* \
1172   | --progr-tra=* | --program-tr=* | --program-t=*)
1173     program_transform_name=$ac_optarg ;;
1174
1175   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176     ac_prev=pdfdir ;;
1177   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178     pdfdir=$ac_optarg ;;
1179
1180   -psdir | --psdir | --psdi | --psd | --ps)
1181     ac_prev=psdir ;;
1182   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183     psdir=$ac_optarg ;;
1184
1185   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186   | -silent | --silent | --silen | --sile | --sil)
1187     silent=yes ;;
1188
1189   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190     ac_prev=sbindir ;;
1191   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192   | --sbi=* | --sb=*)
1193     sbindir=$ac_optarg ;;
1194
1195   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197   | --sharedst | --shareds | --shared | --share | --shar \
1198   | --sha | --sh)
1199     ac_prev=sharedstatedir ;;
1200   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203   | --sha=* | --sh=*)
1204     sharedstatedir=$ac_optarg ;;
1205
1206   -site | --site | --sit)
1207     ac_prev=site ;;
1208   -site=* | --site=* | --sit=*)
1209     site=$ac_optarg ;;
1210
1211   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212     ac_prev=srcdir ;;
1213   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214     srcdir=$ac_optarg ;;
1215
1216   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217   | --syscon | --sysco | --sysc | --sys | --sy)
1218     ac_prev=sysconfdir ;;
1219   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221     sysconfdir=$ac_optarg ;;
1222
1223   -target | --target | --targe | --targ | --tar | --ta | --t)
1224     ac_prev=target_alias ;;
1225   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226     target_alias=$ac_optarg ;;
1227
1228   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229     verbose=yes ;;
1230
1231   -version | --version | --versio | --versi | --vers | -V)
1232     ac_init_version=: ;;
1233
1234   -with-* | --with-*)
1235     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236     # Reject names that are not valid shell variable names.
1237     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238       as_fn_error $? "invalid package name: $ac_useropt"
1239     ac_useropt_orig=$ac_useropt
1240     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241     case $ac_user_opts in
1242       *"
1243 "with_$ac_useropt"
1244 "*) ;;
1245       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246          ac_unrecognized_sep=', ';;
1247     esac
1248     eval with_$ac_useropt=\$ac_optarg ;;
1249
1250   -without-* | --without-*)
1251     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252     # Reject names that are not valid shell variable names.
1253     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254       as_fn_error $? "invalid package name: $ac_useropt"
1255     ac_useropt_orig=$ac_useropt
1256     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257     case $ac_user_opts in
1258       *"
1259 "with_$ac_useropt"
1260 "*) ;;
1261       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262          ac_unrecognized_sep=', ';;
1263     esac
1264     eval with_$ac_useropt=no ;;
1265
1266   --x)
1267     # Obsolete; use --with-x.
1268     with_x=yes ;;
1269
1270   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271   | --x-incl | --x-inc | --x-in | --x-i)
1272     ac_prev=x_includes ;;
1273   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275     x_includes=$ac_optarg ;;
1276
1277   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279     ac_prev=x_libraries ;;
1280   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282     x_libraries=$ac_optarg ;;
1283
1284   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285 Try \`$0 --help' for more information"
1286     ;;
1287
1288   *=*)
1289     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290     # Reject names that are not valid shell variable names.
1291     case $ac_envvar in #(
1292       '' | [0-9]* | *[!_$as_cr_alnum]* )
1293       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1294     esac
1295     eval $ac_envvar=\$ac_optarg
1296     export $ac_envvar ;;
1297
1298   *)
1299     # FIXME: should be removed in autoconf 3.0.
1300     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1304     ;;
1305
1306   esac
1307 done
1308
1309 if test -n "$ac_prev"; then
1310   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311   as_fn_error $? "missing argument to $ac_option"
1312 fi
1313
1314 if test -n "$ac_unrecognized_opts"; then
1315   case $enable_option_checking in
1316     no) ;;
1317     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319   esac
1320 fi
1321
1322 # Check all directory arguments for consistency.
1323 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324                 datadir sysconfdir sharedstatedir localstatedir includedir \
1325                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326                 libdir localedir mandir
1327 do
1328   eval ac_val=\$$ac_var
1329   # Remove trailing slashes.
1330   case $ac_val in
1331     */ )
1332       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333       eval $ac_var=\$ac_val;;
1334   esac
1335   # Be sure to have absolute directory names.
1336   case $ac_val in
1337     [\\/$]* | ?:[\\/]* )  continue;;
1338     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339   esac
1340   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1341 done
1342
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1346 build=$build_alias
1347 host=$host_alias
1348 target=$target_alias
1349
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352   if test "x$build_alias" = x; then
1353     cross_compiling=maybe
1354   elif test "x$build_alias" != "x$host_alias"; then
1355     cross_compiling=yes
1356   fi
1357 fi
1358
1359 ac_tool_prefix=
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362 test "$silent" = yes && exec 6>/dev/null
1363
1364
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368   as_fn_error $? "working directory cannot be determined"
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370   as_fn_error $? "pwd does not report name of working directory"
1371
1372
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375   ac_srcdir_defaulted=yes
1376   # Try the directory containing this script, then the parent directory.
1377   ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379          X"$as_myself" : 'X\(//\)[^/]' \| \
1380          X"$as_myself" : 'X\(//\)$' \| \
1381          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 $as_echo X"$as_myself" |
1383     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384             s//\1/
1385             q
1386           }
1387           /^X\(\/\/\)[^/].*/{
1388             s//\1/
1389             q
1390           }
1391           /^X\(\/\/\)$/{
1392             s//\1/
1393             q
1394           }
1395           /^X\(\/\).*/{
1396             s//\1/
1397             q
1398           }
1399           s/.*/./; q'`
1400   srcdir=$ac_confdir
1401   if test ! -r "$srcdir/$ac_unique_file"; then
1402     srcdir=..
1403   fi
1404 else
1405   ac_srcdir_defaulted=no
1406 fi
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1410 fi
1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 ac_abs_confdir=`(
1413         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414         pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417   srcdir=.
1418 fi
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 case $srcdir in
1426   *" "*)
1427     as_fn_error $? "path to source, $srcdir, contains spaces"
1428     ;;
1429 esac
1430 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1431
1432 for ac_var in $ac_precious_vars; do
1433   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434   eval ac_env_${ac_var}_value=\$${ac_var}
1435   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437 done
1438
1439 #
1440 # Report the --help message.
1441 #
1442 if test "$ac_init_help" = "long"; then
1443   # Omit some internal or obsolete options to make the list less imposing.
1444   # This message is too long to be a string in the A/UX 3.1 sh.
1445   cat <<_ACEOF
1446 \`configure' configures this package to adapt to many kinds of systems.
1447
1448 Usage: $0 [OPTION]... [VAR=VALUE]...
1449
1450 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451 VAR=VALUE.  See below for descriptions of some of the useful variables.
1452
1453 Defaults for the options are specified in brackets.
1454
1455 Configuration:
1456   -h, --help              display this help and exit
1457       --help=short        display options specific to this package
1458       --help=recursive    display the short help of all the included packages
1459   -V, --version           display version information and exit
1460   -q, --quiet, --silent   do not print \`checking ...' messages
1461       --cache-file=FILE   cache test results in FILE [disabled]
1462   -C, --config-cache      alias for \`--cache-file=config.cache'
1463   -n, --no-create         do not create output files
1464       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1465
1466 Installation directories:
1467   --prefix=PREFIX         install architecture-independent files in PREFIX
1468                           [$ac_default_prefix]
1469   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1470                           [PREFIX]
1471
1472 By default, \`make install' will install all the files in
1473 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1474 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475 for instance \`--prefix=\$HOME'.
1476
1477 For better control, use the options below.
1478
1479 Fine tuning of the installation directories:
1480   --bindir=DIR            user executables [EPREFIX/bin]
1481   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1482   --libexecdir=DIR        program executables [EPREFIX/libexec]
1483   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1484   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1485   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1486   --libdir=DIR            object code libraries [EPREFIX/lib]
1487   --includedir=DIR        C header files [PREFIX/include]
1488   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1489   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1490   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1491   --infodir=DIR           info documentation [DATAROOTDIR/info]
1492   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1493   --mandir=DIR            man documentation [DATAROOTDIR/man]
1494   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1495   --htmldir=DIR           html documentation [DOCDIR]
1496   --dvidir=DIR            dvi documentation [DOCDIR]
1497   --pdfdir=DIR            pdf documentation [DOCDIR]
1498   --psdir=DIR             ps documentation [DOCDIR]
1499 _ACEOF
1500
1501   cat <<\_ACEOF
1502
1503 Program names:
1504   --program-prefix=PREFIX            prepend PREFIX to installed program names
1505   --program-suffix=SUFFIX            append SUFFIX to installed program names
1506   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1507
1508 System types:
1509   --build=BUILD     configure for building on BUILD [guessed]
1510   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1511   --target=TARGET   configure for building compilers for TARGET [HOST]
1512 _ACEOF
1513 fi
1514
1515 if test -n "$ac_init_help"; then
1516
1517   cat <<\_ACEOF
1518
1519 Optional Features:
1520   --disable-option-checking  ignore unrecognized --enable/--with options
1521   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1522   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1523   --enable-as-accelerator-for=ARG
1524                           build as offload target compiler. Specify offload
1525                           host triple by ARG
1526   --enable-offload-targets=LIST
1527                           enable offloading to devices from comma-separated
1528                           LIST of TARGET[=DIR]. Use optional path to find
1529                           offload target compiler during the build
1530   --enable-offload-defaulted
1531                 If enabled, configured but not installed offload compilers and
1532                 libgomp plugins are silently ignored.  Useful for distribution
1533                 compilers where those are in separate optional packages.
1534
1535   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1536   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1537   --enable-compressed-debug-sections={all,gas,gold,ld,none}
1538                           Enable compressed debug sections for gas, gold or ld
1539                           by default
1540   --disable-libquadmath   do not build libquadmath directory
1541   --disable-libquadmath-support
1542                           disable libquadmath support for Fortran
1543   --enable-libada         build libada directory
1544   --enable-libssp         build libssp directory
1545   --disable-libstdcxx     do not build libstdc++-v3 directory
1546   --enable-liboffloadmic=ARG
1547                           build liboffloadmic [ARG={no,host,target}]
1548   --enable-bootstrap      enable bootstrapping [yes if native build]
1549   --disable-isl-version-check
1550                           disable check for isl version
1551   --enable-lto            enable link time optimization support
1552   --enable-linker-plugin-configure-flags=FLAGS
1553                           additional flags for configuring linker plugins
1554                           [none]
1555   --enable-linker-plugin-flags=FLAGS
1556                           additional flags for configuring and building linker
1557                           plugins [none]
1558   --enable-host-shared    build host code as shared libraries
1559   --enable-stage1-languages[=all]
1560                           choose additional languages to build during stage1.
1561                           Mostly useful for compiler development
1562   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1563                           Objective-C runtime
1564   --enable-vtable-verify  Enable vtable verification feature
1565   --enable-serial-[{host,target,build}-]configure
1566                           force sequential configuration of sub-packages for
1567                           the host, target or build machine, or all
1568                           sub-packages
1569   --enable-maintainer-mode
1570                           enable make rules and dependencies not useful (and
1571                           sometimes confusing) to the casual installer
1572   --enable-stage1-checking[=all]
1573                           choose additional checking for stage1 of the
1574                           compiler
1575   --enable-werror         enable -Werror in bootstrap stage2 and later
1576
1577 Optional Packages:
1578   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1579   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1580   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1581   --with-system-zlib      use installed libz
1582   --with-mpc=PATH         specify prefix directory for installed MPC package.
1583                           Equivalent to --with-mpc-include=PATH/include plus
1584                           --with-mpc-lib=PATH/lib
1585   --with-mpc-include=PATH specify directory for installed MPC include files
1586   --with-mpc-lib=PATH     specify directory for the installed MPC library
1587   --with-mpfr-dir=PATH    this option has been REMOVED
1588   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1589                           Equivalent to --with-mpfr-include=PATH/include plus
1590                           --with-mpfr-lib=PATH/lib
1591   --with-mpfr-include=PATH
1592                           specify directory for installed MPFR include files
1593   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1594   --with-gmp-dir=PATH     this option has been REMOVED
1595   --with-gmp=PATH         specify prefix directory for the installed GMP
1596                           package. Equivalent to
1597                           --with-gmp-include=PATH/include plus
1598                           --with-gmp-lib=PATH/lib
1599   --with-gmp-include=PATH specify directory for installed GMP include files
1600   --with-gmp-lib=PATH     specify directory for the installed GMP library
1601   --with-stage1-libs=LIBS libraries for stage1
1602   --with-static-standard-libraries
1603                           use -static-libstdc++ and -static-libgcc
1604                           (default=auto)
1605   --with-stage1-ldflags=FLAGS
1606                           linker flags for stage1
1607   --with-boot-libs=LIBS   libraries for stage2 and later
1608   --with-boot-ldflags=FLAGS
1609                           linker flags for stage2 and later
1610   --with-isl=PATH         Specify prefix directory for the installed isl
1611                           package. Equivalent to
1612                           --with-isl-include=PATH/include plus
1613                           --with-isl-lib=PATH/lib
1614   --with-isl-include=PATH Specify directory for installed isl include files
1615   --with-isl-lib=PATH     Specify the directory for the installed isl library
1616   --with-target-bdw-gc=PATHLIST
1617                           specify prefix directory for installed bdw-gc
1618                           package. Equivalent to
1619                           --with-target-bdw-gc-include=PATH/include plus
1620                           --with-target-bdw-gc-lib=PATH/lib
1621   --with-target-bdw-gc-include=PATHLIST
1622                           specify directories for installed bdw-gc include
1623                           files
1624   --with-target-bdw-gc-lib=PATHLIST
1625                           specify directories for installed bdw-gc library
1626   --with-gcc-major-version-only
1627                           use only GCC major number in filesystem paths
1628   --with-build-sysroot=SYSROOT
1629                           use sysroot as the system root during the build
1630   --with-debug-prefix-map='A=B C=D ...'
1631                           map A to B, C to D ... in debug information
1632   --with-build-config='NAME NAME2...'
1633                           use config/NAME.mk build configuration
1634   --with-build-time-tools=PATH
1635                           use given path to find target tools during the build
1636
1637 Some influential environment variables:
1638   CC          C compiler command
1639   CFLAGS      C compiler flags
1640   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1641               nonstandard directory <lib dir>
1642   LIBS        libraries to pass to the linker, e.g. -l<library>
1643   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1644               you have headers in a nonstandard directory <include dir>
1645   CXX         C++ compiler command
1646   CXXFLAGS    C++ compiler flags
1647   build_configargs
1648               additional configure arguments for build directories
1649   host_configargs
1650               additional configure arguments for host directories
1651   target_configargs
1652               additional configure arguments for target directories
1653   AR          AR for the host
1654   AS          AS for the host
1655   DLLTOOL     DLLTOOL for the host
1656   DSYMUTIL    DSYMUTIL for the host
1657   LD          LD for the host
1658   LIPO        LIPO for the host
1659   NM          NM for the host
1660   RANLIB      RANLIB for the host
1661   STRIP       STRIP for the host
1662   WINDRES     WINDRES for the host
1663   WINDMC      WINDMC for the host
1664   OBJCOPY     OBJCOPY for the host
1665   OBJDUMP     OBJDUMP for the host
1666   OTOOL       OTOOL for the host
1667   READELF     READELF for the host
1668   CC_FOR_TARGET
1669               CC for the target
1670   CXX_FOR_TARGET
1671               CXX for the target
1672   GCC_FOR_TARGET
1673               GCC for the target
1674   GFORTRAN_FOR_TARGET
1675               GFORTRAN for the target
1676   GOC_FOR_TARGET
1677               GOC for the target
1678   GDC_FOR_TARGET
1679               GDC for the target
1680   AR_FOR_TARGET
1681               AR for the target
1682   AS_FOR_TARGET
1683               AS for the target
1684   DLLTOOL_FOR_TARGET
1685               DLLTOOL for the target
1686   DSYMUTIL_FOR_TARGET
1687               DSYMUTIL for the target
1688   LD_FOR_TARGET
1689               LD for the target
1690   LIPO_FOR_TARGET
1691               LIPO for the target
1692   NM_FOR_TARGET
1693               NM for the target
1694   OBJCOPY_FOR_TARGET
1695               OBJCOPY for the target
1696   OBJDUMP_FOR_TARGET
1697               OBJDUMP for the target
1698   OTOOL_FOR_TARGET
1699               OTOOL for the target
1700   RANLIB_FOR_TARGET
1701               RANLIB for the target
1702   READELF_FOR_TARGET
1703               READELF for the target
1704   STRIP_FOR_TARGET
1705               STRIP for the target
1706   WINDRES_FOR_TARGET
1707               WINDRES for the target
1708   WINDMC_FOR_TARGET
1709               WINDMC for the target
1710
1711 Use these variables to override the choices made by `configure' or to help
1712 it to find libraries and programs with nonstandard names/locations.
1713
1714 Report bugs to the package provider.
1715 _ACEOF
1716 ac_status=$?
1717 fi
1718
1719 if test "$ac_init_help" = "recursive"; then
1720   # If there are subdirs, report their specific --help.
1721   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1722     test -d "$ac_dir" ||
1723       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1724       continue
1725     ac_builddir=.
1726
1727 case "$ac_dir" in
1728 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729 *)
1730   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1731   # A ".." for each directory in $ac_dir_suffix.
1732   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1733   case $ac_top_builddir_sub in
1734   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1736   esac ;;
1737 esac
1738 ac_abs_top_builddir=$ac_pwd
1739 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1740 # for backward compatibility:
1741 ac_top_builddir=$ac_top_build_prefix
1742
1743 case $srcdir in
1744   .)  # We are building in place.
1745     ac_srcdir=.
1746     ac_top_srcdir=$ac_top_builddir_sub
1747     ac_abs_top_srcdir=$ac_pwd ;;
1748   [\\/]* | ?:[\\/]* )  # Absolute name.
1749     ac_srcdir=$srcdir$ac_dir_suffix;
1750     ac_top_srcdir=$srcdir
1751     ac_abs_top_srcdir=$srcdir ;;
1752   *) # Relative name.
1753     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1754     ac_top_srcdir=$ac_top_build_prefix$srcdir
1755     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1756 esac
1757 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1758
1759     cd "$ac_dir" || { ac_status=$?; continue; }
1760     # Check for guested configure.
1761     if test -f "$ac_srcdir/configure.gnu"; then
1762       echo &&
1763       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1764     elif test -f "$ac_srcdir/configure"; then
1765       echo &&
1766       $SHELL "$ac_srcdir/configure" --help=recursive
1767     else
1768       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1769     fi || ac_status=$?
1770     cd "$ac_pwd" || { ac_status=$?; break; }
1771   done
1772 fi
1773
1774 test -n "$ac_init_help" && exit $ac_status
1775 if $ac_init_version; then
1776   cat <<\_ACEOF
1777 configure
1778 generated by GNU Autoconf 2.69
1779
1780 Copyright (C) 2012 Free Software Foundation, Inc.
1781 This configure script is free software; the Free Software Foundation
1782 gives unlimited permission to copy, distribute and modify it.
1783 _ACEOF
1784   exit
1785 fi
1786
1787 ## ------------------------ ##
1788 ## Autoconf initialization. ##
1789 ## ------------------------ ##
1790
1791 # ac_fn_c_try_compile LINENO
1792 # --------------------------
1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_compile ()
1795 {
1796   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797   rm -f conftest.$ac_objext
1798   if { { ac_try="$ac_compile"
1799 case "(($ac_try" in
1800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801   *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805   (eval "$ac_compile") 2>conftest.err
1806   ac_status=$?
1807   if test -s conftest.err; then
1808     grep -v '^ *+' conftest.err >conftest.er1
1809     cat conftest.er1 >&5
1810     mv -f conftest.er1 conftest.err
1811   fi
1812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813   test $ac_status = 0; } && {
1814          test -z "$ac_c_werror_flag" ||
1815          test ! -s conftest.err
1816        } && test -s conftest.$ac_objext; then :
1817   ac_retval=0
1818 else
1819   $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822         ac_retval=1
1823 fi
1824   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825   as_fn_set_status $ac_retval
1826
1827 } # ac_fn_c_try_compile
1828
1829 # ac_fn_cxx_try_compile LINENO
1830 # ----------------------------
1831 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_cxx_try_compile ()
1833 {
1834   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835   rm -f conftest.$ac_objext
1836   if { { ac_try="$ac_compile"
1837 case "(($ac_try" in
1838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839   *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843   (eval "$ac_compile") 2>conftest.err
1844   ac_status=$?
1845   if test -s conftest.err; then
1846     grep -v '^ *+' conftest.err >conftest.er1
1847     cat conftest.er1 >&5
1848     mv -f conftest.er1 conftest.err
1849   fi
1850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851   test $ac_status = 0; } && {
1852          test -z "$ac_cxx_werror_flag" ||
1853          test ! -s conftest.err
1854        } && test -s conftest.$ac_objext; then :
1855   ac_retval=0
1856 else
1857   $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1859
1860         ac_retval=1
1861 fi
1862   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863   as_fn_set_status $ac_retval
1864
1865 } # ac_fn_cxx_try_compile
1866
1867 # ac_fn_cxx_try_link LINENO
1868 # -------------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_cxx_try_link ()
1871 {
1872   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873   rm -f conftest.$ac_objext conftest$ac_exeext
1874   if { { ac_try="$ac_link"
1875 case "(($ac_try" in
1876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877   *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881   (eval "$ac_link") 2>conftest.err
1882   ac_status=$?
1883   if test -s conftest.err; then
1884     grep -v '^ *+' conftest.err >conftest.er1
1885     cat conftest.er1 >&5
1886     mv -f conftest.er1 conftest.err
1887   fi
1888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889   test $ac_status = 0; } && {
1890          test -z "$ac_cxx_werror_flag" ||
1891          test ! -s conftest.err
1892        } && test -s conftest$ac_exeext && {
1893          test "$cross_compiling" = yes ||
1894          test -x conftest$ac_exeext
1895        }; then :
1896   ac_retval=0
1897 else
1898   $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901         ac_retval=1
1902 fi
1903   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905   # interfere with the next link command; also delete a directory that is
1906   # left behind by Apple's compiler.  We do this before executing the actions.
1907   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909   as_fn_set_status $ac_retval
1910
1911 } # ac_fn_cxx_try_link
1912
1913 # ac_fn_c_try_link LINENO
1914 # -----------------------
1915 # Try to link conftest.$ac_ext, and return whether this succeeded.
1916 ac_fn_c_try_link ()
1917 {
1918   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919   rm -f conftest.$ac_objext conftest$ac_exeext
1920   if { { ac_try="$ac_link"
1921 case "(($ac_try" in
1922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923   *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927   (eval "$ac_link") 2>conftest.err
1928   ac_status=$?
1929   if test -s conftest.err; then
1930     grep -v '^ *+' conftest.err >conftest.er1
1931     cat conftest.er1 >&5
1932     mv -f conftest.er1 conftest.err
1933   fi
1934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935   test $ac_status = 0; } && {
1936          test -z "$ac_c_werror_flag" ||
1937          test ! -s conftest.err
1938        } && test -s conftest$ac_exeext && {
1939          test "$cross_compiling" = yes ||
1940          test -x conftest$ac_exeext
1941        }; then :
1942   ac_retval=0
1943 else
1944   $as_echo "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1946
1947         ac_retval=1
1948 fi
1949   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1950   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1951   # interfere with the next link command; also delete a directory that is
1952   # left behind by Apple's compiler.  We do this before executing the actions.
1953   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955   as_fn_set_status $ac_retval
1956
1957 } # ac_fn_c_try_link
1958 cat >config.log <<_ACEOF
1959 This file contains any messages produced by compilers while
1960 running configure, to aid debugging if configure makes a mistake.
1961
1962 It was created by $as_me, which was
1963 generated by GNU Autoconf 2.69.  Invocation command line was
1964
1965   $ $0 $@
1966
1967 _ACEOF
1968 exec 5>>config.log
1969 {
1970 cat <<_ASUNAME
1971 ## --------- ##
1972 ## Platform. ##
1973 ## --------- ##
1974
1975 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1976 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1977 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1978 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1979 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1980
1981 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1982 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1983
1984 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1985 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1986 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1987 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1988 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1989 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1990 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1991
1992 _ASUNAME
1993
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1996 do
1997   IFS=$as_save_IFS
1998   test -z "$as_dir" && as_dir=.
1999     $as_echo "PATH: $as_dir"
2000   done
2001 IFS=$as_save_IFS
2002
2003 } >&5
2004
2005 cat >&5 <<_ACEOF
2006
2007
2008 ## ----------- ##
2009 ## Core tests. ##
2010 ## ----------- ##
2011
2012 _ACEOF
2013
2014
2015 # Keep a trace of the command line.
2016 # Strip out --no-create and --no-recursion so they do not pile up.
2017 # Strip out --silent because we don't want to record it for future runs.
2018 # Also quote any args containing shell meta-characters.
2019 # Make two passes to allow for proper duplicate-argument suppression.
2020 ac_configure_args=
2021 ac_configure_args0=
2022 ac_configure_args1=
2023 ac_must_keep_next=false
2024 for ac_pass in 1 2
2025 do
2026   for ac_arg
2027   do
2028     case $ac_arg in
2029     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2030     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2031     | -silent | --silent | --silen | --sile | --sil)
2032       continue ;;
2033     *\'*)
2034       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2035     esac
2036     case $ac_pass in
2037     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2038     2)
2039       as_fn_append ac_configure_args1 " '$ac_arg'"
2040       if test $ac_must_keep_next = true; then
2041         ac_must_keep_next=false # Got value, back to normal.
2042       else
2043         case $ac_arg in
2044           *=* | --config-cache | -C | -disable-* | --disable-* \
2045           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2046           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2047           | -with-* | --with-* | -without-* | --without-* | --x)
2048             case "$ac_configure_args0 " in
2049               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2050             esac
2051             ;;
2052           -* ) ac_must_keep_next=true ;;
2053         esac
2054       fi
2055       as_fn_append ac_configure_args " '$ac_arg'"
2056       ;;
2057     esac
2058   done
2059 done
2060 { ac_configure_args0=; unset ac_configure_args0;}
2061 { ac_configure_args1=; unset ac_configure_args1;}
2062
2063 # When interrupted or exit'd, cleanup temporary files, and complete
2064 # config.log.  We remove comments because anyway the quotes in there
2065 # would cause problems or look ugly.
2066 # WARNING: Use '\'' to represent an apostrophe within the trap.
2067 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2068 trap 'exit_status=$?
2069   # Save into config.log some information that might help in debugging.
2070   {
2071     echo
2072
2073     $as_echo "## ---------------- ##
2074 ## Cache variables. ##
2075 ## ---------------- ##"
2076     echo
2077     # The following way of writing the cache mishandles newlines in values,
2078 (
2079   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2080     eval ac_val=\$$ac_var
2081     case $ac_val in #(
2082     *${as_nl}*)
2083       case $ac_var in #(
2084       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2085 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2086       esac
2087       case $ac_var in #(
2088       _ | IFS | as_nl) ;; #(
2089       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2090       *) { eval $ac_var=; unset $ac_var;} ;;
2091       esac ;;
2092     esac
2093   done
2094   (set) 2>&1 |
2095     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2096     *${as_nl}ac_space=\ *)
2097       sed -n \
2098         "s/'\''/'\''\\\\'\'''\''/g;
2099           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2100       ;; #(
2101     *)
2102       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2103       ;;
2104     esac |
2105     sort
2106 )
2107     echo
2108
2109     $as_echo "## ----------------- ##
2110 ## Output variables. ##
2111 ## ----------------- ##"
2112     echo
2113     for ac_var in $ac_subst_vars
2114     do
2115       eval ac_val=\$$ac_var
2116       case $ac_val in
2117       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118       esac
2119       $as_echo "$ac_var='\''$ac_val'\''"
2120     done | sort
2121     echo
2122
2123     if test -n "$ac_subst_files"; then
2124       $as_echo "## ------------------- ##
2125 ## File substitutions. ##
2126 ## ------------------- ##"
2127       echo
2128       for ac_var in $ac_subst_files
2129       do
2130         eval ac_val=\$$ac_var
2131         case $ac_val in
2132         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133         esac
2134         $as_echo "$ac_var='\''$ac_val'\''"
2135       done | sort
2136       echo
2137     fi
2138
2139     if test -s confdefs.h; then
2140       $as_echo "## ----------- ##
2141 ## confdefs.h. ##
2142 ## ----------- ##"
2143       echo
2144       cat confdefs.h
2145       echo
2146     fi
2147     test "$ac_signal" != 0 &&
2148       $as_echo "$as_me: caught signal $ac_signal"
2149     $as_echo "$as_me: exit $exit_status"
2150   } >&5
2151   rm -f core *.core core.conftest.* &&
2152     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2153     exit $exit_status
2154 ' 0
2155 for ac_signal in 1 2 13 15; do
2156   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2157 done
2158 ac_signal=0
2159
2160 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2161 rm -f -r conftest* confdefs.h
2162
2163 $as_echo "/* confdefs.h */" > confdefs.h
2164
2165 # Predefined preprocessor variables.
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_NAME "$PACKAGE_NAME"
2169 _ACEOF
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2173 _ACEOF
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2177 _ACEOF
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_STRING "$PACKAGE_STRING"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2185 _ACEOF
2186
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_URL "$PACKAGE_URL"
2189 _ACEOF
2190
2191
2192 # Let the site file select an alternate cache file if it wants to.
2193 # Prefer an explicitly selected file to automatically selected ones.
2194 ac_site_file1=NONE
2195 ac_site_file2=NONE
2196 if test -n "$CONFIG_SITE"; then
2197   # We do not want a PATH search for config.site.
2198   case $CONFIG_SITE in #((
2199     -*)  ac_site_file1=./$CONFIG_SITE;;
2200     */*) ac_site_file1=$CONFIG_SITE;;
2201     *)   ac_site_file1=./$CONFIG_SITE;;
2202   esac
2203 elif test "x$prefix" != xNONE; then
2204   ac_site_file1=$prefix/share/config.site
2205   ac_site_file2=$prefix/etc/config.site
2206 else
2207   ac_site_file1=$ac_default_prefix/share/config.site
2208   ac_site_file2=$ac_default_prefix/etc/config.site
2209 fi
2210 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2211 do
2212   test "x$ac_site_file" = xNONE && continue
2213   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2214     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2215 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2216     sed 's/^/| /' "$ac_site_file" >&5
2217     . "$ac_site_file" \
2218       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2220 as_fn_error $? "failed to load site script $ac_site_file
2221 See \`config.log' for more details" "$LINENO" 5; }
2222   fi
2223 done
2224
2225 if test -r "$cache_file"; then
2226   # Some versions of bash will fail to source /dev/null (special files
2227   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2228   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2229     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2230 $as_echo "$as_me: loading cache $cache_file" >&6;}
2231     case $cache_file in
2232       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2233       *)                      . "./$cache_file";;
2234     esac
2235   fi
2236 else
2237   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2238 $as_echo "$as_me: creating cache $cache_file" >&6;}
2239   >$cache_file
2240 fi
2241
2242 # Check that the precious variables saved in the cache have kept the same
2243 # value.
2244 ac_cache_corrupted=false
2245 for ac_var in $ac_precious_vars; do
2246   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2247   eval ac_new_set=\$ac_env_${ac_var}_set
2248   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2249   eval ac_new_val=\$ac_env_${ac_var}_value
2250   case $ac_old_set,$ac_new_set in
2251     set,)
2252       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2253 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2254       ac_cache_corrupted=: ;;
2255     ,set)
2256       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2257 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2258       ac_cache_corrupted=: ;;
2259     ,);;
2260     *)
2261       if test "x$ac_old_val" != "x$ac_new_val"; then
2262         # differences in whitespace do not lead to failure.
2263         ac_old_val_w=`echo x $ac_old_val`
2264         ac_new_val_w=`echo x $ac_new_val`
2265         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2266           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2267 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2268           ac_cache_corrupted=:
2269         else
2270           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2271 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2272           eval $ac_var=\$ac_old_val
2273         fi
2274         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2275 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2276         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2277 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2278       fi;;
2279   esac
2280   # Pass precious variables to config.status.
2281   if test "$ac_new_set" = set; then
2282     case $ac_new_val in
2283     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2284     *) ac_arg=$ac_var=$ac_new_val ;;
2285     esac
2286     case " $ac_configure_args " in
2287       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2288       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2289     esac
2290   fi
2291 done
2292 if $ac_cache_corrupted; then
2293   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2296 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2297   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2298 fi
2299 ## -------------------- ##
2300 ## Main body of script. ##
2301 ## -------------------- ##
2302
2303 ac_ext=c
2304 ac_cpp='$CPP $CPPFLAGS'
2305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308
2309
2310
2311
2312
2313
2314
2315
2316 progname=$0
2317 # if PWD already has a value, it is probably wrong.
2318 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2319
2320 # Export original configure arguments for use by sub-configures.
2321 # Quote arguments with shell meta charatcers.
2322 TOPLEVEL_CONFIGURE_ARGUMENTS=
2323 set -- "$progname" "$@"
2324 for ac_arg
2325 do
2326   case "$ac_arg" in
2327   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2328     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2329     # if the argument is of the form -foo=baz, quote the baz part only
2330     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2331   *) ;;
2332   esac
2333   # Add the quoted argument to the list.
2334   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2335 done
2336 if test "$silent" = yes; then
2337   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2338 fi
2339 # Remove the initial space we just introduced and, as these will be
2340 # expanded by make, quote '$'.
2341 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2342
2343
2344 # Find the build, host, and target systems.
2345 ac_aux_dir=
2346 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2347   if 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/install.sh"; then
2352     ac_aux_dir=$ac_dir
2353     ac_install_sh="$ac_aux_dir/install.sh -c"
2354     break
2355   elif test -f "$ac_dir/shtool"; then
2356     ac_aux_dir=$ac_dir
2357     ac_install_sh="$ac_aux_dir/shtool install -c"
2358     break
2359   fi
2360 done
2361 if test -z "$ac_aux_dir"; then
2362   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2363 fi
2364
2365 # These three variables are undocumented and unsupported,
2366 # and are intended to be withdrawn in a future Autoconf release.
2367 # They can cause serious problems if a builder's source tree is in a directory
2368 # whose full name contains unusual characters.
2369 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2370 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2371 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2372
2373
2374 # Make sure we can run config.sub.
2375 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2376   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2377
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2379 $as_echo_n "checking build system type... " >&6; }
2380 if ${ac_cv_build+:} false; then :
2381   $as_echo_n "(cached) " >&6
2382 else
2383   ac_build_alias=$build_alias
2384 test "x$ac_build_alias" = x &&
2385   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2386 test "x$ac_build_alias" = x &&
2387   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2388 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2389   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2390
2391 fi
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2393 $as_echo "$ac_cv_build" >&6; }
2394 case $ac_cv_build in
2395 *-*-*) ;;
2396 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2397 esac
2398 build=$ac_cv_build
2399 ac_save_IFS=$IFS; IFS='-'
2400 set x $ac_cv_build
2401 shift
2402 build_cpu=$1
2403 build_vendor=$2
2404 shift; shift
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2407 build_os=$*
2408 IFS=$ac_save_IFS
2409 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2410
2411
2412  case ${build_alias} in
2413   "") build_noncanonical=${build} ;;
2414   *) build_noncanonical=${build_alias} ;;
2415 esac
2416
2417
2418
2419  case ${host_alias} in
2420   "") host_noncanonical=${build_noncanonical} ;;
2421   *) host_noncanonical=${host_alias} ;;
2422 esac
2423
2424
2425
2426  case ${target_alias} in
2427   "") target_noncanonical=${host_noncanonical} ;;
2428   *) target_noncanonical=${target_alias} ;;
2429 esac
2430
2431
2432
2433
2434 test "$host_noncanonical" = "$target_noncanonical" &&
2435   test "$program_prefix$program_suffix$program_transform_name" = \
2436     NONENONEs,x,x, &&
2437   program_transform_name=s,y,y,
2438
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2440 $as_echo_n "checking host system type... " >&6; }
2441 if ${ac_cv_host+:} false; then :
2442   $as_echo_n "(cached) " >&6
2443 else
2444   if test "x$host_alias" = x; then
2445   ac_cv_host=$ac_cv_build
2446 else
2447   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2448     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2449 fi
2450
2451 fi
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2453 $as_echo "$ac_cv_host" >&6; }
2454 case $ac_cv_host in
2455 *-*-*) ;;
2456 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2457 esac
2458 host=$ac_cv_host
2459 ac_save_IFS=$IFS; IFS='-'
2460 set x $ac_cv_host
2461 shift
2462 host_cpu=$1
2463 host_vendor=$2
2464 shift; shift
2465 # Remember, the first character of IFS is used to create $*,
2466 # except with old shells:
2467 host_os=$*
2468 IFS=$ac_save_IFS
2469 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2470
2471
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2473 $as_echo_n "checking target system type... " >&6; }
2474 if ${ac_cv_target+:} false; then :
2475   $as_echo_n "(cached) " >&6
2476 else
2477   if test "x$target_alias" = x; then
2478   ac_cv_target=$ac_cv_host
2479 else
2480   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2481     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2482 fi
2483
2484 fi
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2486 $as_echo "$ac_cv_target" >&6; }
2487 case $ac_cv_target in
2488 *-*-*) ;;
2489 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2490 esac
2491 target=$ac_cv_target
2492 ac_save_IFS=$IFS; IFS='-'
2493 set x $ac_cv_target
2494 shift
2495 target_cpu=$1
2496 target_vendor=$2
2497 shift; shift
2498 # Remember, the first character of IFS is used to create $*,
2499 # except with old shells:
2500 target_os=$*
2501 IFS=$ac_save_IFS
2502 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2503
2504
2505 # The aliases save the names the user supplied, while $host etc.
2506 # will get canonicalized.
2507 test -n "$target_alias" &&
2508   test "$program_prefix$program_suffix$program_transform_name" = \
2509     NONENONEs,x,x, &&
2510   program_prefix=${target_alias}-
2511
2512 test "$program_prefix" != NONE &&
2513   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2514 # Use a double $ so make ignores it.
2515 test "$program_suffix" != NONE &&
2516   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2517 # Double any \ or $.
2518 # By default was `s,x,x', remove it if useless.
2519 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2520 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2521
2522
2523
2524 # Get 'install' or 'install-sh' and its variants.
2525 # Find a good install program.  We prefer a C program (faster),
2526 # so one script is as good as another.  But avoid the broken or
2527 # incompatible versions:
2528 # SysV /etc/install, /usr/sbin/install
2529 # SunOS /usr/etc/install
2530 # IRIX /sbin/install
2531 # AIX /bin/install
2532 # AmigaOS /C/install, which installs bootblocks on floppy discs
2533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2536 # OS/2's system install, which has a completely different semantic
2537 # ./install, which can be erroneously created by make from ./install.sh.
2538 # Reject install programs that cannot install multiple files.
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2540 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2541 if test -z "$INSTALL"; then
2542 if ${ac_cv_path_install+:} false; then :
2543   $as_echo_n "(cached) " >&6
2544 else
2545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2547 do
2548   IFS=$as_save_IFS
2549   test -z "$as_dir" && as_dir=.
2550     # Account for people who put trailing slashes in PATH elements.
2551 case $as_dir/ in #((
2552   ./ | .// | /[cC]/* | \
2553   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2554   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2555   /usr/ucb/* ) ;;
2556   *)
2557     # OSF1 and SCO ODT 3.0 have their own names for install.
2558     # Don't use installbsd from OSF since it installs stuff as root
2559     # by default.
2560     for ac_prog in ginstall scoinst install; do
2561       for ac_exec_ext in '' $ac_executable_extensions; do
2562         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2563           if test $ac_prog = install &&
2564             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2565             # AIX install.  It has an incompatible calling convention.
2566             :
2567           elif test $ac_prog = install &&
2568             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569             # program-specific install script used by HP pwplus--don't use.
2570             :
2571           else
2572             rm -rf conftest.one conftest.two conftest.dir
2573             echo one > conftest.one
2574             echo two > conftest.two
2575             mkdir conftest.dir
2576             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2577               test -s conftest.one && test -s conftest.two &&
2578               test -s conftest.dir/conftest.one &&
2579               test -s conftest.dir/conftest.two
2580             then
2581               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2582               break 3
2583             fi
2584           fi
2585         fi
2586       done
2587     done
2588     ;;
2589 esac
2590
2591   done
2592 IFS=$as_save_IFS
2593
2594 rm -rf conftest.one conftest.two conftest.dir
2595
2596 fi
2597   if test "${ac_cv_path_install+set}" = set; then
2598     INSTALL=$ac_cv_path_install
2599   else
2600     # As a last resort, use the slow shell script.  Don't cache a
2601     # value for INSTALL within a source directory, because that will
2602     # break other packages using the cache if that directory is
2603     # removed, or if the value is a relative name.
2604     INSTALL=$ac_install_sh
2605   fi
2606 fi
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2608 $as_echo "$INSTALL" >&6; }
2609
2610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2611 # It thinks the first close brace ends the variable substitution.
2612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2613
2614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2615
2616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2617
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2619 $as_echo_n "checking whether ln works... " >&6; }
2620 if ${acx_cv_prog_LN+:} false; then :
2621   $as_echo_n "(cached) " >&6
2622 else
2623   rm -f conftestdata_t
2624 echo >conftestdata_f
2625 if ln conftestdata_f conftestdata_t 2>/dev/null
2626 then
2627   acx_cv_prog_LN=ln
2628 else
2629   acx_cv_prog_LN=no
2630 fi
2631 rm -f conftestdata_f conftestdata_t
2632
2633 fi
2634 if test $acx_cv_prog_LN = no; then
2635   LN="cp"
2636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2637 $as_echo "no, using $LN" >&6; }
2638 else
2639   LN="$acx_cv_prog_LN"
2640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2641 $as_echo "yes" >&6; }
2642 fi
2643
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2645 $as_echo_n "checking whether ln -s works... " >&6; }
2646 LN_S=$as_ln_s
2647 if test "$LN_S" = "ln -s"; then
2648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649 $as_echo "yes" >&6; }
2650 else
2651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2652 $as_echo "no, using $LN_S" >&6; }
2653 fi
2654
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2656 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2657 if ${ac_cv_path_SED+:} false; then :
2658   $as_echo_n "(cached) " >&6
2659 else
2660             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2661      for ac_i in 1 2 3 4 5 6 7; do
2662        ac_script="$ac_script$as_nl$ac_script"
2663      done
2664      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2665      { ac_script=; unset ac_script;}
2666      if test -z "$SED"; then
2667   ac_path_SED_found=false
2668   # Loop through the user's path and test for each of PROGNAME-LIST
2669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672   IFS=$as_save_IFS
2673   test -z "$as_dir" && as_dir=.
2674     for ac_prog in sed gsed; do
2675     for ac_exec_ext in '' $ac_executable_extensions; do
2676       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2677       as_fn_executable_p "$ac_path_SED" || continue
2678 # Check for GNU ac_path_SED and select it if it is found.
2679   # Check for GNU $ac_path_SED
2680 case `"$ac_path_SED" --version 2>&1` in
2681 *GNU*)
2682   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2683 *)
2684   ac_count=0
2685   $as_echo_n 0123456789 >"conftest.in"
2686   while :
2687   do
2688     cat "conftest.in" "conftest.in" >"conftest.tmp"
2689     mv "conftest.tmp" "conftest.in"
2690     cp "conftest.in" "conftest.nl"
2691     $as_echo '' >> "conftest.nl"
2692     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2693     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2694     as_fn_arith $ac_count + 1 && ac_count=$as_val
2695     if test $ac_count -gt ${ac_path_SED_max-0}; then
2696       # Best one so far, save it but keep looking for a better one
2697       ac_cv_path_SED="$ac_path_SED"
2698       ac_path_SED_max=$ac_count
2699     fi
2700     # 10*(2^10) chars as input seems more than enough
2701     test $ac_count -gt 10 && break
2702   done
2703   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2704 esac
2705
2706       $ac_path_SED_found && break 3
2707     done
2708   done
2709   done
2710 IFS=$as_save_IFS
2711   if test -z "$ac_cv_path_SED"; then
2712     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2713   fi
2714 else
2715   ac_cv_path_SED=$SED
2716 fi
2717
2718 fi
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2720 $as_echo "$ac_cv_path_SED" >&6; }
2721  SED="$ac_cv_path_SED"
2722   rm -f conftest.sed
2723
2724 for ac_prog in gawk mawk nawk awk
2725 do
2726   # Extract the first word of "$ac_prog", so it can be a program name with args.
2727 set dummy $ac_prog; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if ${ac_cv_prog_AWK+:} false; then :
2731   $as_echo_n "(cached) " >&6
2732 else
2733   if test -n "$AWK"; then
2734   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2738 do
2739   IFS=$as_save_IFS
2740   test -z "$as_dir" && as_dir=.
2741     for ac_exec_ext in '' $ac_executable_extensions; do
2742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743     ac_cv_prog_AWK="$ac_prog"
2744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745     break 2
2746   fi
2747 done
2748   done
2749 IFS=$as_save_IFS
2750
2751 fi
2752 fi
2753 AWK=$ac_cv_prog_AWK
2754 if test -n "$AWK"; then
2755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2756 $as_echo "$AWK" >&6; }
2757 else
2758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2760 fi
2761
2762
2763   test -n "$AWK" && break
2764 done
2765
2766
2767 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2768
2769 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2770 # a relative path.
2771 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2772   INSTALL="${srcpwd}/install-sh -c"
2773 fi
2774
2775 # Set srcdir to "." if that's what it is.
2776 # This is important for multilib support.
2777 pwd=`${PWDCMD-pwd}`
2778 if test "${pwd}" = "${srcpwd}" ; then
2779   srcdir=.
2780 fi
2781
2782 topsrcdir=$srcpwd
2783
2784 extra_host_args=
2785
2786 ### To add a new directory to the tree, first choose whether it is a target
2787 ### or a host dependent tool.  Then put it into the appropriate list
2788 ### (library or tools, host or target), doing a dependency sort.
2789
2790 # Subdirs will be configured in the order listed in build_configdirs,
2791 # configdirs, or target_configdirs; see the serialization section below.
2792
2793 # Dependency sorting is only needed when *configuration* must be done in
2794 # a particular order.  In all cases a dependency should be specified in
2795 # the Makefile, whether or not it's implicitly specified here.
2796
2797 # Double entries in build_configdirs, configdirs, or target_configdirs may
2798 # cause circular dependencies and break everything horribly.
2799
2800 # these library is used by various programs built for the build
2801 # environment
2802 #
2803 build_libs="build-libiberty build-libcpp"
2804
2805 # these tools are built for the build environment
2806 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2807
2808 # these libraries are used by various programs built for the host environment
2809 #f
2810 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2811
2812 # these tools are built for the host environment
2813 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2814 # know that we are building the simulator.
2815 # binutils, gas and ld appear in that order because it makes sense to run
2816 # "make check" in that particular order.
2817 # If --enable-gold is used, "gold" may replace "ld".
2818 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"
2819
2820 # these libraries are built for the target environment, and are built after
2821 # the host libraries and the host tools (which may be a cross compiler)
2822 # Note that libiberty is not a target library.
2823 target_libraries="target-libgcc \
2824                 target-libbacktrace \
2825                 target-libgloss \
2826                 target-newlib \
2827                 target-libgomp \
2828                 target-liboffloadmic \
2829                 target-libatomic \
2830                 target-libitm \
2831                 target-libstdc++-v3 \
2832                 target-libsanitizer \
2833                 target-libvtv \
2834                 target-libssp \
2835                 target-libquadmath \
2836                 target-libgfortran \
2837                 target-libffi \
2838                 target-libobjc \
2839                 target-libada \
2840                 target-libgo \
2841                 target-libphobos \
2842                 target-zlib"
2843
2844 # these tools are built using the target libraries, and are intended to
2845 # run only in the target environment
2846 #
2847 # note: any program that *uses* libraries that are in the "target_libraries"
2848 # list belongs in this list.
2849 #
2850 target_tools="target-rda"
2851
2852 ################################################################################
2853
2854 ## All tools belong in one of the four categories, and are assigned above
2855 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2856 ## is important because configure will choke if they ever get through.
2857 ## ${configdirs} is directories we build using the host tools.
2858 ## ${target_configdirs} is directories we build using the target tools.
2859 configdirs=`echo ${host_libs} ${host_tools}`
2860 target_configdirs=`echo ${target_libraries} ${target_tools}`
2861 build_configdirs=`echo ${build_libs} ${build_tools}`
2862
2863
2864
2865 ################################################################################
2866
2867 srcname="gnu development package"
2868
2869 # This gets set non-empty for some net releases of packages.
2870 appdirs=""
2871
2872 # Define is_cross_compiler to save on calls to 'test'.
2873 is_cross_compiler=
2874 if test x"${host}" = x"${target}" ; then
2875   is_cross_compiler=no
2876 else
2877   is_cross_compiler=yes
2878 fi
2879
2880 # Find the build and target subdir names.
2881
2882 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2883 # have matching libraries, they should use host libraries: Makefile.tpl
2884 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2885 # However, they still use the build modules, because the corresponding
2886 # host modules (e.g. bison) are only built for the host when bootstrap
2887 # finishes. So:
2888 # - build_subdir is where we find build modules, and never changes.
2889 # - build_libsubdir is where we find build libraries, and can be overridden.
2890
2891 # Prefix 'build-' so this never conflicts with target_subdir.
2892 build_subdir="build-${build_noncanonical}"
2893
2894 # Check whether --with-build-libsubdir was given.
2895 if test "${with_build_libsubdir+set}" = set; then :
2896   withval=$with_build_libsubdir; build_libsubdir="$withval"
2897 else
2898   build_libsubdir="$build_subdir"
2899 fi
2900
2901 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2902 if ( test $srcdir = . && test -d gcc ) \
2903    || test -d $srcdir/../host-${host_noncanonical}; then
2904   host_subdir="host-${host_noncanonical}"
2905 else
2906   host_subdir=.
2907 fi
2908 # No prefix.
2909 target_subdir=${target_noncanonical}
2910
2911 # Be sure to cover against remnants of an in-tree build.
2912 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2913   as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2914 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2915 fi
2916
2917 # Skipdirs are removed silently.
2918 skipdirs=
2919 # Noconfigdirs are removed loudly.
2920 noconfigdirs=""
2921
2922 use_gnu_ld=
2923 # Make sure we don't let GNU ld be added if we didn't want it.
2924 if test x$with_gnu_ld = xno ; then
2925   use_gnu_ld=no
2926   noconfigdirs="$noconfigdirs ld gold"
2927 fi
2928
2929 use_gnu_as=
2930 # Make sure we don't let GNU as be added if we didn't want it.
2931 if test x$with_gnu_as = xno ; then
2932   use_gnu_as=no
2933   noconfigdirs="$noconfigdirs gas"
2934 fi
2935
2936 use_included_zlib=
2937
2938 # Check whether --with-system-zlib was given.
2939 if test "${with_system_zlib+set}" = set; then :
2940   withval=$with_system_zlib;
2941 fi
2942
2943 # Make sure we don't let ZLIB be added if we didn't want it.
2944 if test x$with_system_zlib = xyes ; then
2945   use_included_zlib=no
2946   noconfigdirs="$noconfigdirs zlib"
2947 fi
2948
2949 # some tools are so dependent upon X11 that if we're not building with X,
2950 # it's not even worth trying to configure, much less build, that tool.
2951
2952 case ${with_x} in
2953   yes | "") ;; # the default value for this tree is that X11 is available
2954   no)
2955     skipdirs="${skipdirs} tk itcl libgui"
2956     # We won't be able to build gdbtk without X.
2957     enable_gdbtk=no
2958     ;;
2959   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2960 esac
2961
2962 # Some are only suitable for cross toolchains.
2963 # Remove these if host=target.
2964 cross_only="target-libgloss target-newlib target-opcodes"
2965
2966 case $is_cross_compiler in
2967   no) skipdirs="${skipdirs} ${cross_only}" ;;
2968 esac
2969
2970 # If both --with-headers and --with-libs are specified, default to
2971 # --without-newlib.
2972 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2973    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2974   if test x"${with_newlib}" = x ; then
2975     with_newlib=no
2976   fi
2977 fi
2978
2979 # Recognize --with-newlib/--without-newlib.
2980 case ${with_newlib} in
2981   no) skipdirs="${skipdirs} target-newlib" ;;
2982   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2983 esac
2984
2985 # Check whether --enable-as-accelerator-for was given.
2986 if test "${enable_as_accelerator_for+set}" = set; then :
2987   enableval=$enable_as_accelerator_for;
2988 fi
2989
2990
2991 # Check whether --enable-offload-targets was given.
2992 if test "${enable_offload_targets+set}" = set; then :
2993   enableval=$enable_offload_targets;
2994   if test x"$enable_offload_targets" = x; then
2995     as_fn_error $? "no offload targets specified" "$LINENO" 5
2996   fi
2997
2998 else
2999   enable_offload_targets=
3000 fi
3001
3002
3003 # Check whether --enable-offload-defaulted was given.
3004 if test "${enable_offload_defaulted+set}" = set; then :
3005   enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3006 else
3007   enable_offload_defaulted=
3008 fi
3009
3010
3011 # Handle --enable-gold, --enable-ld.
3012 # --disable-gold [--enable-ld]
3013 #     Build only ld.  Default option.
3014 # --enable-gold [--enable-ld]
3015 #     Build both gold and ld.  Install gold as "ld.gold", install ld
3016 #     as "ld.bfd" and "ld".
3017 # --enable-gold=default [--enable-ld]
3018 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
3019 #     install ld as "ld.bfd".
3020 # --enable-gold[=default] --disable-ld
3021 #     Build only gold, which is then installed as both "ld.gold" and "ld".
3022 # --enable-gold --enable-ld=default
3023 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
3024 #     and ld.bfd).
3025 #     In other words, ld is default
3026 # --enable-gold=default --enable-ld=default
3027 #     Error.
3028
3029 default_ld=
3030 # Check whether --enable-gold was given.
3031 if test "${enable_gold+set}" = set; then :
3032   enableval=$enable_gold; ENABLE_GOLD=$enableval
3033 else
3034   ENABLE_GOLD=no
3035 fi
3036
3037 case "${ENABLE_GOLD}" in
3038   yes|default)
3039     # Check for ELF target.
3040     is_elf=no
3041     case "${target}" in
3042       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3043       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3044       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3045       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3046         case "${target}" in
3047           *-*-linux*aout* | *-*-linux*oldld*)
3048             ;;
3049           *)
3050             is_elf=yes
3051             ;;
3052         esac
3053     esac
3054
3055     if test "$is_elf" = "yes"; then
3056       # Check for target supported by gold.
3057       case "${target}" in
3058         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3059         | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3060           configdirs="$configdirs gold"
3061           if test x${ENABLE_GOLD} = xdefault; then
3062             default_ld=gold
3063           fi
3064           ENABLE_GOLD=yes
3065           ;;
3066       esac
3067     fi
3068     ;;
3069   no)
3070     ;;
3071   *)
3072     as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3073     ;;
3074 esac
3075
3076 # Check whether --enable-ld was given.
3077 if test "${enable_ld+set}" = set; then :
3078   enableval=$enable_ld; ENABLE_LD=$enableval
3079 else
3080   ENABLE_LD=yes
3081 fi
3082
3083
3084 case "${ENABLE_LD}" in
3085   default)
3086     if test x${default_ld} != x; then
3087       as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3088     fi
3089     ;;
3090   yes)
3091     ;;
3092   no)
3093     if test x${ENABLE_GOLD} != xyes; then
3094       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3095 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3096     fi
3097     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3098     ;;
3099   *)
3100     as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3101     ;;
3102 esac
3103
3104 # PR gas/19109
3105 # Decide the default method for compressing debug sections.
3106 # Provide a configure time option to override our default.
3107 # Check whether --enable-compressed_debug_sections was given.
3108 if test "${enable_compressed_debug_sections+set}" = set; then :
3109   enableval=$enable_compressed_debug_sections;
3110   if test x"$enable_compressed_debug_sections" = xyes; then
3111     as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3112   fi
3113
3114 else
3115   enable_compressed_debug_sections=
3116 fi
3117
3118
3119 # Configure extra directories which are host specific
3120
3121 case "${host}" in
3122   *-cygwin*)
3123     configdirs="$configdirs libtermcap" ;;
3124 esac
3125
3126 # A target can indicate whether a language isn't supported for some reason.
3127 # Only spaces may be used in this macro; not newlines or tabs.
3128 unsupported_languages=
3129
3130 # Remove more programs from consideration, based on the host or
3131 # target this usually means that a port of the program doesn't
3132 # exist yet.
3133
3134 case "${host}" in
3135   i[3456789]86-*-msdosdjgpp*)
3136     noconfigdirs="$noconfigdirs tcl tk itcl"
3137     ;;
3138 esac
3139
3140
3141 # Check whether --enable-libquadmath was given.
3142 if test "${enable_libquadmath+set}" = set; then :
3143   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3144 else
3145   ENABLE_LIBQUADMATH=yes
3146 fi
3147
3148 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3149   noconfigdirs="$noconfigdirs target-libquadmath"
3150 fi
3151
3152
3153 # Check whether --enable-libquadmath-support was given.
3154 if test "${enable_libquadmath_support+set}" = set; then :
3155   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3156 else
3157   ENABLE_LIBQUADMATH_SUPPORT=yes
3158 fi
3159
3160 enable_libquadmath_support=
3161 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3162   enable_libquadmath_support=no
3163 fi
3164
3165
3166 # Check whether --enable-libada was given.
3167 if test "${enable_libada+set}" = set; then :
3168   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3169 else
3170   ENABLE_LIBADA=yes
3171 fi
3172
3173 if test "${ENABLE_LIBADA}" != "yes" ; then
3174   noconfigdirs="$noconfigdirs gnattools"
3175 fi
3176
3177 # Check whether --enable-libssp was given.
3178 if test "${enable_libssp+set}" = set; then :
3179   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3180 else
3181   ENABLE_LIBSSP=yes
3182 fi
3183
3184
3185 # Check whether --enable-libstdcxx was given.
3186 if test "${enable_libstdcxx+set}" = set; then :
3187   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3188 else
3189   ENABLE_LIBSTDCXX=default
3190 fi
3191
3192 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3193   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3194 fi
3195
3196 # If this is accelerator compiler and its target is intelmic we enable
3197 # target liboffloadmic by default.  If this is compiler with offloading
3198 # for intelmic we enable host liboffloadmic by default.  Otherwise
3199 # liboffloadmic is disabled by default.
3200 # Check whether --enable-liboffloadmic was given.
3201 if test "${enable_liboffloadmic+set}" = set; then :
3202   enableval=$enable_liboffloadmic; case "$enableval" in
3203   no | host | target)
3204     enable_liboffloadmic=$enableval ;;
3205   *)
3206     as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3207 esac
3208 else
3209   if test x"$enable_as_accelerator_for" != x; then
3210   case "${target}" in
3211     *-intelmic-* | *-intelmicemul-*)
3212       enable_liboffloadmic=target
3213       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3214       ;;
3215     *)
3216       enable_liboffloadmic=no
3217       ;;
3218   esac
3219 else
3220   case "${enable_offload_targets}" in
3221     *-intelmic-* | *-intelmicemul-*)
3222       enable_liboffloadmic=host
3223       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3224       ;;
3225     *)
3226       enable_liboffloadmic=no
3227       ;;
3228     esac
3229 fi
3230 fi
3231
3232
3233
3234 # Enable libgomp by default on hosted POSIX systems, and a few others.
3235 if test x$enable_libgomp = x ; then
3236     case "${target}" in
3237     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3238         ;;
3239     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3240         ;;
3241     *-*-solaris2* | *-*-hpux11*)
3242         ;;
3243     *-*-darwin* | *-*-aix*)
3244         ;;
3245     nvptx*-*-* | amdgcn*-*-*)
3246         ;;
3247     *)
3248         noconfigdirs="$noconfigdirs target-libgomp"
3249         ;;
3250     esac
3251 fi
3252
3253 # Disable libatomic on unsupported systems.
3254 if test -d ${srcdir}/libatomic; then
3255     if test x$enable_libatomic = x; then
3256         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3257 $as_echo_n "checking for libatomic support... " >&6; }
3258         if (srcdir=${srcdir}/libatomic; \
3259                 . ${srcdir}/configure.tgt; \
3260                 test -n "$UNSUPPORTED")
3261         then
3262             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264             noconfigdirs="$noconfigdirs target-libatomic"
3265         else
3266             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267 $as_echo "yes" >&6; }
3268         fi
3269     fi
3270 fi
3271
3272 # Disable liboffloadmic on unsupported systems.
3273 if test -d ${srcdir}/liboffloadmic; then
3274     if test x$enable_liboffloadmic != xno; then
3275         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3276 $as_echo_n "checking for liboffloadmic support... " >&6; }
3277         if (srcdir=${srcdir}/liboffloadmic; \
3278                 . ${srcdir}/configure.tgt; \
3279                 test -n "$UNSUPPORTED")
3280         then
3281             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283             noconfigdirs="$noconfigdirs target-liboffloadmic"
3284         else
3285             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3286 $as_echo "yes" >&6; }
3287         fi
3288     fi
3289 fi
3290
3291 # Disable libitm on unsupported systems.
3292 if test -d ${srcdir}/libitm; then
3293     if test x$enable_libitm = x; then
3294         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3295 $as_echo_n "checking for libitm support... " >&6; }
3296         if (srcdir=${srcdir}/libitm; \
3297                 . ${srcdir}/configure.tgt; \
3298                 test -n "$UNSUPPORTED")
3299         then
3300             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3302             noconfigdirs="$noconfigdirs target-libitm"
3303         else
3304             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3305 $as_echo "yes" >&6; }
3306         fi
3307     fi
3308 fi
3309
3310 # Disable libsanitizer on unsupported systems.
3311 if test -d ${srcdir}/libsanitizer; then
3312     if test x$enable_libsanitizer = x; then
3313         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3314 $as_echo_n "checking for libsanitizer support... " >&6; }
3315         if (srcdir=${srcdir}/libsanitizer; \
3316                 . ${srcdir}/configure.tgt; \
3317                 test -n "$UNSUPPORTED")
3318         then
3319             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3321             noconfigdirs="$noconfigdirs target-libsanitizer"
3322         else
3323             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324 $as_echo "yes" >&6; }
3325         fi
3326     fi
3327 fi
3328
3329 # Disable libvtv on unsupported systems.
3330 if test -d ${srcdir}/libvtv; then
3331     if test x$enable_libvtv = x; then
3332         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3333 $as_echo_n "checking for libvtv support... " >&6; }
3334         if (srcdir=${srcdir}/libvtv; \
3335                 . ${srcdir}/configure.tgt; \
3336                 test "$VTV_SUPPORTED" != "yes")
3337         then
3338             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340             noconfigdirs="$noconfigdirs target-libvtv"
3341         else
3342             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3343 $as_echo "yes" >&6; }
3344         fi
3345     fi
3346 fi
3347
3348 # Disable libquadmath for some systems.
3349 case "${target}" in
3350   avr-*-*)
3351     noconfigdirs="$noconfigdirs target-libquadmath"
3352     ;;
3353   # libquadmath is unused on AIX and libquadmath build process use of
3354   # LD_LIBRARY_PATH can break AIX bootstrap.
3355   powerpc-*-aix* | rs6000-*-aix*)
3356     noconfigdirs="$noconfigdirs target-libquadmath"
3357     ;;
3358 esac
3359
3360 # Disable libssp for some systems.
3361 case "${target}" in
3362   avr-*-*)
3363     # No hosted I/O support.
3364     noconfigdirs="$noconfigdirs target-libssp"
3365     ;;
3366   bpf-*-*)
3367     noconfigdirs="$noconfigdirs target-libssp"
3368     ;;
3369   powerpc-*-aix* | rs6000-*-aix*)
3370     noconfigdirs="$noconfigdirs target-libssp"
3371     ;;
3372   pru-*-*)
3373     # No hosted I/O support.
3374     noconfigdirs="$noconfigdirs target-libssp"
3375     ;;
3376   rl78-*-*)
3377     # libssp uses a misaligned load to trigger a fault, but the RL78
3378     # doesn't fault for those - instead, it gives a build-time error
3379     # for explicit misaligned loads.
3380     noconfigdirs="$noconfigdirs target-libssp"
3381     ;;
3382   visium-*-*)
3383     # No hosted I/O support.
3384     noconfigdirs="$noconfigdirs target-libssp"
3385     ;;
3386 esac
3387
3388 # Disable libstdc++-v3 for some systems.
3389 # Allow user to override this if they pass --enable-libstdc++-v3
3390 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3391   case "${target}" in
3392     *-*-vxworks*)
3393       # VxWorks uses the Dinkumware C++ library.
3394       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3395       ;;
3396     amdgcn*-*-*)
3397       # Not ported/fails to build when using newlib.
3398       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3399       ;;
3400     arm*-wince-pe*)
3401       # the C++ libraries don't build on top of CE's C libraries
3402       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3403       ;;
3404     avr-*-*)
3405       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3406       ;;
3407     bpf-*-*)
3408       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3409       ;;
3410     ft32-*-*)
3411       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3412       ;;
3413   esac
3414 fi
3415
3416 # Disable C++ on systems where it is known to not work.
3417 # For testing, you can override this with --enable-languages=c++.
3418 case ,${enable_languages}, in
3419   *,c++,*)
3420     ;;
3421   *)
3422       case "${target}" in
3423         bpf-*-*)
3424           unsupported_languages="$unsupported_languages c++"
3425           ;;
3426       esac
3427       ;;
3428 esac
3429
3430 # Disable Objc on systems where it is known to not work.
3431 # For testing, you can override this with --enable-languages=objc.
3432 case ,${enable_languages}, in
3433   *,objc,*)
3434     ;;
3435   *)
3436       case "${target}" in
3437         bpf-*-*)
3438           unsupported_languages="$unsupported_languages objc"
3439           ;;
3440       esac
3441       ;;
3442 esac
3443
3444 # Disable D on systems where it is known to not work.
3445 # For testing, you can override this with --enable-languages=d.
3446 case ,${enable_languages}, in
3447   *,d,*)
3448     ;;
3449   *)
3450     case "${target}" in
3451       bpf-*-*)
3452         unsupported_languages="$unsupported_languages d"
3453         ;;
3454     esac
3455     ;;
3456 esac
3457
3458 # Disable libphobos on unsupported systems.
3459 # For testing, you can override this with --enable-libphobos.
3460 if test -d ${srcdir}/libphobos; then
3461     if test x$enable_libphobos = x; then
3462         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3463 $as_echo_n "checking for libphobos support... " >&6; }
3464         if (srcdir=${srcdir}/libphobos; \
3465                 . ${srcdir}/configure.tgt; \
3466                 test "$LIBPHOBOS_SUPPORTED" != "yes")
3467         then
3468             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3470             noconfigdirs="$noconfigdirs target-libphobos"
3471         else
3472             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3473 $as_echo "yes" >&6; }
3474         fi
3475     fi
3476 fi
3477
3478 # Disable Fortran for some systems.
3479 case "${target}" in
3480   mmix-*-*)
3481     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3482     unsupported_languages="$unsupported_languages fortran"
3483     ;;
3484   bpf-*-*)
3485     unsupported_languages="$unsupported_languages fortran"
3486     ;;
3487 esac
3488
3489 # Disable libffi for some systems.
3490 case "${target}" in
3491   powerpc-*-darwin*)
3492     ;;
3493   i[3456789]86-*-darwin*)
3494     ;;
3495   x86_64-*-darwin[912]*)
3496     ;;
3497   *-*-darwin*)
3498     noconfigdirs="$noconfigdirs target-libffi"
3499     ;;
3500   *-*-netware*)
3501     noconfigdirs="$noconfigdirs target-libffi"
3502     ;;
3503   *-*-phoenix*)
3504     noconfigdirs="$noconfigdirs target-libffi"
3505     ;;
3506   *-*-rtems*)
3507     noconfigdirs="$noconfigdirs target-libffi"
3508     ;;
3509   *-*-tpf*)
3510     noconfigdirs="$noconfigdirs target-libffi"
3511     ;;
3512   *-*-uclinux*)
3513     noconfigdirs="$noconfigdirs target-libffi"
3514     ;;
3515   *-*-vxworks*)
3516     noconfigdirs="$noconfigdirs target-libffi"
3517     ;;
3518   aarch64*-*-freebsd*)
3519     noconfigdirs="$noconfigdirs target-libffi"
3520     ;;
3521   alpha*-*-*vms*)
3522     noconfigdirs="$noconfigdirs target-libffi"
3523     ;;
3524   arm*-*-freebsd*)
3525     noconfigdirs="$noconfigdirs target-libffi"
3526     ;;
3527   arm-wince-pe)
3528     noconfigdirs="$noconfigdirs target-libffi"
3529     ;;
3530   arm*-*-symbianelf*)
3531     noconfigdirs="$noconfigdirs target-libffi"
3532     ;;
3533   bpf-*-*)
3534     noconfigdirs="$noconfigdirs target-libffi"
3535     ;;
3536   cris-*-* | crisv32-*-*)
3537     case "${target}" in
3538       *-*-linux*)
3539         ;;
3540       *) # See PR46792 regarding target-libffi.
3541         noconfigdirs="$noconfigdirs target-libffi";;
3542     esac
3543     ;;
3544   hppa*64*-*-hpux*)
3545     noconfigdirs="$noconfigdirs target-libffi"
3546     ;;
3547   hppa*-hp-hpux11*)
3548     ;;
3549   hppa*-*-hpux*)
3550     noconfigdirs="$noconfigdirs target-libffi"
3551     ;;
3552   ia64*-*-*vms*)
3553     noconfigdirs="$noconfigdirs target-libffi"
3554     ;;
3555   i[3456789]86-w64-mingw*)
3556     noconfigdirs="$noconfigdirs target-libffi"
3557     ;;
3558   i[3456789]86-*-mingw*)
3559     noconfigdirs="$noconfigdirs target-libffi"
3560     ;;
3561   x86_64-*-mingw*)
3562     noconfigdirs="$noconfigdirs target-libffi"
3563     ;;
3564   mmix-*-*)
3565     noconfigdirs="$noconfigdirs target-libffi"
3566     ;;
3567   powerpc-*-aix*)
3568     ;;
3569   rs6000-*-aix*)
3570     ;;
3571   ft32-*-*)
3572     noconfigdirs="$noconfigdirs target-libffi"
3573     ;;
3574   *-*-lynxos*)
3575     noconfigdirs="$noconfigdirs target-libffi"
3576     ;;
3577 esac
3578
3579 # Disable the go frontend on systems where it is known to not work. Please keep
3580 # this in sync with contrib/config-list.mk.
3581 case "${target}" in
3582 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3583     unsupported_languages="$unsupported_languages go"
3584     ;;
3585 esac
3586
3587 # Only allow gdbserver on some systems.
3588 if test -d ${srcdir}/gdbserver; then
3589     if test x$enable_gdbserver = x; then
3590         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3591 $as_echo_n "checking for gdbserver support... " >&6; }
3592         if (srcdir=${srcdir}/gdbserver; \
3593                 . ${srcdir}/configure.srv; \
3594                 test -n "$UNSUPPORTED")
3595         then
3596             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3598             noconfigdirs="$noconfigdirs gdbserver"
3599         else
3600             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3601 $as_echo "yes" >&6; }
3602         fi
3603     fi
3604 fi
3605
3606 # Disable libgo for some systems where it is known to not work.
3607 # For testing, you can easily override this with --enable-libgo.
3608 if test x$enable_libgo = x; then
3609     case "${target}" in
3610     *-*-darwin*)
3611         # PR 46986
3612         noconfigdirs="$noconfigdirs target-libgo"
3613         ;;
3614     *-*-cygwin* | *-*-mingw*)
3615         noconfigdirs="$noconfigdirs target-libgo"
3616         ;;
3617     bpf-*-*)
3618         noconfigdirs="$noconfigdirs target-libgo"
3619         ;;
3620     esac
3621 fi
3622
3623 # Default libgloss CPU subdirectory.
3624 libgloss_dir="$target_cpu"
3625
3626 case "${target}" in
3627   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3628     libgloss_dir=wince
3629     ;;
3630   aarch64*-*-* )
3631     libgloss_dir=aarch64
3632     ;;
3633   arm*-*-*)
3634     libgloss_dir=arm
3635     ;;
3636   cris-*-* | crisv32-*-*)
3637     libgloss_dir=cris
3638     ;;
3639   hppa*-*-*)
3640     libgloss_dir=pa
3641     ;;
3642   i[3456789]86-*-*)
3643     libgloss_dir=i386
3644     ;;
3645   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3646     libgloss_dir=m68hc11
3647     ;;
3648   m68*-*-* | fido-*-*)
3649     libgloss_dir=m68k
3650     ;;
3651   mips*-*-*)
3652     libgloss_dir=mips
3653     ;;
3654   powerpc*-*-*)
3655     libgloss_dir=rs6000
3656     ;;
3657   pru-*-*)
3658     libgloss_dir=pru
3659     ;;
3660   sparc*-*-*)
3661     libgloss_dir=sparc
3662     ;;
3663 esac
3664
3665 # Disable newlib and libgloss for various target OSes.
3666 case "${target}" in
3667   alpha*-dec-osf*)
3668     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3669     ;;
3670   i[3456789]86-*-linux*)
3671     # This section makes it possible to build newlib natively on linux.
3672     # If we are using a cross compiler then don't configure newlib.
3673     if test x${is_cross_compiler} != xno ; then
3674       noconfigdirs="$noconfigdirs target-newlib"
3675     fi
3676     noconfigdirs="$noconfigdirs target-libgloss"
3677     # If we are not using a cross compiler, do configure newlib.
3678     # Note however, that newlib will only be configured in this situation
3679     # if the --with-newlib option has been given, because otherwise
3680     # 'target-newlib' will appear in skipdirs.
3681     ;;
3682   i[3456789]86-*-rdos*)
3683     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3684     ;;
3685   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3686     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687     ;;
3688   sparc-*-sunos4*)
3689     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3690     ;;
3691   bpf-*-*)
3692     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693     ;;
3694   *-*-aix*)
3695     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3696     ;;
3697   *-*-beos*)
3698     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3699     ;;
3700   *-*-chorusos)
3701     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3702     ;;
3703   *-*-dragonfly*)
3704     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3705     ;;
3706   *-*-freebsd*)
3707     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3708     ;;
3709   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3710     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3711     ;;
3712   *-*-lynxos*)
3713     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3714     ;;
3715   *-*-mingw*)
3716     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3717     ;;
3718   *-*-netbsd*)
3719     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720     ;;
3721   *-*-netware*)
3722     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723     ;;
3724   *-*-tpf*)
3725     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3726     ;;
3727   *-*-uclinux*)
3728     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3729     ;;
3730   *-*-vxworks*)
3731     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3732     ;;
3733 esac
3734
3735 case "${target}" in
3736   *-*-chorusos)
3737     ;;
3738   aarch64-*-darwin*)
3739     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3740     noconfigdirs="$noconfigdirs sim target-rda"
3741     ;;
3742   amdgcn*-*-*)
3743     ;;
3744   arm-*-darwin*)
3745     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3746     noconfigdirs="$noconfigdirs sim target-rda"
3747     ;;
3748   powerpc-*-darwin*)
3749     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3750     noconfigdirs="$noconfigdirs sim target-rda"
3751     ;;
3752   i[3456789]86-*-darwin*)
3753     noconfigdirs="$noconfigdirs ld gprof"
3754     noconfigdirs="$noconfigdirs sim target-rda"
3755     ;;
3756   x86_64-*-darwin[912]*)
3757     noconfigdirs="$noconfigdirs ld gas gprof"
3758     noconfigdirs="$noconfigdirs sim target-rda"
3759     ;;
3760   *-*-darwin*)
3761     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3762     noconfigdirs="$noconfigdirs sim target-rda"
3763     ;;
3764   *-*-dragonfly*)
3765     ;;
3766   *-*-freebsd*)
3767     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3768         && ! test -d ${srcdir}/gmp \
3769         && test -f /usr/local/include/gmp.h; then
3770       with_gmp=/usr/local
3771     fi
3772     ;;
3773   *-*-kaos*)
3774     # Remove unsupported stuff on all kaOS configurations.
3775     noconfigdirs="$noconfigdirs target-libgloss"
3776     ;;
3777   *-*-netbsd*)
3778     ;;
3779   *-*-netware*)
3780     ;;
3781   *-*-phoenix*)
3782     noconfigdirs="$noconfigdirs target-libgloss"
3783     ;;
3784   *-*-rtems*)
3785     noconfigdirs="$noconfigdirs target-libgloss"
3786     ;;
3787     # The tpf target doesn't support gdb yet.
3788   *-*-tpf*)
3789     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3790     ;;
3791   *-*-uclinux*)
3792     noconfigdirs="$noconfigdirs target-rda"
3793     ;;
3794   *-*-vxworks*)
3795     ;;
3796   alpha*-dec-osf*)
3797     # ld works, but does not support shared libraries.
3798     # gas doesn't generate exception information.
3799     noconfigdirs="$noconfigdirs gas ld"
3800     ;;
3801   alpha*-*-*vms*)
3802     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3803     ;;
3804   alpha*-*-*)
3805     # newlib is not 64 bit ready
3806     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3807     ;;
3808   bpf-*-*)
3809     noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3810     ;;
3811   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3812     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3813     ;;
3814   arc*-*-*)
3815     noconfigdirs="$noconfigdirs sim"
3816     ;;
3817   arm-*-pe*)
3818     noconfigdirs="$noconfigdirs target-libgloss"
3819     ;;
3820   arm-*-riscix*)
3821     noconfigdirs="$noconfigdirs ld target-libgloss"
3822     ;;
3823   avr-*-*)
3824     if test x${with_avrlibc} != xno; then
3825       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3826     fi
3827     ;;
3828   c4x-*-* | tic4x-*-*)
3829     noconfigdirs="$noconfigdirs target-libgloss"
3830     ;;
3831   tic54x-*-*)
3832     noconfigdirs="$noconfigdirs target-libgloss gdb"
3833     ;;
3834   d10v-*-*)
3835     noconfigdirs="$noconfigdirs target-libgloss"
3836     ;;
3837   d30v-*-*)
3838     noconfigdirs="$noconfigdirs gdb"
3839     ;;
3840   fr30-*-elf*)
3841     noconfigdirs="$noconfigdirs gdb"
3842     ;;
3843   ft32-*-*)
3844     noconfigdirs="$noconfigdirs target-rda gprof"
3845     ;;
3846   moxie-*-*)
3847     noconfigdirs="$noconfigdirs"
3848     ;;
3849   h8300*-*-*)
3850     noconfigdirs="$noconfigdirs target-libgloss"
3851     ;;
3852   h8500-*-*)
3853     noconfigdirs="$noconfigdirs target-libgloss"
3854     ;;
3855   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3856     ;;
3857   hppa*64*-*-hpux*)
3858     noconfigdirs="$noconfigdirs gdb"
3859     ;;
3860   hppa*-*-hpux11*)
3861     noconfigdirs="$noconfigdirs gdb ld"
3862     ;;
3863   hppa*64*-*-linux*)
3864     ;;
3865   hppa*-*-linux*)
3866     ;;
3867   hppa*-*-*elf* | \
3868   hppa*-*-lites* | \
3869   hppa*-*-openbsd* | \
3870   hppa*64*-*-*)
3871     ;;
3872   hppa*-*-pro*)
3873     ;;
3874   hppa*-*-*)
3875     noconfigdirs="$noconfigdirs ld"
3876     ;;
3877   i960-*-*)
3878     noconfigdirs="$noconfigdirs gdb"
3879     ;;
3880   ia64*-*-elf*)
3881     # No gdb support yet.
3882     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3883     ;;
3884   ia64*-**-hpux*)
3885     # No ld support yet.
3886     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3887     ;;
3888   ia64*-*-*vms*)
3889     # No ld support yet.
3890     noconfigdirs="$noconfigdirs libgui itcl ld"
3891     ;;
3892   i[3456789]86-w64-mingw*)
3893     ;;
3894   i[3456789]86-*-mingw*)
3895     target_configdirs="$target_configdirs target-winsup"
3896     ;;
3897   *-*-cygwin*)
3898     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3899     noconfigdirs="$noconfigdirs target-libgloss"
3900     # always build newlib if winsup directory is present.
3901     if test -d "$srcdir/winsup/cygwin"; then
3902       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3903     elif test -d "$srcdir/newlib"; then
3904       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3905     fi
3906     ;;
3907   i[3456789]86-*-pe)
3908     noconfigdirs="$noconfigdirs target-libgloss"
3909     ;;
3910   i[3456789]86-*-sco3.2v5*)
3911     # The linker does not yet know about weak symbols in COFF,
3912     # and is not configured to handle mixed ELF and COFF.
3913     noconfigdirs="$noconfigdirs ld target-libgloss"
3914     ;;
3915   i[3456789]86-*-sco*)
3916     noconfigdirs="$noconfigdirs gprof target-libgloss"
3917     ;;
3918   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3919     noconfigdirs="$noconfigdirs target-libgloss"
3920     ;;
3921   i[3456789]86-*-sysv4*)
3922     noconfigdirs="$noconfigdirs target-libgloss"
3923     ;;
3924   i[3456789]86-*-beos*)
3925     noconfigdirs="$noconfigdirs gdb"
3926     ;;
3927   i[3456789]86-*-rdos*)
3928     noconfigdirs="$noconfigdirs gdb"
3929     ;;
3930   mmix-*-*)
3931     noconfigdirs="$noconfigdirs gdb"
3932     ;;
3933   mt-*-*)
3934     noconfigdirs="$noconfigdirs sim"
3935     ;;
3936   nfp-*-*)
3937     noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3938     noconfigdirs="$noconfigdirs $target_libraries"
3939     ;;
3940   pdp11-*-*)
3941     noconfigdirs="$noconfigdirs gdb gprof"
3942     ;;
3943   powerpc-*-aix*)
3944     # copied from rs6000-*-* entry
3945     noconfigdirs="$noconfigdirs gprof"
3946     ;;
3947   powerpc*-*-winnt* | powerpc*-*-pe*)
3948     target_configdirs="$target_configdirs target-winsup"
3949     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3950     # always build newlib.
3951     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3952     ;;
3953     # This is temporary until we can link against shared libraries
3954   powerpcle-*-solaris*)
3955     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3956     ;;
3957   powerpc-*-beos*)
3958     noconfigdirs="$noconfigdirs gdb"
3959     ;;
3960   rs6000-*-lynxos*)
3961     noconfigdirs="$noconfigdirs gprof"
3962     ;;
3963   rs6000-*-aix*)
3964     noconfigdirs="$noconfigdirs gprof"
3965     ;;
3966   rs6000-*-*)
3967     noconfigdirs="$noconfigdirs gprof"
3968     ;;
3969   m68k-apollo-*)
3970     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3971     ;;
3972   microblaze*)
3973     noconfigdirs="$noconfigdirs gprof"
3974     ;;
3975   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3976     if test x$with_newlib = xyes; then
3977       noconfigdirs="$noconfigdirs gprof"
3978     fi
3979     ;;
3980   mips*-*-irix5*)
3981     noconfigdirs="$noconfigdirs gprof target-libgloss"
3982     ;;
3983   mips*-*-irix6*)
3984     noconfigdirs="$noconfigdirs gprof target-libgloss"
3985     ;;
3986   mips*-*-bsd*)
3987     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3988     ;;
3989   mips*-*-linux*)
3990     ;;
3991   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3992   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3993     noconfigdirs="$noconfigdirs ld gas gprof"
3994     ;;
3995   mips*-*-*)
3996     noconfigdirs="$noconfigdirs gprof"
3997     ;;
3998   nvptx*-*-*)
3999     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4000     ;;
4001   sh-*-*)
4002     case "${target}" in
4003       sh*-*-elf)
4004          ;;
4005       *)
4006          noconfigdirs="$noconfigdirs target-libgloss" ;;
4007     esac
4008     ;;
4009   sparc-*-sunos4*)
4010     if test x${is_cross_compiler} = xno ; then
4011            use_gnu_ld=no
4012     fi
4013     ;;
4014   tic6x-*-*)
4015     noconfigdirs="$noconfigdirs sim"
4016     ;;
4017   tilepro*-*-* | tilegx*-*-*)
4018     noconfigdirs="$noconfigdirs sim"
4019     ;;
4020   v810-*-*)
4021     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4022     ;;
4023   vax-*-*)
4024     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4025     ;;
4026   wasm32-*-*)
4027     noconfigdirs="$noconfigdirs ld"
4028     ;;
4029 esac
4030
4031 # If we aren't building newlib, then don't build libgloss, since libgloss
4032 # depends upon some newlib header files.
4033 case "${noconfigdirs}" in
4034   *target-libgloss*) ;;
4035   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4036 esac
4037
4038 # Work in distributions that contain no compiler tools, like Autoconf.
4039 host_makefile_frag=/dev/null
4040 if test -d ${srcdir}/config ; then
4041 case "${host}" in
4042   i[3456789]86-*-msdosdjgpp*)
4043     host_makefile_frag="config/mh-djgpp"
4044     ;;
4045   *-cygwin*)
4046
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4048 $as_echo_n "checking to see if cat works as expected... " >&6; }
4049 echo a >cygwin-cat-check
4050 if test `cat cygwin-cat-check` = a ; then
4051   rm cygwin-cat-check
4052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4053 $as_echo "yes" >&6; }
4054 else
4055   rm cygwin-cat-check
4056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4058   as_fn_error $? "The cat command does not ignore carriage return characters.
4059   Please either mount the build directory in binary mode or run the following
4060   commands before running any configure script:
4061 set -o igncr
4062 export SHELLOPTS
4063   " "$LINENO" 5
4064 fi
4065
4066     host_makefile_frag="config/mh-cygwin"
4067     ;;
4068   *-mingw*)
4069     host_makefile_frag="config/mh-mingw"
4070     ;;
4071   alpha*-linux*)
4072     host_makefile_frag="config/mh-alpha-linux"
4073     ;;
4074   hppa*-hp-hpux10*)
4075     host_makefile_frag="config/mh-pa-hpux10"
4076     ;;
4077   hppa*-hp-hpux*)
4078     host_makefile_frag="config/mh-pa"
4079     ;;
4080   hppa*-*)
4081     host_makefile_frag="config/mh-pa"
4082     ;;
4083   i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4084     host_makefile_frag="config/mh-darwin"
4085     ;;
4086   powerpc-*-aix*)
4087     host_makefile_frag="config/mh-ppc-aix"
4088     ;;
4089   rs6000-*-aix*)
4090     host_makefile_frag="config/mh-ppc-aix"
4091     ;;
4092 esac
4093 fi
4094
4095 if test "${build}" != "${host}" ; then
4096   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4097   AS_FOR_BUILD=${AS_FOR_BUILD-as}
4098   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4099   CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4100   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4101   DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4102   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4103   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4104   GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4105   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4106   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4107   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4108   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4109   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4110   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4111 else
4112   AR_FOR_BUILD="\$(AR)"
4113   AS_FOR_BUILD="\$(AS)"
4114   CC_FOR_BUILD="\$(CC)"
4115   CXX_FOR_BUILD="\$(CXX)"
4116   DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4117   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4118   GOC_FOR_BUILD="\$(GOC)"
4119   GDC_FOR_BUILD="\$(GDC)"
4120   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4121   LD_FOR_BUILD="\$(LD)"
4122   NM_FOR_BUILD="\$(NM)"
4123   RANLIB_FOR_BUILD="\$(RANLIB)"
4124   WINDRES_FOR_BUILD="\$(WINDRES)"
4125   WINDMC_FOR_BUILD="\$(WINDMC)"
4126 fi
4127
4128 ac_ext=c
4129 ac_cpp='$CPP $CPPFLAGS'
4130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133 if test -n "$ac_tool_prefix"; then
4134   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4135 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_CC+:} false; then :
4139   $as_echo_n "(cached) " >&6
4140 else
4141   if test -n "$CC"; then
4142   ac_cv_prog_CC="$CC" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4146 do
4147   IFS=$as_save_IFS
4148   test -z "$as_dir" && as_dir=.
4149     for ac_exec_ext in '' $ac_executable_extensions; do
4150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153     break 2
4154   fi
4155 done
4156   done
4157 IFS=$as_save_IFS
4158
4159 fi
4160 fi
4161 CC=$ac_cv_prog_CC
4162 if test -n "$CC"; then
4163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4164 $as_echo "$CC" >&6; }
4165 else
4166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4168 fi
4169
4170
4171 fi
4172 if test -z "$ac_cv_prog_CC"; then
4173   ac_ct_CC=$CC
4174   # Extract the first word of "gcc", so it can be a program name with args.
4175 set dummy gcc; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4179   $as_echo_n "(cached) " >&6
4180 else
4181   if test -n "$ac_ct_CC"; then
4182   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4186 do
4187   IFS=$as_save_IFS
4188   test -z "$as_dir" && as_dir=.
4189     for ac_exec_ext in '' $ac_executable_extensions; do
4190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191     ac_cv_prog_ac_ct_CC="gcc"
4192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193     break 2
4194   fi
4195 done
4196   done
4197 IFS=$as_save_IFS
4198
4199 fi
4200 fi
4201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4202 if test -n "$ac_ct_CC"; then
4203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4204 $as_echo "$ac_ct_CC" >&6; }
4205 else
4206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4208 fi
4209
4210   if test "x$ac_ct_CC" = x; then
4211     CC=""
4212   else
4213     case $cross_compiling:$ac_tool_warned in
4214 yes:)
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4217 ac_tool_warned=yes ;;
4218 esac
4219     CC=$ac_ct_CC
4220   fi
4221 else
4222   CC="$ac_cv_prog_CC"
4223 fi
4224
4225 if test -z "$CC"; then
4226           if test -n "$ac_tool_prefix"; then
4227     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4228 set dummy ${ac_tool_prefix}cc; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_CC+:} false; then :
4232   $as_echo_n "(cached) " >&6
4233 else
4234   if test -n "$CC"; then
4235   ac_cv_prog_CC="$CC" # Let the user override the test.
4236 else
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4239 do
4240   IFS=$as_save_IFS
4241   test -z "$as_dir" && as_dir=.
4242     for ac_exec_ext in '' $ac_executable_extensions; do
4243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244     ac_cv_prog_CC="${ac_tool_prefix}cc"
4245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246     break 2
4247   fi
4248 done
4249   done
4250 IFS=$as_save_IFS
4251
4252 fi
4253 fi
4254 CC=$ac_cv_prog_CC
4255 if test -n "$CC"; then
4256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4257 $as_echo "$CC" >&6; }
4258 else
4259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4261 fi
4262
4263
4264   fi
4265 fi
4266 if test -z "$CC"; then
4267   # Extract the first word of "cc", so it can be a program name with args.
4268 set dummy cc; ac_word=$2
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270 $as_echo_n "checking for $ac_word... " >&6; }
4271 if ${ac_cv_prog_CC+:} false; then :
4272   $as_echo_n "(cached) " >&6
4273 else
4274   if test -n "$CC"; then
4275   ac_cv_prog_CC="$CC" # Let the user override the test.
4276 else
4277   ac_prog_rejected=no
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4280 do
4281   IFS=$as_save_IFS
4282   test -z "$as_dir" && as_dir=.
4283     for ac_exec_ext in '' $ac_executable_extensions; do
4284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4286        ac_prog_rejected=yes
4287        continue
4288      fi
4289     ac_cv_prog_CC="cc"
4290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291     break 2
4292   fi
4293 done
4294   done
4295 IFS=$as_save_IFS
4296
4297 if test $ac_prog_rejected = yes; then
4298   # We found a bogon in the path, so make sure we never use it.
4299   set dummy $ac_cv_prog_CC
4300   shift
4301   if test $# != 0; then
4302     # We chose a different compiler from the bogus one.
4303     # However, it has the same basename, so the bogon will be chosen
4304     # first if we set CC to just the basename; use the full file name.
4305     shift
4306     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4307   fi
4308 fi
4309 fi
4310 fi
4311 CC=$ac_cv_prog_CC
4312 if test -n "$CC"; then
4313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4314 $as_echo "$CC" >&6; }
4315 else
4316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4318 fi
4319
4320
4321 fi
4322 if test -z "$CC"; then
4323   if test -n "$ac_tool_prefix"; then
4324   for ac_prog in cl.exe
4325   do
4326     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4329 $as_echo_n "checking for $ac_word... " >&6; }
4330 if ${ac_cv_prog_CC+:} false; then :
4331   $as_echo_n "(cached) " >&6
4332 else
4333   if test -n "$CC"; then
4334   ac_cv_prog_CC="$CC" # Let the user override the test.
4335 else
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4338 do
4339   IFS=$as_save_IFS
4340   test -z "$as_dir" && as_dir=.
4341     for ac_exec_ext in '' $ac_executable_extensions; do
4342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4343     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345     break 2
4346   fi
4347 done
4348   done
4349 IFS=$as_save_IFS
4350
4351 fi
4352 fi
4353 CC=$ac_cv_prog_CC
4354 if test -n "$CC"; then
4355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4356 $as_echo "$CC" >&6; }
4357 else
4358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4360 fi
4361
4362
4363     test -n "$CC" && break
4364   done
4365 fi
4366 if test -z "$CC"; then
4367   ac_ct_CC=$CC
4368   for ac_prog in cl.exe
4369 do
4370   # Extract the first word of "$ac_prog", so it can be a program name with args.
4371 set dummy $ac_prog; ac_word=$2
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4373 $as_echo_n "checking for $ac_word... " >&6; }
4374 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4375   $as_echo_n "(cached) " >&6
4376 else
4377   if test -n "$ac_ct_CC"; then
4378   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4379 else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383   IFS=$as_save_IFS
4384   test -z "$as_dir" && as_dir=.
4385     for ac_exec_ext in '' $ac_executable_extensions; do
4386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4387     ac_cv_prog_ac_ct_CC="$ac_prog"
4388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4389     break 2
4390   fi
4391 done
4392   done
4393 IFS=$as_save_IFS
4394
4395 fi
4396 fi
4397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4398 if test -n "$ac_ct_CC"; then
4399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4400 $as_echo "$ac_ct_CC" >&6; }
4401 else
4402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403 $as_echo "no" >&6; }
4404 fi
4405
4406
4407   test -n "$ac_ct_CC" && break
4408 done
4409
4410   if test "x$ac_ct_CC" = x; then
4411     CC=""
4412   else
4413     case $cross_compiling:$ac_tool_warned in
4414 yes:)
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4417 ac_tool_warned=yes ;;
4418 esac
4419     CC=$ac_ct_CC
4420   fi
4421 fi
4422
4423 fi
4424
4425
4426 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428 as_fn_error $? "no acceptable C compiler found in \$PATH
4429 See \`config.log' for more details" "$LINENO" 5; }
4430
4431 # Provide some information about the compiler.
4432 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4433 set X $ac_compile
4434 ac_compiler=$2
4435 for ac_option in --version -v -V -qversion; do
4436   { { ac_try="$ac_compiler $ac_option >&5"
4437 case "(($ac_try" in
4438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439   *) ac_try_echo=$ac_try;;
4440 esac
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 $as_echo "$ac_try_echo"; } >&5
4443   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4444   ac_status=$?
4445   if test -s conftest.err; then
4446     sed '10a\
4447 ... rest of stderr output deleted ...
4448          10q' conftest.err >conftest.er1
4449     cat conftest.er1 >&5
4450   fi
4451   rm -f conftest.er1 conftest.err
4452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4453   test $ac_status = 0; }
4454 done
4455
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h.  */
4458
4459 int
4460 main ()
4461 {
4462
4463   ;
4464   return 0;
4465 }
4466 _ACEOF
4467 ac_clean_files_save=$ac_clean_files
4468 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4469 # Try to create an executable without -o first, disregard a.out.
4470 # It will help us diagnose broken compilers, and finding out an intuition
4471 # of exeext.
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4473 $as_echo_n "checking whether the C compiler works... " >&6; }
4474 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4475
4476 # The possible output files:
4477 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4478
4479 ac_rmfiles=
4480 for ac_file in $ac_files
4481 do
4482   case $ac_file in
4483     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4484     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4485   esac
4486 done
4487 rm -f $ac_rmfiles
4488
4489 if { { ac_try="$ac_link_default"
4490 case "(($ac_try" in
4491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492   *) ac_try_echo=$ac_try;;
4493 esac
4494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4495 $as_echo "$ac_try_echo"; } >&5
4496   (eval "$ac_link_default") 2>&5
4497   ac_status=$?
4498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4499   test $ac_status = 0; }; then :
4500   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4501 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4502 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4503 # so that the user can short-circuit this test for compilers unknown to
4504 # Autoconf.
4505 for ac_file in $ac_files ''
4506 do
4507   test -f "$ac_file" || continue
4508   case $ac_file in
4509     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4510         ;;
4511     [ab].out )
4512         # We found the default executable, but exeext='' is most
4513         # certainly right.
4514         break;;
4515     *.* )
4516         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4517         then :; else
4518            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4519         fi
4520         # We set ac_cv_exeext here because the later test for it is not
4521         # safe: cross compilers may not add the suffix if given an `-o'
4522         # argument, so we may need to know it at that point already.
4523         # Even if this section looks crufty: it has the advantage of
4524         # actually working.
4525         break;;
4526     * )
4527         break;;
4528   esac
4529 done
4530 test "$ac_cv_exeext" = no && ac_cv_exeext=
4531
4532 else
4533   ac_file=''
4534 fi
4535 if test -z "$ac_file"; then :
4536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4538 $as_echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4540
4541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4543 as_fn_error 77 "C compiler cannot create executables
4544 See \`config.log' for more details" "$LINENO" 5; }
4545 else
4546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4547 $as_echo "yes" >&6; }
4548 fi
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4550 $as_echo_n "checking for C compiler default output file name... " >&6; }
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4552 $as_echo "$ac_file" >&6; }
4553 ac_exeext=$ac_cv_exeext
4554
4555 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4556 ac_clean_files=$ac_clean_files_save
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4558 $as_echo_n "checking for suffix of executables... " >&6; }
4559 if { { ac_try="$ac_link"
4560 case "(($ac_try" in
4561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562   *) ac_try_echo=$ac_try;;
4563 esac
4564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4565 $as_echo "$ac_try_echo"; } >&5
4566   (eval "$ac_link") 2>&5
4567   ac_status=$?
4568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4569   test $ac_status = 0; }; then :
4570   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4571 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4572 # work properly (i.e., refer to `conftest.exe'), while it won't with
4573 # `rm'.
4574 for ac_file in conftest.exe conftest conftest.*; do
4575   test -f "$ac_file" || continue
4576   case $ac_file in
4577     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4578     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4579           break;;
4580     * ) break;;
4581   esac
4582 done
4583 else
4584   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4586 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4587 See \`config.log' for more details" "$LINENO" 5; }
4588 fi
4589 rm -f conftest conftest$ac_cv_exeext
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4591 $as_echo "$ac_cv_exeext" >&6; }
4592
4593 rm -f conftest.$ac_ext
4594 EXEEXT=$ac_cv_exeext
4595 ac_exeext=$EXEEXT
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h.  */
4598 #include <stdio.h>
4599 int
4600 main ()
4601 {
4602 FILE *f = fopen ("conftest.out", "w");
4603  return ferror (f) || fclose (f) != 0;
4604
4605   ;
4606   return 0;
4607 }
4608 _ACEOF
4609 ac_clean_files="$ac_clean_files conftest.out"
4610 # Check that the compiler produces executables we can run.  If not, either
4611 # the compiler is broken, or we cross compile.
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4613 $as_echo_n "checking whether we are cross compiling... " >&6; }
4614 if test "$cross_compiling" != yes; then
4615   { { ac_try="$ac_link"
4616 case "(($ac_try" in
4617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618   *) ac_try_echo=$ac_try;;
4619 esac
4620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4621 $as_echo "$ac_try_echo"; } >&5
4622   (eval "$ac_link") 2>&5
4623   ac_status=$?
4624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4625   test $ac_status = 0; }
4626   if { ac_try='./conftest$ac_cv_exeext'
4627   { { case "(($ac_try" in
4628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629   *) ac_try_echo=$ac_try;;
4630 esac
4631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4632 $as_echo "$ac_try_echo"; } >&5
4633   (eval "$ac_try") 2>&5
4634   ac_status=$?
4635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4636   test $ac_status = 0; }; }; then
4637     cross_compiling=no
4638   else
4639     if test "$cross_compiling" = maybe; then
4640         cross_compiling=yes
4641     else
4642         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4644 as_fn_error $? "cannot run C compiled programs.
4645 If you meant to cross compile, use \`--host'.
4646 See \`config.log' for more details" "$LINENO" 5; }
4647     fi
4648   fi
4649 fi
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4651 $as_echo "$cross_compiling" >&6; }
4652
4653 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4654 ac_clean_files=$ac_clean_files_save
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4656 $as_echo_n "checking for suffix of object files... " >&6; }
4657 if ${ac_cv_objext+:} false; then :
4658   $as_echo_n "(cached) " >&6
4659 else
4660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h.  */
4662
4663 int
4664 main ()
4665 {
4666
4667   ;
4668   return 0;
4669 }
4670 _ACEOF
4671 rm -f conftest.o conftest.obj
4672 if { { ac_try="$ac_compile"
4673 case "(($ac_try" in
4674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675   *) ac_try_echo=$ac_try;;
4676 esac
4677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4678 $as_echo "$ac_try_echo"; } >&5
4679   (eval "$ac_compile") 2>&5
4680   ac_status=$?
4681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4682   test $ac_status = 0; }; then :
4683   for ac_file in conftest.o conftest.obj conftest.*; do
4684   test -f "$ac_file" || continue;
4685   case $ac_file in
4686     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4687     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4688        break;;
4689   esac
4690 done
4691 else
4692   $as_echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4694
4695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4697 as_fn_error $? "cannot compute suffix of object files: cannot compile
4698 See \`config.log' for more details" "$LINENO" 5; }
4699 fi
4700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4703 $as_echo "$ac_cv_objext" >&6; }
4704 OBJEXT=$ac_cv_objext
4705 ac_objext=$OBJEXT
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4707 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4708 if ${ac_cv_c_compiler_gnu+:} false; then :
4709   $as_echo_n "(cached) " >&6
4710 else
4711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h.  */
4713
4714 int
4715 main ()
4716 {
4717 #ifndef __GNUC__
4718        choke me
4719 #endif
4720
4721   ;
4722   return 0;
4723 }
4724 _ACEOF
4725 if ac_fn_c_try_compile "$LINENO"; then :
4726   ac_compiler_gnu=yes
4727 else
4728   ac_compiler_gnu=no
4729 fi
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4732
4733 fi
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4735 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4736 if test $ac_compiler_gnu = yes; then
4737   GCC=yes
4738 else
4739   GCC=
4740 fi
4741 ac_test_CFLAGS=${CFLAGS+set}
4742 ac_save_CFLAGS=$CFLAGS
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4744 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4745 if ${ac_cv_prog_cc_g+:} false; then :
4746   $as_echo_n "(cached) " >&6
4747 else
4748   ac_save_c_werror_flag=$ac_c_werror_flag
4749    ac_c_werror_flag=yes
4750    ac_cv_prog_cc_g=no
4751    CFLAGS="-g"
4752    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h.  */
4754
4755 int
4756 main ()
4757 {
4758
4759   ;
4760   return 0;
4761 }
4762 _ACEOF
4763 if ac_fn_c_try_compile "$LINENO"; then :
4764   ac_cv_prog_cc_g=yes
4765 else
4766   CFLAGS=""
4767       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h.  */
4769
4770 int
4771 main ()
4772 {
4773
4774   ;
4775   return 0;
4776 }
4777 _ACEOF
4778 if ac_fn_c_try_compile "$LINENO"; then :
4779
4780 else
4781   ac_c_werror_flag=$ac_save_c_werror_flag
4782          CFLAGS="-g"
4783          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h.  */
4785
4786 int
4787 main ()
4788 {
4789
4790   ;
4791   return 0;
4792 }
4793 _ACEOF
4794 if ac_fn_c_try_compile "$LINENO"; then :
4795   ac_cv_prog_cc_g=yes
4796 fi
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 fi
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800 fi
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802    ac_c_werror_flag=$ac_save_c_werror_flag
4803 fi
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4805 $as_echo "$ac_cv_prog_cc_g" >&6; }
4806 if test "$ac_test_CFLAGS" = set; then
4807   CFLAGS=$ac_save_CFLAGS
4808 elif test $ac_cv_prog_cc_g = yes; then
4809   if test "$GCC" = yes; then
4810     CFLAGS="-g -O2"
4811   else
4812     CFLAGS="-g"
4813   fi
4814 else
4815   if test "$GCC" = yes; then
4816     CFLAGS="-O2"
4817   else
4818     CFLAGS=
4819   fi
4820 fi
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4822 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4823 if ${ac_cv_prog_cc_c89+:} false; then :
4824   $as_echo_n "(cached) " >&6
4825 else
4826   ac_cv_prog_cc_c89=no
4827 ac_save_CC=$CC
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h.  */
4830 #include <stdarg.h>
4831 #include <stdio.h>
4832 struct stat;
4833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4834 struct buf { int x; };
4835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4836 static char *e (p, i)
4837      char **p;
4838      int i;
4839 {
4840   return p[i];
4841 }
4842 static char *f (char * (*g) (char **, int), char **p, ...)
4843 {
4844   char *s;
4845   va_list v;
4846   va_start (v,p);
4847   s = g (p, va_arg (v,int));
4848   va_end (v);
4849   return s;
4850 }
4851
4852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4853    function prototypes and stuff, but not '\xHH' hex character constants.
4854    These don't provoke an error unfortunately, instead are silently treated
4855    as 'x'.  The following induces an error, until -std is added to get
4856    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4857    array size at least.  It's necessary to write '\x00'==0 to get something
4858    that's true only with -std.  */
4859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4860
4861 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4862    inside strings and character constants.  */
4863 #define FOO(x) 'x'
4864 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4865
4866 int test (int i, double x);
4867 struct s1 {int (*f) (int a);};
4868 struct s2 {int (*f) (double a);};
4869 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4870 int argc;
4871 char **argv;
4872 int
4873 main ()
4874 {
4875 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4876   ;
4877   return 0;
4878 }
4879 _ACEOF
4880 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4881         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4882 do
4883   CC="$ac_save_CC $ac_arg"
4884   if ac_fn_c_try_compile "$LINENO"; then :
4885   ac_cv_prog_cc_c89=$ac_arg
4886 fi
4887 rm -f core conftest.err conftest.$ac_objext
4888   test "x$ac_cv_prog_cc_c89" != "xno" && break
4889 done
4890 rm -f conftest.$ac_ext
4891 CC=$ac_save_CC
4892
4893 fi
4894 # AC_CACHE_VAL
4895 case "x$ac_cv_prog_cc_c89" in
4896   x)
4897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4898 $as_echo "none needed" >&6; } ;;
4899   xno)
4900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4901 $as_echo "unsupported" >&6; } ;;
4902   *)
4903     CC="$CC $ac_cv_prog_cc_c89"
4904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4905 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4906 esac
4907 if test "x$ac_cv_prog_cc_c89" != xno; then :
4908
4909 fi
4910
4911 ac_ext=c
4912 ac_cpp='$CPP $CPPFLAGS'
4913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916
4917    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4918 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4919 if ${ac_cv_prog_cc_c99+:} false; then :
4920   $as_echo_n "(cached) " >&6
4921 else
4922   ac_cv_prog_cc_c99=no
4923 ac_save_CC=$CC
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h.  */
4926 #include <stdarg.h>
4927 #include <stdbool.h>
4928 #include <stdlib.h>
4929 #include <wchar.h>
4930 #include <stdio.h>
4931
4932 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4933 #define debug(...) fprintf (stderr, __VA_ARGS__)
4934 #define showlist(...) puts (#__VA_ARGS__)
4935 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4936 static void
4937 test_varargs_macros (void)
4938 {
4939   int x = 1234;
4940   int y = 5678;
4941   debug ("Flag");
4942   debug ("X = %d\n", x);
4943   showlist (The first, second, and third items.);
4944   report (x>y, "x is %d but y is %d", x, y);
4945 }
4946
4947 // Check long long types.
4948 #define BIG64 18446744073709551615ull
4949 #define BIG32 4294967295ul
4950 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4951 #if !BIG_OK
4952   your preprocessor is broken;
4953 #endif
4954 #if BIG_OK
4955 #else
4956   your preprocessor is broken;
4957 #endif
4958 static long long int bignum = -9223372036854775807LL;
4959 static unsigned long long int ubignum = BIG64;
4960
4961 struct incomplete_array
4962 {
4963   int datasize;
4964   double data[];
4965 };
4966
4967 struct named_init {
4968   int number;
4969   const wchar_t *name;
4970   double average;
4971 };
4972
4973 typedef const char *ccp;
4974
4975 static inline int
4976 test_restrict (ccp restrict text)
4977 {
4978   // See if C++-style comments work.
4979   // Iterate through items via the restricted pointer.
4980   // Also check for declarations in for loops.
4981   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4982     continue;
4983   return 0;
4984 }
4985
4986 // Check varargs and va_copy.
4987 static void
4988 test_varargs (const char *format, ...)
4989 {
4990   va_list args;
4991   va_start (args, format);
4992   va_list args_copy;
4993   va_copy (args_copy, args);
4994
4995   const char *str;
4996   int number;
4997   float fnumber;
4998
4999   while (*format)
5000     {
5001       switch (*format++)
5002         {
5003         case 's': // string
5004           str = va_arg (args_copy, const char *);
5005           break;
5006         case 'd': // int
5007           number = va_arg (args_copy, int);
5008           break;
5009         case 'f': // float
5010           fnumber = va_arg (args_copy, double);
5011           break;
5012         default:
5013           break;
5014         }
5015     }
5016   va_end (args_copy);
5017   va_end (args);
5018 }
5019
5020 int
5021 main ()
5022 {
5023
5024   // Check bool.
5025   _Bool success = false;
5026
5027   // Check restrict.
5028   if (test_restrict ("String literal") == 0)
5029     success = true;
5030   char *restrict newvar = "Another string";
5031
5032   // Check varargs.
5033   test_varargs ("s, d' f .", "string", 65, 34.234);
5034   test_varargs_macros ();
5035
5036   // Check flexible array members.
5037   struct incomplete_array *ia =
5038     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5039   ia->datasize = 10;
5040   for (int i = 0; i < ia->datasize; ++i)
5041     ia->data[i] = i * 1.234;
5042
5043   // Check named initializers.
5044   struct named_init ni = {
5045     .number = 34,
5046     .name = L"Test wide string",
5047     .average = 543.34343,
5048   };
5049
5050   ni.number = 58;
5051
5052   int dynamic_array[ni.number];
5053   dynamic_array[ni.number - 1] = 543;
5054
5055   // work around unused variable warnings
5056   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5057           || dynamic_array[ni.number - 1] != 543);
5058
5059   ;
5060   return 0;
5061 }
5062 _ACEOF
5063 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5064 do
5065   CC="$ac_save_CC $ac_arg"
5066   if ac_fn_c_try_compile "$LINENO"; then :
5067   ac_cv_prog_cc_c99=$ac_arg
5068 fi
5069 rm -f core conftest.err conftest.$ac_objext
5070   test "x$ac_cv_prog_cc_c99" != "xno" && break
5071 done
5072 rm -f conftest.$ac_ext
5073 CC=$ac_save_CC
5074
5075 fi
5076 # AC_CACHE_VAL
5077 case "x$ac_cv_prog_cc_c99" in
5078   x)
5079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5080 $as_echo "none needed" >&6; } ;;
5081   xno)
5082     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5083 $as_echo "unsupported" >&6; } ;;
5084   *)
5085     CC="$CC $ac_cv_prog_cc_c99"
5086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5087 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5088 esac
5089 if test "x$ac_cv_prog_cc_c99" != xno; then :
5090
5091 fi
5092
5093
5094 ac_ext=cpp
5095 ac_cpp='$CXXCPP $CPPFLAGS'
5096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5099 if test -z "$CXX"; then
5100   if test -n "$CCC"; then
5101     CXX=$CCC
5102   else
5103     if test -n "$ac_tool_prefix"; then
5104   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5105   do
5106     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5107 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if ${ac_cv_prog_CXX+:} false; then :
5111   $as_echo_n "(cached) " >&6
5112 else
5113   if test -n "$CXX"; then
5114   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5118 do
5119   IFS=$as_save_IFS
5120   test -z "$as_dir" && as_dir=.
5121     for ac_exec_ext in '' $ac_executable_extensions; do
5122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125     break 2
5126   fi
5127 done
5128   done
5129 IFS=$as_save_IFS
5130
5131 fi
5132 fi
5133 CXX=$ac_cv_prog_CXX
5134 if test -n "$CXX"; then
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5136 $as_echo "$CXX" >&6; }
5137 else
5138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5140 fi
5141
5142
5143     test -n "$CXX" && break
5144   done
5145 fi
5146 if test -z "$CXX"; then
5147   ac_ct_CXX=$CXX
5148   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5149 do
5150   # Extract the first word of "$ac_prog", so it can be a program name with args.
5151 set dummy $ac_prog; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5155   $as_echo_n "(cached) " >&6
5156 else
5157   if test -n "$ac_ct_CXX"; then
5158   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163   IFS=$as_save_IFS
5164   test -z "$as_dir" && as_dir=.
5165     for ac_exec_ext in '' $ac_executable_extensions; do
5166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167     ac_cv_prog_ac_ct_CXX="$ac_prog"
5168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169     break 2
5170   fi
5171 done
5172   done
5173 IFS=$as_save_IFS
5174
5175 fi
5176 fi
5177 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5178 if test -n "$ac_ct_CXX"; then
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5180 $as_echo "$ac_ct_CXX" >&6; }
5181 else
5182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5184 fi
5185
5186
5187   test -n "$ac_ct_CXX" && break
5188 done
5189
5190   if test "x$ac_ct_CXX" = x; then
5191     CXX="g++"
5192   else
5193     case $cross_compiling:$ac_tool_warned in
5194 yes:)
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5197 ac_tool_warned=yes ;;
5198 esac
5199     CXX=$ac_ct_CXX
5200   fi
5201 fi
5202
5203   fi
5204 fi
5205 # Provide some information about the compiler.
5206 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5207 set X $ac_compile
5208 ac_compiler=$2
5209 for ac_option in --version -v -V -qversion; do
5210   { { ac_try="$ac_compiler $ac_option >&5"
5211 case "(($ac_try" in
5212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213   *) ac_try_echo=$ac_try;;
5214 esac
5215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5216 $as_echo "$ac_try_echo"; } >&5
5217   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5218   ac_status=$?
5219   if test -s conftest.err; then
5220     sed '10a\
5221 ... rest of stderr output deleted ...
5222          10q' conftest.err >conftest.er1
5223     cat conftest.er1 >&5
5224   fi
5225   rm -f conftest.er1 conftest.err
5226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5227   test $ac_status = 0; }
5228 done
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5231 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5232 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5233   $as_echo_n "(cached) " >&6
5234 else
5235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h.  */
5237
5238 int
5239 main ()
5240 {
5241 #ifndef __GNUC__
5242        choke me
5243 #endif
5244
5245   ;
5246   return 0;
5247 }
5248 _ACEOF
5249 if ac_fn_cxx_try_compile "$LINENO"; then :
5250   ac_compiler_gnu=yes
5251 else
5252   ac_compiler_gnu=no
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5256
5257 fi
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5259 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5260 if test $ac_compiler_gnu = yes; then
5261   GXX=yes
5262 else
5263   GXX=
5264 fi
5265 ac_test_CXXFLAGS=${CXXFLAGS+set}
5266 ac_save_CXXFLAGS=$CXXFLAGS
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5268 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5269 if ${ac_cv_prog_cxx_g+:} false; then :
5270   $as_echo_n "(cached) " >&6
5271 else
5272   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5273    ac_cxx_werror_flag=yes
5274    ac_cv_prog_cxx_g=no
5275    CXXFLAGS="-g"
5276    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h.  */
5278
5279 int
5280 main ()
5281 {
5282
5283   ;
5284   return 0;
5285 }
5286 _ACEOF
5287 if ac_fn_cxx_try_compile "$LINENO"; then :
5288   ac_cv_prog_cxx_g=yes
5289 else
5290   CXXFLAGS=""
5291       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h.  */
5293
5294 int
5295 main ()
5296 {
5297
5298   ;
5299   return 0;
5300 }
5301 _ACEOF
5302 if ac_fn_cxx_try_compile "$LINENO"; then :
5303
5304 else
5305   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5306          CXXFLAGS="-g"
5307          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h.  */
5309
5310 int
5311 main ()
5312 {
5313
5314   ;
5315   return 0;
5316 }
5317 _ACEOF
5318 if ac_fn_cxx_try_compile "$LINENO"; then :
5319   ac_cv_prog_cxx_g=yes
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 fi
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324 fi
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5327 fi
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5329 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5330 if test "$ac_test_CXXFLAGS" = set; then
5331   CXXFLAGS=$ac_save_CXXFLAGS
5332 elif test $ac_cv_prog_cxx_g = yes; then
5333   if test "$GXX" = yes; then
5334     CXXFLAGS="-g -O2"
5335   else
5336     CXXFLAGS="-g"
5337   fi
5338 else
5339   if test "$GXX" = yes; then
5340     CXXFLAGS="-O2"
5341   else
5342     CXXFLAGS=
5343   fi
5344 fi
5345 ac_ext=c
5346 ac_cpp='$CPP $CPPFLAGS'
5347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5350
5351
5352 # We must set the default linker to the linker used by gcc for the correct
5353 # operation of libtool.  If LD is not defined and we are using gcc, try to
5354 # set the LD default to the ld used by gcc.
5355 if test -z "$LD"; then
5356   if test "$GCC" = yes; then
5357     case $build in
5358     *-*-mingw*)
5359       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5360     *)
5361       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5362     esac
5363     case $gcc_prog_ld in
5364     # Accept absolute paths.
5365     [\\/]* | [A-Za-z]:[\\/]*)
5366       LD="$gcc_prog_ld" ;;
5367     esac
5368   fi
5369 fi
5370
5371 # Check whether -static-libstdc++ -static-libgcc is supported.
5372 have_static_libs=no
5373 if test "$GCC" = yes; then
5374   saved_LDFLAGS="$LDFLAGS"
5375
5376   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5378 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5379   ac_ext=cpp
5380 ac_cpp='$CXXCPP $CPPFLAGS'
5381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5384
5385
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h.  */
5388
5389 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5390 #error -static-libstdc++ not implemented
5391 #endif
5392 int main() {}
5393 _ACEOF
5394 if ac_fn_cxx_try_link "$LINENO"; then :
5395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5396 $as_echo "yes" >&6; }; have_static_libs=yes
5397 else
5398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5400 fi
5401 rm -f core conftest.err conftest.$ac_objext \
5402     conftest$ac_exeext conftest.$ac_ext
5403   ac_ext=c
5404 ac_cpp='$CPP $CPPFLAGS'
5405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5408
5409
5410   LDFLAGS="$saved_LDFLAGS"
5411 fi
5412
5413
5414
5415
5416 if test -n "$ac_tool_prefix"; then
5417   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5418 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_prog_GNATBIND+:} false; then :
5422   $as_echo_n "(cached) " >&6
5423 else
5424   if test -n "$GNATBIND"; then
5425   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5426 else
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5429 do
5430   IFS=$as_save_IFS
5431   test -z "$as_dir" && as_dir=.
5432     for ac_exec_ext in '' $ac_executable_extensions; do
5433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436     break 2
5437   fi
5438 done
5439   done
5440 IFS=$as_save_IFS
5441
5442 fi
5443 fi
5444 GNATBIND=$ac_cv_prog_GNATBIND
5445 if test -n "$GNATBIND"; then
5446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5447 $as_echo "$GNATBIND" >&6; }
5448 else
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5451 fi
5452
5453
5454 fi
5455 if test -z "$ac_cv_prog_GNATBIND"; then
5456   ac_ct_GNATBIND=$GNATBIND
5457   # Extract the first word of "gnatbind", so it can be a program name with args.
5458 set dummy gnatbind; ac_word=$2
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460 $as_echo_n "checking for $ac_word... " >&6; }
5461 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5462   $as_echo_n "(cached) " >&6
5463 else
5464   if test -n "$ac_ct_GNATBIND"; then
5465   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5466 else
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5469 do
5470   IFS=$as_save_IFS
5471   test -z "$as_dir" && as_dir=.
5472     for ac_exec_ext in '' $ac_executable_extensions; do
5473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476     break 2
5477   fi
5478 done
5479   done
5480 IFS=$as_save_IFS
5481
5482 fi
5483 fi
5484 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5485 if test -n "$ac_ct_GNATBIND"; then
5486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5487 $as_echo "$ac_ct_GNATBIND" >&6; }
5488 else
5489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 $as_echo "no" >&6; }
5491 fi
5492
5493   if test "x$ac_ct_GNATBIND" = x; then
5494     GNATBIND="no"
5495   else
5496     case $cross_compiling:$ac_tool_warned in
5497 yes:)
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5500 ac_tool_warned=yes ;;
5501 esac
5502     GNATBIND=$ac_ct_GNATBIND
5503   fi
5504 else
5505   GNATBIND="$ac_cv_prog_GNATBIND"
5506 fi
5507
5508 if test -n "$ac_tool_prefix"; then
5509   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5510 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if ${ac_cv_prog_GNATMAKE+:} false; then :
5514   $as_echo_n "(cached) " >&6
5515 else
5516   if test -n "$GNATMAKE"; then
5517   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5518 else
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5521 do
5522   IFS=$as_save_IFS
5523   test -z "$as_dir" && as_dir=.
5524     for ac_exec_ext in '' $ac_executable_extensions; do
5525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5526     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528     break 2
5529   fi
5530 done
5531   done
5532 IFS=$as_save_IFS
5533
5534 fi
5535 fi
5536 GNATMAKE=$ac_cv_prog_GNATMAKE
5537 if test -n "$GNATMAKE"; then
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5539 $as_echo "$GNATMAKE" >&6; }
5540 else
5541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5543 fi
5544
5545
5546 fi
5547 if test -z "$ac_cv_prog_GNATMAKE"; then
5548   ac_ct_GNATMAKE=$GNATMAKE
5549   # Extract the first word of "gnatmake", so it can be a program name with args.
5550 set dummy gnatmake; ac_word=$2
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552 $as_echo_n "checking for $ac_word... " >&6; }
5553 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5554   $as_echo_n "(cached) " >&6
5555 else
5556   if test -n "$ac_ct_GNATMAKE"; then
5557   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5558 else
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH
5561 do
5562   IFS=$as_save_IFS
5563   test -z "$as_dir" && as_dir=.
5564     for ac_exec_ext in '' $ac_executable_extensions; do
5565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568     break 2
5569   fi
5570 done
5571   done
5572 IFS=$as_save_IFS
5573
5574 fi
5575 fi
5576 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5577 if test -n "$ac_ct_GNATMAKE"; then
5578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5579 $as_echo "$ac_ct_GNATMAKE" >&6; }
5580 else
5581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582 $as_echo "no" >&6; }
5583 fi
5584
5585   if test "x$ac_ct_GNATMAKE" = x; then
5586     GNATMAKE="no"
5587   else
5588     case $cross_compiling:$ac_tool_warned in
5589 yes:)
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5592 ac_tool_warned=yes ;;
5593 esac
5594     GNATMAKE=$ac_ct_GNATMAKE
5595   fi
5596 else
5597   GNATMAKE="$ac_cv_prog_GNATMAKE"
5598 fi
5599
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5601 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5602 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5603   $as_echo_n "(cached) " >&6
5604 else
5605   cat >conftest.adb <<EOF
5606 procedure conftest is begin null; end conftest;
5607 EOF
5608 acx_cv_cc_gcc_supports_ada=no
5609 # There is a bug in old released versions of GCC which causes the
5610 # driver to exit successfully when the appropriate language module
5611 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5612 # Therefore we must check for the error message as well as an
5613 # unsuccessful exit.
5614 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5615 # given a .adb file, but produce no object file.  So we must check
5616 # if an object file was really produced to guard against this.
5617 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5618 if test x"$errors" = x && test -f conftest.$ac_objext; then
5619   acx_cv_cc_gcc_supports_ada=yes
5620 fi
5621 rm -f conftest.*
5622 fi
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5624 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5625
5626 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5627   have_gnat=yes
5628 else
5629   have_gnat=no
5630 fi
5631
5632
5633
5634 if test -n "$ac_tool_prefix"; then
5635   # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5636 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 $as_echo_n "checking for $ac_word... " >&6; }
5639 if ${ac_cv_prog_GDC+:} false; then :
5640   $as_echo_n "(cached) " >&6
5641 else
5642   if test -n "$GDC"; then
5643   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5647 do
5648   IFS=$as_save_IFS
5649   test -z "$as_dir" && as_dir=.
5650     for ac_exec_ext in '' $ac_executable_extensions; do
5651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652     ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5654     break 2
5655   fi
5656 done
5657   done
5658 IFS=$as_save_IFS
5659
5660 fi
5661 fi
5662 GDC=$ac_cv_prog_GDC
5663 if test -n "$GDC"; then
5664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5665 $as_echo "$GDC" >&6; }
5666 else
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5669 fi
5670
5671
5672 fi
5673 if test -z "$ac_cv_prog_GDC"; then
5674   ac_ct_GDC=$GDC
5675   # Extract the first word of "gdc", so it can be a program name with args.
5676 set dummy gdc; ac_word=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5680   $as_echo_n "(cached) " >&6
5681 else
5682   if test -n "$ac_ct_GDC"; then
5683   ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5684 else
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5687 do
5688   IFS=$as_save_IFS
5689   test -z "$as_dir" && as_dir=.
5690     for ac_exec_ext in '' $ac_executable_extensions; do
5691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692     ac_cv_prog_ac_ct_GDC="gdc"
5693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694     break 2
5695   fi
5696 done
5697   done
5698 IFS=$as_save_IFS
5699
5700 fi
5701 fi
5702 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5703 if test -n "$ac_ct_GDC"; then
5704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5705 $as_echo "$ac_ct_GDC" >&6; }
5706 else
5707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5709 fi
5710
5711   if test "x$ac_ct_GDC" = x; then
5712     GDC="no"
5713   else
5714     case $cross_compiling:$ac_tool_warned in
5715 yes:)
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5718 ac_tool_warned=yes ;;
5719 esac
5720     GDC=$ac_ct_GDC
5721   fi
5722 else
5723   GDC="$ac_cv_prog_GDC"
5724 fi
5725
5726 if test "x$GDC" != xno; then
5727   have_gdc=yes
5728 else
5729   have_gdc=no
5730 fi
5731
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5733 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5734 if ${gcc_cv_prog_cmp_skip+:} false; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737    echo abfoo >t1
5738   echo cdfoo >t2
5739   gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5740   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5741     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5742       :
5743     else
5744       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5745     fi
5746   fi
5747   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5748     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5749       :
5750     else
5751       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5752     fi
5753   fi
5754   rm t1 t2
5755
5756 fi
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5758 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5759 do_compare="$gcc_cv_prog_cmp_skip"
5760
5761
5762
5763 # Check whether --enable-bootstrap was given.
5764 if test "${enable_bootstrap+set}" = set; then :
5765   enableval=$enable_bootstrap;
5766 else
5767   enable_bootstrap=default
5768 fi
5769
5770
5771 # Issue errors and warnings for invalid/strange bootstrap combinations.
5772 if test -r $srcdir/gcc/configure; then
5773   have_compiler=yes
5774 else
5775   have_compiler=no
5776 fi
5777
5778 case "$have_compiler:$host:$target:$enable_bootstrap" in
5779   *:*:*:no) ;;
5780
5781   # Default behavior.  Enable bootstrap if we have a compiler
5782   # and we are in a native configuration.
5783   yes:$build:$build:default)
5784     enable_bootstrap=yes ;;
5785
5786   *:*:*:default)
5787     enable_bootstrap=no ;;
5788
5789   # We have a compiler and we are in a native configuration, bootstrap is ok
5790   yes:$build:$build:yes)
5791     ;;
5792
5793   # Other configurations, but we have a compiler.  Assume the user knows
5794   # what he's doing.
5795   yes:*:*:yes)
5796     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5797 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5798     ;;
5799
5800   # No compiler: if they passed --enable-bootstrap explicitly, fail
5801   no:*:*:yes)
5802     as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5803
5804   # Fail if wrong command line
5805   *)
5806     as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5807     ;;
5808 esac
5809
5810 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5811 # C++11 compiler can still start the bootstrap.  Otherwise, if building GCC,
5812 # require C++11 (or higher).
5813 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5814   CXX="$CXX -std=c++11"
5815 elif test "$have_compiler" = yes; then
5816     ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
5817   ac_ext=cpp
5818 ac_cpp='$CXXCPP $CPPFLAGS'
5819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5822   ac_success=no
5823
5824       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5825 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5826 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5827   $as_echo_n "(cached) " >&6
5828 else
5829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h.  */
5831
5832
5833 // If the compiler admits that it is not ready for C++11, why torture it?
5834 // Hopefully, this will speed up the test.
5835
5836 #ifndef __cplusplus
5837
5838 #error "This is not a C++ compiler"
5839
5840 #elif __cplusplus < 201103L
5841
5842 #error "This is not a C++11 compiler"
5843
5844 #else
5845
5846 namespace cxx11
5847 {
5848
5849   namespace test_static_assert
5850   {
5851
5852     template <typename T>
5853     struct check
5854     {
5855       static_assert(sizeof(int) <= sizeof(T), "not big enough");
5856     };
5857
5858   }
5859
5860   namespace test_final_override
5861   {
5862
5863     struct Base
5864     {
5865       virtual ~Base() {}
5866       virtual void f() {}
5867     };
5868
5869     struct Derived : public Base
5870     {
5871       virtual ~Derived() override {}
5872       virtual void f() override {}
5873     };
5874
5875   }
5876
5877   namespace test_double_right_angle_brackets
5878   {
5879
5880     template < typename T >
5881     struct check {};
5882
5883     typedef check<void> single_type;
5884     typedef check<check<void>> double_type;
5885     typedef check<check<check<void>>> triple_type;
5886     typedef check<check<check<check<void>>>> quadruple_type;
5887
5888   }
5889
5890   namespace test_decltype
5891   {
5892
5893     int
5894     f()
5895     {
5896       int a = 1;
5897       decltype(a) b = 2;
5898       return a + b;
5899     }
5900
5901   }
5902
5903   namespace test_type_deduction
5904   {
5905
5906     template < typename T1, typename T2 >
5907     struct is_same
5908     {
5909       static const bool value = false;
5910     };
5911
5912     template < typename T >
5913     struct is_same<T, T>
5914     {
5915       static const bool value = true;
5916     };
5917
5918     template < typename T1, typename T2 >
5919     auto
5920     add(T1 a1, T2 a2) -> decltype(a1 + a2)
5921     {
5922       return a1 + a2;
5923     }
5924
5925     int
5926     test(const int c, volatile int v)
5927     {
5928       static_assert(is_same<int, decltype(0)>::value == true, "");
5929       static_assert(is_same<int, decltype(c)>::value == false, "");
5930       static_assert(is_same<int, decltype(v)>::value == false, "");
5931       auto ac = c;
5932       auto av = v;
5933       auto sumi = ac + av + 'x';
5934       auto sumf = ac + av + 1.0;
5935       static_assert(is_same<int, decltype(ac)>::value == true, "");
5936       static_assert(is_same<int, decltype(av)>::value == true, "");
5937       static_assert(is_same<int, decltype(sumi)>::value == true, "");
5938       static_assert(is_same<int, decltype(sumf)>::value == false, "");
5939       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5940       return (sumf > 0.0) ? sumi : add(c, v);
5941     }
5942
5943   }
5944
5945   namespace test_noexcept
5946   {
5947
5948     int f() { return 0; }
5949     int g() noexcept { return 0; }
5950
5951     static_assert(noexcept(f()) == false, "");
5952     static_assert(noexcept(g()) == true, "");
5953
5954   }
5955
5956   namespace test_constexpr
5957   {
5958
5959     template < typename CharT >
5960     unsigned long constexpr
5961     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5962     {
5963       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5964     }
5965
5966     template < typename CharT >
5967     unsigned long constexpr
5968     strlen_c(const CharT *const s) noexcept
5969     {
5970       return strlen_c_r(s, 0UL);
5971     }
5972
5973     static_assert(strlen_c("") == 0UL, "");
5974     static_assert(strlen_c("1") == 1UL, "");
5975     static_assert(strlen_c("example") == 7UL, "");
5976     static_assert(strlen_c("another\0example") == 7UL, "");
5977
5978   }
5979
5980   namespace test_rvalue_references
5981   {
5982
5983     template < int N >
5984     struct answer
5985     {
5986       static constexpr int value = N;
5987     };
5988
5989     answer<1> f(int&)       { return answer<1>(); }
5990     answer<2> f(const int&) { return answer<2>(); }
5991     answer<3> f(int&&)      { return answer<3>(); }
5992
5993     void
5994     test()
5995     {
5996       int i = 0;
5997       const int c = 0;
5998       static_assert(decltype(f(i))::value == 1, "");
5999       static_assert(decltype(f(c))::value == 2, "");
6000       static_assert(decltype(f(0))::value == 3, "");
6001     }
6002
6003   }
6004
6005   namespace test_uniform_initialization
6006   {
6007
6008     struct test
6009     {
6010       static const int zero {};
6011       static const int one {1};
6012     };
6013
6014     static_assert(test::zero == 0, "");
6015     static_assert(test::one == 1, "");
6016
6017   }
6018
6019   namespace test_lambdas
6020   {
6021
6022     void
6023     test1()
6024     {
6025       auto lambda1 = [](){};
6026       auto lambda2 = lambda1;
6027       lambda1();
6028       lambda2();
6029     }
6030
6031     int
6032     test2()
6033     {
6034       auto a = [](int i, int j){ return i + j; }(1, 2);
6035       auto b = []() -> int { return '0'; }();
6036       auto c = [=](){ return a + b; }();
6037       auto d = [&](){ return c; }();
6038       auto e = [a, &b](int x) mutable {
6039         const auto identity = [](int y){ return y; };
6040         for (auto i = 0; i < a; ++i)
6041           a += b--;
6042         return x + identity(a + b);
6043       }(0);
6044       return a + b + c + d + e;
6045     }
6046
6047     int
6048     test3()
6049     {
6050       const auto nullary = [](){ return 0; };
6051       const auto unary = [](int x){ return x; };
6052       using nullary_t = decltype(nullary);
6053       using unary_t = decltype(unary);
6054       const auto higher1st = [](nullary_t f){ return f(); };
6055       const auto higher2nd = [unary](nullary_t f1){
6056         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6057       };
6058       return higher1st(nullary) + higher2nd(nullary)(unary);
6059     }
6060
6061   }
6062
6063   namespace test_variadic_templates
6064   {
6065
6066     template <int...>
6067     struct sum;
6068
6069     template <int N0, int... N1toN>
6070     struct sum<N0, N1toN...>
6071     {
6072       static constexpr auto value = N0 + sum<N1toN...>::value;
6073     };
6074
6075     template <>
6076     struct sum<>
6077     {
6078       static constexpr auto value = 0;
6079     };
6080
6081     static_assert(sum<>::value == 0, "");
6082     static_assert(sum<1>::value == 1, "");
6083     static_assert(sum<23>::value == 23, "");
6084     static_assert(sum<1, 2>::value == 3, "");
6085     static_assert(sum<5, 5, 11>::value == 21, "");
6086     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6087
6088   }
6089
6090   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6091   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6092   // because of this.
6093   namespace test_template_alias_sfinae
6094   {
6095
6096     struct foo {};
6097
6098     template<typename T>
6099     using member = typename T::member_type;
6100
6101     template<typename T>
6102     void func(...) {}
6103
6104     template<typename T>
6105     void func(member<T>*) {}
6106
6107     void test();
6108
6109     void test() { func<foo>(0); }
6110
6111   }
6112
6113 }  // namespace cxx11
6114
6115 #endif  // __cplusplus >= 201103L
6116
6117
6118
6119 _ACEOF
6120 if ac_fn_cxx_try_compile "$LINENO"; then :
6121   ax_cv_cxx_compile_cxx11=yes
6122 else
6123   ax_cv_cxx_compile_cxx11=no
6124 fi
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 fi
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6128 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6129     if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6130       ac_success=yes
6131     fi
6132
6133     if test x$ac_success = xno; then
6134     for alternative in ${ax_cxx_compile_alternatives}; do
6135       switch="-std=gnu++${alternative}"
6136       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6137       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6138 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6139 if eval \${$cachevar+:} false; then :
6140   $as_echo_n "(cached) " >&6
6141 else
6142   ac_save_CXX="$CXX"
6143          CXX="$CXX $switch"
6144          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h.  */
6146
6147
6148 // If the compiler admits that it is not ready for C++11, why torture it?
6149 // Hopefully, this will speed up the test.
6150
6151 #ifndef __cplusplus
6152
6153 #error "This is not a C++ compiler"
6154
6155 #elif __cplusplus < 201103L
6156
6157 #error "This is not a C++11 compiler"
6158
6159 #else
6160
6161 namespace cxx11
6162 {
6163
6164   namespace test_static_assert
6165   {
6166
6167     template <typename T>
6168     struct check
6169     {
6170       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6171     };
6172
6173   }
6174
6175   namespace test_final_override
6176   {
6177
6178     struct Base
6179     {
6180       virtual ~Base() {}
6181       virtual void f() {}
6182     };
6183
6184     struct Derived : public Base
6185     {
6186       virtual ~Derived() override {}
6187       virtual void f() override {}
6188     };
6189
6190   }
6191
6192   namespace test_double_right_angle_brackets
6193   {
6194
6195     template < typename T >
6196     struct check {};
6197
6198     typedef check<void> single_type;
6199     typedef check<check<void>> double_type;
6200     typedef check<check<check<void>>> triple_type;
6201     typedef check<check<check<check<void>>>> quadruple_type;
6202
6203   }
6204
6205   namespace test_decltype
6206   {
6207
6208     int
6209     f()
6210     {
6211       int a = 1;
6212       decltype(a) b = 2;
6213       return a + b;
6214     }
6215
6216   }
6217
6218   namespace test_type_deduction
6219   {
6220
6221     template < typename T1, typename T2 >
6222     struct is_same
6223     {
6224       static const bool value = false;
6225     };
6226
6227     template < typename T >
6228     struct is_same<T, T>
6229     {
6230       static const bool value = true;
6231     };
6232
6233     template < typename T1, typename T2 >
6234     auto
6235     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6236     {
6237       return a1 + a2;
6238     }
6239
6240     int
6241     test(const int c, volatile int v)
6242     {
6243       static_assert(is_same<int, decltype(0)>::value == true, "");
6244       static_assert(is_same<int, decltype(c)>::value == false, "");
6245       static_assert(is_same<int, decltype(v)>::value == false, "");
6246       auto ac = c;
6247       auto av = v;
6248       auto sumi = ac + av + 'x';
6249       auto sumf = ac + av + 1.0;
6250       static_assert(is_same<int, decltype(ac)>::value == true, "");
6251       static_assert(is_same<int, decltype(av)>::value == true, "");
6252       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6253       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6254       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6255       return (sumf > 0.0) ? sumi : add(c, v);
6256     }
6257
6258   }
6259
6260   namespace test_noexcept
6261   {
6262
6263     int f() { return 0; }
6264     int g() noexcept { return 0; }
6265
6266     static_assert(noexcept(f()) == false, "");
6267     static_assert(noexcept(g()) == true, "");
6268
6269   }
6270
6271   namespace test_constexpr
6272   {
6273
6274     template < typename CharT >
6275     unsigned long constexpr
6276     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6277     {
6278       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6279     }
6280
6281     template < typename CharT >
6282     unsigned long constexpr
6283     strlen_c(const CharT *const s) noexcept
6284     {
6285       return strlen_c_r(s, 0UL);
6286     }
6287
6288     static_assert(strlen_c("") == 0UL, "");
6289     static_assert(strlen_c("1") == 1UL, "");
6290     static_assert(strlen_c("example") == 7UL, "");
6291     static_assert(strlen_c("another\0example") == 7UL, "");
6292
6293   }
6294
6295   namespace test_rvalue_references
6296   {
6297
6298     template < int N >
6299     struct answer
6300     {
6301       static constexpr int value = N;
6302     };
6303
6304     answer<1> f(int&)       { return answer<1>(); }
6305     answer<2> f(const int&) { return answer<2>(); }
6306     answer<3> f(int&&)      { return answer<3>(); }
6307
6308     void
6309     test()
6310     {
6311       int i = 0;
6312       const int c = 0;
6313       static_assert(decltype(f(i))::value == 1, "");
6314       static_assert(decltype(f(c))::value == 2, "");
6315       static_assert(decltype(f(0))::value == 3, "");
6316     }
6317
6318   }
6319
6320   namespace test_uniform_initialization
6321   {
6322
6323     struct test
6324     {
6325       static const int zero {};
6326       static const int one {1};
6327     };
6328
6329     static_assert(test::zero == 0, "");
6330     static_assert(test::one == 1, "");
6331
6332   }
6333
6334   namespace test_lambdas
6335   {
6336
6337     void
6338     test1()
6339     {
6340       auto lambda1 = [](){};
6341       auto lambda2 = lambda1;
6342       lambda1();
6343       lambda2();
6344     }
6345
6346     int
6347     test2()
6348     {
6349       auto a = [](int i, int j){ return i + j; }(1, 2);
6350       auto b = []() -> int { return '0'; }();
6351       auto c = [=](){ return a + b; }();
6352       auto d = [&](){ return c; }();
6353       auto e = [a, &b](int x) mutable {
6354         const auto identity = [](int y){ return y; };
6355         for (auto i = 0; i < a; ++i)
6356           a += b--;
6357         return x + identity(a + b);
6358       }(0);
6359       return a + b + c + d + e;
6360     }
6361
6362     int
6363     test3()
6364     {
6365       const auto nullary = [](){ return 0; };
6366       const auto unary = [](int x){ return x; };
6367       using nullary_t = decltype(nullary);
6368       using unary_t = decltype(unary);
6369       const auto higher1st = [](nullary_t f){ return f(); };
6370       const auto higher2nd = [unary](nullary_t f1){
6371         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6372       };
6373       return higher1st(nullary) + higher2nd(nullary)(unary);
6374     }
6375
6376   }
6377
6378   namespace test_variadic_templates
6379   {
6380
6381     template <int...>
6382     struct sum;
6383
6384     template <int N0, int... N1toN>
6385     struct sum<N0, N1toN...>
6386     {
6387       static constexpr auto value = N0 + sum<N1toN...>::value;
6388     };
6389
6390     template <>
6391     struct sum<>
6392     {
6393       static constexpr auto value = 0;
6394     };
6395
6396     static_assert(sum<>::value == 0, "");
6397     static_assert(sum<1>::value == 1, "");
6398     static_assert(sum<23>::value == 23, "");
6399     static_assert(sum<1, 2>::value == 3, "");
6400     static_assert(sum<5, 5, 11>::value == 21, "");
6401     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6402
6403   }
6404
6405   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6406   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6407   // because of this.
6408   namespace test_template_alias_sfinae
6409   {
6410
6411     struct foo {};
6412
6413     template<typename T>
6414     using member = typename T::member_type;
6415
6416     template<typename T>
6417     void func(...) {}
6418
6419     template<typename T>
6420     void func(member<T>*) {}
6421
6422     void test();
6423
6424     void test() { func<foo>(0); }
6425
6426   }
6427
6428 }  // namespace cxx11
6429
6430 #endif  // __cplusplus >= 201103L
6431
6432
6433
6434 _ACEOF
6435 if ac_fn_cxx_try_compile "$LINENO"; then :
6436   eval $cachevar=yes
6437 else
6438   eval $cachevar=no
6439 fi
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441          CXX="$ac_save_CXX"
6442 fi
6443 eval ac_res=\$$cachevar
6444                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6445 $as_echo "$ac_res" >&6; }
6446       if eval test x\$$cachevar = xyes; then
6447         CXX="$CXX $switch"
6448         if test -n "$CXXCPP" ; then
6449           CXXCPP="$CXXCPP $switch"
6450         fi
6451         ac_success=yes
6452         break
6453       fi
6454     done
6455   fi
6456
6457     if test x$ac_success = xno; then
6458                 for alternative in ${ax_cxx_compile_alternatives}; do
6459       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6460         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6461         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6462 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6463 if eval \${$cachevar+:} false; then :
6464   $as_echo_n "(cached) " >&6
6465 else
6466   ac_save_CXX="$CXX"
6467            CXX="$CXX $switch"
6468            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h.  */
6470
6471
6472 // If the compiler admits that it is not ready for C++11, why torture it?
6473 // Hopefully, this will speed up the test.
6474
6475 #ifndef __cplusplus
6476
6477 #error "This is not a C++ compiler"
6478
6479 #elif __cplusplus < 201103L
6480
6481 #error "This is not a C++11 compiler"
6482
6483 #else
6484
6485 namespace cxx11
6486 {
6487
6488   namespace test_static_assert
6489   {
6490
6491     template <typename T>
6492     struct check
6493     {
6494       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6495     };
6496
6497   }
6498
6499   namespace test_final_override
6500   {
6501
6502     struct Base
6503     {
6504       virtual ~Base() {}
6505       virtual void f() {}
6506     };
6507
6508     struct Derived : public Base
6509     {
6510       virtual ~Derived() override {}
6511       virtual void f() override {}
6512     };
6513
6514   }
6515
6516   namespace test_double_right_angle_brackets
6517   {
6518
6519     template < typename T >
6520     struct check {};
6521
6522     typedef check<void> single_type;
6523     typedef check<check<void>> double_type;
6524     typedef check<check<check<void>>> triple_type;
6525     typedef check<check<check<check<void>>>> quadruple_type;
6526
6527   }
6528
6529   namespace test_decltype
6530   {
6531
6532     int
6533     f()
6534     {
6535       int a = 1;
6536       decltype(a) b = 2;
6537       return a + b;
6538     }
6539
6540   }
6541
6542   namespace test_type_deduction
6543   {
6544
6545     template < typename T1, typename T2 >
6546     struct is_same
6547     {
6548       static const bool value = false;
6549     };
6550
6551     template < typename T >
6552     struct is_same<T, T>
6553     {
6554       static const bool value = true;
6555     };
6556
6557     template < typename T1, typename T2 >
6558     auto
6559     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6560     {
6561       return a1 + a2;
6562     }
6563
6564     int
6565     test(const int c, volatile int v)
6566     {
6567       static_assert(is_same<int, decltype(0)>::value == true, "");
6568       static_assert(is_same<int, decltype(c)>::value == false, "");
6569       static_assert(is_same<int, decltype(v)>::value == false, "");
6570       auto ac = c;
6571       auto av = v;
6572       auto sumi = ac + av + 'x';
6573       auto sumf = ac + av + 1.0;
6574       static_assert(is_same<int, decltype(ac)>::value == true, "");
6575       static_assert(is_same<int, decltype(av)>::value == true, "");
6576       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6577       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6578       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6579       return (sumf > 0.0) ? sumi : add(c, v);
6580     }
6581
6582   }
6583
6584   namespace test_noexcept
6585   {
6586
6587     int f() { return 0; }
6588     int g() noexcept { return 0; }
6589
6590     static_assert(noexcept(f()) == false, "");
6591     static_assert(noexcept(g()) == true, "");
6592
6593   }
6594
6595   namespace test_constexpr
6596   {
6597
6598     template < typename CharT >
6599     unsigned long constexpr
6600     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6601     {
6602       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6603     }
6604
6605     template < typename CharT >
6606     unsigned long constexpr
6607     strlen_c(const CharT *const s) noexcept
6608     {
6609       return strlen_c_r(s, 0UL);
6610     }
6611
6612     static_assert(strlen_c("") == 0UL, "");
6613     static_assert(strlen_c("1") == 1UL, "");
6614     static_assert(strlen_c("example") == 7UL, "");
6615     static_assert(strlen_c("another\0example") == 7UL, "");
6616
6617   }
6618
6619   namespace test_rvalue_references
6620   {
6621
6622     template < int N >
6623     struct answer
6624     {
6625       static constexpr int value = N;
6626     };
6627
6628     answer<1> f(int&)       { return answer<1>(); }
6629     answer<2> f(const int&) { return answer<2>(); }
6630     answer<3> f(int&&)      { return answer<3>(); }
6631
6632     void
6633     test()
6634     {
6635       int i = 0;
6636       const int c = 0;
6637       static_assert(decltype(f(i))::value == 1, "");
6638       static_assert(decltype(f(c))::value == 2, "");
6639       static_assert(decltype(f(0))::value == 3, "");
6640     }
6641
6642   }
6643
6644   namespace test_uniform_initialization
6645   {
6646
6647     struct test
6648     {
6649       static const int zero {};
6650       static const int one {1};
6651     };
6652
6653     static_assert(test::zero == 0, "");
6654     static_assert(test::one == 1, "");
6655
6656   }
6657
6658   namespace test_lambdas
6659   {
6660
6661     void
6662     test1()
6663     {
6664       auto lambda1 = [](){};
6665       auto lambda2 = lambda1;
6666       lambda1();
6667       lambda2();
6668     }
6669
6670     int
6671     test2()
6672     {
6673       auto a = [](int i, int j){ return i + j; }(1, 2);
6674       auto b = []() -> int { return '0'; }();
6675       auto c = [=](){ return a + b; }();
6676       auto d = [&](){ return c; }();
6677       auto e = [a, &b](int x) mutable {
6678         const auto identity = [](int y){ return y; };
6679         for (auto i = 0; i < a; ++i)
6680           a += b--;
6681         return x + identity(a + b);
6682       }(0);
6683       return a + b + c + d + e;
6684     }
6685
6686     int
6687     test3()
6688     {
6689       const auto nullary = [](){ return 0; };
6690       const auto unary = [](int x){ return x; };
6691       using nullary_t = decltype(nullary);
6692       using unary_t = decltype(unary);
6693       const auto higher1st = [](nullary_t f){ return f(); };
6694       const auto higher2nd = [unary](nullary_t f1){
6695         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6696       };
6697       return higher1st(nullary) + higher2nd(nullary)(unary);
6698     }
6699
6700   }
6701
6702   namespace test_variadic_templates
6703   {
6704
6705     template <int...>
6706     struct sum;
6707
6708     template <int N0, int... N1toN>
6709     struct sum<N0, N1toN...>
6710     {
6711       static constexpr auto value = N0 + sum<N1toN...>::value;
6712     };
6713
6714     template <>
6715     struct sum<>
6716     {
6717       static constexpr auto value = 0;
6718     };
6719
6720     static_assert(sum<>::value == 0, "");
6721     static_assert(sum<1>::value == 1, "");
6722     static_assert(sum<23>::value == 23, "");
6723     static_assert(sum<1, 2>::value == 3, "");
6724     static_assert(sum<5, 5, 11>::value == 21, "");
6725     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6726
6727   }
6728
6729   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6730   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6731   // because of this.
6732   namespace test_template_alias_sfinae
6733   {
6734
6735     struct foo {};
6736
6737     template<typename T>
6738     using member = typename T::member_type;
6739
6740     template<typename T>
6741     void func(...) {}
6742
6743     template<typename T>
6744     void func(member<T>*) {}
6745
6746     void test();
6747
6748     void test() { func<foo>(0); }
6749
6750   }
6751
6752 }  // namespace cxx11
6753
6754 #endif  // __cplusplus >= 201103L
6755
6756
6757
6758 _ACEOF
6759 if ac_fn_cxx_try_compile "$LINENO"; then :
6760   eval $cachevar=yes
6761 else
6762   eval $cachevar=no
6763 fi
6764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765            CXX="$ac_save_CXX"
6766 fi
6767 eval ac_res=\$$cachevar
6768                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6769 $as_echo "$ac_res" >&6; }
6770         if eval test x\$$cachevar = xyes; then
6771           CXX="$CXX $switch"
6772           if test -n "$CXXCPP" ; then
6773             CXXCPP="$CXXCPP $switch"
6774           fi
6775           ac_success=yes
6776           break
6777         fi
6778       done
6779       if test x$ac_success = xyes; then
6780         break
6781       fi
6782     done
6783   fi
6784
6785   ac_ext=c
6786 ac_cpp='$CPP $CPPFLAGS'
6787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6790
6791   if test x$ax_cxx_compile_cxx11_required = xtrue; then
6792     if test x$ac_success = xno; then
6793       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6794     fi
6795   fi
6796   if test x$ac_success = xno; then
6797     HAVE_CXX11=0
6798     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6799 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6800   else
6801     HAVE_CXX11=1
6802
6803 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6804
6805   fi
6806
6807
6808
6809   if test "${build}" != "${host}"; then
6810       ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
6811   ac_ext=cpp
6812 ac_cpp='$CXXCPP $CPPFLAGS'
6813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6816   ac_success=no
6817       ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6818     ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6819     ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6820     CXX="$CXX_FOR_BUILD"
6821     CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6822     CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6823       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6824 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6825 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6826   $as_echo_n "(cached) " >&6
6827 else
6828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h.  */
6830
6831
6832 // If the compiler admits that it is not ready for C++11, why torture it?
6833 // Hopefully, this will speed up the test.
6834
6835 #ifndef __cplusplus
6836
6837 #error "This is not a C++ compiler"
6838
6839 #elif __cplusplus < 201103L
6840
6841 #error "This is not a C++11 compiler"
6842
6843 #else
6844
6845 namespace cxx11
6846 {
6847
6848   namespace test_static_assert
6849   {
6850
6851     template <typename T>
6852     struct check
6853     {
6854       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6855     };
6856
6857   }
6858
6859   namespace test_final_override
6860   {
6861
6862     struct Base
6863     {
6864       virtual ~Base() {}
6865       virtual void f() {}
6866     };
6867
6868     struct Derived : public Base
6869     {
6870       virtual ~Derived() override {}
6871       virtual void f() override {}
6872     };
6873
6874   }
6875
6876   namespace test_double_right_angle_brackets
6877   {
6878
6879     template < typename T >
6880     struct check {};
6881
6882     typedef check<void> single_type;
6883     typedef check<check<void>> double_type;
6884     typedef check<check<check<void>>> triple_type;
6885     typedef check<check<check<check<void>>>> quadruple_type;
6886
6887   }
6888
6889   namespace test_decltype
6890   {
6891
6892     int
6893     f()
6894     {
6895       int a = 1;
6896       decltype(a) b = 2;
6897       return a + b;
6898     }
6899
6900   }
6901
6902   namespace test_type_deduction
6903   {
6904
6905     template < typename T1, typename T2 >
6906     struct is_same
6907     {
6908       static const bool value = false;
6909     };
6910
6911     template < typename T >
6912     struct is_same<T, T>
6913     {
6914       static const bool value = true;
6915     };
6916
6917     template < typename T1, typename T2 >
6918     auto
6919     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6920     {
6921       return a1 + a2;
6922     }
6923
6924     int
6925     test(const int c, volatile int v)
6926     {
6927       static_assert(is_same<int, decltype(0)>::value == true, "");
6928       static_assert(is_same<int, decltype(c)>::value == false, "");
6929       static_assert(is_same<int, decltype(v)>::value == false, "");
6930       auto ac = c;
6931       auto av = v;
6932       auto sumi = ac + av + 'x';
6933       auto sumf = ac + av + 1.0;
6934       static_assert(is_same<int, decltype(ac)>::value == true, "");
6935       static_assert(is_same<int, decltype(av)>::value == true, "");
6936       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6937       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6938       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6939       return (sumf > 0.0) ? sumi : add(c, v);
6940     }
6941
6942   }
6943
6944   namespace test_noexcept
6945   {
6946
6947     int f() { return 0; }
6948     int g() noexcept { return 0; }
6949
6950     static_assert(noexcept(f()) == false, "");
6951     static_assert(noexcept(g()) == true, "");
6952
6953   }
6954
6955   namespace test_constexpr
6956   {
6957
6958     template < typename CharT >
6959     unsigned long constexpr
6960     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6961     {
6962       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6963     }
6964
6965     template < typename CharT >
6966     unsigned long constexpr
6967     strlen_c(const CharT *const s) noexcept
6968     {
6969       return strlen_c_r(s, 0UL);
6970     }
6971
6972     static_assert(strlen_c("") == 0UL, "");
6973     static_assert(strlen_c("1") == 1UL, "");
6974     static_assert(strlen_c("example") == 7UL, "");
6975     static_assert(strlen_c("another\0example") == 7UL, "");
6976
6977   }
6978
6979   namespace test_rvalue_references
6980   {
6981
6982     template < int N >
6983     struct answer
6984     {
6985       static constexpr int value = N;
6986     };
6987
6988     answer<1> f(int&)       { return answer<1>(); }
6989     answer<2> f(const int&) { return answer<2>(); }
6990     answer<3> f(int&&)      { return answer<3>(); }
6991
6992     void
6993     test()
6994     {
6995       int i = 0;
6996       const int c = 0;
6997       static_assert(decltype(f(i))::value == 1, "");
6998       static_assert(decltype(f(c))::value == 2, "");
6999       static_assert(decltype(f(0))::value == 3, "");
7000     }
7001
7002   }
7003
7004   namespace test_uniform_initialization
7005   {
7006
7007     struct test
7008     {
7009       static const int zero {};
7010       static const int one {1};
7011     };
7012
7013     static_assert(test::zero == 0, "");
7014     static_assert(test::one == 1, "");
7015
7016   }
7017
7018   namespace test_lambdas
7019   {
7020
7021     void
7022     test1()
7023     {
7024       auto lambda1 = [](){};
7025       auto lambda2 = lambda1;
7026       lambda1();
7027       lambda2();
7028     }
7029
7030     int
7031     test2()
7032     {
7033       auto a = [](int i, int j){ return i + j; }(1, 2);
7034       auto b = []() -> int { return '0'; }();
7035       auto c = [=](){ return a + b; }();
7036       auto d = [&](){ return c; }();
7037       auto e = [a, &b](int x) mutable {
7038         const auto identity = [](int y){ return y; };
7039         for (auto i = 0; i < a; ++i)
7040           a += b--;
7041         return x + identity(a + b);
7042       }(0);
7043       return a + b + c + d + e;
7044     }
7045
7046     int
7047     test3()
7048     {
7049       const auto nullary = [](){ return 0; };
7050       const auto unary = [](int x){ return x; };
7051       using nullary_t = decltype(nullary);
7052       using unary_t = decltype(unary);
7053       const auto higher1st = [](nullary_t f){ return f(); };
7054       const auto higher2nd = [unary](nullary_t f1){
7055         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7056       };
7057       return higher1st(nullary) + higher2nd(nullary)(unary);
7058     }
7059
7060   }
7061
7062   namespace test_variadic_templates
7063   {
7064
7065     template <int...>
7066     struct sum;
7067
7068     template <int N0, int... N1toN>
7069     struct sum<N0, N1toN...>
7070     {
7071       static constexpr auto value = N0 + sum<N1toN...>::value;
7072     };
7073
7074     template <>
7075     struct sum<>
7076     {
7077       static constexpr auto value = 0;
7078     };
7079
7080     static_assert(sum<>::value == 0, "");
7081     static_assert(sum<1>::value == 1, "");
7082     static_assert(sum<23>::value == 23, "");
7083     static_assert(sum<1, 2>::value == 3, "");
7084     static_assert(sum<5, 5, 11>::value == 21, "");
7085     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7086
7087   }
7088
7089   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7090   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7091   // because of this.
7092   namespace test_template_alias_sfinae
7093   {
7094
7095     struct foo {};
7096
7097     template<typename T>
7098     using member = typename T::member_type;
7099
7100     template<typename T>
7101     void func(...) {}
7102
7103     template<typename T>
7104     void func(member<T>*) {}
7105
7106     void test();
7107
7108     void test() { func<foo>(0); }
7109
7110   }
7111
7112 }  // namespace cxx11
7113
7114 #endif  // __cplusplus >= 201103L
7115
7116
7117
7118 _ACEOF
7119 if ac_fn_cxx_try_compile "$LINENO"; then :
7120   ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7121 else
7122   ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7123 fi
7124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125 fi
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7127 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7128     if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7129       ac_success=yes
7130     fi
7131
7132     if test x$ac_success = xno; then
7133     for alternative in ${ax_cxx_compile_alternatives}; do
7134       switch="-std=gnu++${alternative}"
7135       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7136       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7137 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7138 if eval \${$cachevar+:} false; then :
7139   $as_echo_n "(cached) " >&6
7140 else
7141   ac_save_CXX="$CXX"
7142          CXX="$CXX $switch"
7143          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h.  */
7145
7146
7147 // If the compiler admits that it is not ready for C++11, why torture it?
7148 // Hopefully, this will speed up the test.
7149
7150 #ifndef __cplusplus
7151
7152 #error "This is not a C++ compiler"
7153
7154 #elif __cplusplus < 201103L
7155
7156 #error "This is not a C++11 compiler"
7157
7158 #else
7159
7160 namespace cxx11
7161 {
7162
7163   namespace test_static_assert
7164   {
7165
7166     template <typename T>
7167     struct check
7168     {
7169       static_assert(sizeof(int) <= sizeof(T), "not big enough");
7170     };
7171
7172   }
7173
7174   namespace test_final_override
7175   {
7176
7177     struct Base
7178     {
7179       virtual ~Base() {}
7180       virtual void f() {}
7181     };
7182
7183     struct Derived : public Base
7184     {
7185       virtual ~Derived() override {}
7186       virtual void f() override {}
7187     };
7188
7189   }
7190
7191   namespace test_double_right_angle_brackets
7192   {
7193
7194     template < typename T >
7195     struct check {};
7196
7197     typedef check<void> single_type;
7198     typedef check<check<void>> double_type;
7199     typedef check<check<check<void>>> triple_type;
7200     typedef check<check<check<check<void>>>> quadruple_type;
7201
7202   }
7203
7204   namespace test_decltype
7205   {
7206
7207     int
7208     f()
7209     {
7210       int a = 1;
7211       decltype(a) b = 2;
7212       return a + b;
7213     }
7214
7215   }
7216
7217   namespace test_type_deduction
7218   {
7219
7220     template < typename T1, typename T2 >
7221     struct is_same
7222     {
7223       static const bool value = false;
7224     };
7225
7226     template < typename T >
7227     struct is_same<T, T>
7228     {
7229       static const bool value = true;
7230     };
7231
7232     template < typename T1, typename T2 >
7233     auto
7234     add(T1 a1, T2 a2) -> decltype(a1 + a2)
7235     {
7236       return a1 + a2;
7237     }
7238
7239     int
7240     test(const int c, volatile int v)
7241     {
7242       static_assert(is_same<int, decltype(0)>::value == true, "");
7243       static_assert(is_same<int, decltype(c)>::value == false, "");
7244       static_assert(is_same<int, decltype(v)>::value == false, "");
7245       auto ac = c;
7246       auto av = v;
7247       auto sumi = ac + av + 'x';
7248       auto sumf = ac + av + 1.0;
7249       static_assert(is_same<int, decltype(ac)>::value == true, "");
7250       static_assert(is_same<int, decltype(av)>::value == true, "");
7251       static_assert(is_same<int, decltype(sumi)>::value == true, "");
7252       static_assert(is_same<int, decltype(sumf)>::value == false, "");
7253       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7254       return (sumf > 0.0) ? sumi : add(c, v);
7255     }
7256
7257   }
7258
7259   namespace test_noexcept
7260   {
7261
7262     int f() { return 0; }
7263     int g() noexcept { return 0; }
7264
7265     static_assert(noexcept(f()) == false, "");
7266     static_assert(noexcept(g()) == true, "");
7267
7268   }
7269
7270   namespace test_constexpr
7271   {
7272
7273     template < typename CharT >
7274     unsigned long constexpr
7275     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7276     {
7277       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7278     }
7279
7280     template < typename CharT >
7281     unsigned long constexpr
7282     strlen_c(const CharT *const s) noexcept
7283     {
7284       return strlen_c_r(s, 0UL);
7285     }
7286
7287     static_assert(strlen_c("") == 0UL, "");
7288     static_assert(strlen_c("1") == 1UL, "");
7289     static_assert(strlen_c("example") == 7UL, "");
7290     static_assert(strlen_c("another\0example") == 7UL, "");
7291
7292   }
7293
7294   namespace test_rvalue_references
7295   {
7296
7297     template < int N >
7298     struct answer
7299     {
7300       static constexpr int value = N;
7301     };
7302
7303     answer<1> f(int&)       { return answer<1>(); }
7304     answer<2> f(const int&) { return answer<2>(); }
7305     answer<3> f(int&&)      { return answer<3>(); }
7306
7307     void
7308     test()
7309     {
7310       int i = 0;
7311       const int c = 0;
7312       static_assert(decltype(f(i))::value == 1, "");
7313       static_assert(decltype(f(c))::value == 2, "");
7314       static_assert(decltype(f(0))::value == 3, "");
7315     }
7316
7317   }
7318
7319   namespace test_uniform_initialization
7320   {
7321
7322     struct test
7323     {
7324       static const int zero {};
7325       static const int one {1};
7326     };
7327
7328     static_assert(test::zero == 0, "");
7329     static_assert(test::one == 1, "");
7330
7331   }
7332
7333   namespace test_lambdas
7334   {
7335
7336     void
7337     test1()
7338     {
7339       auto lambda1 = [](){};
7340       auto lambda2 = lambda1;
7341       lambda1();
7342       lambda2();
7343     }
7344
7345     int
7346     test2()
7347     {
7348       auto a = [](int i, int j){ return i + j; }(1, 2);
7349       auto b = []() -> int { return '0'; }();
7350       auto c = [=](){ return a + b; }();
7351       auto d = [&](){ return c; }();
7352       auto e = [a, &b](int x) mutable {
7353         const auto identity = [](int y){ return y; };
7354         for (auto i = 0; i < a; ++i)
7355           a += b--;
7356         return x + identity(a + b);
7357       }(0);
7358       return a + b + c + d + e;
7359     }
7360
7361     int
7362     test3()
7363     {
7364       const auto nullary = [](){ return 0; };
7365       const auto unary = [](int x){ return x; };
7366       using nullary_t = decltype(nullary);
7367       using unary_t = decltype(unary);
7368       const auto higher1st = [](nullary_t f){ return f(); };
7369       const auto higher2nd = [unary](nullary_t f1){
7370         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7371       };
7372       return higher1st(nullary) + higher2nd(nullary)(unary);
7373     }
7374
7375   }
7376
7377   namespace test_variadic_templates
7378   {
7379
7380     template <int...>
7381     struct sum;
7382
7383     template <int N0, int... N1toN>
7384     struct sum<N0, N1toN...>
7385     {
7386       static constexpr auto value = N0 + sum<N1toN...>::value;
7387     };
7388
7389     template <>
7390     struct sum<>
7391     {
7392       static constexpr auto value = 0;
7393     };
7394
7395     static_assert(sum<>::value == 0, "");
7396     static_assert(sum<1>::value == 1, "");
7397     static_assert(sum<23>::value == 23, "");
7398     static_assert(sum<1, 2>::value == 3, "");
7399     static_assert(sum<5, 5, 11>::value == 21, "");
7400     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7401
7402   }
7403
7404   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7405   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7406   // because of this.
7407   namespace test_template_alias_sfinae
7408   {
7409
7410     struct foo {};
7411
7412     template<typename T>
7413     using member = typename T::member_type;
7414
7415     template<typename T>
7416     void func(...) {}
7417
7418     template<typename T>
7419     void func(member<T>*) {}
7420
7421     void test();
7422
7423     void test() { func<foo>(0); }
7424
7425   }
7426
7427 }  // namespace cxx11
7428
7429 #endif  // __cplusplus >= 201103L
7430
7431
7432
7433 _ACEOF
7434 if ac_fn_cxx_try_compile "$LINENO"; then :
7435   eval $cachevar=yes
7436 else
7437   eval $cachevar=no
7438 fi
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440          CXX="$ac_save_CXX"
7441 fi
7442 eval ac_res=\$$cachevar
7443                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7444 $as_echo "$ac_res" >&6; }
7445       if eval test x\$$cachevar = xyes; then
7446         CXX="$CXX $switch"
7447         if test -n "$CXXCPP" ; then
7448           CXXCPP="$CXXCPP $switch"
7449         fi
7450         ac_success=yes
7451         break
7452       fi
7453     done
7454   fi
7455
7456     if test x$ac_success = xno; then
7457                 for alternative in ${ax_cxx_compile_alternatives}; do
7458       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7459         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7460         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7461 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7462 if eval \${$cachevar+:} false; then :
7463   $as_echo_n "(cached) " >&6
7464 else
7465   ac_save_CXX="$CXX"
7466            CXX="$CXX $switch"
7467            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h.  */
7469
7470
7471 // If the compiler admits that it is not ready for C++11, why torture it?
7472 // Hopefully, this will speed up the test.
7473
7474 #ifndef __cplusplus
7475
7476 #error "This is not a C++ compiler"
7477
7478 #elif __cplusplus < 201103L
7479
7480 #error "This is not a C++11 compiler"
7481
7482 #else
7483
7484 namespace cxx11
7485 {
7486
7487   namespace test_static_assert
7488   {
7489
7490     template <typename T>
7491     struct check
7492     {
7493       static_assert(sizeof(int) <= sizeof(T), "not big enough");
7494     };
7495
7496   }
7497
7498   namespace test_final_override
7499   {
7500
7501     struct Base
7502     {
7503       virtual ~Base() {}
7504       virtual void f() {}
7505     };
7506
7507     struct Derived : public Base
7508     {
7509       virtual ~Derived() override {}
7510       virtual void f() override {}
7511     };
7512
7513   }
7514
7515   namespace test_double_right_angle_brackets
7516   {
7517
7518     template < typename T >
7519     struct check {};
7520
7521     typedef check<void> single_type;
7522     typedef check<check<void>> double_type;
7523     typedef check<check<check<void>>> triple_type;
7524     typedef check<check<check<check<void>>>> quadruple_type;
7525
7526   }
7527
7528   namespace test_decltype
7529   {
7530
7531     int
7532     f()
7533     {
7534       int a = 1;
7535       decltype(a) b = 2;
7536       return a + b;
7537     }
7538
7539   }
7540
7541   namespace test_type_deduction
7542   {
7543
7544     template < typename T1, typename T2 >
7545     struct is_same
7546     {
7547       static const bool value = false;
7548     };
7549
7550     template < typename T >
7551     struct is_same<T, T>
7552     {
7553       static const bool value = true;
7554     };
7555
7556     template < typename T1, typename T2 >
7557     auto
7558     add(T1 a1, T2 a2) -> decltype(a1 + a2)
7559     {
7560       return a1 + a2;
7561     }
7562
7563     int
7564     test(const int c, volatile int v)
7565     {
7566       static_assert(is_same<int, decltype(0)>::value == true, "");
7567       static_assert(is_same<int, decltype(c)>::value == false, "");
7568       static_assert(is_same<int, decltype(v)>::value == false, "");
7569       auto ac = c;
7570       auto av = v;
7571       auto sumi = ac + av + 'x';
7572       auto sumf = ac + av + 1.0;
7573       static_assert(is_same<int, decltype(ac)>::value == true, "");
7574       static_assert(is_same<int, decltype(av)>::value == true, "");
7575       static_assert(is_same<int, decltype(sumi)>::value == true, "");
7576       static_assert(is_same<int, decltype(sumf)>::value == false, "");
7577       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7578       return (sumf > 0.0) ? sumi : add(c, v);
7579     }
7580
7581   }
7582
7583   namespace test_noexcept
7584   {
7585
7586     int f() { return 0; }
7587     int g() noexcept { return 0; }
7588
7589     static_assert(noexcept(f()) == false, "");
7590     static_assert(noexcept(g()) == true, "");
7591
7592   }
7593
7594   namespace test_constexpr
7595   {
7596
7597     template < typename CharT >
7598     unsigned long constexpr
7599     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7600     {
7601       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7602     }
7603
7604     template < typename CharT >
7605     unsigned long constexpr
7606     strlen_c(const CharT *const s) noexcept
7607     {
7608       return strlen_c_r(s, 0UL);
7609     }
7610
7611     static_assert(strlen_c("") == 0UL, "");
7612     static_assert(strlen_c("1") == 1UL, "");
7613     static_assert(strlen_c("example") == 7UL, "");
7614     static_assert(strlen_c("another\0example") == 7UL, "");
7615
7616   }
7617
7618   namespace test_rvalue_references
7619   {
7620
7621     template < int N >
7622     struct answer
7623     {
7624       static constexpr int value = N;
7625     };
7626
7627     answer<1> f(int&)       { return answer<1>(); }
7628     answer<2> f(const int&) { return answer<2>(); }
7629     answer<3> f(int&&)      { return answer<3>(); }
7630
7631     void
7632     test()
7633     {
7634       int i = 0;
7635       const int c = 0;
7636       static_assert(decltype(f(i))::value == 1, "");
7637       static_assert(decltype(f(c))::value == 2, "");
7638       static_assert(decltype(f(0))::value == 3, "");
7639     }
7640
7641   }
7642
7643   namespace test_uniform_initialization
7644   {
7645
7646     struct test
7647     {
7648       static const int zero {};
7649       static const int one {1};
7650     };
7651
7652     static_assert(test::zero == 0, "");
7653     static_assert(test::one == 1, "");
7654
7655   }
7656
7657   namespace test_lambdas
7658   {
7659
7660     void
7661     test1()
7662     {
7663       auto lambda1 = [](){};
7664       auto lambda2 = lambda1;
7665       lambda1();
7666       lambda2();
7667     }
7668
7669     int
7670     test2()
7671     {
7672       auto a = [](int i, int j){ return i + j; }(1, 2);
7673       auto b = []() -> int { return '0'; }();
7674       auto c = [=](){ return a + b; }();
7675       auto d = [&](){ return c; }();
7676       auto e = [a, &b](int x) mutable {
7677         const auto identity = [](int y){ return y; };
7678         for (auto i = 0; i < a; ++i)
7679           a += b--;
7680         return x + identity(a + b);
7681       }(0);
7682       return a + b + c + d + e;
7683     }
7684
7685     int
7686     test3()
7687     {
7688       const auto nullary = [](){ return 0; };
7689       const auto unary = [](int x){ return x; };
7690       using nullary_t = decltype(nullary);
7691       using unary_t = decltype(unary);
7692       const auto higher1st = [](nullary_t f){ return f(); };
7693       const auto higher2nd = [unary](nullary_t f1){
7694         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7695       };
7696       return higher1st(nullary) + higher2nd(nullary)(unary);
7697     }
7698
7699   }
7700
7701   namespace test_variadic_templates
7702   {
7703
7704     template <int...>
7705     struct sum;
7706
7707     template <int N0, int... N1toN>
7708     struct sum<N0, N1toN...>
7709     {
7710       static constexpr auto value = N0 + sum<N1toN...>::value;
7711     };
7712
7713     template <>
7714     struct sum<>
7715     {
7716       static constexpr auto value = 0;
7717     };
7718
7719     static_assert(sum<>::value == 0, "");
7720     static_assert(sum<1>::value == 1, "");
7721     static_assert(sum<23>::value == 23, "");
7722     static_assert(sum<1, 2>::value == 3, "");
7723     static_assert(sum<5, 5, 11>::value == 21, "");
7724     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7725
7726   }
7727
7728   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7729   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7730   // because of this.
7731   namespace test_template_alias_sfinae
7732   {
7733
7734     struct foo {};
7735
7736     template<typename T>
7737     using member = typename T::member_type;
7738
7739     template<typename T>
7740     void func(...) {}
7741
7742     template<typename T>
7743     void func(member<T>*) {}
7744
7745     void test();
7746
7747     void test() { func<foo>(0); }
7748
7749   }
7750
7751 }  // namespace cxx11
7752
7753 #endif  // __cplusplus >= 201103L
7754
7755
7756
7757 _ACEOF
7758 if ac_fn_cxx_try_compile "$LINENO"; then :
7759   eval $cachevar=yes
7760 else
7761   eval $cachevar=no
7762 fi
7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764            CXX="$ac_save_CXX"
7765 fi
7766 eval ac_res=\$$cachevar
7767                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7768 $as_echo "$ac_res" >&6; }
7769         if eval test x\$$cachevar = xyes; then
7770           CXX="$CXX $switch"
7771           if test -n "$CXXCPP" ; then
7772             CXXCPP="$CXXCPP $switch"
7773           fi
7774           ac_success=yes
7775           break
7776         fi
7777       done
7778       if test x$ac_success = xyes; then
7779         break
7780       fi
7781     done
7782   fi
7783       CXX_FOR_BUILD="$CXX"
7784     CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7785     CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7786     CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7787     CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7788     CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7789   ac_ext=c
7790 ac_cpp='$CPP $CPPFLAGS'
7791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7794
7795   if test x$ax_cxx_compile_cxx11_required = xtrue; then
7796     if test x$ac_success = xno; then
7797       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7798     fi
7799   fi
7800   if test x$ac_success = xno; then
7801     HAVE_CXX11_FOR_BUILD=0
7802     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7803 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7804   else
7805     HAVE_CXX11_FOR_BUILD=1
7806
7807 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7808
7809   fi
7810
7811
7812   fi
7813 fi
7814
7815 # Used for setting $lt_cv_objdir
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7817 $as_echo_n "checking for objdir... " >&6; }
7818 if ${lt_cv_objdir+:} false; then :
7819   $as_echo_n "(cached) " >&6
7820 else
7821   rm -f .libs 2>/dev/null
7822 mkdir .libs 2>/dev/null
7823 if test -d .libs; then
7824   lt_cv_objdir=.libs
7825 else
7826   # MS-DOS does not allow filenames that begin with a dot.
7827   lt_cv_objdir=_libs
7828 fi
7829 rmdir .libs 2>/dev/null
7830 fi
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7832 $as_echo "$lt_cv_objdir" >&6; }
7833 objdir=$lt_cv_objdir
7834
7835
7836
7837
7838
7839 cat >>confdefs.h <<_ACEOF
7840 #define LT_OBJDIR "$lt_cv_objdir/"
7841 _ACEOF
7842
7843
7844
7845 # Check for GMP, MPFR and MPC
7846 gmplibs="-lmpc -lmpfr -lgmp"
7847 gmpinc=
7848 have_gmp=no
7849
7850 # Specify a location for mpc
7851 # check for this first so it ends up on the link line before mpfr.
7852
7853 # Check whether --with-mpc was given.
7854 if test "${with_mpc+set}" = set; then :
7855   withval=$with_mpc;
7856 fi
7857
7858
7859 # Check whether --with-mpc-include was given.
7860 if test "${with_mpc_include+set}" = set; then :
7861   withval=$with_mpc_include;
7862 fi
7863
7864
7865 # Check whether --with-mpc-lib was given.
7866 if test "${with_mpc_lib+set}" = set; then :
7867   withval=$with_mpc_lib;
7868 fi
7869
7870
7871 if test "x$with_mpc" != x; then
7872   gmplibs="-L$with_mpc/lib $gmplibs"
7873   gmpinc="-I$with_mpc/include $gmpinc"
7874 fi
7875 if test "x$with_mpc_include" != x; then
7876   gmpinc="-I$with_mpc_include $gmpinc"
7877 fi
7878 if test "x$with_mpc_lib" != x; then
7879   gmplibs="-L$with_mpc_lib $gmplibs"
7880 fi
7881 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7882   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7883   gmpinc='-I$$s/mpc/src '"$gmpinc"
7884   # Do not test the mpc version.  Assume that it is sufficient, since
7885   # it is in the source tree, and the library has not been built yet
7886   # but it would be included on the link line in the version check below
7887   # hence making the test fail.
7888   have_gmp=yes
7889 fi
7890
7891 # Specify a location for mpfr
7892 # check for this first so it ends up on the link line before gmp.
7893
7894 # Check whether --with-mpfr-dir was given.
7895 if test "${with_mpfr_dir+set}" = set; then :
7896   withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
7897 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7898 fi
7899
7900
7901
7902 # Check whether --with-mpfr was given.
7903 if test "${with_mpfr+set}" = set; then :
7904   withval=$with_mpfr;
7905 fi
7906
7907
7908 # Check whether --with-mpfr-include was given.
7909 if test "${with_mpfr_include+set}" = set; then :
7910   withval=$with_mpfr_include;
7911 fi
7912
7913
7914 # Check whether --with-mpfr-lib was given.
7915 if test "${with_mpfr_lib+set}" = set; then :
7916   withval=$with_mpfr_lib;
7917 fi
7918
7919
7920 if test "x$with_mpfr" != x; then
7921   gmplibs="-L$with_mpfr/lib $gmplibs"
7922   gmpinc="-I$with_mpfr/include $gmpinc"
7923 fi
7924 if test "x$with_mpfr_include" != x; then
7925   gmpinc="-I$with_mpfr_include $gmpinc"
7926 fi
7927 if test "x$with_mpfr_lib" != x; then
7928   gmplibs="-L$with_mpfr_lib $gmplibs"
7929 fi
7930 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7931   # MPFR v3.1.0 moved the sources into a src sub-directory.
7932   if ! test -d ${srcdir}/mpfr/src; then
7933     as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7934   fi
7935   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7936   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7937   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7938   # Do not test the mpfr version.  Assume that it is sufficient, since
7939   # it is in the source tree, and the library has not been built yet
7940   # but it would be included on the link line in the version check below
7941   # hence making the test fail.
7942   have_gmp=yes
7943 fi
7944
7945 # Specify a location for gmp
7946
7947 # Check whether --with-gmp-dir was given.
7948 if test "${with_gmp_dir+set}" = set; then :
7949   withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
7950 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7951 fi
7952
7953
7954
7955 # Check whether --with-gmp was given.
7956 if test "${with_gmp+set}" = set; then :
7957   withval=$with_gmp;
7958 fi
7959
7960
7961 # Check whether --with-gmp-include was given.
7962 if test "${with_gmp_include+set}" = set; then :
7963   withval=$with_gmp_include;
7964 fi
7965
7966
7967 # Check whether --with-gmp-lib was given.
7968 if test "${with_gmp_lib+set}" = set; then :
7969   withval=$with_gmp_lib;
7970 fi
7971
7972
7973
7974 if test "x$with_gmp" != x; then
7975   gmplibs="-L$with_gmp/lib $gmplibs"
7976   gmpinc="-I$with_gmp/include $gmpinc"
7977 fi
7978 if test "x$with_gmp_include" != x; then
7979   gmpinc="-I$with_gmp_include $gmpinc"
7980 fi
7981 if test "x$with_gmp_lib" != x; then
7982   gmplibs="-L$with_gmp_lib $gmplibs"
7983 fi
7984 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
7985   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
7986   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
7987   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7988   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7989   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
7990   # Do not test the gmp version.  Assume that it is sufficient, since
7991   # it is in the source tree, and the library has not been built yet
7992   # but it would be included on the link line in the version check below
7993   # hence making the test fail.
7994   have_gmp=yes
7995 fi
7996
7997 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
7998   have_gmp=yes
7999   saved_CFLAGS="$CFLAGS"
8000   CFLAGS="$CFLAGS $gmpinc"
8001   # Check for the recommended and required versions of GMP.
8002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8003 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8004
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h.  */
8007 #include "gmp.h"
8008 int
8009 main ()
8010 {
8011
8012   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8013   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8014   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8015   choke me
8016   #endif
8017
8018   ;
8019   return 0;
8020 }
8021 _ACEOF
8022 if ac_fn_c_try_compile "$LINENO"; then :
8023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8024 /* end confdefs.h.  */
8025 #include <gmp.h>
8026 int
8027 main ()
8028 {
8029
8030   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8031   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8032   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8033   choke me
8034   #endif
8035
8036   ;
8037   return 0;
8038 }
8039 _ACEOF
8040 if ac_fn_c_try_compile "$LINENO"; then :
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8042 $as_echo "yes" >&6; }
8043 else
8044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8045 $as_echo "buggy but acceptable" >&6; }
8046 fi
8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048 else
8049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }; have_gmp=no
8051 fi
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053
8054   # If we have GMP, check the MPFR version.
8055   if test x"$have_gmp" = xyes; then
8056     # Check for the recommended and required versions of MPFR.
8057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8058 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8059     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h.  */
8061 #include <gmp.h>
8062     #include <mpfr.h>
8063 int
8064 main ()
8065 {
8066
8067     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8068     choke me
8069     #endif
8070
8071   ;
8072   return 0;
8073 }
8074 _ACEOF
8075 if ac_fn_c_try_compile "$LINENO"; then :
8076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h.  */
8078 #include <gmp.h>
8079     #include <mpfr.h>
8080 int
8081 main ()
8082 {
8083
8084     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8085     choke me
8086     #endif
8087
8088   ;
8089   return 0;
8090 }
8091 _ACEOF
8092 if ac_fn_c_try_compile "$LINENO"; then :
8093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8094 $as_echo "yes" >&6; }
8095 else
8096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8097 $as_echo "buggy but acceptable" >&6; }
8098 fi
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 else
8101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102 $as_echo "no" >&6; }; have_gmp=no
8103 fi
8104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8105   fi
8106
8107   # Check for the MPC header version.
8108   if test x"$have_gmp" = xyes ; then
8109     # Check for the recommended and required versions of MPC.
8110     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8111 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8112     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h.  */
8114 #include <mpc.h>
8115 int
8116 main ()
8117 {
8118
8119     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8120     choke me
8121     #endif
8122
8123   ;
8124   return 0;
8125 }
8126 _ACEOF
8127 if ac_fn_c_try_compile "$LINENO"; then :
8128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h.  */
8130 #include <mpc.h>
8131 int
8132 main ()
8133 {
8134
8135     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8136     choke me
8137     #endif
8138
8139   ;
8140   return 0;
8141 }
8142 _ACEOF
8143 if ac_fn_c_try_compile "$LINENO"; then :
8144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8145 $as_echo "yes" >&6; }
8146 else
8147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8148 $as_echo "buggy but acceptable" >&6; }
8149 fi
8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8151 else
8152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153 $as_echo "no" >&6; }; have_gmp=no
8154 fi
8155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156   fi
8157
8158   # Now check the MPFR library.
8159   if test x"$have_gmp" = xyes; then
8160     saved_LIBS="$LIBS"
8161     LIBS="$LIBS $gmplibs"
8162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8163 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8164     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h.  */
8166 #include <mpc.h>
8167 int
8168 main ()
8169 {
8170
8171     mpfr_t n;
8172     mpfr_t x;
8173     mpc_t c;
8174     int t;
8175     mpfr_init (n);
8176     mpfr_init (x);
8177     mpfr_atan2 (n, n, x, MPFR_RNDN);
8178     mpfr_erfc (n, x, MPFR_RNDN);
8179     mpfr_subnormalize (x, t, MPFR_RNDN);
8180     mpfr_clear(n);
8181     mpfr_clear(x);
8182     mpc_init2 (c, 53);
8183     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8184     mpc_cosh (c, c, MPC_RNDNN);
8185     mpc_pow (c, c, c, MPC_RNDNN);
8186     mpc_acosh (c, c, MPC_RNDNN);
8187     mpc_clear (c);
8188
8189   ;
8190   return 0;
8191 }
8192 _ACEOF
8193 if ac_fn_c_try_link "$LINENO"; then :
8194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8195 $as_echo "yes" >&6; }
8196 else
8197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }; have_gmp=no
8199 fi
8200 rm -f core conftest.err conftest.$ac_objext \
8201     conftest$ac_exeext conftest.$ac_ext
8202     LIBS="$saved_LIBS"
8203   fi
8204
8205   CFLAGS="$saved_CFLAGS"
8206
8207 # The library versions listed in the error message below should match
8208 # the HARD-minimums enforced above.
8209   if test x$have_gmp != xyes; then
8210     as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8211 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8212 their locations.  Source code for these libraries can be found at
8213 their respective hosting sites as well as at
8214 https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
8215 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
8216 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8217 make sure that you have installed both the libraries and the header
8218 files.  They may be located in separate packages." "$LINENO" 5
8219   fi
8220 fi
8221
8222 # Flags needed for both GMP, MPFR and/or MPC.
8223
8224
8225
8226
8227
8228
8229
8230 # Libraries to use for stage1 or when not bootstrapping.
8231
8232 # Check whether --with-stage1-libs was given.
8233 if test "${with_stage1_libs+set}" = set; then :
8234   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8235    stage1_libs=
8236  else
8237    stage1_libs=$withval
8238  fi
8239 else
8240   stage1_libs=
8241 fi
8242
8243
8244
8245 # Whether or not to use -static-libstdc++ and -static-libgcc.  The
8246 # default is yes if gcc is being built; no otherwise.  The reason for
8247 # this default is that gdb is sometimes linked against GNU Source
8248 # Highlight, which is a shared library that uses C++ exceptions.  In
8249 # this case, -static-libstdc++ will cause crashes.
8250
8251 # Check whether --with-static-standard-libraries was given.
8252 if test "${with_static_standard_libraries+set}" = set; then :
8253   withval=$with_static_standard_libraries;
8254 else
8255   with_static_standard_libraries=auto
8256 fi
8257
8258 if test "$with_static_standard_libraries" = auto; then
8259   with_static_standard_libraries=$have_compiler
8260 fi
8261
8262 # Linker flags to use for stage1 or when not bootstrapping.
8263
8264 # Check whether --with-stage1-ldflags was given.
8265 if test "${with_stage1_ldflags+set}" = set; then :
8266   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8267    stage1_ldflags=
8268  else
8269    stage1_ldflags=$withval
8270  fi
8271 else
8272   stage1_ldflags=
8273  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8274  # if supported.  But if the user explicitly specified the libraries to use,
8275  # trust that they are doing what they want.
8276  if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8277      -a "$have_static_libs" = yes; then
8278    stage1_ldflags="-static-libstdc++ -static-libgcc"
8279  fi
8280 fi
8281
8282
8283
8284 # Libraries to use for stage2 and later builds.
8285
8286 # Check whether --with-boot-libs was given.
8287 if test "${with_boot_libs+set}" = set; then :
8288   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8289    poststage1_libs=
8290  else
8291    poststage1_libs=$withval
8292  fi
8293 else
8294   poststage1_libs=
8295 fi
8296
8297
8298
8299 # Linker flags to use for stage2 and later builds.
8300
8301 # Check whether --with-boot-ldflags was given.
8302 if test "${with_boot_ldflags+set}" = set; then :
8303   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8304    poststage1_ldflags=
8305  else
8306    poststage1_ldflags=$withval
8307  fi
8308 else
8309   poststage1_ldflags=
8310  # In stages 2 and 3, default to linking libstdc++ and libgcc
8311  # statically.  But if the user explicitly specified the libraries to
8312  # use, trust that they are doing what they want.
8313  if test "$poststage1_libs" = ""; then
8314    poststage1_ldflags="-static-libstdc++ -static-libgcc"
8315  fi
8316 fi
8317
8318
8319
8320 # GCC GRAPHITE dependency isl.
8321 # Basic setup is inlined here, actual checks are in config/isl.m4
8322
8323
8324 # Check whether --with-isl was given.
8325 if test "${with_isl+set}" = set; then :
8326   withval=$with_isl;
8327 fi
8328
8329
8330 # Treat --without-isl as a request to disable
8331 # GRAPHITE support and skip all following checks.
8332 if test "x$with_isl" != "xno"; then
8333   # Check for isl
8334
8335
8336 # Check whether --with-isl-include was given.
8337 if test "${with_isl_include+set}" = set; then :
8338   withval=$with_isl_include;
8339 fi
8340
8341
8342 # Check whether --with-isl-lib was given.
8343 if test "${with_isl_lib+set}" = set; then :
8344   withval=$with_isl_lib;
8345 fi
8346
8347
8348   # Check whether --enable-isl-version-check was given.
8349 if test "${enable_isl_version_check+set}" = set; then :
8350   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8351 else
8352   ENABLE_ISL_CHECK=yes
8353 fi
8354
8355
8356   # Initialize isllibs and islinc.
8357   case $with_isl in
8358     no)
8359       isllibs=
8360       islinc=
8361       ;;
8362     "" | yes)
8363       ;;
8364     *)
8365       isllibs="-L$with_isl/lib"
8366       islinc="-I$with_isl/include"
8367       ;;
8368   esac
8369   if test "x${with_isl_include}" != x ; then
8370     islinc="-I$with_isl_include"
8371   fi
8372   if test "x${with_isl_lib}" != x; then
8373     isllibs="-L$with_isl_lib"
8374   fi
8375         if test "x${islinc}" = x && test "x${isllibs}" = x \
8376      && test -d ${srcdir}/isl; then
8377     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8378     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8379     ENABLE_ISL_CHECK=no
8380     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8381 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8382   fi
8383
8384   isllibs="${isllibs} -lisl"
8385
8386
8387
8388   if test "${ENABLE_ISL_CHECK}" = yes ; then
8389     _isl_saved_CFLAGS=$CFLAGS
8390     _isl_saved_LDFLAGS=$LDFLAGS
8391     _isl_saved_LIBS=$LIBS
8392
8393     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8394     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8395     LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8396
8397     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8398 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8399     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h.  */
8401 #include <isl/schedule.h>
8402 int
8403 main ()
8404 {
8405 isl_options_set_schedule_serialize_sccs (NULL, 0);
8406   ;
8407   return 0;
8408 }
8409 _ACEOF
8410 if ac_fn_c_try_link "$LINENO"; then :
8411   gcc_cv_isl=yes
8412 else
8413   gcc_cv_isl=no
8414 fi
8415 rm -f core conftest.err conftest.$ac_objext \
8416     conftest$ac_exeext conftest.$ac_ext
8417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8418 $as_echo "$gcc_cv_isl" >&6; }
8419
8420     if test "${gcc_cv_isl}" = no ; then
8421       { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8422 $as_echo "required isl version is 0.15 or later" >&6; }
8423     fi
8424
8425     CFLAGS=$_isl_saved_CFLAGS
8426     LDFLAGS=$_isl_saved_LDFLAGS
8427     LIBS=$_isl_saved_LIBS
8428   fi
8429
8430
8431
8432
8433
8434
8435   if test "x${with_isl}" = xno; then
8436     graphite_requested=no
8437   elif test "x${with_isl}" != x \
8438     || test "x${with_isl_include}" != x \
8439     || test "x${with_isl_lib}" != x ; then
8440     graphite_requested=yes
8441   else
8442     graphite_requested=no
8443   fi
8444
8445
8446
8447   if test "${gcc_cv_isl}" = no ; then
8448     isllibs=
8449     islinc=
8450   fi
8451
8452   if test "${graphite_requested}" = yes \
8453     && test "x${isllibs}" = x \
8454     && test "x${islinc}" = x ; then
8455
8456     as_fn_error $? "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
8457   fi
8458
8459
8460 fi
8461
8462 # If the isl check failed, disable builds of in-tree variant of isl
8463 if test "x$with_isl" = xno ||
8464    test "x$gcc_cv_isl" = xno; then
8465   noconfigdirs="$noconfigdirs isl"
8466   islinc=
8467 fi
8468
8469
8470
8471
8472 # Check for LTO support.
8473 # Check whether --enable-lto was given.
8474 if test "${enable_lto+set}" = set; then :
8475   enableval=$enable_lto; enable_lto=$enableval
8476 else
8477   enable_lto=yes; default_enable_lto=yes
8478 fi
8479
8480
8481
8482
8483
8484 target_elf=no
8485 case $target in
8486   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8487   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8488   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8489   nvptx-*-none)
8490     target_elf=no
8491     ;;
8492   *)
8493     target_elf=yes
8494     ;;
8495 esac
8496
8497 if test $target_elf = yes; then :
8498   # ELF platforms build the lto-plugin always.
8499   build_lto_plugin=yes
8500
8501 else
8502   if test x"$default_enable_lto" = x"yes" ; then
8503     case $target in
8504       *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8505       # On other non-ELF platforms, LTO has yet to be validated.
8506       *) enable_lto=no ;;
8507     esac
8508   else
8509   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8510   # It would also be nice to check the binutils support, but we don't
8511   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
8512   # warn during gcc/ subconfigure; unless you're bootstrapping with
8513   # -flto it won't be needed until after installation anyway.
8514     case $target in
8515       *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8516       *) if test x"$enable_lto" = x"yes"; then
8517         as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8518         fi
8519       ;;
8520     esac
8521   fi
8522   # Among non-ELF, only Windows platforms support the lto-plugin so far.
8523   # Build it unless LTO was explicitly disabled.
8524   case $target in
8525     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8526     *) ;;
8527   esac
8528
8529 fi
8530
8531
8532 # Check whether --enable-linker-plugin-configure-flags was given.
8533 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8534   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8535 else
8536   extra_linker_plugin_configure_flags=
8537 fi
8538
8539
8540 # Check whether --enable-linker-plugin-flags was given.
8541 if test "${enable_linker_plugin_flags+set}" = set; then :
8542   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8543 else
8544   extra_linker_plugin_flags=
8545 fi
8546
8547
8548
8549 # Enable --enable-host-shared.
8550 # Checked early to determine whether jit is an 'all' language
8551 # Check whether --enable-host-shared was given.
8552 if test "${enable_host_shared+set}" = set; then :
8553   enableval=$enable_host_shared; host_shared=$enableval
8554  case $target in
8555    x86_64-*-darwin* | aarch64-*-darwin*)
8556      if test x$host_shared != xyes ; then
8557        # PIC is the default, and actually cannot be switched off.
8558        echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8559        host_shared=yes
8560      fi ;;
8561   *) ;;
8562  esac
8563 else
8564   case $target in
8565   x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8566   *) host_shared=no ;;
8567  esac
8568 fi
8569
8570
8571
8572 # By default, C and C++ are the only stage 1 languages.
8573 stage1_languages=,c,
8574
8575 # Target libraries that we bootstrap.
8576 bootstrap_target_libs=,target-libgcc,
8577
8578 # Figure out what language subdirectories are present.
8579 # Look if the user specified --enable-languages="..."; if not, use
8580 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8581 # go away some day.
8582 # NB:  embedded tabs in this IF block -- do not untabify
8583 if test -d ${srcdir}/gcc; then
8584   if test x"${enable_languages+set}" != xset; then
8585     if test x"${LANGUAGES+set}" = xset; then
8586       enable_languages="${LANGUAGES}"
8587         echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8588     else
8589       enable_languages=default
8590     fi
8591   else
8592     if test x"${enable_languages}" = x ||
8593        test x"${enable_languages}" = xyes;
8594        then
8595       echo configure.ac: --enable-languages needs at least one language argument 1>&2
8596       exit 1
8597     fi
8598   fi
8599   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
8600
8601   # 'f95' is the old name for the 'fortran' language. We issue a warning
8602   # and make the substitution.
8603   case ,${enable_languages}, in
8604     *,f95,*)
8605       echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8606       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8607       ;;
8608   esac
8609
8610   # If bootstrapping, C++ must be enabled.
8611   case ",$enable_languages,:$enable_bootstrap" in
8612     *,c++,*:*) ;;
8613     *:yes)
8614       if test -f ${srcdir}/gcc/cp/config-lang.in; then
8615         enable_languages="${enable_languages},c++"
8616       else
8617         as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8618       fi
8619       ;;
8620   esac
8621
8622   # First scan to see if an enabled language requires some other language.
8623   # We assume that a given config-lang.in will list all the language
8624   # front ends it requires, even if some are required indirectly.
8625   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8626     case ${lang_frag} in
8627       ..) ;;
8628       # The odd quoting in the next line works around
8629       # an apparent bug in bash 1.12 on linux.
8630       ${srcdir}/gcc/[*]/config-lang.in) ;;
8631       *)
8632         # From the config-lang.in, get $language, $lang_requires, and
8633         # $lang_requires_boot_languages.
8634         language=
8635         lang_requires=
8636         lang_requires_boot_languages=
8637         # set srcdir during sourcing lang_frag to the gcc dir.
8638         # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8639         # polutes this shell
8640         saved_srcdir=${srcdir}
8641         srcdir=${srcdir}/gcc . ${lang_frag}
8642         srcdir=${saved_srcdir}
8643         for other in ${lang_requires} ${lang_requires_boot_languages}; do
8644           case ,${enable_languages}, in
8645             *,$other,*) ;;
8646             *,default,*) ;;
8647             *,all,*) ;;
8648             *,$language,*)
8649               echo " \`$other' language required by \`$language'; enabling" 1>&2
8650               enable_languages="${enable_languages},${other}"
8651               ;;
8652           esac
8653         done
8654         for other in ${lang_requires_boot_languages} ; do
8655           if test "$other" != "c"; then
8656             case ,${enable_stage1_languages}, in
8657               *,$other,*) ;;
8658               *,default,*) ;;
8659               *,all,*) ;;
8660               *)
8661                 case ,${enable_languages}, in
8662                   *,$language,*)
8663                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8664                     enable_stage1_languages="$enable_stage1_languages,${other}"
8665                     ;;
8666                 esac
8667                 ;;
8668             esac
8669           fi
8670         done
8671         ;;
8672     esac
8673   done
8674
8675   new_enable_languages=,c,
8676
8677   # If LTO is enabled, add the LTO front end.
8678   if test "$enable_lto" = "yes" ; then
8679     case ,${enable_languages}, in
8680       *,lto,*) ;;
8681       *) enable_languages="${enable_languages},lto" ;;
8682     esac
8683     if test "${build_lto_plugin}" = "yes" ; then
8684       configdirs="$configdirs lto-plugin"
8685     fi
8686   fi
8687
8688   # If we're building an offloading compiler, add the LTO front end.
8689   if test x"$enable_as_accelerator_for" != x ; then
8690     case ,${enable_languages}, in
8691       *,lto,*) ;;
8692       *) enable_languages="${enable_languages},lto" ;;
8693     esac
8694   fi
8695
8696   missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8697   potential_languages=,c,
8698
8699   enabled_target_libs=
8700   disabled_target_libs=
8701
8702   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8703     case ${lang_frag} in
8704       ..) ;;
8705       # The odd quoting in the next line works around
8706       # an apparent bug in bash 1.12 on linux.
8707       ${srcdir}/gcc/[*]/config-lang.in) ;;
8708       *)
8709         # From the config-lang.in, get $language, $target_libs,
8710         # $lang_dirs, $boot_language, and $build_by_default
8711         language=
8712         target_libs=
8713         lang_dirs=
8714         subdir_requires=
8715         boot_language=no
8716         build_by_default=yes
8717         # set srcdir during sourcing.  See above about save & restore
8718         saved_srcdir=${srcdir}
8719         srcdir=${srcdir}/gcc . ${lang_frag}
8720         srcdir=${saved_srcdir}
8721         if test x${language} = x; then
8722           echo "${lang_frag} doesn't set \$language." 1>&2
8723           exit 1
8724         fi
8725
8726         if test "$language" = "c++"; then
8727           boot_language=yes
8728         fi
8729
8730         add_this_lang=no
8731         # C is always enabled, so no need to add it again
8732         if test "$language" != "c"; then
8733           case ,${enable_languages}, in
8734             *,${language},*)
8735               # Language was explicitly selected; include it
8736               add_this_lang=yes
8737               ;;
8738             *,all,*)
8739               # All languages are enabled
8740               add_this_lang=all
8741               ;;
8742             *,default,*)
8743               # 'default' was selected, select it if it is a default language
8744               add_this_lang=${build_by_default}
8745               ;;
8746           esac
8747         fi
8748
8749         # Disable languages that need other directories if these aren't available.
8750         for i in $subdir_requires; do
8751           test -f "$srcdir/gcc/$i/config-lang.in" && continue
8752           case ${add_this_lang} in
8753             yes)
8754               # Specifically requested language; tell them.
8755               as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8756               ;;
8757             all)
8758               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8759 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8760               add_this_lang=unsupported
8761               ;;
8762             *)
8763               # Silently disable.
8764               add_this_lang=unsupported
8765               ;;
8766           esac
8767         done
8768
8769         # Disable Ada if no preexisting GNAT is available.
8770         case ${add_this_lang}:${language}:${have_gnat} in
8771           yes:ada:no)
8772             # Specifically requested language; tell them.
8773             as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8774             ;;
8775           all:ada:no)
8776             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8777 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8778             add_this_lang=unsupported
8779             ;;
8780           *:ada:no)
8781             # Silently disable.
8782             add_this_lang=unsupported
8783             ;;
8784         esac
8785
8786         # Disable D if no preexisting GDC is available.
8787         case ${add_this_lang}:${language}:${have_gdc} in
8788           yes:d:no)
8789             # Specifically requested language; tell them.
8790             as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8791            ;;
8792           all:d:no)
8793             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8794 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8795             add_this_lang=unsupported
8796             ;;
8797           *:d:no)
8798             # Silently disable.
8799             add_this_lang=unsupported
8800             ;;
8801         esac
8802
8803         # Disable jit if -enable-host-shared not specified
8804         # but not if building for Mingw. All code in Windows
8805         # is position independent code (PIC).
8806         case $target in
8807           *mingw*) ;;
8808           *)
8809           case ${add_this_lang}:${language}:${host_shared} in
8810             yes:jit:no)
8811                    # PR jit/64780: explicitly specify --enable-host-shared
8812             as_fn_error $? "
8813 Enabling language \"jit\" requires --enable-host-shared.
8814
8815 --enable-host-shared typically slows the rest of the compiler down by
8816 a few %, so you must explicitly enable it.
8817
8818 If you want to build both the jit and the regular compiler, it is often
8819 best to do this via two separate configure/builds, in separate
8820 directories, to avoid imposing the performance cost of
8821 --enable-host-shared on the regular compiler." "$LINENO" 5
8822                     ;;
8823             all:jit:no)
8824               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8825 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8826               add_this_lang=unsupported
8827               ;;
8828             *:jit:no)
8829               # Silently disable.
8830               add_this_lang=unsupported
8831               ;;
8832                 esac
8833           ;;
8834         esac
8835
8836         # Disable a language that is unsupported by the target.
8837         case "${add_this_lang}: $unsupported_languages " in
8838           no:*) ;;
8839           unsupported:*) ;;
8840           *:*" $language "*)
8841             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8842 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8843             add_this_lang=unsupported
8844             ;;
8845         esac
8846
8847         case $add_this_lang in
8848           unsupported)
8849             # Remove language-dependent dirs.
8850             disabled_target_libs="$disabled_target_libs $target_libs"
8851             noconfigdirs="$noconfigdirs $lang_dirs"
8852             ;;
8853           no)
8854             # Remove language-dependent dirs; still show language as supported.
8855             disabled_target_libs="$disabled_target_libs $target_libs"
8856             noconfigdirs="$noconfigdirs $lang_dirs"
8857             potential_languages="${potential_languages}${language},"
8858             ;;
8859           all|yes)
8860             new_enable_languages="${new_enable_languages}${language},"
8861             potential_languages="${potential_languages}${language},"
8862             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8863             enabled_target_libs="$enabled_target_libs $target_libs"
8864             case "${boot_language}:,$enable_stage1_languages," in
8865               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8866                 # Add to (comma-separated) list of stage 1 languages.
8867                 case ",$stage1_languages," in
8868                   *,$language,* | ,yes, | ,all,) ;;
8869                   *) stage1_languages="${stage1_languages}${language}," ;;
8870                 esac
8871                 # We need to bootstrap any supporting libraries.
8872                 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8873                 ;;
8874             esac
8875             ;;
8876         esac
8877         ;;
8878     esac
8879   done
8880
8881   # Add target libraries which are only needed for disabled languages
8882   # to noconfigdirs.
8883   if test -n "$disabled_target_libs"; then
8884     for dir in $disabled_target_libs; do
8885       case " $enabled_target_libs " in
8886       *" ${dir} "*) ;;
8887       *) noconfigdirs="$noconfigdirs $dir" ;;
8888       esac
8889     done
8890   fi
8891
8892   # Check whether --enable-stage1-languages was given.
8893 if test "${enable_stage1_languages+set}" = set; then :
8894   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8895     ,no,|,,)
8896       # Set it to something that will have no effect in the loop below
8897       enable_stage1_languages=c ;;
8898     ,yes,)
8899       enable_stage1_languages=`echo $new_enable_languages | \
8900         sed -e "s/^,//" -e "s/,$//" ` ;;
8901     *,all,*)
8902       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8903         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8904   esac
8905
8906   # Add "good" languages from enable_stage1_languages to stage1_languages,
8907   # while "bad" languages go in missing_languages.  Leave no duplicates.
8908   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8909     case $potential_languages in
8910       *,$i,*)
8911         case $stage1_languages in
8912           *,$i,*) ;;
8913           *) stage1_languages="$stage1_languages$i," ;;
8914         esac ;;
8915       *)
8916         case $missing_languages in
8917           *,$i,*) ;;
8918           *) missing_languages="$missing_languages$i," ;;
8919         esac ;;
8920      esac
8921   done
8922 fi
8923
8924
8925   # Remove leading/trailing commas that were added for simplicity
8926   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8927   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8928   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8929   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8930
8931   if test "x$missing_languages" != x; then
8932     as_fn_error $? "
8933 The following requested languages could not be built: ${missing_languages}
8934 Supported languages are: ${potential_languages}" "$LINENO" 5
8935   fi
8936   if test "x$new_enable_languages" != "x$enable_languages"; then
8937     echo The following languages will be built: ${new_enable_languages}
8938     enable_languages="$new_enable_languages"
8939   fi
8940
8941
8942   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8943 fi
8944
8945 # Handle --disable-<component> generically.
8946 for dir in $configdirs $build_configdirs $target_configdirs ; do
8947   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8948   varname=`echo $dirname | sed -e s/+/_/g`
8949   if eval test x\${enable_${varname}} "=" xno ; then
8950     noconfigdirs="$noconfigdirs $dir"
8951   fi
8952 done
8953
8954 # Check for Boehm's garbage collector
8955 # Check whether --enable-objc-gc was given.
8956 if test "${enable_objc_gc+set}" = set; then :
8957   enableval=$enable_objc_gc;
8958 fi
8959
8960
8961 # Check whether --with-target-bdw-gc was given.
8962 if test "${with_target_bdw_gc+set}" = set; then :
8963   withval=$with_target_bdw_gc;
8964 fi
8965
8966
8967 # Check whether --with-target-bdw-gc-include was given.
8968 if test "${with_target_bdw_gc_include+set}" = set; then :
8969   withval=$with_target_bdw_gc_include;
8970 fi
8971
8972
8973 # Check whether --with-target-bdw-gc-lib was given.
8974 if test "${with_target_bdw_gc_lib+set}" = set; then :
8975   withval=$with_target_bdw_gc_lib;
8976 fi
8977
8978
8979 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8981 $as_echo_n "checking for bdw garbage collector... " >&6; }
8982   if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
8983         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8984 $as_echo "using bdw-gc in default locations" >&6; }
8985   else
8986         if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
8987       as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
8988     elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
8989       as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
8990     else
8991       { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8992 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8993     fi
8994   fi
8995 esac
8996
8997 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8998 case ,${enable_languages}, in
8999   *,c++,*)
9000     # Disable libitm, libsanitizer if we're not building libstdc++
9001     case "${noconfigdirs}" in
9002       *target-libstdc++-v3*)
9003         noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9004         ;;
9005       *) ;;
9006     esac
9007     ;;
9008   *)
9009     noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9010     ;;
9011 esac
9012
9013 # If gcc/ is not in the source tree then we'll not be building a
9014 # target compiler, assume in that case we don't want to build any
9015 # target libraries or tools.
9016 #
9017 # This was added primarily for the benefit for binutils-gdb who reuse
9018 # this configure script, but don't always have target tools available.
9019 if test ! -d ${srcdir}/gcc; then
9020    skipdirs="${skipdirs} ${target_configdirs}"
9021 fi
9022
9023 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9024 # $build_configdirs and $target_configdirs.
9025 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9026
9027 notsupp=""
9028 for dir in . $skipdirs $noconfigdirs ; do
9029   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9030   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9031     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9032     if test -r $srcdir/$dirname/configure ; then
9033       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9034         true
9035       else
9036         notsupp="$notsupp $dir"
9037       fi
9038     fi
9039   fi
9040   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9041     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9042     if test -r $srcdir/$dirname/configure ; then
9043       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9044         true
9045       else
9046         notsupp="$notsupp $dir"
9047       fi
9048     fi
9049   fi
9050   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9051     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9052     if test -r $srcdir/$dirname/configure ; then
9053       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9054         true
9055       else
9056         notsupp="$notsupp $dir"
9057       fi
9058     fi
9059   fi
9060 done
9061
9062 # Quietly strip out all directories which aren't configurable in this tree.
9063 # This relies on all configurable subdirectories being autoconfiscated, which
9064 # is now the case.
9065 build_configdirs_all="$build_configdirs"
9066 build_configdirs=
9067 for i in ${build_configdirs_all} ; do
9068   j=`echo $i | sed -e s/build-//g`
9069   if test -f ${srcdir}/$j/configure ; then
9070     build_configdirs="${build_configdirs} $i"
9071   fi
9072 done
9073
9074 configdirs_all="$configdirs"
9075 configdirs=
9076 for i in ${configdirs_all} ; do
9077   if test -f ${srcdir}/$i/configure ; then
9078     configdirs="${configdirs} $i"
9079   fi
9080 done
9081
9082 target_configdirs_all="$target_configdirs"
9083 target_configdirs=
9084 for i in ${target_configdirs_all} ; do
9085   j=`echo $i | sed -e s/target-//g`
9086   if test -f ${srcdir}/$j/configure ; then
9087     target_configdirs="${target_configdirs} $i"
9088   fi
9089 done
9090
9091 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9092 # so we have to add it after the preceding checks.
9093 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9094 then
9095   case " $configdirs " in
9096     *" libiberty "*)
9097       # If we can build libiberty, we can also build libiberty-linker-plugin.
9098       configdirs="$configdirs libiberty-linker-plugin"
9099       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9100         --with-libiberty=../libiberty-linker-plugin";;
9101     *)
9102       as_fn_error $? "libiberty missing" "$LINENO" 5;;
9103   esac
9104 fi
9105
9106 # Sometimes we have special requirements for the host libiberty.
9107 extra_host_libiberty_configure_flags=
9108 extra_host_zlib_configure_flags=
9109 case " $configdirs " in
9110   *" lto-plugin "* | *" libcc1 "*)
9111     # When these are to be built as shared libraries, the same applies to
9112     # libiberty.
9113     extra_host_libiberty_configure_flags=--enable-shared
9114     ;;
9115   *" bfd "*)
9116     # When bfd is to be built as a shared library, the same applies to
9117     # zlib.
9118     if test "$enable_shared" = "yes"; then
9119       extra_host_zlib_configure_flags=--enable-host-shared
9120     fi
9121     ;;
9122 esac
9123
9124
9125
9126 # Produce a warning message for the subdirs we can't configure.
9127 # This isn't especially interesting in the Cygnus tree, but in the individual
9128 # FSF releases, it's important to let people know when their machine isn't
9129 # supported by the one or two programs in a package.
9130
9131 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9132   # If $appdirs is non-empty, at least one of those directories must still
9133   # be configured, or we error out.  (E.g., if the gas release supports a
9134   # specified target in some subdirs but not the gas subdir, we shouldn't
9135   # pretend that all is well.)
9136   if test -n "$appdirs" ; then
9137     for dir in $appdirs ; do
9138       if test -r $dir/Makefile.in ; then
9139         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9140           appdirs=""
9141           break
9142         fi
9143         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9144           appdirs=""
9145           break
9146         fi
9147       fi
9148     done
9149     if test -n "$appdirs" ; then
9150       echo "*** This configuration is not supported by this package." 1>&2
9151       exit 1
9152     fi
9153   fi
9154   # Okay, some application will build, or we don't care to check.  Still
9155   # notify of subdirs not getting built.
9156   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9157   echo "    ${notsupp}" 1>&2
9158   echo "    (Any other directories should still work fine.)" 1>&2
9159 fi
9160
9161 case "$host" in
9162   *msdosdjgpp*)
9163     enable_gdbtk=no ;;
9164 esac
9165
9166 # To find our prefix, in gcc_cv_tool_prefix.
9167
9168 # The user is always right.
9169 if test "${PATH_SEPARATOR+set}" != set; then
9170   echo "#! /bin/sh" >conf$$.sh
9171   echo  "exit 0"   >>conf$$.sh
9172   chmod +x conf$$.sh
9173   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9174     PATH_SEPARATOR=';'
9175   else
9176     PATH_SEPARATOR=:
9177   fi
9178   rm -f conf$$.sh
9179 fi
9180
9181
9182   get_gcc_base_ver="cat"
9183
9184 # Check whether --with-gcc-major-version-only was given.
9185 if test "${with_gcc_major_version_only+set}" = set; then :
9186   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9187         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9188       fi
9189
9190 fi
9191
9192
9193
9194
9195
9196
9197 if test "x$exec_prefix" = xNONE; then
9198         if test "x$prefix" = xNONE; then
9199                 gcc_cv_tool_prefix=$ac_default_prefix
9200         else
9201                 gcc_cv_tool_prefix=$prefix
9202         fi
9203 else
9204         gcc_cv_tool_prefix=$exec_prefix
9205 fi
9206
9207 # If there is no compiler in the tree, use the PATH only.  In any
9208 # case, if there is no compiler in the tree nobody should use
9209 # AS_FOR_TARGET and LD_FOR_TARGET.
9210 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9211     if test x$with_gcc_major_version_only = xyes ; then
9212                 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9213             else
9214         gcc_version=`cat $srcdir/gcc/BASE-VER`
9215     fi
9216     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9217     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9218     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9219     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9220     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9221     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9222 else
9223     gcc_cv_tool_dirs=
9224 fi
9225
9226 if test x$build = x$target && test -n "$md_exec_prefix"; then
9227         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9228 fi
9229
9230
9231
9232 copy_dirs=
9233
9234
9235 # Check whether --with-build-sysroot was given.
9236 if test "${with_build_sysroot+set}" = set; then :
9237   withval=$with_build_sysroot; if test x"$withval" != x ; then
9238      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9239    fi
9240 else
9241   SYSROOT_CFLAGS_FOR_TARGET=
9242 fi
9243
9244
9245
9246
9247 # Check whether --with-debug-prefix-map was given.
9248 if test "${with_debug_prefix_map+set}" = set; then :
9249   withval=$with_debug_prefix_map; if test x"$withval" != x; then
9250      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9251      for debug_map in $withval; do
9252        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9253      done
9254    fi
9255 else
9256   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9257 fi
9258
9259
9260
9261 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9262 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
9263 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9264 # We want to ensure that TARGET libraries (which we know are built with
9265 # gcc) are built with "-O2 -g", so include those options when setting
9266 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9267 if test "x$CFLAGS_FOR_TARGET" = x; then
9268   if test "x${is_cross_compiler}" = xyes; then
9269     CFLAGS_FOR_TARGET="-g -O2"
9270   else
9271     CFLAGS_FOR_TARGET=$CFLAGS
9272     case " $CFLAGS " in
9273       *" -O2 "*) ;;
9274       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9275     esac
9276     case " $CFLAGS " in
9277       *" -g "* | *" -g3 "*) ;;
9278       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9279     esac
9280   fi
9281 fi
9282
9283
9284 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9285   if test "x${is_cross_compiler}" = xyes; then
9286     CXXFLAGS_FOR_TARGET="-g -O2"
9287   else
9288     CXXFLAGS_FOR_TARGET=$CXXFLAGS
9289     case " $CXXFLAGS " in
9290       *" -O2 "*) ;;
9291       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9292     esac
9293     case " $CXXFLAGS " in
9294       *" -g "* | *" -g3 "*) ;;
9295       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9296     esac
9297   fi
9298 fi
9299
9300
9301
9302
9303 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
9304 # the named directory are copied to $(tooldir)/sys-include.
9305 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9306   if test x${is_cross_compiler} = xno ; then
9307     echo 1>&2 '***' --with-headers is only supported when cross compiling
9308     exit 1
9309   fi
9310   if test x"${with_headers}" != xyes ; then
9311     x=${gcc_cv_tool_prefix}
9312     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9313   fi
9314 fi
9315
9316 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
9317 # the name directories are copied to $(tooldir)/lib.  Multiple directories
9318 # are permitted.
9319 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9320   if test x${is_cross_compiler} = xno ; then
9321     echo 1>&2 '***' --with-libs is only supported when cross compiling
9322     exit 1
9323   fi
9324   if test x"${with_libs}" != xyes ; then
9325     # Copy the libraries in reverse order, so that files in the first named
9326     # library override files in subsequent libraries.
9327     x=${gcc_cv_tool_prefix}
9328     for l in ${with_libs}; do
9329       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9330     done
9331   fi
9332 fi
9333
9334 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9335 #
9336 # This is done by determining whether or not the appropriate directory
9337 # is available, and by checking whether or not specific configurations
9338 # have requested that this magic not happen.
9339 #
9340 # The command line options always override the explicit settings in
9341 # configure.ac, and the settings in configure.ac override this magic.
9342 #
9343 # If the default for a toolchain is to use GNU as and ld, and you don't
9344 # want to do that, then you should use the --without-gnu-as and
9345 # --without-gnu-ld options for the configure script.  Similarly, if
9346 # the default is to use the included zlib and you don't want to do that,
9347 # you should use the --with-system-zlib option for the configure script.
9348
9349 if test x${use_gnu_as} = x &&
9350    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9351   with_gnu_as=yes
9352   extra_host_args="$extra_host_args --with-gnu-as"
9353 fi
9354
9355 if test x${use_gnu_ld} = x &&
9356    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9357   with_gnu_ld=yes
9358   extra_host_args="$extra_host_args --with-gnu-ld"
9359 fi
9360
9361 if test x${use_included_zlib} = x &&
9362    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9363   :
9364 else
9365   with_system_zlib=yes
9366   extra_host_args="$extra_host_args --with-system-zlib"
9367 fi
9368
9369 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9370 # can detect this case.
9371
9372 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9373   with_newlib=yes
9374   extra_host_args="$extra_host_args --with-newlib"
9375 fi
9376
9377 # Handle ${copy_dirs}
9378 set fnord ${copy_dirs}
9379 shift
9380 while test $# != 0 ; do
9381   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9382     :
9383   else
9384     echo Copying $1 to $2
9385
9386     # Use the install script to create the directory and all required
9387     # parent directories.
9388     if test -d $2 ; then
9389       :
9390     else
9391       echo >config.temp
9392       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9393     fi
9394
9395     # Copy the directory, assuming we have tar.
9396     # FIXME: Should we use B in the second tar?  Not all systems support it.
9397     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9398
9399     # It is the responsibility of the user to correctly adjust all
9400     # symlinks.  If somebody can figure out how to handle them correctly
9401     # here, feel free to add the code.
9402
9403     echo $1 > $2/COPIED
9404   fi
9405   shift; shift
9406 done
9407
9408 # Determine a target-dependent exec_prefix that the installed
9409 # gcc will search in.  Keep this list sorted by triplet, with
9410 # the *-*-osname triplets last.
9411 md_exec_prefix=
9412 case "${target}" in
9413   i[34567]86-pc-msdosdjgpp*)
9414     md_exec_prefix=/dev/env/DJDIR/bin
9415     ;;
9416   *-*-hpux* | \
9417   *-*-nto-qnx* | \
9418   *-*-solaris2*)
9419     md_exec_prefix=/usr/ccs/bin
9420     ;;
9421 esac
9422
9423 extra_arflags_for_target=
9424 extra_nmflags_for_target=
9425 extra_ranlibflags_for_target=
9426 target_makefile_frag=/dev/null
9427 case "${target}" in
9428   spu-*-*)
9429     target_makefile_frag="config/mt-spu"
9430     ;;
9431   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9432     target_makefile_frag="config/mt-sde"
9433     ;;
9434   mipsisa*-*-elfoabi*)
9435     target_makefile_frag="config/mt-mips-elfoabi"
9436     ;;
9437   mips*-*-*linux* | mips*-*-gnu*)
9438     target_makefile_frag="config/mt-mips-gnu"
9439     ;;
9440   nios2-*-elf*)
9441     target_makefile_frag="config/mt-nios2-elf"
9442     ;;
9443   *-*-linux-android*)
9444     target_makefile_frag="config/mt-android"
9445     ;;
9446   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9447     target_makefile_frag="config/mt-gnu"
9448     ;;
9449   *-*-aix4.[3456789]* | *-*-aix[56789].*)
9450     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9451     # commands to handle both 32-bit and 64-bit objects.  These flags are
9452     # harmless if we're using GNU nm or ar.
9453     extra_arflags_for_target=" -X32_64"
9454     extra_nmflags_for_target=" -B -X32_64"
9455     ;;
9456 esac
9457
9458 alphaieee_frag=/dev/null
9459 case $target in
9460   alpha*-*-*)
9461     # This just makes sure to use the -mieee option to build target libs.
9462     # This should probably be set individually by each library.
9463     alphaieee_frag="config/mt-alphaieee"
9464     ;;
9465 esac
9466
9467 # If --enable-target-optspace always use -Os instead of -O2 to build
9468 # the target libraries, similarly if it is not specified, use -Os
9469 # on selected platforms.
9470 ospace_frag=/dev/null
9471 case "${enable_target_optspace}:${target}" in
9472   yes:*)
9473     ospace_frag="config/mt-ospace"
9474     ;;
9475   :d30v-*)
9476     ospace_frag="config/mt-d30v"
9477     ;;
9478   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9479     ospace_frag="config/mt-ospace"
9480     ;;
9481   no:* | :*)
9482     ;;
9483   *)
9484     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9485     ;;
9486 esac
9487
9488 # Some systems (e.g., one of the i386-aix systems the gas testers are
9489 # using) don't handle "\$" correctly, so don't use it here.
9490 tooldir='${exec_prefix}'/${target_noncanonical}
9491 build_tooldir=${tooldir}
9492
9493 # Create a .gdbinit file which runs the one in srcdir
9494 # and tells GDB to look there for source files.
9495
9496 if test -r ${srcdir}/.gdbinit ; then
9497   case ${srcdir} in
9498     .) ;;
9499     *) cat > ./.gdbinit <<EOF
9500 # ${NO_EDIT}
9501 dir ${srcdir}
9502 dir .
9503 source ${srcdir}/.gdbinit
9504 EOF
9505     ;;
9506   esac
9507 fi
9508
9509 # Make sure that the compiler is able to generate an executable.  If it
9510 # can't, we are probably in trouble.  We don't care whether we can run the
9511 # executable--we might be using a cross compiler--we only care whether it
9512 # can be created.  At this point the main configure script has set CC.
9513 we_are_ok=no
9514 echo "int main () { return 0; }" > conftest.c
9515 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9516 if test $? = 0 ; then
9517   if test -s conftest || test -s conftest.exe ; then
9518     we_are_ok=yes
9519   fi
9520 fi
9521 case $we_are_ok in
9522   no)
9523     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9524     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9525     rm -f conftest*
9526     exit 1
9527     ;;
9528 esac
9529 rm -f conftest*
9530
9531 # Decide which environment variable is used to find dynamic libraries.
9532 case "${host}" in
9533   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9534   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9535   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9536   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9537 esac
9538
9539 # On systems where the dynamic library environment variable is PATH,
9540 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9541 # built executables to PATH.
9542 if test "$RPATH_ENVVAR" = PATH; then
9543   GCC_SHLIB_SUBDIR=/shlib
9544 else
9545   GCC_SHLIB_SUBDIR=
9546 fi
9547
9548 # Adjust the toplevel makefile according to whether bootstrap was selected.
9549 case $enable_bootstrap in
9550   yes)
9551     bootstrap_suffix=bootstrap
9552     BUILD_CONFIG=bootstrap-debug
9553     ;;
9554   no)
9555     bootstrap_suffix=no-bootstrap
9556     BUILD_CONFIG=
9557     ;;
9558 esac
9559
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9561 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9562
9563
9564 # Check whether --with-build-config was given.
9565 if test "${with_build_config+set}" = set; then :
9566   withval=$with_build_config; case $with_build_config in
9567    yes) with_build_config= ;;
9568    no) with_build_config= BUILD_CONFIG= ;;
9569    esac
9570 fi
9571
9572
9573 if test "x${with_build_config}" != x; then
9574   BUILD_CONFIG=$with_build_config
9575 else
9576   case $BUILD_CONFIG in
9577   bootstrap-debug)
9578     if echo "int f (void) { return 0; }" > conftest.c &&
9579        ${CC} -c conftest.c &&
9580        mv conftest.o conftest.o.g0 &&
9581        ${CC} -c -g conftest.c &&
9582        mv conftest.o conftest.o.g &&
9583        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9584       :
9585     else
9586       BUILD_CONFIG=
9587     fi
9588     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9589     ;;
9590   esac
9591 fi
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9593 $as_echo "$BUILD_CONFIG" >&6; }
9594
9595
9596 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9598 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9599 # Check whether --enable-vtable-verify was given.
9600 if test "${enable_vtable_verify+set}" = set; then :
9601   enableval=$enable_vtable_verify; case "$enableval" in
9602  yes) enable_vtable_verify=yes ;;
9603  no)  enable_vtable_verify=no ;;
9604  *)   enable_vtable_verify=no;;
9605  esac
9606 else
9607   enable_vtable_verify=no
9608 fi
9609
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9611 $as_echo "$enable_vtable_verify" >&6; }
9612
9613 # Record target_configdirs and the configure arguments for target and
9614 # build configuration in Makefile.
9615 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9616 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9617 bootstrap_fixincludes=no
9618
9619 # If we are building libgomp, bootstrap it.
9620 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9621   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9622 fi
9623
9624 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9625 # or bootstrap-ubsan, bootstrap it.
9626 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9627   case "$BUILD_CONFIG" in
9628     *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9629       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9630       bootstrap_fixincludes=yes
9631       ;;
9632   esac
9633 fi
9634
9635 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9636 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9637    test "$enable_vtable_verify" != no; then
9638   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9639 fi
9640
9641 # If we are building libatomic and the list of enabled languages includes the
9642 # D frontend, bootstrap it.
9643 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9644   case ,${enable_languages}, in
9645     *,d,*)
9646       bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9647       ;;
9648   esac
9649 fi
9650
9651 # Determine whether gdb needs tk/tcl or not.
9652 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9653 # and in that case we want gdb to be built without tk.  Ugh!
9654 # In fact I believe gdb is the *only* package directly dependent on tk,
9655 # so we should be able to put the 'maybe's in unconditionally and
9656 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
9657 # 100% sure that that's safe though.
9658
9659 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9660 case "$enable_gdbtk" in
9661   no)
9662     GDB_TK="" ;;
9663   yes)
9664     GDB_TK="${gdb_tk}" ;;
9665   *)
9666     # Only add the dependency on gdbtk when GDBtk is part of the gdb
9667     # distro.  Eventually someone will fix this and move Insight, nee
9668     # gdbtk to a separate directory.
9669     if test -d ${srcdir}/gdb/gdbtk ; then
9670       GDB_TK="${gdb_tk}"
9671     else
9672       GDB_TK=""
9673     fi
9674     ;;
9675 esac
9676 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9677 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9678
9679 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9680 # else does, only include them if one of these is built.  The Makefile
9681 # provides the ordering, so it's enough here to add to the list.
9682 case " ${configdirs} " in
9683   *\ gdb\ *)
9684     configdirs="${configdirs} gnulib gdbsupport"
9685     ;;
9686   *\ gdbserver\ *)
9687     configdirs="${configdirs} gnulib gdbsupport"
9688     ;;
9689   *\ sim\ *)
9690     configdirs="${configdirs} gnulib"
9691     ;;
9692 esac
9693
9694 # Strip out unwanted targets.
9695
9696 # While at that, we remove Makefiles if we were started for recursive
9697 # configuration, so that the top-level Makefile reconfigures them,
9698 # like we used to do when configure itself was recursive.
9699
9700 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
9701 # but now we're fixing up the Makefile ourselves with the additional
9702 # commands passed to AC_CONFIG_FILES.  Use separate variables
9703 # extrasub-{build,host,target} not because there is any reason to split
9704 # the substitutions up that way, but only to remain below the limit of
9705 # 99 commands in a script, for HP-UX sed.
9706
9707 # Do not nest @if/@endif or @unless/@endunless pairs, because
9708 # configure will not warn you at all.
9709
9710 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9711   yes:yes:*\ gold\ *:*,c++,*) ;;
9712   yes:yes:*\ gold\ *:*)
9713     as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9714     ;;
9715 esac
9716
9717 extrasub_build=
9718 for module in ${build_configdirs} ; do
9719   if test -z "${no_recursion}" \
9720      && test -f ${build_subdir}/${module}/Makefile; then
9721     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9722     rm -f ${build_subdir}/${module}/Makefile
9723   fi
9724   extrasub_build="$extrasub_build
9725 /^@if build-$module\$/d
9726 /^@endif build-$module\$/d
9727 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9728 /^@if build-$module-$bootstrap_suffix\$/d
9729 /^@endif build-$module-$bootstrap_suffix\$/d
9730 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9731 done
9732 extrasub_host=
9733 for module in ${configdirs} ; do
9734   if test -z "${no_recursion}"; then
9735     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9736       if test -f ${file}; then
9737         echo 1>&2 "*** removing ${file} to force reconfigure"
9738         rm -f ${file}
9739       fi
9740     done
9741   fi
9742   case ${module},${bootstrap_fixincludes} in
9743     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9744     *) host_bootstrap_suffix=$bootstrap_suffix ;;
9745   esac
9746   extrasub_host="$extrasub_host
9747 /^@if $module\$/d
9748 /^@endif $module\$/d
9749 /^@unless $module\$/,/^@endunless $module\$/d
9750 /^@if $module-$host_bootstrap_suffix\$/d
9751 /^@endif $module-$host_bootstrap_suffix\$/d
9752 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9753 done
9754 extrasub_target=
9755 for module in ${target_configdirs} ; do
9756   if test -z "${no_recursion}" \
9757      && test -f ${target_subdir}/${module}/Makefile; then
9758     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9759     rm -f ${target_subdir}/${module}/Makefile
9760   fi
9761
9762   # We only bootstrap target libraries listed in bootstrap_target_libs.
9763   case $bootstrap_target_libs in
9764     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9765     *) target_bootstrap_suffix=no-bootstrap ;;
9766   esac
9767
9768   extrasub_target="$extrasub_target
9769 /^@if target-$module\$/d
9770 /^@endif target-$module\$/d
9771 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9772 /^@if target-$module-$target_bootstrap_suffix\$/d
9773 /^@endif target-$module-$target_bootstrap_suffix\$/d
9774 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9775 done
9776
9777 # Do the final fixup along with target modules.
9778 extrasub_target="$extrasub_target
9779 /^@if /,/^@endif /d
9780 /^@unless /d
9781 /^@endunless /d"
9782
9783 # Create the serialization dependencies.  This uses a temporary file.
9784
9785 # Check whether --enable-serial-configure was given.
9786 if test "${enable_serial_configure+set}" = set; then :
9787   enableval=$enable_serial_configure;
9788 fi
9789
9790
9791 case ${enable_serial_configure} in
9792   yes)
9793     enable_serial_build_configure=yes
9794     enable_serial_host_configure=yes
9795     enable_serial_target_configure=yes
9796     ;;
9797 esac
9798
9799 # These force 'configure's to be done one at a time, to avoid problems
9800 # with contention over a shared config.cache.
9801 rm -f serdep.tmp
9802 echo '# serdep.tmp' > serdep.tmp
9803 olditem=
9804 test "x${enable_serial_build_configure}" = xyes &&
9805 for item in ${build_configdirs} ; do
9806   case ${olditem} in
9807     "") ;;
9808     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9809   esac
9810   olditem=${item}
9811 done
9812 olditem=
9813 test "x${enable_serial_host_configure}" = xyes &&
9814 for item in ${configdirs} ; do
9815   case ${olditem} in
9816     "") ;;
9817     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9818   esac
9819   olditem=${item}
9820 done
9821 olditem=
9822 test "x${enable_serial_target_configure}" = xyes &&
9823 for item in ${target_configdirs} ; do
9824   case ${olditem} in
9825     "") ;;
9826     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9827   esac
9828   olditem=${item}
9829 done
9830 serialization_dependencies=serdep.tmp
9831
9832
9833 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
9834 # target, nonopt, and variable assignments.  These are the ones we
9835 # might not want to pass down to subconfigures.  The exception being
9836 # --cache-file=/dev/null, which is used to turn off the use of cache
9837 # files altogether, and which should be passed on to subconfigures.
9838 # Also strip program-prefix, program-suffix, and program-transform-name,
9839 # so that we can pass down a consistent program-transform-name.
9840 baseargs=
9841 tbaseargs=
9842 keep_next=no
9843 skip_next=no
9844 eval "set -- $ac_configure_args"
9845 for ac_arg
9846 do
9847   if test X"$skip_next" = X"yes"; then
9848     skip_next=no
9849     continue
9850   fi
9851   if test X"$keep_next" = X"yes"; then
9852     case $ac_arg in
9853       *\'*)
9854         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9855     esac
9856     baseargs="$baseargs '$ac_arg'"
9857     tbaseargs="$tbaseargs '$ac_arg'"
9858     keep_next=no
9859     continue
9860   fi
9861
9862   # Handle separated arguments.  Based on the logic generated by
9863   # autoconf 2.59.
9864   case $ac_arg in
9865     *=* | --config-cache | -C | -disable-* | --disable-* \
9866       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9867       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9868       | -with-* | --with-* | -without-* | --without-* | --x)
9869       separate_arg=no
9870       ;;
9871     -*)
9872       separate_arg=yes
9873       ;;
9874     *)
9875       separate_arg=no
9876       ;;
9877   esac
9878
9879   skip_targ=no
9880   case $ac_arg in
9881
9882   --with-* | --without-*)
9883     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9884
9885     case $libopt in
9886     *[-_]include)
9887       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9888       ;;
9889     *[-_]lib)
9890       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9891       ;;
9892     *)
9893       lib=$libopt
9894       ;;
9895     esac
9896
9897
9898     case $lib in
9899     mpc | mpfr | gmp | isl)
9900       # If we're processing --with-$lib, --with-$lib-include or
9901       # --with-$lib-lib, for one of the libs above, and target is
9902       # different from host, don't pass the current argument to any
9903       # target library's configure.
9904       if test x$is_cross_compiler = xyes; then
9905         skip_targ=yes
9906       fi
9907       ;;
9908     esac
9909     ;;
9910   esac
9911
9912   case "$ac_arg" in
9913     --cache-file=/dev/null | \
9914     -cache-file=/dev/null )
9915       # Handled here to avoid the test to skip args below.
9916       baseargs="$baseargs '$ac_arg'"
9917       tbaseargs="$tbaseargs '$ac_arg'"
9918       # Assert: $separate_arg should always be no.
9919       keep_next=$separate_arg
9920       ;;
9921     --no*)
9922       continue
9923       ;;
9924     --c* | \
9925     --sr* | \
9926     --ho* | \
9927     --bu* | \
9928     --t* | \
9929     --program-* | \
9930     -cache_file* | \
9931     -srcdir* | \
9932     -host* | \
9933     -build* | \
9934     -target* | \
9935     -program-prefix* | \
9936     -program-suffix* | \
9937     -program-transform-name* )
9938       skip_next=$separate_arg
9939       continue
9940       ;;
9941     -*)
9942       # An option.  Add it.
9943       case $ac_arg in
9944         *\'*)
9945           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9946       esac
9947       baseargs="$baseargs '$ac_arg'"
9948       if test X"$skip_targ" = Xno; then
9949         tbaseargs="$tbaseargs '$ac_arg'"
9950       fi
9951       keep_next=$separate_arg
9952       ;;
9953     *)
9954       # Either a variable assignment, or a nonopt (triplet).  Don't
9955       # pass it down; let the Makefile handle this.
9956       continue
9957       ;;
9958   esac
9959 done
9960 # Remove the initial space we just introduced and, as these will be
9961 # expanded by make, quote '$'.
9962 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9963
9964 # Add in --program-transform-name, after --program-prefix and
9965 # --program-suffix have been applied to it.  Autoconf has already
9966 # doubled dollar signs and backslashes in program_transform_name; we want
9967 # the backslashes un-doubled, and then the entire thing wrapped in single
9968 # quotes, because this will be expanded first by make and then by the shell.
9969 # Also, because we want to override the logic in subdir configure scripts to
9970 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9971 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9972 ${program_transform_name}
9973 EOF_SED
9974 gcc_transform_name=`cat conftestsed.out`
9975 rm -f conftestsed.out
9976 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
9977 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9978 if test "$silent" = yes; then
9979   baseargs="$baseargs --silent"
9980   tbaseargs="$tbaseargs --silent"
9981 fi
9982 baseargs="$baseargs --disable-option-checking"
9983 tbaseargs="$tbaseargs --disable-option-checking"
9984
9985 # Record and document user additions to sub configure arguments.
9986
9987
9988
9989
9990 # For the build-side libraries, we just need to pretend we're native,
9991 # and not use the same cache file.  Multilibs are neither needed nor
9992 # desired.  We can't even use the same cache file for all build-side
9993 # libraries, as they're compiled differently; some with C, some with
9994 # C++ or with different feature-enabling options.
9995 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
9996
9997 # For host modules, accept cache file option, or specification as blank.
9998 case "${cache_file}" in
9999 "") # empty
10000   cache_file_option="" ;;
10001 /* | [A-Za-z]:[\\/]* ) # absolute path
10002   cache_file_option="--cache-file=${cache_file}" ;;
10003 *) # relative path
10004   cache_file_option="--cache-file=../${cache_file}" ;;
10005 esac
10006
10007 # Host dirs don't like to share a cache file either, horribly enough.
10008 # This seems to be due to autoconf 2.5x stupidity.
10009 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10010
10011 target_configargs="$target_configargs ${tbaseargs}"
10012
10013 # Passing a --with-cross-host argument lets the target libraries know
10014 # whether they are being built with a cross-compiler or being built
10015 # native.  However, it would be better to use other mechanisms to make the
10016 # sorts of decisions they want to make on this basis.  Please consider
10017 # this option to be deprecated.  FIXME.
10018 if test x${is_cross_compiler} = xyes ; then
10019   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10020 fi
10021
10022 # Special user-friendly check for native x86_64-linux build, if
10023 # multilib is not explicitly enabled.
10024 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10025   x86_64-*linux*:yes:$build:$build:)
10026     # Make sure we have a development environment that handles 32-bit
10027     dev64=no
10028     echo "int main () { return 0; }" > conftest.c
10029     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10030     if test $? = 0 ; then
10031       if test -s conftest || test -s conftest.exe ; then
10032         dev64=yes
10033       fi
10034     fi
10035     rm -f conftest*
10036     if test x${dev64} != xyes ; then
10037       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
10038     fi
10039     ;;
10040 esac
10041
10042 # Default to --enable-multilib.
10043 if test x${enable_multilib} = x ; then
10044   target_configargs="--enable-multilib ${target_configargs}"
10045 fi
10046
10047 # Pass --with-newlib if appropriate.  Note that target_configdirs has
10048 # changed from the earlier setting of with_newlib.
10049 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10050   target_configargs="--with-newlib ${target_configargs}"
10051 fi
10052
10053 # Different target subdirs use different values of certain variables
10054 # (notably CXX).  Worse, multilibs use *lots* of different values.
10055 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10056 # it doesn't automatically accept command-line overrides of them.
10057 # This means it's not safe for target subdirs to share a cache file,
10058 # which is disgusting, but there you have it.  Hopefully this can be
10059 # fixed in future.  It's still worthwhile to use a cache file for each
10060 # directory.  I think.
10061
10062 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10063 # We need to pass --target, as newer autoconf's requires consistency
10064 # for target_alias and gcc doesn't manage it consistently.
10065 target_configargs="--cache-file=./config.cache ${target_configargs}"
10066
10067 FLAGS_FOR_TARGET=
10068 case " $target_configdirs " in
10069  *" newlib "*)
10070   case " $target_configargs " in
10071   *" --with-newlib "*)
10072    case "$target" in
10073     *-cygwin*)
10074       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10075       ;;
10076    esac
10077
10078    # If we're not building GCC, don't discard standard headers.
10079    if test -d ${srcdir}/gcc; then
10080      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10081
10082      if test "${build}" != "${host}"; then
10083        # On Canadian crosses, CC_FOR_TARGET will have already been set
10084        # by `configure', so we won't have an opportunity to add -Bgcc/
10085        # to it.  This is right: we don't want to search that directory
10086        # for binaries, but we want the header files in there, so add
10087        # them explicitly.
10088        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10089
10090        # Someone might think of using the pre-installed headers on
10091        # Canadian crosses, in case the installed compiler is not fully
10092        # compatible with the compiler being built.  In this case, it
10093        # would be better to flag an error than risking having
10094        # incompatible object files being constructed.  We can't
10095        # guarantee that an error will be flagged, but let's hope the
10096        # compiler will do it, when presented with incompatible header
10097        # files.
10098      fi
10099    fi
10100
10101    case "${target}-${is_cross_compiler}" in
10102    i[3456789]86-*-linux*-no)
10103       # Here host == target, so we don't need to build gcc,
10104       # so we don't want to discard standard headers.
10105       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10106       ;;
10107    *)
10108       # If we're building newlib, use its generic headers last, but search
10109       # for any libc-related directories first (so make it the last -B
10110       # switch).
10111       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10112
10113       # If we're building libgloss, find the startup file, simulator library
10114       # and linker script.
10115       case " $target_configdirs " in
10116         *" libgloss "*)
10117         # Look for startup file, simulator library and maybe linker script.
10118         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10119         # Look for libnosys.a in case the target needs it.
10120         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10121         # Most targets have the linker script in the source directory.
10122         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10123         ;;
10124       esac
10125       ;;
10126    esac
10127    ;;
10128   esac
10129   ;;
10130 esac
10131
10132 case "$target" in
10133   x86_64-*mingw* | *-w64-mingw*)
10134   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10135   # however, use a symlink named 'mingw' in ${prefix} .
10136     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10137     ;;
10138   *-mingw*)
10139   # MinGW can't be handled as Cygwin above since it does not use newlib.
10140     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'
10141     ;;
10142 esac
10143
10144 # Allow the user to override the flags for
10145 # our build compiler if desired.
10146 if test x"${build}" = x"${host}" ; then
10147   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10148   CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10149   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10150   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10151 fi
10152
10153 # On Canadian crosses, we'll be searching the right directories for
10154 # the previously-installed cross compiler, so don't bother to add
10155 # flags for directories within the install tree of the compiler
10156 # being built; programs in there won't even run.
10157 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10158   # Search for pre-installed headers if nothing else fits.
10159   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10160 fi
10161
10162 if test "x${use_gnu_ld}" = x &&
10163    echo " ${configdirs} " | grep " ld " > /dev/null ; then
10164   # Arrange for us to find uninstalled linker scripts.
10165   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10166 fi
10167
10168 # Search for other target-specific linker scripts and such.
10169 case "${target}" in
10170   mep*)
10171     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10172     ;;
10173 esac
10174
10175 # Makefile fragments.
10176 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10177 do
10178   eval fragval=\$$frag
10179   if test $fragval != /dev/null; then
10180     eval $frag=${srcdir}/$fragval
10181   fi
10182 done
10183
10184
10185
10186
10187
10188 # Miscellanea: directories, flags, etc.
10189
10190
10191
10192
10193
10194
10195
10196
10197 # Build module lists & subconfigure args.
10198
10199
10200
10201 # Host module lists & subconfigure args.
10202
10203
10204
10205
10206 # Target module lists & subconfigure args.
10207
10208
10209
10210 # Build tools.
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231 # Generate default definitions for YACC, M4, LEX and other programs that run
10232 # on the build machine.  These are used if the Makefile can't locate these
10233 # programs in objdir.
10234 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10235
10236 for ac_prog in 'bison -y' byacc yacc
10237 do
10238   # Extract the first word of "$ac_prog", so it can be a program name with args.
10239 set dummy $ac_prog; ac_word=$2
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10241 $as_echo_n "checking for $ac_word... " >&6; }
10242 if ${ac_cv_prog_YACC+:} false; then :
10243   $as_echo_n "(cached) " >&6
10244 else
10245   if test -n "$YACC"; then
10246   ac_cv_prog_YACC="$YACC" # Let the user override the test.
10247 else
10248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10249 for as_dir in $PATH
10250 do
10251   IFS=$as_save_IFS
10252   test -z "$as_dir" && as_dir=.
10253     for ac_exec_ext in '' $ac_executable_extensions; do
10254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10255     ac_cv_prog_YACC="$ac_prog"
10256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10257     break 2
10258   fi
10259 done
10260   done
10261 IFS=$as_save_IFS
10262
10263 fi
10264 fi
10265 YACC=$ac_cv_prog_YACC
10266 if test -n "$YACC"; then
10267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10268 $as_echo "$YACC" >&6; }
10269 else
10270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10271 $as_echo "no" >&6; }
10272 fi
10273
10274
10275   test -n "$YACC" && break
10276 done
10277 test -n "$YACC" || YACC="$MISSING bison -y"
10278
10279 case " $build_configdirs " in
10280   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10281 esac
10282
10283 for ac_prog in bison
10284 do
10285   # Extract the first word of "$ac_prog", so it can be a program name with args.
10286 set dummy $ac_prog; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if ${ac_cv_prog_BISON+:} false; then :
10290   $as_echo_n "(cached) " >&6
10291 else
10292   if test -n "$BISON"; then
10293   ac_cv_prog_BISON="$BISON" # Let the user override the test.
10294 else
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10297 do
10298   IFS=$as_save_IFS
10299   test -z "$as_dir" && as_dir=.
10300     for ac_exec_ext in '' $ac_executable_extensions; do
10301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10302     ac_cv_prog_BISON="$ac_prog"
10303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304     break 2
10305   fi
10306 done
10307   done
10308 IFS=$as_save_IFS
10309
10310 fi
10311 fi
10312 BISON=$ac_cv_prog_BISON
10313 if test -n "$BISON"; then
10314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10315 $as_echo "$BISON" >&6; }
10316 else
10317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10319 fi
10320
10321
10322   test -n "$BISON" && break
10323 done
10324 test -n "$BISON" || BISON="$MISSING bison"
10325
10326 case " $build_configdirs " in
10327   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10328 esac
10329
10330 for ac_prog in gm4 gnum4 m4
10331 do
10332   # Extract the first word of "$ac_prog", so it can be a program name with args.
10333 set dummy $ac_prog; ac_word=$2
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10335 $as_echo_n "checking for $ac_word... " >&6; }
10336 if ${ac_cv_prog_M4+:} false; then :
10337   $as_echo_n "(cached) " >&6
10338 else
10339   if test -n "$M4"; then
10340   ac_cv_prog_M4="$M4" # Let the user override the test.
10341 else
10342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10343 for as_dir in $PATH
10344 do
10345   IFS=$as_save_IFS
10346   test -z "$as_dir" && as_dir=.
10347     for ac_exec_ext in '' $ac_executable_extensions; do
10348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10349     ac_cv_prog_M4="$ac_prog"
10350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10351     break 2
10352   fi
10353 done
10354   done
10355 IFS=$as_save_IFS
10356
10357 fi
10358 fi
10359 M4=$ac_cv_prog_M4
10360 if test -n "$M4"; then
10361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10362 $as_echo "$M4" >&6; }
10363 else
10364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365 $as_echo "no" >&6; }
10366 fi
10367
10368
10369   test -n "$M4" && break
10370 done
10371 test -n "$M4" || M4="$MISSING m4"
10372
10373 case " $build_configdirs " in
10374   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10375 esac
10376
10377 for ac_prog in flex lex
10378 do
10379   # Extract the first word of "$ac_prog", so it can be a program name with args.
10380 set dummy $ac_prog; ac_word=$2
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10382 $as_echo_n "checking for $ac_word... " >&6; }
10383 if ${ac_cv_prog_LEX+:} false; then :
10384   $as_echo_n "(cached) " >&6
10385 else
10386   if test -n "$LEX"; then
10387   ac_cv_prog_LEX="$LEX" # Let the user override the test.
10388 else
10389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390 for as_dir in $PATH
10391 do
10392   IFS=$as_save_IFS
10393   test -z "$as_dir" && as_dir=.
10394     for ac_exec_ext in '' $ac_executable_extensions; do
10395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10396     ac_cv_prog_LEX="$ac_prog"
10397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10398     break 2
10399   fi
10400 done
10401   done
10402 IFS=$as_save_IFS
10403
10404 fi
10405 fi
10406 LEX=$ac_cv_prog_LEX
10407 if test -n "$LEX"; then
10408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10409 $as_echo "$LEX" >&6; }
10410 else
10411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 $as_echo "no" >&6; }
10413 fi
10414
10415
10416   test -n "$LEX" && break
10417 done
10418 test -n "$LEX" || LEX="$MISSING flex"
10419
10420 case " $build_configdirs " in
10421   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10422   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10423 esac
10424
10425 for ac_prog in flex
10426 do
10427   # Extract the first word of "$ac_prog", so it can be a program name with args.
10428 set dummy $ac_prog; ac_word=$2
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430 $as_echo_n "checking for $ac_word... " >&6; }
10431 if ${ac_cv_prog_FLEX+:} false; then :
10432   $as_echo_n "(cached) " >&6
10433 else
10434   if test -n "$FLEX"; then
10435   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10436 else
10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438 for as_dir in $PATH
10439 do
10440   IFS=$as_save_IFS
10441   test -z "$as_dir" && as_dir=.
10442     for ac_exec_ext in '' $ac_executable_extensions; do
10443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10444     ac_cv_prog_FLEX="$ac_prog"
10445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10446     break 2
10447   fi
10448 done
10449   done
10450 IFS=$as_save_IFS
10451
10452 fi
10453 fi
10454 FLEX=$ac_cv_prog_FLEX
10455 if test -n "$FLEX"; then
10456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10457 $as_echo "$FLEX" >&6; }
10458 else
10459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460 $as_echo "no" >&6; }
10461 fi
10462
10463
10464   test -n "$FLEX" && break
10465 done
10466 test -n "$FLEX" || FLEX="$MISSING flex"
10467
10468 case " $build_configdirs " in
10469   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10470 esac
10471
10472 for ac_prog in makeinfo
10473 do
10474   # Extract the first word of "$ac_prog", so it can be a program name with args.
10475 set dummy $ac_prog; ac_word=$2
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10477 $as_echo_n "checking for $ac_word... " >&6; }
10478 if ${ac_cv_prog_MAKEINFO+:} false; then :
10479   $as_echo_n "(cached) " >&6
10480 else
10481   if test -n "$MAKEINFO"; then
10482   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10483 else
10484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10485 for as_dir in $PATH
10486 do
10487   IFS=$as_save_IFS
10488   test -z "$as_dir" && as_dir=.
10489     for ac_exec_ext in '' $ac_executable_extensions; do
10490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10491     ac_cv_prog_MAKEINFO="$ac_prog"
10492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10493     break 2
10494   fi
10495 done
10496   done
10497 IFS=$as_save_IFS
10498
10499 fi
10500 fi
10501 MAKEINFO=$ac_cv_prog_MAKEINFO
10502 if test -n "$MAKEINFO"; then
10503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10504 $as_echo "$MAKEINFO" >&6; }
10505 else
10506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10507 $as_echo "no" >&6; }
10508 fi
10509
10510
10511   test -n "$MAKEINFO" && break
10512 done
10513 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10514
10515 case " $build_configdirs " in
10516   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10517   *)
10518
10519     # For an installed makeinfo, we require it to be from texinfo 4.7 or
10520     # higher, else we use the "missing" dummy.
10521     if ${MAKEINFO} --version \
10522        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10523       :
10524     else
10525       MAKEINFO="$MISSING makeinfo"
10526     fi
10527     ;;
10528
10529 esac
10530
10531 # FIXME: expect and dejagnu may become build tools?
10532
10533 for ac_prog in expect
10534 do
10535   # Extract the first word of "$ac_prog", so it can be a program name with args.
10536 set dummy $ac_prog; ac_word=$2
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10538 $as_echo_n "checking for $ac_word... " >&6; }
10539 if ${ac_cv_prog_EXPECT+:} false; then :
10540   $as_echo_n "(cached) " >&6
10541 else
10542   if test -n "$EXPECT"; then
10543   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10544 else
10545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10546 for as_dir in $PATH
10547 do
10548   IFS=$as_save_IFS
10549   test -z "$as_dir" && as_dir=.
10550     for ac_exec_ext in '' $ac_executable_extensions; do
10551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10552     ac_cv_prog_EXPECT="$ac_prog"
10553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10554     break 2
10555   fi
10556 done
10557   done
10558 IFS=$as_save_IFS
10559
10560 fi
10561 fi
10562 EXPECT=$ac_cv_prog_EXPECT
10563 if test -n "$EXPECT"; then
10564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10565 $as_echo "$EXPECT" >&6; }
10566 else
10567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10568 $as_echo "no" >&6; }
10569 fi
10570
10571
10572   test -n "$EXPECT" && break
10573 done
10574 test -n "$EXPECT" || EXPECT="expect"
10575
10576 case " $configdirs " in
10577   *" expect "*)
10578     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10579     ;;
10580 esac
10581
10582 for ac_prog in runtest
10583 do
10584   # Extract the first word of "$ac_prog", so it can be a program name with args.
10585 set dummy $ac_prog; ac_word=$2
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10587 $as_echo_n "checking for $ac_word... " >&6; }
10588 if ${ac_cv_prog_RUNTEST+:} false; then :
10589   $as_echo_n "(cached) " >&6
10590 else
10591   if test -n "$RUNTEST"; then
10592   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10593 else
10594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595 for as_dir in $PATH
10596 do
10597   IFS=$as_save_IFS
10598   test -z "$as_dir" && as_dir=.
10599     for ac_exec_ext in '' $ac_executable_extensions; do
10600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10601     ac_cv_prog_RUNTEST="$ac_prog"
10602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10603     break 2
10604   fi
10605 done
10606   done
10607 IFS=$as_save_IFS
10608
10609 fi
10610 fi
10611 RUNTEST=$ac_cv_prog_RUNTEST
10612 if test -n "$RUNTEST"; then
10613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10614 $as_echo "$RUNTEST" >&6; }
10615 else
10616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617 $as_echo "no" >&6; }
10618 fi
10619
10620
10621   test -n "$RUNTEST" && break
10622 done
10623 test -n "$RUNTEST" || RUNTEST="runtest"
10624
10625 case " $configdirs " in
10626   *" dejagnu "*)
10627     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10628     ;;
10629 esac
10630
10631
10632 # Host tools.
10633 ncn_tool_prefix=
10634 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10635 ncn_target_tool_prefix=
10636 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10637
10638
10639
10640 if test -n "$AR"; then
10641   ac_cv_prog_AR=$AR
10642 elif test -n "$ac_cv_prog_AR"; then
10643   AR=$ac_cv_prog_AR
10644 fi
10645
10646 if test -n "$ac_cv_prog_AR"; then
10647   for ncn_progname in ar; do
10648     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10649 set dummy ${ncn_progname}; ac_word=$2
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10651 $as_echo_n "checking for $ac_word... " >&6; }
10652 if ${ac_cv_prog_AR+:} false; then :
10653   $as_echo_n "(cached) " >&6
10654 else
10655   if test -n "$AR"; then
10656   ac_cv_prog_AR="$AR" # Let the user override the test.
10657 else
10658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659 for as_dir in $PATH
10660 do
10661   IFS=$as_save_IFS
10662   test -z "$as_dir" && as_dir=.
10663     for ac_exec_ext in '' $ac_executable_extensions; do
10664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10665     ac_cv_prog_AR="${ncn_progname}"
10666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10667     break 2
10668   fi
10669 done
10670   done
10671 IFS=$as_save_IFS
10672
10673 fi
10674 fi
10675 AR=$ac_cv_prog_AR
10676 if test -n "$AR"; then
10677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10678 $as_echo "$AR" >&6; }
10679 else
10680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10682 fi
10683
10684
10685   done
10686 fi
10687
10688 for ncn_progname in ar; do
10689   if test -n "$ncn_tool_prefix"; then
10690     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10691 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10693 $as_echo_n "checking for $ac_word... " >&6; }
10694 if ${ac_cv_prog_AR+:} false; then :
10695   $as_echo_n "(cached) " >&6
10696 else
10697   if test -n "$AR"; then
10698   ac_cv_prog_AR="$AR" # Let the user override the test.
10699 else
10700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701 for as_dir in $PATH
10702 do
10703   IFS=$as_save_IFS
10704   test -z "$as_dir" && as_dir=.
10705     for ac_exec_ext in '' $ac_executable_extensions; do
10706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10707     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10709     break 2
10710   fi
10711 done
10712   done
10713 IFS=$as_save_IFS
10714
10715 fi
10716 fi
10717 AR=$ac_cv_prog_AR
10718 if test -n "$AR"; then
10719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10720 $as_echo "$AR" >&6; }
10721 else
10722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10724 fi
10725
10726
10727   fi
10728   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10729     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10730 set dummy ${ncn_progname}; ac_word=$2
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10732 $as_echo_n "checking for $ac_word... " >&6; }
10733 if ${ac_cv_prog_AR+:} false; then :
10734   $as_echo_n "(cached) " >&6
10735 else
10736   if test -n "$AR"; then
10737   ac_cv_prog_AR="$AR" # Let the user override the test.
10738 else
10739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10740 for as_dir in $PATH
10741 do
10742   IFS=$as_save_IFS
10743   test -z "$as_dir" && as_dir=.
10744     for ac_exec_ext in '' $ac_executable_extensions; do
10745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10746     ac_cv_prog_AR="${ncn_progname}"
10747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10748     break 2
10749   fi
10750 done
10751   done
10752 IFS=$as_save_IFS
10753
10754 fi
10755 fi
10756 AR=$ac_cv_prog_AR
10757 if test -n "$AR"; then
10758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10759 $as_echo "$AR" >&6; }
10760 else
10761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10762 $as_echo "no" >&6; }
10763 fi
10764
10765
10766   fi
10767   test -n "$ac_cv_prog_AR" && break
10768 done
10769
10770 if test -z "$ac_cv_prog_AR" ; then
10771   set dummy ar
10772   if test $build = $host ; then
10773     AR="$2"
10774   else
10775     AR="${ncn_tool_prefix}$2"
10776   fi
10777 fi
10778
10779
10780
10781 if test -n "$AS"; then
10782   ac_cv_prog_AS=$AS
10783 elif test -n "$ac_cv_prog_AS"; then
10784   AS=$ac_cv_prog_AS
10785 fi
10786
10787 if test -n "$ac_cv_prog_AS"; then
10788   for ncn_progname in as; do
10789     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10790 set dummy ${ncn_progname}; ac_word=$2
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792 $as_echo_n "checking for $ac_word... " >&6; }
10793 if ${ac_cv_prog_AS+:} false; then :
10794   $as_echo_n "(cached) " >&6
10795 else
10796   if test -n "$AS"; then
10797   ac_cv_prog_AS="$AS" # Let the user override the test.
10798 else
10799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800 for as_dir in $PATH
10801 do
10802   IFS=$as_save_IFS
10803   test -z "$as_dir" && as_dir=.
10804     for ac_exec_ext in '' $ac_executable_extensions; do
10805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10806     ac_cv_prog_AS="${ncn_progname}"
10807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10808     break 2
10809   fi
10810 done
10811   done
10812 IFS=$as_save_IFS
10813
10814 fi
10815 fi
10816 AS=$ac_cv_prog_AS
10817 if test -n "$AS"; then
10818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10819 $as_echo "$AS" >&6; }
10820 else
10821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822 $as_echo "no" >&6; }
10823 fi
10824
10825
10826   done
10827 fi
10828
10829 for ncn_progname in as; do
10830   if test -n "$ncn_tool_prefix"; then
10831     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10832 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10834 $as_echo_n "checking for $ac_word... " >&6; }
10835 if ${ac_cv_prog_AS+:} false; then :
10836   $as_echo_n "(cached) " >&6
10837 else
10838   if test -n "$AS"; then
10839   ac_cv_prog_AS="$AS" # Let the user override the test.
10840 else
10841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10842 for as_dir in $PATH
10843 do
10844   IFS=$as_save_IFS
10845   test -z "$as_dir" && as_dir=.
10846     for ac_exec_ext in '' $ac_executable_extensions; do
10847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10848     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10850     break 2
10851   fi
10852 done
10853   done
10854 IFS=$as_save_IFS
10855
10856 fi
10857 fi
10858 AS=$ac_cv_prog_AS
10859 if test -n "$AS"; then
10860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10861 $as_echo "$AS" >&6; }
10862 else
10863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10864 $as_echo "no" >&6; }
10865 fi
10866
10867
10868   fi
10869   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10870     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10871 set dummy ${ncn_progname}; ac_word=$2
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10873 $as_echo_n "checking for $ac_word... " >&6; }
10874 if ${ac_cv_prog_AS+:} false; then :
10875   $as_echo_n "(cached) " >&6
10876 else
10877   if test -n "$AS"; then
10878   ac_cv_prog_AS="$AS" # Let the user override the test.
10879 else
10880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881 for as_dir in $PATH
10882 do
10883   IFS=$as_save_IFS
10884   test -z "$as_dir" && as_dir=.
10885     for ac_exec_ext in '' $ac_executable_extensions; do
10886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10887     ac_cv_prog_AS="${ncn_progname}"
10888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10889     break 2
10890   fi
10891 done
10892   done
10893 IFS=$as_save_IFS
10894
10895 fi
10896 fi
10897 AS=$ac_cv_prog_AS
10898 if test -n "$AS"; then
10899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10900 $as_echo "$AS" >&6; }
10901 else
10902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10904 fi
10905
10906
10907   fi
10908   test -n "$ac_cv_prog_AS" && break
10909 done
10910
10911 if test -z "$ac_cv_prog_AS" ; then
10912   set dummy as
10913   if test $build = $host ; then
10914     AS="$2"
10915   else
10916     AS="${ncn_tool_prefix}$2"
10917   fi
10918 fi
10919
10920
10921
10922 if test -n "$DLLTOOL"; then
10923   ac_cv_prog_DLLTOOL=$DLLTOOL
10924 elif test -n "$ac_cv_prog_DLLTOOL"; then
10925   DLLTOOL=$ac_cv_prog_DLLTOOL
10926 fi
10927
10928 if test -n "$ac_cv_prog_DLLTOOL"; then
10929   for ncn_progname in dlltool; do
10930     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10931 set dummy ${ncn_progname}; ac_word=$2
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10933 $as_echo_n "checking for $ac_word... " >&6; }
10934 if ${ac_cv_prog_DLLTOOL+:} false; then :
10935   $as_echo_n "(cached) " >&6
10936 else
10937   if test -n "$DLLTOOL"; then
10938   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10939 else
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10942 do
10943   IFS=$as_save_IFS
10944   test -z "$as_dir" && as_dir=.
10945     for ac_exec_ext in '' $ac_executable_extensions; do
10946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10947     ac_cv_prog_DLLTOOL="${ncn_progname}"
10948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10949     break 2
10950   fi
10951 done
10952   done
10953 IFS=$as_save_IFS
10954
10955 fi
10956 fi
10957 DLLTOOL=$ac_cv_prog_DLLTOOL
10958 if test -n "$DLLTOOL"; then
10959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10960 $as_echo "$DLLTOOL" >&6; }
10961 else
10962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963 $as_echo "no" >&6; }
10964 fi
10965
10966
10967   done
10968 fi
10969
10970 for ncn_progname in dlltool; do
10971   if test -n "$ncn_tool_prefix"; then
10972     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10973 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10975 $as_echo_n "checking for $ac_word... " >&6; }
10976 if ${ac_cv_prog_DLLTOOL+:} false; then :
10977   $as_echo_n "(cached) " >&6
10978 else
10979   if test -n "$DLLTOOL"; then
10980   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10981 else
10982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983 for as_dir in $PATH
10984 do
10985   IFS=$as_save_IFS
10986   test -z "$as_dir" && as_dir=.
10987     for ac_exec_ext in '' $ac_executable_extensions; do
10988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10989     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
10990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10991     break 2
10992   fi
10993 done
10994   done
10995 IFS=$as_save_IFS
10996
10997 fi
10998 fi
10999 DLLTOOL=$ac_cv_prog_DLLTOOL
11000 if test -n "$DLLTOOL"; then
11001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11002 $as_echo "$DLLTOOL" >&6; }
11003 else
11004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005 $as_echo "no" >&6; }
11006 fi
11007
11008
11009   fi
11010   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11011     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11012 set dummy ${ncn_progname}; ac_word=$2
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11014 $as_echo_n "checking for $ac_word... " >&6; }
11015 if ${ac_cv_prog_DLLTOOL+:} false; then :
11016   $as_echo_n "(cached) " >&6
11017 else
11018   if test -n "$DLLTOOL"; then
11019   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11020 else
11021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11022 for as_dir in $PATH
11023 do
11024   IFS=$as_save_IFS
11025   test -z "$as_dir" && as_dir=.
11026     for ac_exec_ext in '' $ac_executable_extensions; do
11027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11028     ac_cv_prog_DLLTOOL="${ncn_progname}"
11029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11030     break 2
11031   fi
11032 done
11033   done
11034 IFS=$as_save_IFS
11035
11036 fi
11037 fi
11038 DLLTOOL=$ac_cv_prog_DLLTOOL
11039 if test -n "$DLLTOOL"; then
11040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11041 $as_echo "$DLLTOOL" >&6; }
11042 else
11043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044 $as_echo "no" >&6; }
11045 fi
11046
11047
11048   fi
11049   test -n "$ac_cv_prog_DLLTOOL" && break
11050 done
11051
11052 if test -z "$ac_cv_prog_DLLTOOL" ; then
11053   set dummy dlltool
11054   if test $build = $host ; then
11055     DLLTOOL="$2"
11056   else
11057     DLLTOOL="${ncn_tool_prefix}$2"
11058   fi
11059 fi
11060
11061
11062
11063 if test -n "$DSYMUTIL"; then
11064   ac_cv_prog_DSYMUTIL=$DSYMUTIL
11065 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11066   DSYMUTIL=$ac_cv_prog_DSYMUTIL
11067 fi
11068
11069 if test -n "$ac_cv_prog_DSYMUTIL"; then
11070   for ncn_progname in dsymutil; do
11071     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11072 set dummy ${ncn_progname}; ac_word=$2
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11074 $as_echo_n "checking for $ac_word... " >&6; }
11075 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11076   $as_echo_n "(cached) " >&6
11077 else
11078   if test -n "$DSYMUTIL"; then
11079   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11080 else
11081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082 for as_dir in $PATH
11083 do
11084   IFS=$as_save_IFS
11085   test -z "$as_dir" && as_dir=.
11086     for ac_exec_ext in '' $ac_executable_extensions; do
11087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11088     ac_cv_prog_DSYMUTIL="${ncn_progname}"
11089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11090     break 2
11091   fi
11092 done
11093   done
11094 IFS=$as_save_IFS
11095
11096 fi
11097 fi
11098 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11099 if test -n "$DSYMUTIL"; then
11100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11101 $as_echo "$DSYMUTIL" >&6; }
11102 else
11103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104 $as_echo "no" >&6; }
11105 fi
11106
11107
11108   done
11109 fi
11110
11111 for ncn_progname in dsymutil; do
11112   if test -n "$ncn_tool_prefix"; then
11113     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11114 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11116 $as_echo_n "checking for $ac_word... " >&6; }
11117 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11118   $as_echo_n "(cached) " >&6
11119 else
11120   if test -n "$DSYMUTIL"; then
11121   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11122 else
11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in $PATH
11125 do
11126   IFS=$as_save_IFS
11127   test -z "$as_dir" && as_dir=.
11128     for ac_exec_ext in '' $ac_executable_extensions; do
11129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11130     ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11132     break 2
11133   fi
11134 done
11135   done
11136 IFS=$as_save_IFS
11137
11138 fi
11139 fi
11140 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11141 if test -n "$DSYMUTIL"; then
11142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11143 $as_echo "$DSYMUTIL" >&6; }
11144 else
11145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146 $as_echo "no" >&6; }
11147 fi
11148
11149
11150   fi
11151   if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11152     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11153 set dummy ${ncn_progname}; ac_word=$2
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11155 $as_echo_n "checking for $ac_word... " >&6; }
11156 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11157   $as_echo_n "(cached) " >&6
11158 else
11159   if test -n "$DSYMUTIL"; then
11160   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11161 else
11162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163 for as_dir in $PATH
11164 do
11165   IFS=$as_save_IFS
11166   test -z "$as_dir" && as_dir=.
11167     for ac_exec_ext in '' $ac_executable_extensions; do
11168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11169     ac_cv_prog_DSYMUTIL="${ncn_progname}"
11170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11171     break 2
11172   fi
11173 done
11174   done
11175 IFS=$as_save_IFS
11176
11177 fi
11178 fi
11179 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11180 if test -n "$DSYMUTIL"; then
11181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11182 $as_echo "$DSYMUTIL" >&6; }
11183 else
11184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185 $as_echo "no" >&6; }
11186 fi
11187
11188
11189   fi
11190   test -n "$ac_cv_prog_DSYMUTIL" && break
11191 done
11192
11193 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11194   set dummy dsymutil
11195   if test $build = $host ; then
11196     DSYMUTIL="$2"
11197   else
11198     DSYMUTIL="${ncn_tool_prefix}$2"
11199   fi
11200 fi
11201
11202
11203
11204 if test -n "$LD"; then
11205   ac_cv_prog_LD=$LD
11206 elif test -n "$ac_cv_prog_LD"; then
11207   LD=$ac_cv_prog_LD
11208 fi
11209
11210 if test -n "$ac_cv_prog_LD"; then
11211   for ncn_progname in ld; do
11212     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11213 set dummy ${ncn_progname}; ac_word=$2
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11215 $as_echo_n "checking for $ac_word... " >&6; }
11216 if ${ac_cv_prog_LD+:} false; then :
11217   $as_echo_n "(cached) " >&6
11218 else
11219   if test -n "$LD"; then
11220   ac_cv_prog_LD="$LD" # Let the user override the test.
11221 else
11222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223 for as_dir in $PATH
11224 do
11225   IFS=$as_save_IFS
11226   test -z "$as_dir" && as_dir=.
11227     for ac_exec_ext in '' $ac_executable_extensions; do
11228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11229     ac_cv_prog_LD="${ncn_progname}"
11230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11231     break 2
11232   fi
11233 done
11234   done
11235 IFS=$as_save_IFS
11236
11237 fi
11238 fi
11239 LD=$ac_cv_prog_LD
11240 if test -n "$LD"; then
11241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11242 $as_echo "$LD" >&6; }
11243 else
11244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11245 $as_echo "no" >&6; }
11246 fi
11247
11248
11249   done
11250 fi
11251
11252 for ncn_progname in ld; do
11253   if test -n "$ncn_tool_prefix"; then
11254     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11255 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11257 $as_echo_n "checking for $ac_word... " >&6; }
11258 if ${ac_cv_prog_LD+:} false; then :
11259   $as_echo_n "(cached) " >&6
11260 else
11261   if test -n "$LD"; then
11262   ac_cv_prog_LD="$LD" # Let the user override the test.
11263 else
11264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11265 for as_dir in $PATH
11266 do
11267   IFS=$as_save_IFS
11268   test -z "$as_dir" && as_dir=.
11269     for ac_exec_ext in '' $ac_executable_extensions; do
11270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11271     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11273     break 2
11274   fi
11275 done
11276   done
11277 IFS=$as_save_IFS
11278
11279 fi
11280 fi
11281 LD=$ac_cv_prog_LD
11282 if test -n "$LD"; then
11283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11284 $as_echo "$LD" >&6; }
11285 else
11286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11287 $as_echo "no" >&6; }
11288 fi
11289
11290
11291   fi
11292   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11293     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11294 set dummy ${ncn_progname}; ac_word=$2
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11296 $as_echo_n "checking for $ac_word... " >&6; }
11297 if ${ac_cv_prog_LD+:} false; then :
11298   $as_echo_n "(cached) " >&6
11299 else
11300   if test -n "$LD"; then
11301   ac_cv_prog_LD="$LD" # Let the user override the test.
11302 else
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304 for as_dir in $PATH
11305 do
11306   IFS=$as_save_IFS
11307   test -z "$as_dir" && as_dir=.
11308     for ac_exec_ext in '' $ac_executable_extensions; do
11309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11310     ac_cv_prog_LD="${ncn_progname}"
11311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11312     break 2
11313   fi
11314 done
11315   done
11316 IFS=$as_save_IFS
11317
11318 fi
11319 fi
11320 LD=$ac_cv_prog_LD
11321 if test -n "$LD"; then
11322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11323 $as_echo "$LD" >&6; }
11324 else
11325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11326 $as_echo "no" >&6; }
11327 fi
11328
11329
11330   fi
11331   test -n "$ac_cv_prog_LD" && break
11332 done
11333
11334 if test -z "$ac_cv_prog_LD" ; then
11335   set dummy ld
11336   if test $build = $host ; then
11337     LD="$2"
11338   else
11339     LD="${ncn_tool_prefix}$2"
11340   fi
11341 fi
11342
11343
11344
11345 if test -n "$LIPO"; then
11346   ac_cv_prog_LIPO=$LIPO
11347 elif test -n "$ac_cv_prog_LIPO"; then
11348   LIPO=$ac_cv_prog_LIPO
11349 fi
11350
11351 if test -n "$ac_cv_prog_LIPO"; then
11352   for ncn_progname in lipo; do
11353     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11354 set dummy ${ncn_progname}; ac_word=$2
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356 $as_echo_n "checking for $ac_word... " >&6; }
11357 if ${ac_cv_prog_LIPO+:} false; then :
11358   $as_echo_n "(cached) " >&6
11359 else
11360   if test -n "$LIPO"; then
11361   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11362 else
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11365 do
11366   IFS=$as_save_IFS
11367   test -z "$as_dir" && as_dir=.
11368     for ac_exec_ext in '' $ac_executable_extensions; do
11369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11370     ac_cv_prog_LIPO="${ncn_progname}"
11371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11372     break 2
11373   fi
11374 done
11375   done
11376 IFS=$as_save_IFS
11377
11378 fi
11379 fi
11380 LIPO=$ac_cv_prog_LIPO
11381 if test -n "$LIPO"; then
11382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11383 $as_echo "$LIPO" >&6; }
11384 else
11385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11387 fi
11388
11389
11390   done
11391 fi
11392
11393 for ncn_progname in lipo; do
11394   if test -n "$ncn_tool_prefix"; then
11395     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11396 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398 $as_echo_n "checking for $ac_word... " >&6; }
11399 if ${ac_cv_prog_LIPO+:} false; then :
11400   $as_echo_n "(cached) " >&6
11401 else
11402   if test -n "$LIPO"; then
11403   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11404 else
11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $PATH
11407 do
11408   IFS=$as_save_IFS
11409   test -z "$as_dir" && as_dir=.
11410     for ac_exec_ext in '' $ac_executable_extensions; do
11411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11412     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11414     break 2
11415   fi
11416 done
11417   done
11418 IFS=$as_save_IFS
11419
11420 fi
11421 fi
11422 LIPO=$ac_cv_prog_LIPO
11423 if test -n "$LIPO"; then
11424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11425 $as_echo "$LIPO" >&6; }
11426 else
11427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428 $as_echo "no" >&6; }
11429 fi
11430
11431
11432   fi
11433   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11434     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11435 set dummy ${ncn_progname}; ac_word=$2
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11437 $as_echo_n "checking for $ac_word... " >&6; }
11438 if ${ac_cv_prog_LIPO+:} false; then :
11439   $as_echo_n "(cached) " >&6
11440 else
11441   if test -n "$LIPO"; then
11442   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11443 else
11444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445 for as_dir in $PATH
11446 do
11447   IFS=$as_save_IFS
11448   test -z "$as_dir" && as_dir=.
11449     for ac_exec_ext in '' $ac_executable_extensions; do
11450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11451     ac_cv_prog_LIPO="${ncn_progname}"
11452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11453     break 2
11454   fi
11455 done
11456   done
11457 IFS=$as_save_IFS
11458
11459 fi
11460 fi
11461 LIPO=$ac_cv_prog_LIPO
11462 if test -n "$LIPO"; then
11463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11464 $as_echo "$LIPO" >&6; }
11465 else
11466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; }
11468 fi
11469
11470
11471   fi
11472   test -n "$ac_cv_prog_LIPO" && break
11473 done
11474
11475 if test -z "$ac_cv_prog_LIPO" ; then
11476   set dummy lipo
11477   if test $build = $host ; then
11478     LIPO="$2"
11479   else
11480     LIPO="${ncn_tool_prefix}$2"
11481   fi
11482 fi
11483
11484
11485
11486 if test -n "$NM"; then
11487   ac_cv_prog_NM=$NM
11488 elif test -n "$ac_cv_prog_NM"; then
11489   NM=$ac_cv_prog_NM
11490 fi
11491
11492 if test -n "$ac_cv_prog_NM"; then
11493   for ncn_progname in nm; do
11494     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11495 set dummy ${ncn_progname}; ac_word=$2
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11497 $as_echo_n "checking for $ac_word... " >&6; }
11498 if ${ac_cv_prog_NM+:} false; then :
11499   $as_echo_n "(cached) " >&6
11500 else
11501   if test -n "$NM"; then
11502   ac_cv_prog_NM="$NM" # Let the user override the test.
11503 else
11504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11505 for as_dir in $PATH
11506 do
11507   IFS=$as_save_IFS
11508   test -z "$as_dir" && as_dir=.
11509     for ac_exec_ext in '' $ac_executable_extensions; do
11510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11511     ac_cv_prog_NM="${ncn_progname}"
11512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11513     break 2
11514   fi
11515 done
11516   done
11517 IFS=$as_save_IFS
11518
11519 fi
11520 fi
11521 NM=$ac_cv_prog_NM
11522 if test -n "$NM"; then
11523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11524 $as_echo "$NM" >&6; }
11525 else
11526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527 $as_echo "no" >&6; }
11528 fi
11529
11530
11531   done
11532 fi
11533
11534 for ncn_progname in nm; do
11535   if test -n "$ncn_tool_prefix"; then
11536     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11537 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11539 $as_echo_n "checking for $ac_word... " >&6; }
11540 if ${ac_cv_prog_NM+:} false; then :
11541   $as_echo_n "(cached) " >&6
11542 else
11543   if test -n "$NM"; then
11544   ac_cv_prog_NM="$NM" # Let the user override the test.
11545 else
11546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547 for as_dir in $PATH
11548 do
11549   IFS=$as_save_IFS
11550   test -z "$as_dir" && as_dir=.
11551     for ac_exec_ext in '' $ac_executable_extensions; do
11552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11553     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11555     break 2
11556   fi
11557 done
11558   done
11559 IFS=$as_save_IFS
11560
11561 fi
11562 fi
11563 NM=$ac_cv_prog_NM
11564 if test -n "$NM"; then
11565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11566 $as_echo "$NM" >&6; }
11567 else
11568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 $as_echo "no" >&6; }
11570 fi
11571
11572
11573   fi
11574   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11575     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11576 set dummy ${ncn_progname}; ac_word=$2
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11578 $as_echo_n "checking for $ac_word... " >&6; }
11579 if ${ac_cv_prog_NM+:} false; then :
11580   $as_echo_n "(cached) " >&6
11581 else
11582   if test -n "$NM"; then
11583   ac_cv_prog_NM="$NM" # Let the user override the test.
11584 else
11585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586 for as_dir in $PATH
11587 do
11588   IFS=$as_save_IFS
11589   test -z "$as_dir" && as_dir=.
11590     for ac_exec_ext in '' $ac_executable_extensions; do
11591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11592     ac_cv_prog_NM="${ncn_progname}"
11593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11594     break 2
11595   fi
11596 done
11597   done
11598 IFS=$as_save_IFS
11599
11600 fi
11601 fi
11602 NM=$ac_cv_prog_NM
11603 if test -n "$NM"; then
11604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11605 $as_echo "$NM" >&6; }
11606 else
11607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608 $as_echo "no" >&6; }
11609 fi
11610
11611
11612   fi
11613   test -n "$ac_cv_prog_NM" && break
11614 done
11615
11616 if test -z "$ac_cv_prog_NM" ; then
11617   set dummy nm
11618   if test $build = $host ; then
11619     NM="$2"
11620   else
11621     NM="${ncn_tool_prefix}$2"
11622   fi
11623 fi
11624
11625
11626
11627 if test -n "$RANLIB"; then
11628   ac_cv_prog_RANLIB=$RANLIB
11629 elif test -n "$ac_cv_prog_RANLIB"; then
11630   RANLIB=$ac_cv_prog_RANLIB
11631 fi
11632
11633 if test -n "$ac_cv_prog_RANLIB"; then
11634   for ncn_progname in ranlib; do
11635     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11636 set dummy ${ncn_progname}; ac_word=$2
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638 $as_echo_n "checking for $ac_word... " >&6; }
11639 if ${ac_cv_prog_RANLIB+:} false; then :
11640   $as_echo_n "(cached) " >&6
11641 else
11642   if test -n "$RANLIB"; then
11643   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11644 else
11645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646 for as_dir in $PATH
11647 do
11648   IFS=$as_save_IFS
11649   test -z "$as_dir" && as_dir=.
11650     for ac_exec_ext in '' $ac_executable_extensions; do
11651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11652     ac_cv_prog_RANLIB="${ncn_progname}"
11653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11654     break 2
11655   fi
11656 done
11657   done
11658 IFS=$as_save_IFS
11659
11660 fi
11661 fi
11662 RANLIB=$ac_cv_prog_RANLIB
11663 if test -n "$RANLIB"; then
11664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11665 $as_echo "$RANLIB" >&6; }
11666 else
11667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668 $as_echo "no" >&6; }
11669 fi
11670
11671
11672   done
11673 fi
11674
11675 for ncn_progname in ranlib; do
11676   if test -n "$ncn_tool_prefix"; then
11677     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11678 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680 $as_echo_n "checking for $ac_word... " >&6; }
11681 if ${ac_cv_prog_RANLIB+:} false; then :
11682   $as_echo_n "(cached) " >&6
11683 else
11684   if test -n "$RANLIB"; then
11685   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11686 else
11687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688 for as_dir in $PATH
11689 do
11690   IFS=$as_save_IFS
11691   test -z "$as_dir" && as_dir=.
11692     for ac_exec_ext in '' $ac_executable_extensions; do
11693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11694     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11696     break 2
11697   fi
11698 done
11699   done
11700 IFS=$as_save_IFS
11701
11702 fi
11703 fi
11704 RANLIB=$ac_cv_prog_RANLIB
11705 if test -n "$RANLIB"; then
11706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11707 $as_echo "$RANLIB" >&6; }
11708 else
11709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710 $as_echo "no" >&6; }
11711 fi
11712
11713
11714   fi
11715   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11716     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11717 set dummy ${ncn_progname}; ac_word=$2
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719 $as_echo_n "checking for $ac_word... " >&6; }
11720 if ${ac_cv_prog_RANLIB+:} false; then :
11721   $as_echo_n "(cached) " >&6
11722 else
11723   if test -n "$RANLIB"; then
11724   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11725 else
11726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $PATH
11728 do
11729   IFS=$as_save_IFS
11730   test -z "$as_dir" && as_dir=.
11731     for ac_exec_ext in '' $ac_executable_extensions; do
11732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11733     ac_cv_prog_RANLIB="${ncn_progname}"
11734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11735     break 2
11736   fi
11737 done
11738   done
11739 IFS=$as_save_IFS
11740
11741 fi
11742 fi
11743 RANLIB=$ac_cv_prog_RANLIB
11744 if test -n "$RANLIB"; then
11745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11746 $as_echo "$RANLIB" >&6; }
11747 else
11748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749 $as_echo "no" >&6; }
11750 fi
11751
11752
11753   fi
11754   test -n "$ac_cv_prog_RANLIB" && break
11755 done
11756
11757 if test -z "$ac_cv_prog_RANLIB" ; then
11758   RANLIB="true"
11759 fi
11760
11761
11762
11763 if test -n "$STRIP"; then
11764   ac_cv_prog_STRIP=$STRIP
11765 elif test -n "$ac_cv_prog_STRIP"; then
11766   STRIP=$ac_cv_prog_STRIP
11767 fi
11768
11769 if test -n "$ac_cv_prog_STRIP"; then
11770   for ncn_progname in strip; do
11771     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11772 set dummy ${ncn_progname}; ac_word=$2
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11774 $as_echo_n "checking for $ac_word... " >&6; }
11775 if ${ac_cv_prog_STRIP+:} false; then :
11776   $as_echo_n "(cached) " >&6
11777 else
11778   if test -n "$STRIP"; then
11779   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11780 else
11781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11782 for as_dir in $PATH
11783 do
11784   IFS=$as_save_IFS
11785   test -z "$as_dir" && as_dir=.
11786     for ac_exec_ext in '' $ac_executable_extensions; do
11787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11788     ac_cv_prog_STRIP="${ncn_progname}"
11789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11790     break 2
11791   fi
11792 done
11793   done
11794 IFS=$as_save_IFS
11795
11796 fi
11797 fi
11798 STRIP=$ac_cv_prog_STRIP
11799 if test -n "$STRIP"; then
11800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11801 $as_echo "$STRIP" >&6; }
11802 else
11803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804 $as_echo "no" >&6; }
11805 fi
11806
11807
11808   done
11809 fi
11810
11811 for ncn_progname in strip; do
11812   if test -n "$ncn_tool_prefix"; then
11813     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11814 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816 $as_echo_n "checking for $ac_word... " >&6; }
11817 if ${ac_cv_prog_STRIP+:} false; then :
11818   $as_echo_n "(cached) " >&6
11819 else
11820   if test -n "$STRIP"; then
11821   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11822 else
11823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824 for as_dir in $PATH
11825 do
11826   IFS=$as_save_IFS
11827   test -z "$as_dir" && as_dir=.
11828     for ac_exec_ext in '' $ac_executable_extensions; do
11829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11830     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11832     break 2
11833   fi
11834 done
11835   done
11836 IFS=$as_save_IFS
11837
11838 fi
11839 fi
11840 STRIP=$ac_cv_prog_STRIP
11841 if test -n "$STRIP"; then
11842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11843 $as_echo "$STRIP" >&6; }
11844 else
11845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11847 fi
11848
11849
11850   fi
11851   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11852     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11853 set dummy ${ncn_progname}; ac_word=$2
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855 $as_echo_n "checking for $ac_word... " >&6; }
11856 if ${ac_cv_prog_STRIP+:} false; then :
11857   $as_echo_n "(cached) " >&6
11858 else
11859   if test -n "$STRIP"; then
11860   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11861 else
11862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863 for as_dir in $PATH
11864 do
11865   IFS=$as_save_IFS
11866   test -z "$as_dir" && as_dir=.
11867     for ac_exec_ext in '' $ac_executable_extensions; do
11868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11869     ac_cv_prog_STRIP="${ncn_progname}"
11870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11871     break 2
11872   fi
11873 done
11874   done
11875 IFS=$as_save_IFS
11876
11877 fi
11878 fi
11879 STRIP=$ac_cv_prog_STRIP
11880 if test -n "$STRIP"; then
11881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11882 $as_echo "$STRIP" >&6; }
11883 else
11884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11886 fi
11887
11888
11889   fi
11890   test -n "$ac_cv_prog_STRIP" && break
11891 done
11892
11893 if test -z "$ac_cv_prog_STRIP" ; then
11894   STRIP="true"
11895 fi
11896
11897
11898
11899 if test -n "$WINDRES"; then
11900   ac_cv_prog_WINDRES=$WINDRES
11901 elif test -n "$ac_cv_prog_WINDRES"; then
11902   WINDRES=$ac_cv_prog_WINDRES
11903 fi
11904
11905 if test -n "$ac_cv_prog_WINDRES"; then
11906   for ncn_progname in windres; do
11907     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11908 set dummy ${ncn_progname}; ac_word=$2
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11910 $as_echo_n "checking for $ac_word... " >&6; }
11911 if ${ac_cv_prog_WINDRES+:} false; then :
11912   $as_echo_n "(cached) " >&6
11913 else
11914   if test -n "$WINDRES"; then
11915   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11916 else
11917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in $PATH
11919 do
11920   IFS=$as_save_IFS
11921   test -z "$as_dir" && as_dir=.
11922     for ac_exec_ext in '' $ac_executable_extensions; do
11923   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11924     ac_cv_prog_WINDRES="${ncn_progname}"
11925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11926     break 2
11927   fi
11928 done
11929   done
11930 IFS=$as_save_IFS
11931
11932 fi
11933 fi
11934 WINDRES=$ac_cv_prog_WINDRES
11935 if test -n "$WINDRES"; then
11936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11937 $as_echo "$WINDRES" >&6; }
11938 else
11939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940 $as_echo "no" >&6; }
11941 fi
11942
11943
11944   done
11945 fi
11946
11947 for ncn_progname in windres; do
11948   if test -n "$ncn_tool_prefix"; then
11949     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11950 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11952 $as_echo_n "checking for $ac_word... " >&6; }
11953 if ${ac_cv_prog_WINDRES+:} false; then :
11954   $as_echo_n "(cached) " >&6
11955 else
11956   if test -n "$WINDRES"; then
11957   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11958 else
11959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960 for as_dir in $PATH
11961 do
11962   IFS=$as_save_IFS
11963   test -z "$as_dir" && as_dir=.
11964     for ac_exec_ext in '' $ac_executable_extensions; do
11965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11966     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11968     break 2
11969   fi
11970 done
11971   done
11972 IFS=$as_save_IFS
11973
11974 fi
11975 fi
11976 WINDRES=$ac_cv_prog_WINDRES
11977 if test -n "$WINDRES"; then
11978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11979 $as_echo "$WINDRES" >&6; }
11980 else
11981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11983 fi
11984
11985
11986   fi
11987   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11988     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11989 set dummy ${ncn_progname}; ac_word=$2
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11991 $as_echo_n "checking for $ac_word... " >&6; }
11992 if ${ac_cv_prog_WINDRES+:} false; then :
11993   $as_echo_n "(cached) " >&6
11994 else
11995   if test -n "$WINDRES"; then
11996   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11997 else
11998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11999 for as_dir in $PATH
12000 do
12001   IFS=$as_save_IFS
12002   test -z "$as_dir" && as_dir=.
12003     for ac_exec_ext in '' $ac_executable_extensions; do
12004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12005     ac_cv_prog_WINDRES="${ncn_progname}"
12006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12007     break 2
12008   fi
12009 done
12010   done
12011 IFS=$as_save_IFS
12012
12013 fi
12014 fi
12015 WINDRES=$ac_cv_prog_WINDRES
12016 if test -n "$WINDRES"; then
12017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12018 $as_echo "$WINDRES" >&6; }
12019 else
12020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12022 fi
12023
12024
12025   fi
12026   test -n "$ac_cv_prog_WINDRES" && break
12027 done
12028
12029 if test -z "$ac_cv_prog_WINDRES" ; then
12030   set dummy windres
12031   if test $build = $host ; then
12032     WINDRES="$2"
12033   else
12034     WINDRES="${ncn_tool_prefix}$2"
12035   fi
12036 fi
12037
12038
12039
12040 if test -n "$WINDMC"; then
12041   ac_cv_prog_WINDMC=$WINDMC
12042 elif test -n "$ac_cv_prog_WINDMC"; then
12043   WINDMC=$ac_cv_prog_WINDMC
12044 fi
12045
12046 if test -n "$ac_cv_prog_WINDMC"; then
12047   for ncn_progname in windmc; do
12048     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12049 set dummy ${ncn_progname}; ac_word=$2
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051 $as_echo_n "checking for $ac_word... " >&6; }
12052 if ${ac_cv_prog_WINDMC+:} false; then :
12053   $as_echo_n "(cached) " >&6
12054 else
12055   if test -n "$WINDMC"; then
12056   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12057 else
12058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12060 do
12061   IFS=$as_save_IFS
12062   test -z "$as_dir" && as_dir=.
12063     for ac_exec_ext in '' $ac_executable_extensions; do
12064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12065     ac_cv_prog_WINDMC="${ncn_progname}"
12066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12067     break 2
12068   fi
12069 done
12070   done
12071 IFS=$as_save_IFS
12072
12073 fi
12074 fi
12075 WINDMC=$ac_cv_prog_WINDMC
12076 if test -n "$WINDMC"; then
12077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12078 $as_echo "$WINDMC" >&6; }
12079 else
12080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12082 fi
12083
12084
12085   done
12086 fi
12087
12088 for ncn_progname in windmc; do
12089   if test -n "$ncn_tool_prefix"; then
12090     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12091 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12093 $as_echo_n "checking for $ac_word... " >&6; }
12094 if ${ac_cv_prog_WINDMC+:} false; then :
12095   $as_echo_n "(cached) " >&6
12096 else
12097   if test -n "$WINDMC"; then
12098   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12099 else
12100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101 for as_dir in $PATH
12102 do
12103   IFS=$as_save_IFS
12104   test -z "$as_dir" && as_dir=.
12105     for ac_exec_ext in '' $ac_executable_extensions; do
12106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12107     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12109     break 2
12110   fi
12111 done
12112   done
12113 IFS=$as_save_IFS
12114
12115 fi
12116 fi
12117 WINDMC=$ac_cv_prog_WINDMC
12118 if test -n "$WINDMC"; then
12119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12120 $as_echo "$WINDMC" >&6; }
12121 else
12122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123 $as_echo "no" >&6; }
12124 fi
12125
12126
12127   fi
12128   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12129     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12130 set dummy ${ncn_progname}; ac_word=$2
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12132 $as_echo_n "checking for $ac_word... " >&6; }
12133 if ${ac_cv_prog_WINDMC+:} false; then :
12134   $as_echo_n "(cached) " >&6
12135 else
12136   if test -n "$WINDMC"; then
12137   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12138 else
12139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140 for as_dir in $PATH
12141 do
12142   IFS=$as_save_IFS
12143   test -z "$as_dir" && as_dir=.
12144     for ac_exec_ext in '' $ac_executable_extensions; do
12145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12146     ac_cv_prog_WINDMC="${ncn_progname}"
12147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12148     break 2
12149   fi
12150 done
12151   done
12152 IFS=$as_save_IFS
12153
12154 fi
12155 fi
12156 WINDMC=$ac_cv_prog_WINDMC
12157 if test -n "$WINDMC"; then
12158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12159 $as_echo "$WINDMC" >&6; }
12160 else
12161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162 $as_echo "no" >&6; }
12163 fi
12164
12165
12166   fi
12167   test -n "$ac_cv_prog_WINDMC" && break
12168 done
12169
12170 if test -z "$ac_cv_prog_WINDMC" ; then
12171   set dummy windmc
12172   if test $build = $host ; then
12173     WINDMC="$2"
12174   else
12175     WINDMC="${ncn_tool_prefix}$2"
12176   fi
12177 fi
12178
12179
12180
12181 if test -n "$OBJCOPY"; then
12182   ac_cv_prog_OBJCOPY=$OBJCOPY
12183 elif test -n "$ac_cv_prog_OBJCOPY"; then
12184   OBJCOPY=$ac_cv_prog_OBJCOPY
12185 fi
12186
12187 if test -n "$ac_cv_prog_OBJCOPY"; then
12188   for ncn_progname in objcopy; do
12189     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12190 set dummy ${ncn_progname}; ac_word=$2
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12192 $as_echo_n "checking for $ac_word... " >&6; }
12193 if ${ac_cv_prog_OBJCOPY+:} false; then :
12194   $as_echo_n "(cached) " >&6
12195 else
12196   if test -n "$OBJCOPY"; then
12197   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12198 else
12199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200 for as_dir in $PATH
12201 do
12202   IFS=$as_save_IFS
12203   test -z "$as_dir" && as_dir=.
12204     for ac_exec_ext in '' $ac_executable_extensions; do
12205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12206     ac_cv_prog_OBJCOPY="${ncn_progname}"
12207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12208     break 2
12209   fi
12210 done
12211   done
12212 IFS=$as_save_IFS
12213
12214 fi
12215 fi
12216 OBJCOPY=$ac_cv_prog_OBJCOPY
12217 if test -n "$OBJCOPY"; then
12218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12219 $as_echo "$OBJCOPY" >&6; }
12220 else
12221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222 $as_echo "no" >&6; }
12223 fi
12224
12225
12226   done
12227 fi
12228
12229 for ncn_progname in objcopy; do
12230   if test -n "$ncn_tool_prefix"; then
12231     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12232 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234 $as_echo_n "checking for $ac_word... " >&6; }
12235 if ${ac_cv_prog_OBJCOPY+:} false; then :
12236   $as_echo_n "(cached) " >&6
12237 else
12238   if test -n "$OBJCOPY"; then
12239   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12240 else
12241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242 for as_dir in $PATH
12243 do
12244   IFS=$as_save_IFS
12245   test -z "$as_dir" && as_dir=.
12246     for ac_exec_ext in '' $ac_executable_extensions; do
12247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12248     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12250     break 2
12251   fi
12252 done
12253   done
12254 IFS=$as_save_IFS
12255
12256 fi
12257 fi
12258 OBJCOPY=$ac_cv_prog_OBJCOPY
12259 if test -n "$OBJCOPY"; then
12260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12261 $as_echo "$OBJCOPY" >&6; }
12262 else
12263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264 $as_echo "no" >&6; }
12265 fi
12266
12267
12268   fi
12269   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12270     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12271 set dummy ${ncn_progname}; ac_word=$2
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273 $as_echo_n "checking for $ac_word... " >&6; }
12274 if ${ac_cv_prog_OBJCOPY+:} false; then :
12275   $as_echo_n "(cached) " >&6
12276 else
12277   if test -n "$OBJCOPY"; then
12278   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12279 else
12280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281 for as_dir in $PATH
12282 do
12283   IFS=$as_save_IFS
12284   test -z "$as_dir" && as_dir=.
12285     for ac_exec_ext in '' $ac_executable_extensions; do
12286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12287     ac_cv_prog_OBJCOPY="${ncn_progname}"
12288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12289     break 2
12290   fi
12291 done
12292   done
12293 IFS=$as_save_IFS
12294
12295 fi
12296 fi
12297 OBJCOPY=$ac_cv_prog_OBJCOPY
12298 if test -n "$OBJCOPY"; then
12299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12300 $as_echo "$OBJCOPY" >&6; }
12301 else
12302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12304 fi
12305
12306
12307   fi
12308   test -n "$ac_cv_prog_OBJCOPY" && break
12309 done
12310
12311 if test -z "$ac_cv_prog_OBJCOPY" ; then
12312   set dummy objcopy
12313   if test $build = $host ; then
12314     OBJCOPY="$2"
12315   else
12316     OBJCOPY="${ncn_tool_prefix}$2"
12317   fi
12318 fi
12319
12320
12321
12322 if test -n "$OBJDUMP"; then
12323   ac_cv_prog_OBJDUMP=$OBJDUMP
12324 elif test -n "$ac_cv_prog_OBJDUMP"; then
12325   OBJDUMP=$ac_cv_prog_OBJDUMP
12326 fi
12327
12328 if test -n "$ac_cv_prog_OBJDUMP"; then
12329   for ncn_progname in objdump; do
12330     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12331 set dummy ${ncn_progname}; ac_word=$2
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12333 $as_echo_n "checking for $ac_word... " >&6; }
12334 if ${ac_cv_prog_OBJDUMP+:} false; then :
12335   $as_echo_n "(cached) " >&6
12336 else
12337   if test -n "$OBJDUMP"; then
12338   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12339 else
12340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341 for as_dir in $PATH
12342 do
12343   IFS=$as_save_IFS
12344   test -z "$as_dir" && as_dir=.
12345     for ac_exec_ext in '' $ac_executable_extensions; do
12346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12347     ac_cv_prog_OBJDUMP="${ncn_progname}"
12348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12349     break 2
12350   fi
12351 done
12352   done
12353 IFS=$as_save_IFS
12354
12355 fi
12356 fi
12357 OBJDUMP=$ac_cv_prog_OBJDUMP
12358 if test -n "$OBJDUMP"; then
12359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12360 $as_echo "$OBJDUMP" >&6; }
12361 else
12362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12364 fi
12365
12366
12367   done
12368 fi
12369
12370 for ncn_progname in objdump; do
12371   if test -n "$ncn_tool_prefix"; then
12372     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12373 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375 $as_echo_n "checking for $ac_word... " >&6; }
12376 if ${ac_cv_prog_OBJDUMP+:} false; then :
12377   $as_echo_n "(cached) " >&6
12378 else
12379   if test -n "$OBJDUMP"; then
12380   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12381 else
12382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383 for as_dir in $PATH
12384 do
12385   IFS=$as_save_IFS
12386   test -z "$as_dir" && as_dir=.
12387     for ac_exec_ext in '' $ac_executable_extensions; do
12388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12389     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12391     break 2
12392   fi
12393 done
12394   done
12395 IFS=$as_save_IFS
12396
12397 fi
12398 fi
12399 OBJDUMP=$ac_cv_prog_OBJDUMP
12400 if test -n "$OBJDUMP"; then
12401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12402 $as_echo "$OBJDUMP" >&6; }
12403 else
12404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12406 fi
12407
12408
12409   fi
12410   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12411     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12412 set dummy ${ncn_progname}; ac_word=$2
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12414 $as_echo_n "checking for $ac_word... " >&6; }
12415 if ${ac_cv_prog_OBJDUMP+:} false; then :
12416   $as_echo_n "(cached) " >&6
12417 else
12418   if test -n "$OBJDUMP"; then
12419   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12420 else
12421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422 for as_dir in $PATH
12423 do
12424   IFS=$as_save_IFS
12425   test -z "$as_dir" && as_dir=.
12426     for ac_exec_ext in '' $ac_executable_extensions; do
12427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12428     ac_cv_prog_OBJDUMP="${ncn_progname}"
12429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12430     break 2
12431   fi
12432 done
12433   done
12434 IFS=$as_save_IFS
12435
12436 fi
12437 fi
12438 OBJDUMP=$ac_cv_prog_OBJDUMP
12439 if test -n "$OBJDUMP"; then
12440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12441 $as_echo "$OBJDUMP" >&6; }
12442 else
12443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444 $as_echo "no" >&6; }
12445 fi
12446
12447
12448   fi
12449   test -n "$ac_cv_prog_OBJDUMP" && break
12450 done
12451
12452 if test -z "$ac_cv_prog_OBJDUMP" ; then
12453   set dummy objdump
12454   if test $build = $host ; then
12455     OBJDUMP="$2"
12456   else
12457     OBJDUMP="${ncn_tool_prefix}$2"
12458   fi
12459 fi
12460
12461
12462
12463 if test -n "$OTOOL"; then
12464   ac_cv_prog_OTOOL=$OTOOL
12465 elif test -n "$ac_cv_prog_OTOOL"; then
12466   OTOOL=$ac_cv_prog_OTOOL
12467 fi
12468
12469 if test -n "$ac_cv_prog_OTOOL"; then
12470   for ncn_progname in otool; do
12471     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12472 set dummy ${ncn_progname}; ac_word=$2
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12474 $as_echo_n "checking for $ac_word... " >&6; }
12475 if ${ac_cv_prog_OTOOL+:} false; then :
12476   $as_echo_n "(cached) " >&6
12477 else
12478   if test -n "$OTOOL"; then
12479   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12480 else
12481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482 for as_dir in $PATH
12483 do
12484   IFS=$as_save_IFS
12485   test -z "$as_dir" && as_dir=.
12486     for ac_exec_ext in '' $ac_executable_extensions; do
12487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12488     ac_cv_prog_OTOOL="${ncn_progname}"
12489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12490     break 2
12491   fi
12492 done
12493   done
12494 IFS=$as_save_IFS
12495
12496 fi
12497 fi
12498 OTOOL=$ac_cv_prog_OTOOL
12499 if test -n "$OTOOL"; then
12500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12501 $as_echo "$OTOOL" >&6; }
12502 else
12503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12504 $as_echo "no" >&6; }
12505 fi
12506
12507
12508   done
12509 fi
12510
12511 for ncn_progname in otool; do
12512   if test -n "$ncn_tool_prefix"; then
12513     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12514 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516 $as_echo_n "checking for $ac_word... " >&6; }
12517 if ${ac_cv_prog_OTOOL+:} false; then :
12518   $as_echo_n "(cached) " >&6
12519 else
12520   if test -n "$OTOOL"; then
12521   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12522 else
12523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524 for as_dir in $PATH
12525 do
12526   IFS=$as_save_IFS
12527   test -z "$as_dir" && as_dir=.
12528     for ac_exec_ext in '' $ac_executable_extensions; do
12529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12530     ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12532     break 2
12533   fi
12534 done
12535   done
12536 IFS=$as_save_IFS
12537
12538 fi
12539 fi
12540 OTOOL=$ac_cv_prog_OTOOL
12541 if test -n "$OTOOL"; then
12542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12543 $as_echo "$OTOOL" >&6; }
12544 else
12545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12547 fi
12548
12549
12550   fi
12551   if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12552     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12553 set dummy ${ncn_progname}; ac_word=$2
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12555 $as_echo_n "checking for $ac_word... " >&6; }
12556 if ${ac_cv_prog_OTOOL+:} false; then :
12557   $as_echo_n "(cached) " >&6
12558 else
12559   if test -n "$OTOOL"; then
12560   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12561 else
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $PATH
12564 do
12565   IFS=$as_save_IFS
12566   test -z "$as_dir" && as_dir=.
12567     for ac_exec_ext in '' $ac_executable_extensions; do
12568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12569     ac_cv_prog_OTOOL="${ncn_progname}"
12570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12571     break 2
12572   fi
12573 done
12574   done
12575 IFS=$as_save_IFS
12576
12577 fi
12578 fi
12579 OTOOL=$ac_cv_prog_OTOOL
12580 if test -n "$OTOOL"; then
12581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12582 $as_echo "$OTOOL" >&6; }
12583 else
12584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12586 fi
12587
12588
12589   fi
12590   test -n "$ac_cv_prog_OTOOL" && break
12591 done
12592
12593 if test -z "$ac_cv_prog_OTOOL" ; then
12594   set dummy otool
12595   if test $build = $host ; then
12596     OTOOL="$2"
12597   else
12598     OTOOL="${ncn_tool_prefix}$2"
12599   fi
12600 fi
12601
12602
12603
12604 if test -n "$READELF"; then
12605   ac_cv_prog_READELF=$READELF
12606 elif test -n "$ac_cv_prog_READELF"; then
12607   READELF=$ac_cv_prog_READELF
12608 fi
12609
12610 if test -n "$ac_cv_prog_READELF"; then
12611   for ncn_progname in readelf; do
12612     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12613 set dummy ${ncn_progname}; ac_word=$2
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12615 $as_echo_n "checking for $ac_word... " >&6; }
12616 if ${ac_cv_prog_READELF+:} false; then :
12617   $as_echo_n "(cached) " >&6
12618 else
12619   if test -n "$READELF"; then
12620   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12621 else
12622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623 for as_dir in $PATH
12624 do
12625   IFS=$as_save_IFS
12626   test -z "$as_dir" && as_dir=.
12627     for ac_exec_ext in '' $ac_executable_extensions; do
12628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12629     ac_cv_prog_READELF="${ncn_progname}"
12630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12631     break 2
12632   fi
12633 done
12634   done
12635 IFS=$as_save_IFS
12636
12637 fi
12638 fi
12639 READELF=$ac_cv_prog_READELF
12640 if test -n "$READELF"; then
12641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12642 $as_echo "$READELF" >&6; }
12643 else
12644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645 $as_echo "no" >&6; }
12646 fi
12647
12648
12649   done
12650 fi
12651
12652 for ncn_progname in readelf; do
12653   if test -n "$ncn_tool_prefix"; then
12654     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12655 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12657 $as_echo_n "checking for $ac_word... " >&6; }
12658 if ${ac_cv_prog_READELF+:} false; then :
12659   $as_echo_n "(cached) " >&6
12660 else
12661   if test -n "$READELF"; then
12662   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12663 else
12664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12665 for as_dir in $PATH
12666 do
12667   IFS=$as_save_IFS
12668   test -z "$as_dir" && as_dir=.
12669     for ac_exec_ext in '' $ac_executable_extensions; do
12670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12671     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12673     break 2
12674   fi
12675 done
12676   done
12677 IFS=$as_save_IFS
12678
12679 fi
12680 fi
12681 READELF=$ac_cv_prog_READELF
12682 if test -n "$READELF"; then
12683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12684 $as_echo "$READELF" >&6; }
12685 else
12686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687 $as_echo "no" >&6; }
12688 fi
12689
12690
12691   fi
12692   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12693     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12694 set dummy ${ncn_progname}; ac_word=$2
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12696 $as_echo_n "checking for $ac_word... " >&6; }
12697 if ${ac_cv_prog_READELF+:} false; then :
12698   $as_echo_n "(cached) " >&6
12699 else
12700   if test -n "$READELF"; then
12701   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12702 else
12703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12704 for as_dir in $PATH
12705 do
12706   IFS=$as_save_IFS
12707   test -z "$as_dir" && as_dir=.
12708     for ac_exec_ext in '' $ac_executable_extensions; do
12709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12710     ac_cv_prog_READELF="${ncn_progname}"
12711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12712     break 2
12713   fi
12714 done
12715   done
12716 IFS=$as_save_IFS
12717
12718 fi
12719 fi
12720 READELF=$ac_cv_prog_READELF
12721 if test -n "$READELF"; then
12722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12723 $as_echo "$READELF" >&6; }
12724 else
12725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726 $as_echo "no" >&6; }
12727 fi
12728
12729
12730   fi
12731   test -n "$ac_cv_prog_READELF" && break
12732 done
12733
12734 if test -z "$ac_cv_prog_READELF" ; then
12735   set dummy readelf
12736   if test $build = $host ; then
12737     READELF="$2"
12738   else
12739     READELF="${ncn_tool_prefix}$2"
12740   fi
12741 fi
12742
12743
12744
12745
12746
12747
12748
12749
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
12751 $as_echo_n "checking for -plugin option... " >&6; }
12752
12753 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
12754 plugin_option=
12755 for plugin in $plugin_names; do
12756   plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
12757   if test x$plugin_so = x$plugin; then
12758     plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
12759   fi
12760   if test x$plugin_so != x$plugin; then
12761     plugin_option="--plugin $plugin_so"
12762     break
12763   fi
12764 done
12765 if test -n "$plugin_option"; then
12766   PLUGIN_OPTION="$plugin_option"
12767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
12768 $as_echo "$plugin_option" >&6; }
12769 else
12770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771 $as_echo "no" >&6; }
12772 fi
12773
12774 AR_PLUGIN_OPTION=
12775 RANLIB_PLUGIN_OPTION=
12776 if test -n "$PLUGIN_OPTION"; then
12777   if $AR --help 2>&1 | grep -q "\--plugin"; then
12778     AR_PLUGIN_OPTION="$PLUGIN_OPTION"
12779   fi
12780   if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
12781     RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
12782   fi
12783 fi
12784
12785
12786
12787 # Target tools.
12788
12789 # Check whether --with-build-time-tools was given.
12790 if test "${with_build_time_tools+set}" = set; then :
12791   withval=$with_build_time_tools; case x"$withval" in
12792      x/*) ;;
12793      *)
12794        with_build_time_tools=
12795        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12796 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12797        ;;
12798    esac
12799 else
12800   with_build_time_tools=
12801 fi
12802
12803
12804
12805
12806 if test -n "$CC_FOR_TARGET"; then
12807   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12808 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12809   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12810 fi
12811
12812 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12813   for ncn_progname in cc gcc; do
12814     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12815 set dummy ${ncn_progname}; ac_word=$2
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12817 $as_echo_n "checking for $ac_word... " >&6; }
12818 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12819   $as_echo_n "(cached) " >&6
12820 else
12821   if test -n "$CC_FOR_TARGET"; then
12822   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12823 else
12824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825 for as_dir in $PATH
12826 do
12827   IFS=$as_save_IFS
12828   test -z "$as_dir" && as_dir=.
12829     for ac_exec_ext in '' $ac_executable_extensions; do
12830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12831     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12833     break 2
12834   fi
12835 done
12836   done
12837 IFS=$as_save_IFS
12838
12839 fi
12840 fi
12841 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12842 if test -n "$CC_FOR_TARGET"; then
12843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12844 $as_echo "$CC_FOR_TARGET" >&6; }
12845 else
12846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 $as_echo "no" >&6; }
12848 fi
12849
12850
12851   done
12852 fi
12853
12854 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12855   for ncn_progname in cc gcc; do
12856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12857 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12858     if test -x $with_build_time_tools/${ncn_progname}; then
12859       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12860       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12861 $as_echo "yes" >&6; }
12862       break
12863     else
12864       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865 $as_echo "no" >&6; }
12866     fi
12867   done
12868 fi
12869
12870 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12871   for ncn_progname in cc gcc; do
12872     if test -n "$ncn_target_tool_prefix"; then
12873       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12874 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 $as_echo_n "checking for $ac_word... " >&6; }
12877 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12878   $as_echo_n "(cached) " >&6
12879 else
12880   if test -n "$CC_FOR_TARGET"; then
12881   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12882 else
12883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884 for as_dir in $PATH
12885 do
12886   IFS=$as_save_IFS
12887   test -z "$as_dir" && as_dir=.
12888     for ac_exec_ext in '' $ac_executable_extensions; do
12889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12890     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12892     break 2
12893   fi
12894 done
12895   done
12896 IFS=$as_save_IFS
12897
12898 fi
12899 fi
12900 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12901 if test -n "$CC_FOR_TARGET"; then
12902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12903 $as_echo "$CC_FOR_TARGET" >&6; }
12904 else
12905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12907 fi
12908
12909
12910     fi
12911     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12912       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12913 set dummy ${ncn_progname}; ac_word=$2
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12915 $as_echo_n "checking for $ac_word... " >&6; }
12916 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12917   $as_echo_n "(cached) " >&6
12918 else
12919   if test -n "$CC_FOR_TARGET"; then
12920   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12921 else
12922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12923 for as_dir in $PATH
12924 do
12925   IFS=$as_save_IFS
12926   test -z "$as_dir" && as_dir=.
12927     for ac_exec_ext in '' $ac_executable_extensions; do
12928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12929     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12931     break 2
12932   fi
12933 done
12934   done
12935 IFS=$as_save_IFS
12936
12937 fi
12938 fi
12939 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12940 if test -n "$CC_FOR_TARGET"; then
12941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12942 $as_echo "$CC_FOR_TARGET" >&6; }
12943 else
12944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945 $as_echo "no" >&6; }
12946 fi
12947
12948
12949     fi
12950     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12951   done
12952 fi
12953
12954 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12955   set dummy cc gcc
12956   if test $build = $target ; then
12957     CC_FOR_TARGET="$2"
12958   else
12959     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12960   fi
12961 else
12962   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12963 fi
12964
12965
12966
12967 if test -n "$CXX_FOR_TARGET"; then
12968   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12969 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12970   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12971 fi
12972
12973 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12974   for ncn_progname in c++ g++ cxx gxx; do
12975     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12976 set dummy ${ncn_progname}; ac_word=$2
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12978 $as_echo_n "checking for $ac_word... " >&6; }
12979 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12980   $as_echo_n "(cached) " >&6
12981 else
12982   if test -n "$CXX_FOR_TARGET"; then
12983   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12984 else
12985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12986 for as_dir in $PATH
12987 do
12988   IFS=$as_save_IFS
12989   test -z "$as_dir" && as_dir=.
12990     for ac_exec_ext in '' $ac_executable_extensions; do
12991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12992     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12994     break 2
12995   fi
12996 done
12997   done
12998 IFS=$as_save_IFS
12999
13000 fi
13001 fi
13002 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13003 if test -n "$CXX_FOR_TARGET"; then
13004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13005 $as_echo "$CXX_FOR_TARGET" >&6; }
13006 else
13007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13008 $as_echo "no" >&6; }
13009 fi
13010
13011
13012   done
13013 fi
13014
13015 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13016   for ncn_progname in c++ g++ cxx gxx; do
13017     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13018 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13019     if test -x $with_build_time_tools/${ncn_progname}; then
13020       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13021       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13022 $as_echo "yes" >&6; }
13023       break
13024     else
13025       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 $as_echo "no" >&6; }
13027     fi
13028   done
13029 fi
13030
13031 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13032   for ncn_progname in c++ g++ cxx gxx; do
13033     if test -n "$ncn_target_tool_prefix"; then
13034       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13035 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037 $as_echo_n "checking for $ac_word... " >&6; }
13038 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13039   $as_echo_n "(cached) " >&6
13040 else
13041   if test -n "$CXX_FOR_TARGET"; then
13042   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13043 else
13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045 for as_dir in $PATH
13046 do
13047   IFS=$as_save_IFS
13048   test -z "$as_dir" && as_dir=.
13049     for ac_exec_ext in '' $ac_executable_extensions; do
13050   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13051     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13053     break 2
13054   fi
13055 done
13056   done
13057 IFS=$as_save_IFS
13058
13059 fi
13060 fi
13061 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13062 if test -n "$CXX_FOR_TARGET"; then
13063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13064 $as_echo "$CXX_FOR_TARGET" >&6; }
13065 else
13066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067 $as_echo "no" >&6; }
13068 fi
13069
13070
13071     fi
13072     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13073       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13074 set dummy ${ncn_progname}; ac_word=$2
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13076 $as_echo_n "checking for $ac_word... " >&6; }
13077 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13078   $as_echo_n "(cached) " >&6
13079 else
13080   if test -n "$CXX_FOR_TARGET"; then
13081   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13082 else
13083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13084 for as_dir in $PATH
13085 do
13086   IFS=$as_save_IFS
13087   test -z "$as_dir" && as_dir=.
13088     for ac_exec_ext in '' $ac_executable_extensions; do
13089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13090     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13092     break 2
13093   fi
13094 done
13095   done
13096 IFS=$as_save_IFS
13097
13098 fi
13099 fi
13100 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13101 if test -n "$CXX_FOR_TARGET"; then
13102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13103 $as_echo "$CXX_FOR_TARGET" >&6; }
13104 else
13105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106 $as_echo "no" >&6; }
13107 fi
13108
13109
13110     fi
13111     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13112   done
13113 fi
13114
13115 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13116   set dummy c++ g++ cxx gxx
13117   if test $build = $target ; then
13118     CXX_FOR_TARGET="$2"
13119   else
13120     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13121   fi
13122 else
13123   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13124 fi
13125
13126
13127
13128 if test -n "$GCC_FOR_TARGET"; then
13129   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13130 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13131   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13132 fi
13133
13134 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13135   for ncn_progname in gcc; do
13136     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13137 set dummy ${ncn_progname}; ac_word=$2
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13139 $as_echo_n "checking for $ac_word... " >&6; }
13140 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13141   $as_echo_n "(cached) " >&6
13142 else
13143   if test -n "$GCC_FOR_TARGET"; then
13144   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13145 else
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13148 do
13149   IFS=$as_save_IFS
13150   test -z "$as_dir" && as_dir=.
13151     for ac_exec_ext in '' $ac_executable_extensions; do
13152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13153     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13155     break 2
13156   fi
13157 done
13158   done
13159 IFS=$as_save_IFS
13160
13161 fi
13162 fi
13163 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13164 if test -n "$GCC_FOR_TARGET"; then
13165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13166 $as_echo "$GCC_FOR_TARGET" >&6; }
13167 else
13168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 $as_echo "no" >&6; }
13170 fi
13171
13172
13173   done
13174 fi
13175
13176 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13177   for ncn_progname in gcc; do
13178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13179 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13180     if test -x $with_build_time_tools/${ncn_progname}; then
13181       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13182       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13183 $as_echo "yes" >&6; }
13184       break
13185     else
13186       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187 $as_echo "no" >&6; }
13188     fi
13189   done
13190 fi
13191
13192 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13193   for ncn_progname in gcc; do
13194     if test -n "$ncn_target_tool_prefix"; then
13195       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13196 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198 $as_echo_n "checking for $ac_word... " >&6; }
13199 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13200   $as_echo_n "(cached) " >&6
13201 else
13202   if test -n "$GCC_FOR_TARGET"; then
13203   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13204 else
13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $PATH
13207 do
13208   IFS=$as_save_IFS
13209   test -z "$as_dir" && as_dir=.
13210     for ac_exec_ext in '' $ac_executable_extensions; do
13211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13212     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13214     break 2
13215   fi
13216 done
13217   done
13218 IFS=$as_save_IFS
13219
13220 fi
13221 fi
13222 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13223 if test -n "$GCC_FOR_TARGET"; then
13224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13225 $as_echo "$GCC_FOR_TARGET" >&6; }
13226 else
13227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13229 fi
13230
13231
13232     fi
13233     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13234       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13235 set dummy ${ncn_progname}; ac_word=$2
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237 $as_echo_n "checking for $ac_word... " >&6; }
13238 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13239   $as_echo_n "(cached) " >&6
13240 else
13241   if test -n "$GCC_FOR_TARGET"; then
13242   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13243 else
13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245 for as_dir in $PATH
13246 do
13247   IFS=$as_save_IFS
13248   test -z "$as_dir" && as_dir=.
13249     for ac_exec_ext in '' $ac_executable_extensions; do
13250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13251     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13253     break 2
13254   fi
13255 done
13256   done
13257 IFS=$as_save_IFS
13258
13259 fi
13260 fi
13261 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13262 if test -n "$GCC_FOR_TARGET"; then
13263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13264 $as_echo "$GCC_FOR_TARGET" >&6; }
13265 else
13266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13268 fi
13269
13270
13271     fi
13272     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13273   done
13274 fi
13275
13276 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13277   GCC_FOR_TARGET="${CC_FOR_TARGET}"
13278 else
13279   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13280 fi
13281
13282
13283
13284 if test -n "$GFORTRAN_FOR_TARGET"; then
13285   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13286 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13287   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13288 fi
13289
13290 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13291   for ncn_progname in gfortran; do
13292     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13293 set dummy ${ncn_progname}; ac_word=$2
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13295 $as_echo_n "checking for $ac_word... " >&6; }
13296 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13297   $as_echo_n "(cached) " >&6
13298 else
13299   if test -n "$GFORTRAN_FOR_TARGET"; then
13300   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13301 else
13302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303 for as_dir in $PATH
13304 do
13305   IFS=$as_save_IFS
13306   test -z "$as_dir" && as_dir=.
13307     for ac_exec_ext in '' $ac_executable_extensions; do
13308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13309     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13311     break 2
13312   fi
13313 done
13314   done
13315 IFS=$as_save_IFS
13316
13317 fi
13318 fi
13319 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13320 if test -n "$GFORTRAN_FOR_TARGET"; then
13321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13322 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13323 else
13324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325 $as_echo "no" >&6; }
13326 fi
13327
13328
13329   done
13330 fi
13331
13332 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13333   for ncn_progname in gfortran; do
13334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13335 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13336     if test -x $with_build_time_tools/${ncn_progname}; then
13337       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13338       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13339 $as_echo "yes" >&6; }
13340       break
13341     else
13342       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343 $as_echo "no" >&6; }
13344     fi
13345   done
13346 fi
13347
13348 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13349   for ncn_progname in gfortran; do
13350     if test -n "$ncn_target_tool_prefix"; then
13351       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13352 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13354 $as_echo_n "checking for $ac_word... " >&6; }
13355 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13356   $as_echo_n "(cached) " >&6
13357 else
13358   if test -n "$GFORTRAN_FOR_TARGET"; then
13359   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13360 else
13361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13362 for as_dir in $PATH
13363 do
13364   IFS=$as_save_IFS
13365   test -z "$as_dir" && as_dir=.
13366     for ac_exec_ext in '' $ac_executable_extensions; do
13367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13368     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13370     break 2
13371   fi
13372 done
13373   done
13374 IFS=$as_save_IFS
13375
13376 fi
13377 fi
13378 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13379 if test -n "$GFORTRAN_FOR_TARGET"; then
13380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13381 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13382 else
13383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13384 $as_echo "no" >&6; }
13385 fi
13386
13387
13388     fi
13389     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13390       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13391 set dummy ${ncn_progname}; ac_word=$2
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13393 $as_echo_n "checking for $ac_word... " >&6; }
13394 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13395   $as_echo_n "(cached) " >&6
13396 else
13397   if test -n "$GFORTRAN_FOR_TARGET"; then
13398   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13399 else
13400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401 for as_dir in $PATH
13402 do
13403   IFS=$as_save_IFS
13404   test -z "$as_dir" && as_dir=.
13405     for ac_exec_ext in '' $ac_executable_extensions; do
13406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13407     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13409     break 2
13410   fi
13411 done
13412   done
13413 IFS=$as_save_IFS
13414
13415 fi
13416 fi
13417 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13418 if test -n "$GFORTRAN_FOR_TARGET"; then
13419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13420 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13421 else
13422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423 $as_echo "no" >&6; }
13424 fi
13425
13426
13427     fi
13428     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13429   done
13430 fi
13431
13432 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13433   set dummy gfortran
13434   if test $build = $target ; then
13435     GFORTRAN_FOR_TARGET="$2"
13436   else
13437     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13438   fi
13439 else
13440   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13441 fi
13442
13443
13444
13445 if test -n "$GOC_FOR_TARGET"; then
13446   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13447 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13448   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13449 fi
13450
13451 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13452   for ncn_progname in gccgo; do
13453     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13454 set dummy ${ncn_progname}; ac_word=$2
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456 $as_echo_n "checking for $ac_word... " >&6; }
13457 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13458   $as_echo_n "(cached) " >&6
13459 else
13460   if test -n "$GOC_FOR_TARGET"; then
13461   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13462 else
13463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464 for as_dir in $PATH
13465 do
13466   IFS=$as_save_IFS
13467   test -z "$as_dir" && as_dir=.
13468     for ac_exec_ext in '' $ac_executable_extensions; do
13469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13470     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13472     break 2
13473   fi
13474 done
13475   done
13476 IFS=$as_save_IFS
13477
13478 fi
13479 fi
13480 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13481 if test -n "$GOC_FOR_TARGET"; then
13482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13483 $as_echo "$GOC_FOR_TARGET" >&6; }
13484 else
13485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13486 $as_echo "no" >&6; }
13487 fi
13488
13489
13490   done
13491 fi
13492
13493 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13494   for ncn_progname in gccgo; do
13495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13496 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13497     if test -x $with_build_time_tools/${ncn_progname}; then
13498       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13499       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13500 $as_echo "yes" >&6; }
13501       break
13502     else
13503       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504 $as_echo "no" >&6; }
13505     fi
13506   done
13507 fi
13508
13509 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13510   for ncn_progname in gccgo; do
13511     if test -n "$ncn_target_tool_prefix"; then
13512       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13513 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13515 $as_echo_n "checking for $ac_word... " >&6; }
13516 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13517   $as_echo_n "(cached) " >&6
13518 else
13519   if test -n "$GOC_FOR_TARGET"; then
13520   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13521 else
13522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13523 for as_dir in $PATH
13524 do
13525   IFS=$as_save_IFS
13526   test -z "$as_dir" && as_dir=.
13527     for ac_exec_ext in '' $ac_executable_extensions; do
13528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13529     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13531     break 2
13532   fi
13533 done
13534   done
13535 IFS=$as_save_IFS
13536
13537 fi
13538 fi
13539 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13540 if test -n "$GOC_FOR_TARGET"; then
13541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13542 $as_echo "$GOC_FOR_TARGET" >&6; }
13543 else
13544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545 $as_echo "no" >&6; }
13546 fi
13547
13548
13549     fi
13550     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13551       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13552 set dummy ${ncn_progname}; ac_word=$2
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13554 $as_echo_n "checking for $ac_word... " >&6; }
13555 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13556   $as_echo_n "(cached) " >&6
13557 else
13558   if test -n "$GOC_FOR_TARGET"; then
13559   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13560 else
13561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13562 for as_dir in $PATH
13563 do
13564   IFS=$as_save_IFS
13565   test -z "$as_dir" && as_dir=.
13566     for ac_exec_ext in '' $ac_executable_extensions; do
13567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13568     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13570     break 2
13571   fi
13572 done
13573   done
13574 IFS=$as_save_IFS
13575
13576 fi
13577 fi
13578 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13579 if test -n "$GOC_FOR_TARGET"; then
13580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13581 $as_echo "$GOC_FOR_TARGET" >&6; }
13582 else
13583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13584 $as_echo "no" >&6; }
13585 fi
13586
13587
13588     fi
13589     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13590   done
13591 fi
13592
13593 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13594   set dummy gccgo
13595   if test $build = $target ; then
13596     GOC_FOR_TARGET="$2"
13597   else
13598     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13599   fi
13600 else
13601   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13602 fi
13603
13604
13605
13606 if test -n "$GDC_FOR_TARGET"; then
13607   ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13608 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13609   GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13610 fi
13611
13612 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13613   for ncn_progname in gdc; do
13614     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13615 set dummy ${ncn_progname}; ac_word=$2
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13617 $as_echo_n "checking for $ac_word... " >&6; }
13618 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13619   $as_echo_n "(cached) " >&6
13620 else
13621   if test -n "$GDC_FOR_TARGET"; then
13622   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13623 else
13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625 for as_dir in $PATH
13626 do
13627   IFS=$as_save_IFS
13628   test -z "$as_dir" && as_dir=.
13629     for ac_exec_ext in '' $ac_executable_extensions; do
13630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13631     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13633     break 2
13634   fi
13635 done
13636   done
13637 IFS=$as_save_IFS
13638
13639 fi
13640 fi
13641 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13642 if test -n "$GDC_FOR_TARGET"; then
13643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13644 $as_echo "$GDC_FOR_TARGET" >&6; }
13645 else
13646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13648 fi
13649
13650
13651   done
13652 fi
13653
13654 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13655   for ncn_progname in gdc; do
13656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13657 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13658     if test -x $with_build_time_tools/${ncn_progname}; then
13659       ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13660       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13661 $as_echo "yes" >&6; }
13662       break
13663     else
13664       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13665 $as_echo "no" >&6; }
13666     fi
13667   done
13668 fi
13669
13670 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13671   for ncn_progname in gdc; do
13672     if test -n "$ncn_target_tool_prefix"; then
13673       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13674 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13676 $as_echo_n "checking for $ac_word... " >&6; }
13677 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13678   $as_echo_n "(cached) " >&6
13679 else
13680   if test -n "$GDC_FOR_TARGET"; then
13681   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13682 else
13683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13684 for as_dir in $PATH
13685 do
13686   IFS=$as_save_IFS
13687   test -z "$as_dir" && as_dir=.
13688     for ac_exec_ext in '' $ac_executable_extensions; do
13689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13690     ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13692     break 2
13693   fi
13694 done
13695   done
13696 IFS=$as_save_IFS
13697
13698 fi
13699 fi
13700 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13701 if test -n "$GDC_FOR_TARGET"; then
13702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13703 $as_echo "$GDC_FOR_TARGET" >&6; }
13704 else
13705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13706 $as_echo "no" >&6; }
13707 fi
13708
13709
13710     fi
13711     if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13712       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13713 set dummy ${ncn_progname}; ac_word=$2
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13715 $as_echo_n "checking for $ac_word... " >&6; }
13716 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13717   $as_echo_n "(cached) " >&6
13718 else
13719   if test -n "$GDC_FOR_TARGET"; then
13720   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13721 else
13722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13723 for as_dir in $PATH
13724 do
13725   IFS=$as_save_IFS
13726   test -z "$as_dir" && as_dir=.
13727     for ac_exec_ext in '' $ac_executable_extensions; do
13728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13729     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13731     break 2
13732   fi
13733 done
13734   done
13735 IFS=$as_save_IFS
13736
13737 fi
13738 fi
13739 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13740 if test -n "$GDC_FOR_TARGET"; then
13741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13742 $as_echo "$GDC_FOR_TARGET" >&6; }
13743 else
13744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13745 $as_echo "no" >&6; }
13746 fi
13747
13748
13749     fi
13750     test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13751   done
13752 fi
13753
13754 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13755   set dummy gdc
13756   if test $build = $target ; then
13757     GDC_FOR_TARGET="$2"
13758   else
13759     GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13760   fi
13761 else
13762   GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13763 fi
13764
13765
13766
13767 cat > conftest.c << \EOF
13768 #ifdef __GNUC__
13769   gcc_yay;
13770 #endif
13771 EOF
13772 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13773   have_gcc_for_target=yes
13774 else
13775   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13776   have_gcc_for_target=no
13777 fi
13778 rm conftest.c
13779
13780
13781
13782
13783 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13784   if test -n "$with_build_time_tools"; then
13785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13786 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13787     if test -x $with_build_time_tools/ar; then
13788       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13789       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13790       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13791 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13792     else
13793       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13794 $as_echo "no" >&6; }
13795     fi
13796   elif test $build != $host && test $have_gcc_for_target = yes; then
13797     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13798     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13799     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13800   fi
13801 fi
13802 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13803   # Extract the first word of "ar", so it can be a program name with args.
13804 set dummy ar; ac_word=$2
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13806 $as_echo_n "checking for $ac_word... " >&6; }
13807 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13808   $as_echo_n "(cached) " >&6
13809 else
13810   case $AR_FOR_TARGET in
13811   [\\/]* | ?:[\\/]*)
13812   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13813   ;;
13814   *)
13815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13816 for as_dir in $gcc_cv_tool_dirs
13817 do
13818   IFS=$as_save_IFS
13819   test -z "$as_dir" && as_dir=.
13820     for ac_exec_ext in '' $ac_executable_extensions; do
13821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13822     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13824     break 2
13825   fi
13826 done
13827   done
13828 IFS=$as_save_IFS
13829
13830   ;;
13831 esac
13832 fi
13833 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13834 if test -n "$AR_FOR_TARGET"; then
13835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13836 $as_echo "$AR_FOR_TARGET" >&6; }
13837 else
13838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13839 $as_echo "no" >&6; }
13840 fi
13841
13842
13843 fi
13844 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13845
13846
13847 if test -n "$AR_FOR_TARGET"; then
13848   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13849 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13850   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13851 fi
13852
13853 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13854   for ncn_progname in ar; do
13855     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13856 set dummy ${ncn_progname}; ac_word=$2
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13858 $as_echo_n "checking for $ac_word... " >&6; }
13859 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13860   $as_echo_n "(cached) " >&6
13861 else
13862   if test -n "$AR_FOR_TARGET"; then
13863   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13864 else
13865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13866 for as_dir in $PATH
13867 do
13868   IFS=$as_save_IFS
13869   test -z "$as_dir" && as_dir=.
13870     for ac_exec_ext in '' $ac_executable_extensions; do
13871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13872     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13874     break 2
13875   fi
13876 done
13877   done
13878 IFS=$as_save_IFS
13879
13880 fi
13881 fi
13882 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13883 if test -n "$AR_FOR_TARGET"; then
13884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13885 $as_echo "$AR_FOR_TARGET" >&6; }
13886 else
13887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13888 $as_echo "no" >&6; }
13889 fi
13890
13891
13892   done
13893 fi
13894
13895 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13896   for ncn_progname in ar; do
13897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13898 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13899     if test -x $with_build_time_tools/${ncn_progname}; then
13900       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13901       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13902 $as_echo "yes" >&6; }
13903       break
13904     else
13905       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906 $as_echo "no" >&6; }
13907     fi
13908   done
13909 fi
13910
13911 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13912   for ncn_progname in ar; do
13913     if test -n "$ncn_target_tool_prefix"; then
13914       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13915 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13917 $as_echo_n "checking for $ac_word... " >&6; }
13918 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13919   $as_echo_n "(cached) " >&6
13920 else
13921   if test -n "$AR_FOR_TARGET"; then
13922   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13923 else
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13926 do
13927   IFS=$as_save_IFS
13928   test -z "$as_dir" && as_dir=.
13929     for ac_exec_ext in '' $ac_executable_extensions; do
13930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13931     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13933     break 2
13934   fi
13935 done
13936   done
13937 IFS=$as_save_IFS
13938
13939 fi
13940 fi
13941 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13942 if test -n "$AR_FOR_TARGET"; then
13943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13944 $as_echo "$AR_FOR_TARGET" >&6; }
13945 else
13946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947 $as_echo "no" >&6; }
13948 fi
13949
13950
13951     fi
13952     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13953       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13954 set dummy ${ncn_progname}; ac_word=$2
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13956 $as_echo_n "checking for $ac_word... " >&6; }
13957 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13958   $as_echo_n "(cached) " >&6
13959 else
13960   if test -n "$AR_FOR_TARGET"; then
13961   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13962 else
13963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13964 for as_dir in $PATH
13965 do
13966   IFS=$as_save_IFS
13967   test -z "$as_dir" && as_dir=.
13968     for ac_exec_ext in '' $ac_executable_extensions; do
13969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13970     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13972     break 2
13973   fi
13974 done
13975   done
13976 IFS=$as_save_IFS
13977
13978 fi
13979 fi
13980 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13981 if test -n "$AR_FOR_TARGET"; then
13982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13983 $as_echo "$AR_FOR_TARGET" >&6; }
13984 else
13985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13986 $as_echo "no" >&6; }
13987 fi
13988
13989
13990     fi
13991     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13992   done
13993 fi
13994
13995 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13996   set dummy ar
13997   if test $build = $target ; then
13998     AR_FOR_TARGET="$2"
13999   else
14000     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14001   fi
14002 else
14003   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14004 fi
14005
14006 else
14007   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14008 fi
14009
14010
14011
14012
14013 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14014   if test -n "$with_build_time_tools"; then
14015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14016 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14017     if test -x $with_build_time_tools/as; then
14018       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14019       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14020       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14021 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14022     else
14023       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14024 $as_echo "no" >&6; }
14025     fi
14026   elif test $build != $host && test $have_gcc_for_target = yes; then
14027     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14028     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14029     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14030   fi
14031 fi
14032 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14033   # Extract the first word of "as", so it can be a program name with args.
14034 set dummy as; ac_word=$2
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14036 $as_echo_n "checking for $ac_word... " >&6; }
14037 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14038   $as_echo_n "(cached) " >&6
14039 else
14040   case $AS_FOR_TARGET in
14041   [\\/]* | ?:[\\/]*)
14042   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14043   ;;
14044   *)
14045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14046 for as_dir in $gcc_cv_tool_dirs
14047 do
14048   IFS=$as_save_IFS
14049   test -z "$as_dir" && as_dir=.
14050     for ac_exec_ext in '' $ac_executable_extensions; do
14051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14052     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14054     break 2
14055   fi
14056 done
14057   done
14058 IFS=$as_save_IFS
14059
14060   ;;
14061 esac
14062 fi
14063 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14064 if test -n "$AS_FOR_TARGET"; then
14065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14066 $as_echo "$AS_FOR_TARGET" >&6; }
14067 else
14068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069 $as_echo "no" >&6; }
14070 fi
14071
14072
14073 fi
14074 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14075
14076
14077 if test -n "$AS_FOR_TARGET"; then
14078   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14079 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14080   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14081 fi
14082
14083 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14084   for ncn_progname in as; do
14085     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14086 set dummy ${ncn_progname}; ac_word=$2
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14088 $as_echo_n "checking for $ac_word... " >&6; }
14089 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14090   $as_echo_n "(cached) " >&6
14091 else
14092   if test -n "$AS_FOR_TARGET"; then
14093   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14094 else
14095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14096 for as_dir in $PATH
14097 do
14098   IFS=$as_save_IFS
14099   test -z "$as_dir" && as_dir=.
14100     for ac_exec_ext in '' $ac_executable_extensions; do
14101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14102     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14104     break 2
14105   fi
14106 done
14107   done
14108 IFS=$as_save_IFS
14109
14110 fi
14111 fi
14112 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14113 if test -n "$AS_FOR_TARGET"; then
14114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14115 $as_echo "$AS_FOR_TARGET" >&6; }
14116 else
14117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14118 $as_echo "no" >&6; }
14119 fi
14120
14121
14122   done
14123 fi
14124
14125 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14126   for ncn_progname in as; do
14127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14128 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14129     if test -x $with_build_time_tools/${ncn_progname}; then
14130       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14131       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14132 $as_echo "yes" >&6; }
14133       break
14134     else
14135       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14136 $as_echo "no" >&6; }
14137     fi
14138   done
14139 fi
14140
14141 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14142   for ncn_progname in as; do
14143     if test -n "$ncn_target_tool_prefix"; then
14144       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14145 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14147 $as_echo_n "checking for $ac_word... " >&6; }
14148 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14149   $as_echo_n "(cached) " >&6
14150 else
14151   if test -n "$AS_FOR_TARGET"; then
14152   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14153 else
14154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14155 for as_dir in $PATH
14156 do
14157   IFS=$as_save_IFS
14158   test -z "$as_dir" && as_dir=.
14159     for ac_exec_ext in '' $ac_executable_extensions; do
14160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14161     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14163     break 2
14164   fi
14165 done
14166   done
14167 IFS=$as_save_IFS
14168
14169 fi
14170 fi
14171 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14172 if test -n "$AS_FOR_TARGET"; then
14173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14174 $as_echo "$AS_FOR_TARGET" >&6; }
14175 else
14176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177 $as_echo "no" >&6; }
14178 fi
14179
14180
14181     fi
14182     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14183       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14184 set dummy ${ncn_progname}; ac_word=$2
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14186 $as_echo_n "checking for $ac_word... " >&6; }
14187 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14188   $as_echo_n "(cached) " >&6
14189 else
14190   if test -n "$AS_FOR_TARGET"; then
14191   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14192 else
14193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194 for as_dir in $PATH
14195 do
14196   IFS=$as_save_IFS
14197   test -z "$as_dir" && as_dir=.
14198     for ac_exec_ext in '' $ac_executable_extensions; do
14199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14200     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14202     break 2
14203   fi
14204 done
14205   done
14206 IFS=$as_save_IFS
14207
14208 fi
14209 fi
14210 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14211 if test -n "$AS_FOR_TARGET"; then
14212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14213 $as_echo "$AS_FOR_TARGET" >&6; }
14214 else
14215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216 $as_echo "no" >&6; }
14217 fi
14218
14219
14220     fi
14221     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14222   done
14223 fi
14224
14225 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14226   set dummy as
14227   if test $build = $target ; then
14228     AS_FOR_TARGET="$2"
14229   else
14230     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14231   fi
14232 else
14233   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14234 fi
14235
14236 else
14237   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14238 fi
14239
14240
14241
14242
14243 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14244   if test -n "$with_build_time_tools"; then
14245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14246 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14247     if test -x $with_build_time_tools/dlltool; then
14248       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14249       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14250       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14251 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14252     else
14253       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14254 $as_echo "no" >&6; }
14255     fi
14256   elif test $build != $host && test $have_gcc_for_target = yes; then
14257     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14258     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14259     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14260   fi
14261 fi
14262 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14263   # Extract the first word of "dlltool", so it can be a program name with args.
14264 set dummy dlltool; ac_word=$2
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14266 $as_echo_n "checking for $ac_word... " >&6; }
14267 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14268   $as_echo_n "(cached) " >&6
14269 else
14270   case $DLLTOOL_FOR_TARGET in
14271   [\\/]* | ?:[\\/]*)
14272   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14273   ;;
14274   *)
14275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14276 for as_dir in $gcc_cv_tool_dirs
14277 do
14278   IFS=$as_save_IFS
14279   test -z "$as_dir" && as_dir=.
14280     for ac_exec_ext in '' $ac_executable_extensions; do
14281   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14282     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14284     break 2
14285   fi
14286 done
14287   done
14288 IFS=$as_save_IFS
14289
14290   ;;
14291 esac
14292 fi
14293 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14294 if test -n "$DLLTOOL_FOR_TARGET"; then
14295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14296 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14297 else
14298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14299 $as_echo "no" >&6; }
14300 fi
14301
14302
14303 fi
14304 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14305
14306
14307 if test -n "$DLLTOOL_FOR_TARGET"; then
14308   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14309 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14310   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14311 fi
14312
14313 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14314   for ncn_progname in dlltool; do
14315     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14316 set dummy ${ncn_progname}; ac_word=$2
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14318 $as_echo_n "checking for $ac_word... " >&6; }
14319 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14320   $as_echo_n "(cached) " >&6
14321 else
14322   if test -n "$DLLTOOL_FOR_TARGET"; then
14323   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14324 else
14325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14326 for as_dir in $PATH
14327 do
14328   IFS=$as_save_IFS
14329   test -z "$as_dir" && as_dir=.
14330     for ac_exec_ext in '' $ac_executable_extensions; do
14331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14332     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14334     break 2
14335   fi
14336 done
14337   done
14338 IFS=$as_save_IFS
14339
14340 fi
14341 fi
14342 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14343 if test -n "$DLLTOOL_FOR_TARGET"; then
14344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14345 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14346 else
14347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348 $as_echo "no" >&6; }
14349 fi
14350
14351
14352   done
14353 fi
14354
14355 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14356   for ncn_progname in dlltool; do
14357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14358 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14359     if test -x $with_build_time_tools/${ncn_progname}; then
14360       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14361       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14362 $as_echo "yes" >&6; }
14363       break
14364     else
14365       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14366 $as_echo "no" >&6; }
14367     fi
14368   done
14369 fi
14370
14371 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14372   for ncn_progname in dlltool; do
14373     if test -n "$ncn_target_tool_prefix"; then
14374       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14375 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14377 $as_echo_n "checking for $ac_word... " >&6; }
14378 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14379   $as_echo_n "(cached) " >&6
14380 else
14381   if test -n "$DLLTOOL_FOR_TARGET"; then
14382   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14383 else
14384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14385 for as_dir in $PATH
14386 do
14387   IFS=$as_save_IFS
14388   test -z "$as_dir" && as_dir=.
14389     for ac_exec_ext in '' $ac_executable_extensions; do
14390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14391     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14393     break 2
14394   fi
14395 done
14396   done
14397 IFS=$as_save_IFS
14398
14399 fi
14400 fi
14401 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14402 if test -n "$DLLTOOL_FOR_TARGET"; then
14403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14404 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14405 else
14406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14407 $as_echo "no" >&6; }
14408 fi
14409
14410
14411     fi
14412     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14413       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14414 set dummy ${ncn_progname}; ac_word=$2
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14416 $as_echo_n "checking for $ac_word... " >&6; }
14417 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14418   $as_echo_n "(cached) " >&6
14419 else
14420   if test -n "$DLLTOOL_FOR_TARGET"; then
14421   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14422 else
14423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14424 for as_dir in $PATH
14425 do
14426   IFS=$as_save_IFS
14427   test -z "$as_dir" && as_dir=.
14428     for ac_exec_ext in '' $ac_executable_extensions; do
14429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14430     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14432     break 2
14433   fi
14434 done
14435   done
14436 IFS=$as_save_IFS
14437
14438 fi
14439 fi
14440 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14441 if test -n "$DLLTOOL_FOR_TARGET"; then
14442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14443 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14444 else
14445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14446 $as_echo "no" >&6; }
14447 fi
14448
14449
14450     fi
14451     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14452   done
14453 fi
14454
14455 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14456   set dummy dlltool
14457   if test $build = $target ; then
14458     DLLTOOL_FOR_TARGET="$2"
14459   else
14460     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14461   fi
14462 else
14463   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14464 fi
14465
14466 else
14467   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14468 fi
14469
14470
14471
14472
14473 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14474   if test -n "$with_build_time_tools"; then
14475     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14476 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14477     if test -x $with_build_time_tools/dsymutil; then
14478       DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14479       ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14480       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14481 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14482     else
14483       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14484 $as_echo "no" >&6; }
14485     fi
14486   elif test $build != $host && test $have_gcc_for_target = yes; then
14487     DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14488     test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14489     test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14490   fi
14491 fi
14492 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14493   # Extract the first word of "dsymutil", so it can be a program name with args.
14494 set dummy dsymutil; ac_word=$2
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14496 $as_echo_n "checking for $ac_word... " >&6; }
14497 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14498   $as_echo_n "(cached) " >&6
14499 else
14500   case $DSYMUTIL_FOR_TARGET in
14501   [\\/]* | ?:[\\/]*)
14502   ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14503   ;;
14504   *)
14505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14506 for as_dir in $gcc_cv_tool_dirs
14507 do
14508   IFS=$as_save_IFS
14509   test -z "$as_dir" && as_dir=.
14510     for ac_exec_ext in '' $ac_executable_extensions; do
14511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14512     ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14514     break 2
14515   fi
14516 done
14517   done
14518 IFS=$as_save_IFS
14519
14520   ;;
14521 esac
14522 fi
14523 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14524 if test -n "$DSYMUTIL_FOR_TARGET"; then
14525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14526 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14527 else
14528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14529 $as_echo "no" >&6; }
14530 fi
14531
14532
14533 fi
14534 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14535
14536
14537 if test -n "$DSYMUTIL_FOR_TARGET"; then
14538   ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14539 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14540   DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14541 fi
14542
14543 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14544   for ncn_progname in dsymutil; do
14545     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14546 set dummy ${ncn_progname}; ac_word=$2
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14548 $as_echo_n "checking for $ac_word... " >&6; }
14549 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14550   $as_echo_n "(cached) " >&6
14551 else
14552   if test -n "$DSYMUTIL_FOR_TARGET"; then
14553   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14554 else
14555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14556 for as_dir in $PATH
14557 do
14558   IFS=$as_save_IFS
14559   test -z "$as_dir" && as_dir=.
14560     for ac_exec_ext in '' $ac_executable_extensions; do
14561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14562     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14564     break 2
14565   fi
14566 done
14567   done
14568 IFS=$as_save_IFS
14569
14570 fi
14571 fi
14572 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14573 if test -n "$DSYMUTIL_FOR_TARGET"; then
14574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14575 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14576 else
14577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14578 $as_echo "no" >&6; }
14579 fi
14580
14581
14582   done
14583 fi
14584
14585 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14586   for ncn_progname in dsymutil; do
14587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14588 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14589     if test -x $with_build_time_tools/${ncn_progname}; then
14590       ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14591       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14592 $as_echo "yes" >&6; }
14593       break
14594     else
14595       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14596 $as_echo "no" >&6; }
14597     fi
14598   done
14599 fi
14600
14601 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14602   for ncn_progname in dsymutil; do
14603     if test -n "$ncn_target_tool_prefix"; then
14604       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14605 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14607 $as_echo_n "checking for $ac_word... " >&6; }
14608 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14609   $as_echo_n "(cached) " >&6
14610 else
14611   if test -n "$DSYMUTIL_FOR_TARGET"; then
14612   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14613 else
14614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14615 for as_dir in $PATH
14616 do
14617   IFS=$as_save_IFS
14618   test -z "$as_dir" && as_dir=.
14619     for ac_exec_ext in '' $ac_executable_extensions; do
14620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14621     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14623     break 2
14624   fi
14625 done
14626   done
14627 IFS=$as_save_IFS
14628
14629 fi
14630 fi
14631 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14632 if test -n "$DSYMUTIL_FOR_TARGET"; then
14633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14634 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14635 else
14636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637 $as_echo "no" >&6; }
14638 fi
14639
14640
14641     fi
14642     if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14643       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14644 set dummy ${ncn_progname}; ac_word=$2
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14646 $as_echo_n "checking for $ac_word... " >&6; }
14647 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14648   $as_echo_n "(cached) " >&6
14649 else
14650   if test -n "$DSYMUTIL_FOR_TARGET"; then
14651   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14652 else
14653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14654 for as_dir in $PATH
14655 do
14656   IFS=$as_save_IFS
14657   test -z "$as_dir" && as_dir=.
14658     for ac_exec_ext in '' $ac_executable_extensions; do
14659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14660     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14662     break 2
14663   fi
14664 done
14665   done
14666 IFS=$as_save_IFS
14667
14668 fi
14669 fi
14670 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14671 if test -n "$DSYMUTIL_FOR_TARGET"; then
14672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14673 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14674 else
14675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14676 $as_echo "no" >&6; }
14677 fi
14678
14679
14680     fi
14681     test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14682   done
14683 fi
14684
14685 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14686   set dummy dsymutil
14687   if test $build = $target ; then
14688     DSYMUTIL_FOR_TARGET="$2"
14689   else
14690     DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14691   fi
14692 else
14693   DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14694 fi
14695
14696 else
14697   DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14698 fi
14699
14700
14701
14702
14703 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14704   if test -n "$with_build_time_tools"; then
14705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14706 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14707     if test -x $with_build_time_tools/ld; then
14708       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14709       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14710       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14711 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14712     else
14713       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14714 $as_echo "no" >&6; }
14715     fi
14716   elif test $build != $host && test $have_gcc_for_target = yes; then
14717     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14718     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14719     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14720   fi
14721 fi
14722 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14723   # Extract the first word of "ld", so it can be a program name with args.
14724 set dummy ld; ac_word=$2
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14726 $as_echo_n "checking for $ac_word... " >&6; }
14727 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14728   $as_echo_n "(cached) " >&6
14729 else
14730   case $LD_FOR_TARGET in
14731   [\\/]* | ?:[\\/]*)
14732   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14733   ;;
14734   *)
14735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14736 for as_dir in $gcc_cv_tool_dirs
14737 do
14738   IFS=$as_save_IFS
14739   test -z "$as_dir" && as_dir=.
14740     for ac_exec_ext in '' $ac_executable_extensions; do
14741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14742     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14744     break 2
14745   fi
14746 done
14747   done
14748 IFS=$as_save_IFS
14749
14750   ;;
14751 esac
14752 fi
14753 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14754 if test -n "$LD_FOR_TARGET"; then
14755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14756 $as_echo "$LD_FOR_TARGET" >&6; }
14757 else
14758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14759 $as_echo "no" >&6; }
14760 fi
14761
14762
14763 fi
14764 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14765
14766
14767 if test -n "$LD_FOR_TARGET"; then
14768   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14769 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14770   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14771 fi
14772
14773 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14774   for ncn_progname in ld; do
14775     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14776 set dummy ${ncn_progname}; ac_word=$2
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14778 $as_echo_n "checking for $ac_word... " >&6; }
14779 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14780   $as_echo_n "(cached) " >&6
14781 else
14782   if test -n "$LD_FOR_TARGET"; then
14783   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14784 else
14785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14786 for as_dir in $PATH
14787 do
14788   IFS=$as_save_IFS
14789   test -z "$as_dir" && as_dir=.
14790     for ac_exec_ext in '' $ac_executable_extensions; do
14791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14792     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14794     break 2
14795   fi
14796 done
14797   done
14798 IFS=$as_save_IFS
14799
14800 fi
14801 fi
14802 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14803 if test -n "$LD_FOR_TARGET"; then
14804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14805 $as_echo "$LD_FOR_TARGET" >&6; }
14806 else
14807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14808 $as_echo "no" >&6; }
14809 fi
14810
14811
14812   done
14813 fi
14814
14815 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14816   for ncn_progname in ld; do
14817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14818 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14819     if test -x $with_build_time_tools/${ncn_progname}; then
14820       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14821       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14822 $as_echo "yes" >&6; }
14823       break
14824     else
14825       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14826 $as_echo "no" >&6; }
14827     fi
14828   done
14829 fi
14830
14831 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14832   for ncn_progname in ld; do
14833     if test -n "$ncn_target_tool_prefix"; then
14834       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14835 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14837 $as_echo_n "checking for $ac_word... " >&6; }
14838 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14839   $as_echo_n "(cached) " >&6
14840 else
14841   if test -n "$LD_FOR_TARGET"; then
14842   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14843 else
14844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14845 for as_dir in $PATH
14846 do
14847   IFS=$as_save_IFS
14848   test -z "$as_dir" && as_dir=.
14849     for ac_exec_ext in '' $ac_executable_extensions; do
14850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14851     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14853     break 2
14854   fi
14855 done
14856   done
14857 IFS=$as_save_IFS
14858
14859 fi
14860 fi
14861 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14862 if test -n "$LD_FOR_TARGET"; then
14863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14864 $as_echo "$LD_FOR_TARGET" >&6; }
14865 else
14866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14867 $as_echo "no" >&6; }
14868 fi
14869
14870
14871     fi
14872     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14873       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14874 set dummy ${ncn_progname}; ac_word=$2
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14876 $as_echo_n "checking for $ac_word... " >&6; }
14877 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14878   $as_echo_n "(cached) " >&6
14879 else
14880   if test -n "$LD_FOR_TARGET"; then
14881   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14882 else
14883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14884 for as_dir in $PATH
14885 do
14886   IFS=$as_save_IFS
14887   test -z "$as_dir" && as_dir=.
14888     for ac_exec_ext in '' $ac_executable_extensions; do
14889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14890     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14892     break 2
14893   fi
14894 done
14895   done
14896 IFS=$as_save_IFS
14897
14898 fi
14899 fi
14900 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14901 if test -n "$LD_FOR_TARGET"; then
14902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14903 $as_echo "$LD_FOR_TARGET" >&6; }
14904 else
14905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14906 $as_echo "no" >&6; }
14907 fi
14908
14909
14910     fi
14911     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14912   done
14913 fi
14914
14915 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14916   set dummy ld
14917   if test $build = $target ; then
14918     LD_FOR_TARGET="$2"
14919   else
14920     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14921   fi
14922 else
14923   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14924 fi
14925
14926 else
14927   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14928 fi
14929
14930
14931
14932
14933 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14934   if test -n "$with_build_time_tools"; then
14935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14936 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14937     if test -x $with_build_time_tools/lipo; then
14938       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14939       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14940       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14941 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14942     else
14943       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14944 $as_echo "no" >&6; }
14945     fi
14946   elif test $build != $host && test $have_gcc_for_target = yes; then
14947     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14948     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14949     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14950   fi
14951 fi
14952 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14953   # Extract the first word of "lipo", so it can be a program name with args.
14954 set dummy lipo; ac_word=$2
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14956 $as_echo_n "checking for $ac_word... " >&6; }
14957 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14958   $as_echo_n "(cached) " >&6
14959 else
14960   case $LIPO_FOR_TARGET in
14961   [\\/]* | ?:[\\/]*)
14962   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14963   ;;
14964   *)
14965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14966 for as_dir in $gcc_cv_tool_dirs
14967 do
14968   IFS=$as_save_IFS
14969   test -z "$as_dir" && as_dir=.
14970     for ac_exec_ext in '' $ac_executable_extensions; do
14971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14972     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14974     break 2
14975   fi
14976 done
14977   done
14978 IFS=$as_save_IFS
14979
14980   ;;
14981 esac
14982 fi
14983 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14984 if test -n "$LIPO_FOR_TARGET"; then
14985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14986 $as_echo "$LIPO_FOR_TARGET" >&6; }
14987 else
14988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14989 $as_echo "no" >&6; }
14990 fi
14991
14992
14993 fi
14994 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14995
14996
14997 if test -n "$LIPO_FOR_TARGET"; then
14998   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14999 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15000   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15001 fi
15002
15003 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15004   for ncn_progname in lipo; do
15005     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15006 set dummy ${ncn_progname}; ac_word=$2
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15008 $as_echo_n "checking for $ac_word... " >&6; }
15009 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15010   $as_echo_n "(cached) " >&6
15011 else
15012   if test -n "$LIPO_FOR_TARGET"; then
15013   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15014 else
15015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15016 for as_dir in $PATH
15017 do
15018   IFS=$as_save_IFS
15019   test -z "$as_dir" && as_dir=.
15020     for ac_exec_ext in '' $ac_executable_extensions; do
15021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15022     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15024     break 2
15025   fi
15026 done
15027   done
15028 IFS=$as_save_IFS
15029
15030 fi
15031 fi
15032 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15033 if test -n "$LIPO_FOR_TARGET"; then
15034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15035 $as_echo "$LIPO_FOR_TARGET" >&6; }
15036 else
15037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15038 $as_echo "no" >&6; }
15039 fi
15040
15041
15042   done
15043 fi
15044
15045 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15046   for ncn_progname in lipo; do
15047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15048 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15049     if test -x $with_build_time_tools/${ncn_progname}; then
15050       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15051       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15052 $as_echo "yes" >&6; }
15053       break
15054     else
15055       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15056 $as_echo "no" >&6; }
15057     fi
15058   done
15059 fi
15060
15061 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15062   for ncn_progname in lipo; do
15063     if test -n "$ncn_target_tool_prefix"; then
15064       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15065 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15067 $as_echo_n "checking for $ac_word... " >&6; }
15068 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15069   $as_echo_n "(cached) " >&6
15070 else
15071   if test -n "$LIPO_FOR_TARGET"; then
15072   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15073 else
15074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15075 for as_dir in $PATH
15076 do
15077   IFS=$as_save_IFS
15078   test -z "$as_dir" && as_dir=.
15079     for ac_exec_ext in '' $ac_executable_extensions; do
15080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15081     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15083     break 2
15084   fi
15085 done
15086   done
15087 IFS=$as_save_IFS
15088
15089 fi
15090 fi
15091 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15092 if test -n "$LIPO_FOR_TARGET"; then
15093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15094 $as_echo "$LIPO_FOR_TARGET" >&6; }
15095 else
15096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15097 $as_echo "no" >&6; }
15098 fi
15099
15100
15101     fi
15102     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15103       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15104 set dummy ${ncn_progname}; ac_word=$2
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15106 $as_echo_n "checking for $ac_word... " >&6; }
15107 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15108   $as_echo_n "(cached) " >&6
15109 else
15110   if test -n "$LIPO_FOR_TARGET"; then
15111   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15112 else
15113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15114 for as_dir in $PATH
15115 do
15116   IFS=$as_save_IFS
15117   test -z "$as_dir" && as_dir=.
15118     for ac_exec_ext in '' $ac_executable_extensions; do
15119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15120     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15122     break 2
15123   fi
15124 done
15125   done
15126 IFS=$as_save_IFS
15127
15128 fi
15129 fi
15130 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15131 if test -n "$LIPO_FOR_TARGET"; then
15132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15133 $as_echo "$LIPO_FOR_TARGET" >&6; }
15134 else
15135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15136 $as_echo "no" >&6; }
15137 fi
15138
15139
15140     fi
15141     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15142   done
15143 fi
15144
15145 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15146   set dummy lipo
15147   if test $build = $target ; then
15148     LIPO_FOR_TARGET="$2"
15149   else
15150     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15151   fi
15152 else
15153   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15154 fi
15155
15156 else
15157   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15158 fi
15159
15160
15161
15162
15163 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15164   if test -n "$with_build_time_tools"; then
15165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15166 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15167     if test -x $with_build_time_tools/nm; then
15168       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15169       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15170       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15171 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15172     else
15173       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15174 $as_echo "no" >&6; }
15175     fi
15176   elif test $build != $host && test $have_gcc_for_target = yes; then
15177     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15178     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15179     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15180   fi
15181 fi
15182 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15183   # Extract the first word of "nm", so it can be a program name with args.
15184 set dummy nm; ac_word=$2
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15186 $as_echo_n "checking for $ac_word... " >&6; }
15187 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15188   $as_echo_n "(cached) " >&6
15189 else
15190   case $NM_FOR_TARGET in
15191   [\\/]* | ?:[\\/]*)
15192   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15193   ;;
15194   *)
15195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15196 for as_dir in $gcc_cv_tool_dirs
15197 do
15198   IFS=$as_save_IFS
15199   test -z "$as_dir" && as_dir=.
15200     for ac_exec_ext in '' $ac_executable_extensions; do
15201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15202     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15204     break 2
15205   fi
15206 done
15207   done
15208 IFS=$as_save_IFS
15209
15210   ;;
15211 esac
15212 fi
15213 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15214 if test -n "$NM_FOR_TARGET"; then
15215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15216 $as_echo "$NM_FOR_TARGET" >&6; }
15217 else
15218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15219 $as_echo "no" >&6; }
15220 fi
15221
15222
15223 fi
15224 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15225
15226
15227 if test -n "$NM_FOR_TARGET"; then
15228   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15229 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15230   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15231 fi
15232
15233 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15234   for ncn_progname in nm; do
15235     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15236 set dummy ${ncn_progname}; ac_word=$2
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15238 $as_echo_n "checking for $ac_word... " >&6; }
15239 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15240   $as_echo_n "(cached) " >&6
15241 else
15242   if test -n "$NM_FOR_TARGET"; then
15243   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15244 else
15245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15246 for as_dir in $PATH
15247 do
15248   IFS=$as_save_IFS
15249   test -z "$as_dir" && as_dir=.
15250     for ac_exec_ext in '' $ac_executable_extensions; do
15251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15252     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15254     break 2
15255   fi
15256 done
15257   done
15258 IFS=$as_save_IFS
15259
15260 fi
15261 fi
15262 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15263 if test -n "$NM_FOR_TARGET"; then
15264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15265 $as_echo "$NM_FOR_TARGET" >&6; }
15266 else
15267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15268 $as_echo "no" >&6; }
15269 fi
15270
15271
15272   done
15273 fi
15274
15275 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15276   for ncn_progname in nm; do
15277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15278 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15279     if test -x $with_build_time_tools/${ncn_progname}; then
15280       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15281       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15282 $as_echo "yes" >&6; }
15283       break
15284     else
15285       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15286 $as_echo "no" >&6; }
15287     fi
15288   done
15289 fi
15290
15291 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15292   for ncn_progname in nm; do
15293     if test -n "$ncn_target_tool_prefix"; then
15294       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15295 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15297 $as_echo_n "checking for $ac_word... " >&6; }
15298 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15299   $as_echo_n "(cached) " >&6
15300 else
15301   if test -n "$NM_FOR_TARGET"; then
15302   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15303 else
15304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15305 for as_dir in $PATH
15306 do
15307   IFS=$as_save_IFS
15308   test -z "$as_dir" && as_dir=.
15309     for ac_exec_ext in '' $ac_executable_extensions; do
15310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15311     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15313     break 2
15314   fi
15315 done
15316   done
15317 IFS=$as_save_IFS
15318
15319 fi
15320 fi
15321 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15322 if test -n "$NM_FOR_TARGET"; then
15323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15324 $as_echo "$NM_FOR_TARGET" >&6; }
15325 else
15326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15327 $as_echo "no" >&6; }
15328 fi
15329
15330
15331     fi
15332     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15333       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15334 set dummy ${ncn_progname}; ac_word=$2
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15336 $as_echo_n "checking for $ac_word... " >&6; }
15337 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15338   $as_echo_n "(cached) " >&6
15339 else
15340   if test -n "$NM_FOR_TARGET"; then
15341   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15342 else
15343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15344 for as_dir in $PATH
15345 do
15346   IFS=$as_save_IFS
15347   test -z "$as_dir" && as_dir=.
15348     for ac_exec_ext in '' $ac_executable_extensions; do
15349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15350     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15352     break 2
15353   fi
15354 done
15355   done
15356 IFS=$as_save_IFS
15357
15358 fi
15359 fi
15360 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15361 if test -n "$NM_FOR_TARGET"; then
15362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15363 $as_echo "$NM_FOR_TARGET" >&6; }
15364 else
15365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15366 $as_echo "no" >&6; }
15367 fi
15368
15369
15370     fi
15371     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15372   done
15373 fi
15374
15375 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15376   set dummy nm
15377   if test $build = $target ; then
15378     NM_FOR_TARGET="$2"
15379   else
15380     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15381   fi
15382 else
15383   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15384 fi
15385
15386 else
15387   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15388 fi
15389
15390
15391
15392
15393 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15394   if test -n "$with_build_time_tools"; then
15395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15396 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15397     if test -x $with_build_time_tools/objcopy; then
15398       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15399       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15400       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15401 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15402     else
15403       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15404 $as_echo "no" >&6; }
15405     fi
15406   elif test $build != $host && test $have_gcc_for_target = yes; then
15407     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15408     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15409     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15410   fi
15411 fi
15412 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15413   # Extract the first word of "objcopy", so it can be a program name with args.
15414 set dummy objcopy; ac_word=$2
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15416 $as_echo_n "checking for $ac_word... " >&6; }
15417 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15418   $as_echo_n "(cached) " >&6
15419 else
15420   case $OBJCOPY_FOR_TARGET in
15421   [\\/]* | ?:[\\/]*)
15422   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15423   ;;
15424   *)
15425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15426 for as_dir in $gcc_cv_tool_dirs
15427 do
15428   IFS=$as_save_IFS
15429   test -z "$as_dir" && as_dir=.
15430     for ac_exec_ext in '' $ac_executable_extensions; do
15431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15432     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15434     break 2
15435   fi
15436 done
15437   done
15438 IFS=$as_save_IFS
15439
15440   ;;
15441 esac
15442 fi
15443 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15444 if test -n "$OBJCOPY_FOR_TARGET"; then
15445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15446 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15447 else
15448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15449 $as_echo "no" >&6; }
15450 fi
15451
15452
15453 fi
15454 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15455
15456
15457 if test -n "$OBJCOPY_FOR_TARGET"; then
15458   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15459 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15460   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15461 fi
15462
15463 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15464   for ncn_progname in objcopy; do
15465     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15466 set dummy ${ncn_progname}; ac_word=$2
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15468 $as_echo_n "checking for $ac_word... " >&6; }
15469 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15470   $as_echo_n "(cached) " >&6
15471 else
15472   if test -n "$OBJCOPY_FOR_TARGET"; then
15473   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15474 else
15475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15476 for as_dir in $PATH
15477 do
15478   IFS=$as_save_IFS
15479   test -z "$as_dir" && as_dir=.
15480     for ac_exec_ext in '' $ac_executable_extensions; do
15481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15482     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15484     break 2
15485   fi
15486 done
15487   done
15488 IFS=$as_save_IFS
15489
15490 fi
15491 fi
15492 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15493 if test -n "$OBJCOPY_FOR_TARGET"; then
15494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15495 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15496 else
15497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15498 $as_echo "no" >&6; }
15499 fi
15500
15501
15502   done
15503 fi
15504
15505 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15506   for ncn_progname in objcopy; do
15507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15508 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15509     if test -x $with_build_time_tools/${ncn_progname}; then
15510       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15511       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15512 $as_echo "yes" >&6; }
15513       break
15514     else
15515       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15516 $as_echo "no" >&6; }
15517     fi
15518   done
15519 fi
15520
15521 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15522   for ncn_progname in objcopy; do
15523     if test -n "$ncn_target_tool_prefix"; then
15524       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15525 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15527 $as_echo_n "checking for $ac_word... " >&6; }
15528 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15529   $as_echo_n "(cached) " >&6
15530 else
15531   if test -n "$OBJCOPY_FOR_TARGET"; then
15532   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15533 else
15534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15535 for as_dir in $PATH
15536 do
15537   IFS=$as_save_IFS
15538   test -z "$as_dir" && as_dir=.
15539     for ac_exec_ext in '' $ac_executable_extensions; do
15540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15541     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15543     break 2
15544   fi
15545 done
15546   done
15547 IFS=$as_save_IFS
15548
15549 fi
15550 fi
15551 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15552 if test -n "$OBJCOPY_FOR_TARGET"; then
15553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15554 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15555 else
15556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15557 $as_echo "no" >&6; }
15558 fi
15559
15560
15561     fi
15562     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15563       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15564 set dummy ${ncn_progname}; ac_word=$2
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15566 $as_echo_n "checking for $ac_word... " >&6; }
15567 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15568   $as_echo_n "(cached) " >&6
15569 else
15570   if test -n "$OBJCOPY_FOR_TARGET"; then
15571   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15572 else
15573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15574 for as_dir in $PATH
15575 do
15576   IFS=$as_save_IFS
15577   test -z "$as_dir" && as_dir=.
15578     for ac_exec_ext in '' $ac_executable_extensions; do
15579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15580     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15582     break 2
15583   fi
15584 done
15585   done
15586 IFS=$as_save_IFS
15587
15588 fi
15589 fi
15590 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15591 if test -n "$OBJCOPY_FOR_TARGET"; then
15592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15593 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15594 else
15595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15596 $as_echo "no" >&6; }
15597 fi
15598
15599
15600     fi
15601     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15602   done
15603 fi
15604
15605 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15606   set dummy objcopy
15607   if test $build = $target ; then
15608     OBJCOPY_FOR_TARGET="$2"
15609   else
15610     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15611   fi
15612 else
15613   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15614 fi
15615
15616 else
15617   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15618 fi
15619
15620
15621
15622
15623 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15624   if test -n "$with_build_time_tools"; then
15625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15626 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15627     if test -x $with_build_time_tools/objdump; then
15628       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15629       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15630       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15631 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15632     else
15633       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15634 $as_echo "no" >&6; }
15635     fi
15636   elif test $build != $host && test $have_gcc_for_target = yes; then
15637     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15638     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15639     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15640   fi
15641 fi
15642 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15643   # Extract the first word of "objdump", so it can be a program name with args.
15644 set dummy objdump; ac_word=$2
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15646 $as_echo_n "checking for $ac_word... " >&6; }
15647 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15648   $as_echo_n "(cached) " >&6
15649 else
15650   case $OBJDUMP_FOR_TARGET in
15651   [\\/]* | ?:[\\/]*)
15652   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15653   ;;
15654   *)
15655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15656 for as_dir in $gcc_cv_tool_dirs
15657 do
15658   IFS=$as_save_IFS
15659   test -z "$as_dir" && as_dir=.
15660     for ac_exec_ext in '' $ac_executable_extensions; do
15661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15662     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15664     break 2
15665   fi
15666 done
15667   done
15668 IFS=$as_save_IFS
15669
15670   ;;
15671 esac
15672 fi
15673 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15674 if test -n "$OBJDUMP_FOR_TARGET"; then
15675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15676 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15677 else
15678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15679 $as_echo "no" >&6; }
15680 fi
15681
15682
15683 fi
15684 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15685
15686
15687 if test -n "$OBJDUMP_FOR_TARGET"; then
15688   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15689 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15690   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15691 fi
15692
15693 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15694   for ncn_progname in objdump; do
15695     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15696 set dummy ${ncn_progname}; ac_word=$2
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15698 $as_echo_n "checking for $ac_word... " >&6; }
15699 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15700   $as_echo_n "(cached) " >&6
15701 else
15702   if test -n "$OBJDUMP_FOR_TARGET"; then
15703   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15704 else
15705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15706 for as_dir in $PATH
15707 do
15708   IFS=$as_save_IFS
15709   test -z "$as_dir" && as_dir=.
15710     for ac_exec_ext in '' $ac_executable_extensions; do
15711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15712     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15714     break 2
15715   fi
15716 done
15717   done
15718 IFS=$as_save_IFS
15719
15720 fi
15721 fi
15722 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15723 if test -n "$OBJDUMP_FOR_TARGET"; then
15724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15725 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15726 else
15727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15728 $as_echo "no" >&6; }
15729 fi
15730
15731
15732   done
15733 fi
15734
15735 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15736   for ncn_progname in objdump; do
15737     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15738 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15739     if test -x $with_build_time_tools/${ncn_progname}; then
15740       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15741       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15742 $as_echo "yes" >&6; }
15743       break
15744     else
15745       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15746 $as_echo "no" >&6; }
15747     fi
15748   done
15749 fi
15750
15751 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15752   for ncn_progname in objdump; do
15753     if test -n "$ncn_target_tool_prefix"; then
15754       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15755 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15757 $as_echo_n "checking for $ac_word... " >&6; }
15758 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15759   $as_echo_n "(cached) " >&6
15760 else
15761   if test -n "$OBJDUMP_FOR_TARGET"; then
15762   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15763 else
15764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15765 for as_dir in $PATH
15766 do
15767   IFS=$as_save_IFS
15768   test -z "$as_dir" && as_dir=.
15769     for ac_exec_ext in '' $ac_executable_extensions; do
15770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15771     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15773     break 2
15774   fi
15775 done
15776   done
15777 IFS=$as_save_IFS
15778
15779 fi
15780 fi
15781 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15782 if test -n "$OBJDUMP_FOR_TARGET"; then
15783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15784 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15785 else
15786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15787 $as_echo "no" >&6; }
15788 fi
15789
15790
15791     fi
15792     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15793       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15794 set dummy ${ncn_progname}; ac_word=$2
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15796 $as_echo_n "checking for $ac_word... " >&6; }
15797 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15798   $as_echo_n "(cached) " >&6
15799 else
15800   if test -n "$OBJDUMP_FOR_TARGET"; then
15801   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15802 else
15803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15804 for as_dir in $PATH
15805 do
15806   IFS=$as_save_IFS
15807   test -z "$as_dir" && as_dir=.
15808     for ac_exec_ext in '' $ac_executable_extensions; do
15809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15810     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15812     break 2
15813   fi
15814 done
15815   done
15816 IFS=$as_save_IFS
15817
15818 fi
15819 fi
15820 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15821 if test -n "$OBJDUMP_FOR_TARGET"; then
15822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15823 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15824 else
15825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15826 $as_echo "no" >&6; }
15827 fi
15828
15829
15830     fi
15831     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15832   done
15833 fi
15834
15835 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15836   set dummy objdump
15837   if test $build = $target ; then
15838     OBJDUMP_FOR_TARGET="$2"
15839   else
15840     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15841   fi
15842 else
15843   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15844 fi
15845
15846 else
15847   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15848 fi
15849
15850
15851
15852
15853 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15854   if test -n "$with_build_time_tools"; then
15855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15856 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15857     if test -x $with_build_time_tools/otool; then
15858       OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15859       ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15860       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15861 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15862     else
15863       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15864 $as_echo "no" >&6; }
15865     fi
15866   elif test $build != $host && test $have_gcc_for_target = yes; then
15867     OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15868     test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15869     test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15870   fi
15871 fi
15872 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15873   # Extract the first word of "otool", so it can be a program name with args.
15874 set dummy otool; ac_word=$2
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15876 $as_echo_n "checking for $ac_word... " >&6; }
15877 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15878   $as_echo_n "(cached) " >&6
15879 else
15880   case $OTOOL_FOR_TARGET in
15881   [\\/]* | ?:[\\/]*)
15882   ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15883   ;;
15884   *)
15885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15886 for as_dir in $gcc_cv_tool_dirs
15887 do
15888   IFS=$as_save_IFS
15889   test -z "$as_dir" && as_dir=.
15890     for ac_exec_ext in '' $ac_executable_extensions; do
15891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15892     ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15894     break 2
15895   fi
15896 done
15897   done
15898 IFS=$as_save_IFS
15899
15900   ;;
15901 esac
15902 fi
15903 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15904 if test -n "$OTOOL_FOR_TARGET"; then
15905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15906 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15907 else
15908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15909 $as_echo "no" >&6; }
15910 fi
15911
15912
15913 fi
15914 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15915
15916
15917 if test -n "$OTOOL_FOR_TARGET"; then
15918   ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15919 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15920   OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15921 fi
15922
15923 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15924   for ncn_progname in otool; do
15925     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15926 set dummy ${ncn_progname}; ac_word=$2
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15928 $as_echo_n "checking for $ac_word... " >&6; }
15929 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15930   $as_echo_n "(cached) " >&6
15931 else
15932   if test -n "$OTOOL_FOR_TARGET"; then
15933   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15934 else
15935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15936 for as_dir in $PATH
15937 do
15938   IFS=$as_save_IFS
15939   test -z "$as_dir" && as_dir=.
15940     for ac_exec_ext in '' $ac_executable_extensions; do
15941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15942     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15944     break 2
15945   fi
15946 done
15947   done
15948 IFS=$as_save_IFS
15949
15950 fi
15951 fi
15952 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15953 if test -n "$OTOOL_FOR_TARGET"; then
15954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15955 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15956 else
15957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15958 $as_echo "no" >&6; }
15959 fi
15960
15961
15962   done
15963 fi
15964
15965 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15966   for ncn_progname in otool; do
15967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15968 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15969     if test -x $with_build_time_tools/${ncn_progname}; then
15970       ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15971       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15972 $as_echo "yes" >&6; }
15973       break
15974     else
15975       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15976 $as_echo "no" >&6; }
15977     fi
15978   done
15979 fi
15980
15981 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15982   for ncn_progname in otool; do
15983     if test -n "$ncn_target_tool_prefix"; then
15984       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15985 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15987 $as_echo_n "checking for $ac_word... " >&6; }
15988 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15989   $as_echo_n "(cached) " >&6
15990 else
15991   if test -n "$OTOOL_FOR_TARGET"; then
15992   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15993 else
15994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15995 for as_dir in $PATH
15996 do
15997   IFS=$as_save_IFS
15998   test -z "$as_dir" && as_dir=.
15999     for ac_exec_ext in '' $ac_executable_extensions; do
16000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16001     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16003     break 2
16004   fi
16005 done
16006   done
16007 IFS=$as_save_IFS
16008
16009 fi
16010 fi
16011 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16012 if test -n "$OTOOL_FOR_TARGET"; then
16013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16014 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16015 else
16016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16017 $as_echo "no" >&6; }
16018 fi
16019
16020
16021     fi
16022     if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16023       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16024 set dummy ${ncn_progname}; ac_word=$2
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16026 $as_echo_n "checking for $ac_word... " >&6; }
16027 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16028   $as_echo_n "(cached) " >&6
16029 else
16030   if test -n "$OTOOL_FOR_TARGET"; then
16031   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16032 else
16033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16034 for as_dir in $PATH
16035 do
16036   IFS=$as_save_IFS
16037   test -z "$as_dir" && as_dir=.
16038     for ac_exec_ext in '' $ac_executable_extensions; do
16039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16040     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16042     break 2
16043   fi
16044 done
16045   done
16046 IFS=$as_save_IFS
16047
16048 fi
16049 fi
16050 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16051 if test -n "$OTOOL_FOR_TARGET"; then
16052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16053 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16054 else
16055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16056 $as_echo "no" >&6; }
16057 fi
16058
16059
16060     fi
16061     test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16062   done
16063 fi
16064
16065 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16066   set dummy otool
16067   if test $build = $target ; then
16068     OTOOL_FOR_TARGET="$2"
16069   else
16070     OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16071   fi
16072 else
16073   OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16074 fi
16075
16076 else
16077   OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16078 fi
16079
16080
16081
16082
16083 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16084   if test -n "$with_build_time_tools"; then
16085     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16086 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16087     if test -x $with_build_time_tools/ranlib; then
16088       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16089       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16090       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16091 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16092     else
16093       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16094 $as_echo "no" >&6; }
16095     fi
16096   elif test $build != $host && test $have_gcc_for_target = yes; then
16097     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16098     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16099     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16100   fi
16101 fi
16102 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16103   # Extract the first word of "ranlib", so it can be a program name with args.
16104 set dummy ranlib; ac_word=$2
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16106 $as_echo_n "checking for $ac_word... " >&6; }
16107 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16108   $as_echo_n "(cached) " >&6
16109 else
16110   case $RANLIB_FOR_TARGET in
16111   [\\/]* | ?:[\\/]*)
16112   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16113   ;;
16114   *)
16115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16116 for as_dir in $gcc_cv_tool_dirs
16117 do
16118   IFS=$as_save_IFS
16119   test -z "$as_dir" && as_dir=.
16120     for ac_exec_ext in '' $ac_executable_extensions; do
16121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16122     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16124     break 2
16125   fi
16126 done
16127   done
16128 IFS=$as_save_IFS
16129
16130   ;;
16131 esac
16132 fi
16133 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16134 if test -n "$RANLIB_FOR_TARGET"; then
16135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16136 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16137 else
16138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16139 $as_echo "no" >&6; }
16140 fi
16141
16142
16143 fi
16144 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16145
16146
16147 if test -n "$RANLIB_FOR_TARGET"; then
16148   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16149 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16150   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16151 fi
16152
16153 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16154   for ncn_progname in ranlib; do
16155     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16156 set dummy ${ncn_progname}; ac_word=$2
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16158 $as_echo_n "checking for $ac_word... " >&6; }
16159 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16160   $as_echo_n "(cached) " >&6
16161 else
16162   if test -n "$RANLIB_FOR_TARGET"; then
16163   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16164 else
16165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16166 for as_dir in $PATH
16167 do
16168   IFS=$as_save_IFS
16169   test -z "$as_dir" && as_dir=.
16170     for ac_exec_ext in '' $ac_executable_extensions; do
16171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16172     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16174     break 2
16175   fi
16176 done
16177   done
16178 IFS=$as_save_IFS
16179
16180 fi
16181 fi
16182 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16183 if test -n "$RANLIB_FOR_TARGET"; then
16184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16185 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16186 else
16187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16188 $as_echo "no" >&6; }
16189 fi
16190
16191
16192   done
16193 fi
16194
16195 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16196   for ncn_progname in ranlib; do
16197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16198 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16199     if test -x $with_build_time_tools/${ncn_progname}; then
16200       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16201       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16202 $as_echo "yes" >&6; }
16203       break
16204     else
16205       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16206 $as_echo "no" >&6; }
16207     fi
16208   done
16209 fi
16210
16211 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16212   for ncn_progname in ranlib; do
16213     if test -n "$ncn_target_tool_prefix"; then
16214       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16215 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16217 $as_echo_n "checking for $ac_word... " >&6; }
16218 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16219   $as_echo_n "(cached) " >&6
16220 else
16221   if test -n "$RANLIB_FOR_TARGET"; then
16222   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16223 else
16224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16225 for as_dir in $PATH
16226 do
16227   IFS=$as_save_IFS
16228   test -z "$as_dir" && as_dir=.
16229     for ac_exec_ext in '' $ac_executable_extensions; do
16230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16231     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16233     break 2
16234   fi
16235 done
16236   done
16237 IFS=$as_save_IFS
16238
16239 fi
16240 fi
16241 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16242 if test -n "$RANLIB_FOR_TARGET"; then
16243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16244 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16245 else
16246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16247 $as_echo "no" >&6; }
16248 fi
16249
16250
16251     fi
16252     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16253       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16254 set dummy ${ncn_progname}; ac_word=$2
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16256 $as_echo_n "checking for $ac_word... " >&6; }
16257 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16258   $as_echo_n "(cached) " >&6
16259 else
16260   if test -n "$RANLIB_FOR_TARGET"; then
16261   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16262 else
16263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16264 for as_dir in $PATH
16265 do
16266   IFS=$as_save_IFS
16267   test -z "$as_dir" && as_dir=.
16268     for ac_exec_ext in '' $ac_executable_extensions; do
16269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16270     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16272     break 2
16273   fi
16274 done
16275   done
16276 IFS=$as_save_IFS
16277
16278 fi
16279 fi
16280 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16281 if test -n "$RANLIB_FOR_TARGET"; then
16282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16283 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16284 else
16285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16286 $as_echo "no" >&6; }
16287 fi
16288
16289
16290     fi
16291     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16292   done
16293 fi
16294
16295 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16296   set dummy ranlib
16297   if test $build = $target ; then
16298     RANLIB_FOR_TARGET="$2"
16299   else
16300     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16301   fi
16302 else
16303   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16304 fi
16305
16306 else
16307   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16308 fi
16309
16310
16311
16312
16313 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16314   if test -n "$with_build_time_tools"; then
16315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16316 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16317     if test -x $with_build_time_tools/readelf; then
16318       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16319       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16320       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16321 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16322     else
16323       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16324 $as_echo "no" >&6; }
16325     fi
16326   elif test $build != $host && test $have_gcc_for_target = yes; then
16327     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16328     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16329     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16330   fi
16331 fi
16332 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16333   # Extract the first word of "readelf", so it can be a program name with args.
16334 set dummy readelf; ac_word=$2
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16336 $as_echo_n "checking for $ac_word... " >&6; }
16337 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16338   $as_echo_n "(cached) " >&6
16339 else
16340   case $READELF_FOR_TARGET in
16341   [\\/]* | ?:[\\/]*)
16342   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16343   ;;
16344   *)
16345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16346 for as_dir in $gcc_cv_tool_dirs
16347 do
16348   IFS=$as_save_IFS
16349   test -z "$as_dir" && as_dir=.
16350     for ac_exec_ext in '' $ac_executable_extensions; do
16351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16352     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16354     break 2
16355   fi
16356 done
16357   done
16358 IFS=$as_save_IFS
16359
16360   ;;
16361 esac
16362 fi
16363 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16364 if test -n "$READELF_FOR_TARGET"; then
16365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16366 $as_echo "$READELF_FOR_TARGET" >&6; }
16367 else
16368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16369 $as_echo "no" >&6; }
16370 fi
16371
16372
16373 fi
16374 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16375
16376
16377 if test -n "$READELF_FOR_TARGET"; then
16378   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16379 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16380   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16381 fi
16382
16383 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16384   for ncn_progname in readelf; do
16385     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16386 set dummy ${ncn_progname}; ac_word=$2
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16388 $as_echo_n "checking for $ac_word... " >&6; }
16389 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16390   $as_echo_n "(cached) " >&6
16391 else
16392   if test -n "$READELF_FOR_TARGET"; then
16393   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16394 else
16395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16396 for as_dir in $PATH
16397 do
16398   IFS=$as_save_IFS
16399   test -z "$as_dir" && as_dir=.
16400     for ac_exec_ext in '' $ac_executable_extensions; do
16401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16402     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16404     break 2
16405   fi
16406 done
16407   done
16408 IFS=$as_save_IFS
16409
16410 fi
16411 fi
16412 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16413 if test -n "$READELF_FOR_TARGET"; then
16414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16415 $as_echo "$READELF_FOR_TARGET" >&6; }
16416 else
16417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16418 $as_echo "no" >&6; }
16419 fi
16420
16421
16422   done
16423 fi
16424
16425 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16426   for ncn_progname in readelf; do
16427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16428 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16429     if test -x $with_build_time_tools/${ncn_progname}; then
16430       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16431       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16432 $as_echo "yes" >&6; }
16433       break
16434     else
16435       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16436 $as_echo "no" >&6; }
16437     fi
16438   done
16439 fi
16440
16441 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16442   for ncn_progname in readelf; do
16443     if test -n "$ncn_target_tool_prefix"; then
16444       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16445 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16447 $as_echo_n "checking for $ac_word... " >&6; }
16448 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16449   $as_echo_n "(cached) " >&6
16450 else
16451   if test -n "$READELF_FOR_TARGET"; then
16452   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16453 else
16454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16455 for as_dir in $PATH
16456 do
16457   IFS=$as_save_IFS
16458   test -z "$as_dir" && as_dir=.
16459     for ac_exec_ext in '' $ac_executable_extensions; do
16460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16461     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16463     break 2
16464   fi
16465 done
16466   done
16467 IFS=$as_save_IFS
16468
16469 fi
16470 fi
16471 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16472 if test -n "$READELF_FOR_TARGET"; then
16473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16474 $as_echo "$READELF_FOR_TARGET" >&6; }
16475 else
16476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16477 $as_echo "no" >&6; }
16478 fi
16479
16480
16481     fi
16482     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16483       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16484 set dummy ${ncn_progname}; ac_word=$2
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16486 $as_echo_n "checking for $ac_word... " >&6; }
16487 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16488   $as_echo_n "(cached) " >&6
16489 else
16490   if test -n "$READELF_FOR_TARGET"; then
16491   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16492 else
16493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16494 for as_dir in $PATH
16495 do
16496   IFS=$as_save_IFS
16497   test -z "$as_dir" && as_dir=.
16498     for ac_exec_ext in '' $ac_executable_extensions; do
16499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16500     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16502     break 2
16503   fi
16504 done
16505   done
16506 IFS=$as_save_IFS
16507
16508 fi
16509 fi
16510 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16511 if test -n "$READELF_FOR_TARGET"; then
16512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16513 $as_echo "$READELF_FOR_TARGET" >&6; }
16514 else
16515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16516 $as_echo "no" >&6; }
16517 fi
16518
16519
16520     fi
16521     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16522   done
16523 fi
16524
16525 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16526   set dummy readelf
16527   if test $build = $target ; then
16528     READELF_FOR_TARGET="$2"
16529   else
16530     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16531   fi
16532 else
16533   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16534 fi
16535
16536 else
16537   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16538 fi
16539
16540
16541
16542
16543 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16544   if test -n "$with_build_time_tools"; then
16545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16546 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16547     if test -x $with_build_time_tools/strip; then
16548       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16549       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16550       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16551 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16552     else
16553       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16554 $as_echo "no" >&6; }
16555     fi
16556   elif test $build != $host && test $have_gcc_for_target = yes; then
16557     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16558     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16559     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16560   fi
16561 fi
16562 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16563   # Extract the first word of "strip", so it can be a program name with args.
16564 set dummy strip; ac_word=$2
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16566 $as_echo_n "checking for $ac_word... " >&6; }
16567 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16568   $as_echo_n "(cached) " >&6
16569 else
16570   case $STRIP_FOR_TARGET in
16571   [\\/]* | ?:[\\/]*)
16572   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16573   ;;
16574   *)
16575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16576 for as_dir in $gcc_cv_tool_dirs
16577 do
16578   IFS=$as_save_IFS
16579   test -z "$as_dir" && as_dir=.
16580     for ac_exec_ext in '' $ac_executable_extensions; do
16581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16582     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16584     break 2
16585   fi
16586 done
16587   done
16588 IFS=$as_save_IFS
16589
16590   ;;
16591 esac
16592 fi
16593 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16594 if test -n "$STRIP_FOR_TARGET"; then
16595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16596 $as_echo "$STRIP_FOR_TARGET" >&6; }
16597 else
16598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16599 $as_echo "no" >&6; }
16600 fi
16601
16602
16603 fi
16604 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16605
16606
16607 if test -n "$STRIP_FOR_TARGET"; then
16608   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16609 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16610   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16611 fi
16612
16613 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16614   for ncn_progname in strip; do
16615     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16616 set dummy ${ncn_progname}; ac_word=$2
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16618 $as_echo_n "checking for $ac_word... " >&6; }
16619 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16620   $as_echo_n "(cached) " >&6
16621 else
16622   if test -n "$STRIP_FOR_TARGET"; then
16623   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16624 else
16625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16626 for as_dir in $PATH
16627 do
16628   IFS=$as_save_IFS
16629   test -z "$as_dir" && as_dir=.
16630     for ac_exec_ext in '' $ac_executable_extensions; do
16631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16632     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16634     break 2
16635   fi
16636 done
16637   done
16638 IFS=$as_save_IFS
16639
16640 fi
16641 fi
16642 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16643 if test -n "$STRIP_FOR_TARGET"; then
16644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16645 $as_echo "$STRIP_FOR_TARGET" >&6; }
16646 else
16647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16648 $as_echo "no" >&6; }
16649 fi
16650
16651
16652   done
16653 fi
16654
16655 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16656   for ncn_progname in strip; do
16657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16658 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16659     if test -x $with_build_time_tools/${ncn_progname}; then
16660       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16661       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16662 $as_echo "yes" >&6; }
16663       break
16664     else
16665       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16666 $as_echo "no" >&6; }
16667     fi
16668   done
16669 fi
16670
16671 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16672   for ncn_progname in strip; do
16673     if test -n "$ncn_target_tool_prefix"; then
16674       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16675 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16677 $as_echo_n "checking for $ac_word... " >&6; }
16678 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16679   $as_echo_n "(cached) " >&6
16680 else
16681   if test -n "$STRIP_FOR_TARGET"; then
16682   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16683 else
16684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16685 for as_dir in $PATH
16686 do
16687   IFS=$as_save_IFS
16688   test -z "$as_dir" && as_dir=.
16689     for ac_exec_ext in '' $ac_executable_extensions; do
16690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16691     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16693     break 2
16694   fi
16695 done
16696   done
16697 IFS=$as_save_IFS
16698
16699 fi
16700 fi
16701 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16702 if test -n "$STRIP_FOR_TARGET"; then
16703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16704 $as_echo "$STRIP_FOR_TARGET" >&6; }
16705 else
16706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16707 $as_echo "no" >&6; }
16708 fi
16709
16710
16711     fi
16712     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16713       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16714 set dummy ${ncn_progname}; ac_word=$2
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16716 $as_echo_n "checking for $ac_word... " >&6; }
16717 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16718   $as_echo_n "(cached) " >&6
16719 else
16720   if test -n "$STRIP_FOR_TARGET"; then
16721   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16722 else
16723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16724 for as_dir in $PATH
16725 do
16726   IFS=$as_save_IFS
16727   test -z "$as_dir" && as_dir=.
16728     for ac_exec_ext in '' $ac_executable_extensions; do
16729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16730     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16732     break 2
16733   fi
16734 done
16735   done
16736 IFS=$as_save_IFS
16737
16738 fi
16739 fi
16740 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16741 if test -n "$STRIP_FOR_TARGET"; then
16742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16743 $as_echo "$STRIP_FOR_TARGET" >&6; }
16744 else
16745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16746 $as_echo "no" >&6; }
16747 fi
16748
16749
16750     fi
16751     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16752   done
16753 fi
16754
16755 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16756   set dummy strip
16757   if test $build = $target ; then
16758     STRIP_FOR_TARGET="$2"
16759   else
16760     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16761   fi
16762 else
16763   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16764 fi
16765
16766 else
16767   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16768 fi
16769
16770
16771
16772
16773 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16774   if test -n "$with_build_time_tools"; then
16775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16776 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16777     if test -x $with_build_time_tools/windres; then
16778       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16779       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16780       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16781 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16782     else
16783       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16784 $as_echo "no" >&6; }
16785     fi
16786   elif test $build != $host && test $have_gcc_for_target = yes; then
16787     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16788     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16789     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16790   fi
16791 fi
16792 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16793   # Extract the first word of "windres", so it can be a program name with args.
16794 set dummy windres; ac_word=$2
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16796 $as_echo_n "checking for $ac_word... " >&6; }
16797 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16798   $as_echo_n "(cached) " >&6
16799 else
16800   case $WINDRES_FOR_TARGET in
16801   [\\/]* | ?:[\\/]*)
16802   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16803   ;;
16804   *)
16805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16806 for as_dir in $gcc_cv_tool_dirs
16807 do
16808   IFS=$as_save_IFS
16809   test -z "$as_dir" && as_dir=.
16810     for ac_exec_ext in '' $ac_executable_extensions; do
16811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16812     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16814     break 2
16815   fi
16816 done
16817   done
16818 IFS=$as_save_IFS
16819
16820   ;;
16821 esac
16822 fi
16823 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16824 if test -n "$WINDRES_FOR_TARGET"; then
16825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16826 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16827 else
16828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16829 $as_echo "no" >&6; }
16830 fi
16831
16832
16833 fi
16834 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16835
16836
16837 if test -n "$WINDRES_FOR_TARGET"; then
16838   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16839 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16840   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16841 fi
16842
16843 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16844   for ncn_progname in windres; do
16845     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16846 set dummy ${ncn_progname}; ac_word=$2
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16848 $as_echo_n "checking for $ac_word... " >&6; }
16849 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16850   $as_echo_n "(cached) " >&6
16851 else
16852   if test -n "$WINDRES_FOR_TARGET"; then
16853   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16854 else
16855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16856 for as_dir in $PATH
16857 do
16858   IFS=$as_save_IFS
16859   test -z "$as_dir" && as_dir=.
16860     for ac_exec_ext in '' $ac_executable_extensions; do
16861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16862     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16864     break 2
16865   fi
16866 done
16867   done
16868 IFS=$as_save_IFS
16869
16870 fi
16871 fi
16872 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16873 if test -n "$WINDRES_FOR_TARGET"; then
16874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16875 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16876 else
16877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16878 $as_echo "no" >&6; }
16879 fi
16880
16881
16882   done
16883 fi
16884
16885 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16886   for ncn_progname in windres; do
16887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16888 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16889     if test -x $with_build_time_tools/${ncn_progname}; then
16890       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16891       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16892 $as_echo "yes" >&6; }
16893       break
16894     else
16895       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16896 $as_echo "no" >&6; }
16897     fi
16898   done
16899 fi
16900
16901 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16902   for ncn_progname in windres; do
16903     if test -n "$ncn_target_tool_prefix"; then
16904       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16905 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16907 $as_echo_n "checking for $ac_word... " >&6; }
16908 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16909   $as_echo_n "(cached) " >&6
16910 else
16911   if test -n "$WINDRES_FOR_TARGET"; then
16912   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16913 else
16914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16915 for as_dir in $PATH
16916 do
16917   IFS=$as_save_IFS
16918   test -z "$as_dir" && as_dir=.
16919     for ac_exec_ext in '' $ac_executable_extensions; do
16920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16921     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16923     break 2
16924   fi
16925 done
16926   done
16927 IFS=$as_save_IFS
16928
16929 fi
16930 fi
16931 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16932 if test -n "$WINDRES_FOR_TARGET"; then
16933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16934 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16935 else
16936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16937 $as_echo "no" >&6; }
16938 fi
16939
16940
16941     fi
16942     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16943       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16944 set dummy ${ncn_progname}; ac_word=$2
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16946 $as_echo_n "checking for $ac_word... " >&6; }
16947 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16948   $as_echo_n "(cached) " >&6
16949 else
16950   if test -n "$WINDRES_FOR_TARGET"; then
16951   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16952 else
16953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16954 for as_dir in $PATH
16955 do
16956   IFS=$as_save_IFS
16957   test -z "$as_dir" && as_dir=.
16958     for ac_exec_ext in '' $ac_executable_extensions; do
16959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16960     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16962     break 2
16963   fi
16964 done
16965   done
16966 IFS=$as_save_IFS
16967
16968 fi
16969 fi
16970 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16971 if test -n "$WINDRES_FOR_TARGET"; then
16972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16973 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16974 else
16975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16976 $as_echo "no" >&6; }
16977 fi
16978
16979
16980     fi
16981     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16982   done
16983 fi
16984
16985 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16986   set dummy windres
16987   if test $build = $target ; then
16988     WINDRES_FOR_TARGET="$2"
16989   else
16990     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
16991   fi
16992 else
16993   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
16994 fi
16995
16996 else
16997   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16998 fi
16999
17000
17001
17002
17003 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17004   if test -n "$with_build_time_tools"; then
17005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17006 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17007     if test -x $with_build_time_tools/windmc; then
17008       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17009       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17010       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17011 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17012     else
17013       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17014 $as_echo "no" >&6; }
17015     fi
17016   elif test $build != $host && test $have_gcc_for_target = yes; then
17017     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17018     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17019     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17020   fi
17021 fi
17022 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17023   # Extract the first word of "windmc", so it can be a program name with args.
17024 set dummy windmc; ac_word=$2
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17026 $as_echo_n "checking for $ac_word... " >&6; }
17027 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17028   $as_echo_n "(cached) " >&6
17029 else
17030   case $WINDMC_FOR_TARGET in
17031   [\\/]* | ?:[\\/]*)
17032   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17033   ;;
17034   *)
17035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17036 for as_dir in $gcc_cv_tool_dirs
17037 do
17038   IFS=$as_save_IFS
17039   test -z "$as_dir" && as_dir=.
17040     for ac_exec_ext in '' $ac_executable_extensions; do
17041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17042     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17044     break 2
17045   fi
17046 done
17047   done
17048 IFS=$as_save_IFS
17049
17050   ;;
17051 esac
17052 fi
17053 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17054 if test -n "$WINDMC_FOR_TARGET"; then
17055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17056 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17057 else
17058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17059 $as_echo "no" >&6; }
17060 fi
17061
17062
17063 fi
17064 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17065
17066
17067 if test -n "$WINDMC_FOR_TARGET"; then
17068   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17069 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17070   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17071 fi
17072
17073 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17074   for ncn_progname in windmc; do
17075     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17076 set dummy ${ncn_progname}; ac_word=$2
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17078 $as_echo_n "checking for $ac_word... " >&6; }
17079 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17080   $as_echo_n "(cached) " >&6
17081 else
17082   if test -n "$WINDMC_FOR_TARGET"; then
17083   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17084 else
17085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17086 for as_dir in $PATH
17087 do
17088   IFS=$as_save_IFS
17089   test -z "$as_dir" && as_dir=.
17090     for ac_exec_ext in '' $ac_executable_extensions; do
17091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17092     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17094     break 2
17095   fi
17096 done
17097   done
17098 IFS=$as_save_IFS
17099
17100 fi
17101 fi
17102 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17103 if test -n "$WINDMC_FOR_TARGET"; then
17104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17105 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17106 else
17107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17108 $as_echo "no" >&6; }
17109 fi
17110
17111
17112   done
17113 fi
17114
17115 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17116   for ncn_progname in windmc; do
17117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17118 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17119     if test -x $with_build_time_tools/${ncn_progname}; then
17120       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17121       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17122 $as_echo "yes" >&6; }
17123       break
17124     else
17125       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17126 $as_echo "no" >&6; }
17127     fi
17128   done
17129 fi
17130
17131 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17132   for ncn_progname in windmc; do
17133     if test -n "$ncn_target_tool_prefix"; then
17134       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17135 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17137 $as_echo_n "checking for $ac_word... " >&6; }
17138 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17139   $as_echo_n "(cached) " >&6
17140 else
17141   if test -n "$WINDMC_FOR_TARGET"; then
17142   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17143 else
17144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17145 for as_dir in $PATH
17146 do
17147   IFS=$as_save_IFS
17148   test -z "$as_dir" && as_dir=.
17149     for ac_exec_ext in '' $ac_executable_extensions; do
17150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17151     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17153     break 2
17154   fi
17155 done
17156   done
17157 IFS=$as_save_IFS
17158
17159 fi
17160 fi
17161 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17162 if test -n "$WINDMC_FOR_TARGET"; then
17163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17164 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17165 else
17166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17167 $as_echo "no" >&6; }
17168 fi
17169
17170
17171     fi
17172     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17173       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17174 set dummy ${ncn_progname}; ac_word=$2
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17176 $as_echo_n "checking for $ac_word... " >&6; }
17177 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17178   $as_echo_n "(cached) " >&6
17179 else
17180   if test -n "$WINDMC_FOR_TARGET"; then
17181   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17182 else
17183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17184 for as_dir in $PATH
17185 do
17186   IFS=$as_save_IFS
17187   test -z "$as_dir" && as_dir=.
17188     for ac_exec_ext in '' $ac_executable_extensions; do
17189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17190     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17192     break 2
17193   fi
17194 done
17195   done
17196 IFS=$as_save_IFS
17197
17198 fi
17199 fi
17200 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17201 if test -n "$WINDMC_FOR_TARGET"; then
17202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17203 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17204 else
17205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17206 $as_echo "no" >&6; }
17207 fi
17208
17209
17210     fi
17211     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17212   done
17213 fi
17214
17215 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17216   set dummy windmc
17217   if test $build = $target ; then
17218     WINDMC_FOR_TARGET="$2"
17219   else
17220     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17221   fi
17222 else
17223   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17224 fi
17225
17226 else
17227   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17228 fi
17229
17230
17231 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17232
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17234 $as_echo_n "checking where to find the target ar... " >&6; }
17235 if test "x${build}" != "x${host}" ; then
17236   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17237     # We already found the complete path
17238     ac_dir=`dirname $AR_FOR_TARGET`
17239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17240 $as_echo "pre-installed in $ac_dir" >&6; }
17241   else
17242     # Canadian cross, just use what we found
17243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17244 $as_echo "pre-installed" >&6; }
17245   fi
17246 else
17247   ok=yes
17248   case " ${configdirs} " in
17249     *" binutils "*) ;;
17250     *) ok=no ;;
17251   esac
17252
17253   if test $ok = yes; then
17254     # An in-tree tool is available and we can use it
17255     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17257 $as_echo "just compiled" >&6; }
17258   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17259     # We already found the complete path
17260     ac_dir=`dirname $AR_FOR_TARGET`
17261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17262 $as_echo "pre-installed in $ac_dir" >&6; }
17263   elif test "x$target" = "x$host"; then
17264     # We can use an host tool
17265     AR_FOR_TARGET='$(AR)'
17266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17267 $as_echo "host tool" >&6; }
17268   else
17269     # We need a cross tool
17270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17271 $as_echo "pre-installed" >&6; }
17272   fi
17273 fi
17274
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17276 $as_echo_n "checking where to find the target as... " >&6; }
17277 if test "x${build}" != "x${host}" ; then
17278   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17279     # We already found the complete path
17280     ac_dir=`dirname $AS_FOR_TARGET`
17281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17282 $as_echo "pre-installed in $ac_dir" >&6; }
17283   else
17284     # Canadian cross, just use what we found
17285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17286 $as_echo "pre-installed" >&6; }
17287   fi
17288 else
17289   ok=yes
17290   case " ${configdirs} " in
17291     *" gas "*) ;;
17292     *) ok=no ;;
17293   esac
17294
17295   if test $ok = yes; then
17296     # An in-tree tool is available and we can use it
17297     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17298     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17299 $as_echo "just compiled" >&6; }
17300   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17301     # We already found the complete path
17302     ac_dir=`dirname $AS_FOR_TARGET`
17303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17304 $as_echo "pre-installed in $ac_dir" >&6; }
17305   elif test "x$target" = "x$host"; then
17306     # We can use an host tool
17307     AS_FOR_TARGET='$(AS)'
17308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17309 $as_echo "host tool" >&6; }
17310   else
17311     # We need a cross tool
17312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17313 $as_echo "pre-installed" >&6; }
17314   fi
17315 fi
17316
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17318 $as_echo_n "checking where to find the target cc... " >&6; }
17319 if test "x${build}" != "x${host}" ; then
17320   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17321     # We already found the complete path
17322     ac_dir=`dirname $CC_FOR_TARGET`
17323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17324 $as_echo "pre-installed in $ac_dir" >&6; }
17325   else
17326     # Canadian cross, just use what we found
17327     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17328 $as_echo "pre-installed" >&6; }
17329   fi
17330 else
17331   ok=yes
17332   case " ${configdirs} " in
17333     *" gcc "*) ;;
17334     *) ok=no ;;
17335   esac
17336
17337   if test $ok = yes; then
17338     # An in-tree tool is available and we can use it
17339     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17340     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17341 $as_echo "just compiled" >&6; }
17342   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17343     # We already found the complete path
17344     ac_dir=`dirname $CC_FOR_TARGET`
17345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17346 $as_echo "pre-installed in $ac_dir" >&6; }
17347   elif test "x$target" = "x$host"; then
17348     # We can use an host tool
17349     CC_FOR_TARGET='$(CC)'
17350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17351 $as_echo "host tool" >&6; }
17352   else
17353     # We need a cross tool
17354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17355 $as_echo "pre-installed" >&6; }
17356   fi
17357 fi
17358
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17360 $as_echo_n "checking where to find the target c++... " >&6; }
17361 if test "x${build}" != "x${host}" ; then
17362   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17363     # We already found the complete path
17364     ac_dir=`dirname $CXX_FOR_TARGET`
17365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17366 $as_echo "pre-installed in $ac_dir" >&6; }
17367   else
17368     # Canadian cross, just use what we found
17369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17370 $as_echo "pre-installed" >&6; }
17371   fi
17372 else
17373   ok=yes
17374   case " ${configdirs} " in
17375     *" gcc "*) ;;
17376     *) ok=no ;;
17377   esac
17378   case ,${enable_languages}, in
17379     *,c++,*) ;;
17380     *) ok=no ;;
17381   esac
17382   if test $ok = yes; then
17383     # An in-tree tool is available and we can use it
17384     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'
17385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17386 $as_echo "just compiled" >&6; }
17387   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17388     # We already found the complete path
17389     ac_dir=`dirname $CXX_FOR_TARGET`
17390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17391 $as_echo "pre-installed in $ac_dir" >&6; }
17392   elif test "x$target" = "x$host"; then
17393     # We can use an host tool
17394     CXX_FOR_TARGET='$(CXX)'
17395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17396 $as_echo "host tool" >&6; }
17397   else
17398     # We need a cross tool
17399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17400 $as_echo "pre-installed" >&6; }
17401   fi
17402 fi
17403
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17405 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17406 if test "x${build}" != "x${host}" ; then
17407   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17408     # We already found the complete path
17409     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17411 $as_echo "pre-installed in $ac_dir" >&6; }
17412   else
17413     # Canadian cross, just use what we found
17414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17415 $as_echo "pre-installed" >&6; }
17416   fi
17417 else
17418   ok=yes
17419   case " ${configdirs} " in
17420     *" gcc "*) ;;
17421     *) ok=no ;;
17422   esac
17423   case ,${enable_languages}, in
17424     *,c++,*) ;;
17425     *) ok=no ;;
17426   esac
17427   if test $ok = yes; then
17428     # An in-tree tool is available and we can use it
17429     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'
17430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17431 $as_echo "just compiled" >&6; }
17432   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17433     # We already found the complete path
17434     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17435     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17436 $as_echo "pre-installed in $ac_dir" >&6; }
17437   elif test "x$target" = "x$host"; then
17438     # We can use an host tool
17439     RAW_CXX_FOR_TARGET='$(CXX)'
17440     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17441 $as_echo "host tool" >&6; }
17442   else
17443     # We need a cross tool
17444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17445 $as_echo "pre-installed" >&6; }
17446   fi
17447 fi
17448
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17450 $as_echo_n "checking where to find the target dlltool... " >&6; }
17451 if test "x${build}" != "x${host}" ; then
17452   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17453     # We already found the complete path
17454     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17455     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17456 $as_echo "pre-installed in $ac_dir" >&6; }
17457   else
17458     # Canadian cross, just use what we found
17459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17460 $as_echo "pre-installed" >&6; }
17461   fi
17462 else
17463   ok=yes
17464   case " ${configdirs} " in
17465     *" binutils "*) ;;
17466     *) ok=no ;;
17467   esac
17468
17469   if test $ok = yes; then
17470     # An in-tree tool is available and we can use it
17471     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17473 $as_echo "just compiled" >&6; }
17474   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17475     # We already found the complete path
17476     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17478 $as_echo "pre-installed in $ac_dir" >&6; }
17479   elif test "x$target" = "x$host"; then
17480     # We can use an host tool
17481     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17483 $as_echo "host tool" >&6; }
17484   else
17485     # We need a cross tool
17486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17487 $as_echo "pre-installed" >&6; }
17488   fi
17489 fi
17490
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17492 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17493 if test "x${build}" != "x${host}" ; then
17494   if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17495     # We already found the complete path
17496     ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17498 $as_echo "pre-installed in $ac_dir" >&6; }
17499   else
17500     # Canadian cross, just use what we found
17501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17502 $as_echo "pre-installed" >&6; }
17503   fi
17504 else
17505   if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17506     # We already found the complete path
17507     ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17509 $as_echo "pre-installed in $ac_dir" >&6; }
17510   elif test "x$target" = "x$host"; then
17511     # We can use an host tool
17512     DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17514 $as_echo "host tool" >&6; }
17515   else
17516     # We need a cross tool
17517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17518 $as_echo "pre-installed" >&6; }
17519   fi
17520 fi
17521
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17523 $as_echo_n "checking where to find the target gcc... " >&6; }
17524 if test "x${build}" != "x${host}" ; then
17525   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17526     # We already found the complete path
17527     ac_dir=`dirname $GCC_FOR_TARGET`
17528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17529 $as_echo "pre-installed in $ac_dir" >&6; }
17530   else
17531     # Canadian cross, just use what we found
17532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17533 $as_echo "pre-installed" >&6; }
17534   fi
17535 else
17536   ok=yes
17537   case " ${configdirs} " in
17538     *" gcc "*) ;;
17539     *) ok=no ;;
17540   esac
17541
17542   if test $ok = yes; then
17543     # An in-tree tool is available and we can use it
17544     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17545     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17546 $as_echo "just compiled" >&6; }
17547   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17548     # We already found the complete path
17549     ac_dir=`dirname $GCC_FOR_TARGET`
17550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17551 $as_echo "pre-installed in $ac_dir" >&6; }
17552   elif test "x$target" = "x$host"; then
17553     # We can use an host tool
17554     GCC_FOR_TARGET='$()'
17555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17556 $as_echo "host tool" >&6; }
17557   else
17558     # We need a cross tool
17559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17560 $as_echo "pre-installed" >&6; }
17561   fi
17562 fi
17563
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17565 $as_echo_n "checking where to find the target gfortran... " >&6; }
17566 if test "x${build}" != "x${host}" ; then
17567   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17568     # We already found the complete path
17569     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17571 $as_echo "pre-installed in $ac_dir" >&6; }
17572   else
17573     # Canadian cross, just use what we found
17574     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17575 $as_echo "pre-installed" >&6; }
17576   fi
17577 else
17578   ok=yes
17579   case " ${configdirs} " in
17580     *" gcc "*) ;;
17581     *) ok=no ;;
17582   esac
17583   case ,${enable_languages}, in
17584     *,fortran,*) ;;
17585     *) ok=no ;;
17586   esac
17587   if test $ok = yes; then
17588     # An in-tree tool is available and we can use it
17589     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17591 $as_echo "just compiled" >&6; }
17592   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17593     # We already found the complete path
17594     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17596 $as_echo "pre-installed in $ac_dir" >&6; }
17597   elif test "x$target" = "x$host"; then
17598     # We can use an host tool
17599     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17600     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17601 $as_echo "host tool" >&6; }
17602   else
17603     # We need a cross tool
17604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17605 $as_echo "pre-installed" >&6; }
17606   fi
17607 fi
17608
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17610 $as_echo_n "checking where to find the target gccgo... " >&6; }
17611 if test "x${build}" != "x${host}" ; then
17612   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17613     # We already found the complete path
17614     ac_dir=`dirname $GOC_FOR_TARGET`
17615     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17616 $as_echo "pre-installed in $ac_dir" >&6; }
17617   else
17618     # Canadian cross, just use what we found
17619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17620 $as_echo "pre-installed" >&6; }
17621   fi
17622 else
17623   ok=yes
17624   case " ${configdirs} " in
17625     *" gcc "*) ;;
17626     *) ok=no ;;
17627   esac
17628   case ,${enable_languages}, in
17629     *,go,*) ;;
17630     *) ok=no ;;
17631   esac
17632   if test $ok = yes; then
17633     # An in-tree tool is available and we can use it
17634     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17636 $as_echo "just compiled" >&6; }
17637   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17638     # We already found the complete path
17639     ac_dir=`dirname $GOC_FOR_TARGET`
17640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17641 $as_echo "pre-installed in $ac_dir" >&6; }
17642   elif test "x$target" = "x$host"; then
17643     # We can use an host tool
17644     GOC_FOR_TARGET='$(GOC)'
17645     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17646 $as_echo "host tool" >&6; }
17647   else
17648     # We need a cross tool
17649     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17650 $as_echo "pre-installed" >&6; }
17651   fi
17652 fi
17653
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17655 $as_echo_n "checking where to find the target gdc... " >&6; }
17656 if test "x${build}" != "x${host}" ; then
17657   if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17658     # We already found the complete path
17659     ac_dir=`dirname $GDC_FOR_TARGET`
17660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17661 $as_echo "pre-installed in $ac_dir" >&6; }
17662   else
17663     # Canadian cross, just use what we found
17664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17665 $as_echo "pre-installed" >&6; }
17666   fi
17667 else
17668   ok=yes
17669   case " ${configdirs} " in
17670     *" gcc "*) ;;
17671     *) ok=no ;;
17672   esac
17673   case ,${enable_languages}, in
17674     *,d,*) ;;
17675     *) ok=no ;;
17676   esac
17677   if test $ok = yes; then
17678     # An in-tree tool is available and we can use it
17679     GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17681 $as_echo "just compiled" >&6; }
17682   elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17683     # We already found the complete path
17684     ac_dir=`dirname $GDC_FOR_TARGET`
17685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17686 $as_echo "pre-installed in $ac_dir" >&6; }
17687   elif test "x$target" = "x$host"; then
17688     # We can use an host tool
17689     GDC_FOR_TARGET='$(GDC)'
17690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17691 $as_echo "host tool" >&6; }
17692   else
17693     # We need a cross tool
17694     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17695 $as_echo "pre-installed" >&6; }
17696   fi
17697 fi
17698
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17700 $as_echo_n "checking where to find the target ld... " >&6; }
17701 if test "x${build}" != "x${host}" ; then
17702   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17703     # We already found the complete path
17704     ac_dir=`dirname $LD_FOR_TARGET`
17705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17706 $as_echo "pre-installed in $ac_dir" >&6; }
17707   else
17708     # Canadian cross, just use what we found
17709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17710 $as_echo "pre-installed" >&6; }
17711   fi
17712 else
17713   ok=yes
17714   case " ${configdirs} " in
17715     *" ld "*) ;;
17716     *) ok=no ;;
17717   esac
17718
17719   if test $ok = yes; then
17720     # An in-tree tool is available and we can use it
17721     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17723 $as_echo "just compiled" >&6; }
17724   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17725     # We already found the complete path
17726     ac_dir=`dirname $LD_FOR_TARGET`
17727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17728 $as_echo "pre-installed in $ac_dir" >&6; }
17729   elif test "x$target" = "x$host"; then
17730     # We can use an host tool
17731     LD_FOR_TARGET='$(LD)'
17732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17733 $as_echo "host tool" >&6; }
17734   else
17735     # We need a cross tool
17736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17737 $as_echo "pre-installed" >&6; }
17738   fi
17739 fi
17740
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17742 $as_echo_n "checking where to find the target lipo... " >&6; }
17743 if test "x${build}" != "x${host}" ; then
17744   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17745     # We already found the complete path
17746     ac_dir=`dirname $LIPO_FOR_TARGET`
17747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17748 $as_echo "pre-installed in $ac_dir" >&6; }
17749   else
17750     # Canadian cross, just use what we found
17751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17752 $as_echo "pre-installed" >&6; }
17753   fi
17754 else
17755   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17756     # We already found the complete path
17757     ac_dir=`dirname $LIPO_FOR_TARGET`
17758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17759 $as_echo "pre-installed in $ac_dir" >&6; }
17760   elif test "x$target" = "x$host"; then
17761     # We can use an host tool
17762     LIPO_FOR_TARGET='$(LIPO)'
17763     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17764 $as_echo "host tool" >&6; }
17765   else
17766     # We need a cross tool
17767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17768 $as_echo "pre-installed" >&6; }
17769   fi
17770 fi
17771
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17773 $as_echo_n "checking where to find the target nm... " >&6; }
17774 if test "x${build}" != "x${host}" ; then
17775   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17776     # We already found the complete path
17777     ac_dir=`dirname $NM_FOR_TARGET`
17778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17779 $as_echo "pre-installed in $ac_dir" >&6; }
17780   else
17781     # Canadian cross, just use what we found
17782     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17783 $as_echo "pre-installed" >&6; }
17784   fi
17785 else
17786   ok=yes
17787   case " ${configdirs} " in
17788     *" binutils "*) ;;
17789     *) ok=no ;;
17790   esac
17791
17792   if test $ok = yes; then
17793     # An in-tree tool is available and we can use it
17794     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17796 $as_echo "just compiled" >&6; }
17797   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17798     # We already found the complete path
17799     ac_dir=`dirname $NM_FOR_TARGET`
17800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17801 $as_echo "pre-installed in $ac_dir" >&6; }
17802   elif test "x$target" = "x$host"; then
17803     # We can use an host tool
17804     NM_FOR_TARGET='$(NM)'
17805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17806 $as_echo "host tool" >&6; }
17807   else
17808     # We need a cross tool
17809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17810 $as_echo "pre-installed" >&6; }
17811   fi
17812 fi
17813
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17815 $as_echo_n "checking where to find the target objcopy... " >&6; }
17816 if test "x${build}" != "x${host}" ; then
17817   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17818     # We already found the complete path
17819     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17821 $as_echo "pre-installed in $ac_dir" >&6; }
17822   else
17823     # Canadian cross, just use what we found
17824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17825 $as_echo "pre-installed" >&6; }
17826   fi
17827 else
17828   ok=yes
17829   case " ${configdirs} " in
17830     *" binutils "*) ;;
17831     *) ok=no ;;
17832   esac
17833
17834   if test $ok = yes; then
17835     # An in-tree tool is available and we can use it
17836     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17838 $as_echo "just compiled" >&6; }
17839   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17840     # We already found the complete path
17841     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17843 $as_echo "pre-installed in $ac_dir" >&6; }
17844   elif test "x$target" = "x$host"; then
17845     # We can use an host tool
17846     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17847     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17848 $as_echo "host tool" >&6; }
17849   else
17850     # We need a cross tool
17851     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17852 $as_echo "pre-installed" >&6; }
17853   fi
17854 fi
17855
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17857 $as_echo_n "checking where to find the target objdump... " >&6; }
17858 if test "x${build}" != "x${host}" ; then
17859   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17860     # We already found the complete path
17861     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17862     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17863 $as_echo "pre-installed in $ac_dir" >&6; }
17864   else
17865     # Canadian cross, just use what we found
17866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17867 $as_echo "pre-installed" >&6; }
17868   fi
17869 else
17870   ok=yes
17871   case " ${configdirs} " in
17872     *" binutils "*) ;;
17873     *) ok=no ;;
17874   esac
17875
17876   if test $ok = yes; then
17877     # An in-tree tool is available and we can use it
17878     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17880 $as_echo "just compiled" >&6; }
17881   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17882     # We already found the complete path
17883     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17884     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17885 $as_echo "pre-installed in $ac_dir" >&6; }
17886   elif test "x$target" = "x$host"; then
17887     # We can use an host tool
17888     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17890 $as_echo "host tool" >&6; }
17891   else
17892     # We need a cross tool
17893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17894 $as_echo "pre-installed" >&6; }
17895   fi
17896 fi
17897
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17899 $as_echo_n "checking where to find the target otool... " >&6; }
17900 if test "x${build}" != "x${host}" ; then
17901   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17902     # We already found the complete path
17903     ac_dir=`dirname $OTOOL_FOR_TARGET`
17904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17905 $as_echo "pre-installed in $ac_dir" >&6; }
17906   else
17907     # Canadian cross, just use what we found
17908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17909 $as_echo "pre-installed" >&6; }
17910   fi
17911 else
17912   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17913     # We already found the complete path
17914     ac_dir=`dirname $OTOOL_FOR_TARGET`
17915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17916 $as_echo "pre-installed in $ac_dir" >&6; }
17917   elif test "x$target" = "x$host"; then
17918     # We can use an host tool
17919     OTOOL_FOR_TARGET='$(OTOOL)'
17920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17921 $as_echo "host tool" >&6; }
17922   else
17923     # We need a cross tool
17924     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17925 $as_echo "pre-installed" >&6; }
17926   fi
17927 fi
17928
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17930 $as_echo_n "checking where to find the target ranlib... " >&6; }
17931 if test "x${build}" != "x${host}" ; then
17932   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17933     # We already found the complete path
17934     ac_dir=`dirname $RANLIB_FOR_TARGET`
17935     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17936 $as_echo "pre-installed in $ac_dir" >&6; }
17937   else
17938     # Canadian cross, just use what we found
17939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17940 $as_echo "pre-installed" >&6; }
17941   fi
17942 else
17943   ok=yes
17944   case " ${configdirs} " in
17945     *" binutils "*) ;;
17946     *) ok=no ;;
17947   esac
17948
17949   if test $ok = yes; then
17950     # An in-tree tool is available and we can use it
17951     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17953 $as_echo "just compiled" >&6; }
17954   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17955     # We already found the complete path
17956     ac_dir=`dirname $RANLIB_FOR_TARGET`
17957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17958 $as_echo "pre-installed in $ac_dir" >&6; }
17959   elif test "x$target" = "x$host"; then
17960     # We can use an host tool
17961     RANLIB_FOR_TARGET='$(RANLIB)'
17962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17963 $as_echo "host tool" >&6; }
17964   else
17965     # We need a cross tool
17966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17967 $as_echo "pre-installed" >&6; }
17968   fi
17969 fi
17970
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17972 $as_echo_n "checking where to find the target readelf... " >&6; }
17973 if test "x${build}" != "x${host}" ; then
17974   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17975     # We already found the complete path
17976     ac_dir=`dirname $READELF_FOR_TARGET`
17977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17978 $as_echo "pre-installed in $ac_dir" >&6; }
17979   else
17980     # Canadian cross, just use what we found
17981     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17982 $as_echo "pre-installed" >&6; }
17983   fi
17984 else
17985   ok=yes
17986   case " ${configdirs} " in
17987     *" binutils "*) ;;
17988     *) ok=no ;;
17989   esac
17990
17991   if test $ok = yes; then
17992     # An in-tree tool is available and we can use it
17993     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17995 $as_echo "just compiled" >&6; }
17996   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17997     # We already found the complete path
17998     ac_dir=`dirname $READELF_FOR_TARGET`
17999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18000 $as_echo "pre-installed in $ac_dir" >&6; }
18001   elif test "x$target" = "x$host"; then
18002     # We can use an host tool
18003     READELF_FOR_TARGET='$(READELF)'
18004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18005 $as_echo "host tool" >&6; }
18006   else
18007     # We need a cross tool
18008     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18009 $as_echo "pre-installed" >&6; }
18010   fi
18011 fi
18012
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18014 $as_echo_n "checking where to find the target strip... " >&6; }
18015 if test "x${build}" != "x${host}" ; then
18016   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18017     # We already found the complete path
18018     ac_dir=`dirname $STRIP_FOR_TARGET`
18019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18020 $as_echo "pre-installed in $ac_dir" >&6; }
18021   else
18022     # Canadian cross, just use what we found
18023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18024 $as_echo "pre-installed" >&6; }
18025   fi
18026 else
18027   ok=yes
18028   case " ${configdirs} " in
18029     *" binutils "*) ;;
18030     *) ok=no ;;
18031   esac
18032
18033   if test $ok = yes; then
18034     # An in-tree tool is available and we can use it
18035     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18037 $as_echo "just compiled" >&6; }
18038   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18039     # We already found the complete path
18040     ac_dir=`dirname $STRIP_FOR_TARGET`
18041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18042 $as_echo "pre-installed in $ac_dir" >&6; }
18043   elif test "x$target" = "x$host"; then
18044     # We can use an host tool
18045     STRIP_FOR_TARGET='$(STRIP)'
18046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18047 $as_echo "host tool" >&6; }
18048   else
18049     # We need a cross tool
18050     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18051 $as_echo "pre-installed" >&6; }
18052   fi
18053 fi
18054
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18056 $as_echo_n "checking where to find the target windres... " >&6; }
18057 if test "x${build}" != "x${host}" ; then
18058   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18059     # We already found the complete path
18060     ac_dir=`dirname $WINDRES_FOR_TARGET`
18061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18062 $as_echo "pre-installed in $ac_dir" >&6; }
18063   else
18064     # Canadian cross, just use what we found
18065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18066 $as_echo "pre-installed" >&6; }
18067   fi
18068 else
18069   ok=yes
18070   case " ${configdirs} " in
18071     *" binutils "*) ;;
18072     *) ok=no ;;
18073   esac
18074
18075   if test $ok = yes; then
18076     # An in-tree tool is available and we can use it
18077     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18079 $as_echo "just compiled" >&6; }
18080   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18081     # We already found the complete path
18082     ac_dir=`dirname $WINDRES_FOR_TARGET`
18083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18084 $as_echo "pre-installed in $ac_dir" >&6; }
18085   elif test "x$target" = "x$host"; then
18086     # We can use an host tool
18087     WINDRES_FOR_TARGET='$(WINDRES)'
18088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18089 $as_echo "host tool" >&6; }
18090   else
18091     # We need a cross tool
18092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18093 $as_echo "pre-installed" >&6; }
18094   fi
18095 fi
18096
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18098 $as_echo_n "checking where to find the target windmc... " >&6; }
18099 if test "x${build}" != "x${host}" ; then
18100   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18101     # We already found the complete path
18102     ac_dir=`dirname $WINDMC_FOR_TARGET`
18103     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18104 $as_echo "pre-installed in $ac_dir" >&6; }
18105   else
18106     # Canadian cross, just use what we found
18107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18108 $as_echo "pre-installed" >&6; }
18109   fi
18110 else
18111   ok=yes
18112   case " ${configdirs} " in
18113     *" binutils "*) ;;
18114     *) ok=no ;;
18115   esac
18116
18117   if test $ok = yes; then
18118     # An in-tree tool is available and we can use it
18119     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18121 $as_echo "just compiled" >&6; }
18122   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18123     # We already found the complete path
18124     ac_dir=`dirname $WINDMC_FOR_TARGET`
18125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18126 $as_echo "pre-installed in $ac_dir" >&6; }
18127   elif test "x$target" = "x$host"; then
18128     # We can use an host tool
18129     WINDMC_FOR_TARGET='$(WINDMC)'
18130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18131 $as_echo "host tool" >&6; }
18132   else
18133     # We need a cross tool
18134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18135 $as_echo "pre-installed" >&6; }
18136   fi
18137 fi
18138
18139
18140
18141
18142
18143 # Certain tools may need extra flags.
18144 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18145 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18146 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18147
18148 # When building target libraries, except in a Canadian cross, we use
18149 # the same toolchain as the compiler we just built.
18150 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18151 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18152 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18153 if test $host = $build; then
18154   case " $configdirs " in
18155     *" gcc "*)
18156       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18157       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18158       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18159       ;;
18160   esac
18161 fi
18162
18163
18164
18165
18166
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18168 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18169 # Check whether --enable-maintainer-mode was given.
18170 if test "${enable_maintainer_mode+set}" = set; then :
18171   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18172 else
18173   USE_MAINTAINER_MODE=no
18174 fi
18175
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18177 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18178
18179
18180 if test "$USE_MAINTAINER_MODE" = yes; then
18181   MAINTAINER_MODE_TRUE=
18182   MAINTAINER_MODE_FALSE='#'
18183 else
18184   MAINTAINER_MODE_TRUE='#'
18185   MAINTAINER_MODE_FALSE=
18186 fi
18187 MAINT=$MAINTAINER_MODE_TRUE
18188
18189 # ---------------------
18190 # GCC bootstrap support
18191 # ---------------------
18192
18193 # Stage specific cflags for build.
18194 stage1_cflags="-g"
18195 case $build in
18196   vax-*-*)
18197     case ${GCC} in
18198       yes) stage1_cflags="-g -Wa,-J" ;;
18199       *) stage1_cflags="-g -J" ;;
18200     esac ;;
18201 esac
18202
18203
18204
18205 # Enable --enable-checking in stage1 of the compiler.
18206 # Check whether --enable-stage1-checking was given.
18207 if test "${enable_stage1_checking+set}" = set; then :
18208   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18209 else
18210   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18211   # For --disable-checking or implicit --enable-checking=release, avoid
18212   # setting --enable-checking=gc in the default stage1 checking for LTO
18213   # bootstraps.  See PR62077.
18214   case $BUILD_CONFIG in
18215     *lto*)
18216       stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18217     *)
18218       stage1_checking=--enable-checking=yes,types;;
18219   esac
18220   if test "x$enable_checking" = x && \
18221      test -d ${srcdir}/gcc && \
18222      test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18223     stage1_checking=--enable-checking=yes,types,extra
18224   fi
18225 else
18226   stage1_checking=--enable-checking=$enable_checking,types
18227 fi
18228 fi
18229
18230
18231
18232 # Enable -Werror in bootstrap stage2 and later.
18233 # Check whether --enable-werror was given.
18234 if test "${enable_werror+set}" = set; then :
18235   enableval=$enable_werror;
18236 case ${enable_werror} in
18237   yes) stage2_werror_flag="--enable-werror-always" ;;
18238   *) stage2_werror_flag="" ;;
18239 esac
18240
18241 else
18242
18243 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18244   case $BUILD_CONFIG in
18245   bootstrap-debug)
18246       stage2_werror_flag="--enable-werror-always" ;;
18247   "")
18248       stage2_werror_flag="--enable-werror-always" ;;
18249   esac
18250 fi
18251
18252 fi
18253
18254
18255
18256
18257 # Specify what files to not compare during bootstrap.
18258
18259 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18260 case "$target" in
18261   hppa*64*-*-hpux*) ;;
18262   hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18263   powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18264 esac
18265
18266
18267 ac_config_files="$ac_config_files Makefile"
18268
18269 cat >confcache <<\_ACEOF
18270 # This file is a shell script that caches the results of configure
18271 # tests run on this system so they can be shared between configure
18272 # scripts and configure runs, see configure's option --config-cache.
18273 # It is not useful on other systems.  If it contains results you don't
18274 # want to keep, you may remove or edit it.
18275 #
18276 # config.status only pays attention to the cache file if you give it
18277 # the --recheck option to rerun configure.
18278 #
18279 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18280 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18281 # following values.
18282
18283 _ACEOF
18284
18285 # The following way of writing the cache mishandles newlines in values,
18286 # but we know of no workaround that is simple, portable, and efficient.
18287 # So, we kill variables containing newlines.
18288 # Ultrix sh set writes to stderr and can't be redirected directly,
18289 # and sets the high bit in the cache file unless we assign to the vars.
18290 (
18291   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18292     eval ac_val=\$$ac_var
18293     case $ac_val in #(
18294     *${as_nl}*)
18295       case $ac_var in #(
18296       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18297 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18298       esac
18299       case $ac_var in #(
18300       _ | IFS | as_nl) ;; #(
18301       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18302       *) { eval $ac_var=; unset $ac_var;} ;;
18303       esac ;;
18304     esac
18305   done
18306
18307   (set) 2>&1 |
18308     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18309     *${as_nl}ac_space=\ *)
18310       # `set' does not quote correctly, so add quotes: double-quote
18311       # substitution turns \\\\ into \\, and sed turns \\ into \.
18312       sed -n \
18313         "s/'/'\\\\''/g;
18314           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18315       ;; #(
18316     *)
18317       # `set' quotes correctly as required by POSIX, so do not add quotes.
18318       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18319       ;;
18320     esac |
18321     sort
18322 ) |
18323   sed '
18324      /^ac_cv_env_/b end
18325      t clear
18326      :clear
18327      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18328      t end
18329      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18330      :end' >>confcache
18331 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18332   if test -w "$cache_file"; then
18333     if test "x$cache_file" != "x/dev/null"; then
18334       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18335 $as_echo "$as_me: updating cache $cache_file" >&6;}
18336       if test ! -f "$cache_file" || test -h "$cache_file"; then
18337         cat confcache >"$cache_file"
18338       else
18339         case $cache_file in #(
18340         */* | ?:*)
18341           mv -f confcache "$cache_file"$$ &&
18342           mv -f "$cache_file"$$ "$cache_file" ;; #(
18343         *)
18344           mv -f confcache "$cache_file" ;;
18345         esac
18346       fi
18347     fi
18348   else
18349     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18350 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18351   fi
18352 fi
18353 rm -f confcache
18354
18355 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18356 # Let make expand exec_prefix.
18357 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18358
18359 # Transform confdefs.h into DEFS.
18360 # Protect against shell expansion while executing Makefile rules.
18361 # Protect against Makefile macro expansion.
18362 #
18363 # If the first sed substitution is executed (which looks for macros that
18364 # take arguments), then branch to the quote section.  Otherwise,
18365 # look for a macro that doesn't take arguments.
18366 ac_script='
18367 :mline
18368 /\\$/{
18369  N
18370  s,\\\n,,
18371  b mline
18372 }
18373 t clear
18374 :clear
18375 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
18376 t quote
18377 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
18378 t quote
18379 b any
18380 :quote
18381 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18382 s/\[/\\&/g
18383 s/\]/\\&/g
18384 s/\$/$$/g
18385 H
18386 :any
18387 ${
18388         g
18389         s/^\n//
18390         s/\n/ /g
18391         p
18392 }
18393 '
18394 DEFS=`sed -n "$ac_script" confdefs.h`
18395
18396
18397 ac_libobjs=
18398 ac_ltlibobjs=
18399 U=
18400 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18401   # 1. Remove the extension, and $U if already installed.
18402   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18403   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18404   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18405   #    will be set to the directory where LIBOBJS objects are built.
18406   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18407   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18408 done
18409 LIBOBJS=$ac_libobjs
18410
18411 LTLIBOBJS=$ac_ltlibobjs
18412
18413
18414
18415 : "${CONFIG_STATUS=./config.status}"
18416 ac_write_fail=0
18417 ac_clean_files_save=$ac_clean_files
18418 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18420 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18421 as_write_fail=0
18422 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18423 #! $SHELL
18424 # Generated by $as_me.
18425 # Run this file to recreate the current configuration.
18426 # Compiler output produced by configure, useful for debugging
18427 # configure, is in config.log if it exists.
18428
18429 debug=false
18430 ac_cs_recheck=false
18431 ac_cs_silent=false
18432
18433 SHELL=\${CONFIG_SHELL-$SHELL}
18434 export SHELL
18435 _ASEOF
18436 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18437 ## -------------------- ##
18438 ## M4sh Initialization. ##
18439 ## -------------------- ##
18440
18441 # Be more Bourne compatible
18442 DUALCASE=1; export DUALCASE # for MKS sh
18443 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18444   emulate sh
18445   NULLCMD=:
18446   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18447   # is contrary to our usage.  Disable this feature.
18448   alias -g '${1+"$@"}'='"$@"'
18449   setopt NO_GLOB_SUBST
18450 else
18451   case `(set -o) 2>/dev/null` in #(
18452   *posix*) :
18453     set -o posix ;; #(
18454   *) :
18455      ;;
18456 esac
18457 fi
18458
18459
18460 as_nl='
18461 '
18462 export as_nl
18463 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18464 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18465 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18466 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18467 # Prefer a ksh shell builtin over an external printf program on Solaris,
18468 # but without wasting forks for bash or zsh.
18469 if test -z "$BASH_VERSION$ZSH_VERSION" \
18470     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18471   as_echo='print -r --'
18472   as_echo_n='print -rn --'
18473 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18474   as_echo='printf %s\n'
18475   as_echo_n='printf %s'
18476 else
18477   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18478     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18479     as_echo_n='/usr/ucb/echo -n'
18480   else
18481     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18482     as_echo_n_body='eval
18483       arg=$1;
18484       case $arg in #(
18485       *"$as_nl"*)
18486         expr "X$arg" : "X\\(.*\\)$as_nl";
18487         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18488       esac;
18489       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18490     '
18491     export as_echo_n_body
18492     as_echo_n='sh -c $as_echo_n_body as_echo'
18493   fi
18494   export as_echo_body
18495   as_echo='sh -c $as_echo_body as_echo'
18496 fi
18497
18498 # The user is always right.
18499 if test "${PATH_SEPARATOR+set}" != set; then
18500   PATH_SEPARATOR=:
18501   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18502     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18503       PATH_SEPARATOR=';'
18504   }
18505 fi
18506
18507
18508 # IFS
18509 # We need space, tab and new line, in precisely that order.  Quoting is
18510 # there to prevent editors from complaining about space-tab.
18511 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18512 # splitting by setting IFS to empty value.)
18513 IFS=" ""        $as_nl"
18514
18515 # Find who we are.  Look in the path if we contain no directory separator.
18516 as_myself=
18517 case $0 in #((
18518   *[\\/]* ) as_myself=$0 ;;
18519   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18520 for as_dir in $PATH
18521 do
18522   IFS=$as_save_IFS
18523   test -z "$as_dir" && as_dir=.
18524     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18525   done
18526 IFS=$as_save_IFS
18527
18528      ;;
18529 esac
18530 # We did not find ourselves, most probably we were run as `sh COMMAND'
18531 # in which case we are not to be found in the path.
18532 if test "x$as_myself" = x; then
18533   as_myself=$0
18534 fi
18535 if test ! -f "$as_myself"; then
18536   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18537   exit 1
18538 fi
18539
18540 # Unset variables that we do not need and which cause bugs (e.g. in
18541 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18542 # suppresses any "Segmentation fault" message there.  '((' could
18543 # trigger a bug in pdksh 5.2.14.
18544 for as_var in BASH_ENV ENV MAIL MAILPATH
18545 do eval test x\${$as_var+set} = xset \
18546   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18547 done
18548 PS1='$ '
18549 PS2='> '
18550 PS4='+ '
18551
18552 # NLS nuisances.
18553 LC_ALL=C
18554 export LC_ALL
18555 LANGUAGE=C
18556 export LANGUAGE
18557
18558 # CDPATH.
18559 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18560
18561
18562 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18563 # ----------------------------------------
18564 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18565 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18566 # script with STATUS, using 1 if that was 0.
18567 as_fn_error ()
18568 {
18569   as_status=$1; test $as_status -eq 0 && as_status=1
18570   if test "$4"; then
18571     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18572     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18573   fi
18574   $as_echo "$as_me: error: $2" >&2
18575   as_fn_exit $as_status
18576 } # as_fn_error
18577
18578
18579 # as_fn_set_status STATUS
18580 # -----------------------
18581 # Set $? to STATUS, without forking.
18582 as_fn_set_status ()
18583 {
18584   return $1
18585 } # as_fn_set_status
18586
18587 # as_fn_exit STATUS
18588 # -----------------
18589 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18590 as_fn_exit ()
18591 {
18592   set +e
18593   as_fn_set_status $1
18594   exit $1
18595 } # as_fn_exit
18596
18597 # as_fn_unset VAR
18598 # ---------------
18599 # Portably unset VAR.
18600 as_fn_unset ()
18601 {
18602   { eval $1=; unset $1;}
18603 }
18604 as_unset=as_fn_unset
18605 # as_fn_append VAR VALUE
18606 # ----------------------
18607 # Append the text in VALUE to the end of the definition contained in VAR. Take
18608 # advantage of any shell optimizations that allow amortized linear growth over
18609 # repeated appends, instead of the typical quadratic growth present in naive
18610 # implementations.
18611 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18612   eval 'as_fn_append ()
18613   {
18614     eval $1+=\$2
18615   }'
18616 else
18617   as_fn_append ()
18618   {
18619     eval $1=\$$1\$2
18620   }
18621 fi # as_fn_append
18622
18623 # as_fn_arith ARG...
18624 # ------------------
18625 # Perform arithmetic evaluation on the ARGs, and store the result in the
18626 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18627 # must be portable across $(()) and expr.
18628 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18629   eval 'as_fn_arith ()
18630   {
18631     as_val=$(( $* ))
18632   }'
18633 else
18634   as_fn_arith ()
18635   {
18636     as_val=`expr "$@" || test $? -eq 1`
18637   }
18638 fi # as_fn_arith
18639
18640
18641 if expr a : '\(a\)' >/dev/null 2>&1 &&
18642    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18643   as_expr=expr
18644 else
18645   as_expr=false
18646 fi
18647
18648 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18649   as_basename=basename
18650 else
18651   as_basename=false
18652 fi
18653
18654 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18655   as_dirname=dirname
18656 else
18657   as_dirname=false
18658 fi
18659
18660 as_me=`$as_basename -- "$0" ||
18661 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18662          X"$0" : 'X\(//\)$' \| \
18663          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18664 $as_echo X/"$0" |
18665     sed '/^.*\/\([^/][^/]*\)\/*$/{
18666             s//\1/
18667             q
18668           }
18669           /^X\/\(\/\/\)$/{
18670             s//\1/
18671             q
18672           }
18673           /^X\/\(\/\).*/{
18674             s//\1/
18675             q
18676           }
18677           s/.*/./; q'`
18678
18679 # Avoid depending upon Character Ranges.
18680 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18681 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18682 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18683 as_cr_digits='0123456789'
18684 as_cr_alnum=$as_cr_Letters$as_cr_digits
18685
18686 ECHO_C= ECHO_N= ECHO_T=
18687 case `echo -n x` in #(((((
18688 -n*)
18689   case `echo 'xy\c'` in
18690   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18691   xy)  ECHO_C='\c';;
18692   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18693        ECHO_T=' ';;
18694   esac;;
18695 *)
18696   ECHO_N='-n';;
18697 esac
18698
18699 rm -f conf$$ conf$$.exe conf$$.file
18700 if test -d conf$$.dir; then
18701   rm -f conf$$.dir/conf$$.file
18702 else
18703   rm -f conf$$.dir
18704   mkdir conf$$.dir 2>/dev/null
18705 fi
18706 if (echo >conf$$.file) 2>/dev/null; then
18707   if ln -s conf$$.file conf$$ 2>/dev/null; then
18708     as_ln_s='ln -s'
18709     # ... but there are two gotchas:
18710     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18711     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18712     # In both cases, we have to default to `cp -pR'.
18713     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18714       as_ln_s='cp -pR'
18715   elif ln conf$$.file conf$$ 2>/dev/null; then
18716     as_ln_s=ln
18717   else
18718     as_ln_s='cp -pR'
18719   fi
18720 else
18721   as_ln_s='cp -pR'
18722 fi
18723 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18724 rmdir conf$$.dir 2>/dev/null
18725
18726
18727 # as_fn_mkdir_p
18728 # -------------
18729 # Create "$as_dir" as a directory, including parents if necessary.
18730 as_fn_mkdir_p ()
18731 {
18732
18733   case $as_dir in #(
18734   -*) as_dir=./$as_dir;;
18735   esac
18736   test -d "$as_dir" || eval $as_mkdir_p || {
18737     as_dirs=
18738     while :; do
18739       case $as_dir in #(
18740       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18741       *) as_qdir=$as_dir;;
18742       esac
18743       as_dirs="'$as_qdir' $as_dirs"
18744       as_dir=`$as_dirname -- "$as_dir" ||
18745 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18746          X"$as_dir" : 'X\(//\)[^/]' \| \
18747          X"$as_dir" : 'X\(//\)$' \| \
18748          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18749 $as_echo X"$as_dir" |
18750     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18751             s//\1/
18752             q
18753           }
18754           /^X\(\/\/\)[^/].*/{
18755             s//\1/
18756             q
18757           }
18758           /^X\(\/\/\)$/{
18759             s//\1/
18760             q
18761           }
18762           /^X\(\/\).*/{
18763             s//\1/
18764             q
18765           }
18766           s/.*/./; q'`
18767       test -d "$as_dir" && break
18768     done
18769     test -z "$as_dirs" || eval "mkdir $as_dirs"
18770   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18771
18772
18773 } # as_fn_mkdir_p
18774 if mkdir -p . 2>/dev/null; then
18775   as_mkdir_p='mkdir -p "$as_dir"'
18776 else
18777   test -d ./-p && rmdir ./-p
18778   as_mkdir_p=false
18779 fi
18780
18781
18782 # as_fn_executable_p FILE
18783 # -----------------------
18784 # Test if FILE is an executable regular file.
18785 as_fn_executable_p ()
18786 {
18787   test -f "$1" && test -x "$1"
18788 } # as_fn_executable_p
18789 as_test_x='test -x'
18790 as_executable_p=as_fn_executable_p
18791
18792 # Sed expression to map a string onto a valid CPP name.
18793 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18794
18795 # Sed expression to map a string onto a valid variable name.
18796 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18797
18798
18799 exec 6>&1
18800 ## ----------------------------------- ##
18801 ## Main body of $CONFIG_STATUS script. ##
18802 ## ----------------------------------- ##
18803 _ASEOF
18804 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18805
18806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18807 # Save the log message, to keep $0 and so on meaningful, and to
18808 # report actual input values of CONFIG_FILES etc. instead of their
18809 # values after options handling.
18810 ac_log="
18811 This file was extended by $as_me, which was
18812 generated by GNU Autoconf 2.69.  Invocation command line was
18813
18814   CONFIG_FILES    = $CONFIG_FILES
18815   CONFIG_HEADERS  = $CONFIG_HEADERS
18816   CONFIG_LINKS    = $CONFIG_LINKS
18817   CONFIG_COMMANDS = $CONFIG_COMMANDS
18818   $ $0 $@
18819
18820 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18821 "
18822
18823 _ACEOF
18824
18825 case $ac_config_files in *"
18826 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18827 esac
18828
18829
18830
18831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18832 # Files that config.status was made for.
18833 config_files="$ac_config_files"
18834
18835 _ACEOF
18836
18837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18838 ac_cs_usage="\
18839 \`$as_me' instantiates files and other configuration actions
18840 from templates according to the current configuration.  Unless the files
18841 and actions are specified as TAGs, all are instantiated by default.
18842
18843 Usage: $0 [OPTION]... [TAG]...
18844
18845   -h, --help       print this help, then exit
18846   -V, --version    print version number and configuration settings, then exit
18847       --config     print configuration, then exit
18848   -q, --quiet, --silent
18849                    do not print progress messages
18850   -d, --debug      don't remove temporary files
18851       --recheck    update $as_me by reconfiguring in the same conditions
18852       --file=FILE[:TEMPLATE]
18853                    instantiate the configuration file FILE
18854
18855 Configuration files:
18856 $config_files
18857
18858 Report bugs to the package provider."
18859
18860 _ACEOF
18861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18862 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18863 ac_cs_version="\\
18864 config.status
18865 configured by $0, generated by GNU Autoconf 2.69,
18866   with options \\"\$ac_cs_config\\"
18867
18868 Copyright (C) 2012 Free Software Foundation, Inc.
18869 This config.status script is free software; the Free Software Foundation
18870 gives unlimited permission to copy, distribute and modify it."
18871
18872 ac_pwd='$ac_pwd'
18873 srcdir='$srcdir'
18874 INSTALL='$INSTALL'
18875 AWK='$AWK'
18876 test -n "\$AWK" || AWK=awk
18877 _ACEOF
18878
18879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18880 # The default lists apply if the user does not specify any file.
18881 ac_need_defaults=:
18882 while test $# != 0
18883 do
18884   case $1 in
18885   --*=?*)
18886     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18887     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18888     ac_shift=:
18889     ;;
18890   --*=)
18891     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18892     ac_optarg=
18893     ac_shift=:
18894     ;;
18895   *)
18896     ac_option=$1
18897     ac_optarg=$2
18898     ac_shift=shift
18899     ;;
18900   esac
18901
18902   case $ac_option in
18903   # Handling of the options.
18904   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18905     ac_cs_recheck=: ;;
18906   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18907     $as_echo "$ac_cs_version"; exit ;;
18908   --config | --confi | --conf | --con | --co | --c )
18909     $as_echo "$ac_cs_config"; exit ;;
18910   --debug | --debu | --deb | --de | --d | -d )
18911     debug=: ;;
18912   --file | --fil | --fi | --f )
18913     $ac_shift
18914     case $ac_optarg in
18915     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18916     '') as_fn_error $? "missing file argument" ;;
18917     esac
18918     as_fn_append CONFIG_FILES " '$ac_optarg'"
18919     ac_need_defaults=false;;
18920   --he | --h |  --help | --hel | -h )
18921     $as_echo "$ac_cs_usage"; exit ;;
18922   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18923   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18924     ac_cs_silent=: ;;
18925
18926   # This is an error.
18927   -*) as_fn_error $? "unrecognized option: \`$1'
18928 Try \`$0 --help' for more information." ;;
18929
18930   *) as_fn_append ac_config_targets " $1"
18931      ac_need_defaults=false ;;
18932
18933   esac
18934   shift
18935 done
18936
18937 ac_configure_extra_args=
18938
18939 if $ac_cs_silent; then
18940   exec 6>/dev/null
18941   ac_configure_extra_args="$ac_configure_extra_args --silent"
18942 fi
18943
18944 _ACEOF
18945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18946 if \$ac_cs_recheck; then
18947   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18948   shift
18949   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18950   CONFIG_SHELL='$SHELL'
18951   export CONFIG_SHELL
18952   exec "\$@"
18953 fi
18954
18955 _ACEOF
18956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18957 exec 5>>config.log
18958 {
18959   echo
18960   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18961 ## Running $as_me. ##
18962 _ASBOX
18963   $as_echo "$ac_log"
18964 } >&5
18965
18966 _ACEOF
18967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18968 #
18969 # INIT-COMMANDS
18970 #
18971 extrasub_build="$extrasub_build"
18972    extrasub_host="$extrasub_host"
18973    extrasub_target="$extrasub_target"
18974
18975 _ACEOF
18976
18977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18978
18979 # Handling of arguments.
18980 for ac_config_target in $ac_config_targets
18981 do
18982   case $ac_config_target in
18983     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18984
18985   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18986   esac
18987 done
18988
18989
18990 # If the user did not use the arguments to specify the items to instantiate,
18991 # then the envvar interface is used.  Set only those that are not.
18992 # We use the long form for the default assignment because of an extremely
18993 # bizarre bug on SunOS 4.1.3.
18994 if $ac_need_defaults; then
18995   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18996 fi
18997
18998 # Have a temporary directory for convenience.  Make it in the build tree
18999 # simply because there is no reason against having it here, and in addition,
19000 # creating and moving files from /tmp can sometimes cause problems.
19001 # Hook for its removal unless debugging.
19002 # Note that there is a small window in which the directory will not be cleaned:
19003 # after its creation but before its name has been assigned to `$tmp'.
19004 $debug ||
19005 {
19006   tmp= ac_tmp=
19007   trap 'exit_status=$?
19008   : "${ac_tmp:=$tmp}"
19009   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19010 ' 0
19011   trap 'as_fn_exit 1' 1 2 13 15
19012 }
19013 # Create a (secure) tmp directory for tmp files.
19014
19015 {
19016   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19017   test -d "$tmp"
19018 }  ||
19019 {
19020   tmp=./conf$$-$RANDOM
19021   (umask 077 && mkdir "$tmp")
19022 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19023 ac_tmp=$tmp
19024
19025 # Set up the scripts for CONFIG_FILES section.
19026 # No need to generate them if there are no CONFIG_FILES.
19027 # This happens for instance with `./config.status config.h'.
19028 if test -n "$CONFIG_FILES"; then
19029
19030 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19031   ac_cs_awk_getline=:
19032   ac_cs_awk_pipe_init=
19033   ac_cs_awk_read_file='
19034       while ((getline aline < (F[key])) > 0)
19035         print(aline)
19036       close(F[key])'
19037   ac_cs_awk_pipe_fini=
19038 else
19039   ac_cs_awk_getline=false
19040   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19041   ac_cs_awk_read_file='
19042       print "|#_!!_#|"
19043       print "cat " F[key] " &&"
19044       '$ac_cs_awk_pipe_init
19045   # The final `:' finishes the AND list.
19046   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19047 fi
19048 ac_cr=`echo X | tr X '\015'`
19049 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19050 # But we know of no other shell where ac_cr would be empty at this
19051 # point, so we can use a bashism as a fallback.
19052 if test "x$ac_cr" = x; then
19053   eval ac_cr=\$\'\\r\'
19054 fi
19055 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19056 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19057   ac_cs_awk_cr='\\r'
19058 else
19059   ac_cs_awk_cr=$ac_cr
19060 fi
19061
19062 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19063 _ACEOF
19064
19065 # Create commands to substitute file output variables.
19066 {
19067   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19068   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19069   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19070   echo "_ACAWK" &&
19071   echo "_ACEOF"
19072 } >conf$$files.sh &&
19073 . ./conf$$files.sh ||
19074   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19075 rm -f conf$$files.sh
19076
19077 {
19078   echo "cat >conf$$subs.awk <<_ACEOF" &&
19079   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19080   echo "_ACEOF"
19081 } >conf$$subs.sh ||
19082   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19083 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19084 ac_delim='%!_!# '
19085 for ac_last_try in false false false false false :; do
19086   . ./conf$$subs.sh ||
19087     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19088
19089   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19090   if test $ac_delim_n = $ac_delim_num; then
19091     break
19092   elif $ac_last_try; then
19093     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19094   else
19095     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19096   fi
19097 done
19098 rm -f conf$$subs.sh
19099
19100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19101 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19102 _ACEOF
19103 sed -n '
19104 h
19105 s/^/S["/; s/!.*/"]=/
19106 p
19107 g
19108 s/^[^!]*!//
19109 :repl
19110 t repl
19111 s/'"$ac_delim"'$//
19112 t delim
19113 :nl
19114 h
19115 s/\(.\{148\}\)..*/\1/
19116 t more1
19117 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19118 p
19119 n
19120 b repl
19121 :more1
19122 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19123 p
19124 g
19125 s/.\{148\}//
19126 t nl
19127 :delim
19128 h
19129 s/\(.\{148\}\)..*/\1/
19130 t more2
19131 s/["\\]/\\&/g; s/^/"/; s/$/"/
19132 p
19133 b
19134 :more2
19135 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19136 p
19137 g
19138 s/.\{148\}//
19139 t delim
19140 ' <conf$$subs.awk | sed '
19141 /^[^""]/{
19142   N
19143   s/\n//
19144 }
19145 ' >>$CONFIG_STATUS || ac_write_fail=1
19146 rm -f conf$$subs.awk
19147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19148 _ACAWK
19149 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19150   for (key in S) S_is_set[key] = 1
19151   FS = "\a"
19152   \$ac_cs_awk_pipe_init
19153 }
19154 {
19155   line = $ 0
19156   nfields = split(line, field, "@")
19157   substed = 0
19158   len = length(field[1])
19159   for (i = 2; i < nfields; i++) {
19160     key = field[i]
19161     keylen = length(key)
19162     if (S_is_set[key]) {
19163       value = S[key]
19164       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19165       len += length(value) + length(field[++i])
19166       substed = 1
19167     } else
19168       len += 1 + keylen
19169   }
19170   if (nfields == 3 && !substed) {
19171     key = field[2]
19172     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
19173       \$ac_cs_awk_read_file
19174       next
19175     }
19176   }
19177   print line
19178 }
19179 \$ac_cs_awk_pipe_fini
19180 _ACAWK
19181 _ACEOF
19182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19183 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19184   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19185 else
19186   cat
19187 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19188   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19189 _ACEOF
19190
19191 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19192 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19193 # trailing colons and then remove the whole line if VPATH becomes empty
19194 # (actually we leave an empty line to preserve line numbers).
19195 if test "x$srcdir" = x.; then
19196   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19197 h
19198 s///
19199 s/^/:/
19200 s/[      ]*$/:/
19201 s/:\$(srcdir):/:/g
19202 s/:\${srcdir}:/:/g
19203 s/:@srcdir@:/:/g
19204 s/^:*//
19205 s/:*$//
19206 x
19207 s/\(=[   ]*\).*/\1/
19208 G
19209 s/\n//
19210 s/^[^=]*=[       ]*$//
19211 }'
19212 fi
19213
19214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19215 fi # test -n "$CONFIG_FILES"
19216
19217
19218 eval set X "  :F $CONFIG_FILES      "
19219 shift
19220 for ac_tag
19221 do
19222   case $ac_tag in
19223   :[FHLC]) ac_mode=$ac_tag; continue;;
19224   esac
19225   case $ac_mode$ac_tag in
19226   :[FHL]*:*);;
19227   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19228   :[FH]-) ac_tag=-:-;;
19229   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19230   esac
19231   ac_save_IFS=$IFS
19232   IFS=:
19233   set x $ac_tag
19234   IFS=$ac_save_IFS
19235   shift
19236   ac_file=$1
19237   shift
19238
19239   case $ac_mode in
19240   :L) ac_source=$1;;
19241   :[FH])
19242     ac_file_inputs=
19243     for ac_f
19244     do
19245       case $ac_f in
19246       -) ac_f="$ac_tmp/stdin";;
19247       *) # Look for the file first in the build tree, then in the source tree
19248          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19249          # because $ac_f cannot contain `:'.
19250          test -f "$ac_f" ||
19251            case $ac_f in
19252            [\\/$]*) false;;
19253            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19254            esac ||
19255            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19256       esac
19257       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19258       as_fn_append ac_file_inputs " '$ac_f'"
19259     done
19260
19261     # Let's still pretend it is `configure' which instantiates (i.e., don't
19262     # use $as_me), people would be surprised to read:
19263     #    /* config.h.  Generated by config.status.  */
19264     configure_input='Generated from '`
19265           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19266         `' by configure.'
19267     if test x"$ac_file" != x-; then
19268       configure_input="$ac_file.  $configure_input"
19269       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19270 $as_echo "$as_me: creating $ac_file" >&6;}
19271     fi
19272     # Neutralize special characters interpreted by sed in replacement strings.
19273     case $configure_input in #(
19274     *\&* | *\|* | *\\* )
19275        ac_sed_conf_input=`$as_echo "$configure_input" |
19276        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19277     *) ac_sed_conf_input=$configure_input;;
19278     esac
19279
19280     case $ac_tag in
19281     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19282       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19283     esac
19284     ;;
19285   esac
19286
19287   ac_dir=`$as_dirname -- "$ac_file" ||
19288 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19289          X"$ac_file" : 'X\(//\)[^/]' \| \
19290          X"$ac_file" : 'X\(//\)$' \| \
19291          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19292 $as_echo X"$ac_file" |
19293     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19294             s//\1/
19295             q
19296           }
19297           /^X\(\/\/\)[^/].*/{
19298             s//\1/
19299             q
19300           }
19301           /^X\(\/\/\)$/{
19302             s//\1/
19303             q
19304           }
19305           /^X\(\/\).*/{
19306             s//\1/
19307             q
19308           }
19309           s/.*/./; q'`
19310   as_dir="$ac_dir"; as_fn_mkdir_p
19311   ac_builddir=.
19312
19313 case "$ac_dir" in
19314 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19315 *)
19316   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19317   # A ".." for each directory in $ac_dir_suffix.
19318   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19319   case $ac_top_builddir_sub in
19320   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19321   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19322   esac ;;
19323 esac
19324 ac_abs_top_builddir=$ac_pwd
19325 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19326 # for backward compatibility:
19327 ac_top_builddir=$ac_top_build_prefix
19328
19329 case $srcdir in
19330   .)  # We are building in place.
19331     ac_srcdir=.
19332     ac_top_srcdir=$ac_top_builddir_sub
19333     ac_abs_top_srcdir=$ac_pwd ;;
19334   [\\/]* | ?:[\\/]* )  # Absolute name.
19335     ac_srcdir=$srcdir$ac_dir_suffix;
19336     ac_top_srcdir=$srcdir
19337     ac_abs_top_srcdir=$srcdir ;;
19338   *) # Relative name.
19339     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19340     ac_top_srcdir=$ac_top_build_prefix$srcdir
19341     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19342 esac
19343 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19344
19345
19346   case $ac_mode in
19347   :F)
19348   #
19349   # CONFIG_FILE
19350   #
19351
19352   case $INSTALL in
19353   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19354   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19355   esac
19356 _ACEOF
19357
19358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19359 # If the template does not know about datarootdir, expand it.
19360 # FIXME: This hack should be removed a few years after 2.60.
19361 ac_datarootdir_hack=; ac_datarootdir_seen=
19362 ac_sed_dataroot='
19363 /datarootdir/ {
19364   p
19365   q
19366 }
19367 /@datadir@/p
19368 /@docdir@/p
19369 /@infodir@/p
19370 /@localedir@/p
19371 /@mandir@/p'
19372 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19373 *datarootdir*) ac_datarootdir_seen=yes;;
19374 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19375   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19376 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19377 _ACEOF
19378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19379   ac_datarootdir_hack='
19380   s&@datadir@&$datadir&g
19381   s&@docdir@&$docdir&g
19382   s&@infodir@&$infodir&g
19383   s&@localedir@&$localedir&g
19384   s&@mandir@&$mandir&g
19385   s&\\\${datarootdir}&$datarootdir&g' ;;
19386 esac
19387 _ACEOF
19388
19389 # Neutralize VPATH when `$srcdir' = `.'.
19390 # Shell code in configure.ac might set extrasub.
19391 # FIXME: do we really want to maintain this feature?
19392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19393 ac_sed_extra="$ac_vpsub
19394 $extrasub
19395 _ACEOF
19396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19397 :t
19398 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19399 s|@configure_input@|$ac_sed_conf_input|;t t
19400 s&@top_builddir@&$ac_top_builddir_sub&;t t
19401 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19402 s&@srcdir@&$ac_srcdir&;t t
19403 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19404 s&@top_srcdir@&$ac_top_srcdir&;t t
19405 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19406 s&@builddir@&$ac_builddir&;t t
19407 s&@abs_builddir@&$ac_abs_builddir&;t t
19408 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19409 s&@INSTALL@&$ac_INSTALL&;t t
19410 $ac_datarootdir_hack
19411 "
19412 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19413 if $ac_cs_awk_getline; then
19414   $AWK -f "$ac_tmp/subs.awk"
19415 else
19416   $AWK -f "$ac_tmp/subs.awk" | $SHELL
19417 fi \
19418   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19419
19420 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19421   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19422   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19423       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19424   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19425 which seems to be undefined.  Please make sure it is defined" >&5
19426 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19427 which seems to be undefined.  Please make sure it is defined" >&2;}
19428
19429   rm -f "$ac_tmp/stdin"
19430   case $ac_file in
19431   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19432   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19433   esac \
19434   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19435  ;;
19436
19437
19438
19439   esac
19440
19441
19442   case $ac_file$ac_mode in
19443     "Makefile":F) sed "$extrasub_build" Makefile |
19444    sed "$extrasub_host" |
19445    sed "$extrasub_target" > mf$$
19446    mv -f mf$$ Makefile ;;
19447
19448   esac
19449 done # for ac_tag
19450
19451
19452 as_fn_exit 0
19453 _ACEOF
19454 ac_clean_files=$ac_clean_files_save
19455
19456 test $ac_write_fail = 0 ||
19457   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19458
19459
19460 # configure is writing to config.log, and then calls config.status.
19461 # config.status does its own redirection, appending to config.log.
19462 # Unfortunately, on DOS this fails, as config.log is still kept open
19463 # by configure, so config.status won't be able to write to it; its
19464 # output is simply discarded.  So we exec the FD to /dev/null,
19465 # effectively closing config.log, so it can be properly (re)opened and
19466 # appended to by config.status.  When coming back to configure, we
19467 # need to make the FD available again.
19468 if test "$no_create" != yes; then
19469   ac_cs_success=:
19470   ac_config_status_args=
19471   test "$silent" = yes &&
19472     ac_config_status_args="$ac_config_status_args --quiet"
19473   exec 5>/dev/null
19474   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19475   exec 5>>config.log
19476   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19477   # would make configure fail if this is the last instruction.
19478   $ac_cs_success || as_fn_exit 1
19479 fi
19480 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19481   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19482 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19483 fi
19484