Revert "docs: fix links pointing to gcc.gnu.org/install"
[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 GDCFLAGS
623 READELF
624 OTOOL
625 OBJDUMP
626 OBJCOPY
627 WINDMC
628 WINDRES
629 STRIP
630 RANLIB
631 NM
632 LIPO
633 LD
634 DSYMUTIL
635 DLLTOOL
636 AS
637 AR
638 RUNTEST
639 EXPECT
640 MAKEINFO
641 FLEX
642 LEX
643 M4
644 BISON
645 YACC
646 WINDRES_FOR_BUILD
647 WINDMC_FOR_BUILD
648 RANLIB_FOR_BUILD
649 NM_FOR_BUILD
650 LD_FOR_BUILD
651 LDFLAGS_FOR_BUILD
652 GDC_FOR_BUILD
653 GOC_FOR_BUILD
654 GFORTRAN_FOR_BUILD
655 DSYMUTIL_FOR_BUILD
656 DLLTOOL_FOR_BUILD
657 CXX_FOR_BUILD
658 CXXFLAGS_FOR_BUILD
659 CPPFLAGS_FOR_BUILD
660 CPP_FOR_BUILD
661 CFLAGS_FOR_BUILD
662 CC_FOR_BUILD
663 AS_FOR_BUILD
664 AR_FOR_BUILD
665 target_configdirs
666 configdirs
667 build_configdirs
668 INSTALL_GDB_TK
669 GDB_TK
670 CONFIGURE_GDB_TK
671 build_tooldir
672 tooldir
673 GCC_SHLIB_SUBDIR
674 RPATH_ENVVAR
675 target_configargs
676 host_configargs
677 build_configargs
678 BUILD_CONFIG
679 LDFLAGS_FOR_TARGET
680 CXXFLAGS_FOR_TARGET
681 CFLAGS_FOR_TARGET
682 DEBUG_PREFIX_CFLAGS_FOR_TARGET
683 SYSROOT_CFLAGS_FOR_TARGET
684 get_gcc_base_ver
685 extra_host_zlib_configure_flags
686 extra_host_libiberty_configure_flags
687 stage1_languages
688 host_shared
689 extra_linker_plugin_flags
690 extra_linker_plugin_configure_flags
691 islinc
692 isllibs
693 poststage1_ldflags
694 poststage1_libs
695 stage1_ldflags
696 stage1_libs
697 extra_isl_gmp_configure_flags
698 extra_mpc_mpfr_configure_flags
699 extra_mpc_gmp_configure_flags
700 extra_mpfr_configure_flags
701 gmpinc
702 gmplibs
703 PGO_BUILD_LTO_CFLAGS
704 PGO_BUILD_USE_CFLAGS
705 PGO_BUILD_GEN_CFLAGS
706 HAVE_CXX11_FOR_BUILD
707 HAVE_CXX11
708 do_compare
709 GDC
710 GNATMAKE
711 GNATBIND
712 ac_ct_CXX
713 CXXFLAGS
714 CXX
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
721 CC
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_bootstrap
808 enable_pgo_build
809 with_mpc
810 with_mpc_include
811 with_mpc_lib
812 with_mpfr
813 with_mpfr_include
814 with_mpfr_lib
815 with_gmp
816 with_gmp_include
817 with_gmp_lib
818 with_stage1_libs
819 with_static_standard_libraries
820 with_stage1_ldflags
821 with_boot_libs
822 with_boot_ldflags
823 with_isl
824 with_isl_include
825 with_isl_lib
826 enable_isl_version_check
827 enable_lto
828 enable_linker_plugin_configure_flags
829 enable_linker_plugin_flags
830 enable_host_shared
831 enable_stage1_languages
832 enable_objc_gc
833 with_target_bdw_gc
834 with_target_bdw_gc_include
835 with_target_bdw_gc_lib
836 with_gcc_major_version_only
837 with_build_sysroot
838 with_debug_prefix_map
839 with_build_config
840 enable_vtable_verify
841 enable_serial_configure
842 with_build_time_tools
843 enable_maintainer_mode
844 enable_stage1_checking
845 enable_werror
846 '
847       ac_precious_vars='build_alias
848 host_alias
849 target_alias
850 CC
851 CFLAGS
852 LDFLAGS
853 LIBS
854 CPPFLAGS
855 CXX
856 CXXFLAGS
857 CCC
858 build_configargs
859 host_configargs
860 target_configargs
861 AR
862 AS
863 DLLTOOL
864 DSYMUTIL
865 LD
866 LIPO
867 NM
868 RANLIB
869 STRIP
870 WINDRES
871 WINDMC
872 OBJCOPY
873 OBJDUMP
874 OTOOL
875 READELF
876 CC_FOR_TARGET
877 CXX_FOR_TARGET
878 GCC_FOR_TARGET
879 GFORTRAN_FOR_TARGET
880 GOC_FOR_TARGET
881 GDC_FOR_TARGET
882 AR_FOR_TARGET
883 AS_FOR_TARGET
884 DLLTOOL_FOR_TARGET
885 DSYMUTIL_FOR_TARGET
886 LD_FOR_TARGET
887 LIPO_FOR_TARGET
888 NM_FOR_TARGET
889 OBJCOPY_FOR_TARGET
890 OBJDUMP_FOR_TARGET
891 OTOOL_FOR_TARGET
892 RANLIB_FOR_TARGET
893 READELF_FOR_TARGET
894 STRIP_FOR_TARGET
895 WINDRES_FOR_TARGET
896 WINDMC_FOR_TARGET'
897
898
899 # Initialize some variables set by options.
900 ac_init_help=
901 ac_init_version=false
902 ac_unrecognized_opts=
903 ac_unrecognized_sep=
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
906 cache_file=/dev/null
907 exec_prefix=NONE
908 no_create=
909 no_recursion=
910 prefix=NONE
911 program_prefix=NONE
912 program_suffix=NONE
913 program_transform_name=s,x,x,
914 silent=
915 site=
916 srcdir=
917 verbose=
918 x_includes=NONE
919 x_libraries=NONE
920
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir='${exec_prefix}/bin'
928 sbindir='${exec_prefix}/sbin'
929 libexecdir='${exec_prefix}/libexec'
930 datarootdir='${prefix}/share'
931 datadir='${datarootdir}'
932 sysconfdir='${prefix}/etc'
933 sharedstatedir='${prefix}/com'
934 localstatedir='${prefix}/var'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE}'
938 infodir='${datarootdir}/info'
939 htmldir='${docdir}'
940 dvidir='${docdir}'
941 pdfdir='${docdir}'
942 psdir='${docdir}'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
946
947 ac_prev=
948 ac_dashdash=
949 for ac_option
950 do
951   # If the previous option needs an argument, assign it.
952   if test -n "$ac_prev"; then
953     eval $ac_prev=\$ac_option
954     ac_prev=
955     continue
956   fi
957
958   case $ac_option in
959   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960   *=)   ac_optarg= ;;
961   *)    ac_optarg=yes ;;
962   esac
963
964   # Accept the important Cygnus configure options, so we can diagnose typos.
965
966   case $ac_dashdash$ac_option in
967   --)
968     ac_dashdash=yes ;;
969
970   -bindir | --bindir | --bindi | --bind | --bin | --bi)
971     ac_prev=bindir ;;
972   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973     bindir=$ac_optarg ;;
974
975   -build | --build | --buil | --bui | --bu)
976     ac_prev=build_alias ;;
977   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978     build_alias=$ac_optarg ;;
979
980   -cache-file | --cache-file | --cache-fil | --cache-fi \
981   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982     ac_prev=cache_file ;;
983   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985     cache_file=$ac_optarg ;;
986
987   --config-cache | -C)
988     cache_file=config.cache ;;
989
990   -datadir | --datadir | --datadi | --datad)
991     ac_prev=datadir ;;
992   -datadir=* | --datadir=* | --datadi=* | --datad=*)
993     datadir=$ac_optarg ;;
994
995   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996   | --dataroo | --dataro | --datar)
997     ac_prev=datarootdir ;;
998   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000     datarootdir=$ac_optarg ;;
1001
1002   -disable-* | --disable-*)
1003     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004     # Reject names that are not valid shell variable names.
1005     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006       as_fn_error $? "invalid feature name: $ac_useropt"
1007     ac_useropt_orig=$ac_useropt
1008     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009     case $ac_user_opts in
1010       *"
1011 "enable_$ac_useropt"
1012 "*) ;;
1013       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014          ac_unrecognized_sep=', ';;
1015     esac
1016     eval enable_$ac_useropt=no ;;
1017
1018   -docdir | --docdir | --docdi | --doc | --do)
1019     ac_prev=docdir ;;
1020   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021     docdir=$ac_optarg ;;
1022
1023   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024     ac_prev=dvidir ;;
1025   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026     dvidir=$ac_optarg ;;
1027
1028   -enable-* | --enable-*)
1029     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030     # Reject names that are not valid shell variable names.
1031     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032       as_fn_error $? "invalid feature name: $ac_useropt"
1033     ac_useropt_orig=$ac_useropt
1034     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035     case $ac_user_opts in
1036       *"
1037 "enable_$ac_useropt"
1038 "*) ;;
1039       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1040          ac_unrecognized_sep=', ';;
1041     esac
1042     eval enable_$ac_useropt=\$ac_optarg ;;
1043
1044   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046   | --exec | --exe | --ex)
1047     ac_prev=exec_prefix ;;
1048   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050   | --exec=* | --exe=* | --ex=*)
1051     exec_prefix=$ac_optarg ;;
1052
1053   -gas | --gas | --ga | --g)
1054     # Obsolete; use --with-gas.
1055     with_gas=yes ;;
1056
1057   -help | --help | --hel | --he | -h)
1058     ac_init_help=long ;;
1059   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060     ac_init_help=recursive ;;
1061   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062     ac_init_help=short ;;
1063
1064   -host | --host | --hos | --ho)
1065     ac_prev=host_alias ;;
1066   -host=* | --host=* | --hos=* | --ho=*)
1067     host_alias=$ac_optarg ;;
1068
1069   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070     ac_prev=htmldir ;;
1071   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072   | --ht=*)
1073     htmldir=$ac_optarg ;;
1074
1075   -includedir | --includedir | --includedi | --included | --include \
1076   | --includ | --inclu | --incl | --inc)
1077     ac_prev=includedir ;;
1078   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079   | --includ=* | --inclu=* | --incl=* | --inc=*)
1080     includedir=$ac_optarg ;;
1081
1082   -infodir | --infodir | --infodi | --infod | --info | --inf)
1083     ac_prev=infodir ;;
1084   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085     infodir=$ac_optarg ;;
1086
1087   -libdir | --libdir | --libdi | --libd)
1088     ac_prev=libdir ;;
1089   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090     libdir=$ac_optarg ;;
1091
1092   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093   | --libexe | --libex | --libe)
1094     ac_prev=libexecdir ;;
1095   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096   | --libexe=* | --libex=* | --libe=*)
1097     libexecdir=$ac_optarg ;;
1098
1099   -localedir | --localedir | --localedi | --localed | --locale)
1100     ac_prev=localedir ;;
1101   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102     localedir=$ac_optarg ;;
1103
1104   -localstatedir | --localstatedir | --localstatedi | --localstated \
1105   | --localstate | --localstat | --localsta | --localst | --locals)
1106     ac_prev=localstatedir ;;
1107   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109     localstatedir=$ac_optarg ;;
1110
1111   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112     ac_prev=mandir ;;
1113   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114     mandir=$ac_optarg ;;
1115
1116   -nfp | --nfp | --nf)
1117     # Obsolete; use --without-fp.
1118     with_fp=no ;;
1119
1120   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121   | --no-cr | --no-c | -n)
1122     no_create=yes ;;
1123
1124   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126     no_recursion=yes ;;
1127
1128   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130   | --oldin | --oldi | --old | --ol | --o)
1131     ac_prev=oldincludedir ;;
1132   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135     oldincludedir=$ac_optarg ;;
1136
1137   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138     ac_prev=prefix ;;
1139   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140     prefix=$ac_optarg ;;
1141
1142   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143   | --program-pre | --program-pr | --program-p)
1144     ac_prev=program_prefix ;;
1145   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147     program_prefix=$ac_optarg ;;
1148
1149   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150   | --program-suf | --program-su | --program-s)
1151     ac_prev=program_suffix ;;
1152   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154     program_suffix=$ac_optarg ;;
1155
1156   -program-transform-name | --program-transform-name \
1157   | --program-transform-nam | --program-transform-na \
1158   | --program-transform-n | --program-transform- \
1159   | --program-transform | --program-transfor \
1160   | --program-transfo | --program-transf \
1161   | --program-trans | --program-tran \
1162   | --progr-tra | --program-tr | --program-t)
1163     ac_prev=program_transform_name ;;
1164   -program-transform-name=* | --program-transform-name=* \
1165   | --program-transform-nam=* | --program-transform-na=* \
1166   | --program-transform-n=* | --program-transform-=* \
1167   | --program-transform=* | --program-transfor=* \
1168   | --program-transfo=* | --program-transf=* \
1169   | --program-trans=* | --program-tran=* \
1170   | --progr-tra=* | --program-tr=* | --program-t=*)
1171     program_transform_name=$ac_optarg ;;
1172
1173   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174     ac_prev=pdfdir ;;
1175   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176     pdfdir=$ac_optarg ;;
1177
1178   -psdir | --psdir | --psdi | --psd | --ps)
1179     ac_prev=psdir ;;
1180   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181     psdir=$ac_optarg ;;
1182
1183   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184   | -silent | --silent | --silen | --sile | --sil)
1185     silent=yes ;;
1186
1187   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188     ac_prev=sbindir ;;
1189   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190   | --sbi=* | --sb=*)
1191     sbindir=$ac_optarg ;;
1192
1193   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195   | --sharedst | --shareds | --shared | --share | --shar \
1196   | --sha | --sh)
1197     ac_prev=sharedstatedir ;;
1198   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201   | --sha=* | --sh=*)
1202     sharedstatedir=$ac_optarg ;;
1203
1204   -site | --site | --sit)
1205     ac_prev=site ;;
1206   -site=* | --site=* | --sit=*)
1207     site=$ac_optarg ;;
1208
1209   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210     ac_prev=srcdir ;;
1211   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212     srcdir=$ac_optarg ;;
1213
1214   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215   | --syscon | --sysco | --sysc | --sys | --sy)
1216     ac_prev=sysconfdir ;;
1217   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219     sysconfdir=$ac_optarg ;;
1220
1221   -target | --target | --targe | --targ | --tar | --ta | --t)
1222     ac_prev=target_alias ;;
1223   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224     target_alias=$ac_optarg ;;
1225
1226   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227     verbose=yes ;;
1228
1229   -version | --version | --versio | --versi | --vers | -V)
1230     ac_init_version=: ;;
1231
1232   -with-* | --with-*)
1233     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234     # Reject names that are not valid shell variable names.
1235     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236       as_fn_error $? "invalid package name: $ac_useropt"
1237     ac_useropt_orig=$ac_useropt
1238     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239     case $ac_user_opts in
1240       *"
1241 "with_$ac_useropt"
1242 "*) ;;
1243       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1244          ac_unrecognized_sep=', ';;
1245     esac
1246     eval with_$ac_useropt=\$ac_optarg ;;
1247
1248   -without-* | --without-*)
1249     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1250     # Reject names that are not valid shell variable names.
1251     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252       as_fn_error $? "invalid package name: $ac_useropt"
1253     ac_useropt_orig=$ac_useropt
1254     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255     case $ac_user_opts in
1256       *"
1257 "with_$ac_useropt"
1258 "*) ;;
1259       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1260          ac_unrecognized_sep=', ';;
1261     esac
1262     eval with_$ac_useropt=no ;;
1263
1264   --x)
1265     # Obsolete; use --with-x.
1266     with_x=yes ;;
1267
1268   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269   | --x-incl | --x-inc | --x-in | --x-i)
1270     ac_prev=x_includes ;;
1271   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273     x_includes=$ac_optarg ;;
1274
1275   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277     ac_prev=x_libraries ;;
1278   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280     x_libraries=$ac_optarg ;;
1281
1282   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1283 Try \`$0 --help' for more information"
1284     ;;
1285
1286   *=*)
1287     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288     # Reject names that are not valid shell variable names.
1289     case $ac_envvar in #(
1290       '' | [0-9]* | *[!_$as_cr_alnum]* )
1291       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1292     esac
1293     eval $ac_envvar=\$ac_optarg
1294     export $ac_envvar ;;
1295
1296   *)
1297     # FIXME: should be removed in autoconf 3.0.
1298     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1302     ;;
1303
1304   esac
1305 done
1306
1307 if test -n "$ac_prev"; then
1308   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309   as_fn_error $? "missing argument to $ac_option"
1310 fi
1311
1312 if test -n "$ac_unrecognized_opts"; then
1313   case $enable_option_checking in
1314     no) ;;
1315     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1316     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1317   esac
1318 fi
1319
1320 # Check all directory arguments for consistency.
1321 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322                 datadir sysconfdir sharedstatedir localstatedir includedir \
1323                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324                 libdir localedir mandir
1325 do
1326   eval ac_val=\$$ac_var
1327   # Remove trailing slashes.
1328   case $ac_val in
1329     */ )
1330       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1331       eval $ac_var=\$ac_val;;
1332   esac
1333   # Be sure to have absolute directory names.
1334   case $ac_val in
1335     [\\/$]* | ?:[\\/]* )  continue;;
1336     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337   esac
1338   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1339 done
1340
1341 # There might be people who depend on the old broken behavior: `$host'
1342 # used to hold the argument of --host etc.
1343 # FIXME: To remove some day.
1344 build=$build_alias
1345 host=$host_alias
1346 target=$target_alias
1347
1348 # FIXME: To remove some day.
1349 if test "x$host_alias" != x; then
1350   if test "x$build_alias" = x; then
1351     cross_compiling=maybe
1352   elif test "x$build_alias" != "x$host_alias"; then
1353     cross_compiling=yes
1354   fi
1355 fi
1356
1357 ac_tool_prefix=
1358 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1359
1360 test "$silent" = yes && exec 6>/dev/null
1361
1362
1363 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1364 ac_ls_di=`ls -di .` &&
1365 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1366   as_fn_error $? "working directory cannot be determined"
1367 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1368   as_fn_error $? "pwd does not report name of working directory"
1369
1370
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373   ac_srcdir_defaulted=yes
1374   # Try the directory containing this script, then the parent directory.
1375   ac_confdir=`$as_dirname -- "$as_myself" ||
1376 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377          X"$as_myself" : 'X\(//\)[^/]' \| \
1378          X"$as_myself" : 'X\(//\)$' \| \
1379          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1380 $as_echo X"$as_myself" |
1381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382             s//\1/
1383             q
1384           }
1385           /^X\(\/\/\)[^/].*/{
1386             s//\1/
1387             q
1388           }
1389           /^X\(\/\/\)$/{
1390             s//\1/
1391             q
1392           }
1393           /^X\(\/\).*/{
1394             s//\1/
1395             q
1396           }
1397           s/.*/./; q'`
1398   srcdir=$ac_confdir
1399   if test ! -r "$srcdir/$ac_unique_file"; then
1400     srcdir=..
1401   fi
1402 else
1403   ac_srcdir_defaulted=no
1404 fi
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1408 fi
1409 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 ac_abs_confdir=`(
1411         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1412         pwd)`
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415   srcdir=.
1416 fi
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1420 case $srcdir in
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 esac
1423 case $srcdir in
1424   *" "*)
1425     as_fn_error $? "path to source, $srcdir, contains spaces"
1426     ;;
1427 esac
1428 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1429
1430 for ac_var in $ac_precious_vars; do
1431   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1432   eval ac_env_${ac_var}_value=\$${ac_var}
1433   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1434   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1435 done
1436
1437 #
1438 # Report the --help message.
1439 #
1440 if test "$ac_init_help" = "long"; then
1441   # Omit some internal or obsolete options to make the list less imposing.
1442   # This message is too long to be a string in the A/UX 3.1 sh.
1443   cat <<_ACEOF
1444 \`configure' configures this package to adapt to many kinds of systems.
1445
1446 Usage: $0 [OPTION]... [VAR=VALUE]...
1447
1448 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1449 VAR=VALUE.  See below for descriptions of some of the useful variables.
1450
1451 Defaults for the options are specified in brackets.
1452
1453 Configuration:
1454   -h, --help              display this help and exit
1455       --help=short        display options specific to this package
1456       --help=recursive    display the short help of all the included packages
1457   -V, --version           display version information and exit
1458   -q, --quiet, --silent   do not print \`checking ...' messages
1459       --cache-file=FILE   cache test results in FILE [disabled]
1460   -C, --config-cache      alias for \`--cache-file=config.cache'
1461   -n, --no-create         do not create output files
1462       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1463
1464 Installation directories:
1465   --prefix=PREFIX         install architecture-independent files in PREFIX
1466                           [$ac_default_prefix]
1467   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1468                           [PREFIX]
1469
1470 By default, \`make install' will install all the files in
1471 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1472 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1473 for instance \`--prefix=\$HOME'.
1474
1475 For better control, use the options below.
1476
1477 Fine tuning of the installation directories:
1478   --bindir=DIR            user executables [EPREFIX/bin]
1479   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1480   --libexecdir=DIR        program executables [EPREFIX/libexec]
1481   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1482   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1483   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1484   --libdir=DIR            object code libraries [EPREFIX/lib]
1485   --includedir=DIR        C header files [PREFIX/include]
1486   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1487   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1488   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1489   --infodir=DIR           info documentation [DATAROOTDIR/info]
1490   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1491   --mandir=DIR            man documentation [DATAROOTDIR/man]
1492   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1493   --htmldir=DIR           html documentation [DOCDIR]
1494   --dvidir=DIR            dvi documentation [DOCDIR]
1495   --pdfdir=DIR            pdf documentation [DOCDIR]
1496   --psdir=DIR             ps documentation [DOCDIR]
1497 _ACEOF
1498
1499   cat <<\_ACEOF
1500
1501 Program names:
1502   --program-prefix=PREFIX            prepend PREFIX to installed program names
1503   --program-suffix=SUFFIX            append SUFFIX to installed program names
1504   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1505
1506 System types:
1507   --build=BUILD     configure for building on BUILD [guessed]
1508   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1509   --target=TARGET   configure for building compilers for TARGET [HOST]
1510 _ACEOF
1511 fi
1512
1513 if test -n "$ac_init_help"; then
1514
1515   cat <<\_ACEOF
1516
1517 Optional Features:
1518   --disable-option-checking  ignore unrecognized --enable/--with options
1519   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1520   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1521   --enable-as-accelerator-for=ARG
1522                           build as offload target compiler. Specify offload
1523                           host triple by ARG
1524   --enable-offload-targets=LIST
1525                           enable offloading to devices from comma-separated
1526                           LIST of TARGET[=DIR]. Use optional path to find
1527                           offload target compiler during the build
1528   --enable-offload-defaulted
1529                 If enabled, configured but not installed offload compilers and
1530                 libgomp plugins are silently ignored.  Useful for distribution
1531                 compilers where those are in separate optional packages.
1532
1533   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1534   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1535   --enable-compressed-debug-sections={all,gas,gold,ld,none}
1536                           Enable compressed debug sections for gas, gold or ld
1537                           by default
1538   --disable-libquadmath   do not build libquadmath directory
1539   --disable-libquadmath-support
1540                           disable libquadmath support for Fortran
1541   --enable-libada         build libada directory
1542   --enable-libssp         build libssp directory
1543   --disable-libstdcxx     do not build libstdc++-v3 directory
1544   --enable-bootstrap      enable bootstrapping [yes if native build]
1545   --enable-pgo-build[=lto]
1546                           enable the PGO build
1547   --disable-isl-version-check
1548                           disable check for isl version
1549   --enable-lto            enable link time optimization support
1550   --enable-linker-plugin-configure-flags=FLAGS
1551                           additional flags for configuring linker plugins
1552                           [none]
1553   --enable-linker-plugin-flags=FLAGS
1554                           additional flags for configuring and building linker
1555                           plugins [none]
1556   --enable-host-shared    build host code as shared libraries
1557   --enable-stage1-languages[=all]
1558                           choose additional languages to build during stage1.
1559                           Mostly useful for compiler development
1560   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1561                           Objective-C runtime
1562   --enable-vtable-verify  Enable vtable verification feature
1563   --enable-serial-[{host,target,build}-]configure
1564                           force sequential configuration of sub-packages for
1565                           the host, target or build machine, or all
1566                           sub-packages
1567   --enable-maintainer-mode
1568                           enable make rules and dependencies not useful (and
1569                           sometimes confusing) to the casual installer
1570   --enable-stage1-checking[=all]
1571                           choose additional checking for stage1 of the
1572                           compiler
1573   --enable-werror         enable -Werror in bootstrap stage2 and later
1574
1575 Optional Packages:
1576   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1577   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1578   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1579   --with-system-zlib      use installed libz
1580   --with-mpc=PATH         specify prefix directory for installed MPC package.
1581                           Equivalent to --with-mpc-include=PATH/include plus
1582                           --with-mpc-lib=PATH/lib
1583   --with-mpc-include=PATH specify directory for installed MPC include files
1584   --with-mpc-lib=PATH     specify directory for the installed MPC library
1585   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1586                           Equivalent to --with-mpfr-include=PATH/include plus
1587                           --with-mpfr-lib=PATH/lib
1588   --with-mpfr-include=PATH
1589                           specify directory for installed MPFR include files
1590   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1591   --with-gmp=PATH         specify prefix directory for the installed GMP
1592                           package. Equivalent to
1593                           --with-gmp-include=PATH/include plus
1594                           --with-gmp-lib=PATH/lib
1595   --with-gmp-include=PATH specify directory for installed GMP include files
1596   --with-gmp-lib=PATH     specify directory for the installed GMP library
1597   --with-stage1-libs=LIBS libraries for stage1
1598   --with-static-standard-libraries
1599                           use -static-libstdc++ and -static-libgcc
1600                           (default=auto)
1601   --with-stage1-ldflags=FLAGS
1602                           linker flags for stage1
1603   --with-boot-libs=LIBS   libraries for stage2 and later
1604   --with-boot-ldflags=FLAGS
1605                           linker flags for stage2 and later
1606   --with-isl=PATH         Specify prefix directory for the installed isl
1607                           package. Equivalent to
1608                           --with-isl-include=PATH/include plus
1609                           --with-isl-lib=PATH/lib
1610   --with-isl-include=PATH Specify directory for installed isl include files
1611   --with-isl-lib=PATH     Specify the directory for the installed isl library
1612   --with-target-bdw-gc=PATHLIST
1613                           specify prefix directory for installed bdw-gc
1614                           package. Equivalent to
1615                           --with-target-bdw-gc-include=PATH/include plus
1616                           --with-target-bdw-gc-lib=PATH/lib
1617   --with-target-bdw-gc-include=PATHLIST
1618                           specify directories for installed bdw-gc include
1619                           files
1620   --with-target-bdw-gc-lib=PATHLIST
1621                           specify directories for installed bdw-gc library
1622   --with-gcc-major-version-only
1623                           use only GCC major number in filesystem paths
1624   --with-build-sysroot=SYSROOT
1625                           use sysroot as the system root during the build
1626   --with-debug-prefix-map='A=B C=D ...'
1627                           map A to B, C to D ... in debug information
1628   --with-build-config='NAME NAME2...'
1629                           use config/NAME.mk build configuration
1630   --with-build-time-tools=PATH
1631                           use given path to find target tools during the build
1632
1633 Some influential environment variables:
1634   CC          C compiler command
1635   CFLAGS      C compiler flags
1636   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1637               nonstandard directory <lib dir>
1638   LIBS        libraries to pass to the linker, e.g. -l<library>
1639   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1640               you have headers in a nonstandard directory <include dir>
1641   CXX         C++ compiler command
1642   CXXFLAGS    C++ compiler flags
1643   build_configargs
1644               additional configure arguments for build directories
1645   host_configargs
1646               additional configure arguments for host directories
1647   target_configargs
1648               additional configure arguments for target directories
1649   AR          AR for the host
1650   AS          AS for the host
1651   DLLTOOL     DLLTOOL for the host
1652   DSYMUTIL    DSYMUTIL for the host
1653   LD          LD for the host
1654   LIPO        LIPO for the host
1655   NM          NM for the host
1656   RANLIB      RANLIB for the host
1657   STRIP       STRIP for the host
1658   WINDRES     WINDRES for the host
1659   WINDMC      WINDMC for the host
1660   OBJCOPY     OBJCOPY for the host
1661   OBJDUMP     OBJDUMP for the host
1662   OTOOL       OTOOL for the host
1663   READELF     READELF for the host
1664   CC_FOR_TARGET
1665               CC for the target
1666   CXX_FOR_TARGET
1667               CXX for the target
1668   GCC_FOR_TARGET
1669               GCC for the target
1670   GFORTRAN_FOR_TARGET
1671               GFORTRAN for the target
1672   GOC_FOR_TARGET
1673               GOC for the target
1674   GDC_FOR_TARGET
1675               GDC for the target
1676   AR_FOR_TARGET
1677               AR for the target
1678   AS_FOR_TARGET
1679               AS for the target
1680   DLLTOOL_FOR_TARGET
1681               DLLTOOL for the target
1682   DSYMUTIL_FOR_TARGET
1683               DSYMUTIL for the target
1684   LD_FOR_TARGET
1685               LD for the target
1686   LIPO_FOR_TARGET
1687               LIPO for the target
1688   NM_FOR_TARGET
1689               NM for the target
1690   OBJCOPY_FOR_TARGET
1691               OBJCOPY for the target
1692   OBJDUMP_FOR_TARGET
1693               OBJDUMP for the target
1694   OTOOL_FOR_TARGET
1695               OTOOL for the target
1696   RANLIB_FOR_TARGET
1697               RANLIB for the target
1698   READELF_FOR_TARGET
1699               READELF for the target
1700   STRIP_FOR_TARGET
1701               STRIP for the target
1702   WINDRES_FOR_TARGET
1703               WINDRES for the target
1704   WINDMC_FOR_TARGET
1705               WINDMC for the target
1706
1707 Use these variables to override the choices made by `configure' or to help
1708 it to find libraries and programs with nonstandard names/locations.
1709
1710 Report bugs to the package provider.
1711 _ACEOF
1712 ac_status=$?
1713 fi
1714
1715 if test "$ac_init_help" = "recursive"; then
1716   # If there are subdirs, report their specific --help.
1717   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1718     test -d "$ac_dir" ||
1719       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1720       continue
1721     ac_builddir=.
1722
1723 case "$ac_dir" in
1724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1725 *)
1726   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1727   # A ".." for each directory in $ac_dir_suffix.
1728   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1729   case $ac_top_builddir_sub in
1730   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1732   esac ;;
1733 esac
1734 ac_abs_top_builddir=$ac_pwd
1735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1736 # for backward compatibility:
1737 ac_top_builddir=$ac_top_build_prefix
1738
1739 case $srcdir in
1740   .)  # We are building in place.
1741     ac_srcdir=.
1742     ac_top_srcdir=$ac_top_builddir_sub
1743     ac_abs_top_srcdir=$ac_pwd ;;
1744   [\\/]* | ?:[\\/]* )  # Absolute name.
1745     ac_srcdir=$srcdir$ac_dir_suffix;
1746     ac_top_srcdir=$srcdir
1747     ac_abs_top_srcdir=$srcdir ;;
1748   *) # Relative name.
1749     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1750     ac_top_srcdir=$ac_top_build_prefix$srcdir
1751     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1752 esac
1753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1754
1755     cd "$ac_dir" || { ac_status=$?; continue; }
1756     # Check for guested configure.
1757     if test -f "$ac_srcdir/configure.gnu"; then
1758       echo &&
1759       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1760     elif test -f "$ac_srcdir/configure"; then
1761       echo &&
1762       $SHELL "$ac_srcdir/configure" --help=recursive
1763     else
1764       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1765     fi || ac_status=$?
1766     cd "$ac_pwd" || { ac_status=$?; break; }
1767   done
1768 fi
1769
1770 test -n "$ac_init_help" && exit $ac_status
1771 if $ac_init_version; then
1772   cat <<\_ACEOF
1773 configure
1774 generated by GNU Autoconf 2.69
1775
1776 Copyright (C) 2012 Free Software Foundation, Inc.
1777 This configure script is free software; the Free Software Foundation
1778 gives unlimited permission to copy, distribute and modify it.
1779 _ACEOF
1780   exit
1781 fi
1782
1783 ## ------------------------ ##
1784 ## Autoconf initialization. ##
1785 ## ------------------------ ##
1786
1787 # ac_fn_c_try_compile LINENO
1788 # --------------------------
1789 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_compile ()
1791 {
1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793   rm -f conftest.$ac_objext
1794   if { { ac_try="$ac_compile"
1795 case "(($ac_try" in
1796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797   *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801   (eval "$ac_compile") 2>conftest.err
1802   ac_status=$?
1803   if test -s conftest.err; then
1804     grep -v '^ *+' conftest.err >conftest.er1
1805     cat conftest.er1 >&5
1806     mv -f conftest.er1 conftest.err
1807   fi
1808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809   test $ac_status = 0; } && {
1810          test -z "$ac_c_werror_flag" ||
1811          test ! -s conftest.err
1812        } && test -s conftest.$ac_objext; then :
1813   ac_retval=0
1814 else
1815   $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1817
1818         ac_retval=1
1819 fi
1820   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821   as_fn_set_status $ac_retval
1822
1823 } # ac_fn_c_try_compile
1824
1825 # ac_fn_cxx_try_compile LINENO
1826 # ----------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_compile ()
1829 {
1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831   rm -f conftest.$ac_objext
1832   if { { ac_try="$ac_compile"
1833 case "(($ac_try" in
1834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835   *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839   (eval "$ac_compile") 2>conftest.err
1840   ac_status=$?
1841   if test -s conftest.err; then
1842     grep -v '^ *+' conftest.err >conftest.er1
1843     cat conftest.er1 >&5
1844     mv -f conftest.er1 conftest.err
1845   fi
1846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847   test $ac_status = 0; } && {
1848          test -z "$ac_cxx_werror_flag" ||
1849          test ! -s conftest.err
1850        } && test -s conftest.$ac_objext; then :
1851   ac_retval=0
1852 else
1853   $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856         ac_retval=1
1857 fi
1858   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859   as_fn_set_status $ac_retval
1860
1861 } # ac_fn_cxx_try_compile
1862
1863 # ac_fn_cxx_try_link LINENO
1864 # -------------------------
1865 # Try to link conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_cxx_try_link ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   rm -f conftest.$ac_objext conftest$ac_exeext
1870   if { { ac_try="$ac_link"
1871 case "(($ac_try" in
1872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873   *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877   (eval "$ac_link") 2>conftest.err
1878   ac_status=$?
1879   if test -s conftest.err; then
1880     grep -v '^ *+' conftest.err >conftest.er1
1881     cat conftest.er1 >&5
1882     mv -f conftest.er1 conftest.err
1883   fi
1884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885   test $ac_status = 0; } && {
1886          test -z "$ac_cxx_werror_flag" ||
1887          test ! -s conftest.err
1888        } && test -s conftest$ac_exeext && {
1889          test "$cross_compiling" = yes ||
1890          test -x conftest$ac_exeext
1891        }; then :
1892   ac_retval=0
1893 else
1894   $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1896
1897         ac_retval=1
1898 fi
1899   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1900   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1901   # interfere with the next link command; also delete a directory that is
1902   # left behind by Apple's compiler.  We do this before executing the actions.
1903   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905   as_fn_set_status $ac_retval
1906
1907 } # ac_fn_cxx_try_link
1908
1909 # ac_fn_c_try_link LINENO
1910 # -----------------------
1911 # Try to link conftest.$ac_ext, and return whether this succeeded.
1912 ac_fn_c_try_link ()
1913 {
1914   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915   rm -f conftest.$ac_objext conftest$ac_exeext
1916   if { { ac_try="$ac_link"
1917 case "(($ac_try" in
1918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919   *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923   (eval "$ac_link") 2>conftest.err
1924   ac_status=$?
1925   if test -s conftest.err; then
1926     grep -v '^ *+' conftest.err >conftest.er1
1927     cat conftest.er1 >&5
1928     mv -f conftest.er1 conftest.err
1929   fi
1930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931   test $ac_status = 0; } && {
1932          test -z "$ac_c_werror_flag" ||
1933          test ! -s conftest.err
1934        } && test -s conftest$ac_exeext && {
1935          test "$cross_compiling" = yes ||
1936          test -x conftest$ac_exeext
1937        }; then :
1938   ac_retval=0
1939 else
1940   $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1942
1943         ac_retval=1
1944 fi
1945   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947   # interfere with the next link command; also delete a directory that is
1948   # left behind by Apple's compiler.  We do this before executing the actions.
1949   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951   as_fn_set_status $ac_retval
1952
1953 } # ac_fn_c_try_link
1954 cat >config.log <<_ACEOF
1955 This file contains any messages produced by compilers while
1956 running configure, to aid debugging if configure makes a mistake.
1957
1958 It was created by $as_me, which was
1959 generated by GNU Autoconf 2.69.  Invocation command line was
1960
1961   $ $0 $@
1962
1963 _ACEOF
1964 exec 5>>config.log
1965 {
1966 cat <<_ASUNAME
1967 ## --------- ##
1968 ## Platform. ##
1969 ## --------- ##
1970
1971 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1972 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1973 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1974 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1975 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1976
1977 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1978 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1979
1980 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1981 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1982 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1983 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1984 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1985 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1986 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1987
1988 _ASUNAME
1989
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1992 do
1993   IFS=$as_save_IFS
1994   test -z "$as_dir" && as_dir=.
1995     $as_echo "PATH: $as_dir"
1996   done
1997 IFS=$as_save_IFS
1998
1999 } >&5
2000
2001 cat >&5 <<_ACEOF
2002
2003
2004 ## ----------- ##
2005 ## Core tests. ##
2006 ## ----------- ##
2007
2008 _ACEOF
2009
2010
2011 # Keep a trace of the command line.
2012 # Strip out --no-create and --no-recursion so they do not pile up.
2013 # Strip out --silent because we don't want to record it for future runs.
2014 # Also quote any args containing shell meta-characters.
2015 # Make two passes to allow for proper duplicate-argument suppression.
2016 ac_configure_args=
2017 ac_configure_args0=
2018 ac_configure_args1=
2019 ac_must_keep_next=false
2020 for ac_pass in 1 2
2021 do
2022   for ac_arg
2023   do
2024     case $ac_arg in
2025     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2026     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2027     | -silent | --silent | --silen | --sile | --sil)
2028       continue ;;
2029     *\'*)
2030       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2031     esac
2032     case $ac_pass in
2033     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2034     2)
2035       as_fn_append ac_configure_args1 " '$ac_arg'"
2036       if test $ac_must_keep_next = true; then
2037         ac_must_keep_next=false # Got value, back to normal.
2038       else
2039         case $ac_arg in
2040           *=* | --config-cache | -C | -disable-* | --disable-* \
2041           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2042           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2043           | -with-* | --with-* | -without-* | --without-* | --x)
2044             case "$ac_configure_args0 " in
2045               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2046             esac
2047             ;;
2048           -* ) ac_must_keep_next=true ;;
2049         esac
2050       fi
2051       as_fn_append ac_configure_args " '$ac_arg'"
2052       ;;
2053     esac
2054   done
2055 done
2056 { ac_configure_args0=; unset ac_configure_args0;}
2057 { ac_configure_args1=; unset ac_configure_args1;}
2058
2059 # When interrupted or exit'd, cleanup temporary files, and complete
2060 # config.log.  We remove comments because anyway the quotes in there
2061 # would cause problems or look ugly.
2062 # WARNING: Use '\'' to represent an apostrophe within the trap.
2063 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2064 trap 'exit_status=$?
2065   # Save into config.log some information that might help in debugging.
2066   {
2067     echo
2068
2069     $as_echo "## ---------------- ##
2070 ## Cache variables. ##
2071 ## ---------------- ##"
2072     echo
2073     # The following way of writing the cache mishandles newlines in values,
2074 (
2075   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2076     eval ac_val=\$$ac_var
2077     case $ac_val in #(
2078     *${as_nl}*)
2079       case $ac_var in #(
2080       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2081 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2082       esac
2083       case $ac_var in #(
2084       _ | IFS | as_nl) ;; #(
2085       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2086       *) { eval $ac_var=; unset $ac_var;} ;;
2087       esac ;;
2088     esac
2089   done
2090   (set) 2>&1 |
2091     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2092     *${as_nl}ac_space=\ *)
2093       sed -n \
2094         "s/'\''/'\''\\\\'\'''\''/g;
2095           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2096       ;; #(
2097     *)
2098       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2099       ;;
2100     esac |
2101     sort
2102 )
2103     echo
2104
2105     $as_echo "## ----------------- ##
2106 ## Output variables. ##
2107 ## ----------------- ##"
2108     echo
2109     for ac_var in $ac_subst_vars
2110     do
2111       eval ac_val=\$$ac_var
2112       case $ac_val in
2113       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2114       esac
2115       $as_echo "$ac_var='\''$ac_val'\''"
2116     done | sort
2117     echo
2118
2119     if test -n "$ac_subst_files"; then
2120       $as_echo "## ------------------- ##
2121 ## File substitutions. ##
2122 ## ------------------- ##"
2123       echo
2124       for ac_var in $ac_subst_files
2125       do
2126         eval ac_val=\$$ac_var
2127         case $ac_val in
2128         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2129         esac
2130         $as_echo "$ac_var='\''$ac_val'\''"
2131       done | sort
2132       echo
2133     fi
2134
2135     if test -s confdefs.h; then
2136       $as_echo "## ----------- ##
2137 ## confdefs.h. ##
2138 ## ----------- ##"
2139       echo
2140       cat confdefs.h
2141       echo
2142     fi
2143     test "$ac_signal" != 0 &&
2144       $as_echo "$as_me: caught signal $ac_signal"
2145     $as_echo "$as_me: exit $exit_status"
2146   } >&5
2147   rm -f core *.core core.conftest.* &&
2148     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2149     exit $exit_status
2150 ' 0
2151 for ac_signal in 1 2 13 15; do
2152   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2153 done
2154 ac_signal=0
2155
2156 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2157 rm -f -r conftest* confdefs.h
2158
2159 $as_echo "/* confdefs.h */" > confdefs.h
2160
2161 # Predefined preprocessor variables.
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_NAME "$PACKAGE_NAME"
2165 _ACEOF
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2169 _ACEOF
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2173 _ACEOF
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_STRING "$PACKAGE_STRING"
2177 _ACEOF
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_URL "$PACKAGE_URL"
2185 _ACEOF
2186
2187
2188 # Let the site file select an alternate cache file if it wants to.
2189 # Prefer an explicitly selected file to automatically selected ones.
2190 ac_site_file1=NONE
2191 ac_site_file2=NONE
2192 if test -n "$CONFIG_SITE"; then
2193   # We do not want a PATH search for config.site.
2194   case $CONFIG_SITE in #((
2195     -*)  ac_site_file1=./$CONFIG_SITE;;
2196     */*) ac_site_file1=$CONFIG_SITE;;
2197     *)   ac_site_file1=./$CONFIG_SITE;;
2198   esac
2199 elif test "x$prefix" != xNONE; then
2200   ac_site_file1=$prefix/share/config.site
2201   ac_site_file2=$prefix/etc/config.site
2202 else
2203   ac_site_file1=$ac_default_prefix/share/config.site
2204   ac_site_file2=$ac_default_prefix/etc/config.site
2205 fi
2206 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2207 do
2208   test "x$ac_site_file" = xNONE && continue
2209   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2210     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2211 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2212     sed 's/^/| /' "$ac_site_file" >&5
2213     . "$ac_site_file" \
2214       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216 as_fn_error $? "failed to load site script $ac_site_file
2217 See \`config.log' for more details" "$LINENO" 5; }
2218   fi
2219 done
2220
2221 if test -r "$cache_file"; then
2222   # Some versions of bash will fail to source /dev/null (special files
2223   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2224   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2225     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2226 $as_echo "$as_me: loading cache $cache_file" >&6;}
2227     case $cache_file in
2228       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2229       *)                      . "./$cache_file";;
2230     esac
2231   fi
2232 else
2233   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2234 $as_echo "$as_me: creating cache $cache_file" >&6;}
2235   >$cache_file
2236 fi
2237
2238 # Check that the precious variables saved in the cache have kept the same
2239 # value.
2240 ac_cache_corrupted=false
2241 for ac_var in $ac_precious_vars; do
2242   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2243   eval ac_new_set=\$ac_env_${ac_var}_set
2244   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2245   eval ac_new_val=\$ac_env_${ac_var}_value
2246   case $ac_old_set,$ac_new_set in
2247     set,)
2248       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2249 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2250       ac_cache_corrupted=: ;;
2251     ,set)
2252       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2253 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2254       ac_cache_corrupted=: ;;
2255     ,);;
2256     *)
2257       if test "x$ac_old_val" != "x$ac_new_val"; then
2258         # differences in whitespace do not lead to failure.
2259         ac_old_val_w=`echo x $ac_old_val`
2260         ac_new_val_w=`echo x $ac_new_val`
2261         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2262           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2263 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2264           ac_cache_corrupted=:
2265         else
2266           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2267 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2268           eval $ac_var=\$ac_old_val
2269         fi
2270         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2271 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2272         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2273 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2274       fi;;
2275   esac
2276   # Pass precious variables to config.status.
2277   if test "$ac_new_set" = set; then
2278     case $ac_new_val in
2279     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2280     *) ac_arg=$ac_var=$ac_new_val ;;
2281     esac
2282     case " $ac_configure_args " in
2283       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2284       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2285     esac
2286   fi
2287 done
2288 if $ac_cache_corrupted; then
2289   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2291   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2292 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2293   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2294 fi
2295 ## -------------------- ##
2296 ## Main body of script. ##
2297 ## -------------------- ##
2298
2299 ac_ext=c
2300 ac_cpp='$CPP $CPPFLAGS'
2301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304
2305
2306
2307
2308
2309
2310
2311
2312 progname=$0
2313 # if PWD already has a value, it is probably wrong.
2314 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2315
2316 # Export original configure arguments for use by sub-configures.
2317 # Quote arguments with shell meta charatcers.
2318 TOPLEVEL_CONFIGURE_ARGUMENTS=
2319 set -- "$progname" "$@"
2320 for ac_arg
2321 do
2322   case "$ac_arg" in
2323   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2324     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2325     # if the argument is of the form -foo=baz, quote the baz part only
2326     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2327   *) ;;
2328   esac
2329   # Add the quoted argument to the list.
2330   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2331 done
2332 if test "$silent" = yes; then
2333   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2334 fi
2335 # Remove the initial space we just introduced and, as these will be
2336 # expanded by make, quote '$'.
2337 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2338
2339
2340 # Find the build, host, and target systems.
2341 ac_aux_dir=
2342 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2343   if test -f "$ac_dir/install-sh"; then
2344     ac_aux_dir=$ac_dir
2345     ac_install_sh="$ac_aux_dir/install-sh -c"
2346     break
2347   elif test -f "$ac_dir/install.sh"; then
2348     ac_aux_dir=$ac_dir
2349     ac_install_sh="$ac_aux_dir/install.sh -c"
2350     break
2351   elif test -f "$ac_dir/shtool"; then
2352     ac_aux_dir=$ac_dir
2353     ac_install_sh="$ac_aux_dir/shtool install -c"
2354     break
2355   fi
2356 done
2357 if test -z "$ac_aux_dir"; then
2358   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2359 fi
2360
2361 # These three variables are undocumented and unsupported,
2362 # and are intended to be withdrawn in a future Autoconf release.
2363 # They can cause serious problems if a builder's source tree is in a directory
2364 # whose full name contains unusual characters.
2365 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2366 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2367 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2368
2369
2370 # Make sure we can run config.sub.
2371 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2372   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2373
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2375 $as_echo_n "checking build system type... " >&6; }
2376 if ${ac_cv_build+:} false; then :
2377   $as_echo_n "(cached) " >&6
2378 else
2379   ac_build_alias=$build_alias
2380 test "x$ac_build_alias" = x &&
2381   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2382 test "x$ac_build_alias" = x &&
2383   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2384 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2385   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2386
2387 fi
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2389 $as_echo "$ac_cv_build" >&6; }
2390 case $ac_cv_build in
2391 *-*-*) ;;
2392 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2393 esac
2394 build=$ac_cv_build
2395 ac_save_IFS=$IFS; IFS='-'
2396 set x $ac_cv_build
2397 shift
2398 build_cpu=$1
2399 build_vendor=$2
2400 shift; shift
2401 # Remember, the first character of IFS is used to create $*,
2402 # except with old shells:
2403 build_os=$*
2404 IFS=$ac_save_IFS
2405 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2406
2407
2408  case ${build_alias} in
2409   "") build_noncanonical=${build} ;;
2410   *) build_noncanonical=${build_alias} ;;
2411 esac
2412
2413
2414
2415  case ${host_alias} in
2416   "") host_noncanonical=${build_noncanonical} ;;
2417   *) host_noncanonical=${host_alias} ;;
2418 esac
2419
2420
2421
2422  case ${target_alias} in
2423   "") target_noncanonical=${host_noncanonical} ;;
2424   *) target_noncanonical=${target_alias} ;;
2425 esac
2426
2427
2428
2429
2430 test "$host_noncanonical" = "$target_noncanonical" &&
2431   test "$program_prefix$program_suffix$program_transform_name" = \
2432     NONENONEs,x,x, &&
2433   program_transform_name=s,y,y,
2434
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2436 $as_echo_n "checking host system type... " >&6; }
2437 if ${ac_cv_host+:} false; then :
2438   $as_echo_n "(cached) " >&6
2439 else
2440   if test "x$host_alias" = x; then
2441   ac_cv_host=$ac_cv_build
2442 else
2443   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2444     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2445 fi
2446
2447 fi
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2449 $as_echo "$ac_cv_host" >&6; }
2450 case $ac_cv_host in
2451 *-*-*) ;;
2452 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2453 esac
2454 host=$ac_cv_host
2455 ac_save_IFS=$IFS; IFS='-'
2456 set x $ac_cv_host
2457 shift
2458 host_cpu=$1
2459 host_vendor=$2
2460 shift; shift
2461 # Remember, the first character of IFS is used to create $*,
2462 # except with old shells:
2463 host_os=$*
2464 IFS=$ac_save_IFS
2465 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2466
2467
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2469 $as_echo_n "checking target system type... " >&6; }
2470 if ${ac_cv_target+:} false; then :
2471   $as_echo_n "(cached) " >&6
2472 else
2473   if test "x$target_alias" = x; then
2474   ac_cv_target=$ac_cv_host
2475 else
2476   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2477     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2478 fi
2479
2480 fi
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2482 $as_echo "$ac_cv_target" >&6; }
2483 case $ac_cv_target in
2484 *-*-*) ;;
2485 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2486 esac
2487 target=$ac_cv_target
2488 ac_save_IFS=$IFS; IFS='-'
2489 set x $ac_cv_target
2490 shift
2491 target_cpu=$1
2492 target_vendor=$2
2493 shift; shift
2494 # Remember, the first character of IFS is used to create $*,
2495 # except with old shells:
2496 target_os=$*
2497 IFS=$ac_save_IFS
2498 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2499
2500
2501 # The aliases save the names the user supplied, while $host etc.
2502 # will get canonicalized.
2503 test -n "$target_alias" &&
2504   test "$program_prefix$program_suffix$program_transform_name" = \
2505     NONENONEs,x,x, &&
2506   program_prefix=${target_alias}-
2507
2508 test "$program_prefix" != NONE &&
2509   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2510 # Use a double $ so make ignores it.
2511 test "$program_suffix" != NONE &&
2512   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2513 # Double any \ or $.
2514 # By default was `s,x,x', remove it if useless.
2515 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2516 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2517
2518
2519
2520 # Get 'install' or 'install-sh' and its variants.
2521 # Find a good install program.  We prefer a C program (faster),
2522 # so one script is as good as another.  But avoid the broken or
2523 # incompatible versions:
2524 # SysV /etc/install, /usr/sbin/install
2525 # SunOS /usr/etc/install
2526 # IRIX /sbin/install
2527 # AIX /bin/install
2528 # AmigaOS /C/install, which installs bootblocks on floppy discs
2529 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2530 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2531 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2532 # OS/2's system install, which has a completely different semantic
2533 # ./install, which can be erroneously created by make from ./install.sh.
2534 # Reject install programs that cannot install multiple files.
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2536 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2537 if test -z "$INSTALL"; then
2538 if ${ac_cv_path_install+:} false; then :
2539   $as_echo_n "(cached) " >&6
2540 else
2541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2543 do
2544   IFS=$as_save_IFS
2545   test -z "$as_dir" && as_dir=.
2546     # Account for people who put trailing slashes in PATH elements.
2547 case $as_dir/ in #((
2548   ./ | .// | /[cC]/* | \
2549   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2550   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2551   /usr/ucb/* ) ;;
2552   *)
2553     # OSF1 and SCO ODT 3.0 have their own names for install.
2554     # Don't use installbsd from OSF since it installs stuff as root
2555     # by default.
2556     for ac_prog in ginstall scoinst install; do
2557       for ac_exec_ext in '' $ac_executable_extensions; do
2558         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2559           if test $ac_prog = install &&
2560             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2561             # AIX install.  It has an incompatible calling convention.
2562             :
2563           elif test $ac_prog = install &&
2564             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2565             # program-specific install script used by HP pwplus--don't use.
2566             :
2567           else
2568             rm -rf conftest.one conftest.two conftest.dir
2569             echo one > conftest.one
2570             echo two > conftest.two
2571             mkdir conftest.dir
2572             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2573               test -s conftest.one && test -s conftest.two &&
2574               test -s conftest.dir/conftest.one &&
2575               test -s conftest.dir/conftest.two
2576             then
2577               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2578               break 3
2579             fi
2580           fi
2581         fi
2582       done
2583     done
2584     ;;
2585 esac
2586
2587   done
2588 IFS=$as_save_IFS
2589
2590 rm -rf conftest.one conftest.two conftest.dir
2591
2592 fi
2593   if test "${ac_cv_path_install+set}" = set; then
2594     INSTALL=$ac_cv_path_install
2595   else
2596     # As a last resort, use the slow shell script.  Don't cache a
2597     # value for INSTALL within a source directory, because that will
2598     # break other packages using the cache if that directory is
2599     # removed, or if the value is a relative name.
2600     INSTALL=$ac_install_sh
2601   fi
2602 fi
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2604 $as_echo "$INSTALL" >&6; }
2605
2606 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2607 # It thinks the first close brace ends the variable substitution.
2608 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2609
2610 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2611
2612 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2613
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2615 $as_echo_n "checking whether ln works... " >&6; }
2616 if ${acx_cv_prog_LN+:} false; then :
2617   $as_echo_n "(cached) " >&6
2618 else
2619   rm -f conftestdata_t
2620 echo >conftestdata_f
2621 if ln conftestdata_f conftestdata_t 2>/dev/null
2622 then
2623   acx_cv_prog_LN=ln
2624 else
2625   acx_cv_prog_LN=no
2626 fi
2627 rm -f conftestdata_f conftestdata_t
2628
2629 fi
2630 if test $acx_cv_prog_LN = no; then
2631   LN="cp"
2632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2633 $as_echo "no, using $LN" >&6; }
2634 else
2635   LN="$acx_cv_prog_LN"
2636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2637 $as_echo "yes" >&6; }
2638 fi
2639
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2641 $as_echo_n "checking whether ln -s works... " >&6; }
2642 LN_S=$as_ln_s
2643 if test "$LN_S" = "ln -s"; then
2644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2645 $as_echo "yes" >&6; }
2646 else
2647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2648 $as_echo "no, using $LN_S" >&6; }
2649 fi
2650
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2652 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2653 if ${ac_cv_path_SED+:} false; then :
2654   $as_echo_n "(cached) " >&6
2655 else
2656             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2657      for ac_i in 1 2 3 4 5 6 7; do
2658        ac_script="$ac_script$as_nl$ac_script"
2659      done
2660      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2661      { ac_script=; unset ac_script;}
2662      if test -z "$SED"; then
2663   ac_path_SED_found=false
2664   # Loop through the user's path and test for each of PROGNAME-LIST
2665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668   IFS=$as_save_IFS
2669   test -z "$as_dir" && as_dir=.
2670     for ac_prog in sed gsed; do
2671     for ac_exec_ext in '' $ac_executable_extensions; do
2672       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2673       as_fn_executable_p "$ac_path_SED" || continue
2674 # Check for GNU ac_path_SED and select it if it is found.
2675   # Check for GNU $ac_path_SED
2676 case `"$ac_path_SED" --version 2>&1` in
2677 *GNU*)
2678   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2679 *)
2680   ac_count=0
2681   $as_echo_n 0123456789 >"conftest.in"
2682   while :
2683   do
2684     cat "conftest.in" "conftest.in" >"conftest.tmp"
2685     mv "conftest.tmp" "conftest.in"
2686     cp "conftest.in" "conftest.nl"
2687     $as_echo '' >> "conftest.nl"
2688     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2689     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2690     as_fn_arith $ac_count + 1 && ac_count=$as_val
2691     if test $ac_count -gt ${ac_path_SED_max-0}; then
2692       # Best one so far, save it but keep looking for a better one
2693       ac_cv_path_SED="$ac_path_SED"
2694       ac_path_SED_max=$ac_count
2695     fi
2696     # 10*(2^10) chars as input seems more than enough
2697     test $ac_count -gt 10 && break
2698   done
2699   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2700 esac
2701
2702       $ac_path_SED_found && break 3
2703     done
2704   done
2705   done
2706 IFS=$as_save_IFS
2707   if test -z "$ac_cv_path_SED"; then
2708     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2709   fi
2710 else
2711   ac_cv_path_SED=$SED
2712 fi
2713
2714 fi
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2716 $as_echo "$ac_cv_path_SED" >&6; }
2717  SED="$ac_cv_path_SED"
2718   rm -f conftest.sed
2719
2720 for ac_prog in gawk mawk nawk awk
2721 do
2722   # Extract the first word of "$ac_prog", so it can be a program name with args.
2723 set dummy $ac_prog; ac_word=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if ${ac_cv_prog_AWK+:} false; then :
2727   $as_echo_n "(cached) " >&6
2728 else
2729   if test -n "$AWK"; then
2730   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735   IFS=$as_save_IFS
2736   test -z "$as_dir" && as_dir=.
2737     for ac_exec_ext in '' $ac_executable_extensions; do
2738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739     ac_cv_prog_AWK="$ac_prog"
2740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741     break 2
2742   fi
2743 done
2744   done
2745 IFS=$as_save_IFS
2746
2747 fi
2748 fi
2749 AWK=$ac_cv_prog_AWK
2750 if test -n "$AWK"; then
2751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2752 $as_echo "$AWK" >&6; }
2753 else
2754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2756 fi
2757
2758
2759   test -n "$AWK" && break
2760 done
2761
2762
2763 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2764
2765 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2766 # a relative path.
2767 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2768   INSTALL="${srcpwd}/install-sh -c"
2769 fi
2770
2771 # Set srcdir to "." if that's what it is.
2772 # This is important for multilib support.
2773 pwd=`${PWDCMD-pwd}`
2774 if test "${pwd}" = "${srcpwd}" ; then
2775   srcdir=.
2776 fi
2777
2778 topsrcdir=$srcpwd
2779
2780 extra_host_args=
2781
2782 ### To add a new directory to the tree, first choose whether it is a target
2783 ### or a host dependent tool.  Then put it into the appropriate list
2784 ### (library or tools, host or target), doing a dependency sort.
2785
2786 # Subdirs will be configured in the order listed in build_configdirs,
2787 # configdirs, or target_configdirs; see the serialization section below.
2788
2789 # Dependency sorting is only needed when *configuration* must be done in
2790 # a particular order.  In all cases a dependency should be specified in
2791 # the Makefile, whether or not it's implicitly specified here.
2792
2793 # Double entries in build_configdirs, configdirs, or target_configdirs may
2794 # cause circular dependencies and break everything horribly.
2795
2796 # these library is used by various programs built for the build
2797 # environment
2798 #
2799 build_libs="build-libiberty build-libcpp"
2800
2801 # these tools are built for the build environment
2802 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2803
2804 # these libraries are used by various programs built for the host environment
2805 #f
2806 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf"
2807
2808 # these tools are built for the host environment
2809 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2810 # know that we are building the simulator.
2811 # binutils, gas and ld appear in that order because it makes sense to run
2812 # "make check" in that particular order.
2813 # If --enable-gold is used, "gold" may replace "ld".
2814 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
2815
2816 # these libraries are built for the target environment, and are built after
2817 # the host libraries and the host tools (which may be a cross compiler)
2818 # Note that libiberty is not a target library.
2819 target_libraries="target-libgcc \
2820                 target-libbacktrace \
2821                 target-libgloss \
2822                 target-newlib \
2823                 target-libgomp \
2824                 target-libatomic \
2825                 target-libitm \
2826                 target-libstdc++-v3 \
2827                 target-libsanitizer \
2828                 target-libvtv \
2829                 target-libssp \
2830                 target-libquadmath \
2831                 target-libgfortran \
2832                 target-libffi \
2833                 target-libobjc \
2834                 target-libada \
2835                 target-libgo \
2836                 target-libphobos \
2837                 target-zlib"
2838
2839 # these tools are built using the target libraries, and are intended to
2840 # run only in the target environment
2841 #
2842 # note: any program that *uses* libraries that are in the "target_libraries"
2843 # list belongs in this list.
2844 #
2845 target_tools="target-rda"
2846
2847 ################################################################################
2848
2849 ## All tools belong in one of the four categories, and are assigned above
2850 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2851 ## is important because configure will choke if they ever get through.
2852 ## ${configdirs} is directories we build using the host tools.
2853 ## ${target_configdirs} is directories we build using the target tools.
2854 configdirs=`echo ${host_libs} ${host_tools}`
2855 target_configdirs=`echo ${target_libraries} ${target_tools}`
2856 build_configdirs=`echo ${build_libs} ${build_tools}`
2857
2858
2859
2860 ################################################################################
2861
2862 srcname="gnu development package"
2863
2864 # This gets set non-empty for some net releases of packages.
2865 appdirs=""
2866
2867 # Define is_cross_compiler to save on calls to 'test'.
2868 is_cross_compiler=
2869 if test x"${host}" = x"${target}" ; then
2870   is_cross_compiler=no
2871 else
2872   is_cross_compiler=yes
2873 fi
2874
2875 # Find the build and target subdir names.
2876
2877 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2878 # have matching libraries, they should use host libraries: Makefile.tpl
2879 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2880 # However, they still use the build modules, because the corresponding
2881 # host modules (e.g. bison) are only built for the host when bootstrap
2882 # finishes. So:
2883 # - build_subdir is where we find build modules, and never changes.
2884 # - build_libsubdir is where we find build libraries, and can be overridden.
2885
2886 # Prefix 'build-' so this never conflicts with target_subdir.
2887 build_subdir="build-${build_noncanonical}"
2888
2889 # Check whether --with-build-libsubdir was given.
2890 if test "${with_build_libsubdir+set}" = set; then :
2891   withval=$with_build_libsubdir; build_libsubdir="$withval"
2892 else
2893   build_libsubdir="$build_subdir"
2894 fi
2895
2896 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2897 if ( test $srcdir = . && test -d gcc ) \
2898    || test -d $srcdir/../host-${host_noncanonical}; then
2899   host_subdir="host-${host_noncanonical}"
2900 else
2901   host_subdir=.
2902 fi
2903 # No prefix.
2904 target_subdir=${target_noncanonical}
2905
2906 # Be sure to cover against remnants of an in-tree build.
2907 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2908   as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2909 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2910 fi
2911
2912 # Skipdirs are removed silently.
2913 skipdirs=
2914 # Noconfigdirs are removed loudly.
2915 noconfigdirs=""
2916
2917 use_gnu_ld=
2918 # Make sure we don't let GNU ld be added if we didn't want it.
2919 if test x$with_gnu_ld = xno ; then
2920   use_gnu_ld=no
2921   noconfigdirs="$noconfigdirs ld gold"
2922 fi
2923
2924 use_gnu_as=
2925 # Make sure we don't let GNU as be added if we didn't want it.
2926 if test x$with_gnu_as = xno ; then
2927   use_gnu_as=no
2928   noconfigdirs="$noconfigdirs gas"
2929 fi
2930
2931 use_included_zlib=
2932
2933 # Check whether --with-system-zlib was given.
2934 if test "${with_system_zlib+set}" = set; then :
2935   withval=$with_system_zlib;
2936 fi
2937
2938 # Make sure we don't let ZLIB be added if we didn't want it.
2939 if test x$with_system_zlib = xyes ; then
2940   use_included_zlib=no
2941   noconfigdirs="$noconfigdirs zlib"
2942 fi
2943
2944 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2945 # is provided.
2946 if test x$with_system_readline = xyes ; then
2947   noconfigdirs="$noconfigdirs readline"
2948 fi
2949
2950 # some tools are so dependent upon X11 that if we're not building with X,
2951 # it's not even worth trying to configure, much less build, that tool.
2952
2953 case ${with_x} in
2954   yes | "") ;; # the default value for this tree is that X11 is available
2955   no)
2956     skipdirs="${skipdirs} tk itcl libgui"
2957     # We won't be able to build gdbtk without X.
2958     enable_gdbtk=no
2959     ;;
2960   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2961 esac
2962
2963 # Some are only suitable for cross toolchains.
2964 # Remove these if host=target.
2965 cross_only="target-libgloss target-newlib target-opcodes"
2966
2967 case $is_cross_compiler in
2968   no) skipdirs="${skipdirs} ${cross_only}" ;;
2969 esac
2970
2971 # If both --with-headers and --with-libs are specified, default to
2972 # --without-newlib.
2973 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2974    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2975   if test x"${with_newlib}" = x ; then
2976     with_newlib=no
2977   fi
2978 fi
2979
2980 # Recognize --with-newlib/--without-newlib.
2981 case ${with_newlib} in
2982   no) skipdirs="${skipdirs} target-newlib" ;;
2983   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2984 esac
2985
2986 # Check whether --enable-as-accelerator-for was given.
2987 if test "${enable_as_accelerator_for+set}" = set; then :
2988   enableval=$enable_as_accelerator_for;
2989 fi
2990
2991
2992 # Check whether --enable-offload-targets was given.
2993 if test "${enable_offload_targets+set}" = set; then :
2994   enableval=$enable_offload_targets;
2995   if test x"$enable_offload_targets" = x; then
2996     as_fn_error $? "no offload targets specified" "$LINENO" 5
2997   fi
2998
2999 else
3000   enable_offload_targets=
3001 fi
3002
3003
3004 # Check whether --enable-offload-defaulted was given.
3005 if test "${enable_offload_defaulted+set}" = set; then :
3006   enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3007 else
3008   enable_offload_defaulted=
3009 fi
3010
3011
3012 # Handle --enable-gold, --enable-ld.
3013 # --disable-gold [--enable-ld]
3014 #     Build only ld.  Default option.
3015 # --enable-gold [--enable-ld]
3016 #     Build both gold and ld.  Install gold as "ld.gold", install ld
3017 #     as "ld.bfd" and "ld".
3018 # --enable-gold=default [--enable-ld]
3019 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
3020 #     install ld as "ld.bfd".
3021 # --enable-gold[=default] --disable-ld
3022 #     Build only gold, which is then installed as both "ld.gold" and "ld".
3023 # --enable-gold --enable-ld=default
3024 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
3025 #     and ld.bfd).
3026 #     In other words, ld is default
3027 # --enable-gold=default --enable-ld=default
3028 #     Error.
3029
3030 default_ld=
3031 # Check whether --enable-gold was given.
3032 if test "${enable_gold+set}" = set; then :
3033   enableval=$enable_gold; ENABLE_GOLD=$enableval
3034 else
3035   ENABLE_GOLD=no
3036 fi
3037
3038 case "${ENABLE_GOLD}" in
3039   yes|default)
3040     # Check for ELF target.
3041     is_elf=no
3042     case "${target}" in
3043       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3044       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3045       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3046       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3047         case "${target}" in
3048           *-*-linux*aout* | *-*-linux*oldld*)
3049             ;;
3050           *)
3051             is_elf=yes
3052             ;;
3053         esac
3054     esac
3055
3056     if test "$is_elf" = "yes"; then
3057       # Check for target supported by gold.
3058       case "${target}" in
3059         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3060         | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3061           configdirs="$configdirs gold"
3062           if test x${ENABLE_GOLD} = xdefault; then
3063             default_ld=gold
3064           fi
3065           ENABLE_GOLD=yes
3066           ;;
3067       esac
3068     fi
3069     ;;
3070   no)
3071     ;;
3072   *)
3073     as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3074     ;;
3075 esac
3076
3077 # Check whether --enable-ld was given.
3078 if test "${enable_ld+set}" = set; then :
3079   enableval=$enable_ld; ENABLE_LD=$enableval
3080 else
3081   ENABLE_LD=yes
3082 fi
3083
3084
3085 case "${ENABLE_LD}" in
3086   default)
3087     if test x${default_ld} != x; then
3088       as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3089     fi
3090     ;;
3091   yes)
3092     ;;
3093   no)
3094     if test x${ENABLE_GOLD} != xyes; then
3095       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3096 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3097     fi
3098     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3099     ;;
3100   *)
3101     as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3102     ;;
3103 esac
3104
3105 # PR gas/19109
3106 # Decide the default method for compressing debug sections.
3107 # Provide a configure time option to override our default.
3108 # Check whether --enable-compressed_debug_sections was given.
3109 if test "${enable_compressed_debug_sections+set}" = set; then :
3110   enableval=$enable_compressed_debug_sections;
3111   if test x"$enable_compressed_debug_sections" = xyes; then
3112     as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3113   fi
3114
3115 else
3116   enable_compressed_debug_sections=
3117 fi
3118
3119
3120 # Configure extra directories which are host specific
3121
3122 case "${host}" in
3123   *-cygwin*)
3124     configdirs="$configdirs libtermcap" ;;
3125 esac
3126
3127 # A target can indicate whether a language isn't supported for some reason.
3128 # Only spaces may be used in this macro; not newlines or tabs.
3129 unsupported_languages=
3130
3131 # Remove more programs from consideration, based on the host or
3132 # target this usually means that a port of the program doesn't
3133 # exist yet.
3134
3135 case "${host}" in
3136   i[3456789]86-*-msdosdjgpp*)
3137     noconfigdirs="$noconfigdirs tcl tk itcl"
3138     ;;
3139 esac
3140
3141
3142 # Check whether --enable-libquadmath was given.
3143 if test "${enable_libquadmath+set}" = set; then :
3144   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3145 else
3146   ENABLE_LIBQUADMATH=yes
3147 fi
3148
3149 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3150   noconfigdirs="$noconfigdirs target-libquadmath"
3151 fi
3152
3153
3154 # Check whether --enable-libquadmath-support was given.
3155 if test "${enable_libquadmath_support+set}" = set; then :
3156   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3157 else
3158   ENABLE_LIBQUADMATH_SUPPORT=yes
3159 fi
3160
3161 enable_libquadmath_support=
3162 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3163   enable_libquadmath_support=no
3164 fi
3165
3166
3167 # Check whether --enable-libada was given.
3168 if test "${enable_libada+set}" = set; then :
3169   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3170 else
3171   ENABLE_LIBADA=yes
3172 fi
3173
3174 if test "${ENABLE_LIBADA}" != "yes" ; then
3175   noconfigdirs="$noconfigdirs gnattools"
3176 fi
3177
3178 # Check whether --enable-libssp was given.
3179 if test "${enable_libssp+set}" = set; then :
3180   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3181 else
3182   ENABLE_LIBSSP=yes
3183 fi
3184
3185
3186 # Check whether --enable-libstdcxx was given.
3187 if test "${enable_libstdcxx+set}" = set; then :
3188   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3189 else
3190   ENABLE_LIBSTDCXX=default
3191 fi
3192
3193 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3194   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3195 fi
3196
3197 # Enable libgomp by default on hosted POSIX systems, and a few others.
3198 if test x$enable_libgomp = x ; then
3199     case "${target}" in
3200     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3201         ;;
3202     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3203         ;;
3204     *-*-solaris2* | *-*-hpux11*)
3205         ;;
3206     *-*-darwin* | *-*-aix*)
3207         ;;
3208     nvptx*-*-* | amdgcn*-*-*)
3209         ;;
3210     *)
3211         noconfigdirs="$noconfigdirs target-libgomp"
3212         ;;
3213     esac
3214 fi
3215
3216 # Disable libatomic on unsupported systems.
3217 if test -d ${srcdir}/libatomic; then
3218     if test x$enable_libatomic = x; then
3219         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3220 $as_echo_n "checking for libatomic support... " >&6; }
3221         if (srcdir=${srcdir}/libatomic; \
3222                 . ${srcdir}/configure.tgt; \
3223                 test -n "$UNSUPPORTED")
3224         then
3225             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3227             noconfigdirs="$noconfigdirs target-libatomic"
3228         else
3229             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3230 $as_echo "yes" >&6; }
3231         fi
3232     fi
3233 fi
3234
3235 # Disable libitm on unsupported systems.
3236 if test -d ${srcdir}/libitm; then
3237     if test x$enable_libitm = x; then
3238         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3239 $as_echo_n "checking for libitm support... " >&6; }
3240         if (srcdir=${srcdir}/libitm; \
3241                 . ${srcdir}/configure.tgt; \
3242                 test -n "$UNSUPPORTED")
3243         then
3244             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3246             noconfigdirs="$noconfigdirs target-libitm"
3247         else
3248             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3249 $as_echo "yes" >&6; }
3250         fi
3251     fi
3252 fi
3253
3254 # Disable libsanitizer on unsupported systems.
3255 if test -d ${srcdir}/libsanitizer; then
3256     if test x$enable_libsanitizer = x; then
3257         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3258 $as_echo_n "checking for libsanitizer support... " >&6; }
3259         if (srcdir=${srcdir}/libsanitizer; \
3260                 . ${srcdir}/configure.tgt; \
3261                 test -n "$UNSUPPORTED")
3262         then
3263             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265             noconfigdirs="$noconfigdirs target-libsanitizer"
3266         else
3267             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268 $as_echo "yes" >&6; }
3269         fi
3270     fi
3271 fi
3272
3273 # Disable libvtv on unsupported systems.
3274 if test -d ${srcdir}/libvtv; then
3275     if test x$enable_libvtv = x; then
3276         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3277 $as_echo_n "checking for libvtv support... " >&6; }
3278         if (srcdir=${srcdir}/libvtv; \
3279                 . ${srcdir}/configure.tgt; \
3280                 test "$VTV_SUPPORTED" != "yes")
3281         then
3282             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284             noconfigdirs="$noconfigdirs target-libvtv"
3285         else
3286             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287 $as_echo "yes" >&6; }
3288         fi
3289     fi
3290 fi
3291
3292 # Disable libquadmath for some systems.
3293 case "${target}" in
3294   avr-*-*)
3295     noconfigdirs="$noconfigdirs target-libquadmath"
3296     ;;
3297   # libquadmath is unused on AIX and libquadmath build process use of
3298   # LD_LIBRARY_PATH can break AIX bootstrap.
3299   powerpc-*-aix* | rs6000-*-aix*)
3300     noconfigdirs="$noconfigdirs target-libquadmath"
3301     ;;
3302 esac
3303
3304 # Disable libssp for some systems.
3305 case "${target}" in
3306   avr-*-*)
3307     # No hosted I/O support.
3308     noconfigdirs="$noconfigdirs target-libssp"
3309     ;;
3310   bpf-*-*)
3311     noconfigdirs="$noconfigdirs target-libssp"
3312     ;;
3313   powerpc-*-aix* | rs6000-*-aix*)
3314     noconfigdirs="$noconfigdirs target-libssp"
3315     ;;
3316   pru-*-*)
3317     # No hosted I/O support.
3318     noconfigdirs="$noconfigdirs target-libssp"
3319     ;;
3320   rl78-*-*)
3321     # libssp uses a misaligned load to trigger a fault, but the RL78
3322     # doesn't fault for those - instead, it gives a build-time error
3323     # for explicit misaligned loads.
3324     noconfigdirs="$noconfigdirs target-libssp"
3325     ;;
3326   visium-*-*)
3327     # No hosted I/O support.
3328     noconfigdirs="$noconfigdirs target-libssp"
3329     ;;
3330 esac
3331
3332 # Disable libstdc++-v3 for some systems.
3333 # Allow user to override this if they pass --enable-libstdcxx
3334 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3335   case "${target}" in
3336     *-*-vxworks*)
3337       # VxWorks uses the Dinkumware C++ library.
3338       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3339       ;;
3340     amdgcn*-*-*)
3341       # Not ported/fails to build when using newlib.
3342       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3343       ;;
3344     arm*-wince-pe*)
3345       # the C++ libraries don't build on top of CE's C libraries
3346       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3347       ;;
3348     avr-*-*)
3349       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3350       ;;
3351     bpf-*-*)
3352       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3353       ;;
3354     ft32-*-*)
3355       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3356       ;;
3357   esac
3358 fi
3359
3360 # Disable C++ on systems where it is known to not work.
3361 # For testing, you can override this with --enable-languages=c++.
3362 case ,${enable_languages}, in
3363   *,c++,*)
3364     ;;
3365   *)
3366       case "${target}" in
3367         bpf-*-*)
3368           unsupported_languages="$unsupported_languages c++"
3369           ;;
3370       esac
3371       ;;
3372 esac
3373
3374 # Disable Objc on systems where it is known to not work.
3375 # For testing, you can override this with --enable-languages=objc.
3376 case ,${enable_languages}, in
3377   *,objc,*)
3378     ;;
3379   *)
3380       case "${target}" in
3381         bpf-*-*)
3382           unsupported_languages="$unsupported_languages objc"
3383           ;;
3384       esac
3385       ;;
3386 esac
3387
3388 # Disable D on systems where it is known to not work.
3389 # For testing, you can override this with --enable-languages=d.
3390 case ,${enable_languages}, in
3391   *,d,*)
3392     ;;
3393   *)
3394     case "${target}" in
3395       bpf-*-*)
3396         unsupported_languages="$unsupported_languages d"
3397         ;;
3398     esac
3399     ;;
3400 esac
3401
3402 # Disable libphobos on unsupported systems.
3403 # For testing, you can override this with --enable-libphobos.
3404 if test -d ${srcdir}/libphobos; then
3405     if test x$enable_libphobos = x; then
3406         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3407 $as_echo_n "checking for libphobos support... " >&6; }
3408         if (srcdir=${srcdir}/libphobos; \
3409                 . ${srcdir}/configure.tgt; \
3410                 test "$LIBPHOBOS_SUPPORTED" != "yes")
3411         then
3412             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3414             noconfigdirs="$noconfigdirs target-libphobos"
3415         else
3416             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3417 $as_echo "yes" >&6; }
3418         fi
3419     fi
3420 fi
3421
3422 # Disable Fortran for some systems.
3423 case "${target}" in
3424   mmix-*-*)
3425     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3426     unsupported_languages="$unsupported_languages fortran"
3427     ;;
3428   bpf-*-*)
3429     unsupported_languages="$unsupported_languages fortran"
3430     ;;
3431 esac
3432
3433 # Disable libffi for some systems.
3434 case "${target}" in
3435   powerpc-*-darwin*)
3436     ;;
3437   i[3456789]86-*-darwin*)
3438     ;;
3439   x86_64-*-darwin[912]*)
3440     ;;
3441   *-*-darwin*)
3442     noconfigdirs="$noconfigdirs target-libffi"
3443     ;;
3444   *-*-netware*)
3445     noconfigdirs="$noconfigdirs target-libffi"
3446     ;;
3447   *-*-phoenix*)
3448     noconfigdirs="$noconfigdirs target-libffi"
3449     ;;
3450   *-*-rtems*)
3451     noconfigdirs="$noconfigdirs target-libffi"
3452     ;;
3453   *-*-tpf*)
3454     noconfigdirs="$noconfigdirs target-libffi"
3455     ;;
3456   *-*-uclinux*)
3457     noconfigdirs="$noconfigdirs target-libffi"
3458     ;;
3459   *-*-vxworks*)
3460     noconfigdirs="$noconfigdirs target-libffi"
3461     ;;
3462   aarch64*-*-freebsd*)
3463     noconfigdirs="$noconfigdirs target-libffi"
3464     ;;
3465   alpha*-*-*vms*)
3466     noconfigdirs="$noconfigdirs target-libffi"
3467     ;;
3468   arm*-*-freebsd*)
3469     noconfigdirs="$noconfigdirs target-libffi"
3470     ;;
3471   arm-wince-pe)
3472     noconfigdirs="$noconfigdirs target-libffi"
3473     ;;
3474   arm*-*-symbianelf*)
3475     noconfigdirs="$noconfigdirs target-libffi"
3476     ;;
3477   bpf-*-*)
3478     noconfigdirs="$noconfigdirs target-libffi"
3479     ;;
3480   cris-*-* | crisv32-*-*)
3481     case "${target}" in
3482       *-*-linux*)
3483         ;;
3484       *) # See PR46792 regarding target-libffi.
3485         noconfigdirs="$noconfigdirs target-libffi";;
3486     esac
3487     ;;
3488   hppa*64*-*-hpux*)
3489     noconfigdirs="$noconfigdirs target-libffi"
3490     ;;
3491   ia64*-*-*vms*)
3492     noconfigdirs="$noconfigdirs target-libffi"
3493     ;;
3494   i[3456789]86-w64-mingw*)
3495     noconfigdirs="$noconfigdirs target-libffi"
3496     ;;
3497   i[3456789]86-*-mingw*)
3498     noconfigdirs="$noconfigdirs target-libffi"
3499     ;;
3500   x86_64-*-mingw*)
3501     noconfigdirs="$noconfigdirs target-libffi"
3502     ;;
3503   mmix-*-*)
3504     noconfigdirs="$noconfigdirs target-libffi"
3505     ;;
3506   powerpc-*-aix*)
3507     ;;
3508   rs6000-*-aix*)
3509     ;;
3510   ft32-*-*)
3511     noconfigdirs="$noconfigdirs target-libffi"
3512     ;;
3513   *-*-lynxos*)
3514     noconfigdirs="$noconfigdirs target-libffi"
3515     ;;
3516 esac
3517
3518 # Disable the go frontend on systems where it is known to not work. Please keep
3519 # this in sync with contrib/config-list.mk.
3520 case "${target}" in
3521 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3522     unsupported_languages="$unsupported_languages go"
3523     ;;
3524 esac
3525
3526 # Only allow gdbserver on some systems.
3527 if test -d ${srcdir}/gdbserver; then
3528     if test x$enable_gdbserver = x; then
3529         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3530 $as_echo_n "checking for gdbserver support... " >&6; }
3531         if (srcdir=${srcdir}/gdbserver; \
3532                 . ${srcdir}/configure.srv; \
3533                 test -n "$UNSUPPORTED")
3534         then
3535             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3537             noconfigdirs="$noconfigdirs gdbserver"
3538         else
3539             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3540 $as_echo "yes" >&6; }
3541         fi
3542     fi
3543 fi
3544
3545 # Disable libgo for some systems where it is known to not work.
3546 # For testing, you can easily override this with --enable-libgo.
3547 if test x$enable_libgo = x; then
3548     case "${target}" in
3549     *-*-darwin*)
3550         # PR 46986
3551         noconfigdirs="$noconfigdirs target-libgo"
3552         ;;
3553     *-*-cygwin* | *-*-mingw*)
3554         noconfigdirs="$noconfigdirs target-libgo"
3555         ;;
3556     bpf-*-*)
3557         noconfigdirs="$noconfigdirs target-libgo"
3558         ;;
3559     esac
3560 fi
3561
3562 # Default libgloss CPU subdirectory.
3563 libgloss_dir="$target_cpu"
3564
3565 case "${target}" in
3566   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3567     libgloss_dir=wince
3568     ;;
3569   aarch64*-*-* )
3570     libgloss_dir=aarch64
3571     ;;
3572   arm*-*-*)
3573     libgloss_dir=arm
3574     ;;
3575   cris-*-* | crisv32-*-*)
3576     libgloss_dir=cris
3577     ;;
3578   hppa*-*-*)
3579     libgloss_dir=pa
3580     ;;
3581   i[3456789]86-*-*)
3582     libgloss_dir=i386
3583     ;;
3584   loongarch*-*-*)
3585     libgloss_dir=loongarch
3586     ;;
3587   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3588     libgloss_dir=m68hc11
3589     ;;
3590   m68*-*-* | fido-*-*)
3591     libgloss_dir=m68k
3592     ;;
3593   mips*-*-*)
3594     libgloss_dir=mips
3595     ;;
3596   powerpc*-*-*)
3597     libgloss_dir=rs6000
3598     ;;
3599   pru-*-*)
3600     libgloss_dir=pru
3601     ;;
3602   sparc*-*-*)
3603     libgloss_dir=sparc
3604     ;;
3605 esac
3606
3607 # Disable newlib and libgloss for various target OSes.
3608 case "${target}" in
3609   alpha*-dec-osf*)
3610     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611     ;;
3612   i[3456789]86-*-linux*)
3613     # This section makes it possible to build newlib natively on linux.
3614     # If we are using a cross compiler then don't configure newlib.
3615     if test x${is_cross_compiler} != xno ; then
3616       noconfigdirs="$noconfigdirs target-newlib"
3617     fi
3618     noconfigdirs="$noconfigdirs target-libgloss"
3619     # If we are not using a cross compiler, do configure newlib.
3620     # Note however, that newlib will only be configured in this situation
3621     # if the --with-newlib option has been given, because otherwise
3622     # 'target-newlib' will appear in skipdirs.
3623     ;;
3624   i[3456789]86-*-rdos*)
3625     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626     ;;
3627   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3628     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629     ;;
3630   sparc-*-sunos4*)
3631     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632     ;;
3633   bpf-*-*)
3634     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635     ;;
3636   *-*-aix*)
3637     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3638     ;;
3639   *-*-beos*)
3640     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3641     ;;
3642   *-*-chorusos)
3643     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3644     ;;
3645   *-*-dragonfly*)
3646     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3647     ;;
3648   *-*-freebsd*)
3649     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650     ;;
3651   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3652     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653     ;;
3654   *-*-lynxos*)
3655     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656     ;;
3657   *-*-mingw*)
3658     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659     ;;
3660   *-*-netbsd*)
3661     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662     ;;
3663   *-*-netware*)
3664     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665     ;;
3666   *-*-tpf*)
3667     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3668     ;;
3669   *-*-uclinux*)
3670     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3671     ;;
3672   *-*-vxworks*)
3673     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3674     ;;
3675 esac
3676
3677 case "${target}" in
3678   *-*-chorusos)
3679     ;;
3680   aarch64-*-darwin*)
3681     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3682     noconfigdirs="$noconfigdirs sim target-rda"
3683     ;;
3684   amdgcn*-*-*)
3685     ;;
3686   arm-*-darwin*)
3687     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3688     noconfigdirs="$noconfigdirs sim target-rda"
3689     ;;
3690   powerpc-*-darwin*)
3691     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3692     noconfigdirs="$noconfigdirs sim target-rda"
3693     ;;
3694   i[3456789]86-*-darwin*)
3695     noconfigdirs="$noconfigdirs ld gprof"
3696     noconfigdirs="$noconfigdirs sim target-rda"
3697     ;;
3698   x86_64-*-darwin[912]*)
3699     noconfigdirs="$noconfigdirs ld gas gprof"
3700     noconfigdirs="$noconfigdirs sim target-rda"
3701     ;;
3702   *-*-darwin*)
3703     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3704     noconfigdirs="$noconfigdirs sim target-rda"
3705     ;;
3706   *-*-dragonfly*)
3707     ;;
3708   *-*-freebsd*)
3709     if test "x$with_gmp" = x \
3710         && ! test -d ${srcdir}/gmp \
3711         && test -f /usr/local/include/gmp.h; then
3712       with_gmp=/usr/local
3713     fi
3714     ;;
3715   *-*-kaos*)
3716     # Remove unsupported stuff on all kaOS configurations.
3717     noconfigdirs="$noconfigdirs target-libgloss"
3718     ;;
3719   *-*-netbsd*)
3720     ;;
3721   *-*-netware*)
3722     ;;
3723   *-*-phoenix*)
3724     noconfigdirs="$noconfigdirs target-libgloss"
3725     ;;
3726   *-*-rtems*)
3727     noconfigdirs="$noconfigdirs target-libgloss"
3728     ;;
3729     # The tpf target doesn't support gdb yet.
3730   *-*-tpf*)
3731     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3732     ;;
3733   *-*-uclinux*)
3734     noconfigdirs="$noconfigdirs target-rda"
3735     ;;
3736   *-*-vxworks*)
3737     ;;
3738   alpha*-dec-osf*)
3739     # ld works, but does not support shared libraries.
3740     # gas doesn't generate exception information.
3741     noconfigdirs="$noconfigdirs gas ld"
3742     ;;
3743   alpha*-*-*vms*)
3744     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3745     ;;
3746   alpha*-*-*)
3747     # newlib is not 64 bit ready
3748     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3749     ;;
3750   bpf-*-*)
3751     noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3752     ;;
3753   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3754     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3755     ;;
3756   arc*-*-*)
3757     noconfigdirs="$noconfigdirs sim"
3758     ;;
3759   arm-*-pe*)
3760     noconfigdirs="$noconfigdirs target-libgloss"
3761     ;;
3762   arm-*-riscix*)
3763     noconfigdirs="$noconfigdirs ld target-libgloss"
3764     ;;
3765   avr-*-*)
3766     if test x${with_avrlibc} != xno; then
3767       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3768     fi
3769     ;;
3770   c4x-*-* | tic4x-*-*)
3771     noconfigdirs="$noconfigdirs target-libgloss"
3772     ;;
3773   tic54x-*-*)
3774     noconfigdirs="$noconfigdirs target-libgloss gdb"
3775     ;;
3776   d10v-*-*)
3777     noconfigdirs="$noconfigdirs target-libgloss"
3778     ;;
3779   d30v-*-*)
3780     noconfigdirs="$noconfigdirs gdb"
3781     ;;
3782   fr30-*-elf*)
3783     noconfigdirs="$noconfigdirs gdb"
3784     ;;
3785   ft32-*-*)
3786     noconfigdirs="$noconfigdirs target-rda gprof"
3787     ;;
3788   moxie-*-*)
3789     noconfigdirs="$noconfigdirs"
3790     ;;
3791   h8300*-*-*)
3792     noconfigdirs="$noconfigdirs target-libgloss"
3793     ;;
3794   h8500-*-*)
3795     noconfigdirs="$noconfigdirs target-libgloss"
3796     ;;
3797   hppa*64*-*-hpux*)
3798     noconfigdirs="$noconfigdirs gdb"
3799     ;;
3800   hppa*64*-*-linux*)
3801     ;;
3802   hppa*-*-linux*)
3803     ;;
3804   hppa*-*-*elf* | \
3805   hppa*-*-lites* | \
3806   hppa*-*-openbsd* | \
3807   hppa*64*-*-*)
3808     ;;
3809   hppa*-*-pro*)
3810     ;;
3811   hppa*-*-*)
3812     noconfigdirs="$noconfigdirs ld"
3813     ;;
3814   i960-*-*)
3815     noconfigdirs="$noconfigdirs gdb"
3816     ;;
3817   ia64*-*-elf*)
3818     # No gdb support yet.
3819     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3820     ;;
3821   ia64*-**-hpux*)
3822     # No ld support yet.
3823     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3824     ;;
3825   ia64*-*-*vms*)
3826     # No ld support yet.
3827     noconfigdirs="$noconfigdirs libgui itcl ld"
3828     ;;
3829   i[3456789]86-w64-mingw*)
3830     ;;
3831   i[3456789]86-*-mingw*)
3832     target_configdirs="$target_configdirs target-winsup"
3833     ;;
3834   *-*-cygwin*)
3835     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3836     noconfigdirs="$noconfigdirs target-libgloss"
3837     # always build newlib if winsup directory is present.
3838     if test -d "$srcdir/winsup/cygwin"; then
3839       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3840     elif test -d "$srcdir/newlib"; then
3841       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3842     fi
3843     ;;
3844   i[3456789]86-*-pe)
3845     noconfigdirs="$noconfigdirs target-libgloss"
3846     ;;
3847   i[3456789]86-*-sco3.2v5*)
3848     # The linker does not yet know about weak symbols in COFF,
3849     # and is not configured to handle mixed ELF and COFF.
3850     noconfigdirs="$noconfigdirs ld target-libgloss"
3851     ;;
3852   i[3456789]86-*-sco*)
3853     noconfigdirs="$noconfigdirs gprof target-libgloss"
3854     ;;
3855   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3856     noconfigdirs="$noconfigdirs target-libgloss"
3857     ;;
3858   i[3456789]86-*-sysv4*)
3859     noconfigdirs="$noconfigdirs target-libgloss"
3860     ;;
3861   i[3456789]86-*-beos*)
3862     noconfigdirs="$noconfigdirs gdb"
3863     ;;
3864   i[3456789]86-*-rdos*)
3865     noconfigdirs="$noconfigdirs gdb"
3866     ;;
3867   mmix-*-*)
3868     noconfigdirs="$noconfigdirs gdb"
3869     ;;
3870   mt-*-*)
3871     noconfigdirs="$noconfigdirs sim"
3872     ;;
3873   nfp-*-*)
3874     noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3875     noconfigdirs="$noconfigdirs $target_libraries"
3876     ;;
3877   pdp11-*-*)
3878     noconfigdirs="$noconfigdirs gdb gprof"
3879     ;;
3880   powerpc-*-aix*)
3881     # copied from rs6000-*-* entry
3882     noconfigdirs="$noconfigdirs gprof"
3883     ;;
3884   powerpc*-*-winnt* | powerpc*-*-pe*)
3885     target_configdirs="$target_configdirs target-winsup"
3886     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3887     # always build newlib.
3888     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3889     ;;
3890     # This is temporary until we can link against shared libraries
3891   powerpcle-*-solaris*)
3892     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3893     ;;
3894   powerpc-*-beos*)
3895     noconfigdirs="$noconfigdirs gdb"
3896     ;;
3897   rs6000-*-lynxos*)
3898     noconfigdirs="$noconfigdirs gprof"
3899     ;;
3900   rs6000-*-aix*)
3901     noconfigdirs="$noconfigdirs gprof"
3902     ;;
3903   rs6000-*-*)
3904     noconfigdirs="$noconfigdirs gprof"
3905     ;;
3906   m68k-apollo-*)
3907     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3908     ;;
3909   microblaze*)
3910     noconfigdirs="$noconfigdirs gprof"
3911     ;;
3912   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3913     if test x$with_newlib = xyes; then
3914       noconfigdirs="$noconfigdirs gprof"
3915     fi
3916     ;;
3917   mips*-*-irix5*)
3918     noconfigdirs="$noconfigdirs gprof target-libgloss"
3919     ;;
3920   mips*-*-irix6*)
3921     noconfigdirs="$noconfigdirs gprof target-libgloss"
3922     ;;
3923   mips*-*-bsd*)
3924     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3925     ;;
3926   mips*-*-linux*)
3927     ;;
3928   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3929   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3930     noconfigdirs="$noconfigdirs ld gas gprof"
3931     ;;
3932   mips*-*-*)
3933     noconfigdirs="$noconfigdirs gprof"
3934     ;;
3935   nvptx*-*-*)
3936     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3937     ;;
3938   sh-*-*)
3939     case "${target}" in
3940       sh*-*-elf)
3941          ;;
3942       *)
3943          noconfigdirs="$noconfigdirs target-libgloss" ;;
3944     esac
3945     ;;
3946   sparc-*-sunos4*)
3947     if test x${is_cross_compiler} = xno ; then
3948            use_gnu_ld=no
3949     fi
3950     ;;
3951   tic6x-*-*)
3952     noconfigdirs="$noconfigdirs sim"
3953     ;;
3954   v810-*-*)
3955     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3956     ;;
3957   vax-*-*)
3958     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3959     ;;
3960   wasm32-*-*)
3961     noconfigdirs="$noconfigdirs ld"
3962     ;;
3963   loongarch*-*-linux*)
3964     ;;
3965   loongarch*-*-*)
3966     noconfigdirs="$noconfigdirs gprof"
3967     ;;
3968 esac
3969
3970 # If we aren't building newlib, then don't build libgloss, since libgloss
3971 # depends upon some newlib header files.
3972 case "${noconfigdirs}" in
3973   *target-libgloss*) ;;
3974   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3975 esac
3976
3977 # Work in distributions that contain no compiler tools, like Autoconf.
3978 host_makefile_frag=/dev/null
3979 if test -d ${srcdir}/config ; then
3980 case "${host}" in
3981   i[3456789]86-*-msdosdjgpp*)
3982     host_makefile_frag="config/mh-djgpp"
3983     ;;
3984   *-cygwin*)
3985
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3987 $as_echo_n "checking to see if cat works as expected... " >&6; }
3988 echo a >cygwin-cat-check
3989 if test `cat cygwin-cat-check` = a ; then
3990   rm cygwin-cat-check
3991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3992 $as_echo "yes" >&6; }
3993 else
3994   rm cygwin-cat-check
3995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3997   as_fn_error $? "The cat command does not ignore carriage return characters.
3998   Please either mount the build directory in binary mode or run the following
3999   commands before running any configure script:
4000 set -o igncr
4001 export SHELLOPTS
4002   " "$LINENO" 5
4003 fi
4004
4005     host_makefile_frag="config/mh-cygwin"
4006     ;;
4007   *-mingw*)
4008     host_makefile_frag="config/mh-mingw"
4009     ;;
4010   alpha*-linux*)
4011     host_makefile_frag="config/mh-alpha-linux"
4012     ;;
4013   hppa*-hp-hpux*)
4014     host_makefile_frag="config/mh-pa"
4015     ;;
4016   hppa*-*)
4017     host_makefile_frag="config/mh-pa"
4018     ;;
4019   i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4020     host_makefile_frag="config/mh-darwin"
4021     ;;
4022   powerpc-*-aix*)
4023     host_makefile_frag="config/mh-ppc-aix"
4024     ;;
4025   rs6000-*-aix*)
4026     host_makefile_frag="config/mh-ppc-aix"
4027     ;;
4028 esac
4029 fi
4030
4031 if test "${build}" != "${host}" ; then
4032   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4033   AS_FOR_BUILD=${AS_FOR_BUILD-as}
4034   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4035   CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4036   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4037   DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4038   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4039   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4040   GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4041   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4042   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4043   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4044   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4045   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4046   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4047 else
4048   AR_FOR_BUILD="\$(AR)"
4049   AS_FOR_BUILD="\$(AS)"
4050   CC_FOR_BUILD="\$(CC)"
4051   CXX_FOR_BUILD="\$(CXX)"
4052   DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4053   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4054   GOC_FOR_BUILD="\$(GOC)"
4055   GDC_FOR_BUILD="\$(GDC)"
4056   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4057   LD_FOR_BUILD="\$(LD)"
4058   NM_FOR_BUILD="\$(NM)"
4059   RANLIB_FOR_BUILD="\$(RANLIB)"
4060   WINDRES_FOR_BUILD="\$(WINDRES)"
4061   WINDMC_FOR_BUILD="\$(WINDMC)"
4062 fi
4063
4064 ac_ext=c
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069 if test -n "$ac_tool_prefix"; then
4070   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4071 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073 $as_echo_n "checking for $ac_word... " >&6; }
4074 if ${ac_cv_prog_CC+:} false; then :
4075   $as_echo_n "(cached) " >&6
4076 else
4077   if test -n "$CC"; then
4078   ac_cv_prog_CC="$CC" # Let the user override the test.
4079 else
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH
4082 do
4083   IFS=$as_save_IFS
4084   test -z "$as_dir" && as_dir=.
4085     for ac_exec_ext in '' $ac_executable_extensions; do
4086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4087     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4089     break 2
4090   fi
4091 done
4092   done
4093 IFS=$as_save_IFS
4094
4095 fi
4096 fi
4097 CC=$ac_cv_prog_CC
4098 if test -n "$CC"; then
4099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4100 $as_echo "$CC" >&6; }
4101 else
4102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4104 fi
4105
4106
4107 fi
4108 if test -z "$ac_cv_prog_CC"; then
4109   ac_ct_CC=$CC
4110   # Extract the first word of "gcc", so it can be a program name with args.
4111 set dummy gcc; ac_word=$2
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113 $as_echo_n "checking for $ac_word... " >&6; }
4114 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4115   $as_echo_n "(cached) " >&6
4116 else
4117   if test -n "$ac_ct_CC"; then
4118   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4122 do
4123   IFS=$as_save_IFS
4124   test -z "$as_dir" && as_dir=.
4125     for ac_exec_ext in '' $ac_executable_extensions; do
4126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127     ac_cv_prog_ac_ct_CC="gcc"
4128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4129     break 2
4130   fi
4131 done
4132   done
4133 IFS=$as_save_IFS
4134
4135 fi
4136 fi
4137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4138 if test -n "$ac_ct_CC"; then
4139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4140 $as_echo "$ac_ct_CC" >&6; }
4141 else
4142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4144 fi
4145
4146   if test "x$ac_ct_CC" = x; then
4147     CC=""
4148   else
4149     case $cross_compiling:$ac_tool_warned in
4150 yes:)
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4153 ac_tool_warned=yes ;;
4154 esac
4155     CC=$ac_ct_CC
4156   fi
4157 else
4158   CC="$ac_cv_prog_CC"
4159 fi
4160
4161 if test -z "$CC"; then
4162           if test -n "$ac_tool_prefix"; then
4163     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4164 set dummy ${ac_tool_prefix}cc; ac_word=$2
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if ${ac_cv_prog_CC+:} false; then :
4168   $as_echo_n "(cached) " >&6
4169 else
4170   if test -n "$CC"; then
4171   ac_cv_prog_CC="$CC" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176   IFS=$as_save_IFS
4177   test -z "$as_dir" && as_dir=.
4178     for ac_exec_ext in '' $ac_executable_extensions; do
4179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180     ac_cv_prog_CC="${ac_tool_prefix}cc"
4181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182     break 2
4183   fi
4184 done
4185   done
4186 IFS=$as_save_IFS
4187
4188 fi
4189 fi
4190 CC=$ac_cv_prog_CC
4191 if test -n "$CC"; then
4192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4193 $as_echo "$CC" >&6; }
4194 else
4195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 $as_echo "no" >&6; }
4197 fi
4198
4199
4200   fi
4201 fi
4202 if test -z "$CC"; then
4203   # Extract the first word of "cc", so it can be a program name with args.
4204 set dummy cc; ac_word=$2
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if ${ac_cv_prog_CC+:} false; then :
4208   $as_echo_n "(cached) " >&6
4209 else
4210   if test -n "$CC"; then
4211   ac_cv_prog_CC="$CC" # Let the user override the test.
4212 else
4213   ac_prog_rejected=no
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4216 do
4217   IFS=$as_save_IFS
4218   test -z "$as_dir" && as_dir=.
4219     for ac_exec_ext in '' $ac_executable_extensions; do
4220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4222        ac_prog_rejected=yes
4223        continue
4224      fi
4225     ac_cv_prog_CC="cc"
4226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227     break 2
4228   fi
4229 done
4230   done
4231 IFS=$as_save_IFS
4232
4233 if test $ac_prog_rejected = yes; then
4234   # We found a bogon in the path, so make sure we never use it.
4235   set dummy $ac_cv_prog_CC
4236   shift
4237   if test $# != 0; then
4238     # We chose a different compiler from the bogus one.
4239     # However, it has the same basename, so the bogon will be chosen
4240     # first if we set CC to just the basename; use the full file name.
4241     shift
4242     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4243   fi
4244 fi
4245 fi
4246 fi
4247 CC=$ac_cv_prog_CC
4248 if test -n "$CC"; then
4249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250 $as_echo "$CC" >&6; }
4251 else
4252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4254 fi
4255
4256
4257 fi
4258 if test -z "$CC"; then
4259   if test -n "$ac_tool_prefix"; then
4260   for ac_prog in cl.exe
4261   do
4262     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_CC+:} false; then :
4267   $as_echo_n "(cached) " >&6
4268 else
4269   if test -n "$CC"; then
4270   ac_cv_prog_CC="$CC" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275   IFS=$as_save_IFS
4276   test -z "$as_dir" && as_dir=.
4277     for ac_exec_ext in '' $ac_executable_extensions; do
4278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281     break 2
4282   fi
4283 done
4284   done
4285 IFS=$as_save_IFS
4286
4287 fi
4288 fi
4289 CC=$ac_cv_prog_CC
4290 if test -n "$CC"; then
4291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4292 $as_echo "$CC" >&6; }
4293 else
4294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 fi
4297
4298
4299     test -n "$CC" && break
4300   done
4301 fi
4302 if test -z "$CC"; then
4303   ac_ct_CC=$CC
4304   for ac_prog in cl.exe
4305 do
4306   # Extract the first word of "$ac_prog", so it can be a program name with args.
4307 set dummy $ac_prog; ac_word=$2
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4311   $as_echo_n "(cached) " >&6
4312 else
4313   if test -n "$ac_ct_CC"; then
4314   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4318 do
4319   IFS=$as_save_IFS
4320   test -z "$as_dir" && as_dir=.
4321     for ac_exec_ext in '' $ac_executable_extensions; do
4322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4323     ac_cv_prog_ac_ct_CC="$ac_prog"
4324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325     break 2
4326   fi
4327 done
4328   done
4329 IFS=$as_save_IFS
4330
4331 fi
4332 fi
4333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4334 if test -n "$ac_ct_CC"; then
4335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4336 $as_echo "$ac_ct_CC" >&6; }
4337 else
4338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4340 fi
4341
4342
4343   test -n "$ac_ct_CC" && break
4344 done
4345
4346   if test "x$ac_ct_CC" = x; then
4347     CC=""
4348   else
4349     case $cross_compiling:$ac_tool_warned in
4350 yes:)
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4353 ac_tool_warned=yes ;;
4354 esac
4355     CC=$ac_ct_CC
4356   fi
4357 fi
4358
4359 fi
4360
4361
4362 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error $? "no acceptable C compiler found in \$PATH
4365 See \`config.log' for more details" "$LINENO" 5; }
4366
4367 # Provide some information about the compiler.
4368 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4369 set X $ac_compile
4370 ac_compiler=$2
4371 for ac_option in --version -v -V -qversion; do
4372   { { ac_try="$ac_compiler $ac_option >&5"
4373 case "(($ac_try" in
4374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375   *) ac_try_echo=$ac_try;;
4376 esac
4377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378 $as_echo "$ac_try_echo"; } >&5
4379   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4380   ac_status=$?
4381   if test -s conftest.err; then
4382     sed '10a\
4383 ... rest of stderr output deleted ...
4384          10q' conftest.err >conftest.er1
4385     cat conftest.er1 >&5
4386   fi
4387   rm -f conftest.er1 conftest.err
4388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389   test $ac_status = 0; }
4390 done
4391
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h.  */
4394
4395 int
4396 main ()
4397 {
4398
4399   ;
4400   return 0;
4401 }
4402 _ACEOF
4403 ac_clean_files_save=$ac_clean_files
4404 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4405 # Try to create an executable without -o first, disregard a.out.
4406 # It will help us diagnose broken compilers, and finding out an intuition
4407 # of exeext.
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4409 $as_echo_n "checking whether the C compiler works... " >&6; }
4410 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4411
4412 # The possible output files:
4413 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4414
4415 ac_rmfiles=
4416 for ac_file in $ac_files
4417 do
4418   case $ac_file in
4419     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4420     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4421   esac
4422 done
4423 rm -f $ac_rmfiles
4424
4425 if { { ac_try="$ac_link_default"
4426 case "(($ac_try" in
4427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428   *) ac_try_echo=$ac_try;;
4429 esac
4430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4431 $as_echo "$ac_try_echo"; } >&5
4432   (eval "$ac_link_default") 2>&5
4433   ac_status=$?
4434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4435   test $ac_status = 0; }; then :
4436   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4437 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4438 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4439 # so that the user can short-circuit this test for compilers unknown to
4440 # Autoconf.
4441 for ac_file in $ac_files ''
4442 do
4443   test -f "$ac_file" || continue
4444   case $ac_file in
4445     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4446         ;;
4447     [ab].out )
4448         # We found the default executable, but exeext='' is most
4449         # certainly right.
4450         break;;
4451     *.* )
4452         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4453         then :; else
4454            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4455         fi
4456         # We set ac_cv_exeext here because the later test for it is not
4457         # safe: cross compilers may not add the suffix if given an `-o'
4458         # argument, so we may need to know it at that point already.
4459         # Even if this section looks crufty: it has the advantage of
4460         # actually working.
4461         break;;
4462     * )
4463         break;;
4464   esac
4465 done
4466 test "$ac_cv_exeext" = no && ac_cv_exeext=
4467
4468 else
4469   ac_file=''
4470 fi
4471 if test -z "$ac_file"; then :
4472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4474 $as_echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4476
4477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4479 as_fn_error 77 "C compiler cannot create executables
4480 See \`config.log' for more details" "$LINENO" 5; }
4481 else
4482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4483 $as_echo "yes" >&6; }
4484 fi
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4486 $as_echo_n "checking for C compiler default output file name... " >&6; }
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4488 $as_echo "$ac_file" >&6; }
4489 ac_exeext=$ac_cv_exeext
4490
4491 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4492 ac_clean_files=$ac_clean_files_save
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4494 $as_echo_n "checking for suffix of executables... " >&6; }
4495 if { { ac_try="$ac_link"
4496 case "(($ac_try" in
4497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498   *) ac_try_echo=$ac_try;;
4499 esac
4500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501 $as_echo "$ac_try_echo"; } >&5
4502   (eval "$ac_link") 2>&5
4503   ac_status=$?
4504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505   test $ac_status = 0; }; then :
4506   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4507 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4508 # work properly (i.e., refer to `conftest.exe'), while it won't with
4509 # `rm'.
4510 for ac_file in conftest.exe conftest conftest.*; do
4511   test -f "$ac_file" || continue
4512   case $ac_file in
4513     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4514     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4515           break;;
4516     * ) break;;
4517   esac
4518 done
4519 else
4520   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4522 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4523 See \`config.log' for more details" "$LINENO" 5; }
4524 fi
4525 rm -f conftest conftest$ac_cv_exeext
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4527 $as_echo "$ac_cv_exeext" >&6; }
4528
4529 rm -f conftest.$ac_ext
4530 EXEEXT=$ac_cv_exeext
4531 ac_exeext=$EXEEXT
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h.  */
4534 #include <stdio.h>
4535 int
4536 main ()
4537 {
4538 FILE *f = fopen ("conftest.out", "w");
4539  return ferror (f) || fclose (f) != 0;
4540
4541   ;
4542   return 0;
4543 }
4544 _ACEOF
4545 ac_clean_files="$ac_clean_files conftest.out"
4546 # Check that the compiler produces executables we can run.  If not, either
4547 # the compiler is broken, or we cross compile.
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4549 $as_echo_n "checking whether we are cross compiling... " >&6; }
4550 if test "$cross_compiling" != yes; then
4551   { { ac_try="$ac_link"
4552 case "(($ac_try" in
4553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554   *) ac_try_echo=$ac_try;;
4555 esac
4556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4557 $as_echo "$ac_try_echo"; } >&5
4558   (eval "$ac_link") 2>&5
4559   ac_status=$?
4560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561   test $ac_status = 0; }
4562   if { ac_try='./conftest$ac_cv_exeext'
4563   { { case "(($ac_try" in
4564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565   *) ac_try_echo=$ac_try;;
4566 esac
4567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4568 $as_echo "$ac_try_echo"; } >&5
4569   (eval "$ac_try") 2>&5
4570   ac_status=$?
4571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4572   test $ac_status = 0; }; }; then
4573     cross_compiling=no
4574   else
4575     if test "$cross_compiling" = maybe; then
4576         cross_compiling=yes
4577     else
4578         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4580 as_fn_error $? "cannot run C compiled programs.
4581 If you meant to cross compile, use \`--host'.
4582 See \`config.log' for more details" "$LINENO" 5; }
4583     fi
4584   fi
4585 fi
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4587 $as_echo "$cross_compiling" >&6; }
4588
4589 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4590 ac_clean_files=$ac_clean_files_save
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4592 $as_echo_n "checking for suffix of object files... " >&6; }
4593 if ${ac_cv_objext+:} false; then :
4594   $as_echo_n "(cached) " >&6
4595 else
4596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h.  */
4598
4599 int
4600 main ()
4601 {
4602
4603   ;
4604   return 0;
4605 }
4606 _ACEOF
4607 rm -f conftest.o conftest.obj
4608 if { { ac_try="$ac_compile"
4609 case "(($ac_try" in
4610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611   *) ac_try_echo=$ac_try;;
4612 esac
4613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614 $as_echo "$ac_try_echo"; } >&5
4615   (eval "$ac_compile") 2>&5
4616   ac_status=$?
4617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4618   test $ac_status = 0; }; then :
4619   for ac_file in conftest.o conftest.obj conftest.*; do
4620   test -f "$ac_file" || continue;
4621   case $ac_file in
4622     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4623     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4624        break;;
4625   esac
4626 done
4627 else
4628   $as_echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4630
4631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4633 as_fn_error $? "cannot compute suffix of object files: cannot compile
4634 See \`config.log' for more details" "$LINENO" 5; }
4635 fi
4636 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4637 fi
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4639 $as_echo "$ac_cv_objext" >&6; }
4640 OBJEXT=$ac_cv_objext
4641 ac_objext=$OBJEXT
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4643 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4644 if ${ac_cv_c_compiler_gnu+:} false; then :
4645   $as_echo_n "(cached) " >&6
4646 else
4647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h.  */
4649
4650 int
4651 main ()
4652 {
4653 #ifndef __GNUC__
4654        choke me
4655 #endif
4656
4657   ;
4658   return 0;
4659 }
4660 _ACEOF
4661 if ac_fn_c_try_compile "$LINENO"; then :
4662   ac_compiler_gnu=yes
4663 else
4664   ac_compiler_gnu=no
4665 fi
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4668
4669 fi
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4671 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4672 if test $ac_compiler_gnu = yes; then
4673   GCC=yes
4674 else
4675   GCC=
4676 fi
4677 ac_test_CFLAGS=${CFLAGS+set}
4678 ac_save_CFLAGS=$CFLAGS
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4680 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4681 if ${ac_cv_prog_cc_g+:} false; then :
4682   $as_echo_n "(cached) " >&6
4683 else
4684   ac_save_c_werror_flag=$ac_c_werror_flag
4685    ac_c_werror_flag=yes
4686    ac_cv_prog_cc_g=no
4687    CFLAGS="-g"
4688    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h.  */
4690
4691 int
4692 main ()
4693 {
4694
4695   ;
4696   return 0;
4697 }
4698 _ACEOF
4699 if ac_fn_c_try_compile "$LINENO"; then :
4700   ac_cv_prog_cc_g=yes
4701 else
4702   CFLAGS=""
4703       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h.  */
4705
4706 int
4707 main ()
4708 {
4709
4710   ;
4711   return 0;
4712 }
4713 _ACEOF
4714 if ac_fn_c_try_compile "$LINENO"; then :
4715
4716 else
4717   ac_c_werror_flag=$ac_save_c_werror_flag
4718          CFLAGS="-g"
4719          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h.  */
4721
4722 int
4723 main ()
4724 {
4725
4726   ;
4727   return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731   ac_cv_prog_cc_g=yes
4732 fi
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738    ac_c_werror_flag=$ac_save_c_werror_flag
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4741 $as_echo "$ac_cv_prog_cc_g" >&6; }
4742 if test "$ac_test_CFLAGS" = set; then
4743   CFLAGS=$ac_save_CFLAGS
4744 elif test $ac_cv_prog_cc_g = yes; then
4745   if test "$GCC" = yes; then
4746     CFLAGS="-g -O2"
4747   else
4748     CFLAGS="-g"
4749   fi
4750 else
4751   if test "$GCC" = yes; then
4752     CFLAGS="-O2"
4753   else
4754     CFLAGS=
4755   fi
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4758 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4759 if ${ac_cv_prog_cc_c89+:} false; then :
4760   $as_echo_n "(cached) " >&6
4761 else
4762   ac_cv_prog_cc_c89=no
4763 ac_save_CC=$CC
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h.  */
4766 #include <stdarg.h>
4767 #include <stdio.h>
4768 struct stat;
4769 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4770 struct buf { int x; };
4771 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4772 static char *e (p, i)
4773      char **p;
4774      int i;
4775 {
4776   return p[i];
4777 }
4778 static char *f (char * (*g) (char **, int), char **p, ...)
4779 {
4780   char *s;
4781   va_list v;
4782   va_start (v,p);
4783   s = g (p, va_arg (v,int));
4784   va_end (v);
4785   return s;
4786 }
4787
4788 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4789    function prototypes and stuff, but not '\xHH' hex character constants.
4790    These don't provoke an error unfortunately, instead are silently treated
4791    as 'x'.  The following induces an error, until -std is added to get
4792    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4793    array size at least.  It's necessary to write '\x00'==0 to get something
4794    that's true only with -std.  */
4795 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4796
4797 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4798    inside strings and character constants.  */
4799 #define FOO(x) 'x'
4800 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4801
4802 int test (int i, double x);
4803 struct s1 {int (*f) (int a);};
4804 struct s2 {int (*f) (double a);};
4805 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4806 int argc;
4807 char **argv;
4808 int
4809 main ()
4810 {
4811 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4812   ;
4813   return 0;
4814 }
4815 _ACEOF
4816 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4817         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4818 do
4819   CC="$ac_save_CC $ac_arg"
4820   if ac_fn_c_try_compile "$LINENO"; then :
4821   ac_cv_prog_cc_c89=$ac_arg
4822 fi
4823 rm -f core conftest.err conftest.$ac_objext
4824   test "x$ac_cv_prog_cc_c89" != "xno" && break
4825 done
4826 rm -f conftest.$ac_ext
4827 CC=$ac_save_CC
4828
4829 fi
4830 # AC_CACHE_VAL
4831 case "x$ac_cv_prog_cc_c89" in
4832   x)
4833     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4834 $as_echo "none needed" >&6; } ;;
4835   xno)
4836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4837 $as_echo "unsupported" >&6; } ;;
4838   *)
4839     CC="$CC $ac_cv_prog_cc_c89"
4840     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4841 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4842 esac
4843 if test "x$ac_cv_prog_cc_c89" != xno; then :
4844
4845 fi
4846
4847 ac_ext=c
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852
4853    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4854 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4855 if ${ac_cv_prog_cc_c99+:} false; then :
4856   $as_echo_n "(cached) " >&6
4857 else
4858   ac_cv_prog_cc_c99=no
4859 ac_save_CC=$CC
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h.  */
4862 #include <stdarg.h>
4863 #include <stdbool.h>
4864 #include <stdlib.h>
4865 #include <wchar.h>
4866 #include <stdio.h>
4867
4868 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4869 #define debug(...) fprintf (stderr, __VA_ARGS__)
4870 #define showlist(...) puts (#__VA_ARGS__)
4871 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4872 static void
4873 test_varargs_macros (void)
4874 {
4875   int x = 1234;
4876   int y = 5678;
4877   debug ("Flag");
4878   debug ("X = %d\n", x);
4879   showlist (The first, second, and third items.);
4880   report (x>y, "x is %d but y is %d", x, y);
4881 }
4882
4883 // Check long long types.
4884 #define BIG64 18446744073709551615ull
4885 #define BIG32 4294967295ul
4886 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4887 #if !BIG_OK
4888   your preprocessor is broken;
4889 #endif
4890 #if BIG_OK
4891 #else
4892   your preprocessor is broken;
4893 #endif
4894 static long long int bignum = -9223372036854775807LL;
4895 static unsigned long long int ubignum = BIG64;
4896
4897 struct incomplete_array
4898 {
4899   int datasize;
4900   double data[];
4901 };
4902
4903 struct named_init {
4904   int number;
4905   const wchar_t *name;
4906   double average;
4907 };
4908
4909 typedef const char *ccp;
4910
4911 static inline int
4912 test_restrict (ccp restrict text)
4913 {
4914   // See if C++-style comments work.
4915   // Iterate through items via the restricted pointer.
4916   // Also check for declarations in for loops.
4917   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4918     continue;
4919   return 0;
4920 }
4921
4922 // Check varargs and va_copy.
4923 static void
4924 test_varargs (const char *format, ...)
4925 {
4926   va_list args;
4927   va_start (args, format);
4928   va_list args_copy;
4929   va_copy (args_copy, args);
4930
4931   const char *str;
4932   int number;
4933   float fnumber;
4934
4935   while (*format)
4936     {
4937       switch (*format++)
4938         {
4939         case 's': // string
4940           str = va_arg (args_copy, const char *);
4941           break;
4942         case 'd': // int
4943           number = va_arg (args_copy, int);
4944           break;
4945         case 'f': // float
4946           fnumber = va_arg (args_copy, double);
4947           break;
4948         default:
4949           break;
4950         }
4951     }
4952   va_end (args_copy);
4953   va_end (args);
4954 }
4955
4956 int
4957 main ()
4958 {
4959
4960   // Check bool.
4961   _Bool success = false;
4962
4963   // Check restrict.
4964   if (test_restrict ("String literal") == 0)
4965     success = true;
4966   char *restrict newvar = "Another string";
4967
4968   // Check varargs.
4969   test_varargs ("s, d' f .", "string", 65, 34.234);
4970   test_varargs_macros ();
4971
4972   // Check flexible array members.
4973   struct incomplete_array *ia =
4974     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4975   ia->datasize = 10;
4976   for (int i = 0; i < ia->datasize; ++i)
4977     ia->data[i] = i * 1.234;
4978
4979   // Check named initializers.
4980   struct named_init ni = {
4981     .number = 34,
4982     .name = L"Test wide string",
4983     .average = 543.34343,
4984   };
4985
4986   ni.number = 58;
4987
4988   int dynamic_array[ni.number];
4989   dynamic_array[ni.number - 1] = 543;
4990
4991   // work around unused variable warnings
4992   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4993           || dynamic_array[ni.number - 1] != 543);
4994
4995   ;
4996   return 0;
4997 }
4998 _ACEOF
4999 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5000 do
5001   CC="$ac_save_CC $ac_arg"
5002   if ac_fn_c_try_compile "$LINENO"; then :
5003   ac_cv_prog_cc_c99=$ac_arg
5004 fi
5005 rm -f core conftest.err conftest.$ac_objext
5006   test "x$ac_cv_prog_cc_c99" != "xno" && break
5007 done
5008 rm -f conftest.$ac_ext
5009 CC=$ac_save_CC
5010
5011 fi
5012 # AC_CACHE_VAL
5013 case "x$ac_cv_prog_cc_c99" in
5014   x)
5015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5016 $as_echo "none needed" >&6; } ;;
5017   xno)
5018     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5019 $as_echo "unsupported" >&6; } ;;
5020   *)
5021     CC="$CC $ac_cv_prog_cc_c99"
5022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5023 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5024 esac
5025 if test "x$ac_cv_prog_cc_c99" != xno; then :
5026
5027 fi
5028
5029
5030 ac_ext=cpp
5031 ac_cpp='$CXXCPP $CPPFLAGS'
5032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5035 if test -z "$CXX"; then
5036   if test -n "$CCC"; then
5037     CXX=$CCC
5038   else
5039     if test -n "$ac_tool_prefix"; then
5040   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5041   do
5042     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5043 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if ${ac_cv_prog_CXX+:} false; then :
5047   $as_echo_n "(cached) " >&6
5048 else
5049   if test -n "$CXX"; then
5050   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055   IFS=$as_save_IFS
5056   test -z "$as_dir" && as_dir=.
5057     for ac_exec_ext in '' $ac_executable_extensions; do
5058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061     break 2
5062   fi
5063 done
5064   done
5065 IFS=$as_save_IFS
5066
5067 fi
5068 fi
5069 CXX=$ac_cv_prog_CXX
5070 if test -n "$CXX"; then
5071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5072 $as_echo "$CXX" >&6; }
5073 else
5074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5076 fi
5077
5078
5079     test -n "$CXX" && break
5080   done
5081 fi
5082 if test -z "$CXX"; then
5083   ac_ct_CXX=$CXX
5084   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5085 do
5086   # Extract the first word of "$ac_prog", so it can be a program name with args.
5087 set dummy $ac_prog; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5091   $as_echo_n "(cached) " >&6
5092 else
5093   if test -n "$ac_ct_CXX"; then
5094   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099   IFS=$as_save_IFS
5100   test -z "$as_dir" && as_dir=.
5101     for ac_exec_ext in '' $ac_executable_extensions; do
5102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103     ac_cv_prog_ac_ct_CXX="$ac_prog"
5104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105     break 2
5106   fi
5107 done
5108   done
5109 IFS=$as_save_IFS
5110
5111 fi
5112 fi
5113 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5114 if test -n "$ac_ct_CXX"; then
5115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5116 $as_echo "$ac_ct_CXX" >&6; }
5117 else
5118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5120 fi
5121
5122
5123   test -n "$ac_ct_CXX" && break
5124 done
5125
5126   if test "x$ac_ct_CXX" = x; then
5127     CXX="g++"
5128   else
5129     case $cross_compiling:$ac_tool_warned in
5130 yes:)
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5133 ac_tool_warned=yes ;;
5134 esac
5135     CXX=$ac_ct_CXX
5136   fi
5137 fi
5138
5139   fi
5140 fi
5141 # Provide some information about the compiler.
5142 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5143 set X $ac_compile
5144 ac_compiler=$2
5145 for ac_option in --version -v -V -qversion; do
5146   { { ac_try="$ac_compiler $ac_option >&5"
5147 case "(($ac_try" in
5148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149   *) ac_try_echo=$ac_try;;
5150 esac
5151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5152 $as_echo "$ac_try_echo"; } >&5
5153   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5154   ac_status=$?
5155   if test -s conftest.err; then
5156     sed '10a\
5157 ... rest of stderr output deleted ...
5158          10q' conftest.err >conftest.er1
5159     cat conftest.er1 >&5
5160   fi
5161   rm -f conftest.er1 conftest.err
5162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5163   test $ac_status = 0; }
5164 done
5165
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5167 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5168 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5169   $as_echo_n "(cached) " >&6
5170 else
5171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h.  */
5173
5174 int
5175 main ()
5176 {
5177 #ifndef __GNUC__
5178        choke me
5179 #endif
5180
5181   ;
5182   return 0;
5183 }
5184 _ACEOF
5185 if ac_fn_cxx_try_compile "$LINENO"; then :
5186   ac_compiler_gnu=yes
5187 else
5188   ac_compiler_gnu=no
5189 fi
5190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5191 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5192
5193 fi
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5195 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5196 if test $ac_compiler_gnu = yes; then
5197   GXX=yes
5198 else
5199   GXX=
5200 fi
5201 ac_test_CXXFLAGS=${CXXFLAGS+set}
5202 ac_save_CXXFLAGS=$CXXFLAGS
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5204 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5205 if ${ac_cv_prog_cxx_g+:} false; then :
5206   $as_echo_n "(cached) " >&6
5207 else
5208   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5209    ac_cxx_werror_flag=yes
5210    ac_cv_prog_cxx_g=no
5211    CXXFLAGS="-g"
5212    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h.  */
5214
5215 int
5216 main ()
5217 {
5218
5219   ;
5220   return 0;
5221 }
5222 _ACEOF
5223 if ac_fn_cxx_try_compile "$LINENO"; then :
5224   ac_cv_prog_cxx_g=yes
5225 else
5226   CXXFLAGS=""
5227       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h.  */
5229
5230 int
5231 main ()
5232 {
5233
5234   ;
5235   return 0;
5236 }
5237 _ACEOF
5238 if ac_fn_cxx_try_compile "$LINENO"; then :
5239
5240 else
5241   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5242          CXXFLAGS="-g"
5243          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h.  */
5245
5246 int
5247 main ()
5248 {
5249
5250   ;
5251   return 0;
5252 }
5253 _ACEOF
5254 if ac_fn_cxx_try_compile "$LINENO"; then :
5255   ac_cv_prog_cxx_g=yes
5256 fi
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258 fi
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 fi
5261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5262    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5263 fi
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5265 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5266 if test "$ac_test_CXXFLAGS" = set; then
5267   CXXFLAGS=$ac_save_CXXFLAGS
5268 elif test $ac_cv_prog_cxx_g = yes; then
5269   if test "$GXX" = yes; then
5270     CXXFLAGS="-g -O2"
5271   else
5272     CXXFLAGS="-g"
5273   fi
5274 else
5275   if test "$GXX" = yes; then
5276     CXXFLAGS="-O2"
5277   else
5278     CXXFLAGS=
5279   fi
5280 fi
5281 ac_ext=c
5282 ac_cpp='$CPP $CPPFLAGS'
5283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5286
5287
5288 # We must set the default linker to the linker used by gcc for the correct
5289 # operation of libtool.  If LD is not defined and we are using gcc, try to
5290 # set the LD default to the ld used by gcc.
5291 if test -z "$LD"; then
5292   if test "$GCC" = yes; then
5293     case $build in
5294     *-*-mingw*)
5295       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5296     *)
5297       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5298     esac
5299     case $gcc_prog_ld in
5300     # Accept absolute paths.
5301     [\\/]* | [A-Za-z]:[\\/]*)
5302       LD="$gcc_prog_ld" ;;
5303     esac
5304   fi
5305 fi
5306
5307 # Check whether -static-libstdc++ -static-libgcc is supported.
5308 have_static_libs=no
5309 if test "$GCC" = yes; then
5310   saved_LDFLAGS="$LDFLAGS"
5311
5312   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5314 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5315   ac_ext=cpp
5316 ac_cpp='$CXXCPP $CPPFLAGS'
5317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5320
5321
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h.  */
5324
5325 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5326 #error -static-libstdc++ not implemented
5327 #endif
5328 int main() {}
5329 _ACEOF
5330 if ac_fn_cxx_try_link "$LINENO"; then :
5331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5332 $as_echo "yes" >&6; }; have_static_libs=yes
5333 else
5334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5336 fi
5337 rm -f core conftest.err conftest.$ac_objext \
5338     conftest$ac_exeext conftest.$ac_ext
5339   ac_ext=c
5340 ac_cpp='$CPP $CPPFLAGS'
5341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5344
5345
5346   LDFLAGS="$saved_LDFLAGS"
5347 fi
5348
5349
5350
5351
5352 if test -n "$ac_tool_prefix"; then
5353   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5354 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_prog_GNATBIND+:} false; then :
5358   $as_echo_n "(cached) " >&6
5359 else
5360   if test -n "$GNATBIND"; then
5361   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366   IFS=$as_save_IFS
5367   test -z "$as_dir" && as_dir=.
5368     for ac_exec_ext in '' $ac_executable_extensions; do
5369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372     break 2
5373   fi
5374 done
5375   done
5376 IFS=$as_save_IFS
5377
5378 fi
5379 fi
5380 GNATBIND=$ac_cv_prog_GNATBIND
5381 if test -n "$GNATBIND"; then
5382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5383 $as_echo "$GNATBIND" >&6; }
5384 else
5385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5387 fi
5388
5389
5390 fi
5391 if test -z "$ac_cv_prog_GNATBIND"; then
5392   ac_ct_GNATBIND=$GNATBIND
5393   # Extract the first word of "gnatbind", so it can be a program name with args.
5394 set dummy gnatbind; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5398   $as_echo_n "(cached) " >&6
5399 else
5400   if test -n "$ac_ct_GNATBIND"; then
5401   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406   IFS=$as_save_IFS
5407   test -z "$as_dir" && as_dir=.
5408     for ac_exec_ext in '' $ac_executable_extensions; do
5409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412     break 2
5413   fi
5414 done
5415   done
5416 IFS=$as_save_IFS
5417
5418 fi
5419 fi
5420 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5421 if test -n "$ac_ct_GNATBIND"; then
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5423 $as_echo "$ac_ct_GNATBIND" >&6; }
5424 else
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5427 fi
5428
5429   if test "x$ac_ct_GNATBIND" = x; then
5430     GNATBIND="no"
5431   else
5432     case $cross_compiling:$ac_tool_warned in
5433 yes:)
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5436 ac_tool_warned=yes ;;
5437 esac
5438     GNATBIND=$ac_ct_GNATBIND
5439   fi
5440 else
5441   GNATBIND="$ac_cv_prog_GNATBIND"
5442 fi
5443
5444 if test -n "$ac_tool_prefix"; then
5445   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5446 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if ${ac_cv_prog_GNATMAKE+:} false; then :
5450   $as_echo_n "(cached) " >&6
5451 else
5452   if test -n "$GNATMAKE"; then
5453   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5457 do
5458   IFS=$as_save_IFS
5459   test -z "$as_dir" && as_dir=.
5460     for ac_exec_ext in '' $ac_executable_extensions; do
5461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464     break 2
5465   fi
5466 done
5467   done
5468 IFS=$as_save_IFS
5469
5470 fi
5471 fi
5472 GNATMAKE=$ac_cv_prog_GNATMAKE
5473 if test -n "$GNATMAKE"; then
5474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5475 $as_echo "$GNATMAKE" >&6; }
5476 else
5477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5479 fi
5480
5481
5482 fi
5483 if test -z "$ac_cv_prog_GNATMAKE"; then
5484   ac_ct_GNATMAKE=$GNATMAKE
5485   # Extract the first word of "gnatmake", so it can be a program name with args.
5486 set dummy gnatmake; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5490   $as_echo_n "(cached) " >&6
5491 else
5492   if test -n "$ac_ct_GNATMAKE"; then
5493   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5494 else
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5497 do
5498   IFS=$as_save_IFS
5499   test -z "$as_dir" && as_dir=.
5500     for ac_exec_ext in '' $ac_executable_extensions; do
5501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504     break 2
5505   fi
5506 done
5507   done
5508 IFS=$as_save_IFS
5509
5510 fi
5511 fi
5512 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5513 if test -n "$ac_ct_GNATMAKE"; then
5514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5515 $as_echo "$ac_ct_GNATMAKE" >&6; }
5516 else
5517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 fi
5520
5521   if test "x$ac_ct_GNATMAKE" = x; then
5522     GNATMAKE="no"
5523   else
5524     case $cross_compiling:$ac_tool_warned in
5525 yes:)
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5528 ac_tool_warned=yes ;;
5529 esac
5530     GNATMAKE=$ac_ct_GNATMAKE
5531   fi
5532 else
5533   GNATMAKE="$ac_cv_prog_GNATMAKE"
5534 fi
5535
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5537 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5538 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5539   $as_echo_n "(cached) " >&6
5540 else
5541   cat >conftest.adb <<EOF
5542 pragma Warnings (Off);
5543 with System.CRTL;
5544 pragma Warnings (On);
5545 use type System.CRTL.int64;
5546 procedure conftest is begin null; end conftest;
5547 EOF
5548 acx_cv_cc_gcc_supports_ada=no
5549 # There is a bug in old released versions of GCC which causes the
5550 # driver to exit successfully when the appropriate language module
5551 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5552 # Therefore we must check for the error message as well as an
5553 # unsuccessful exit.
5554 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5555 # given a .adb file, but produce no object file.  So we must check
5556 # if an object file was really produced to guard against this.
5557 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5558 if test x"$errors" = x && test -f conftest.$ac_objext; then
5559   acx_cv_cc_gcc_supports_ada=yes
5560 fi
5561 rm -f conftest.*
5562 fi
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5564 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5565
5566 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5567   have_gnat=yes
5568 else
5569   have_gnat=no
5570 fi
5571
5572
5573
5574 if test -n "$ac_tool_prefix"; then
5575   # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5576 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_GDC+:} false; then :
5580   $as_echo_n "(cached) " >&6
5581 else
5582   if test -n "$GDC"; then
5583   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588   IFS=$as_save_IFS
5589   test -z "$as_dir" && as_dir=.
5590     for ac_exec_ext in '' $ac_executable_extensions; do
5591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592     ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594     break 2
5595   fi
5596 done
5597   done
5598 IFS=$as_save_IFS
5599
5600 fi
5601 fi
5602 GDC=$ac_cv_prog_GDC
5603 if test -n "$GDC"; then
5604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5605 $as_echo "$GDC" >&6; }
5606 else
5607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5609 fi
5610
5611
5612 fi
5613 if test -z "$ac_cv_prog_GDC"; then
5614   ac_ct_GDC=$GDC
5615   # Extract the first word of "gdc", so it can be a program name with args.
5616 set dummy gdc; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5620   $as_echo_n "(cached) " >&6
5621 else
5622   if test -n "$ac_ct_GDC"; then
5623   ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628   IFS=$as_save_IFS
5629   test -z "$as_dir" && as_dir=.
5630     for ac_exec_ext in '' $ac_executable_extensions; do
5631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632     ac_cv_prog_ac_ct_GDC="gdc"
5633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634     break 2
5635   fi
5636 done
5637   done
5638 IFS=$as_save_IFS
5639
5640 fi
5641 fi
5642 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5643 if test -n "$ac_ct_GDC"; then
5644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5645 $as_echo "$ac_ct_GDC" >&6; }
5646 else
5647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5649 fi
5650
5651   if test "x$ac_ct_GDC" = x; then
5652     GDC="no"
5653   else
5654     case $cross_compiling:$ac_tool_warned in
5655 yes:)
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5658 ac_tool_warned=yes ;;
5659 esac
5660     GDC=$ac_ct_GDC
5661   fi
5662 else
5663   GDC="$ac_cv_prog_GDC"
5664 fi
5665
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5667 $as_echo_n "checking whether the D compiler works... " >&6; }
5668 if ${acx_cv_d_compiler_works+:} false; then :
5669   $as_echo_n "(cached) " >&6
5670 else
5671   cat >conftest.d <<EOF
5672 module conftest; int main() { return 0; }
5673 EOF
5674 acx_cv_d_compiler_works=no
5675 if test "x$GDC" != xno; then
5676   errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5677   if test x"$errors" = x && test -f conftest.$ac_objext; then
5678     acx_cv_d_compiler_works=yes
5679   fi
5680   rm -f conftest.*
5681 fi
5682 fi
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5684 $as_echo "$acx_cv_d_compiler_works" >&6; }
5685 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5686   have_gdc=yes
5687 else
5688   have_gdc=no
5689 fi
5690
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5692 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5693 if ${gcc_cv_prog_cmp_skip+:} false; then :
5694   $as_echo_n "(cached) " >&6
5695 else
5696    echo abfoo >t1
5697   echo cdfoo >t2
5698   gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5699   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5700     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5701       :
5702     else
5703       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5704     fi
5705   fi
5706   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5707     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5708       :
5709     else
5710       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5711     fi
5712   fi
5713   rm t1 t2
5714
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5717 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5718 do_compare="$gcc_cv_prog_cmp_skip"
5719
5720
5721
5722 # Check whether --enable-bootstrap was given.
5723 if test "${enable_bootstrap+set}" = set; then :
5724   enableval=$enable_bootstrap;
5725 else
5726   enable_bootstrap=default
5727 fi
5728
5729
5730 # Issue errors and warnings for invalid/strange bootstrap combinations.
5731 if test -r $srcdir/gcc/configure; then
5732   have_compiler=yes
5733 else
5734   have_compiler=no
5735 fi
5736
5737 case "$have_compiler:$host:$target:$enable_bootstrap" in
5738   *:*:*:no) ;;
5739
5740   # Default behavior.  Enable bootstrap if we have a compiler
5741   # and we are in a native configuration.
5742   yes:$build:$build:default)
5743     enable_bootstrap=yes ;;
5744
5745   *:*:*:default)
5746     enable_bootstrap=no ;;
5747
5748   # We have a compiler and we are in a native configuration, bootstrap is ok
5749   yes:$build:$build:yes)
5750     ;;
5751
5752   # Other configurations, but we have a compiler.  Assume the user knows
5753   # what he's doing.
5754   yes:*:*:yes)
5755     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5756 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5757     ;;
5758
5759   # No compiler: if they passed --enable-bootstrap explicitly, fail
5760   no:*:*:yes)
5761     as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5762
5763   # Fail if wrong command line
5764   *)
5765     as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5766     ;;
5767 esac
5768
5769 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5770 # C++11 compiler can still start the bootstrap.  Otherwise, if building GCC,
5771 # require C++11 (or higher).
5772 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5773   CXX="$CXX -std=c++11"
5774 elif test "$have_compiler" = yes; then
5775     ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
5776   ac_ext=cpp
5777 ac_cpp='$CXXCPP $CPPFLAGS'
5778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5781   ac_success=no
5782
5783       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5784 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5785 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5786   $as_echo_n "(cached) " >&6
5787 else
5788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h.  */
5790
5791
5792 // If the compiler admits that it is not ready for C++11, why torture it?
5793 // Hopefully, this will speed up the test.
5794
5795 #ifndef __cplusplus
5796
5797 #error "This is not a C++ compiler"
5798
5799 #elif __cplusplus < 201103L
5800
5801 #error "This is not a C++11 compiler"
5802
5803 #else
5804
5805 namespace cxx11
5806 {
5807
5808   namespace test_static_assert
5809   {
5810
5811     template <typename T>
5812     struct check
5813     {
5814       static_assert(sizeof(int) <= sizeof(T), "not big enough");
5815     };
5816
5817   }
5818
5819   namespace test_final_override
5820   {
5821
5822     struct Base
5823     {
5824       virtual ~Base() {}
5825       virtual void f() {}
5826     };
5827
5828     struct Derived : public Base
5829     {
5830       virtual ~Derived() override {}
5831       virtual void f() override {}
5832     };
5833
5834   }
5835
5836   namespace test_double_right_angle_brackets
5837   {
5838
5839     template < typename T >
5840     struct check {};
5841
5842     typedef check<void> single_type;
5843     typedef check<check<void>> double_type;
5844     typedef check<check<check<void>>> triple_type;
5845     typedef check<check<check<check<void>>>> quadruple_type;
5846
5847   }
5848
5849   namespace test_decltype
5850   {
5851
5852     int
5853     f()
5854     {
5855       int a = 1;
5856       decltype(a) b = 2;
5857       return a + b;
5858     }
5859
5860   }
5861
5862   namespace test_type_deduction
5863   {
5864
5865     template < typename T1, typename T2 >
5866     struct is_same
5867     {
5868       static const bool value = false;
5869     };
5870
5871     template < typename T >
5872     struct is_same<T, T>
5873     {
5874       static const bool value = true;
5875     };
5876
5877     template < typename T1, typename T2 >
5878     auto
5879     add(T1 a1, T2 a2) -> decltype(a1 + a2)
5880     {
5881       return a1 + a2;
5882     }
5883
5884     int
5885     test(const int c, volatile int v)
5886     {
5887       static_assert(is_same<int, decltype(0)>::value == true, "");
5888       static_assert(is_same<int, decltype(c)>::value == false, "");
5889       static_assert(is_same<int, decltype(v)>::value == false, "");
5890       auto ac = c;
5891       auto av = v;
5892       auto sumi = ac + av + 'x';
5893       auto sumf = ac + av + 1.0;
5894       static_assert(is_same<int, decltype(ac)>::value == true, "");
5895       static_assert(is_same<int, decltype(av)>::value == true, "");
5896       static_assert(is_same<int, decltype(sumi)>::value == true, "");
5897       static_assert(is_same<int, decltype(sumf)>::value == false, "");
5898       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5899       return (sumf > 0.0) ? sumi : add(c, v);
5900     }
5901
5902   }
5903
5904   namespace test_noexcept
5905   {
5906
5907     int f() { return 0; }
5908     int g() noexcept { return 0; }
5909
5910     static_assert(noexcept(f()) == false, "");
5911     static_assert(noexcept(g()) == true, "");
5912
5913   }
5914
5915   namespace test_constexpr
5916   {
5917
5918     template < typename CharT >
5919     unsigned long constexpr
5920     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5921     {
5922       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5923     }
5924
5925     template < typename CharT >
5926     unsigned long constexpr
5927     strlen_c(const CharT *const s) noexcept
5928     {
5929       return strlen_c_r(s, 0UL);
5930     }
5931
5932     static_assert(strlen_c("") == 0UL, "");
5933     static_assert(strlen_c("1") == 1UL, "");
5934     static_assert(strlen_c("example") == 7UL, "");
5935     static_assert(strlen_c("another\0example") == 7UL, "");
5936
5937   }
5938
5939   namespace test_rvalue_references
5940   {
5941
5942     template < int N >
5943     struct answer
5944     {
5945       static constexpr int value = N;
5946     };
5947
5948     answer<1> f(int&)       { return answer<1>(); }
5949     answer<2> f(const int&) { return answer<2>(); }
5950     answer<3> f(int&&)      { return answer<3>(); }
5951
5952     void
5953     test()
5954     {
5955       int i = 0;
5956       const int c = 0;
5957       static_assert(decltype(f(i))::value == 1, "");
5958       static_assert(decltype(f(c))::value == 2, "");
5959       static_assert(decltype(f(0))::value == 3, "");
5960     }
5961
5962   }
5963
5964   namespace test_uniform_initialization
5965   {
5966
5967     struct test
5968     {
5969       static const int zero {};
5970       static const int one {1};
5971     };
5972
5973     static_assert(test::zero == 0, "");
5974     static_assert(test::one == 1, "");
5975
5976   }
5977
5978   namespace test_lambdas
5979   {
5980
5981     void
5982     test1()
5983     {
5984       auto lambda1 = [](){};
5985       auto lambda2 = lambda1;
5986       lambda1();
5987       lambda2();
5988     }
5989
5990     int
5991     test2()
5992     {
5993       auto a = [](int i, int j){ return i + j; }(1, 2);
5994       auto b = []() -> int { return '0'; }();
5995       auto c = [=](){ return a + b; }();
5996       auto d = [&](){ return c; }();
5997       auto e = [a, &b](int x) mutable {
5998         const auto identity = [](int y){ return y; };
5999         for (auto i = 0; i < a; ++i)
6000           a += b--;
6001         return x + identity(a + b);
6002       }(0);
6003       return a + b + c + d + e;
6004     }
6005
6006     int
6007     test3()
6008     {
6009       const auto nullary = [](){ return 0; };
6010       const auto unary = [](int x){ return x; };
6011       using nullary_t = decltype(nullary);
6012       using unary_t = decltype(unary);
6013       const auto higher1st = [](nullary_t f){ return f(); };
6014       const auto higher2nd = [unary](nullary_t f1){
6015         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6016       };
6017       return higher1st(nullary) + higher2nd(nullary)(unary);
6018     }
6019
6020   }
6021
6022   namespace test_variadic_templates
6023   {
6024
6025     template <int...>
6026     struct sum;
6027
6028     template <int N0, int... N1toN>
6029     struct sum<N0, N1toN...>
6030     {
6031       static constexpr auto value = N0 + sum<N1toN...>::value;
6032     };
6033
6034     template <>
6035     struct sum<>
6036     {
6037       static constexpr auto value = 0;
6038     };
6039
6040     static_assert(sum<>::value == 0, "");
6041     static_assert(sum<1>::value == 1, "");
6042     static_assert(sum<23>::value == 23, "");
6043     static_assert(sum<1, 2>::value == 3, "");
6044     static_assert(sum<5, 5, 11>::value == 21, "");
6045     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6046
6047   }
6048
6049   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6050   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6051   // because of this.
6052   namespace test_template_alias_sfinae
6053   {
6054
6055     struct foo {};
6056
6057     template<typename T>
6058     using member = typename T::member_type;
6059
6060     template<typename T>
6061     void func(...) {}
6062
6063     template<typename T>
6064     void func(member<T>*) {}
6065
6066     void test();
6067
6068     void test() { func<foo>(0); }
6069
6070   }
6071
6072 }  // namespace cxx11
6073
6074 #endif  // __cplusplus >= 201103L
6075
6076
6077
6078 _ACEOF
6079 if ac_fn_cxx_try_compile "$LINENO"; then :
6080   ax_cv_cxx_compile_cxx11=yes
6081 else
6082   ax_cv_cxx_compile_cxx11=no
6083 fi
6084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085 fi
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6087 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6088     if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6089       ac_success=yes
6090     fi
6091
6092     if test x$ac_success = xno; then
6093     for alternative in ${ax_cxx_compile_alternatives}; do
6094       switch="-std=gnu++${alternative}"
6095       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6096       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6097 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6098 if eval \${$cachevar+:} false; then :
6099   $as_echo_n "(cached) " >&6
6100 else
6101   ac_save_CXX="$CXX"
6102          CXX="$CXX $switch"
6103          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h.  */
6105
6106
6107 // If the compiler admits that it is not ready for C++11, why torture it?
6108 // Hopefully, this will speed up the test.
6109
6110 #ifndef __cplusplus
6111
6112 #error "This is not a C++ compiler"
6113
6114 #elif __cplusplus < 201103L
6115
6116 #error "This is not a C++11 compiler"
6117
6118 #else
6119
6120 namespace cxx11
6121 {
6122
6123   namespace test_static_assert
6124   {
6125
6126     template <typename T>
6127     struct check
6128     {
6129       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6130     };
6131
6132   }
6133
6134   namespace test_final_override
6135   {
6136
6137     struct Base
6138     {
6139       virtual ~Base() {}
6140       virtual void f() {}
6141     };
6142
6143     struct Derived : public Base
6144     {
6145       virtual ~Derived() override {}
6146       virtual void f() override {}
6147     };
6148
6149   }
6150
6151   namespace test_double_right_angle_brackets
6152   {
6153
6154     template < typename T >
6155     struct check {};
6156
6157     typedef check<void> single_type;
6158     typedef check<check<void>> double_type;
6159     typedef check<check<check<void>>> triple_type;
6160     typedef check<check<check<check<void>>>> quadruple_type;
6161
6162   }
6163
6164   namespace test_decltype
6165   {
6166
6167     int
6168     f()
6169     {
6170       int a = 1;
6171       decltype(a) b = 2;
6172       return a + b;
6173     }
6174
6175   }
6176
6177   namespace test_type_deduction
6178   {
6179
6180     template < typename T1, typename T2 >
6181     struct is_same
6182     {
6183       static const bool value = false;
6184     };
6185
6186     template < typename T >
6187     struct is_same<T, T>
6188     {
6189       static const bool value = true;
6190     };
6191
6192     template < typename T1, typename T2 >
6193     auto
6194     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6195     {
6196       return a1 + a2;
6197     }
6198
6199     int
6200     test(const int c, volatile int v)
6201     {
6202       static_assert(is_same<int, decltype(0)>::value == true, "");
6203       static_assert(is_same<int, decltype(c)>::value == false, "");
6204       static_assert(is_same<int, decltype(v)>::value == false, "");
6205       auto ac = c;
6206       auto av = v;
6207       auto sumi = ac + av + 'x';
6208       auto sumf = ac + av + 1.0;
6209       static_assert(is_same<int, decltype(ac)>::value == true, "");
6210       static_assert(is_same<int, decltype(av)>::value == true, "");
6211       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6212       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6213       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6214       return (sumf > 0.0) ? sumi : add(c, v);
6215     }
6216
6217   }
6218
6219   namespace test_noexcept
6220   {
6221
6222     int f() { return 0; }
6223     int g() noexcept { return 0; }
6224
6225     static_assert(noexcept(f()) == false, "");
6226     static_assert(noexcept(g()) == true, "");
6227
6228   }
6229
6230   namespace test_constexpr
6231   {
6232
6233     template < typename CharT >
6234     unsigned long constexpr
6235     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6236     {
6237       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6238     }
6239
6240     template < typename CharT >
6241     unsigned long constexpr
6242     strlen_c(const CharT *const s) noexcept
6243     {
6244       return strlen_c_r(s, 0UL);
6245     }
6246
6247     static_assert(strlen_c("") == 0UL, "");
6248     static_assert(strlen_c("1") == 1UL, "");
6249     static_assert(strlen_c("example") == 7UL, "");
6250     static_assert(strlen_c("another\0example") == 7UL, "");
6251
6252   }
6253
6254   namespace test_rvalue_references
6255   {
6256
6257     template < int N >
6258     struct answer
6259     {
6260       static constexpr int value = N;
6261     };
6262
6263     answer<1> f(int&)       { return answer<1>(); }
6264     answer<2> f(const int&) { return answer<2>(); }
6265     answer<3> f(int&&)      { return answer<3>(); }
6266
6267     void
6268     test()
6269     {
6270       int i = 0;
6271       const int c = 0;
6272       static_assert(decltype(f(i))::value == 1, "");
6273       static_assert(decltype(f(c))::value == 2, "");
6274       static_assert(decltype(f(0))::value == 3, "");
6275     }
6276
6277   }
6278
6279   namespace test_uniform_initialization
6280   {
6281
6282     struct test
6283     {
6284       static const int zero {};
6285       static const int one {1};
6286     };
6287
6288     static_assert(test::zero == 0, "");
6289     static_assert(test::one == 1, "");
6290
6291   }
6292
6293   namespace test_lambdas
6294   {
6295
6296     void
6297     test1()
6298     {
6299       auto lambda1 = [](){};
6300       auto lambda2 = lambda1;
6301       lambda1();
6302       lambda2();
6303     }
6304
6305     int
6306     test2()
6307     {
6308       auto a = [](int i, int j){ return i + j; }(1, 2);
6309       auto b = []() -> int { return '0'; }();
6310       auto c = [=](){ return a + b; }();
6311       auto d = [&](){ return c; }();
6312       auto e = [a, &b](int x) mutable {
6313         const auto identity = [](int y){ return y; };
6314         for (auto i = 0; i < a; ++i)
6315           a += b--;
6316         return x + identity(a + b);
6317       }(0);
6318       return a + b + c + d + e;
6319     }
6320
6321     int
6322     test3()
6323     {
6324       const auto nullary = [](){ return 0; };
6325       const auto unary = [](int x){ return x; };
6326       using nullary_t = decltype(nullary);
6327       using unary_t = decltype(unary);
6328       const auto higher1st = [](nullary_t f){ return f(); };
6329       const auto higher2nd = [unary](nullary_t f1){
6330         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6331       };
6332       return higher1st(nullary) + higher2nd(nullary)(unary);
6333     }
6334
6335   }
6336
6337   namespace test_variadic_templates
6338   {
6339
6340     template <int...>
6341     struct sum;
6342
6343     template <int N0, int... N1toN>
6344     struct sum<N0, N1toN...>
6345     {
6346       static constexpr auto value = N0 + sum<N1toN...>::value;
6347     };
6348
6349     template <>
6350     struct sum<>
6351     {
6352       static constexpr auto value = 0;
6353     };
6354
6355     static_assert(sum<>::value == 0, "");
6356     static_assert(sum<1>::value == 1, "");
6357     static_assert(sum<23>::value == 23, "");
6358     static_assert(sum<1, 2>::value == 3, "");
6359     static_assert(sum<5, 5, 11>::value == 21, "");
6360     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6361
6362   }
6363
6364   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6365   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6366   // because of this.
6367   namespace test_template_alias_sfinae
6368   {
6369
6370     struct foo {};
6371
6372     template<typename T>
6373     using member = typename T::member_type;
6374
6375     template<typename T>
6376     void func(...) {}
6377
6378     template<typename T>
6379     void func(member<T>*) {}
6380
6381     void test();
6382
6383     void test() { func<foo>(0); }
6384
6385   }
6386
6387 }  // namespace cxx11
6388
6389 #endif  // __cplusplus >= 201103L
6390
6391
6392
6393 _ACEOF
6394 if ac_fn_cxx_try_compile "$LINENO"; then :
6395   eval $cachevar=yes
6396 else
6397   eval $cachevar=no
6398 fi
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400          CXX="$ac_save_CXX"
6401 fi
6402 eval ac_res=\$$cachevar
6403                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6404 $as_echo "$ac_res" >&6; }
6405       if eval test x\$$cachevar = xyes; then
6406         CXX="$CXX $switch"
6407         if test -n "$CXXCPP" ; then
6408           CXXCPP="$CXXCPP $switch"
6409         fi
6410         ac_success=yes
6411         break
6412       fi
6413     done
6414   fi
6415
6416     if test x$ac_success = xno; then
6417                 for alternative in ${ax_cxx_compile_alternatives}; do
6418       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6419         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6420         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6421 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6422 if eval \${$cachevar+:} false; then :
6423   $as_echo_n "(cached) " >&6
6424 else
6425   ac_save_CXX="$CXX"
6426            CXX="$CXX $switch"
6427            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428 /* end confdefs.h.  */
6429
6430
6431 // If the compiler admits that it is not ready for C++11, why torture it?
6432 // Hopefully, this will speed up the test.
6433
6434 #ifndef __cplusplus
6435
6436 #error "This is not a C++ compiler"
6437
6438 #elif __cplusplus < 201103L
6439
6440 #error "This is not a C++11 compiler"
6441
6442 #else
6443
6444 namespace cxx11
6445 {
6446
6447   namespace test_static_assert
6448   {
6449
6450     template <typename T>
6451     struct check
6452     {
6453       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6454     };
6455
6456   }
6457
6458   namespace test_final_override
6459   {
6460
6461     struct Base
6462     {
6463       virtual ~Base() {}
6464       virtual void f() {}
6465     };
6466
6467     struct Derived : public Base
6468     {
6469       virtual ~Derived() override {}
6470       virtual void f() override {}
6471     };
6472
6473   }
6474
6475   namespace test_double_right_angle_brackets
6476   {
6477
6478     template < typename T >
6479     struct check {};
6480
6481     typedef check<void> single_type;
6482     typedef check<check<void>> double_type;
6483     typedef check<check<check<void>>> triple_type;
6484     typedef check<check<check<check<void>>>> quadruple_type;
6485
6486   }
6487
6488   namespace test_decltype
6489   {
6490
6491     int
6492     f()
6493     {
6494       int a = 1;
6495       decltype(a) b = 2;
6496       return a + b;
6497     }
6498
6499   }
6500
6501   namespace test_type_deduction
6502   {
6503
6504     template < typename T1, typename T2 >
6505     struct is_same
6506     {
6507       static const bool value = false;
6508     };
6509
6510     template < typename T >
6511     struct is_same<T, T>
6512     {
6513       static const bool value = true;
6514     };
6515
6516     template < typename T1, typename T2 >
6517     auto
6518     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6519     {
6520       return a1 + a2;
6521     }
6522
6523     int
6524     test(const int c, volatile int v)
6525     {
6526       static_assert(is_same<int, decltype(0)>::value == true, "");
6527       static_assert(is_same<int, decltype(c)>::value == false, "");
6528       static_assert(is_same<int, decltype(v)>::value == false, "");
6529       auto ac = c;
6530       auto av = v;
6531       auto sumi = ac + av + 'x';
6532       auto sumf = ac + av + 1.0;
6533       static_assert(is_same<int, decltype(ac)>::value == true, "");
6534       static_assert(is_same<int, decltype(av)>::value == true, "");
6535       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6536       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6537       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6538       return (sumf > 0.0) ? sumi : add(c, v);
6539     }
6540
6541   }
6542
6543   namespace test_noexcept
6544   {
6545
6546     int f() { return 0; }
6547     int g() noexcept { return 0; }
6548
6549     static_assert(noexcept(f()) == false, "");
6550     static_assert(noexcept(g()) == true, "");
6551
6552   }
6553
6554   namespace test_constexpr
6555   {
6556
6557     template < typename CharT >
6558     unsigned long constexpr
6559     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6560     {
6561       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6562     }
6563
6564     template < typename CharT >
6565     unsigned long constexpr
6566     strlen_c(const CharT *const s) noexcept
6567     {
6568       return strlen_c_r(s, 0UL);
6569     }
6570
6571     static_assert(strlen_c("") == 0UL, "");
6572     static_assert(strlen_c("1") == 1UL, "");
6573     static_assert(strlen_c("example") == 7UL, "");
6574     static_assert(strlen_c("another\0example") == 7UL, "");
6575
6576   }
6577
6578   namespace test_rvalue_references
6579   {
6580
6581     template < int N >
6582     struct answer
6583     {
6584       static constexpr int value = N;
6585     };
6586
6587     answer<1> f(int&)       { return answer<1>(); }
6588     answer<2> f(const int&) { return answer<2>(); }
6589     answer<3> f(int&&)      { return answer<3>(); }
6590
6591     void
6592     test()
6593     {
6594       int i = 0;
6595       const int c = 0;
6596       static_assert(decltype(f(i))::value == 1, "");
6597       static_assert(decltype(f(c))::value == 2, "");
6598       static_assert(decltype(f(0))::value == 3, "");
6599     }
6600
6601   }
6602
6603   namespace test_uniform_initialization
6604   {
6605
6606     struct test
6607     {
6608       static const int zero {};
6609       static const int one {1};
6610     };
6611
6612     static_assert(test::zero == 0, "");
6613     static_assert(test::one == 1, "");
6614
6615   }
6616
6617   namespace test_lambdas
6618   {
6619
6620     void
6621     test1()
6622     {
6623       auto lambda1 = [](){};
6624       auto lambda2 = lambda1;
6625       lambda1();
6626       lambda2();
6627     }
6628
6629     int
6630     test2()
6631     {
6632       auto a = [](int i, int j){ return i + j; }(1, 2);
6633       auto b = []() -> int { return '0'; }();
6634       auto c = [=](){ return a + b; }();
6635       auto d = [&](){ return c; }();
6636       auto e = [a, &b](int x) mutable {
6637         const auto identity = [](int y){ return y; };
6638         for (auto i = 0; i < a; ++i)
6639           a += b--;
6640         return x + identity(a + b);
6641       }(0);
6642       return a + b + c + d + e;
6643     }
6644
6645     int
6646     test3()
6647     {
6648       const auto nullary = [](){ return 0; };
6649       const auto unary = [](int x){ return x; };
6650       using nullary_t = decltype(nullary);
6651       using unary_t = decltype(unary);
6652       const auto higher1st = [](nullary_t f){ return f(); };
6653       const auto higher2nd = [unary](nullary_t f1){
6654         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6655       };
6656       return higher1st(nullary) + higher2nd(nullary)(unary);
6657     }
6658
6659   }
6660
6661   namespace test_variadic_templates
6662   {
6663
6664     template <int...>
6665     struct sum;
6666
6667     template <int N0, int... N1toN>
6668     struct sum<N0, N1toN...>
6669     {
6670       static constexpr auto value = N0 + sum<N1toN...>::value;
6671     };
6672
6673     template <>
6674     struct sum<>
6675     {
6676       static constexpr auto value = 0;
6677     };
6678
6679     static_assert(sum<>::value == 0, "");
6680     static_assert(sum<1>::value == 1, "");
6681     static_assert(sum<23>::value == 23, "");
6682     static_assert(sum<1, 2>::value == 3, "");
6683     static_assert(sum<5, 5, 11>::value == 21, "");
6684     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6685
6686   }
6687
6688   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6689   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6690   // because of this.
6691   namespace test_template_alias_sfinae
6692   {
6693
6694     struct foo {};
6695
6696     template<typename T>
6697     using member = typename T::member_type;
6698
6699     template<typename T>
6700     void func(...) {}
6701
6702     template<typename T>
6703     void func(member<T>*) {}
6704
6705     void test();
6706
6707     void test() { func<foo>(0); }
6708
6709   }
6710
6711 }  // namespace cxx11
6712
6713 #endif  // __cplusplus >= 201103L
6714
6715
6716
6717 _ACEOF
6718 if ac_fn_cxx_try_compile "$LINENO"; then :
6719   eval $cachevar=yes
6720 else
6721   eval $cachevar=no
6722 fi
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724            CXX="$ac_save_CXX"
6725 fi
6726 eval ac_res=\$$cachevar
6727                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6728 $as_echo "$ac_res" >&6; }
6729         if eval test x\$$cachevar = xyes; then
6730           CXX="$CXX $switch"
6731           if test -n "$CXXCPP" ; then
6732             CXXCPP="$CXXCPP $switch"
6733           fi
6734           ac_success=yes
6735           break
6736         fi
6737       done
6738       if test x$ac_success = xyes; then
6739         break
6740       fi
6741     done
6742   fi
6743
6744   ac_ext=c
6745 ac_cpp='$CPP $CPPFLAGS'
6746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6749
6750   if test x$ax_cxx_compile_cxx11_required = xtrue; then
6751     if test x$ac_success = xno; then
6752       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6753     fi
6754   fi
6755   if test x$ac_success = xno; then
6756     HAVE_CXX11=0
6757     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6758 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6759   else
6760     HAVE_CXX11=1
6761
6762 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6763
6764   fi
6765
6766
6767
6768   if test "${build}" != "${host}"; then
6769       ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
6770   ac_ext=cpp
6771 ac_cpp='$CXXCPP $CPPFLAGS'
6772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6775   ac_success=no
6776       ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6777     ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6778     ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6779     CXX="$CXX_FOR_BUILD"
6780     CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6781     CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6782       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6783 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6784 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6785   $as_echo_n "(cached) " >&6
6786 else
6787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h.  */
6789
6790
6791 // If the compiler admits that it is not ready for C++11, why torture it?
6792 // Hopefully, this will speed up the test.
6793
6794 #ifndef __cplusplus
6795
6796 #error "This is not a C++ compiler"
6797
6798 #elif __cplusplus < 201103L
6799
6800 #error "This is not a C++11 compiler"
6801
6802 #else
6803
6804 namespace cxx11
6805 {
6806
6807   namespace test_static_assert
6808   {
6809
6810     template <typename T>
6811     struct check
6812     {
6813       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6814     };
6815
6816   }
6817
6818   namespace test_final_override
6819   {
6820
6821     struct Base
6822     {
6823       virtual ~Base() {}
6824       virtual void f() {}
6825     };
6826
6827     struct Derived : public Base
6828     {
6829       virtual ~Derived() override {}
6830       virtual void f() override {}
6831     };
6832
6833   }
6834
6835   namespace test_double_right_angle_brackets
6836   {
6837
6838     template < typename T >
6839     struct check {};
6840
6841     typedef check<void> single_type;
6842     typedef check<check<void>> double_type;
6843     typedef check<check<check<void>>> triple_type;
6844     typedef check<check<check<check<void>>>> quadruple_type;
6845
6846   }
6847
6848   namespace test_decltype
6849   {
6850
6851     int
6852     f()
6853     {
6854       int a = 1;
6855       decltype(a) b = 2;
6856       return a + b;
6857     }
6858
6859   }
6860
6861   namespace test_type_deduction
6862   {
6863
6864     template < typename T1, typename T2 >
6865     struct is_same
6866     {
6867       static const bool value = false;
6868     };
6869
6870     template < typename T >
6871     struct is_same<T, T>
6872     {
6873       static const bool value = true;
6874     };
6875
6876     template < typename T1, typename T2 >
6877     auto
6878     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6879     {
6880       return a1 + a2;
6881     }
6882
6883     int
6884     test(const int c, volatile int v)
6885     {
6886       static_assert(is_same<int, decltype(0)>::value == true, "");
6887       static_assert(is_same<int, decltype(c)>::value == false, "");
6888       static_assert(is_same<int, decltype(v)>::value == false, "");
6889       auto ac = c;
6890       auto av = v;
6891       auto sumi = ac + av + 'x';
6892       auto sumf = ac + av + 1.0;
6893       static_assert(is_same<int, decltype(ac)>::value == true, "");
6894       static_assert(is_same<int, decltype(av)>::value == true, "");
6895       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6896       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6897       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6898       return (sumf > 0.0) ? sumi : add(c, v);
6899     }
6900
6901   }
6902
6903   namespace test_noexcept
6904   {
6905
6906     int f() { return 0; }
6907     int g() noexcept { return 0; }
6908
6909     static_assert(noexcept(f()) == false, "");
6910     static_assert(noexcept(g()) == true, "");
6911
6912   }
6913
6914   namespace test_constexpr
6915   {
6916
6917     template < typename CharT >
6918     unsigned long constexpr
6919     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6920     {
6921       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6922     }
6923
6924     template < typename CharT >
6925     unsigned long constexpr
6926     strlen_c(const CharT *const s) noexcept
6927     {
6928       return strlen_c_r(s, 0UL);
6929     }
6930
6931     static_assert(strlen_c("") == 0UL, "");
6932     static_assert(strlen_c("1") == 1UL, "");
6933     static_assert(strlen_c("example") == 7UL, "");
6934     static_assert(strlen_c("another\0example") == 7UL, "");
6935
6936   }
6937
6938   namespace test_rvalue_references
6939   {
6940
6941     template < int N >
6942     struct answer
6943     {
6944       static constexpr int value = N;
6945     };
6946
6947     answer<1> f(int&)       { return answer<1>(); }
6948     answer<2> f(const int&) { return answer<2>(); }
6949     answer<3> f(int&&)      { return answer<3>(); }
6950
6951     void
6952     test()
6953     {
6954       int i = 0;
6955       const int c = 0;
6956       static_assert(decltype(f(i))::value == 1, "");
6957       static_assert(decltype(f(c))::value == 2, "");
6958       static_assert(decltype(f(0))::value == 3, "");
6959     }
6960
6961   }
6962
6963   namespace test_uniform_initialization
6964   {
6965
6966     struct test
6967     {
6968       static const int zero {};
6969       static const int one {1};
6970     };
6971
6972     static_assert(test::zero == 0, "");
6973     static_assert(test::one == 1, "");
6974
6975   }
6976
6977   namespace test_lambdas
6978   {
6979
6980     void
6981     test1()
6982     {
6983       auto lambda1 = [](){};
6984       auto lambda2 = lambda1;
6985       lambda1();
6986       lambda2();
6987     }
6988
6989     int
6990     test2()
6991     {
6992       auto a = [](int i, int j){ return i + j; }(1, 2);
6993       auto b = []() -> int { return '0'; }();
6994       auto c = [=](){ return a + b; }();
6995       auto d = [&](){ return c; }();
6996       auto e = [a, &b](int x) mutable {
6997         const auto identity = [](int y){ return y; };
6998         for (auto i = 0; i < a; ++i)
6999           a += b--;
7000         return x + identity(a + b);
7001       }(0);
7002       return a + b + c + d + e;
7003     }
7004
7005     int
7006     test3()
7007     {
7008       const auto nullary = [](){ return 0; };
7009       const auto unary = [](int x){ return x; };
7010       using nullary_t = decltype(nullary);
7011       using unary_t = decltype(unary);
7012       const auto higher1st = [](nullary_t f){ return f(); };
7013       const auto higher2nd = [unary](nullary_t f1){
7014         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7015       };
7016       return higher1st(nullary) + higher2nd(nullary)(unary);
7017     }
7018
7019   }
7020
7021   namespace test_variadic_templates
7022   {
7023
7024     template <int...>
7025     struct sum;
7026
7027     template <int N0, int... N1toN>
7028     struct sum<N0, N1toN...>
7029     {
7030       static constexpr auto value = N0 + sum<N1toN...>::value;
7031     };
7032
7033     template <>
7034     struct sum<>
7035     {
7036       static constexpr auto value = 0;
7037     };
7038
7039     static_assert(sum<>::value == 0, "");
7040     static_assert(sum<1>::value == 1, "");
7041     static_assert(sum<23>::value == 23, "");
7042     static_assert(sum<1, 2>::value == 3, "");
7043     static_assert(sum<5, 5, 11>::value == 21, "");
7044     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7045
7046   }
7047
7048   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7049   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7050   // because of this.
7051   namespace test_template_alias_sfinae
7052   {
7053
7054     struct foo {};
7055
7056     template<typename T>
7057     using member = typename T::member_type;
7058
7059     template<typename T>
7060     void func(...) {}
7061
7062     template<typename T>
7063     void func(member<T>*) {}
7064
7065     void test();
7066
7067     void test() { func<foo>(0); }
7068
7069   }
7070
7071 }  // namespace cxx11
7072
7073 #endif  // __cplusplus >= 201103L
7074
7075
7076
7077 _ACEOF
7078 if ac_fn_cxx_try_compile "$LINENO"; then :
7079   ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7080 else
7081   ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7082 fi
7083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084 fi
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7086 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7087     if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7088       ac_success=yes
7089     fi
7090
7091     if test x$ac_success = xno; then
7092     for alternative in ${ax_cxx_compile_alternatives}; do
7093       switch="-std=gnu++${alternative}"
7094       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7095       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7096 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7097 if eval \${$cachevar+:} false; then :
7098   $as_echo_n "(cached) " >&6
7099 else
7100   ac_save_CXX="$CXX"
7101          CXX="$CXX $switch"
7102          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h.  */
7104
7105
7106 // If the compiler admits that it is not ready for C++11, why torture it?
7107 // Hopefully, this will speed up the test.
7108
7109 #ifndef __cplusplus
7110
7111 #error "This is not a C++ compiler"
7112
7113 #elif __cplusplus < 201103L
7114
7115 #error "This is not a C++11 compiler"
7116
7117 #else
7118
7119 namespace cxx11
7120 {
7121
7122   namespace test_static_assert
7123   {
7124
7125     template <typename T>
7126     struct check
7127     {
7128       static_assert(sizeof(int) <= sizeof(T), "not big enough");
7129     };
7130
7131   }
7132
7133   namespace test_final_override
7134   {
7135
7136     struct Base
7137     {
7138       virtual ~Base() {}
7139       virtual void f() {}
7140     };
7141
7142     struct Derived : public Base
7143     {
7144       virtual ~Derived() override {}
7145       virtual void f() override {}
7146     };
7147
7148   }
7149
7150   namespace test_double_right_angle_brackets
7151   {
7152
7153     template < typename T >
7154     struct check {};
7155
7156     typedef check<void> single_type;
7157     typedef check<check<void>> double_type;
7158     typedef check<check<check<void>>> triple_type;
7159     typedef check<check<check<check<void>>>> quadruple_type;
7160
7161   }
7162
7163   namespace test_decltype
7164   {
7165
7166     int
7167     f()
7168     {
7169       int a = 1;
7170       decltype(a) b = 2;
7171       return a + b;
7172     }
7173
7174   }
7175
7176   namespace test_type_deduction
7177   {
7178
7179     template < typename T1, typename T2 >
7180     struct is_same
7181     {
7182       static const bool value = false;
7183     };
7184
7185     template < typename T >
7186     struct is_same<T, T>
7187     {
7188       static const bool value = true;
7189     };
7190
7191     template < typename T1, typename T2 >
7192     auto
7193     add(T1 a1, T2 a2) -> decltype(a1 + a2)
7194     {
7195       return a1 + a2;
7196     }
7197
7198     int
7199     test(const int c, volatile int v)
7200     {
7201       static_assert(is_same<int, decltype(0)>::value == true, "");
7202       static_assert(is_same<int, decltype(c)>::value == false, "");
7203       static_assert(is_same<int, decltype(v)>::value == false, "");
7204       auto ac = c;
7205       auto av = v;
7206       auto sumi = ac + av + 'x';
7207       auto sumf = ac + av + 1.0;
7208       static_assert(is_same<int, decltype(ac)>::value == true, "");
7209       static_assert(is_same<int, decltype(av)>::value == true, "");
7210       static_assert(is_same<int, decltype(sumi)>::value == true, "");
7211       static_assert(is_same<int, decltype(sumf)>::value == false, "");
7212       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7213       return (sumf > 0.0) ? sumi : add(c, v);
7214     }
7215
7216   }
7217
7218   namespace test_noexcept
7219   {
7220
7221     int f() { return 0; }
7222     int g() noexcept { return 0; }
7223
7224     static_assert(noexcept(f()) == false, "");
7225     static_assert(noexcept(g()) == true, "");
7226
7227   }
7228
7229   namespace test_constexpr
7230   {
7231
7232     template < typename CharT >
7233     unsigned long constexpr
7234     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7235     {
7236       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7237     }
7238
7239     template < typename CharT >
7240     unsigned long constexpr
7241     strlen_c(const CharT *const s) noexcept
7242     {
7243       return strlen_c_r(s, 0UL);
7244     }
7245
7246     static_assert(strlen_c("") == 0UL, "");
7247     static_assert(strlen_c("1") == 1UL, "");
7248     static_assert(strlen_c("example") == 7UL, "");
7249     static_assert(strlen_c("another\0example") == 7UL, "");
7250
7251   }
7252
7253   namespace test_rvalue_references
7254   {
7255
7256     template < int N >
7257     struct answer
7258     {
7259       static constexpr int value = N;
7260     };
7261
7262     answer<1> f(int&)       { return answer<1>(); }
7263     answer<2> f(const int&) { return answer<2>(); }
7264     answer<3> f(int&&)      { return answer<3>(); }
7265
7266     void
7267     test()
7268     {
7269       int i = 0;
7270       const int c = 0;
7271       static_assert(decltype(f(i))::value == 1, "");
7272       static_assert(decltype(f(c))::value == 2, "");
7273       static_assert(decltype(f(0))::value == 3, "");
7274     }
7275
7276   }
7277
7278   namespace test_uniform_initialization
7279   {
7280
7281     struct test
7282     {
7283       static const int zero {};
7284       static const int one {1};
7285     };
7286
7287     static_assert(test::zero == 0, "");
7288     static_assert(test::one == 1, "");
7289
7290   }
7291
7292   namespace test_lambdas
7293   {
7294
7295     void
7296     test1()
7297     {
7298       auto lambda1 = [](){};
7299       auto lambda2 = lambda1;
7300       lambda1();
7301       lambda2();
7302     }
7303
7304     int
7305     test2()
7306     {
7307       auto a = [](int i, int j){ return i + j; }(1, 2);
7308       auto b = []() -> int { return '0'; }();
7309       auto c = [=](){ return a + b; }();
7310       auto d = [&](){ return c; }();
7311       auto e = [a, &b](int x) mutable {
7312         const auto identity = [](int y){ return y; };
7313         for (auto i = 0; i < a; ++i)
7314           a += b--;
7315         return x + identity(a + b);
7316       }(0);
7317       return a + b + c + d + e;
7318     }
7319
7320     int
7321     test3()
7322     {
7323       const auto nullary = [](){ return 0; };
7324       const auto unary = [](int x){ return x; };
7325       using nullary_t = decltype(nullary);
7326       using unary_t = decltype(unary);
7327       const auto higher1st = [](nullary_t f){ return f(); };
7328       const auto higher2nd = [unary](nullary_t f1){
7329         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7330       };
7331       return higher1st(nullary) + higher2nd(nullary)(unary);
7332     }
7333
7334   }
7335
7336   namespace test_variadic_templates
7337   {
7338
7339     template <int...>
7340     struct sum;
7341
7342     template <int N0, int... N1toN>
7343     struct sum<N0, N1toN...>
7344     {
7345       static constexpr auto value = N0 + sum<N1toN...>::value;
7346     };
7347
7348     template <>
7349     struct sum<>
7350     {
7351       static constexpr auto value = 0;
7352     };
7353
7354     static_assert(sum<>::value == 0, "");
7355     static_assert(sum<1>::value == 1, "");
7356     static_assert(sum<23>::value == 23, "");
7357     static_assert(sum<1, 2>::value == 3, "");
7358     static_assert(sum<5, 5, 11>::value == 21, "");
7359     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7360
7361   }
7362
7363   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7364   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7365   // because of this.
7366   namespace test_template_alias_sfinae
7367   {
7368
7369     struct foo {};
7370
7371     template<typename T>
7372     using member = typename T::member_type;
7373
7374     template<typename T>
7375     void func(...) {}
7376
7377     template<typename T>
7378     void func(member<T>*) {}
7379
7380     void test();
7381
7382     void test() { func<foo>(0); }
7383
7384   }
7385
7386 }  // namespace cxx11
7387
7388 #endif  // __cplusplus >= 201103L
7389
7390
7391
7392 _ACEOF
7393 if ac_fn_cxx_try_compile "$LINENO"; then :
7394   eval $cachevar=yes
7395 else
7396   eval $cachevar=no
7397 fi
7398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7399          CXX="$ac_save_CXX"
7400 fi
7401 eval ac_res=\$$cachevar
7402                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7403 $as_echo "$ac_res" >&6; }
7404       if eval test x\$$cachevar = xyes; then
7405         CXX="$CXX $switch"
7406         if test -n "$CXXCPP" ; then
7407           CXXCPP="$CXXCPP $switch"
7408         fi
7409         ac_success=yes
7410         break
7411       fi
7412     done
7413   fi
7414
7415     if test x$ac_success = xno; then
7416                 for alternative in ${ax_cxx_compile_alternatives}; do
7417       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7418         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7419         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7420 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7421 if eval \${$cachevar+:} false; then :
7422   $as_echo_n "(cached) " >&6
7423 else
7424   ac_save_CXX="$CXX"
7425            CXX="$CXX $switch"
7426            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h.  */
7428
7429
7430 // If the compiler admits that it is not ready for C++11, why torture it?
7431 // Hopefully, this will speed up the test.
7432
7433 #ifndef __cplusplus
7434
7435 #error "This is not a C++ compiler"
7436
7437 #elif __cplusplus < 201103L
7438
7439 #error "This is not a C++11 compiler"
7440
7441 #else
7442
7443 namespace cxx11
7444 {
7445
7446   namespace test_static_assert
7447   {
7448
7449     template <typename T>
7450     struct check
7451     {
7452       static_assert(sizeof(int) <= sizeof(T), "not big enough");
7453     };
7454
7455   }
7456
7457   namespace test_final_override
7458   {
7459
7460     struct Base
7461     {
7462       virtual ~Base() {}
7463       virtual void f() {}
7464     };
7465
7466     struct Derived : public Base
7467     {
7468       virtual ~Derived() override {}
7469       virtual void f() override {}
7470     };
7471
7472   }
7473
7474   namespace test_double_right_angle_brackets
7475   {
7476
7477     template < typename T >
7478     struct check {};
7479
7480     typedef check<void> single_type;
7481     typedef check<check<void>> double_type;
7482     typedef check<check<check<void>>> triple_type;
7483     typedef check<check<check<check<void>>>> quadruple_type;
7484
7485   }
7486
7487   namespace test_decltype
7488   {
7489
7490     int
7491     f()
7492     {
7493       int a = 1;
7494       decltype(a) b = 2;
7495       return a + b;
7496     }
7497
7498   }
7499
7500   namespace test_type_deduction
7501   {
7502
7503     template < typename T1, typename T2 >
7504     struct is_same
7505     {
7506       static const bool value = false;
7507     };
7508
7509     template < typename T >
7510     struct is_same<T, T>
7511     {
7512       static const bool value = true;
7513     };
7514
7515     template < typename T1, typename T2 >
7516     auto
7517     add(T1 a1, T2 a2) -> decltype(a1 + a2)
7518     {
7519       return a1 + a2;
7520     }
7521
7522     int
7523     test(const int c, volatile int v)
7524     {
7525       static_assert(is_same<int, decltype(0)>::value == true, "");
7526       static_assert(is_same<int, decltype(c)>::value == false, "");
7527       static_assert(is_same<int, decltype(v)>::value == false, "");
7528       auto ac = c;
7529       auto av = v;
7530       auto sumi = ac + av + 'x';
7531       auto sumf = ac + av + 1.0;
7532       static_assert(is_same<int, decltype(ac)>::value == true, "");
7533       static_assert(is_same<int, decltype(av)>::value == true, "");
7534       static_assert(is_same<int, decltype(sumi)>::value == true, "");
7535       static_assert(is_same<int, decltype(sumf)>::value == false, "");
7536       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7537       return (sumf > 0.0) ? sumi : add(c, v);
7538     }
7539
7540   }
7541
7542   namespace test_noexcept
7543   {
7544
7545     int f() { return 0; }
7546     int g() noexcept { return 0; }
7547
7548     static_assert(noexcept(f()) == false, "");
7549     static_assert(noexcept(g()) == true, "");
7550
7551   }
7552
7553   namespace test_constexpr
7554   {
7555
7556     template < typename CharT >
7557     unsigned long constexpr
7558     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7559     {
7560       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7561     }
7562
7563     template < typename CharT >
7564     unsigned long constexpr
7565     strlen_c(const CharT *const s) noexcept
7566     {
7567       return strlen_c_r(s, 0UL);
7568     }
7569
7570     static_assert(strlen_c("") == 0UL, "");
7571     static_assert(strlen_c("1") == 1UL, "");
7572     static_assert(strlen_c("example") == 7UL, "");
7573     static_assert(strlen_c("another\0example") == 7UL, "");
7574
7575   }
7576
7577   namespace test_rvalue_references
7578   {
7579
7580     template < int N >
7581     struct answer
7582     {
7583       static constexpr int value = N;
7584     };
7585
7586     answer<1> f(int&)       { return answer<1>(); }
7587     answer<2> f(const int&) { return answer<2>(); }
7588     answer<3> f(int&&)      { return answer<3>(); }
7589
7590     void
7591     test()
7592     {
7593       int i = 0;
7594       const int c = 0;
7595       static_assert(decltype(f(i))::value == 1, "");
7596       static_assert(decltype(f(c))::value == 2, "");
7597       static_assert(decltype(f(0))::value == 3, "");
7598     }
7599
7600   }
7601
7602   namespace test_uniform_initialization
7603   {
7604
7605     struct test
7606     {
7607       static const int zero {};
7608       static const int one {1};
7609     };
7610
7611     static_assert(test::zero == 0, "");
7612     static_assert(test::one == 1, "");
7613
7614   }
7615
7616   namespace test_lambdas
7617   {
7618
7619     void
7620     test1()
7621     {
7622       auto lambda1 = [](){};
7623       auto lambda2 = lambda1;
7624       lambda1();
7625       lambda2();
7626     }
7627
7628     int
7629     test2()
7630     {
7631       auto a = [](int i, int j){ return i + j; }(1, 2);
7632       auto b = []() -> int { return '0'; }();
7633       auto c = [=](){ return a + b; }();
7634       auto d = [&](){ return c; }();
7635       auto e = [a, &b](int x) mutable {
7636         const auto identity = [](int y){ return y; };
7637         for (auto i = 0; i < a; ++i)
7638           a += b--;
7639         return x + identity(a + b);
7640       }(0);
7641       return a + b + c + d + e;
7642     }
7643
7644     int
7645     test3()
7646     {
7647       const auto nullary = [](){ return 0; };
7648       const auto unary = [](int x){ return x; };
7649       using nullary_t = decltype(nullary);
7650       using unary_t = decltype(unary);
7651       const auto higher1st = [](nullary_t f){ return f(); };
7652       const auto higher2nd = [unary](nullary_t f1){
7653         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7654       };
7655       return higher1st(nullary) + higher2nd(nullary)(unary);
7656     }
7657
7658   }
7659
7660   namespace test_variadic_templates
7661   {
7662
7663     template <int...>
7664     struct sum;
7665
7666     template <int N0, int... N1toN>
7667     struct sum<N0, N1toN...>
7668     {
7669       static constexpr auto value = N0 + sum<N1toN...>::value;
7670     };
7671
7672     template <>
7673     struct sum<>
7674     {
7675       static constexpr auto value = 0;
7676     };
7677
7678     static_assert(sum<>::value == 0, "");
7679     static_assert(sum<1>::value == 1, "");
7680     static_assert(sum<23>::value == 23, "");
7681     static_assert(sum<1, 2>::value == 3, "");
7682     static_assert(sum<5, 5, 11>::value == 21, "");
7683     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7684
7685   }
7686
7687   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7688   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7689   // because of this.
7690   namespace test_template_alias_sfinae
7691   {
7692
7693     struct foo {};
7694
7695     template<typename T>
7696     using member = typename T::member_type;
7697
7698     template<typename T>
7699     void func(...) {}
7700
7701     template<typename T>
7702     void func(member<T>*) {}
7703
7704     void test();
7705
7706     void test() { func<foo>(0); }
7707
7708   }
7709
7710 }  // namespace cxx11
7711
7712 #endif  // __cplusplus >= 201103L
7713
7714
7715
7716 _ACEOF
7717 if ac_fn_cxx_try_compile "$LINENO"; then :
7718   eval $cachevar=yes
7719 else
7720   eval $cachevar=no
7721 fi
7722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7723            CXX="$ac_save_CXX"
7724 fi
7725 eval ac_res=\$$cachevar
7726                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7727 $as_echo "$ac_res" >&6; }
7728         if eval test x\$$cachevar = xyes; then
7729           CXX="$CXX $switch"
7730           if test -n "$CXXCPP" ; then
7731             CXXCPP="$CXXCPP $switch"
7732           fi
7733           ac_success=yes
7734           break
7735         fi
7736       done
7737       if test x$ac_success = xyes; then
7738         break
7739       fi
7740     done
7741   fi
7742       CXX_FOR_BUILD="$CXX"
7743     CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7744     CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7745     CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7746     CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7747     CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7748   ac_ext=c
7749 ac_cpp='$CPP $CPPFLAGS'
7750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7753
7754   if test x$ax_cxx_compile_cxx11_required = xtrue; then
7755     if test x$ac_success = xno; then
7756       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7757     fi
7758   fi
7759   if test x$ac_success = xno; then
7760     HAVE_CXX11_FOR_BUILD=0
7761     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7762 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7763   else
7764     HAVE_CXX11_FOR_BUILD=1
7765
7766 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7767
7768   fi
7769
7770
7771   fi
7772 fi
7773
7774 # Check whether --enable-pgo-build was given.
7775 if test "${enable_pgo_build+set}" = set; then :
7776   enableval=$enable_pgo_build; enable_pgo_build=$enableval
7777 else
7778   enable_pgo_build=no
7779 fi
7780
7781
7782 # Issue errors and warnings for invalid/strange PGO build combinations.
7783 case "$have_compiler:$host:$target:$enable_pgo_build" in
7784   *:*:*:no) ;;
7785
7786   # Allow the PGO build only if we aren't building a compiler and
7787   # we are in a native configuration.
7788   no:$build:$build:yes | no:$build:$build:lto) ;;
7789
7790   # Disallow the PGO bootstrap if we are building a compiler.
7791   yes:*:*:yes | yes:*:*:lto)
7792     as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7793
7794   *)
7795     as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7796     ;;
7797 esac
7798
7799 if test "$enable_pgo_build" != "no"; then
7800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7801 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7802   old_CFLAGS="$CFLAGS"
7803   PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7804   CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7805
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h.  */
7808 int foo;
7809 _ACEOF
7810 if ac_fn_c_try_compile "$LINENO"; then :
7811
7812 else
7813   PGO_BUILD_GEN_CFLAGS=
7814 fi
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816   CFLAGS="$old_CFLAGS"
7817   if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7819 $as_echo "yes" >&6; }
7820     PGO_BUILD_USE_CFLAGS="-fprofile-use"
7821   else
7822     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7824     as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7825   fi
7826
7827   if test "$enable_pgo_build" = "lto"; then
7828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7829 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7830     old_CFLAGS="$CFLAGS"
7831     PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7832     CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7833     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h.  */
7835 int foo;
7836 _ACEOF
7837 if ac_fn_c_try_compile "$LINENO"; then :
7838
7839 else
7840   PGO_BUILD_LTO_CFLAGS=
7841 fi
7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7843     CFLAGS="$old_CFLAGS"
7844     if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7845       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7846 $as_echo "yes" >&6; }
7847     else
7848       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7850       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7851 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7852     fi
7853   fi
7854 fi
7855
7856
7857
7858
7859 # Used for setting $lt_cv_objdir
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7861 $as_echo_n "checking for objdir... " >&6; }
7862 if ${lt_cv_objdir+:} false; then :
7863   $as_echo_n "(cached) " >&6
7864 else
7865   rm -f .libs 2>/dev/null
7866 mkdir .libs 2>/dev/null
7867 if test -d .libs; then
7868   lt_cv_objdir=.libs
7869 else
7870   # MS-DOS does not allow filenames that begin with a dot.
7871   lt_cv_objdir=_libs
7872 fi
7873 rmdir .libs 2>/dev/null
7874 fi
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7876 $as_echo "$lt_cv_objdir" >&6; }
7877 objdir=$lt_cv_objdir
7878
7879
7880
7881
7882
7883 cat >>confdefs.h <<_ACEOF
7884 #define LT_OBJDIR "$lt_cv_objdir/"
7885 _ACEOF
7886
7887
7888
7889 # Check for GMP, MPFR and MPC
7890 gmplibs="-lmpc -lmpfr -lgmp"
7891 gmpinc=
7892 have_gmp=no
7893
7894 # Specify a location for mpc
7895 # check for this first so it ends up on the link line before mpfr.
7896
7897 # Check whether --with-mpc was given.
7898 if test "${with_mpc+set}" = set; then :
7899   withval=$with_mpc;
7900 fi
7901
7902
7903 # Check whether --with-mpc-include was given.
7904 if test "${with_mpc_include+set}" = set; then :
7905   withval=$with_mpc_include;
7906 fi
7907
7908
7909 # Check whether --with-mpc-lib was given.
7910 if test "${with_mpc_lib+set}" = set; then :
7911   withval=$with_mpc_lib;
7912 fi
7913
7914
7915 if test "x$with_mpc" != x; then
7916   gmplibs="-L$with_mpc/lib $gmplibs"
7917   gmpinc="-I$with_mpc/include $gmpinc"
7918 fi
7919 if test "x$with_mpc_include" != x; then
7920   gmpinc="-I$with_mpc_include $gmpinc"
7921 fi
7922 if test "x$with_mpc_lib" != x; then
7923   gmplibs="-L$with_mpc_lib $gmplibs"
7924 fi
7925 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7926   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7927   gmpinc='-I$$s/mpc/src '"$gmpinc"
7928   # Do not test the mpc version.  Assume that it is sufficient, since
7929   # it is in the source tree, and the library has not been built yet
7930   # but it would be included on the link line in the version check below
7931   # hence making the test fail.
7932   have_gmp=yes
7933 fi
7934
7935 # Specify a location for mpfr
7936 # check for this first so it ends up on the link line before gmp.
7937
7938 # Check whether --with-mpfr was given.
7939 if test "${with_mpfr+set}" = set; then :
7940   withval=$with_mpfr;
7941 fi
7942
7943
7944 # Check whether --with-mpfr-include was given.
7945 if test "${with_mpfr_include+set}" = set; then :
7946   withval=$with_mpfr_include;
7947 fi
7948
7949
7950 # Check whether --with-mpfr-lib was given.
7951 if test "${with_mpfr_lib+set}" = set; then :
7952   withval=$with_mpfr_lib;
7953 fi
7954
7955
7956 if test "x$with_mpfr" != x; then
7957   gmplibs="-L$with_mpfr/lib $gmplibs"
7958   gmpinc="-I$with_mpfr/include $gmpinc"
7959 fi
7960 if test "x$with_mpfr_include" != x; then
7961   gmpinc="-I$with_mpfr_include $gmpinc"
7962 fi
7963 if test "x$with_mpfr_lib" != x; then
7964   gmplibs="-L$with_mpfr_lib $gmplibs"
7965 fi
7966 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7967   # MPFR v3.1.0 moved the sources into a src sub-directory.
7968   if ! test -d ${srcdir}/mpfr/src; then
7969     as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7970   fi
7971   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7972   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7973   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7974   # Do not test the mpfr version.  Assume that it is sufficient, since
7975   # it is in the source tree, and the library has not been built yet
7976   # but it would be included on the link line in the version check below
7977   # hence making the test fail.
7978   have_gmp=yes
7979 fi
7980
7981 # Specify a location for gmp
7982
7983 # Check whether --with-gmp was given.
7984 if test "${with_gmp+set}" = set; then :
7985   withval=$with_gmp;
7986 fi
7987
7988
7989 # Check whether --with-gmp-include was given.
7990 if test "${with_gmp_include+set}" = set; then :
7991   withval=$with_gmp_include;
7992 fi
7993
7994
7995 # Check whether --with-gmp-lib was given.
7996 if test "${with_gmp_lib+set}" = set; then :
7997   withval=$with_gmp_lib;
7998 fi
7999
8000
8001
8002 if test "x$with_gmp" != x; then
8003   gmplibs="-L$with_gmp/lib $gmplibs"
8004   gmpinc="-I$with_gmp/include $gmpinc"
8005 fi
8006 if test "x$with_gmp_include" != x; then
8007   gmpinc="-I$with_gmp_include $gmpinc"
8008 fi
8009 if test "x$with_gmp_lib" != x; then
8010   gmplibs="-L$with_gmp_lib $gmplibs"
8011 fi
8012 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8013   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8014   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8015   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8016   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8017   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8018   # Do not test the gmp version.  Assume that it is sufficient, since
8019   # it is in the source tree, and the library has not been built yet
8020   # but it would be included on the link line in the version check below
8021   # hence making the test fail.
8022   have_gmp=yes
8023 fi
8024
8025 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
8026   have_gmp=yes
8027   saved_CFLAGS="$CFLAGS"
8028   CFLAGS="$CFLAGS $gmpinc"
8029   # Check for the recommended and required versions of GMP.
8030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8031 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h.  */
8034 #include "gmp.h"
8035 int
8036 main ()
8037 {
8038
8039   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8040   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8041   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8042   choke me
8043   #endif
8044
8045   ;
8046   return 0;
8047 }
8048 _ACEOF
8049 if ac_fn_c_try_compile "$LINENO"; then :
8050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h.  */
8052 #include <gmp.h>
8053 int
8054 main ()
8055 {
8056
8057   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8058   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8059   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8060   choke me
8061   #endif
8062
8063   ;
8064   return 0;
8065 }
8066 _ACEOF
8067 if ac_fn_c_try_compile "$LINENO"; then :
8068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8069 $as_echo "yes" >&6; }
8070 else
8071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8072 $as_echo "buggy but acceptable" >&6; }
8073 fi
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075 else
8076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 $as_echo "no" >&6; }; have_gmp=no
8078 fi
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080
8081   # If we have GMP, check the MPFR version.
8082   if test x"$have_gmp" = xyes; then
8083     # Check for the recommended and required versions of MPFR.
8084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8085 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h.  */
8088 #include <gmp.h>
8089     #include <mpfr.h>
8090 int
8091 main ()
8092 {
8093
8094     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8095     choke me
8096     #endif
8097
8098   ;
8099   return 0;
8100 }
8101 _ACEOF
8102 if ac_fn_c_try_compile "$LINENO"; then :
8103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h.  */
8105 #include <gmp.h>
8106     #include <mpfr.h>
8107 int
8108 main ()
8109 {
8110
8111     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8112     choke me
8113     #endif
8114
8115   ;
8116   return 0;
8117 }
8118 _ACEOF
8119 if ac_fn_c_try_compile "$LINENO"; then :
8120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8121 $as_echo "yes" >&6; }
8122 else
8123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8124 $as_echo "buggy but acceptable" >&6; }
8125 fi
8126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127 else
8128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129 $as_echo "no" >&6; }; have_gmp=no
8130 fi
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132   fi
8133
8134   # Check for the MPC header version.
8135   if test x"$have_gmp" = xyes ; then
8136     # Check for the recommended and required versions of MPC.
8137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8138 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8139     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h.  */
8141 #include <mpc.h>
8142 int
8143 main ()
8144 {
8145
8146     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8147     choke me
8148     #endif
8149
8150   ;
8151   return 0;
8152 }
8153 _ACEOF
8154 if ac_fn_c_try_compile "$LINENO"; then :
8155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h.  */
8157 #include <mpc.h>
8158 int
8159 main ()
8160 {
8161
8162     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8163     choke me
8164     #endif
8165
8166   ;
8167   return 0;
8168 }
8169 _ACEOF
8170 if ac_fn_c_try_compile "$LINENO"; then :
8171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8172 $as_echo "yes" >&6; }
8173 else
8174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8175 $as_echo "buggy but acceptable" >&6; }
8176 fi
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178 else
8179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 $as_echo "no" >&6; }; have_gmp=no
8181 fi
8182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183   fi
8184
8185   # Now check the MPFR library.
8186   if test x"$have_gmp" = xyes; then
8187     saved_LIBS="$LIBS"
8188     LIBS="$LIBS $gmplibs"
8189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8190 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8191     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h.  */
8193 #include <mpc.h>
8194 int
8195 main ()
8196 {
8197
8198     mpfr_t n;
8199     mpfr_t x;
8200     mpc_t c;
8201     int t;
8202     mpfr_init (n);
8203     mpfr_init (x);
8204     mpfr_atan2 (n, n, x, MPFR_RNDN);
8205     mpfr_erfc (n, x, MPFR_RNDN);
8206     mpfr_subnormalize (x, t, MPFR_RNDN);
8207     mpfr_clear(n);
8208     mpfr_clear(x);
8209     mpc_init2 (c, 53);
8210     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8211     mpc_cosh (c, c, MPC_RNDNN);
8212     mpc_pow (c, c, c, MPC_RNDNN);
8213     mpc_acosh (c, c, MPC_RNDNN);
8214     mpc_clear (c);
8215
8216   ;
8217   return 0;
8218 }
8219 _ACEOF
8220 if ac_fn_c_try_link "$LINENO"; then :
8221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8222 $as_echo "yes" >&6; }
8223 else
8224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225 $as_echo "no" >&6; }; have_gmp=no
8226 fi
8227 rm -f core conftest.err conftest.$ac_objext \
8228     conftest$ac_exeext conftest.$ac_ext
8229     LIBS="$saved_LIBS"
8230   fi
8231
8232   CFLAGS="$saved_CFLAGS"
8233
8234 # The library versions listed in the error message below should match
8235 # the HARD-minimums enforced above.
8236   if test x$have_gmp != xyes; then
8237     as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8238 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8239 their locations.  Source code for these libraries can be found at
8240 their respective hosting sites as well as at
8241 https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
8242 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
8243 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8244 make sure that you have installed both the libraries and the header
8245 files.  They may be located in separate packages." "$LINENO" 5
8246   fi
8247 fi
8248
8249 # Flags needed for both GMP, MPFR and/or MPC.
8250
8251
8252
8253
8254
8255
8256
8257 # Libraries to use for stage1 or when not bootstrapping.
8258
8259 # Check whether --with-stage1-libs was given.
8260 if test "${with_stage1_libs+set}" = set; then :
8261   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8262    stage1_libs=
8263  else
8264    stage1_libs=$withval
8265  fi
8266 else
8267   stage1_libs=
8268 fi
8269
8270
8271
8272 # Whether or not to use -static-libstdc++ and -static-libgcc.  The
8273 # default is yes if gcc is being built; no otherwise.  The reason for
8274 # this default is that gdb is sometimes linked against GNU Source
8275 # Highlight, which is a shared library that uses C++ exceptions.  In
8276 # this case, -static-libstdc++ will cause crashes.
8277
8278 # Check whether --with-static-standard-libraries was given.
8279 if test "${with_static_standard_libraries+set}" = set; then :
8280   withval=$with_static_standard_libraries;
8281 else
8282   with_static_standard_libraries=auto
8283 fi
8284
8285 if test "$with_static_standard_libraries" = auto; then
8286   with_static_standard_libraries=$have_compiler
8287 fi
8288
8289 # Linker flags to use for stage1 or when not bootstrapping.
8290
8291 # Check whether --with-stage1-ldflags was given.
8292 if test "${with_stage1_ldflags+set}" = set; then :
8293   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8294    stage1_ldflags=
8295  else
8296    stage1_ldflags=$withval
8297  fi
8298 else
8299   stage1_ldflags=
8300  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8301  # if supported.  But if the user explicitly specified the libraries to use,
8302  # trust that they are doing what they want.
8303  if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8304      -a "$have_static_libs" = yes; then
8305    stage1_ldflags="-static-libstdc++ -static-libgcc"
8306  fi
8307 fi
8308
8309
8310
8311 # Libraries to use for stage2 and later builds.
8312
8313 # Check whether --with-boot-libs was given.
8314 if test "${with_boot_libs+set}" = set; then :
8315   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8316    poststage1_libs=
8317  else
8318    poststage1_libs=$withval
8319  fi
8320 else
8321   poststage1_libs=
8322 fi
8323
8324
8325
8326 # Linker flags to use for stage2 and later builds.
8327
8328 # Check whether --with-boot-ldflags was given.
8329 if test "${with_boot_ldflags+set}" = set; then :
8330   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8331    poststage1_ldflags=
8332  else
8333    poststage1_ldflags=$withval
8334  fi
8335 else
8336   poststage1_ldflags=
8337  # In stages 2 and 3, default to linking libstdc++ and libgcc
8338  # statically.  But if the user explicitly specified the libraries to
8339  # use, trust that they are doing what they want.
8340  if test "$poststage1_libs" = ""; then
8341    poststage1_ldflags="-static-libstdc++ -static-libgcc"
8342  fi
8343 fi
8344
8345
8346
8347 # GCC GRAPHITE dependency isl.
8348 # Basic setup is inlined here, actual checks are in config/isl.m4
8349
8350
8351 # Check whether --with-isl was given.
8352 if test "${with_isl+set}" = set; then :
8353   withval=$with_isl;
8354 fi
8355
8356
8357 # Treat --without-isl as a request to disable
8358 # GRAPHITE support and skip all following checks.
8359 if test "x$with_isl" != "xno"; then
8360   # Check for isl
8361
8362
8363 # Check whether --with-isl-include was given.
8364 if test "${with_isl_include+set}" = set; then :
8365   withval=$with_isl_include;
8366 fi
8367
8368
8369 # Check whether --with-isl-lib was given.
8370 if test "${with_isl_lib+set}" = set; then :
8371   withval=$with_isl_lib;
8372 fi
8373
8374
8375   # Check whether --enable-isl-version-check was given.
8376 if test "${enable_isl_version_check+set}" = set; then :
8377   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8378 else
8379   ENABLE_ISL_CHECK=yes
8380 fi
8381
8382
8383   # Initialize isllibs and islinc.
8384   case $with_isl in
8385     no)
8386       isllibs=
8387       islinc=
8388       ;;
8389     "" | yes)
8390       ;;
8391     *)
8392       isllibs="-L$with_isl/lib"
8393       islinc="-I$with_isl/include"
8394       ;;
8395   esac
8396   if test "x${with_isl_include}" != x ; then
8397     islinc="-I$with_isl_include"
8398   fi
8399   if test "x${with_isl_lib}" != x; then
8400     isllibs="-L$with_isl_lib"
8401   fi
8402         if test "x${islinc}" = x && test "x${isllibs}" = x \
8403      && test -d ${srcdir}/isl; then
8404     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8405     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8406     ENABLE_ISL_CHECK=no
8407     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8408 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8409   fi
8410
8411   isllibs="${isllibs} -lisl"
8412
8413
8414
8415   if test "${ENABLE_ISL_CHECK}" = yes ; then
8416     _isl_saved_CFLAGS=$CFLAGS
8417     _isl_saved_LDFLAGS=$LDFLAGS
8418     _isl_saved_LIBS=$LIBS
8419
8420     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8421     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8422     LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8423
8424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8425 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8426     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h.  */
8428 #include <isl/schedule.h>
8429 int
8430 main ()
8431 {
8432 isl_options_set_schedule_serialize_sccs (NULL, 0);
8433   ;
8434   return 0;
8435 }
8436 _ACEOF
8437 if ac_fn_c_try_link "$LINENO"; then :
8438   gcc_cv_isl=yes
8439 else
8440   gcc_cv_isl=no
8441 fi
8442 rm -f core conftest.err conftest.$ac_objext \
8443     conftest$ac_exeext conftest.$ac_ext
8444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8445 $as_echo "$gcc_cv_isl" >&6; }
8446
8447     if test "${gcc_cv_isl}" = no ; then
8448       { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8449 $as_echo "required isl version is 0.15 or later" >&6; }
8450     fi
8451
8452     CFLAGS=$_isl_saved_CFLAGS
8453     LDFLAGS=$_isl_saved_LDFLAGS
8454     LIBS=$_isl_saved_LIBS
8455   fi
8456
8457
8458
8459
8460
8461
8462   if test "x${with_isl}" = xno; then
8463     graphite_requested=no
8464   elif test "x${with_isl}" != x \
8465     || test "x${with_isl_include}" != x \
8466     || test "x${with_isl_lib}" != x ; then
8467     graphite_requested=yes
8468   else
8469     graphite_requested=no
8470   fi
8471
8472
8473
8474   if test "${gcc_cv_isl}" = no ; then
8475     isllibs=
8476     islinc=
8477   fi
8478
8479   if test "${graphite_requested}" = yes \
8480     && test "x${isllibs}" = x \
8481     && test "x${islinc}" = x ; then
8482
8483     as_fn_error $? "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
8484   fi
8485
8486
8487 fi
8488
8489 # If the isl check failed, disable builds of in-tree variant of isl
8490 if test "x$with_isl" = xno ||
8491    test "x$gcc_cv_isl" = xno; then
8492   noconfigdirs="$noconfigdirs isl"
8493   islinc=
8494 fi
8495
8496
8497
8498
8499 # Check for LTO support.
8500 # Check whether --enable-lto was given.
8501 if test "${enable_lto+set}" = set; then :
8502   enableval=$enable_lto; enable_lto=$enableval
8503 else
8504   enable_lto=yes; default_enable_lto=yes
8505 fi
8506
8507
8508
8509
8510
8511 target_elf=no
8512 case $target in
8513   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8514   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8515   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8516   nvptx-*-none)
8517     target_elf=no
8518     ;;
8519   *)
8520     target_elf=yes
8521     ;;
8522 esac
8523
8524 if test $target_elf = yes; then :
8525   # ELF platforms build the lto-plugin always.
8526   build_lto_plugin=yes
8527
8528 else
8529   if test x"$default_enable_lto" = x"yes" ; then
8530     case $target in
8531       *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8532       # On other non-ELF platforms, LTO has yet to be validated.
8533       *) enable_lto=no ;;
8534     esac
8535   else
8536   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8537   # It would also be nice to check the binutils support, but we don't
8538   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
8539   # warn during gcc/ subconfigure; unless you're bootstrapping with
8540   # -flto it won't be needed until after installation anyway.
8541     case $target in
8542       *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8543       *) if test x"$enable_lto" = x"yes"; then
8544         as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8545         fi
8546       ;;
8547     esac
8548   fi
8549   # Among non-ELF, only Windows platforms support the lto-plugin so far.
8550   # Build it unless LTO was explicitly disabled.
8551   case $target in
8552     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8553     *) ;;
8554   esac
8555
8556 fi
8557
8558
8559 # Check whether --enable-linker-plugin-configure-flags was given.
8560 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8561   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8562 else
8563   extra_linker_plugin_configure_flags=
8564 fi
8565
8566
8567 # Check whether --enable-linker-plugin-flags was given.
8568 if test "${enable_linker_plugin_flags+set}" = set; then :
8569   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8570 else
8571   extra_linker_plugin_flags=
8572 fi
8573
8574
8575
8576 # Enable --enable-host-shared.
8577 # Checked early to determine whether jit is an 'all' language
8578 # Check whether --enable-host-shared was given.
8579 if test "${enable_host_shared+set}" = set; then :
8580   enableval=$enable_host_shared; host_shared=$enableval
8581  case $host in
8582    x86_64-*-darwin* | aarch64-*-darwin*)
8583      if test x$host_shared != xyes ; then
8584        # PIC is the default, and actually cannot be switched off.
8585        echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8586        host_shared=yes
8587      fi ;;
8588   *) ;;
8589  esac
8590 else
8591   case $host in
8592   x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8593   *) host_shared=no ;;
8594  esac
8595 fi
8596
8597
8598
8599 # By default, C and C++ are the only stage 1 languages.
8600 stage1_languages=,c,
8601
8602 # Target libraries that we bootstrap.
8603 bootstrap_target_libs=,target-libgcc,
8604
8605 # Figure out what language subdirectories are present.
8606 # Look if the user specified --enable-languages="..."; if not, use
8607 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8608 # go away some day.
8609 # NB:  embedded tabs in this IF block -- do not untabify
8610 if test -d ${srcdir}/gcc; then
8611   if test x"${enable_languages+set}" != xset; then
8612     if test x"${LANGUAGES+set}" = xset; then
8613       enable_languages="${LANGUAGES}"
8614         echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8615     else
8616       enable_languages=default
8617     fi
8618   else
8619     if test x"${enable_languages}" = x ||
8620        test x"${enable_languages}" = xyes;
8621        then
8622       echo configure.ac: --enable-languages needs at least one language argument 1>&2
8623       exit 1
8624     fi
8625   fi
8626   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
8627
8628   # 'f95' is the old name for the 'fortran' language. We issue a warning
8629   # and make the substitution.
8630   case ,${enable_languages}, in
8631     *,f95,*)
8632       echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8633       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8634       ;;
8635   esac
8636
8637   # If bootstrapping, C++ must be enabled.
8638   case ",$enable_languages,:$enable_bootstrap" in
8639     *,c++,*:*) ;;
8640     *:yes)
8641       if test -f ${srcdir}/gcc/cp/config-lang.in; then
8642         enable_languages="${enable_languages},c++"
8643       else
8644         as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8645       fi
8646       ;;
8647   esac
8648
8649   # First scan to see if an enabled language requires some other language.
8650   # We assume that a given config-lang.in will list all the language
8651   # front ends it requires, even if some are required indirectly.
8652   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8653     case ${lang_frag} in
8654       ..) ;;
8655       # The odd quoting in the next line works around
8656       # an apparent bug in bash 1.12 on linux.
8657       ${srcdir}/gcc/[*]/config-lang.in) ;;
8658       *)
8659         # From the config-lang.in, get $language, $lang_requires, and
8660         # $lang_requires_boot_languages.
8661         language=
8662         lang_requires=
8663         lang_requires_boot_languages=
8664         # set srcdir during sourcing lang_frag to the gcc dir.
8665         # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8666         # polutes this shell
8667         saved_srcdir=${srcdir}
8668         srcdir=${srcdir}/gcc . ${lang_frag}
8669         srcdir=${saved_srcdir}
8670         for other in ${lang_requires} ${lang_requires_boot_languages}; do
8671           case ,${enable_languages}, in
8672             *,$other,*) ;;
8673             *,default,*) ;;
8674             *,all,*) ;;
8675             *,$language,*)
8676               echo " \`$other' language required by \`$language'; enabling" 1>&2
8677               enable_languages="${enable_languages},${other}"
8678               ;;
8679           esac
8680         done
8681         for other in ${lang_requires_boot_languages} ; do
8682           if test "$other" != "c"; then
8683             case ,${enable_stage1_languages}, in
8684               *,$other,*) ;;
8685               *,default,*) ;;
8686               *,all,*) ;;
8687               *)
8688                 case ,${enable_languages}, in
8689                   *,$language,*)
8690                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8691                     enable_stage1_languages="$enable_stage1_languages,${other}"
8692                     ;;
8693                 esac
8694                 ;;
8695             esac
8696           fi
8697         done
8698         ;;
8699     esac
8700   done
8701
8702   new_enable_languages=,c,
8703
8704   # If LTO is enabled, add the LTO front end.
8705   if test "$enable_lto" = "yes" ; then
8706     case ,${enable_languages}, in
8707       *,lto,*) ;;
8708       *) enable_languages="${enable_languages},lto" ;;
8709     esac
8710     if test "${build_lto_plugin}" = "yes" ; then
8711       configdirs="$configdirs lto-plugin"
8712     fi
8713   fi
8714
8715   # If we're building an offloading compiler, add the LTO front end.
8716   if test x"$enable_as_accelerator_for" != x ; then
8717     case ,${enable_languages}, in
8718       *,lto,*) ;;
8719       *) enable_languages="${enable_languages},lto" ;;
8720     esac
8721   fi
8722
8723   missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8724   potential_languages=,c,
8725
8726   enabled_target_libs=
8727   disabled_target_libs=
8728
8729   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8730     case ${lang_frag} in
8731       ..) ;;
8732       # The odd quoting in the next line works around
8733       # an apparent bug in bash 1.12 on linux.
8734       ${srcdir}/gcc/[*]/config-lang.in) ;;
8735       *)
8736         # From the config-lang.in, get $language, $target_libs,
8737         # $lang_dirs, $boot_language, and $build_by_default
8738         language=
8739         target_libs=
8740         lang_dirs=
8741         subdir_requires=
8742         boot_language=no
8743         build_by_default=yes
8744         # set srcdir during sourcing.  See above about save & restore
8745         saved_srcdir=${srcdir}
8746         srcdir=${srcdir}/gcc . ${lang_frag}
8747         srcdir=${saved_srcdir}
8748         if test x${language} = x; then
8749           echo "${lang_frag} doesn't set \$language." 1>&2
8750           exit 1
8751         fi
8752
8753         if test "$language" = "c++"; then
8754           boot_language=yes
8755         fi
8756
8757         add_this_lang=no
8758         # C is always enabled, so no need to add it again
8759         if test "$language" != "c"; then
8760           case ,${enable_languages}, in
8761             *,${language},*)
8762               # Language was explicitly selected; include it
8763               add_this_lang=yes
8764               ;;
8765             *,all,*)
8766               # All languages are enabled
8767               add_this_lang=all
8768               ;;
8769             *,default,*)
8770               # 'default' was selected, select it if it is a default language
8771               add_this_lang=${build_by_default}
8772               ;;
8773           esac
8774         fi
8775
8776         # Disable languages that need other directories if these aren't available.
8777         for i in $subdir_requires; do
8778           test -f "$srcdir/gcc/$i/config-lang.in" && continue
8779           case ${add_this_lang} in
8780             yes)
8781               # Specifically requested language; tell them.
8782               as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8783               ;;
8784             all)
8785               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8786 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8787               add_this_lang=unsupported
8788               ;;
8789             *)
8790               # Silently disable.
8791               add_this_lang=unsupported
8792               ;;
8793           esac
8794         done
8795
8796         # Disable Ada if no preexisting GNAT is available.
8797         case ${add_this_lang}:${language}:${have_gnat} in
8798           yes:ada:no)
8799             # Specifically requested language; tell them.
8800             as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8801             ;;
8802           all:ada:no)
8803             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8804 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8805             add_this_lang=unsupported
8806             ;;
8807           *:ada:no)
8808             # Silently disable.
8809             add_this_lang=unsupported
8810             ;;
8811         esac
8812
8813         # Disable D if no preexisting GDC is available.
8814         case ${add_this_lang}:${language}:${have_gdc} in
8815           yes:d:no)
8816             # Specifically requested language; tell them.
8817             as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8818            ;;
8819           all:d:no)
8820             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8821 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8822             add_this_lang=unsupported
8823             ;;
8824           *:d:no)
8825             # Silently disable.
8826             add_this_lang=unsupported
8827             ;;
8828         esac
8829
8830         # Disable jit if -enable-host-shared not specified
8831         # but not if building for Mingw. All code in Windows
8832         # is position independent code (PIC).
8833         case $target in
8834           *mingw*) ;;
8835           *)
8836           case ${add_this_lang}:${language}:${host_shared} in
8837             yes:jit:no)
8838                    # PR jit/64780: explicitly specify --enable-host-shared
8839             as_fn_error $? "
8840 Enabling language \"jit\" requires --enable-host-shared.
8841
8842 --enable-host-shared typically slows the rest of the compiler down by
8843 a few %, so you must explicitly enable it.
8844
8845 If you want to build both the jit and the regular compiler, it is often
8846 best to do this via two separate configure/builds, in separate
8847 directories, to avoid imposing the performance cost of
8848 --enable-host-shared on the regular compiler." "$LINENO" 5
8849                     ;;
8850             all:jit:no)
8851               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8852 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8853               add_this_lang=unsupported
8854               ;;
8855             *:jit:no)
8856               # Silently disable.
8857               add_this_lang=unsupported
8858               ;;
8859                 esac
8860           ;;
8861         esac
8862
8863         # Disable a language that is unsupported by the target.
8864         case "${add_this_lang}: $unsupported_languages " in
8865           no:*) ;;
8866           unsupported:*) ;;
8867           *:*" $language "*)
8868             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8869 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8870             add_this_lang=unsupported
8871             ;;
8872         esac
8873
8874         case $add_this_lang in
8875           unsupported)
8876             # Remove language-dependent dirs.
8877             disabled_target_libs="$disabled_target_libs $target_libs"
8878             noconfigdirs="$noconfigdirs $lang_dirs"
8879             ;;
8880           no)
8881             # Remove language-dependent dirs; still show language as supported.
8882             disabled_target_libs="$disabled_target_libs $target_libs"
8883             noconfigdirs="$noconfigdirs $lang_dirs"
8884             potential_languages="${potential_languages}${language},"
8885             ;;
8886           all|yes)
8887             new_enable_languages="${new_enable_languages}${language},"
8888             potential_languages="${potential_languages}${language},"
8889             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8890             enabled_target_libs="$enabled_target_libs $target_libs"
8891             case "${boot_language}:,$enable_stage1_languages," in
8892               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8893                 # Add to (comma-separated) list of stage 1 languages.
8894                 case ",$stage1_languages," in
8895                   *,$language,* | ,yes, | ,all,) ;;
8896                   *) stage1_languages="${stage1_languages}${language}," ;;
8897                 esac
8898                 # We need to bootstrap any supporting libraries.
8899                 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8900                 ;;
8901             esac
8902             ;;
8903         esac
8904         ;;
8905     esac
8906   done
8907
8908   # Add target libraries which are only needed for disabled languages
8909   # to noconfigdirs.
8910   if test -n "$disabled_target_libs"; then
8911     for dir in $disabled_target_libs; do
8912       case " $enabled_target_libs " in
8913       *" ${dir} "*) ;;
8914       *) noconfigdirs="$noconfigdirs $dir" ;;
8915       esac
8916     done
8917   fi
8918
8919   # Check whether --enable-stage1-languages was given.
8920 if test "${enable_stage1_languages+set}" = set; then :
8921   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8922     ,no,|,,)
8923       # Set it to something that will have no effect in the loop below
8924       enable_stage1_languages=c ;;
8925     ,yes,)
8926       enable_stage1_languages=`echo $new_enable_languages | \
8927         sed -e "s/^,//" -e "s/,$//" ` ;;
8928     *,all,*)
8929       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8930         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8931   esac
8932
8933   # Add "good" languages from enable_stage1_languages to stage1_languages,
8934   # while "bad" languages go in missing_languages.  Leave no duplicates.
8935   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8936     case $potential_languages in
8937       *,$i,*)
8938         case $stage1_languages in
8939           *,$i,*) ;;
8940           *) stage1_languages="$stage1_languages$i," ;;
8941         esac ;;
8942       *)
8943         case $missing_languages in
8944           *,$i,*) ;;
8945           *) missing_languages="$missing_languages$i," ;;
8946         esac ;;
8947      esac
8948   done
8949 fi
8950
8951
8952   # Remove leading/trailing commas that were added for simplicity
8953   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8954   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8955   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8956   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8957
8958   if test "x$missing_languages" != x; then
8959     as_fn_error $? "
8960 The following requested languages could not be built: ${missing_languages}
8961 Supported languages are: ${potential_languages}" "$LINENO" 5
8962   fi
8963   if test "x$new_enable_languages" != "x$enable_languages"; then
8964     echo The following languages will be built: ${new_enable_languages}
8965     enable_languages="$new_enable_languages"
8966   fi
8967
8968
8969   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8970 fi
8971
8972 # Handle --disable-<component> generically.
8973 for dir in $configdirs $build_configdirs $target_configdirs ; do
8974   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8975   varname=`echo $dirname | sed -e s/+/_/g`
8976   if eval test x\${enable_${varname}} "=" xno ; then
8977     noconfigdirs="$noconfigdirs $dir"
8978   fi
8979 done
8980
8981 # Check for Boehm's garbage collector
8982 # Check whether --enable-objc-gc was given.
8983 if test "${enable_objc_gc+set}" = set; then :
8984   enableval=$enable_objc_gc;
8985 fi
8986
8987
8988 # Check whether --with-target-bdw-gc was given.
8989 if test "${with_target_bdw_gc+set}" = set; then :
8990   withval=$with_target_bdw_gc;
8991 fi
8992
8993
8994 # Check whether --with-target-bdw-gc-include was given.
8995 if test "${with_target_bdw_gc_include+set}" = set; then :
8996   withval=$with_target_bdw_gc_include;
8997 fi
8998
8999
9000 # Check whether --with-target-bdw-gc-lib was given.
9001 if test "${with_target_bdw_gc_lib+set}" = set; then :
9002   withval=$with_target_bdw_gc_lib;
9003 fi
9004
9005
9006 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9008 $as_echo_n "checking for bdw garbage collector... " >&6; }
9009   if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9010         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9011 $as_echo "using bdw-gc in default locations" >&6; }
9012   else
9013         if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9014       as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9015     elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9016       as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9017     else
9018       { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9019 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9020     fi
9021   fi
9022 esac
9023
9024 # Disable libitm, libsanitizer, libvtv if we're not building C++
9025 case ,${enable_languages}, in
9026   *,c++,*)
9027     # Disable libitm, libsanitizer if we're not building libstdc++
9028     case "${noconfigdirs}" in
9029       *target-libstdc++-v3*)
9030         noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9031         ;;
9032       *) ;;
9033     esac
9034     ;;
9035   *)
9036     noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9037     ;;
9038 esac
9039
9040 # If gcc/ is not in the source tree then we'll not be building a
9041 # target compiler, assume in that case we don't want to build any
9042 # target libraries or tools.
9043 #
9044 # This was added primarily for the benefit for binutils-gdb who reuse
9045 # this configure script, but don't always have target tools available.
9046 if test ! -d ${srcdir}/gcc; then
9047    skipdirs="${skipdirs} ${target_configdirs}"
9048 fi
9049
9050 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9051 # $build_configdirs and $target_configdirs.
9052 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9053
9054 notsupp=""
9055 for dir in . $skipdirs $noconfigdirs ; do
9056   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9057   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9058     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9059     if test -r $srcdir/$dirname/configure ; then
9060       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9061         true
9062       else
9063         notsupp="$notsupp $dir"
9064       fi
9065     fi
9066   fi
9067   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9068     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9069     if test -r $srcdir/$dirname/configure ; then
9070       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9071         true
9072       else
9073         notsupp="$notsupp $dir"
9074       fi
9075     fi
9076   fi
9077   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9078     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9079     if test -r $srcdir/$dirname/configure ; then
9080       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9081         true
9082       else
9083         notsupp="$notsupp $dir"
9084       fi
9085     fi
9086   fi
9087 done
9088
9089 # Quietly strip out all directories which aren't configurable in this tree.
9090 # This relies on all configurable subdirectories being autoconfiscated, which
9091 # is now the case.
9092 build_configdirs_all="$build_configdirs"
9093 build_configdirs=
9094 for i in ${build_configdirs_all} ; do
9095   j=`echo $i | sed -e s/build-//g`
9096   if test -f ${srcdir}/$j/configure ; then
9097     build_configdirs="${build_configdirs} $i"
9098   fi
9099 done
9100
9101 configdirs_all="$configdirs"
9102 configdirs=
9103 for i in ${configdirs_all} ; do
9104   if test -f ${srcdir}/$i/configure ; then
9105     configdirs="${configdirs} $i"
9106   fi
9107 done
9108
9109 target_configdirs_all="$target_configdirs"
9110 target_configdirs=
9111 for i in ${target_configdirs_all} ; do
9112   j=`echo $i | sed -e s/target-//g`
9113   if test -f ${srcdir}/$j/configure ; then
9114     target_configdirs="${target_configdirs} $i"
9115   fi
9116 done
9117
9118 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9119 # so we have to add it after the preceding checks.
9120 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9121 then
9122   case " $configdirs " in
9123     *" libiberty "*)
9124       # If we can build libiberty, we can also build libiberty-linker-plugin.
9125       configdirs="$configdirs libiberty-linker-plugin"
9126       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9127         --with-libiberty=../libiberty-linker-plugin";;
9128     *)
9129       as_fn_error $? "libiberty missing" "$LINENO" 5;;
9130   esac
9131 fi
9132
9133 # Sometimes we have special requirements for the host libiberty.
9134 extra_host_libiberty_configure_flags=
9135 case " $configdirs " in
9136   *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9137     # When these are to be built as shared libraries, the same applies to
9138     # libiberty.
9139     extra_host_libiberty_configure_flags=--enable-shared
9140     ;;
9141 esac
9142
9143
9144 # Sometimes we have special requirements for the host zlib.
9145 extra_host_zlib_configure_flags=
9146 case " $configdirs " in
9147   *" bfd "*)
9148     # When bfd is to be built as a shared library, the same applies to
9149     # zlib.
9150     if test "$enable_shared" = "yes"; then
9151       extra_host_zlib_configure_flags=--enable-host-shared
9152     fi
9153     ;;
9154 esac
9155
9156
9157 # Produce a warning message for the subdirs we can't configure.
9158 # This isn't especially interesting in the Cygnus tree, but in the individual
9159 # FSF releases, it's important to let people know when their machine isn't
9160 # supported by the one or two programs in a package.
9161
9162 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9163   # If $appdirs is non-empty, at least one of those directories must still
9164   # be configured, or we error out.  (E.g., if the gas release supports a
9165   # specified target in some subdirs but not the gas subdir, we shouldn't
9166   # pretend that all is well.)
9167   if test -n "$appdirs" ; then
9168     for dir in $appdirs ; do
9169       if test -r $dir/Makefile.in ; then
9170         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9171           appdirs=""
9172           break
9173         fi
9174         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9175           appdirs=""
9176           break
9177         fi
9178       fi
9179     done
9180     if test -n "$appdirs" ; then
9181       echo "*** This configuration is not supported by this package." 1>&2
9182       exit 1
9183     fi
9184   fi
9185   # Okay, some application will build, or we don't care to check.  Still
9186   # notify of subdirs not getting built.
9187   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9188   echo "    ${notsupp}" 1>&2
9189   echo "    (Any other directories should still work fine.)" 1>&2
9190 fi
9191
9192 case "$host" in
9193   *msdosdjgpp*)
9194     enable_gdbtk=no ;;
9195 esac
9196
9197 # To find our prefix, in gcc_cv_tool_prefix.
9198
9199 # The user is always right.
9200 if test "${PATH_SEPARATOR+set}" != set; then
9201   echo "#! /bin/sh" >conf$$.sh
9202   echo  "exit 0"   >>conf$$.sh
9203   chmod +x conf$$.sh
9204   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9205     PATH_SEPARATOR=';'
9206   else
9207     PATH_SEPARATOR=:
9208   fi
9209   rm -f conf$$.sh
9210 fi
9211
9212
9213   get_gcc_base_ver="cat"
9214
9215 # Check whether --with-gcc-major-version-only was given.
9216 if test "${with_gcc_major_version_only+set}" = set; then :
9217   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9218         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9219       fi
9220
9221 fi
9222
9223
9224
9225
9226
9227
9228 if test "x$exec_prefix" = xNONE; then
9229         if test "x$prefix" = xNONE; then
9230                 gcc_cv_tool_prefix=$ac_default_prefix
9231         else
9232                 gcc_cv_tool_prefix=$prefix
9233         fi
9234 else
9235         gcc_cv_tool_prefix=$exec_prefix
9236 fi
9237
9238 # If there is no compiler in the tree, use the PATH only.  In any
9239 # case, if there is no compiler in the tree nobody should use
9240 # AS_FOR_TARGET and LD_FOR_TARGET.
9241 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9242     if test x$with_gcc_major_version_only = xyes ; then
9243                 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9244             else
9245         gcc_version=`cat $srcdir/gcc/BASE-VER`
9246     fi
9247     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9248     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9249     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9250     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9251     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9252     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9253 else
9254     gcc_cv_tool_dirs=
9255 fi
9256
9257 if test x$build = x$target && test -n "$md_exec_prefix"; then
9258         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9259 fi
9260
9261
9262
9263 copy_dirs=
9264
9265
9266 # Check whether --with-build-sysroot was given.
9267 if test "${with_build_sysroot+set}" = set; then :
9268   withval=$with_build_sysroot; if test x"$withval" != x ; then
9269      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9270    fi
9271 else
9272   SYSROOT_CFLAGS_FOR_TARGET=
9273 fi
9274
9275
9276
9277
9278 # Check whether --with-debug-prefix-map was given.
9279 if test "${with_debug_prefix_map+set}" = set; then :
9280   withval=$with_debug_prefix_map; if test x"$withval" != x; then
9281      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9282      for debug_map in $withval; do
9283        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9284      done
9285    fi
9286 else
9287   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9288 fi
9289
9290
9291
9292 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9293 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
9294 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9295 # We want to ensure that TARGET libraries (which we know are built with
9296 # gcc) are built with "-O2 -g", so include those options when setting
9297 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9298 if test "x$CFLAGS_FOR_TARGET" = x; then
9299   if test "x${is_cross_compiler}" = xyes; then
9300     CFLAGS_FOR_TARGET="-g -O2"
9301   else
9302     CFLAGS_FOR_TARGET=$CFLAGS
9303     case " $CFLAGS " in
9304       *" -O2 "*) ;;
9305       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9306     esac
9307     case " $CFLAGS " in
9308       *" -g "* | *" -g3 "*) ;;
9309       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9310     esac
9311   fi
9312 fi
9313
9314
9315 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9316   if test "x${is_cross_compiler}" = xyes; then
9317     CXXFLAGS_FOR_TARGET="-g -O2"
9318   else
9319     CXXFLAGS_FOR_TARGET=$CXXFLAGS
9320     case " $CXXFLAGS " in
9321       *" -O2 "*) ;;
9322       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9323     esac
9324     case " $CXXFLAGS " in
9325       *" -g "* | *" -g3 "*) ;;
9326       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9327     esac
9328   fi
9329 fi
9330
9331
9332
9333
9334 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
9335 # the named directory are copied to $(tooldir)/sys-include.
9336 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9337   if test x${is_cross_compiler} = xno ; then
9338     echo 1>&2 '***' --with-headers is only supported when cross compiling
9339     exit 1
9340   fi
9341   if test x"${with_headers}" != xyes ; then
9342     x=${gcc_cv_tool_prefix}
9343     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9344   fi
9345 fi
9346
9347 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
9348 # the name directories are copied to $(tooldir)/lib.  Multiple directories
9349 # are permitted.
9350 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9351   if test x${is_cross_compiler} = xno ; then
9352     echo 1>&2 '***' --with-libs is only supported when cross compiling
9353     exit 1
9354   fi
9355   if test x"${with_libs}" != xyes ; then
9356     # Copy the libraries in reverse order, so that files in the first named
9357     # library override files in subsequent libraries.
9358     x=${gcc_cv_tool_prefix}
9359     for l in ${with_libs}; do
9360       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9361     done
9362   fi
9363 fi
9364
9365 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9366 #
9367 # This is done by determining whether or not the appropriate directory
9368 # is available, and by checking whether or not specific configurations
9369 # have requested that this magic not happen.
9370 #
9371 # The command line options always override the explicit settings in
9372 # configure.ac, and the settings in configure.ac override this magic.
9373 #
9374 # If the default for a toolchain is to use GNU as and ld, and you don't
9375 # want to do that, then you should use the --without-gnu-as and
9376 # --without-gnu-ld options for the configure script.  Similarly, if
9377 # the default is to use the included zlib and you don't want to do that,
9378 # you should use the --with-system-zlib option for the configure script.
9379
9380 if test x${use_gnu_as} = x &&
9381    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9382   with_gnu_as=yes
9383   extra_host_args="$extra_host_args --with-gnu-as"
9384 fi
9385
9386 if test x${use_gnu_ld} = x &&
9387    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9388   with_gnu_ld=yes
9389   extra_host_args="$extra_host_args --with-gnu-ld"
9390 fi
9391
9392 if test x${use_included_zlib} = x &&
9393    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9394   :
9395 else
9396   with_system_zlib=yes
9397   extra_host_args="$extra_host_args --with-system-zlib"
9398 fi
9399
9400 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9401 # can detect this case.
9402
9403 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9404   with_newlib=yes
9405   extra_host_args="$extra_host_args --with-newlib"
9406 fi
9407
9408 # Handle ${copy_dirs}
9409 set fnord ${copy_dirs}
9410 shift
9411 while test $# != 0 ; do
9412   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9413     :
9414   else
9415     echo Copying $1 to $2
9416
9417     # Use the install script to create the directory and all required
9418     # parent directories.
9419     if test -d $2 ; then
9420       :
9421     else
9422       echo >config.temp
9423       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9424     fi
9425
9426     # Copy the directory, assuming we have tar.
9427     # FIXME: Should we use B in the second tar?  Not all systems support it.
9428     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9429
9430     # It is the responsibility of the user to correctly adjust all
9431     # symlinks.  If somebody can figure out how to handle them correctly
9432     # here, feel free to add the code.
9433
9434     echo $1 > $2/COPIED
9435   fi
9436   shift; shift
9437 done
9438
9439 # Determine a target-dependent exec_prefix that the installed
9440 # gcc will search in.  Keep this list sorted by triplet, with
9441 # the *-*-osname triplets last.
9442 md_exec_prefix=
9443 case "${target}" in
9444   i[34567]86-pc-msdosdjgpp*)
9445     md_exec_prefix=/dev/env/DJDIR/bin
9446     ;;
9447   *-*-hpux* | \
9448   *-*-nto-qnx* | \
9449   *-*-solaris2*)
9450     md_exec_prefix=/usr/ccs/bin
9451     ;;
9452 esac
9453
9454 extra_arflags_for_target=
9455 extra_nmflags_for_target=
9456 extra_ranlibflags_for_target=
9457 target_makefile_frag=/dev/null
9458 case "${target}" in
9459   spu-*-*)
9460     target_makefile_frag="config/mt-spu"
9461     ;;
9462   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9463     target_makefile_frag="config/mt-sde"
9464     ;;
9465   mipsisa*-*-elfoabi*)
9466     target_makefile_frag="config/mt-mips-elfoabi"
9467     ;;
9468   mips*-*-*linux* | mips*-*-gnu*)
9469     target_makefile_frag="config/mt-mips-gnu"
9470     ;;
9471   nios2-*-elf*)
9472     target_makefile_frag="config/mt-nios2-elf"
9473     ;;
9474   *-*-linux-android*)
9475     target_makefile_frag="config/mt-android"
9476     ;;
9477   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9478     target_makefile_frag="config/mt-gnu"
9479     ;;
9480   *-*-aix4.[3456789]* | *-*-aix[56789].*)
9481     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9482     # commands to handle both 32-bit and 64-bit objects.  These flags are
9483     # harmless if we're using GNU nm or ar.
9484     extra_arflags_for_target=" -X32_64"
9485     extra_nmflags_for_target=" -B -X32_64"
9486     ;;
9487 esac
9488
9489 alphaieee_frag=/dev/null
9490 case $target in
9491   alpha*-*-*)
9492     # This just makes sure to use the -mieee option to build target libs.
9493     # This should probably be set individually by each library.
9494     alphaieee_frag="config/mt-alphaieee"
9495     ;;
9496 esac
9497
9498 # If --enable-target-optspace always use -Os instead of -O2 to build
9499 # the target libraries, similarly if it is not specified, use -Os
9500 # on selected platforms.
9501 ospace_frag=/dev/null
9502 case "${enable_target_optspace}:${target}" in
9503   yes:*)
9504     ospace_frag="config/mt-ospace"
9505     ;;
9506   :d30v-*)
9507     ospace_frag="config/mt-d30v"
9508     ;;
9509   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9510     ospace_frag="config/mt-ospace"
9511     ;;
9512   no:* | :*)
9513     ;;
9514   *)
9515     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9516     ;;
9517 esac
9518
9519 # Some systems (e.g., one of the i386-aix systems the gas testers are
9520 # using) don't handle "\$" correctly, so don't use it here.
9521 tooldir='${exec_prefix}'/${target_noncanonical}
9522 build_tooldir=${tooldir}
9523
9524 # Create a .gdbinit file which runs the one in srcdir
9525 # and tells GDB to look there for source files.
9526
9527 if test -r ${srcdir}/.gdbinit ; then
9528   case ${srcdir} in
9529     .) ;;
9530     *) cat > ./.gdbinit <<EOF
9531 # ${NO_EDIT}
9532 dir ${srcdir}
9533 dir .
9534 source ${srcdir}/.gdbinit
9535 EOF
9536     ;;
9537   esac
9538 fi
9539
9540 # Make sure that the compiler is able to generate an executable.  If it
9541 # can't, we are probably in trouble.  We don't care whether we can run the
9542 # executable--we might be using a cross compiler--we only care whether it
9543 # can be created.  At this point the main configure script has set CC.
9544 we_are_ok=no
9545 echo "int main () { return 0; }" > conftest.c
9546 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9547 if test $? = 0 ; then
9548   if test -s conftest || test -s conftest.exe ; then
9549     we_are_ok=yes
9550   fi
9551 fi
9552 case $we_are_ok in
9553   no)
9554     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9555     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9556     rm -f conftest*
9557     exit 1
9558     ;;
9559 esac
9560 rm -f conftest*
9561
9562 # Decide which environment variable is used to find dynamic libraries.
9563 case "${host}" in
9564   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9565   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9566   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9567   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9568 esac
9569
9570 # On systems where the dynamic library environment variable is PATH,
9571 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9572 # built executables to PATH.
9573 if test "$RPATH_ENVVAR" = PATH; then
9574   GCC_SHLIB_SUBDIR=/shlib
9575 else
9576   GCC_SHLIB_SUBDIR=
9577 fi
9578
9579 # Adjust the toplevel makefile according to whether bootstrap was selected.
9580 case $enable_bootstrap in
9581   yes)
9582     bootstrap_suffix=bootstrap
9583     BUILD_CONFIG=bootstrap-debug
9584     ;;
9585   no)
9586     bootstrap_suffix=no-bootstrap
9587     BUILD_CONFIG=
9588     ;;
9589 esac
9590
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9592 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9593
9594
9595 # Check whether --with-build-config was given.
9596 if test "${with_build_config+set}" = set; then :
9597   withval=$with_build_config; case $with_build_config in
9598    yes) with_build_config= ;;
9599    no) with_build_config= BUILD_CONFIG= ;;
9600    esac
9601 fi
9602
9603
9604 if test "x${with_build_config}" != x; then
9605   BUILD_CONFIG=$with_build_config
9606 else
9607   case $BUILD_CONFIG in
9608   bootstrap-debug)
9609     if echo "int f (void) { return 0; }" > conftest.c &&
9610        ${CC} -c conftest.c &&
9611        mv conftest.o conftest.o.g0 &&
9612        ${CC} -c -g conftest.c &&
9613        mv conftest.o conftest.o.g &&
9614        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9615       :
9616     else
9617       BUILD_CONFIG=
9618     fi
9619     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9620     ;;
9621   esac
9622 fi
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9624 $as_echo "$BUILD_CONFIG" >&6; }
9625
9626
9627 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9629 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9630 # Check whether --enable-vtable-verify was given.
9631 if test "${enable_vtable_verify+set}" = set; then :
9632   enableval=$enable_vtable_verify; case "$enableval" in
9633  yes) enable_vtable_verify=yes ;;
9634  no)  enable_vtable_verify=no ;;
9635  *)   enable_vtable_verify=no;;
9636  esac
9637 else
9638   enable_vtable_verify=no
9639 fi
9640
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9642 $as_echo "$enable_vtable_verify" >&6; }
9643
9644 # Record target_configdirs and the configure arguments for target and
9645 # build configuration in Makefile.
9646 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9647 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9648 bootstrap_fixincludes=no
9649
9650 # If we are building libgomp, bootstrap it.
9651 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9652   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9653 fi
9654
9655 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9656 # or bootstrap-ubsan, bootstrap it.
9657 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9658   case "$BUILD_CONFIG" in
9659     *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9660       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9661       bootstrap_fixincludes=yes
9662       ;;
9663   esac
9664 fi
9665
9666 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9667 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9668    test "$enable_vtable_verify" != no; then
9669   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9670 fi
9671
9672 # If we are building libatomic and the list of enabled languages includes the
9673 # D frontend, bootstrap it.
9674 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9675   case ,${enable_languages}, in
9676     *,d,*)
9677       bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9678       ;;
9679   esac
9680 fi
9681
9682 # Determine whether gdb needs tk/tcl or not.
9683 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9684 # and in that case we want gdb to be built without tk.  Ugh!
9685 # In fact I believe gdb is the *only* package directly dependent on tk,
9686 # so we should be able to put the 'maybe's in unconditionally and
9687 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
9688 # 100% sure that that's safe though.
9689
9690 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9691 case "$enable_gdbtk" in
9692   no)
9693     GDB_TK="" ;;
9694   yes)
9695     GDB_TK="${gdb_tk}" ;;
9696   *)
9697     # Only add the dependency on gdbtk when GDBtk is part of the gdb
9698     # distro.  Eventually someone will fix this and move Insight, nee
9699     # gdbtk to a separate directory.
9700     if test -d ${srcdir}/gdb/gdbtk ; then
9701       GDB_TK="${gdb_tk}"
9702     else
9703       GDB_TK=""
9704     fi
9705     ;;
9706 esac
9707 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9708 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9709
9710 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9711 # else does, only include them if one of these is built.  The Makefile
9712 # provides the ordering, so it's enough here to add to the list.
9713 case " ${configdirs} " in
9714   *\ gdb\ *)
9715     configdirs="${configdirs} gnulib gdbsupport"
9716     ;;
9717   *\ gdbserver\ *)
9718     configdirs="${configdirs} gnulib gdbsupport"
9719     ;;
9720   *\ sim\ *)
9721     configdirs="${configdirs} gnulib"
9722     ;;
9723 esac
9724
9725 # Strip out unwanted targets.
9726
9727 # While at that, we remove Makefiles if we were started for recursive
9728 # configuration, so that the top-level Makefile reconfigures them,
9729 # like we used to do when configure itself was recursive.
9730
9731 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
9732 # but now we're fixing up the Makefile ourselves with the additional
9733 # commands passed to AC_CONFIG_FILES.  Use separate variables
9734 # extrasub-{build,host,target} not because there is any reason to split
9735 # the substitutions up that way, but only to remain below the limit of
9736 # 99 commands in a script, for HP-UX sed.
9737
9738 # Do not nest @if/@endif or @unless/@endunless pairs, because
9739 # configure will not warn you at all.
9740
9741 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9742   yes:yes:*\ gold\ *:*,c++,*) ;;
9743   yes:yes:*\ gold\ *:*)
9744     as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9745     ;;
9746 esac
9747
9748 extrasub_build=
9749 for module in ${build_configdirs} ; do
9750   if test -z "${no_recursion}" \
9751      && test -f ${build_subdir}/${module}/Makefile; then
9752     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9753     rm -f ${build_subdir}/${module}/Makefile
9754   fi
9755   extrasub_build="$extrasub_build
9756 /^@if build-$module\$/d
9757 /^@endif build-$module\$/d
9758 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9759 /^@if build-$module-$bootstrap_suffix\$/d
9760 /^@endif build-$module-$bootstrap_suffix\$/d
9761 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9762 done
9763 extrasub_host=
9764 for module in ${configdirs} ; do
9765   if test -z "${no_recursion}"; then
9766     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9767       if test -f ${file}; then
9768         echo 1>&2 "*** removing ${file} to force reconfigure"
9769         rm -f ${file}
9770       fi
9771     done
9772   fi
9773   case ${module},${bootstrap_fixincludes} in
9774     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9775     *) host_bootstrap_suffix=$bootstrap_suffix ;;
9776   esac
9777   extrasub_host="$extrasub_host
9778 /^@if $module\$/d
9779 /^@endif $module\$/d
9780 /^@unless $module\$/,/^@endunless $module\$/d
9781 /^@if $module-$host_bootstrap_suffix\$/d
9782 /^@endif $module-$host_bootstrap_suffix\$/d
9783 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9784 done
9785 extrasub_target=
9786 for module in ${target_configdirs} ; do
9787   if test -z "${no_recursion}" \
9788      && test -f ${target_subdir}/${module}/Makefile; then
9789     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9790     rm -f ${target_subdir}/${module}/Makefile
9791   fi
9792
9793   # We only bootstrap target libraries listed in bootstrap_target_libs.
9794   case $bootstrap_target_libs in
9795     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9796     *) target_bootstrap_suffix=no-bootstrap ;;
9797   esac
9798
9799   extrasub_target="$extrasub_target
9800 /^@if target-$module\$/d
9801 /^@endif target-$module\$/d
9802 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9803 /^@if target-$module-$target_bootstrap_suffix\$/d
9804 /^@endif target-$module-$target_bootstrap_suffix\$/d
9805 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9806 done
9807
9808 # Do the final fixup along with target modules.
9809 extrasub_target="$extrasub_target
9810 /^@if /,/^@endif /d
9811 /^@unless /d
9812 /^@endunless /d"
9813
9814 if test "$enable_pgo_build" != "no"; then
9815   extrasub_build="$extrasub_build
9816 /^@if pgo-build\$/d
9817 /^@endif pgo-build\$/d"
9818 fi
9819
9820 # Create the serialization dependencies.  This uses a temporary file.
9821
9822 # Check whether --enable-serial-configure was given.
9823 if test "${enable_serial_configure+set}" = set; then :
9824   enableval=$enable_serial_configure;
9825 fi
9826
9827
9828 case ${enable_serial_configure} in
9829   yes)
9830     enable_serial_build_configure=yes
9831     enable_serial_host_configure=yes
9832     enable_serial_target_configure=yes
9833     ;;
9834 esac
9835
9836 # These force 'configure's to be done one at a time, to avoid problems
9837 # with contention over a shared config.cache.
9838 rm -f serdep.tmp
9839 echo '# serdep.tmp' > serdep.tmp
9840 olditem=
9841 test "x${enable_serial_build_configure}" = xyes &&
9842 for item in ${build_configdirs} ; do
9843   case ${olditem} in
9844     "") ;;
9845     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9846   esac
9847   olditem=${item}
9848 done
9849 olditem=
9850 test "x${enable_serial_host_configure}" = xyes &&
9851 for item in ${configdirs} ; do
9852   case ${olditem} in
9853     "") ;;
9854     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9855   esac
9856   olditem=${item}
9857 done
9858 olditem=
9859 test "x${enable_serial_target_configure}" = xyes &&
9860 for item in ${target_configdirs} ; do
9861   case ${olditem} in
9862     "") ;;
9863     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9864   esac
9865   olditem=${item}
9866 done
9867 serialization_dependencies=serdep.tmp
9868
9869
9870 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
9871 # target, nonopt, and variable assignments.  These are the ones we
9872 # might not want to pass down to subconfigures.  The exception being
9873 # --cache-file=/dev/null, which is used to turn off the use of cache
9874 # files altogether, and which should be passed on to subconfigures.
9875 # Also strip program-prefix, program-suffix, and program-transform-name,
9876 # so that we can pass down a consistent program-transform-name.
9877 baseargs=
9878 tbaseargs=
9879 keep_next=no
9880 skip_next=no
9881 eval "set -- $ac_configure_args"
9882 for ac_arg
9883 do
9884   if test X"$skip_next" = X"yes"; then
9885     skip_next=no
9886     continue
9887   fi
9888   if test X"$keep_next" = X"yes"; then
9889     case $ac_arg in
9890       *\'*)
9891         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9892     esac
9893     baseargs="$baseargs '$ac_arg'"
9894     tbaseargs="$tbaseargs '$ac_arg'"
9895     keep_next=no
9896     continue
9897   fi
9898
9899   # Handle separated arguments.  Based on the logic generated by
9900   # autoconf 2.59.
9901   case $ac_arg in
9902     *=* | --config-cache | -C | -disable-* | --disable-* \
9903       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9904       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9905       | -with-* | --with-* | -without-* | --without-* | --x)
9906       separate_arg=no
9907       ;;
9908     -*)
9909       separate_arg=yes
9910       ;;
9911     *)
9912       separate_arg=no
9913       ;;
9914   esac
9915
9916   skip_targ=no
9917   case $ac_arg in
9918
9919   --with-* | --without-*)
9920     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9921
9922     case $libopt in
9923     *[-_]include)
9924       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9925       ;;
9926     *[-_]lib)
9927       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9928       ;;
9929     *)
9930       lib=$libopt
9931       ;;
9932     esac
9933
9934
9935     case $lib in
9936     mpc | mpfr | gmp | isl)
9937       # If we're processing --with-$lib, --with-$lib-include or
9938       # --with-$lib-lib, for one of the libs above, and target is
9939       # different from host, don't pass the current argument to any
9940       # target library's configure.
9941       if test x$is_cross_compiler = xyes; then
9942         skip_targ=yes
9943       fi
9944       ;;
9945     esac
9946     ;;
9947   esac
9948
9949   case "$ac_arg" in
9950     --cache-file=/dev/null | \
9951     -cache-file=/dev/null )
9952       # Handled here to avoid the test to skip args below.
9953       baseargs="$baseargs '$ac_arg'"
9954       tbaseargs="$tbaseargs '$ac_arg'"
9955       # Assert: $separate_arg should always be no.
9956       keep_next=$separate_arg
9957       ;;
9958     --no*)
9959       continue
9960       ;;
9961     --c* | \
9962     --sr* | \
9963     --ho* | \
9964     --bu* | \
9965     --t* | \
9966     --program-* | \
9967     -cache_file* | \
9968     -srcdir* | \
9969     -host* | \
9970     -build* | \
9971     -target* | \
9972     -program-prefix* | \
9973     -program-suffix* | \
9974     -program-transform-name* )
9975       skip_next=$separate_arg
9976       continue
9977       ;;
9978     -*)
9979       # An option.  Add it.
9980       case $ac_arg in
9981         *\'*)
9982           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9983       esac
9984       baseargs="$baseargs '$ac_arg'"
9985       if test X"$skip_targ" = Xno; then
9986         tbaseargs="$tbaseargs '$ac_arg'"
9987       fi
9988       keep_next=$separate_arg
9989       ;;
9990     *)
9991       # Either a variable assignment, or a nonopt (triplet).  Don't
9992       # pass it down; let the Makefile handle this.
9993       continue
9994       ;;
9995   esac
9996 done
9997 # Remove the initial space we just introduced and, as these will be
9998 # expanded by make, quote '$'.
9999 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10000
10001 # Add in --program-transform-name, after --program-prefix and
10002 # --program-suffix have been applied to it.  Autoconf has already
10003 # doubled dollar signs and backslashes in program_transform_name; we want
10004 # the backslashes un-doubled, and then the entire thing wrapped in single
10005 # quotes, because this will be expanded first by make and then by the shell.
10006 # Also, because we want to override the logic in subdir configure scripts to
10007 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10008 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10009 ${program_transform_name}
10010 EOF_SED
10011 gcc_transform_name=`cat conftestsed.out`
10012 rm -f conftestsed.out
10013 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10014 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10015 if test "$silent" = yes; then
10016   baseargs="$baseargs --silent"
10017   tbaseargs="$tbaseargs --silent"
10018 fi
10019 baseargs="$baseargs --disable-option-checking"
10020 tbaseargs="$tbaseargs --disable-option-checking"
10021
10022 # Record and document user additions to sub configure arguments.
10023
10024
10025
10026
10027 # For the build-side libraries, we just need to pretend we're native,
10028 # and not use the same cache file.  Multilibs are neither needed nor
10029 # desired.  We can't even use the same cache file for all build-side
10030 # libraries, as they're compiled differently; some with C, some with
10031 # C++ or with different feature-enabling options.
10032 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10033
10034 # For host modules, accept cache file option, or specification as blank.
10035 case "${cache_file}" in
10036 "") # empty
10037   cache_file_option="" ;;
10038 /* | [A-Za-z]:[\\/]* ) # absolute path
10039   cache_file_option="--cache-file=${cache_file}" ;;
10040 *) # relative path
10041   cache_file_option="--cache-file=../${cache_file}" ;;
10042 esac
10043
10044 # Host dirs don't like to share a cache file either, horribly enough.
10045 # This seems to be due to autoconf 2.5x stupidity.
10046 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10047
10048 target_configargs="$target_configargs ${tbaseargs}"
10049
10050 # Passing a --with-cross-host argument lets the target libraries know
10051 # whether they are being built with a cross-compiler or being built
10052 # native.  However, it would be better to use other mechanisms to make the
10053 # sorts of decisions they want to make on this basis.  Please consider
10054 # this option to be deprecated.  FIXME.
10055 if test x${is_cross_compiler} = xyes ; then
10056   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10057 fi
10058
10059 # Special user-friendly check for native x86_64-linux build, if
10060 # multilib is not explicitly enabled.
10061 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10062   x86_64-*linux*:yes:$build:$build:)
10063     # Make sure we have a development environment that handles 32-bit
10064     dev64=no
10065     echo "int main () { return 0; }" > conftest.c
10066     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10067     if test $? = 0 ; then
10068       if test -s conftest || test -s conftest.exe ; then
10069         dev64=yes
10070       fi
10071     fi
10072     rm -f conftest*
10073     if test x${dev64} != xyes ; then
10074       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
10075     fi
10076     ;;
10077 esac
10078
10079 # Default to --enable-multilib.
10080 if test x${enable_multilib} = x ; then
10081   target_configargs="--enable-multilib ${target_configargs}"
10082 fi
10083
10084 # Pass --with-newlib if appropriate.  Note that target_configdirs has
10085 # changed from the earlier setting of with_newlib.
10086 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10087   target_configargs="--with-newlib ${target_configargs}"
10088 fi
10089
10090 # Different target subdirs use different values of certain variables
10091 # (notably CXX).  Worse, multilibs use *lots* of different values.
10092 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10093 # it doesn't automatically accept command-line overrides of them.
10094 # This means it's not safe for target subdirs to share a cache file,
10095 # which is disgusting, but there you have it.  Hopefully this can be
10096 # fixed in future.  It's still worthwhile to use a cache file for each
10097 # directory.  I think.
10098
10099 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10100 # We need to pass --target, as newer autoconf's requires consistency
10101 # for target_alias and gcc doesn't manage it consistently.
10102 target_configargs="--cache-file=./config.cache ${target_configargs}"
10103
10104 FLAGS_FOR_TARGET=
10105 case " $target_configdirs " in
10106  *" newlib "*)
10107   case " $target_configargs " in
10108   *" --with-newlib "*)
10109    case "$target" in
10110     *-cygwin*)
10111       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10112       ;;
10113    esac
10114
10115    # If we're not building GCC, don't discard standard headers.
10116    if test -d ${srcdir}/gcc; then
10117      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10118
10119      if test "${build}" != "${host}"; then
10120        # On Canadian crosses, CC_FOR_TARGET will have already been set
10121        # by `configure', so we won't have an opportunity to add -Bgcc/
10122        # to it.  This is right: we don't want to search that directory
10123        # for binaries, but we want the header files in there, so add
10124        # them explicitly.
10125        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10126
10127        # Someone might think of using the pre-installed headers on
10128        # Canadian crosses, in case the installed compiler is not fully
10129        # compatible with the compiler being built.  In this case, it
10130        # would be better to flag an error than risking having
10131        # incompatible object files being constructed.  We can't
10132        # guarantee that an error will be flagged, but let's hope the
10133        # compiler will do it, when presented with incompatible header
10134        # files.
10135      fi
10136    fi
10137
10138    case "${target}-${is_cross_compiler}" in
10139    i[3456789]86-*-linux*-no)
10140       # Here host == target, so we don't need to build gcc,
10141       # so we don't want to discard standard headers.
10142       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10143       ;;
10144    *)
10145       # If we're building newlib, use its generic headers last, but search
10146       # for any libc-related directories first (so make it the last -B
10147       # switch).
10148       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10149
10150       # If we're building libgloss, find the startup file, simulator library
10151       # and linker script.
10152       case " $target_configdirs " in
10153         *" libgloss "*)
10154         # Look for startup file, simulator library and maybe linker script.
10155         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10156         # Look for libnosys.a in case the target needs it.
10157         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10158         # Most targets have the linker script in the source directory.
10159         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10160         ;;
10161       esac
10162       ;;
10163    esac
10164    ;;
10165   esac
10166   ;;
10167 esac
10168
10169 case "$target" in
10170   x86_64-*mingw* | *-w64-mingw*)
10171   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10172   # however, use a symlink named 'mingw' in ${prefix} .
10173     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10174     ;;
10175   *-mingw*)
10176   # MinGW can't be handled as Cygwin above since it does not use newlib.
10177     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'
10178     ;;
10179 esac
10180
10181 # Allow the user to override the flags for
10182 # our build compiler if desired.
10183 if test x"${build}" = x"${host}" ; then
10184   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10185   CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10186   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10187   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10188 fi
10189
10190 # On Canadian crosses, we'll be searching the right directories for
10191 # the previously-installed cross compiler, so don't bother to add
10192 # flags for directories within the install tree of the compiler
10193 # being built; programs in there won't even run.
10194 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10195   # Search for pre-installed headers if nothing else fits.
10196   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10197 fi
10198
10199 if test "x${use_gnu_ld}" = x &&
10200    echo " ${configdirs} " | grep " ld " > /dev/null ; then
10201   # Arrange for us to find uninstalled linker scripts.
10202   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10203 fi
10204
10205 # Search for other target-specific linker scripts and such.
10206 case "${target}" in
10207   mep*)
10208     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10209     ;;
10210   # The VxWorks support for shared libraries is getting in
10211   # incrementally.  Make sure it doesn't get activated implicitly:
10212   *vxworks*)
10213     if test "${enable_shared-unset}" = unset ; then
10214       enable_shared=no
10215       # So the build of libraries knows ...
10216       target_configargs="${target_configargs} --disable-shared"
10217       # So gcc knows ...
10218       host_configargs="${host_configargs} --disable-shared"
10219     fi
10220     ;;
10221 esac
10222
10223 # Makefile fragments.
10224 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10225 do
10226   eval fragval=\$$frag
10227   if test $fragval != /dev/null; then
10228     eval $frag=${srcdir}/$fragval
10229   fi
10230 done
10231
10232
10233
10234
10235
10236 # Miscellanea: directories, flags, etc.
10237
10238
10239
10240
10241
10242
10243
10244
10245 # Build module lists & subconfigure args.
10246
10247
10248
10249 # Host module lists & subconfigure args.
10250
10251
10252
10253
10254 # Target module lists & subconfigure args.
10255
10256
10257
10258 # Build tools.
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279 # Generate default definitions for YACC, M4, LEX and other programs that run
10280 # on the build machine.  These are used if the Makefile can't locate these
10281 # programs in objdir.
10282 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10283
10284 for ac_prog in 'bison -y' byacc yacc
10285 do
10286   # Extract the first word of "$ac_prog", so it can be a program name with args.
10287 set dummy $ac_prog; ac_word=$2
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10289 $as_echo_n "checking for $ac_word... " >&6; }
10290 if ${ac_cv_prog_YACC+:} false; then :
10291   $as_echo_n "(cached) " >&6
10292 else
10293   if test -n "$YACC"; then
10294   ac_cv_prog_YACC="$YACC" # Let the user override the test.
10295 else
10296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10297 for as_dir in $PATH
10298 do
10299   IFS=$as_save_IFS
10300   test -z "$as_dir" && as_dir=.
10301     for ac_exec_ext in '' $ac_executable_extensions; do
10302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10303     ac_cv_prog_YACC="$ac_prog"
10304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10305     break 2
10306   fi
10307 done
10308   done
10309 IFS=$as_save_IFS
10310
10311 fi
10312 fi
10313 YACC=$ac_cv_prog_YACC
10314 if test -n "$YACC"; then
10315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10316 $as_echo "$YACC" >&6; }
10317 else
10318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10319 $as_echo "no" >&6; }
10320 fi
10321
10322
10323   test -n "$YACC" && break
10324 done
10325 test -n "$YACC" || YACC="$MISSING bison -y"
10326
10327 case " $build_configdirs " in
10328   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10329 esac
10330
10331 for ac_prog in bison
10332 do
10333   # Extract the first word of "$ac_prog", so it can be a program name with args.
10334 set dummy $ac_prog; ac_word=$2
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10336 $as_echo_n "checking for $ac_word... " >&6; }
10337 if ${ac_cv_prog_BISON+:} false; then :
10338   $as_echo_n "(cached) " >&6
10339 else
10340   if test -n "$BISON"; then
10341   ac_cv_prog_BISON="$BISON" # Let the user override the test.
10342 else
10343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10344 for as_dir in $PATH
10345 do
10346   IFS=$as_save_IFS
10347   test -z "$as_dir" && as_dir=.
10348     for ac_exec_ext in '' $ac_executable_extensions; do
10349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10350     ac_cv_prog_BISON="$ac_prog"
10351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10352     break 2
10353   fi
10354 done
10355   done
10356 IFS=$as_save_IFS
10357
10358 fi
10359 fi
10360 BISON=$ac_cv_prog_BISON
10361 if test -n "$BISON"; then
10362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10363 $as_echo "$BISON" >&6; }
10364 else
10365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10366 $as_echo "no" >&6; }
10367 fi
10368
10369
10370   test -n "$BISON" && break
10371 done
10372 test -n "$BISON" || BISON="$MISSING bison"
10373
10374 case " $build_configdirs " in
10375   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10376 esac
10377
10378 for ac_prog in gm4 gnum4 m4
10379 do
10380   # Extract the first word of "$ac_prog", so it can be a program name with args.
10381 set dummy $ac_prog; ac_word=$2
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383 $as_echo_n "checking for $ac_word... " >&6; }
10384 if ${ac_cv_prog_M4+:} false; then :
10385   $as_echo_n "(cached) " >&6
10386 else
10387   if test -n "$M4"; then
10388   ac_cv_prog_M4="$M4" # Let the user override the test.
10389 else
10390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10391 for as_dir in $PATH
10392 do
10393   IFS=$as_save_IFS
10394   test -z "$as_dir" && as_dir=.
10395     for ac_exec_ext in '' $ac_executable_extensions; do
10396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10397     ac_cv_prog_M4="$ac_prog"
10398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10399     break 2
10400   fi
10401 done
10402   done
10403 IFS=$as_save_IFS
10404
10405 fi
10406 fi
10407 M4=$ac_cv_prog_M4
10408 if test -n "$M4"; then
10409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10410 $as_echo "$M4" >&6; }
10411 else
10412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413 $as_echo "no" >&6; }
10414 fi
10415
10416
10417   test -n "$M4" && break
10418 done
10419 test -n "$M4" || M4="$MISSING m4"
10420
10421 case " $build_configdirs " in
10422   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10423 esac
10424
10425 for ac_prog in flex lex
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_LEX+:} false; then :
10432   $as_echo_n "(cached) " >&6
10433 else
10434   if test -n "$LEX"; then
10435   ac_cv_prog_LEX="$LEX" # 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_LEX="$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 LEX=$ac_cv_prog_LEX
10455 if test -n "$LEX"; then
10456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10457 $as_echo "$LEX" >&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 "$LEX" && break
10465 done
10466 test -n "$LEX" || LEX="$MISSING flex"
10467
10468 case " $build_configdirs " in
10469   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10470   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10471 esac
10472
10473 for ac_prog in flex
10474 do
10475   # Extract the first word of "$ac_prog", so it can be a program name with args.
10476 set dummy $ac_prog; ac_word=$2
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10478 $as_echo_n "checking for $ac_word... " >&6; }
10479 if ${ac_cv_prog_FLEX+:} false; then :
10480   $as_echo_n "(cached) " >&6
10481 else
10482   if test -n "$FLEX"; then
10483   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10484 else
10485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10486 for as_dir in $PATH
10487 do
10488   IFS=$as_save_IFS
10489   test -z "$as_dir" && as_dir=.
10490     for ac_exec_ext in '' $ac_executable_extensions; do
10491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10492     ac_cv_prog_FLEX="$ac_prog"
10493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10494     break 2
10495   fi
10496 done
10497   done
10498 IFS=$as_save_IFS
10499
10500 fi
10501 fi
10502 FLEX=$ac_cv_prog_FLEX
10503 if test -n "$FLEX"; then
10504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10505 $as_echo "$FLEX" >&6; }
10506 else
10507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10508 $as_echo "no" >&6; }
10509 fi
10510
10511
10512   test -n "$FLEX" && break
10513 done
10514 test -n "$FLEX" || FLEX="$MISSING flex"
10515
10516 case " $build_configdirs " in
10517   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10518 esac
10519
10520 for ac_prog in makeinfo
10521 do
10522   # Extract the first word of "$ac_prog", so it can be a program name with args.
10523 set dummy $ac_prog; ac_word=$2
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10525 $as_echo_n "checking for $ac_word... " >&6; }
10526 if ${ac_cv_prog_MAKEINFO+:} false; then :
10527   $as_echo_n "(cached) " >&6
10528 else
10529   if test -n "$MAKEINFO"; then
10530   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10531 else
10532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533 for as_dir in $PATH
10534 do
10535   IFS=$as_save_IFS
10536   test -z "$as_dir" && as_dir=.
10537     for ac_exec_ext in '' $ac_executable_extensions; do
10538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10539     ac_cv_prog_MAKEINFO="$ac_prog"
10540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10541     break 2
10542   fi
10543 done
10544   done
10545 IFS=$as_save_IFS
10546
10547 fi
10548 fi
10549 MAKEINFO=$ac_cv_prog_MAKEINFO
10550 if test -n "$MAKEINFO"; then
10551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10552 $as_echo "$MAKEINFO" >&6; }
10553 else
10554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10555 $as_echo "no" >&6; }
10556 fi
10557
10558
10559   test -n "$MAKEINFO" && break
10560 done
10561 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10562
10563 case " $build_configdirs " in
10564   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10565   *)
10566
10567     # For an installed makeinfo, we require it to be from texinfo 4.7 or
10568     # higher, else we use the "missing" dummy.
10569     if ${MAKEINFO} --version \
10570        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10571       :
10572     else
10573       MAKEINFO="$MISSING makeinfo"
10574     fi
10575     ;;
10576
10577 esac
10578
10579 # FIXME: expect and dejagnu may become build tools?
10580
10581 for ac_prog in expect
10582 do
10583   # Extract the first word of "$ac_prog", so it can be a program name with args.
10584 set dummy $ac_prog; ac_word=$2
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10586 $as_echo_n "checking for $ac_word... " >&6; }
10587 if ${ac_cv_prog_EXPECT+:} false; then :
10588   $as_echo_n "(cached) " >&6
10589 else
10590   if test -n "$EXPECT"; then
10591   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10592 else
10593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10594 for as_dir in $PATH
10595 do
10596   IFS=$as_save_IFS
10597   test -z "$as_dir" && as_dir=.
10598     for ac_exec_ext in '' $ac_executable_extensions; do
10599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10600     ac_cv_prog_EXPECT="$ac_prog"
10601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10602     break 2
10603   fi
10604 done
10605   done
10606 IFS=$as_save_IFS
10607
10608 fi
10609 fi
10610 EXPECT=$ac_cv_prog_EXPECT
10611 if test -n "$EXPECT"; then
10612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10613 $as_echo "$EXPECT" >&6; }
10614 else
10615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10616 $as_echo "no" >&6; }
10617 fi
10618
10619
10620   test -n "$EXPECT" && break
10621 done
10622 test -n "$EXPECT" || EXPECT="expect"
10623
10624 case " $configdirs " in
10625   *" expect "*)
10626     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10627     ;;
10628 esac
10629
10630 for ac_prog in runtest
10631 do
10632   # Extract the first word of "$ac_prog", so it can be a program name with args.
10633 set dummy $ac_prog; ac_word=$2
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10635 $as_echo_n "checking for $ac_word... " >&6; }
10636 if ${ac_cv_prog_RUNTEST+:} false; then :
10637   $as_echo_n "(cached) " >&6
10638 else
10639   if test -n "$RUNTEST"; then
10640   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10641 else
10642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643 for as_dir in $PATH
10644 do
10645   IFS=$as_save_IFS
10646   test -z "$as_dir" && as_dir=.
10647     for ac_exec_ext in '' $ac_executable_extensions; do
10648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10649     ac_cv_prog_RUNTEST="$ac_prog"
10650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10651     break 2
10652   fi
10653 done
10654   done
10655 IFS=$as_save_IFS
10656
10657 fi
10658 fi
10659 RUNTEST=$ac_cv_prog_RUNTEST
10660 if test -n "$RUNTEST"; then
10661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10662 $as_echo "$RUNTEST" >&6; }
10663 else
10664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665 $as_echo "no" >&6; }
10666 fi
10667
10668
10669   test -n "$RUNTEST" && break
10670 done
10671 test -n "$RUNTEST" || RUNTEST="runtest"
10672
10673 case " $configdirs " in
10674   *" dejagnu "*)
10675     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10676     ;;
10677 esac
10678
10679 # Host tools.
10680 ncn_tool_prefix=
10681 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10682 ncn_target_tool_prefix=
10683 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10684
10685
10686
10687 if test -n "$AR"; then
10688   ac_cv_prog_AR=$AR
10689 elif test -n "$ac_cv_prog_AR"; then
10690   AR=$ac_cv_prog_AR
10691 fi
10692
10693 if test -n "$ac_cv_prog_AR"; then
10694   for ncn_progname in ar; do
10695     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10696 set dummy ${ncn_progname}; ac_word=$2
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10698 $as_echo_n "checking for $ac_word... " >&6; }
10699 if ${ac_cv_prog_AR+:} false; then :
10700   $as_echo_n "(cached) " >&6
10701 else
10702   if test -n "$AR"; then
10703   ac_cv_prog_AR="$AR" # Let the user override the test.
10704 else
10705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10706 for as_dir in $PATH
10707 do
10708   IFS=$as_save_IFS
10709   test -z "$as_dir" && as_dir=.
10710     for ac_exec_ext in '' $ac_executable_extensions; do
10711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10712     ac_cv_prog_AR="${ncn_progname}"
10713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10714     break 2
10715   fi
10716 done
10717   done
10718 IFS=$as_save_IFS
10719
10720 fi
10721 fi
10722 AR=$ac_cv_prog_AR
10723 if test -n "$AR"; then
10724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10725 $as_echo "$AR" >&6; }
10726 else
10727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10728 $as_echo "no" >&6; }
10729 fi
10730
10731
10732   done
10733 fi
10734
10735 for ncn_progname in ar; do
10736   if test -n "$ncn_tool_prefix"; then
10737     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10738 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10740 $as_echo_n "checking for $ac_word... " >&6; }
10741 if ${ac_cv_prog_AR+:} false; then :
10742   $as_echo_n "(cached) " >&6
10743 else
10744   if test -n "$AR"; then
10745   ac_cv_prog_AR="$AR" # Let the user override the test.
10746 else
10747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10748 for as_dir in $PATH
10749 do
10750   IFS=$as_save_IFS
10751   test -z "$as_dir" && as_dir=.
10752     for ac_exec_ext in '' $ac_executable_extensions; do
10753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10754     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10756     break 2
10757   fi
10758 done
10759   done
10760 IFS=$as_save_IFS
10761
10762 fi
10763 fi
10764 AR=$ac_cv_prog_AR
10765 if test -n "$AR"; then
10766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10767 $as_echo "$AR" >&6; }
10768 else
10769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770 $as_echo "no" >&6; }
10771 fi
10772
10773
10774   fi
10775   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10776     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10777 set dummy ${ncn_progname}; ac_word=$2
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10779 $as_echo_n "checking for $ac_word... " >&6; }
10780 if ${ac_cv_prog_AR+:} false; then :
10781   $as_echo_n "(cached) " >&6
10782 else
10783   if test -n "$AR"; then
10784   ac_cv_prog_AR="$AR" # Let the user override the test.
10785 else
10786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787 for as_dir in $PATH
10788 do
10789   IFS=$as_save_IFS
10790   test -z "$as_dir" && as_dir=.
10791     for ac_exec_ext in '' $ac_executable_extensions; do
10792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10793     ac_cv_prog_AR="${ncn_progname}"
10794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10795     break 2
10796   fi
10797 done
10798   done
10799 IFS=$as_save_IFS
10800
10801 fi
10802 fi
10803 AR=$ac_cv_prog_AR
10804 if test -n "$AR"; then
10805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10806 $as_echo "$AR" >&6; }
10807 else
10808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809 $as_echo "no" >&6; }
10810 fi
10811
10812
10813   fi
10814   test -n "$ac_cv_prog_AR" && break
10815 done
10816
10817 if test -z "$ac_cv_prog_AR" ; then
10818   set dummy ar
10819   if test $build = $host ; then
10820     AR="$2"
10821   else
10822     AR="${ncn_tool_prefix}$2"
10823   fi
10824 fi
10825
10826
10827
10828 if test -n "$AS"; then
10829   ac_cv_prog_AS=$AS
10830 elif test -n "$ac_cv_prog_AS"; then
10831   AS=$ac_cv_prog_AS
10832 fi
10833
10834 if test -n "$ac_cv_prog_AS"; then
10835   for ncn_progname in as; do
10836     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10837 set dummy ${ncn_progname}; ac_word=$2
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10839 $as_echo_n "checking for $ac_word... " >&6; }
10840 if ${ac_cv_prog_AS+:} false; then :
10841   $as_echo_n "(cached) " >&6
10842 else
10843   if test -n "$AS"; then
10844   ac_cv_prog_AS="$AS" # Let the user override the test.
10845 else
10846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10847 for as_dir in $PATH
10848 do
10849   IFS=$as_save_IFS
10850   test -z "$as_dir" && as_dir=.
10851     for ac_exec_ext in '' $ac_executable_extensions; do
10852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10853     ac_cv_prog_AS="${ncn_progname}"
10854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10855     break 2
10856   fi
10857 done
10858   done
10859 IFS=$as_save_IFS
10860
10861 fi
10862 fi
10863 AS=$ac_cv_prog_AS
10864 if test -n "$AS"; then
10865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10866 $as_echo "$AS" >&6; }
10867 else
10868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869 $as_echo "no" >&6; }
10870 fi
10871
10872
10873   done
10874 fi
10875
10876 for ncn_progname in as; do
10877   if test -n "$ncn_tool_prefix"; then
10878     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10879 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10881 $as_echo_n "checking for $ac_word... " >&6; }
10882 if ${ac_cv_prog_AS+:} false; then :
10883   $as_echo_n "(cached) " >&6
10884 else
10885   if test -n "$AS"; then
10886   ac_cv_prog_AS="$AS" # Let the user override the test.
10887 else
10888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889 for as_dir in $PATH
10890 do
10891   IFS=$as_save_IFS
10892   test -z "$as_dir" && as_dir=.
10893     for ac_exec_ext in '' $ac_executable_extensions; do
10894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10895     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10897     break 2
10898   fi
10899 done
10900   done
10901 IFS=$as_save_IFS
10902
10903 fi
10904 fi
10905 AS=$ac_cv_prog_AS
10906 if test -n "$AS"; then
10907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10908 $as_echo "$AS" >&6; }
10909 else
10910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10911 $as_echo "no" >&6; }
10912 fi
10913
10914
10915   fi
10916   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10917     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10918 set dummy ${ncn_progname}; ac_word=$2
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920 $as_echo_n "checking for $ac_word... " >&6; }
10921 if ${ac_cv_prog_AS+:} false; then :
10922   $as_echo_n "(cached) " >&6
10923 else
10924   if test -n "$AS"; then
10925   ac_cv_prog_AS="$AS" # Let the user override the test.
10926 else
10927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928 for as_dir in $PATH
10929 do
10930   IFS=$as_save_IFS
10931   test -z "$as_dir" && as_dir=.
10932     for ac_exec_ext in '' $ac_executable_extensions; do
10933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10934     ac_cv_prog_AS="${ncn_progname}"
10935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10936     break 2
10937   fi
10938 done
10939   done
10940 IFS=$as_save_IFS
10941
10942 fi
10943 fi
10944 AS=$ac_cv_prog_AS
10945 if test -n "$AS"; then
10946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10947 $as_echo "$AS" >&6; }
10948 else
10949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950 $as_echo "no" >&6; }
10951 fi
10952
10953
10954   fi
10955   test -n "$ac_cv_prog_AS" && break
10956 done
10957
10958 if test -z "$ac_cv_prog_AS" ; then
10959   set dummy as
10960   if test $build = $host ; then
10961     AS="$2"
10962   else
10963     AS="${ncn_tool_prefix}$2"
10964   fi
10965 fi
10966
10967
10968
10969 if test -n "$DLLTOOL"; then
10970   ac_cv_prog_DLLTOOL=$DLLTOOL
10971 elif test -n "$ac_cv_prog_DLLTOOL"; then
10972   DLLTOOL=$ac_cv_prog_DLLTOOL
10973 fi
10974
10975 if test -n "$ac_cv_prog_DLLTOOL"; then
10976   for ncn_progname in dlltool; do
10977     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10978 set dummy ${ncn_progname}; ac_word=$2
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10980 $as_echo_n "checking for $ac_word... " >&6; }
10981 if ${ac_cv_prog_DLLTOOL+:} false; then :
10982   $as_echo_n "(cached) " >&6
10983 else
10984   if test -n "$DLLTOOL"; then
10985   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10986 else
10987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10988 for as_dir in $PATH
10989 do
10990   IFS=$as_save_IFS
10991   test -z "$as_dir" && as_dir=.
10992     for ac_exec_ext in '' $ac_executable_extensions; do
10993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10994     ac_cv_prog_DLLTOOL="${ncn_progname}"
10995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10996     break 2
10997   fi
10998 done
10999   done
11000 IFS=$as_save_IFS
11001
11002 fi
11003 fi
11004 DLLTOOL=$ac_cv_prog_DLLTOOL
11005 if test -n "$DLLTOOL"; then
11006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11007 $as_echo "$DLLTOOL" >&6; }
11008 else
11009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010 $as_echo "no" >&6; }
11011 fi
11012
11013
11014   done
11015 fi
11016
11017 for ncn_progname in dlltool; do
11018   if test -n "$ncn_tool_prefix"; then
11019     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11020 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11022 $as_echo_n "checking for $ac_word... " >&6; }
11023 if ${ac_cv_prog_DLLTOOL+:} false; then :
11024   $as_echo_n "(cached) " >&6
11025 else
11026   if test -n "$DLLTOOL"; then
11027   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11028 else
11029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030 for as_dir in $PATH
11031 do
11032   IFS=$as_save_IFS
11033   test -z "$as_dir" && as_dir=.
11034     for ac_exec_ext in '' $ac_executable_extensions; do
11035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11036     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038     break 2
11039   fi
11040 done
11041   done
11042 IFS=$as_save_IFS
11043
11044 fi
11045 fi
11046 DLLTOOL=$ac_cv_prog_DLLTOOL
11047 if test -n "$DLLTOOL"; then
11048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11049 $as_echo "$DLLTOOL" >&6; }
11050 else
11051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11053 fi
11054
11055
11056   fi
11057   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11058     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11059 set dummy ${ncn_progname}; ac_word=$2
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11061 $as_echo_n "checking for $ac_word... " >&6; }
11062 if ${ac_cv_prog_DLLTOOL+:} false; then :
11063   $as_echo_n "(cached) " >&6
11064 else
11065   if test -n "$DLLTOOL"; then
11066   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11067 else
11068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11069 for as_dir in $PATH
11070 do
11071   IFS=$as_save_IFS
11072   test -z "$as_dir" && as_dir=.
11073     for ac_exec_ext in '' $ac_executable_extensions; do
11074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11075     ac_cv_prog_DLLTOOL="${ncn_progname}"
11076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11077     break 2
11078   fi
11079 done
11080   done
11081 IFS=$as_save_IFS
11082
11083 fi
11084 fi
11085 DLLTOOL=$ac_cv_prog_DLLTOOL
11086 if test -n "$DLLTOOL"; then
11087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11088 $as_echo "$DLLTOOL" >&6; }
11089 else
11090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091 $as_echo "no" >&6; }
11092 fi
11093
11094
11095   fi
11096   test -n "$ac_cv_prog_DLLTOOL" && break
11097 done
11098
11099 if test -z "$ac_cv_prog_DLLTOOL" ; then
11100   set dummy dlltool
11101   if test $build = $host ; then
11102     DLLTOOL="$2"
11103   else
11104     DLLTOOL="${ncn_tool_prefix}$2"
11105   fi
11106 fi
11107
11108
11109
11110 if test -n "$DSYMUTIL"; then
11111   ac_cv_prog_DSYMUTIL=$DSYMUTIL
11112 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11113   DSYMUTIL=$ac_cv_prog_DSYMUTIL
11114 fi
11115
11116 if test -n "$ac_cv_prog_DSYMUTIL"; then
11117   for ncn_progname in dsymutil; do
11118     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11119 set dummy ${ncn_progname}; ac_word=$2
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11121 $as_echo_n "checking for $ac_word... " >&6; }
11122 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11123   $as_echo_n "(cached) " >&6
11124 else
11125   if test -n "$DSYMUTIL"; then
11126   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11127 else
11128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129 for as_dir in $PATH
11130 do
11131   IFS=$as_save_IFS
11132   test -z "$as_dir" && as_dir=.
11133     for ac_exec_ext in '' $ac_executable_extensions; do
11134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11135     ac_cv_prog_DSYMUTIL="${ncn_progname}"
11136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11137     break 2
11138   fi
11139 done
11140   done
11141 IFS=$as_save_IFS
11142
11143 fi
11144 fi
11145 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11146 if test -n "$DSYMUTIL"; then
11147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11148 $as_echo "$DSYMUTIL" >&6; }
11149 else
11150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11151 $as_echo "no" >&6; }
11152 fi
11153
11154
11155   done
11156 fi
11157
11158 for ncn_progname in dsymutil; do
11159   if test -n "$ncn_tool_prefix"; then
11160     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11161 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11163 $as_echo_n "checking for $ac_word... " >&6; }
11164 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11165   $as_echo_n "(cached) " >&6
11166 else
11167   if test -n "$DSYMUTIL"; then
11168   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11169 else
11170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11171 for as_dir in $PATH
11172 do
11173   IFS=$as_save_IFS
11174   test -z "$as_dir" && as_dir=.
11175     for ac_exec_ext in '' $ac_executable_extensions; do
11176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11177     ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11179     break 2
11180   fi
11181 done
11182   done
11183 IFS=$as_save_IFS
11184
11185 fi
11186 fi
11187 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11188 if test -n "$DSYMUTIL"; then
11189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11190 $as_echo "$DSYMUTIL" >&6; }
11191 else
11192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193 $as_echo "no" >&6; }
11194 fi
11195
11196
11197   fi
11198   if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11199     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11200 set dummy ${ncn_progname}; ac_word=$2
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11202 $as_echo_n "checking for $ac_word... " >&6; }
11203 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11204   $as_echo_n "(cached) " >&6
11205 else
11206   if test -n "$DSYMUTIL"; then
11207   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11208 else
11209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11210 for as_dir in $PATH
11211 do
11212   IFS=$as_save_IFS
11213   test -z "$as_dir" && as_dir=.
11214     for ac_exec_ext in '' $ac_executable_extensions; do
11215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11216     ac_cv_prog_DSYMUTIL="${ncn_progname}"
11217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11218     break 2
11219   fi
11220 done
11221   done
11222 IFS=$as_save_IFS
11223
11224 fi
11225 fi
11226 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11227 if test -n "$DSYMUTIL"; then
11228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11229 $as_echo "$DSYMUTIL" >&6; }
11230 else
11231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232 $as_echo "no" >&6; }
11233 fi
11234
11235
11236   fi
11237   test -n "$ac_cv_prog_DSYMUTIL" && break
11238 done
11239
11240 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11241   set dummy dsymutil
11242   if test $build = $host ; then
11243     DSYMUTIL="$2"
11244   else
11245     DSYMUTIL="${ncn_tool_prefix}$2"
11246   fi
11247 fi
11248
11249
11250
11251 if test -n "$LD"; then
11252   ac_cv_prog_LD=$LD
11253 elif test -n "$ac_cv_prog_LD"; then
11254   LD=$ac_cv_prog_LD
11255 fi
11256
11257 if test -n "$ac_cv_prog_LD"; then
11258   for ncn_progname in ld; do
11259     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11260 set dummy ${ncn_progname}; ac_word=$2
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11262 $as_echo_n "checking for $ac_word... " >&6; }
11263 if ${ac_cv_prog_LD+:} false; then :
11264   $as_echo_n "(cached) " >&6
11265 else
11266   if test -n "$LD"; then
11267   ac_cv_prog_LD="$LD" # Let the user override the test.
11268 else
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11271 do
11272   IFS=$as_save_IFS
11273   test -z "$as_dir" && as_dir=.
11274     for ac_exec_ext in '' $ac_executable_extensions; do
11275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11276     ac_cv_prog_LD="${ncn_progname}"
11277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11278     break 2
11279   fi
11280 done
11281   done
11282 IFS=$as_save_IFS
11283
11284 fi
11285 fi
11286 LD=$ac_cv_prog_LD
11287 if test -n "$LD"; then
11288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11289 $as_echo "$LD" >&6; }
11290 else
11291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11292 $as_echo "no" >&6; }
11293 fi
11294
11295
11296   done
11297 fi
11298
11299 for ncn_progname in ld; do
11300   if test -n "$ncn_tool_prefix"; then
11301     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11302 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11304 $as_echo_n "checking for $ac_word... " >&6; }
11305 if ${ac_cv_prog_LD+:} false; then :
11306   $as_echo_n "(cached) " >&6
11307 else
11308   if test -n "$LD"; then
11309   ac_cv_prog_LD="$LD" # Let the user override the test.
11310 else
11311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312 for as_dir in $PATH
11313 do
11314   IFS=$as_save_IFS
11315   test -z "$as_dir" && as_dir=.
11316     for ac_exec_ext in '' $ac_executable_extensions; do
11317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11318     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11320     break 2
11321   fi
11322 done
11323   done
11324 IFS=$as_save_IFS
11325
11326 fi
11327 fi
11328 LD=$ac_cv_prog_LD
11329 if test -n "$LD"; then
11330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11331 $as_echo "$LD" >&6; }
11332 else
11333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11334 $as_echo "no" >&6; }
11335 fi
11336
11337
11338   fi
11339   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11340     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11341 set dummy ${ncn_progname}; ac_word=$2
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11343 $as_echo_n "checking for $ac_word... " >&6; }
11344 if ${ac_cv_prog_LD+:} false; then :
11345   $as_echo_n "(cached) " >&6
11346 else
11347   if test -n "$LD"; then
11348   ac_cv_prog_LD="$LD" # Let the user override the test.
11349 else
11350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351 for as_dir in $PATH
11352 do
11353   IFS=$as_save_IFS
11354   test -z "$as_dir" && as_dir=.
11355     for ac_exec_ext in '' $ac_executable_extensions; do
11356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11357     ac_cv_prog_LD="${ncn_progname}"
11358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11359     break 2
11360   fi
11361 done
11362   done
11363 IFS=$as_save_IFS
11364
11365 fi
11366 fi
11367 LD=$ac_cv_prog_LD
11368 if test -n "$LD"; then
11369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11370 $as_echo "$LD" >&6; }
11371 else
11372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373 $as_echo "no" >&6; }
11374 fi
11375
11376
11377   fi
11378   test -n "$ac_cv_prog_LD" && break
11379 done
11380
11381 if test -z "$ac_cv_prog_LD" ; then
11382   set dummy ld
11383   if test $build = $host ; then
11384     LD="$2"
11385   else
11386     LD="${ncn_tool_prefix}$2"
11387   fi
11388 fi
11389
11390
11391
11392 if test -n "$LIPO"; then
11393   ac_cv_prog_LIPO=$LIPO
11394 elif test -n "$ac_cv_prog_LIPO"; then
11395   LIPO=$ac_cv_prog_LIPO
11396 fi
11397
11398 if test -n "$ac_cv_prog_LIPO"; then
11399   for ncn_progname in lipo; do
11400     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11401 set dummy ${ncn_progname}; ac_word=$2
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11403 $as_echo_n "checking for $ac_word... " >&6; }
11404 if ${ac_cv_prog_LIPO+:} false; then :
11405   $as_echo_n "(cached) " >&6
11406 else
11407   if test -n "$LIPO"; then
11408   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11409 else
11410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11411 for as_dir in $PATH
11412 do
11413   IFS=$as_save_IFS
11414   test -z "$as_dir" && as_dir=.
11415     for ac_exec_ext in '' $ac_executable_extensions; do
11416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11417     ac_cv_prog_LIPO="${ncn_progname}"
11418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11419     break 2
11420   fi
11421 done
11422   done
11423 IFS=$as_save_IFS
11424
11425 fi
11426 fi
11427 LIPO=$ac_cv_prog_LIPO
11428 if test -n "$LIPO"; then
11429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11430 $as_echo "$LIPO" >&6; }
11431 else
11432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433 $as_echo "no" >&6; }
11434 fi
11435
11436
11437   done
11438 fi
11439
11440 for ncn_progname in lipo; do
11441   if test -n "$ncn_tool_prefix"; then
11442     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11443 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11445 $as_echo_n "checking for $ac_word... " >&6; }
11446 if ${ac_cv_prog_LIPO+:} false; then :
11447   $as_echo_n "(cached) " >&6
11448 else
11449   if test -n "$LIPO"; then
11450   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11451 else
11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453 for as_dir in $PATH
11454 do
11455   IFS=$as_save_IFS
11456   test -z "$as_dir" && as_dir=.
11457     for ac_exec_ext in '' $ac_executable_extensions; do
11458   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11459     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11461     break 2
11462   fi
11463 done
11464   done
11465 IFS=$as_save_IFS
11466
11467 fi
11468 fi
11469 LIPO=$ac_cv_prog_LIPO
11470 if test -n "$LIPO"; then
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11472 $as_echo "$LIPO" >&6; }
11473 else
11474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11475 $as_echo "no" >&6; }
11476 fi
11477
11478
11479   fi
11480   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11481     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11482 set dummy ${ncn_progname}; ac_word=$2
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11484 $as_echo_n "checking for $ac_word... " >&6; }
11485 if ${ac_cv_prog_LIPO+:} false; then :
11486   $as_echo_n "(cached) " >&6
11487 else
11488   if test -n "$LIPO"; then
11489   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11490 else
11491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492 for as_dir in $PATH
11493 do
11494   IFS=$as_save_IFS
11495   test -z "$as_dir" && as_dir=.
11496     for ac_exec_ext in '' $ac_executable_extensions; do
11497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11498     ac_cv_prog_LIPO="${ncn_progname}"
11499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11500     break 2
11501   fi
11502 done
11503   done
11504 IFS=$as_save_IFS
11505
11506 fi
11507 fi
11508 LIPO=$ac_cv_prog_LIPO
11509 if test -n "$LIPO"; then
11510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11511 $as_echo "$LIPO" >&6; }
11512 else
11513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11514 $as_echo "no" >&6; }
11515 fi
11516
11517
11518   fi
11519   test -n "$ac_cv_prog_LIPO" && break
11520 done
11521
11522 if test -z "$ac_cv_prog_LIPO" ; then
11523   set dummy lipo
11524   if test $build = $host ; then
11525     LIPO="$2"
11526   else
11527     LIPO="${ncn_tool_prefix}$2"
11528   fi
11529 fi
11530
11531
11532
11533 if test -n "$NM"; then
11534   ac_cv_prog_NM=$NM
11535 elif test -n "$ac_cv_prog_NM"; then
11536   NM=$ac_cv_prog_NM
11537 fi
11538
11539 if test -n "$ac_cv_prog_NM"; then
11540   for ncn_progname in nm; do
11541     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11542 set dummy ${ncn_progname}; ac_word=$2
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544 $as_echo_n "checking for $ac_word... " >&6; }
11545 if ${ac_cv_prog_NM+:} false; then :
11546   $as_echo_n "(cached) " >&6
11547 else
11548   if test -n "$NM"; then
11549   ac_cv_prog_NM="$NM" # Let the user override the test.
11550 else
11551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552 for as_dir in $PATH
11553 do
11554   IFS=$as_save_IFS
11555   test -z "$as_dir" && as_dir=.
11556     for ac_exec_ext in '' $ac_executable_extensions; do
11557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11558     ac_cv_prog_NM="${ncn_progname}"
11559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11560     break 2
11561   fi
11562 done
11563   done
11564 IFS=$as_save_IFS
11565
11566 fi
11567 fi
11568 NM=$ac_cv_prog_NM
11569 if test -n "$NM"; then
11570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11571 $as_echo "$NM" >&6; }
11572 else
11573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574 $as_echo "no" >&6; }
11575 fi
11576
11577
11578   done
11579 fi
11580
11581 for ncn_progname in nm; do
11582   if test -n "$ncn_tool_prefix"; then
11583     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11584 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11586 $as_echo_n "checking for $ac_word... " >&6; }
11587 if ${ac_cv_prog_NM+:} false; then :
11588   $as_echo_n "(cached) " >&6
11589 else
11590   if test -n "$NM"; then
11591   ac_cv_prog_NM="$NM" # Let the user override the test.
11592 else
11593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11594 for as_dir in $PATH
11595 do
11596   IFS=$as_save_IFS
11597   test -z "$as_dir" && as_dir=.
11598     for ac_exec_ext in '' $ac_executable_extensions; do
11599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11600     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11602     break 2
11603   fi
11604 done
11605   done
11606 IFS=$as_save_IFS
11607
11608 fi
11609 fi
11610 NM=$ac_cv_prog_NM
11611 if test -n "$NM"; then
11612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11613 $as_echo "$NM" >&6; }
11614 else
11615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616 $as_echo "no" >&6; }
11617 fi
11618
11619
11620   fi
11621   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11622     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11623 set dummy ${ncn_progname}; ac_word=$2
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625 $as_echo_n "checking for $ac_word... " >&6; }
11626 if ${ac_cv_prog_NM+:} false; then :
11627   $as_echo_n "(cached) " >&6
11628 else
11629   if test -n "$NM"; then
11630   ac_cv_prog_NM="$NM" # Let the user override the test.
11631 else
11632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
11634 do
11635   IFS=$as_save_IFS
11636   test -z "$as_dir" && as_dir=.
11637     for ac_exec_ext in '' $ac_executable_extensions; do
11638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11639     ac_cv_prog_NM="${ncn_progname}"
11640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11641     break 2
11642   fi
11643 done
11644   done
11645 IFS=$as_save_IFS
11646
11647 fi
11648 fi
11649 NM=$ac_cv_prog_NM
11650 if test -n "$NM"; then
11651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11652 $as_echo "$NM" >&6; }
11653 else
11654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11656 fi
11657
11658
11659   fi
11660   test -n "$ac_cv_prog_NM" && break
11661 done
11662
11663 if test -z "$ac_cv_prog_NM" ; then
11664   set dummy nm
11665   if test $build = $host ; then
11666     NM="$2"
11667   else
11668     NM="${ncn_tool_prefix}$2"
11669   fi
11670 fi
11671
11672
11673
11674 if test -n "$RANLIB"; then
11675   ac_cv_prog_RANLIB=$RANLIB
11676 elif test -n "$ac_cv_prog_RANLIB"; then
11677   RANLIB=$ac_cv_prog_RANLIB
11678 fi
11679
11680 if test -n "$ac_cv_prog_RANLIB"; then
11681   for ncn_progname in ranlib; do
11682     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11683 set dummy ${ncn_progname}; ac_word=$2
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11685 $as_echo_n "checking for $ac_word... " >&6; }
11686 if ${ac_cv_prog_RANLIB+:} false; then :
11687   $as_echo_n "(cached) " >&6
11688 else
11689   if test -n "$RANLIB"; then
11690   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11691 else
11692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693 for as_dir in $PATH
11694 do
11695   IFS=$as_save_IFS
11696   test -z "$as_dir" && as_dir=.
11697     for ac_exec_ext in '' $ac_executable_extensions; do
11698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11699     ac_cv_prog_RANLIB="${ncn_progname}"
11700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11701     break 2
11702   fi
11703 done
11704   done
11705 IFS=$as_save_IFS
11706
11707 fi
11708 fi
11709 RANLIB=$ac_cv_prog_RANLIB
11710 if test -n "$RANLIB"; then
11711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11712 $as_echo "$RANLIB" >&6; }
11713 else
11714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; }
11716 fi
11717
11718
11719   done
11720 fi
11721
11722 for ncn_progname in ranlib; do
11723   if test -n "$ncn_tool_prefix"; then
11724     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11725 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11727 $as_echo_n "checking for $ac_word... " >&6; }
11728 if ${ac_cv_prog_RANLIB+:} false; then :
11729   $as_echo_n "(cached) " >&6
11730 else
11731   if test -n "$RANLIB"; then
11732   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11733 else
11734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11735 for as_dir in $PATH
11736 do
11737   IFS=$as_save_IFS
11738   test -z "$as_dir" && as_dir=.
11739     for ac_exec_ext in '' $ac_executable_extensions; do
11740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11741     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11743     break 2
11744   fi
11745 done
11746   done
11747 IFS=$as_save_IFS
11748
11749 fi
11750 fi
11751 RANLIB=$ac_cv_prog_RANLIB
11752 if test -n "$RANLIB"; then
11753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11754 $as_echo "$RANLIB" >&6; }
11755 else
11756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11758 fi
11759
11760
11761   fi
11762   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11763     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11764 set dummy ${ncn_progname}; ac_word=$2
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 $as_echo_n "checking for $ac_word... " >&6; }
11767 if ${ac_cv_prog_RANLIB+:} false; then :
11768   $as_echo_n "(cached) " >&6
11769 else
11770   if test -n "$RANLIB"; then
11771   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11772 else
11773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774 for as_dir in $PATH
11775 do
11776   IFS=$as_save_IFS
11777   test -z "$as_dir" && as_dir=.
11778     for ac_exec_ext in '' $ac_executable_extensions; do
11779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11780     ac_cv_prog_RANLIB="${ncn_progname}"
11781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11782     break 2
11783   fi
11784 done
11785   done
11786 IFS=$as_save_IFS
11787
11788 fi
11789 fi
11790 RANLIB=$ac_cv_prog_RANLIB
11791 if test -n "$RANLIB"; then
11792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11793 $as_echo "$RANLIB" >&6; }
11794 else
11795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11797 fi
11798
11799
11800   fi
11801   test -n "$ac_cv_prog_RANLIB" && break
11802 done
11803
11804 if test -z "$ac_cv_prog_RANLIB" ; then
11805   RANLIB="true"
11806 fi
11807
11808
11809
11810 if test -n "$STRIP"; then
11811   ac_cv_prog_STRIP=$STRIP
11812 elif test -n "$ac_cv_prog_STRIP"; then
11813   STRIP=$ac_cv_prog_STRIP
11814 fi
11815
11816 if test -n "$ac_cv_prog_STRIP"; then
11817   for ncn_progname in strip; do
11818     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11819 set dummy ${ncn_progname}; ac_word=$2
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821 $as_echo_n "checking for $ac_word... " >&6; }
11822 if ${ac_cv_prog_STRIP+:} false; then :
11823   $as_echo_n "(cached) " >&6
11824 else
11825   if test -n "$STRIP"; then
11826   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11827 else
11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11830 do
11831   IFS=$as_save_IFS
11832   test -z "$as_dir" && as_dir=.
11833     for ac_exec_ext in '' $ac_executable_extensions; do
11834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11835     ac_cv_prog_STRIP="${ncn_progname}"
11836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837     break 2
11838   fi
11839 done
11840   done
11841 IFS=$as_save_IFS
11842
11843 fi
11844 fi
11845 STRIP=$ac_cv_prog_STRIP
11846 if test -n "$STRIP"; then
11847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11848 $as_echo "$STRIP" >&6; }
11849 else
11850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11852 fi
11853
11854
11855   done
11856 fi
11857
11858 for ncn_progname in strip; do
11859   if test -n "$ncn_tool_prefix"; then
11860     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11861 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863 $as_echo_n "checking for $ac_word... " >&6; }
11864 if ${ac_cv_prog_STRIP+:} false; then :
11865   $as_echo_n "(cached) " >&6
11866 else
11867   if test -n "$STRIP"; then
11868   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11869 else
11870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871 for as_dir in $PATH
11872 do
11873   IFS=$as_save_IFS
11874   test -z "$as_dir" && as_dir=.
11875     for ac_exec_ext in '' $ac_executable_extensions; do
11876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11877     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11879     break 2
11880   fi
11881 done
11882   done
11883 IFS=$as_save_IFS
11884
11885 fi
11886 fi
11887 STRIP=$ac_cv_prog_STRIP
11888 if test -n "$STRIP"; then
11889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11890 $as_echo "$STRIP" >&6; }
11891 else
11892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893 $as_echo "no" >&6; }
11894 fi
11895
11896
11897   fi
11898   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11899     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11900 set dummy ${ncn_progname}; ac_word=$2
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902 $as_echo_n "checking for $ac_word... " >&6; }
11903 if ${ac_cv_prog_STRIP+:} false; then :
11904   $as_echo_n "(cached) " >&6
11905 else
11906   if test -n "$STRIP"; then
11907   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11908 else
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH
11911 do
11912   IFS=$as_save_IFS
11913   test -z "$as_dir" && as_dir=.
11914     for ac_exec_ext in '' $ac_executable_extensions; do
11915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11916     ac_cv_prog_STRIP="${ncn_progname}"
11917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11918     break 2
11919   fi
11920 done
11921   done
11922 IFS=$as_save_IFS
11923
11924 fi
11925 fi
11926 STRIP=$ac_cv_prog_STRIP
11927 if test -n "$STRIP"; then
11928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11929 $as_echo "$STRIP" >&6; }
11930 else
11931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932 $as_echo "no" >&6; }
11933 fi
11934
11935
11936   fi
11937   test -n "$ac_cv_prog_STRIP" && break
11938 done
11939
11940 if test -z "$ac_cv_prog_STRIP" ; then
11941   STRIP="true"
11942 fi
11943
11944
11945
11946 if test -n "$WINDRES"; then
11947   ac_cv_prog_WINDRES=$WINDRES
11948 elif test -n "$ac_cv_prog_WINDRES"; then
11949   WINDRES=$ac_cv_prog_WINDRES
11950 fi
11951
11952 if test -n "$ac_cv_prog_WINDRES"; then
11953   for ncn_progname in windres; do
11954     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11955 set dummy ${ncn_progname}; ac_word=$2
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11957 $as_echo_n "checking for $ac_word... " >&6; }
11958 if ${ac_cv_prog_WINDRES+:} false; then :
11959   $as_echo_n "(cached) " >&6
11960 else
11961   if test -n "$WINDRES"; then
11962   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11963 else
11964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11965 for as_dir in $PATH
11966 do
11967   IFS=$as_save_IFS
11968   test -z "$as_dir" && as_dir=.
11969     for ac_exec_ext in '' $ac_executable_extensions; do
11970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11971     ac_cv_prog_WINDRES="${ncn_progname}"
11972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11973     break 2
11974   fi
11975 done
11976   done
11977 IFS=$as_save_IFS
11978
11979 fi
11980 fi
11981 WINDRES=$ac_cv_prog_WINDRES
11982 if test -n "$WINDRES"; then
11983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11984 $as_echo "$WINDRES" >&6; }
11985 else
11986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; }
11988 fi
11989
11990
11991   done
11992 fi
11993
11994 for ncn_progname in windres; do
11995   if test -n "$ncn_tool_prefix"; then
11996     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11997 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999 $as_echo_n "checking for $ac_word... " >&6; }
12000 if ${ac_cv_prog_WINDRES+:} false; then :
12001   $as_echo_n "(cached) " >&6
12002 else
12003   if test -n "$WINDRES"; then
12004   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12005 else
12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007 for as_dir in $PATH
12008 do
12009   IFS=$as_save_IFS
12010   test -z "$as_dir" && as_dir=.
12011     for ac_exec_ext in '' $ac_executable_extensions; do
12012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12013     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12015     break 2
12016   fi
12017 done
12018   done
12019 IFS=$as_save_IFS
12020
12021 fi
12022 fi
12023 WINDRES=$ac_cv_prog_WINDRES
12024 if test -n "$WINDRES"; then
12025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12026 $as_echo "$WINDRES" >&6; }
12027 else
12028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029 $as_echo "no" >&6; }
12030 fi
12031
12032
12033   fi
12034   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12035     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12036 set dummy ${ncn_progname}; ac_word=$2
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12038 $as_echo_n "checking for $ac_word... " >&6; }
12039 if ${ac_cv_prog_WINDRES+:} false; then :
12040   $as_echo_n "(cached) " >&6
12041 else
12042   if test -n "$WINDRES"; then
12043   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12044 else
12045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046 for as_dir in $PATH
12047 do
12048   IFS=$as_save_IFS
12049   test -z "$as_dir" && as_dir=.
12050     for ac_exec_ext in '' $ac_executable_extensions; do
12051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12052     ac_cv_prog_WINDRES="${ncn_progname}"
12053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12054     break 2
12055   fi
12056 done
12057   done
12058 IFS=$as_save_IFS
12059
12060 fi
12061 fi
12062 WINDRES=$ac_cv_prog_WINDRES
12063 if test -n "$WINDRES"; then
12064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12065 $as_echo "$WINDRES" >&6; }
12066 else
12067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068 $as_echo "no" >&6; }
12069 fi
12070
12071
12072   fi
12073   test -n "$ac_cv_prog_WINDRES" && break
12074 done
12075
12076 if test -z "$ac_cv_prog_WINDRES" ; then
12077   set dummy windres
12078   if test $build = $host ; then
12079     WINDRES="$2"
12080   else
12081     WINDRES="${ncn_tool_prefix}$2"
12082   fi
12083 fi
12084
12085
12086
12087 if test -n "$WINDMC"; then
12088   ac_cv_prog_WINDMC=$WINDMC
12089 elif test -n "$ac_cv_prog_WINDMC"; then
12090   WINDMC=$ac_cv_prog_WINDMC
12091 fi
12092
12093 if test -n "$ac_cv_prog_WINDMC"; then
12094   for ncn_progname in windmc; do
12095     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12096 set dummy ${ncn_progname}; ac_word=$2
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12098 $as_echo_n "checking for $ac_word... " >&6; }
12099 if ${ac_cv_prog_WINDMC+:} false; then :
12100   $as_echo_n "(cached) " >&6
12101 else
12102   if test -n "$WINDMC"; then
12103   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12104 else
12105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106 for as_dir in $PATH
12107 do
12108   IFS=$as_save_IFS
12109   test -z "$as_dir" && as_dir=.
12110     for ac_exec_ext in '' $ac_executable_extensions; do
12111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12112     ac_cv_prog_WINDMC="${ncn_progname}"
12113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12114     break 2
12115   fi
12116 done
12117   done
12118 IFS=$as_save_IFS
12119
12120 fi
12121 fi
12122 WINDMC=$ac_cv_prog_WINDMC
12123 if test -n "$WINDMC"; then
12124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12125 $as_echo "$WINDMC" >&6; }
12126 else
12127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128 $as_echo "no" >&6; }
12129 fi
12130
12131
12132   done
12133 fi
12134
12135 for ncn_progname in windmc; do
12136   if test -n "$ncn_tool_prefix"; then
12137     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12138 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140 $as_echo_n "checking for $ac_word... " >&6; }
12141 if ${ac_cv_prog_WINDMC+:} false; then :
12142   $as_echo_n "(cached) " >&6
12143 else
12144   if test -n "$WINDMC"; then
12145   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12146 else
12147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148 for as_dir in $PATH
12149 do
12150   IFS=$as_save_IFS
12151   test -z "$as_dir" && as_dir=.
12152     for ac_exec_ext in '' $ac_executable_extensions; do
12153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12154     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12156     break 2
12157   fi
12158 done
12159   done
12160 IFS=$as_save_IFS
12161
12162 fi
12163 fi
12164 WINDMC=$ac_cv_prog_WINDMC
12165 if test -n "$WINDMC"; then
12166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12167 $as_echo "$WINDMC" >&6; }
12168 else
12169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170 $as_echo "no" >&6; }
12171 fi
12172
12173
12174   fi
12175   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12176     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12177 set dummy ${ncn_progname}; ac_word=$2
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179 $as_echo_n "checking for $ac_word... " >&6; }
12180 if ${ac_cv_prog_WINDMC+:} false; then :
12181   $as_echo_n "(cached) " >&6
12182 else
12183   if test -n "$WINDMC"; then
12184   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12185 else
12186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187 for as_dir in $PATH
12188 do
12189   IFS=$as_save_IFS
12190   test -z "$as_dir" && as_dir=.
12191     for ac_exec_ext in '' $ac_executable_extensions; do
12192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12193     ac_cv_prog_WINDMC="${ncn_progname}"
12194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12195     break 2
12196   fi
12197 done
12198   done
12199 IFS=$as_save_IFS
12200
12201 fi
12202 fi
12203 WINDMC=$ac_cv_prog_WINDMC
12204 if test -n "$WINDMC"; then
12205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12206 $as_echo "$WINDMC" >&6; }
12207 else
12208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 $as_echo "no" >&6; }
12210 fi
12211
12212
12213   fi
12214   test -n "$ac_cv_prog_WINDMC" && break
12215 done
12216
12217 if test -z "$ac_cv_prog_WINDMC" ; then
12218   set dummy windmc
12219   if test $build = $host ; then
12220     WINDMC="$2"
12221   else
12222     WINDMC="${ncn_tool_prefix}$2"
12223   fi
12224 fi
12225
12226
12227
12228 if test -n "$OBJCOPY"; then
12229   ac_cv_prog_OBJCOPY=$OBJCOPY
12230 elif test -n "$ac_cv_prog_OBJCOPY"; then
12231   OBJCOPY=$ac_cv_prog_OBJCOPY
12232 fi
12233
12234 if test -n "$ac_cv_prog_OBJCOPY"; then
12235   for ncn_progname in objcopy; do
12236     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12237 set dummy ${ncn_progname}; ac_word=$2
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239 $as_echo_n "checking for $ac_word... " >&6; }
12240 if ${ac_cv_prog_OBJCOPY+:} false; then :
12241   $as_echo_n "(cached) " >&6
12242 else
12243   if test -n "$OBJCOPY"; then
12244   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12245 else
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12248 do
12249   IFS=$as_save_IFS
12250   test -z "$as_dir" && as_dir=.
12251     for ac_exec_ext in '' $ac_executable_extensions; do
12252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253     ac_cv_prog_OBJCOPY="${ncn_progname}"
12254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12255     break 2
12256   fi
12257 done
12258   done
12259 IFS=$as_save_IFS
12260
12261 fi
12262 fi
12263 OBJCOPY=$ac_cv_prog_OBJCOPY
12264 if test -n "$OBJCOPY"; then
12265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12266 $as_echo "$OBJCOPY" >&6; }
12267 else
12268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269 $as_echo "no" >&6; }
12270 fi
12271
12272
12273   done
12274 fi
12275
12276 for ncn_progname in objcopy; do
12277   if test -n "$ncn_tool_prefix"; then
12278     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12279 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281 $as_echo_n "checking for $ac_word... " >&6; }
12282 if ${ac_cv_prog_OBJCOPY+:} false; then :
12283   $as_echo_n "(cached) " >&6
12284 else
12285   if test -n "$OBJCOPY"; then
12286   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12287 else
12288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289 for as_dir in $PATH
12290 do
12291   IFS=$as_save_IFS
12292   test -z "$as_dir" && as_dir=.
12293     for ac_exec_ext in '' $ac_executable_extensions; do
12294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12295     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12297     break 2
12298   fi
12299 done
12300   done
12301 IFS=$as_save_IFS
12302
12303 fi
12304 fi
12305 OBJCOPY=$ac_cv_prog_OBJCOPY
12306 if test -n "$OBJCOPY"; then
12307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12308 $as_echo "$OBJCOPY" >&6; }
12309 else
12310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12312 fi
12313
12314
12315   fi
12316   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12317     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12318 set dummy ${ncn_progname}; ac_word=$2
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12320 $as_echo_n "checking for $ac_word... " >&6; }
12321 if ${ac_cv_prog_OBJCOPY+:} false; then :
12322   $as_echo_n "(cached) " >&6
12323 else
12324   if test -n "$OBJCOPY"; then
12325   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12326 else
12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328 for as_dir in $PATH
12329 do
12330   IFS=$as_save_IFS
12331   test -z "$as_dir" && as_dir=.
12332     for ac_exec_ext in '' $ac_executable_extensions; do
12333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12334     ac_cv_prog_OBJCOPY="${ncn_progname}"
12335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12336     break 2
12337   fi
12338 done
12339   done
12340 IFS=$as_save_IFS
12341
12342 fi
12343 fi
12344 OBJCOPY=$ac_cv_prog_OBJCOPY
12345 if test -n "$OBJCOPY"; then
12346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12347 $as_echo "$OBJCOPY" >&6; }
12348 else
12349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350 $as_echo "no" >&6; }
12351 fi
12352
12353
12354   fi
12355   test -n "$ac_cv_prog_OBJCOPY" && break
12356 done
12357
12358 if test -z "$ac_cv_prog_OBJCOPY" ; then
12359   set dummy objcopy
12360   if test $build = $host ; then
12361     OBJCOPY="$2"
12362   else
12363     OBJCOPY="${ncn_tool_prefix}$2"
12364   fi
12365 fi
12366
12367
12368
12369 if test -n "$OBJDUMP"; then
12370   ac_cv_prog_OBJDUMP=$OBJDUMP
12371 elif test -n "$ac_cv_prog_OBJDUMP"; then
12372   OBJDUMP=$ac_cv_prog_OBJDUMP
12373 fi
12374
12375 if test -n "$ac_cv_prog_OBJDUMP"; then
12376   for ncn_progname in objdump; do
12377     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12378 set dummy ${ncn_progname}; ac_word=$2
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12380 $as_echo_n "checking for $ac_word... " >&6; }
12381 if ${ac_cv_prog_OBJDUMP+:} false; then :
12382   $as_echo_n "(cached) " >&6
12383 else
12384   if test -n "$OBJDUMP"; then
12385   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12386 else
12387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388 for as_dir in $PATH
12389 do
12390   IFS=$as_save_IFS
12391   test -z "$as_dir" && as_dir=.
12392     for ac_exec_ext in '' $ac_executable_extensions; do
12393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12394     ac_cv_prog_OBJDUMP="${ncn_progname}"
12395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12396     break 2
12397   fi
12398 done
12399   done
12400 IFS=$as_save_IFS
12401
12402 fi
12403 fi
12404 OBJDUMP=$ac_cv_prog_OBJDUMP
12405 if test -n "$OBJDUMP"; then
12406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12407 $as_echo "$OBJDUMP" >&6; }
12408 else
12409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410 $as_echo "no" >&6; }
12411 fi
12412
12413
12414   done
12415 fi
12416
12417 for ncn_progname in objdump; do
12418   if test -n "$ncn_tool_prefix"; then
12419     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12420 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12422 $as_echo_n "checking for $ac_word... " >&6; }
12423 if ${ac_cv_prog_OBJDUMP+:} false; then :
12424   $as_echo_n "(cached) " >&6
12425 else
12426   if test -n "$OBJDUMP"; then
12427   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12428 else
12429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12430 for as_dir in $PATH
12431 do
12432   IFS=$as_save_IFS
12433   test -z "$as_dir" && as_dir=.
12434     for ac_exec_ext in '' $ac_executable_extensions; do
12435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12436     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12438     break 2
12439   fi
12440 done
12441   done
12442 IFS=$as_save_IFS
12443
12444 fi
12445 fi
12446 OBJDUMP=$ac_cv_prog_OBJDUMP
12447 if test -n "$OBJDUMP"; then
12448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12449 $as_echo "$OBJDUMP" >&6; }
12450 else
12451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452 $as_echo "no" >&6; }
12453 fi
12454
12455
12456   fi
12457   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12458     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12459 set dummy ${ncn_progname}; ac_word=$2
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12461 $as_echo_n "checking for $ac_word... " >&6; }
12462 if ${ac_cv_prog_OBJDUMP+:} false; then :
12463   $as_echo_n "(cached) " >&6
12464 else
12465   if test -n "$OBJDUMP"; then
12466   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12467 else
12468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469 for as_dir in $PATH
12470 do
12471   IFS=$as_save_IFS
12472   test -z "$as_dir" && as_dir=.
12473     for ac_exec_ext in '' $ac_executable_extensions; do
12474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12475     ac_cv_prog_OBJDUMP="${ncn_progname}"
12476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12477     break 2
12478   fi
12479 done
12480   done
12481 IFS=$as_save_IFS
12482
12483 fi
12484 fi
12485 OBJDUMP=$ac_cv_prog_OBJDUMP
12486 if test -n "$OBJDUMP"; then
12487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12488 $as_echo "$OBJDUMP" >&6; }
12489 else
12490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491 $as_echo "no" >&6; }
12492 fi
12493
12494
12495   fi
12496   test -n "$ac_cv_prog_OBJDUMP" && break
12497 done
12498
12499 if test -z "$ac_cv_prog_OBJDUMP" ; then
12500   set dummy objdump
12501   if test $build = $host ; then
12502     OBJDUMP="$2"
12503   else
12504     OBJDUMP="${ncn_tool_prefix}$2"
12505   fi
12506 fi
12507
12508
12509
12510 if test -n "$OTOOL"; then
12511   ac_cv_prog_OTOOL=$OTOOL
12512 elif test -n "$ac_cv_prog_OTOOL"; then
12513   OTOOL=$ac_cv_prog_OTOOL
12514 fi
12515
12516 if test -n "$ac_cv_prog_OTOOL"; then
12517   for ncn_progname in otool; do
12518     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12519 set dummy ${ncn_progname}; ac_word=$2
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12521 $as_echo_n "checking for $ac_word... " >&6; }
12522 if ${ac_cv_prog_OTOOL+:} false; then :
12523   $as_echo_n "(cached) " >&6
12524 else
12525   if test -n "$OTOOL"; then
12526   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12527 else
12528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12529 for as_dir in $PATH
12530 do
12531   IFS=$as_save_IFS
12532   test -z "$as_dir" && as_dir=.
12533     for ac_exec_ext in '' $ac_executable_extensions; do
12534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12535     ac_cv_prog_OTOOL="${ncn_progname}"
12536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12537     break 2
12538   fi
12539 done
12540   done
12541 IFS=$as_save_IFS
12542
12543 fi
12544 fi
12545 OTOOL=$ac_cv_prog_OTOOL
12546 if test -n "$OTOOL"; then
12547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12548 $as_echo "$OTOOL" >&6; }
12549 else
12550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551 $as_echo "no" >&6; }
12552 fi
12553
12554
12555   done
12556 fi
12557
12558 for ncn_progname in otool; do
12559   if test -n "$ncn_tool_prefix"; then
12560     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12561 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12563 $as_echo_n "checking for $ac_word... " >&6; }
12564 if ${ac_cv_prog_OTOOL+:} false; then :
12565   $as_echo_n "(cached) " >&6
12566 else
12567   if test -n "$OTOOL"; then
12568   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12569 else
12570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571 for as_dir in $PATH
12572 do
12573   IFS=$as_save_IFS
12574   test -z "$as_dir" && as_dir=.
12575     for ac_exec_ext in '' $ac_executable_extensions; do
12576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12577     ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12579     break 2
12580   fi
12581 done
12582   done
12583 IFS=$as_save_IFS
12584
12585 fi
12586 fi
12587 OTOOL=$ac_cv_prog_OTOOL
12588 if test -n "$OTOOL"; then
12589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12590 $as_echo "$OTOOL" >&6; }
12591 else
12592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593 $as_echo "no" >&6; }
12594 fi
12595
12596
12597   fi
12598   if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12599     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12600 set dummy ${ncn_progname}; ac_word=$2
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12602 $as_echo_n "checking for $ac_word... " >&6; }
12603 if ${ac_cv_prog_OTOOL+:} false; then :
12604   $as_echo_n "(cached) " >&6
12605 else
12606   if test -n "$OTOOL"; then
12607   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12608 else
12609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12610 for as_dir in $PATH
12611 do
12612   IFS=$as_save_IFS
12613   test -z "$as_dir" && as_dir=.
12614     for ac_exec_ext in '' $ac_executable_extensions; do
12615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12616     ac_cv_prog_OTOOL="${ncn_progname}"
12617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618     break 2
12619   fi
12620 done
12621   done
12622 IFS=$as_save_IFS
12623
12624 fi
12625 fi
12626 OTOOL=$ac_cv_prog_OTOOL
12627 if test -n "$OTOOL"; then
12628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12629 $as_echo "$OTOOL" >&6; }
12630 else
12631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632 $as_echo "no" >&6; }
12633 fi
12634
12635
12636   fi
12637   test -n "$ac_cv_prog_OTOOL" && break
12638 done
12639
12640 if test -z "$ac_cv_prog_OTOOL" ; then
12641   set dummy otool
12642   if test $build = $host ; then
12643     OTOOL="$2"
12644   else
12645     OTOOL="${ncn_tool_prefix}$2"
12646   fi
12647 fi
12648
12649
12650
12651 if test -n "$READELF"; then
12652   ac_cv_prog_READELF=$READELF
12653 elif test -n "$ac_cv_prog_READELF"; then
12654   READELF=$ac_cv_prog_READELF
12655 fi
12656
12657 if test -n "$ac_cv_prog_READELF"; then
12658   for ncn_progname in readelf; do
12659     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12660 set dummy ${ncn_progname}; ac_word=$2
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12662 $as_echo_n "checking for $ac_word... " >&6; }
12663 if ${ac_cv_prog_READELF+:} false; then :
12664   $as_echo_n "(cached) " >&6
12665 else
12666   if test -n "$READELF"; then
12667   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12668 else
12669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12670 for as_dir in $PATH
12671 do
12672   IFS=$as_save_IFS
12673   test -z "$as_dir" && as_dir=.
12674     for ac_exec_ext in '' $ac_executable_extensions; do
12675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12676     ac_cv_prog_READELF="${ncn_progname}"
12677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12678     break 2
12679   fi
12680 done
12681   done
12682 IFS=$as_save_IFS
12683
12684 fi
12685 fi
12686 READELF=$ac_cv_prog_READELF
12687 if test -n "$READELF"; then
12688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12689 $as_echo "$READELF" >&6; }
12690 else
12691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692 $as_echo "no" >&6; }
12693 fi
12694
12695
12696   done
12697 fi
12698
12699 for ncn_progname in readelf; do
12700   if test -n "$ncn_tool_prefix"; then
12701     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12702 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12704 $as_echo_n "checking for $ac_word... " >&6; }
12705 if ${ac_cv_prog_READELF+:} false; then :
12706   $as_echo_n "(cached) " >&6
12707 else
12708   if test -n "$READELF"; then
12709   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12710 else
12711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12712 for as_dir in $PATH
12713 do
12714   IFS=$as_save_IFS
12715   test -z "$as_dir" && as_dir=.
12716     for ac_exec_ext in '' $ac_executable_extensions; do
12717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12718     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12720     break 2
12721   fi
12722 done
12723   done
12724 IFS=$as_save_IFS
12725
12726 fi
12727 fi
12728 READELF=$ac_cv_prog_READELF
12729 if test -n "$READELF"; then
12730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12731 $as_echo "$READELF" >&6; }
12732 else
12733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 $as_echo "no" >&6; }
12735 fi
12736
12737
12738   fi
12739   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12740     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12741 set dummy ${ncn_progname}; ac_word=$2
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12743 $as_echo_n "checking for $ac_word... " >&6; }
12744 if ${ac_cv_prog_READELF+:} false; then :
12745   $as_echo_n "(cached) " >&6
12746 else
12747   if test -n "$READELF"; then
12748   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12749 else
12750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12751 for as_dir in $PATH
12752 do
12753   IFS=$as_save_IFS
12754   test -z "$as_dir" && as_dir=.
12755     for ac_exec_ext in '' $ac_executable_extensions; do
12756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12757     ac_cv_prog_READELF="${ncn_progname}"
12758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12759     break 2
12760   fi
12761 done
12762   done
12763 IFS=$as_save_IFS
12764
12765 fi
12766 fi
12767 READELF=$ac_cv_prog_READELF
12768 if test -n "$READELF"; then
12769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12770 $as_echo "$READELF" >&6; }
12771 else
12772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12773 $as_echo "no" >&6; }
12774 fi
12775
12776
12777   fi
12778   test -n "$ac_cv_prog_READELF" && break
12779 done
12780
12781 if test -z "$ac_cv_prog_READELF" ; then
12782   set dummy readelf
12783   if test $build = $host ; then
12784     READELF="$2"
12785   else
12786     READELF="${ncn_tool_prefix}$2"
12787   fi
12788 fi
12789
12790
12791
12792
12793
12794
12795
12796
12797 # Target tools.
12798
12799 # Check whether --with-build-time-tools was given.
12800 if test "${with_build_time_tools+set}" = set; then :
12801   withval=$with_build_time_tools; case x"$withval" in
12802      x/*) ;;
12803      *)
12804        with_build_time_tools=
12805        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12806 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12807        ;;
12808    esac
12809 else
12810   with_build_time_tools=
12811 fi
12812
12813
12814
12815
12816 if test -n "$CC_FOR_TARGET"; then
12817   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12818 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12819   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12820 fi
12821
12822 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12823   for ncn_progname in cc gcc; do
12824     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12825 set dummy ${ncn_progname}; ac_word=$2
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12827 $as_echo_n "checking for $ac_word... " >&6; }
12828 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12829   $as_echo_n "(cached) " >&6
12830 else
12831   if test -n "$CC_FOR_TARGET"; then
12832   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12833 else
12834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12835 for as_dir in $PATH
12836 do
12837   IFS=$as_save_IFS
12838   test -z "$as_dir" && as_dir=.
12839     for ac_exec_ext in '' $ac_executable_extensions; do
12840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12841     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12843     break 2
12844   fi
12845 done
12846   done
12847 IFS=$as_save_IFS
12848
12849 fi
12850 fi
12851 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12852 if test -n "$CC_FOR_TARGET"; then
12853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12854 $as_echo "$CC_FOR_TARGET" >&6; }
12855 else
12856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12857 $as_echo "no" >&6; }
12858 fi
12859
12860
12861   done
12862 fi
12863
12864 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12865   for ncn_progname in cc gcc; do
12866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12867 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12868     if test -x $with_build_time_tools/${ncn_progname}; then
12869       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12870       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12871 $as_echo "yes" >&6; }
12872       break
12873     else
12874       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875 $as_echo "no" >&6; }
12876     fi
12877   done
12878 fi
12879
12880 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12881   for ncn_progname in cc gcc; do
12882     if test -n "$ncn_target_tool_prefix"; then
12883       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12884 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12886 $as_echo_n "checking for $ac_word... " >&6; }
12887 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12888   $as_echo_n "(cached) " >&6
12889 else
12890   if test -n "$CC_FOR_TARGET"; then
12891   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12892 else
12893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12894 for as_dir in $PATH
12895 do
12896   IFS=$as_save_IFS
12897   test -z "$as_dir" && as_dir=.
12898     for ac_exec_ext in '' $ac_executable_extensions; do
12899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12900     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12902     break 2
12903   fi
12904 done
12905   done
12906 IFS=$as_save_IFS
12907
12908 fi
12909 fi
12910 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12911 if test -n "$CC_FOR_TARGET"; then
12912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12913 $as_echo "$CC_FOR_TARGET" >&6; }
12914 else
12915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12917 fi
12918
12919
12920     fi
12921     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12922       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12923 set dummy ${ncn_progname}; ac_word=$2
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12925 $as_echo_n "checking for $ac_word... " >&6; }
12926 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12927   $as_echo_n "(cached) " >&6
12928 else
12929   if test -n "$CC_FOR_TARGET"; then
12930   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12931 else
12932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12933 for as_dir in $PATH
12934 do
12935   IFS=$as_save_IFS
12936   test -z "$as_dir" && as_dir=.
12937     for ac_exec_ext in '' $ac_executable_extensions; do
12938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12939     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12941     break 2
12942   fi
12943 done
12944   done
12945 IFS=$as_save_IFS
12946
12947 fi
12948 fi
12949 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12950 if test -n "$CC_FOR_TARGET"; then
12951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12952 $as_echo "$CC_FOR_TARGET" >&6; }
12953 else
12954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12955 $as_echo "no" >&6; }
12956 fi
12957
12958
12959     fi
12960     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12961   done
12962 fi
12963
12964 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12965   set dummy cc gcc
12966   if test $build = $target ; then
12967     CC_FOR_TARGET="$2"
12968   else
12969     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12970   fi
12971 else
12972   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12973 fi
12974
12975
12976
12977 if test -n "$CXX_FOR_TARGET"; then
12978   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12979 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12980   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12981 fi
12982
12983 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12984   for ncn_progname in c++ g++ cxx gxx; do
12985     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12986 set dummy ${ncn_progname}; ac_word=$2
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988 $as_echo_n "checking for $ac_word... " >&6; }
12989 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12990   $as_echo_n "(cached) " >&6
12991 else
12992   if test -n "$CXX_FOR_TARGET"; then
12993   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12994 else
12995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996 for as_dir in $PATH
12997 do
12998   IFS=$as_save_IFS
12999   test -z "$as_dir" && as_dir=.
13000     for ac_exec_ext in '' $ac_executable_extensions; do
13001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13002     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13004     break 2
13005   fi
13006 done
13007   done
13008 IFS=$as_save_IFS
13009
13010 fi
13011 fi
13012 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13013 if test -n "$CXX_FOR_TARGET"; then
13014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13015 $as_echo "$CXX_FOR_TARGET" >&6; }
13016 else
13017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018 $as_echo "no" >&6; }
13019 fi
13020
13021
13022   done
13023 fi
13024
13025 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13026   for ncn_progname in c++ g++ cxx gxx; do
13027     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13028 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13029     if test -x $with_build_time_tools/${ncn_progname}; then
13030       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13031       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13032 $as_echo "yes" >&6; }
13033       break
13034     else
13035       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13036 $as_echo "no" >&6; }
13037     fi
13038   done
13039 fi
13040
13041 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13042   for ncn_progname in c++ g++ cxx gxx; do
13043     if test -n "$ncn_target_tool_prefix"; then
13044       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13045 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047 $as_echo_n "checking for $ac_word... " >&6; }
13048 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13049   $as_echo_n "(cached) " >&6
13050 else
13051   if test -n "$CXX_FOR_TARGET"; then
13052   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13053 else
13054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055 for as_dir in $PATH
13056 do
13057   IFS=$as_save_IFS
13058   test -z "$as_dir" && as_dir=.
13059     for ac_exec_ext in '' $ac_executable_extensions; do
13060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13061     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13063     break 2
13064   fi
13065 done
13066   done
13067 IFS=$as_save_IFS
13068
13069 fi
13070 fi
13071 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13072 if test -n "$CXX_FOR_TARGET"; then
13073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13074 $as_echo "$CXX_FOR_TARGET" >&6; }
13075 else
13076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077 $as_echo "no" >&6; }
13078 fi
13079
13080
13081     fi
13082     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13083       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13084 set dummy ${ncn_progname}; ac_word=$2
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13086 $as_echo_n "checking for $ac_word... " >&6; }
13087 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13088   $as_echo_n "(cached) " >&6
13089 else
13090   if test -n "$CXX_FOR_TARGET"; then
13091   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13092 else
13093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13094 for as_dir in $PATH
13095 do
13096   IFS=$as_save_IFS
13097   test -z "$as_dir" && as_dir=.
13098     for ac_exec_ext in '' $ac_executable_extensions; do
13099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13100     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13102     break 2
13103   fi
13104 done
13105   done
13106 IFS=$as_save_IFS
13107
13108 fi
13109 fi
13110 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13111 if test -n "$CXX_FOR_TARGET"; then
13112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13113 $as_echo "$CXX_FOR_TARGET" >&6; }
13114 else
13115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 $as_echo "no" >&6; }
13117 fi
13118
13119
13120     fi
13121     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13122   done
13123 fi
13124
13125 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13126   set dummy c++ g++ cxx gxx
13127   if test $build = $target ; then
13128     CXX_FOR_TARGET="$2"
13129   else
13130     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13131   fi
13132 else
13133   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13134 fi
13135
13136
13137
13138 if test -n "$GCC_FOR_TARGET"; then
13139   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13140 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13141   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13142 fi
13143
13144 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13145   for ncn_progname in gcc; do
13146     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13147 set dummy ${ncn_progname}; ac_word=$2
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13149 $as_echo_n "checking for $ac_word... " >&6; }
13150 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13151   $as_echo_n "(cached) " >&6
13152 else
13153   if test -n "$GCC_FOR_TARGET"; then
13154   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13155 else
13156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157 for as_dir in $PATH
13158 do
13159   IFS=$as_save_IFS
13160   test -z "$as_dir" && as_dir=.
13161     for ac_exec_ext in '' $ac_executable_extensions; do
13162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13163     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13165     break 2
13166   fi
13167 done
13168   done
13169 IFS=$as_save_IFS
13170
13171 fi
13172 fi
13173 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13174 if test -n "$GCC_FOR_TARGET"; then
13175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13176 $as_echo "$GCC_FOR_TARGET" >&6; }
13177 else
13178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179 $as_echo "no" >&6; }
13180 fi
13181
13182
13183   done
13184 fi
13185
13186 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13187   for ncn_progname in gcc; do
13188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13189 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13190     if test -x $with_build_time_tools/${ncn_progname}; then
13191       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13192       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13193 $as_echo "yes" >&6; }
13194       break
13195     else
13196       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197 $as_echo "no" >&6; }
13198     fi
13199   done
13200 fi
13201
13202 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13203   for ncn_progname in gcc; do
13204     if test -n "$ncn_target_tool_prefix"; then
13205       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13206 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13208 $as_echo_n "checking for $ac_word... " >&6; }
13209 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13210   $as_echo_n "(cached) " >&6
13211 else
13212   if test -n "$GCC_FOR_TARGET"; then
13213   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13214 else
13215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13216 for as_dir in $PATH
13217 do
13218   IFS=$as_save_IFS
13219   test -z "$as_dir" && as_dir=.
13220     for ac_exec_ext in '' $ac_executable_extensions; do
13221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13222     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13224     break 2
13225   fi
13226 done
13227   done
13228 IFS=$as_save_IFS
13229
13230 fi
13231 fi
13232 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13233 if test -n "$GCC_FOR_TARGET"; then
13234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13235 $as_echo "$GCC_FOR_TARGET" >&6; }
13236 else
13237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13239 fi
13240
13241
13242     fi
13243     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13244       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13245 set dummy ${ncn_progname}; ac_word=$2
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13247 $as_echo_n "checking for $ac_word... " >&6; }
13248 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13249   $as_echo_n "(cached) " >&6
13250 else
13251   if test -n "$GCC_FOR_TARGET"; then
13252   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13253 else
13254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13255 for as_dir in $PATH
13256 do
13257   IFS=$as_save_IFS
13258   test -z "$as_dir" && as_dir=.
13259     for ac_exec_ext in '' $ac_executable_extensions; do
13260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13261     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13263     break 2
13264   fi
13265 done
13266   done
13267 IFS=$as_save_IFS
13268
13269 fi
13270 fi
13271 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13272 if test -n "$GCC_FOR_TARGET"; then
13273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13274 $as_echo "$GCC_FOR_TARGET" >&6; }
13275 else
13276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277 $as_echo "no" >&6; }
13278 fi
13279
13280
13281     fi
13282     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13283   done
13284 fi
13285
13286 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13287   GCC_FOR_TARGET="${CC_FOR_TARGET}"
13288 else
13289   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13290 fi
13291
13292
13293
13294 if test -n "$GFORTRAN_FOR_TARGET"; then
13295   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13296 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13297   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13298 fi
13299
13300 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13301   for ncn_progname in gfortran; do
13302     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13303 set dummy ${ncn_progname}; ac_word=$2
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13305 $as_echo_n "checking for $ac_word... " >&6; }
13306 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13307   $as_echo_n "(cached) " >&6
13308 else
13309   if test -n "$GFORTRAN_FOR_TARGET"; then
13310   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13311 else
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13314 do
13315   IFS=$as_save_IFS
13316   test -z "$as_dir" && as_dir=.
13317     for ac_exec_ext in '' $ac_executable_extensions; do
13318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13319     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321     break 2
13322   fi
13323 done
13324   done
13325 IFS=$as_save_IFS
13326
13327 fi
13328 fi
13329 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13330 if test -n "$GFORTRAN_FOR_TARGET"; then
13331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13332 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13333 else
13334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335 $as_echo "no" >&6; }
13336 fi
13337
13338
13339   done
13340 fi
13341
13342 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13343   for ncn_progname in gfortran; do
13344     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13345 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13346     if test -x $with_build_time_tools/${ncn_progname}; then
13347       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13348       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13349 $as_echo "yes" >&6; }
13350       break
13351     else
13352       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353 $as_echo "no" >&6; }
13354     fi
13355   done
13356 fi
13357
13358 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13359   for ncn_progname in gfortran; do
13360     if test -n "$ncn_target_tool_prefix"; then
13361       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13362 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364 $as_echo_n "checking for $ac_word... " >&6; }
13365 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13366   $as_echo_n "(cached) " >&6
13367 else
13368   if test -n "$GFORTRAN_FOR_TARGET"; then
13369   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13370 else
13371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13373 do
13374   IFS=$as_save_IFS
13375   test -z "$as_dir" && as_dir=.
13376     for ac_exec_ext in '' $ac_executable_extensions; do
13377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13378     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380     break 2
13381   fi
13382 done
13383   done
13384 IFS=$as_save_IFS
13385
13386 fi
13387 fi
13388 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13389 if test -n "$GFORTRAN_FOR_TARGET"; then
13390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13391 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13392 else
13393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13395 fi
13396
13397
13398     fi
13399     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13400       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13401 set dummy ${ncn_progname}; ac_word=$2
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13403 $as_echo_n "checking for $ac_word... " >&6; }
13404 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13405   $as_echo_n "(cached) " >&6
13406 else
13407   if test -n "$GFORTRAN_FOR_TARGET"; then
13408   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13409 else
13410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13411 for as_dir in $PATH
13412 do
13413   IFS=$as_save_IFS
13414   test -z "$as_dir" && as_dir=.
13415     for ac_exec_ext in '' $ac_executable_extensions; do
13416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13417     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13419     break 2
13420   fi
13421 done
13422   done
13423 IFS=$as_save_IFS
13424
13425 fi
13426 fi
13427 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13428 if test -n "$GFORTRAN_FOR_TARGET"; then
13429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13430 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13431 else
13432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433 $as_echo "no" >&6; }
13434 fi
13435
13436
13437     fi
13438     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13439   done
13440 fi
13441
13442 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13443   set dummy gfortran
13444   if test $build = $target ; then
13445     GFORTRAN_FOR_TARGET="$2"
13446   else
13447     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13448   fi
13449 else
13450   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13451 fi
13452
13453
13454
13455 if test -n "$GOC_FOR_TARGET"; then
13456   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13457 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13458   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13459 fi
13460
13461 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13462   for ncn_progname in gccgo; do
13463     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13464 set dummy ${ncn_progname}; ac_word=$2
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13466 $as_echo_n "checking for $ac_word... " >&6; }
13467 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13468   $as_echo_n "(cached) " >&6
13469 else
13470   if test -n "$GOC_FOR_TARGET"; then
13471   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13472 else
13473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13474 for as_dir in $PATH
13475 do
13476   IFS=$as_save_IFS
13477   test -z "$as_dir" && as_dir=.
13478     for ac_exec_ext in '' $ac_executable_extensions; do
13479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13480     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13482     break 2
13483   fi
13484 done
13485   done
13486 IFS=$as_save_IFS
13487
13488 fi
13489 fi
13490 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13491 if test -n "$GOC_FOR_TARGET"; then
13492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13493 $as_echo "$GOC_FOR_TARGET" >&6; }
13494 else
13495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496 $as_echo "no" >&6; }
13497 fi
13498
13499
13500   done
13501 fi
13502
13503 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13504   for ncn_progname in gccgo; do
13505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13506 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13507     if test -x $with_build_time_tools/${ncn_progname}; then
13508       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13509       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13510 $as_echo "yes" >&6; }
13511       break
13512     else
13513       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514 $as_echo "no" >&6; }
13515     fi
13516   done
13517 fi
13518
13519 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13520   for ncn_progname in gccgo; do
13521     if test -n "$ncn_target_tool_prefix"; then
13522       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13523 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13525 $as_echo_n "checking for $ac_word... " >&6; }
13526 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13527   $as_echo_n "(cached) " >&6
13528 else
13529   if test -n "$GOC_FOR_TARGET"; then
13530   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13531 else
13532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13533 for as_dir in $PATH
13534 do
13535   IFS=$as_save_IFS
13536   test -z "$as_dir" && as_dir=.
13537     for ac_exec_ext in '' $ac_executable_extensions; do
13538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13539     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13541     break 2
13542   fi
13543 done
13544   done
13545 IFS=$as_save_IFS
13546
13547 fi
13548 fi
13549 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13550 if test -n "$GOC_FOR_TARGET"; then
13551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13552 $as_echo "$GOC_FOR_TARGET" >&6; }
13553 else
13554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13555 $as_echo "no" >&6; }
13556 fi
13557
13558
13559     fi
13560     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13561       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13562 set dummy ${ncn_progname}; ac_word=$2
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13564 $as_echo_n "checking for $ac_word... " >&6; }
13565 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13566   $as_echo_n "(cached) " >&6
13567 else
13568   if test -n "$GOC_FOR_TARGET"; then
13569   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13570 else
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13573 do
13574   IFS=$as_save_IFS
13575   test -z "$as_dir" && as_dir=.
13576     for ac_exec_ext in '' $ac_executable_extensions; do
13577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13578     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13580     break 2
13581   fi
13582 done
13583   done
13584 IFS=$as_save_IFS
13585
13586 fi
13587 fi
13588 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13589 if test -n "$GOC_FOR_TARGET"; then
13590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13591 $as_echo "$GOC_FOR_TARGET" >&6; }
13592 else
13593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594 $as_echo "no" >&6; }
13595 fi
13596
13597
13598     fi
13599     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13600   done
13601 fi
13602
13603 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13604   set dummy gccgo
13605   if test $build = $target ; then
13606     GOC_FOR_TARGET="$2"
13607   else
13608     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13609   fi
13610 else
13611   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13612 fi
13613
13614
13615
13616 if test -n "$GDC_FOR_TARGET"; then
13617   ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13618 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13619   GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13620 fi
13621
13622 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13623   for ncn_progname in gdc; do
13624     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13625 set dummy ${ncn_progname}; ac_word=$2
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13627 $as_echo_n "checking for $ac_word... " >&6; }
13628 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13629   $as_echo_n "(cached) " >&6
13630 else
13631   if test -n "$GDC_FOR_TARGET"; then
13632   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13633 else
13634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13635 for as_dir in $PATH
13636 do
13637   IFS=$as_save_IFS
13638   test -z "$as_dir" && as_dir=.
13639     for ac_exec_ext in '' $ac_executable_extensions; do
13640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13641     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13643     break 2
13644   fi
13645 done
13646   done
13647 IFS=$as_save_IFS
13648
13649 fi
13650 fi
13651 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13652 if test -n "$GDC_FOR_TARGET"; then
13653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13654 $as_echo "$GDC_FOR_TARGET" >&6; }
13655 else
13656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657 $as_echo "no" >&6; }
13658 fi
13659
13660
13661   done
13662 fi
13663
13664 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13665   for ncn_progname in gdc; do
13666     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13667 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13668     if test -x $with_build_time_tools/${ncn_progname}; then
13669       ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13670       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13671 $as_echo "yes" >&6; }
13672       break
13673     else
13674       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13676     fi
13677   done
13678 fi
13679
13680 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13681   for ncn_progname in gdc; do
13682     if test -n "$ncn_target_tool_prefix"; then
13683       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13684 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13686 $as_echo_n "checking for $ac_word... " >&6; }
13687 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13688   $as_echo_n "(cached) " >&6
13689 else
13690   if test -n "$GDC_FOR_TARGET"; then
13691   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13692 else
13693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13694 for as_dir in $PATH
13695 do
13696   IFS=$as_save_IFS
13697   test -z "$as_dir" && as_dir=.
13698     for ac_exec_ext in '' $ac_executable_extensions; do
13699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13700     ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13702     break 2
13703   fi
13704 done
13705   done
13706 IFS=$as_save_IFS
13707
13708 fi
13709 fi
13710 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13711 if test -n "$GDC_FOR_TARGET"; then
13712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13713 $as_echo "$GDC_FOR_TARGET" >&6; }
13714 else
13715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13716 $as_echo "no" >&6; }
13717 fi
13718
13719
13720     fi
13721     if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13722       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13723 set dummy ${ncn_progname}; ac_word=$2
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13725 $as_echo_n "checking for $ac_word... " >&6; }
13726 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13727   $as_echo_n "(cached) " >&6
13728 else
13729   if test -n "$GDC_FOR_TARGET"; then
13730   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13731 else
13732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733 for as_dir in $PATH
13734 do
13735   IFS=$as_save_IFS
13736   test -z "$as_dir" && as_dir=.
13737     for ac_exec_ext in '' $ac_executable_extensions; do
13738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13739     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13741     break 2
13742   fi
13743 done
13744   done
13745 IFS=$as_save_IFS
13746
13747 fi
13748 fi
13749 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13750 if test -n "$GDC_FOR_TARGET"; then
13751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13752 $as_echo "$GDC_FOR_TARGET" >&6; }
13753 else
13754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755 $as_echo "no" >&6; }
13756 fi
13757
13758
13759     fi
13760     test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13761   done
13762 fi
13763
13764 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13765   set dummy gdc
13766   if test $build = $target ; then
13767     GDC_FOR_TARGET="$2"
13768   else
13769     GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13770   fi
13771 else
13772   GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13773 fi
13774
13775
13776
13777 cat > conftest.c << \EOF
13778 #ifdef __GNUC__
13779   gcc_yay;
13780 #endif
13781 EOF
13782 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13783   have_gcc_for_target=yes
13784 else
13785   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13786   have_gcc_for_target=no
13787 fi
13788 rm conftest.c
13789
13790
13791
13792
13793 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13794   if test -n "$with_build_time_tools"; then
13795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13796 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13797     if test -x $with_build_time_tools/ar; then
13798       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13799       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13800       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13801 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13802     else
13803       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13804 $as_echo "no" >&6; }
13805     fi
13806   elif test $build != $host && test $have_gcc_for_target = yes; then
13807     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13808     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13809     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13810   fi
13811 fi
13812 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13813   # Extract the first word of "ar", so it can be a program name with args.
13814 set dummy ar; ac_word=$2
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13816 $as_echo_n "checking for $ac_word... " >&6; }
13817 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13818   $as_echo_n "(cached) " >&6
13819 else
13820   case $AR_FOR_TARGET in
13821   [\\/]* | ?:[\\/]*)
13822   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13823   ;;
13824   *)
13825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13826 for as_dir in $gcc_cv_tool_dirs
13827 do
13828   IFS=$as_save_IFS
13829   test -z "$as_dir" && as_dir=.
13830     for ac_exec_ext in '' $ac_executable_extensions; do
13831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13832     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13834     break 2
13835   fi
13836 done
13837   done
13838 IFS=$as_save_IFS
13839
13840   ;;
13841 esac
13842 fi
13843 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13844 if test -n "$AR_FOR_TARGET"; then
13845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13846 $as_echo "$AR_FOR_TARGET" >&6; }
13847 else
13848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13849 $as_echo "no" >&6; }
13850 fi
13851
13852
13853 fi
13854 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13855
13856
13857 if test -n "$AR_FOR_TARGET"; then
13858   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13859 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13860   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13861 fi
13862
13863 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13864   for ncn_progname in ar; do
13865     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13866 set dummy ${ncn_progname}; ac_word=$2
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13868 $as_echo_n "checking for $ac_word... " >&6; }
13869 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13870   $as_echo_n "(cached) " >&6
13871 else
13872   if test -n "$AR_FOR_TARGET"; then
13873   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13874 else
13875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13876 for as_dir in $PATH
13877 do
13878   IFS=$as_save_IFS
13879   test -z "$as_dir" && as_dir=.
13880     for ac_exec_ext in '' $ac_executable_extensions; do
13881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13882     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13884     break 2
13885   fi
13886 done
13887   done
13888 IFS=$as_save_IFS
13889
13890 fi
13891 fi
13892 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13893 if test -n "$AR_FOR_TARGET"; then
13894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13895 $as_echo "$AR_FOR_TARGET" >&6; }
13896 else
13897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13898 $as_echo "no" >&6; }
13899 fi
13900
13901
13902   done
13903 fi
13904
13905 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13906   for ncn_progname in ar; do
13907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13908 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13909     if test -x $with_build_time_tools/${ncn_progname}; then
13910       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13912 $as_echo "yes" >&6; }
13913       break
13914     else
13915       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13916 $as_echo "no" >&6; }
13917     fi
13918   done
13919 fi
13920
13921 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13922   for ncn_progname in ar; do
13923     if test -n "$ncn_target_tool_prefix"; then
13924       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13925 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13927 $as_echo_n "checking for $ac_word... " >&6; }
13928 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13929   $as_echo_n "(cached) " >&6
13930 else
13931   if test -n "$AR_FOR_TARGET"; then
13932   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13933 else
13934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13935 for as_dir in $PATH
13936 do
13937   IFS=$as_save_IFS
13938   test -z "$as_dir" && as_dir=.
13939     for ac_exec_ext in '' $ac_executable_extensions; do
13940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13941     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13943     break 2
13944   fi
13945 done
13946   done
13947 IFS=$as_save_IFS
13948
13949 fi
13950 fi
13951 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13952 if test -n "$AR_FOR_TARGET"; then
13953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13954 $as_echo "$AR_FOR_TARGET" >&6; }
13955 else
13956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13957 $as_echo "no" >&6; }
13958 fi
13959
13960
13961     fi
13962     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13963       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13964 set dummy ${ncn_progname}; ac_word=$2
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13966 $as_echo_n "checking for $ac_word... " >&6; }
13967 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13968   $as_echo_n "(cached) " >&6
13969 else
13970   if test -n "$AR_FOR_TARGET"; then
13971   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13972 else
13973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13974 for as_dir in $PATH
13975 do
13976   IFS=$as_save_IFS
13977   test -z "$as_dir" && as_dir=.
13978     for ac_exec_ext in '' $ac_executable_extensions; do
13979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13980     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13982     break 2
13983   fi
13984 done
13985   done
13986 IFS=$as_save_IFS
13987
13988 fi
13989 fi
13990 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13991 if test -n "$AR_FOR_TARGET"; then
13992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13993 $as_echo "$AR_FOR_TARGET" >&6; }
13994 else
13995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13996 $as_echo "no" >&6; }
13997 fi
13998
13999
14000     fi
14001     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14002   done
14003 fi
14004
14005 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14006   set dummy ar
14007   if test $build = $target ; then
14008     AR_FOR_TARGET="$2"
14009   else
14010     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14011   fi
14012 else
14013   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14014 fi
14015
14016 else
14017   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14018 fi
14019
14020
14021
14022
14023 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14024   if test -n "$with_build_time_tools"; then
14025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14026 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14027     if test -x $with_build_time_tools/as; then
14028       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14029       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14030       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14031 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14032     else
14033       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14034 $as_echo "no" >&6; }
14035     fi
14036   elif test $build != $host && test $have_gcc_for_target = yes; then
14037     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14038     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14039     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14040   fi
14041 fi
14042 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14043   # Extract the first word of "as", so it can be a program name with args.
14044 set dummy as; ac_word=$2
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14046 $as_echo_n "checking for $ac_word... " >&6; }
14047 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14048   $as_echo_n "(cached) " >&6
14049 else
14050   case $AS_FOR_TARGET in
14051   [\\/]* | ?:[\\/]*)
14052   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14053   ;;
14054   *)
14055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14056 for as_dir in $gcc_cv_tool_dirs
14057 do
14058   IFS=$as_save_IFS
14059   test -z "$as_dir" && as_dir=.
14060     for ac_exec_ext in '' $ac_executable_extensions; do
14061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14062     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14064     break 2
14065   fi
14066 done
14067   done
14068 IFS=$as_save_IFS
14069
14070   ;;
14071 esac
14072 fi
14073 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14074 if test -n "$AS_FOR_TARGET"; then
14075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14076 $as_echo "$AS_FOR_TARGET" >&6; }
14077 else
14078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079 $as_echo "no" >&6; }
14080 fi
14081
14082
14083 fi
14084 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14085
14086
14087 if test -n "$AS_FOR_TARGET"; then
14088   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14089 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14090   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14091 fi
14092
14093 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14094   for ncn_progname in as; do
14095     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14096 set dummy ${ncn_progname}; ac_word=$2
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14098 $as_echo_n "checking for $ac_word... " >&6; }
14099 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14100   $as_echo_n "(cached) " >&6
14101 else
14102   if test -n "$AS_FOR_TARGET"; then
14103   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14104 else
14105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $PATH
14107 do
14108   IFS=$as_save_IFS
14109   test -z "$as_dir" && as_dir=.
14110     for ac_exec_ext in '' $ac_executable_extensions; do
14111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14112     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14114     break 2
14115   fi
14116 done
14117   done
14118 IFS=$as_save_IFS
14119
14120 fi
14121 fi
14122 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14123 if test -n "$AS_FOR_TARGET"; then
14124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14125 $as_echo "$AS_FOR_TARGET" >&6; }
14126 else
14127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128 $as_echo "no" >&6; }
14129 fi
14130
14131
14132   done
14133 fi
14134
14135 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14136   for ncn_progname in as; do
14137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14138 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14139     if test -x $with_build_time_tools/${ncn_progname}; then
14140       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14141       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14142 $as_echo "yes" >&6; }
14143       break
14144     else
14145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14146 $as_echo "no" >&6; }
14147     fi
14148   done
14149 fi
14150
14151 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14152   for ncn_progname in as; do
14153     if test -n "$ncn_target_tool_prefix"; then
14154       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14155 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14157 $as_echo_n "checking for $ac_word... " >&6; }
14158 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14159   $as_echo_n "(cached) " >&6
14160 else
14161   if test -n "$AS_FOR_TARGET"; then
14162   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14163 else
14164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14165 for as_dir in $PATH
14166 do
14167   IFS=$as_save_IFS
14168   test -z "$as_dir" && as_dir=.
14169     for ac_exec_ext in '' $ac_executable_extensions; do
14170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14171     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14173     break 2
14174   fi
14175 done
14176   done
14177 IFS=$as_save_IFS
14178
14179 fi
14180 fi
14181 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14182 if test -n "$AS_FOR_TARGET"; then
14183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14184 $as_echo "$AS_FOR_TARGET" >&6; }
14185 else
14186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14187 $as_echo "no" >&6; }
14188 fi
14189
14190
14191     fi
14192     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14193       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14194 set dummy ${ncn_progname}; ac_word=$2
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14196 $as_echo_n "checking for $ac_word... " >&6; }
14197 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14198   $as_echo_n "(cached) " >&6
14199 else
14200   if test -n "$AS_FOR_TARGET"; then
14201   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14202 else
14203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14204 for as_dir in $PATH
14205 do
14206   IFS=$as_save_IFS
14207   test -z "$as_dir" && as_dir=.
14208     for ac_exec_ext in '' $ac_executable_extensions; do
14209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14210     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14212     break 2
14213   fi
14214 done
14215   done
14216 IFS=$as_save_IFS
14217
14218 fi
14219 fi
14220 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14221 if test -n "$AS_FOR_TARGET"; then
14222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14223 $as_echo "$AS_FOR_TARGET" >&6; }
14224 else
14225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226 $as_echo "no" >&6; }
14227 fi
14228
14229
14230     fi
14231     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14232   done
14233 fi
14234
14235 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14236   set dummy as
14237   if test $build = $target ; then
14238     AS_FOR_TARGET="$2"
14239   else
14240     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14241   fi
14242 else
14243   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14244 fi
14245
14246 else
14247   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14248 fi
14249
14250
14251
14252
14253 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14254   if test -n "$with_build_time_tools"; then
14255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14256 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14257     if test -x $with_build_time_tools/dlltool; then
14258       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14259       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14260       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14261 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14262     else
14263       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14264 $as_echo "no" >&6; }
14265     fi
14266   elif test $build != $host && test $have_gcc_for_target = yes; then
14267     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14268     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14269     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14270   fi
14271 fi
14272 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14273   # Extract the first word of "dlltool", so it can be a program name with args.
14274 set dummy dlltool; ac_word=$2
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14276 $as_echo_n "checking for $ac_word... " >&6; }
14277 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14278   $as_echo_n "(cached) " >&6
14279 else
14280   case $DLLTOOL_FOR_TARGET in
14281   [\\/]* | ?:[\\/]*)
14282   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14283   ;;
14284   *)
14285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14286 for as_dir in $gcc_cv_tool_dirs
14287 do
14288   IFS=$as_save_IFS
14289   test -z "$as_dir" && as_dir=.
14290     for ac_exec_ext in '' $ac_executable_extensions; do
14291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14292     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14294     break 2
14295   fi
14296 done
14297   done
14298 IFS=$as_save_IFS
14299
14300   ;;
14301 esac
14302 fi
14303 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14304 if test -n "$DLLTOOL_FOR_TARGET"; then
14305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14306 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14307 else
14308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309 $as_echo "no" >&6; }
14310 fi
14311
14312
14313 fi
14314 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14315
14316
14317 if test -n "$DLLTOOL_FOR_TARGET"; then
14318   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14319 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14320   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14321 fi
14322
14323 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14324   for ncn_progname in dlltool; do
14325     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14326 set dummy ${ncn_progname}; ac_word=$2
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14328 $as_echo_n "checking for $ac_word... " >&6; }
14329 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14330   $as_echo_n "(cached) " >&6
14331 else
14332   if test -n "$DLLTOOL_FOR_TARGET"; then
14333   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14334 else
14335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14336 for as_dir in $PATH
14337 do
14338   IFS=$as_save_IFS
14339   test -z "$as_dir" && as_dir=.
14340     for ac_exec_ext in '' $ac_executable_extensions; do
14341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14342     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14344     break 2
14345   fi
14346 done
14347   done
14348 IFS=$as_save_IFS
14349
14350 fi
14351 fi
14352 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14353 if test -n "$DLLTOOL_FOR_TARGET"; then
14354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14355 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14356 else
14357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14358 $as_echo "no" >&6; }
14359 fi
14360
14361
14362   done
14363 fi
14364
14365 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14366   for ncn_progname in dlltool; do
14367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14368 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14369     if test -x $with_build_time_tools/${ncn_progname}; then
14370       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14371       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14372 $as_echo "yes" >&6; }
14373       break
14374     else
14375       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14376 $as_echo "no" >&6; }
14377     fi
14378   done
14379 fi
14380
14381 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14382   for ncn_progname in dlltool; do
14383     if test -n "$ncn_target_tool_prefix"; then
14384       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14385 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14387 $as_echo_n "checking for $ac_word... " >&6; }
14388 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14389   $as_echo_n "(cached) " >&6
14390 else
14391   if test -n "$DLLTOOL_FOR_TARGET"; then
14392   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14393 else
14394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395 for as_dir in $PATH
14396 do
14397   IFS=$as_save_IFS
14398   test -z "$as_dir" && as_dir=.
14399     for ac_exec_ext in '' $ac_executable_extensions; do
14400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14401     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14403     break 2
14404   fi
14405 done
14406   done
14407 IFS=$as_save_IFS
14408
14409 fi
14410 fi
14411 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14412 if test -n "$DLLTOOL_FOR_TARGET"; then
14413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14414 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14415 else
14416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417 $as_echo "no" >&6; }
14418 fi
14419
14420
14421     fi
14422     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14423       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14424 set dummy ${ncn_progname}; ac_word=$2
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14426 $as_echo_n "checking for $ac_word... " >&6; }
14427 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14428   $as_echo_n "(cached) " >&6
14429 else
14430   if test -n "$DLLTOOL_FOR_TARGET"; then
14431   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14432 else
14433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14434 for as_dir in $PATH
14435 do
14436   IFS=$as_save_IFS
14437   test -z "$as_dir" && as_dir=.
14438     for ac_exec_ext in '' $ac_executable_extensions; do
14439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14440     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14442     break 2
14443   fi
14444 done
14445   done
14446 IFS=$as_save_IFS
14447
14448 fi
14449 fi
14450 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14451 if test -n "$DLLTOOL_FOR_TARGET"; then
14452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14453 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14454 else
14455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14456 $as_echo "no" >&6; }
14457 fi
14458
14459
14460     fi
14461     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14462   done
14463 fi
14464
14465 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14466   set dummy dlltool
14467   if test $build = $target ; then
14468     DLLTOOL_FOR_TARGET="$2"
14469   else
14470     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14471   fi
14472 else
14473   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14474 fi
14475
14476 else
14477   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14478 fi
14479
14480
14481
14482
14483 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14484   if test -n "$with_build_time_tools"; then
14485     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14486 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14487     if test -x $with_build_time_tools/dsymutil; then
14488       DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14489       ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14490       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14491 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14492     else
14493       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14494 $as_echo "no" >&6; }
14495     fi
14496   elif test $build != $host && test $have_gcc_for_target = yes; then
14497     DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14498     test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14499     test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14500   fi
14501 fi
14502 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14503   # Extract the first word of "dsymutil", so it can be a program name with args.
14504 set dummy dsymutil; ac_word=$2
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14506 $as_echo_n "checking for $ac_word... " >&6; }
14507 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14508   $as_echo_n "(cached) " >&6
14509 else
14510   case $DSYMUTIL_FOR_TARGET in
14511   [\\/]* | ?:[\\/]*)
14512   ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14513   ;;
14514   *)
14515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14516 for as_dir in $gcc_cv_tool_dirs
14517 do
14518   IFS=$as_save_IFS
14519   test -z "$as_dir" && as_dir=.
14520     for ac_exec_ext in '' $ac_executable_extensions; do
14521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14522     ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14524     break 2
14525   fi
14526 done
14527   done
14528 IFS=$as_save_IFS
14529
14530   ;;
14531 esac
14532 fi
14533 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14534 if test -n "$DSYMUTIL_FOR_TARGET"; then
14535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14536 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14537 else
14538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14539 $as_echo "no" >&6; }
14540 fi
14541
14542
14543 fi
14544 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14545
14546
14547 if test -n "$DSYMUTIL_FOR_TARGET"; then
14548   ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14549 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14550   DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14551 fi
14552
14553 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14554   for ncn_progname in dsymutil; do
14555     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14556 set dummy ${ncn_progname}; ac_word=$2
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14558 $as_echo_n "checking for $ac_word... " >&6; }
14559 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14560   $as_echo_n "(cached) " >&6
14561 else
14562   if test -n "$DSYMUTIL_FOR_TARGET"; then
14563   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14564 else
14565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14566 for as_dir in $PATH
14567 do
14568   IFS=$as_save_IFS
14569   test -z "$as_dir" && as_dir=.
14570     for ac_exec_ext in '' $ac_executable_extensions; do
14571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14572     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14574     break 2
14575   fi
14576 done
14577   done
14578 IFS=$as_save_IFS
14579
14580 fi
14581 fi
14582 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14583 if test -n "$DSYMUTIL_FOR_TARGET"; then
14584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14585 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14586 else
14587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14588 $as_echo "no" >&6; }
14589 fi
14590
14591
14592   done
14593 fi
14594
14595 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14596   for ncn_progname in dsymutil; do
14597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14598 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14599     if test -x $with_build_time_tools/${ncn_progname}; then
14600       ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14601       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14602 $as_echo "yes" >&6; }
14603       break
14604     else
14605       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14606 $as_echo "no" >&6; }
14607     fi
14608   done
14609 fi
14610
14611 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14612   for ncn_progname in dsymutil; do
14613     if test -n "$ncn_target_tool_prefix"; then
14614       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14615 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14617 $as_echo_n "checking for $ac_word... " >&6; }
14618 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14619   $as_echo_n "(cached) " >&6
14620 else
14621   if test -n "$DSYMUTIL_FOR_TARGET"; then
14622   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14623 else
14624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625 for as_dir in $PATH
14626 do
14627   IFS=$as_save_IFS
14628   test -z "$as_dir" && as_dir=.
14629     for ac_exec_ext in '' $ac_executable_extensions; do
14630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14631     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14633     break 2
14634   fi
14635 done
14636   done
14637 IFS=$as_save_IFS
14638
14639 fi
14640 fi
14641 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14642 if test -n "$DSYMUTIL_FOR_TARGET"; then
14643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14644 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14645 else
14646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14647 $as_echo "no" >&6; }
14648 fi
14649
14650
14651     fi
14652     if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14653       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14654 set dummy ${ncn_progname}; ac_word=$2
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14656 $as_echo_n "checking for $ac_word... " >&6; }
14657 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14658   $as_echo_n "(cached) " >&6
14659 else
14660   if test -n "$DSYMUTIL_FOR_TARGET"; then
14661   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14662 else
14663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14664 for as_dir in $PATH
14665 do
14666   IFS=$as_save_IFS
14667   test -z "$as_dir" && as_dir=.
14668     for ac_exec_ext in '' $ac_executable_extensions; do
14669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14670     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14672     break 2
14673   fi
14674 done
14675   done
14676 IFS=$as_save_IFS
14677
14678 fi
14679 fi
14680 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14681 if test -n "$DSYMUTIL_FOR_TARGET"; then
14682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14683 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14684 else
14685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14686 $as_echo "no" >&6; }
14687 fi
14688
14689
14690     fi
14691     test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14692   done
14693 fi
14694
14695 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14696   set dummy dsymutil
14697   if test $build = $target ; then
14698     DSYMUTIL_FOR_TARGET="$2"
14699   else
14700     DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14701   fi
14702 else
14703   DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14704 fi
14705
14706 else
14707   DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14708 fi
14709
14710
14711
14712
14713 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14714   if test -n "$with_build_time_tools"; then
14715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14716 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14717     if test -x $with_build_time_tools/ld; then
14718       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14719       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14720       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14721 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14722     else
14723       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14724 $as_echo "no" >&6; }
14725     fi
14726   elif test $build != $host && test $have_gcc_for_target = yes; then
14727     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14728     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14729     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14730   fi
14731 fi
14732 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14733   # Extract the first word of "ld", so it can be a program name with args.
14734 set dummy ld; ac_word=$2
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14736 $as_echo_n "checking for $ac_word... " >&6; }
14737 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14738   $as_echo_n "(cached) " >&6
14739 else
14740   case $LD_FOR_TARGET in
14741   [\\/]* | ?:[\\/]*)
14742   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14743   ;;
14744   *)
14745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14746 for as_dir in $gcc_cv_tool_dirs
14747 do
14748   IFS=$as_save_IFS
14749   test -z "$as_dir" && as_dir=.
14750     for ac_exec_ext in '' $ac_executable_extensions; do
14751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14752     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14754     break 2
14755   fi
14756 done
14757   done
14758 IFS=$as_save_IFS
14759
14760   ;;
14761 esac
14762 fi
14763 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14764 if test -n "$LD_FOR_TARGET"; then
14765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14766 $as_echo "$LD_FOR_TARGET" >&6; }
14767 else
14768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14769 $as_echo "no" >&6; }
14770 fi
14771
14772
14773 fi
14774 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14775
14776
14777 if test -n "$LD_FOR_TARGET"; then
14778   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14779 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14780   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14781 fi
14782
14783 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14784   for ncn_progname in ld; do
14785     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14786 set dummy ${ncn_progname}; ac_word=$2
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14788 $as_echo_n "checking for $ac_word... " >&6; }
14789 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14790   $as_echo_n "(cached) " >&6
14791 else
14792   if test -n "$LD_FOR_TARGET"; then
14793   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14794 else
14795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14796 for as_dir in $PATH
14797 do
14798   IFS=$as_save_IFS
14799   test -z "$as_dir" && as_dir=.
14800     for ac_exec_ext in '' $ac_executable_extensions; do
14801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14802     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14804     break 2
14805   fi
14806 done
14807   done
14808 IFS=$as_save_IFS
14809
14810 fi
14811 fi
14812 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14813 if test -n "$LD_FOR_TARGET"; then
14814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14815 $as_echo "$LD_FOR_TARGET" >&6; }
14816 else
14817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14818 $as_echo "no" >&6; }
14819 fi
14820
14821
14822   done
14823 fi
14824
14825 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14826   for ncn_progname in ld; do
14827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14828 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14829     if test -x $with_build_time_tools/${ncn_progname}; then
14830       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14831       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14832 $as_echo "yes" >&6; }
14833       break
14834     else
14835       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14836 $as_echo "no" >&6; }
14837     fi
14838   done
14839 fi
14840
14841 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14842   for ncn_progname in ld; do
14843     if test -n "$ncn_target_tool_prefix"; then
14844       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14845 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14847 $as_echo_n "checking for $ac_word... " >&6; }
14848 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14849   $as_echo_n "(cached) " >&6
14850 else
14851   if test -n "$LD_FOR_TARGET"; then
14852   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14853 else
14854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14855 for as_dir in $PATH
14856 do
14857   IFS=$as_save_IFS
14858   test -z "$as_dir" && as_dir=.
14859     for ac_exec_ext in '' $ac_executable_extensions; do
14860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14861     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14863     break 2
14864   fi
14865 done
14866   done
14867 IFS=$as_save_IFS
14868
14869 fi
14870 fi
14871 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14872 if test -n "$LD_FOR_TARGET"; then
14873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14874 $as_echo "$LD_FOR_TARGET" >&6; }
14875 else
14876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14877 $as_echo "no" >&6; }
14878 fi
14879
14880
14881     fi
14882     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14883       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14884 set dummy ${ncn_progname}; ac_word=$2
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14886 $as_echo_n "checking for $ac_word... " >&6; }
14887 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14888   $as_echo_n "(cached) " >&6
14889 else
14890   if test -n "$LD_FOR_TARGET"; then
14891   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14892 else
14893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14894 for as_dir in $PATH
14895 do
14896   IFS=$as_save_IFS
14897   test -z "$as_dir" && as_dir=.
14898     for ac_exec_ext in '' $ac_executable_extensions; do
14899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14900     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14902     break 2
14903   fi
14904 done
14905   done
14906 IFS=$as_save_IFS
14907
14908 fi
14909 fi
14910 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14911 if test -n "$LD_FOR_TARGET"; then
14912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14913 $as_echo "$LD_FOR_TARGET" >&6; }
14914 else
14915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14916 $as_echo "no" >&6; }
14917 fi
14918
14919
14920     fi
14921     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14922   done
14923 fi
14924
14925 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14926   set dummy ld
14927   if test $build = $target ; then
14928     LD_FOR_TARGET="$2"
14929   else
14930     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14931   fi
14932 else
14933   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14934 fi
14935
14936 else
14937   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14938 fi
14939
14940
14941
14942
14943 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14944   if test -n "$with_build_time_tools"; then
14945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14946 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14947     if test -x $with_build_time_tools/lipo; then
14948       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14949       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14950       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14951 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14952     else
14953       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14954 $as_echo "no" >&6; }
14955     fi
14956   elif test $build != $host && test $have_gcc_for_target = yes; then
14957     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14958     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14959     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14960   fi
14961 fi
14962 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14963   # Extract the first word of "lipo", so it can be a program name with args.
14964 set dummy lipo; ac_word=$2
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14966 $as_echo_n "checking for $ac_word... " >&6; }
14967 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14968   $as_echo_n "(cached) " >&6
14969 else
14970   case $LIPO_FOR_TARGET in
14971   [\\/]* | ?:[\\/]*)
14972   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14973   ;;
14974   *)
14975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14976 for as_dir in $gcc_cv_tool_dirs
14977 do
14978   IFS=$as_save_IFS
14979   test -z "$as_dir" && as_dir=.
14980     for ac_exec_ext in '' $ac_executable_extensions; do
14981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14982     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14984     break 2
14985   fi
14986 done
14987   done
14988 IFS=$as_save_IFS
14989
14990   ;;
14991 esac
14992 fi
14993 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14994 if test -n "$LIPO_FOR_TARGET"; then
14995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14996 $as_echo "$LIPO_FOR_TARGET" >&6; }
14997 else
14998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14999 $as_echo "no" >&6; }
15000 fi
15001
15002
15003 fi
15004 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15005
15006
15007 if test -n "$LIPO_FOR_TARGET"; then
15008   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15009 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15010   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15011 fi
15012
15013 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15014   for ncn_progname in lipo; do
15015     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15016 set dummy ${ncn_progname}; ac_word=$2
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15018 $as_echo_n "checking for $ac_word... " >&6; }
15019 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15020   $as_echo_n "(cached) " >&6
15021 else
15022   if test -n "$LIPO_FOR_TARGET"; then
15023   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15024 else
15025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15026 for as_dir in $PATH
15027 do
15028   IFS=$as_save_IFS
15029   test -z "$as_dir" && as_dir=.
15030     for ac_exec_ext in '' $ac_executable_extensions; do
15031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15032     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15034     break 2
15035   fi
15036 done
15037   done
15038 IFS=$as_save_IFS
15039
15040 fi
15041 fi
15042 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15043 if test -n "$LIPO_FOR_TARGET"; then
15044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15045 $as_echo "$LIPO_FOR_TARGET" >&6; }
15046 else
15047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15048 $as_echo "no" >&6; }
15049 fi
15050
15051
15052   done
15053 fi
15054
15055 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15056   for ncn_progname in lipo; do
15057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15058 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15059     if test -x $with_build_time_tools/${ncn_progname}; then
15060       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15061       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15062 $as_echo "yes" >&6; }
15063       break
15064     else
15065       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15066 $as_echo "no" >&6; }
15067     fi
15068   done
15069 fi
15070
15071 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15072   for ncn_progname in lipo; do
15073     if test -n "$ncn_target_tool_prefix"; then
15074       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15075 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15077 $as_echo_n "checking for $ac_word... " >&6; }
15078 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15079   $as_echo_n "(cached) " >&6
15080 else
15081   if test -n "$LIPO_FOR_TARGET"; then
15082   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15083 else
15084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15085 for as_dir in $PATH
15086 do
15087   IFS=$as_save_IFS
15088   test -z "$as_dir" && as_dir=.
15089     for ac_exec_ext in '' $ac_executable_extensions; do
15090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15091     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15093     break 2
15094   fi
15095 done
15096   done
15097 IFS=$as_save_IFS
15098
15099 fi
15100 fi
15101 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15102 if test -n "$LIPO_FOR_TARGET"; then
15103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15104 $as_echo "$LIPO_FOR_TARGET" >&6; }
15105 else
15106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15107 $as_echo "no" >&6; }
15108 fi
15109
15110
15111     fi
15112     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15113       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15114 set dummy ${ncn_progname}; ac_word=$2
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15116 $as_echo_n "checking for $ac_word... " >&6; }
15117 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15118   $as_echo_n "(cached) " >&6
15119 else
15120   if test -n "$LIPO_FOR_TARGET"; then
15121   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15122 else
15123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15124 for as_dir in $PATH
15125 do
15126   IFS=$as_save_IFS
15127   test -z "$as_dir" && as_dir=.
15128     for ac_exec_ext in '' $ac_executable_extensions; do
15129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15130     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15132     break 2
15133   fi
15134 done
15135   done
15136 IFS=$as_save_IFS
15137
15138 fi
15139 fi
15140 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15141 if test -n "$LIPO_FOR_TARGET"; then
15142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15143 $as_echo "$LIPO_FOR_TARGET" >&6; }
15144 else
15145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15146 $as_echo "no" >&6; }
15147 fi
15148
15149
15150     fi
15151     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15152   done
15153 fi
15154
15155 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15156   set dummy lipo
15157   if test $build = $target ; then
15158     LIPO_FOR_TARGET="$2"
15159   else
15160     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15161   fi
15162 else
15163   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15164 fi
15165
15166 else
15167   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15168 fi
15169
15170
15171
15172
15173 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15174   if test -n "$with_build_time_tools"; then
15175     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15176 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15177     if test -x $with_build_time_tools/nm; then
15178       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15179       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15180       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15181 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15182     else
15183       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15184 $as_echo "no" >&6; }
15185     fi
15186   elif test $build != $host && test $have_gcc_for_target = yes; then
15187     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15188     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15189     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15190   fi
15191 fi
15192 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15193   # Extract the first word of "nm", so it can be a program name with args.
15194 set dummy nm; ac_word=$2
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15196 $as_echo_n "checking for $ac_word... " >&6; }
15197 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15198   $as_echo_n "(cached) " >&6
15199 else
15200   case $NM_FOR_TARGET in
15201   [\\/]* | ?:[\\/]*)
15202   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15203   ;;
15204   *)
15205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15206 for as_dir in $gcc_cv_tool_dirs
15207 do
15208   IFS=$as_save_IFS
15209   test -z "$as_dir" && as_dir=.
15210     for ac_exec_ext in '' $ac_executable_extensions; do
15211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15212     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15214     break 2
15215   fi
15216 done
15217   done
15218 IFS=$as_save_IFS
15219
15220   ;;
15221 esac
15222 fi
15223 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15224 if test -n "$NM_FOR_TARGET"; then
15225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15226 $as_echo "$NM_FOR_TARGET" >&6; }
15227 else
15228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15229 $as_echo "no" >&6; }
15230 fi
15231
15232
15233 fi
15234 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15235
15236
15237 if test -n "$NM_FOR_TARGET"; then
15238   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15239 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15240   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15241 fi
15242
15243 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15244   for ncn_progname in nm; do
15245     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15246 set dummy ${ncn_progname}; ac_word=$2
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15248 $as_echo_n "checking for $ac_word... " >&6; }
15249 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15250   $as_echo_n "(cached) " >&6
15251 else
15252   if test -n "$NM_FOR_TARGET"; then
15253   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15254 else
15255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15256 for as_dir in $PATH
15257 do
15258   IFS=$as_save_IFS
15259   test -z "$as_dir" && as_dir=.
15260     for ac_exec_ext in '' $ac_executable_extensions; do
15261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15262     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15264     break 2
15265   fi
15266 done
15267   done
15268 IFS=$as_save_IFS
15269
15270 fi
15271 fi
15272 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15273 if test -n "$NM_FOR_TARGET"; then
15274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15275 $as_echo "$NM_FOR_TARGET" >&6; }
15276 else
15277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15278 $as_echo "no" >&6; }
15279 fi
15280
15281
15282   done
15283 fi
15284
15285 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15286   for ncn_progname in nm; do
15287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15288 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15289     if test -x $with_build_time_tools/${ncn_progname}; then
15290       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15291       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15292 $as_echo "yes" >&6; }
15293       break
15294     else
15295       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15296 $as_echo "no" >&6; }
15297     fi
15298   done
15299 fi
15300
15301 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15302   for ncn_progname in nm; do
15303     if test -n "$ncn_target_tool_prefix"; then
15304       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15305 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15307 $as_echo_n "checking for $ac_word... " >&6; }
15308 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15309   $as_echo_n "(cached) " >&6
15310 else
15311   if test -n "$NM_FOR_TARGET"; then
15312   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15313 else
15314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15315 for as_dir in $PATH
15316 do
15317   IFS=$as_save_IFS
15318   test -z "$as_dir" && as_dir=.
15319     for ac_exec_ext in '' $ac_executable_extensions; do
15320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15321     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15323     break 2
15324   fi
15325 done
15326   done
15327 IFS=$as_save_IFS
15328
15329 fi
15330 fi
15331 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15332 if test -n "$NM_FOR_TARGET"; then
15333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15334 $as_echo "$NM_FOR_TARGET" >&6; }
15335 else
15336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15337 $as_echo "no" >&6; }
15338 fi
15339
15340
15341     fi
15342     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15343       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15344 set dummy ${ncn_progname}; ac_word=$2
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15346 $as_echo_n "checking for $ac_word... " >&6; }
15347 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15348   $as_echo_n "(cached) " >&6
15349 else
15350   if test -n "$NM_FOR_TARGET"; then
15351   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15352 else
15353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15354 for as_dir in $PATH
15355 do
15356   IFS=$as_save_IFS
15357   test -z "$as_dir" && as_dir=.
15358     for ac_exec_ext in '' $ac_executable_extensions; do
15359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15360     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15362     break 2
15363   fi
15364 done
15365   done
15366 IFS=$as_save_IFS
15367
15368 fi
15369 fi
15370 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15371 if test -n "$NM_FOR_TARGET"; then
15372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15373 $as_echo "$NM_FOR_TARGET" >&6; }
15374 else
15375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15376 $as_echo "no" >&6; }
15377 fi
15378
15379
15380     fi
15381     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15382   done
15383 fi
15384
15385 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15386   set dummy nm
15387   if test $build = $target ; then
15388     NM_FOR_TARGET="$2"
15389   else
15390     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15391   fi
15392 else
15393   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15394 fi
15395
15396 else
15397   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15398 fi
15399
15400
15401
15402
15403 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15404   if test -n "$with_build_time_tools"; then
15405     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15406 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15407     if test -x $with_build_time_tools/objcopy; then
15408       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15409       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15410       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15411 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15412     else
15413       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15414 $as_echo "no" >&6; }
15415     fi
15416   elif test $build != $host && test $have_gcc_for_target = yes; then
15417     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15418     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15419     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15420   fi
15421 fi
15422 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15423   # Extract the first word of "objcopy", so it can be a program name with args.
15424 set dummy objcopy; ac_word=$2
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15426 $as_echo_n "checking for $ac_word... " >&6; }
15427 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15428   $as_echo_n "(cached) " >&6
15429 else
15430   case $OBJCOPY_FOR_TARGET in
15431   [\\/]* | ?:[\\/]*)
15432   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15433   ;;
15434   *)
15435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15436 for as_dir in $gcc_cv_tool_dirs
15437 do
15438   IFS=$as_save_IFS
15439   test -z "$as_dir" && as_dir=.
15440     for ac_exec_ext in '' $ac_executable_extensions; do
15441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15442     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15444     break 2
15445   fi
15446 done
15447   done
15448 IFS=$as_save_IFS
15449
15450   ;;
15451 esac
15452 fi
15453 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15454 if test -n "$OBJCOPY_FOR_TARGET"; then
15455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15456 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15457 else
15458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15459 $as_echo "no" >&6; }
15460 fi
15461
15462
15463 fi
15464 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15465
15466
15467 if test -n "$OBJCOPY_FOR_TARGET"; then
15468   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15469 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15470   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15471 fi
15472
15473 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15474   for ncn_progname in objcopy; do
15475     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15476 set dummy ${ncn_progname}; ac_word=$2
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15478 $as_echo_n "checking for $ac_word... " >&6; }
15479 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15480   $as_echo_n "(cached) " >&6
15481 else
15482   if test -n "$OBJCOPY_FOR_TARGET"; then
15483   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15484 else
15485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15486 for as_dir in $PATH
15487 do
15488   IFS=$as_save_IFS
15489   test -z "$as_dir" && as_dir=.
15490     for ac_exec_ext in '' $ac_executable_extensions; do
15491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15492     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15494     break 2
15495   fi
15496 done
15497   done
15498 IFS=$as_save_IFS
15499
15500 fi
15501 fi
15502 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15503 if test -n "$OBJCOPY_FOR_TARGET"; then
15504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15505 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15506 else
15507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15508 $as_echo "no" >&6; }
15509 fi
15510
15511
15512   done
15513 fi
15514
15515 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15516   for ncn_progname in objcopy; do
15517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15518 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15519     if test -x $with_build_time_tools/${ncn_progname}; then
15520       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15521       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15522 $as_echo "yes" >&6; }
15523       break
15524     else
15525       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15526 $as_echo "no" >&6; }
15527     fi
15528   done
15529 fi
15530
15531 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15532   for ncn_progname in objcopy; do
15533     if test -n "$ncn_target_tool_prefix"; then
15534       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15535 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15537 $as_echo_n "checking for $ac_word... " >&6; }
15538 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15539   $as_echo_n "(cached) " >&6
15540 else
15541   if test -n "$OBJCOPY_FOR_TARGET"; then
15542   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15543 else
15544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15545 for as_dir in $PATH
15546 do
15547   IFS=$as_save_IFS
15548   test -z "$as_dir" && as_dir=.
15549     for ac_exec_ext in '' $ac_executable_extensions; do
15550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15551     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15553     break 2
15554   fi
15555 done
15556   done
15557 IFS=$as_save_IFS
15558
15559 fi
15560 fi
15561 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15562 if test -n "$OBJCOPY_FOR_TARGET"; then
15563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15564 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15565 else
15566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15567 $as_echo "no" >&6; }
15568 fi
15569
15570
15571     fi
15572     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15573       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15574 set dummy ${ncn_progname}; ac_word=$2
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15576 $as_echo_n "checking for $ac_word... " >&6; }
15577 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15578   $as_echo_n "(cached) " >&6
15579 else
15580   if test -n "$OBJCOPY_FOR_TARGET"; then
15581   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15582 else
15583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15584 for as_dir in $PATH
15585 do
15586   IFS=$as_save_IFS
15587   test -z "$as_dir" && as_dir=.
15588     for ac_exec_ext in '' $ac_executable_extensions; do
15589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15590     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15592     break 2
15593   fi
15594 done
15595   done
15596 IFS=$as_save_IFS
15597
15598 fi
15599 fi
15600 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15601 if test -n "$OBJCOPY_FOR_TARGET"; then
15602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15603 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15604 else
15605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15606 $as_echo "no" >&6; }
15607 fi
15608
15609
15610     fi
15611     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15612   done
15613 fi
15614
15615 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15616   set dummy objcopy
15617   if test $build = $target ; then
15618     OBJCOPY_FOR_TARGET="$2"
15619   else
15620     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15621   fi
15622 else
15623   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15624 fi
15625
15626 else
15627   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15628 fi
15629
15630
15631
15632
15633 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15634   if test -n "$with_build_time_tools"; then
15635     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15636 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15637     if test -x $with_build_time_tools/objdump; then
15638       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15639       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15640       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15641 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15642     else
15643       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15644 $as_echo "no" >&6; }
15645     fi
15646   elif test $build != $host && test $have_gcc_for_target = yes; then
15647     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15648     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15649     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15650   fi
15651 fi
15652 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15653   # Extract the first word of "objdump", so it can be a program name with args.
15654 set dummy objdump; ac_word=$2
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15656 $as_echo_n "checking for $ac_word... " >&6; }
15657 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15658   $as_echo_n "(cached) " >&6
15659 else
15660   case $OBJDUMP_FOR_TARGET in
15661   [\\/]* | ?:[\\/]*)
15662   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15663   ;;
15664   *)
15665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15666 for as_dir in $gcc_cv_tool_dirs
15667 do
15668   IFS=$as_save_IFS
15669   test -z "$as_dir" && as_dir=.
15670     for ac_exec_ext in '' $ac_executable_extensions; do
15671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15672     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15674     break 2
15675   fi
15676 done
15677   done
15678 IFS=$as_save_IFS
15679
15680   ;;
15681 esac
15682 fi
15683 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15684 if test -n "$OBJDUMP_FOR_TARGET"; then
15685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15686 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15687 else
15688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15689 $as_echo "no" >&6; }
15690 fi
15691
15692
15693 fi
15694 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15695
15696
15697 if test -n "$OBJDUMP_FOR_TARGET"; then
15698   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15699 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15700   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15701 fi
15702
15703 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15704   for ncn_progname in objdump; do
15705     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15706 set dummy ${ncn_progname}; ac_word=$2
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15708 $as_echo_n "checking for $ac_word... " >&6; }
15709 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15710   $as_echo_n "(cached) " >&6
15711 else
15712   if test -n "$OBJDUMP_FOR_TARGET"; then
15713   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15714 else
15715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15716 for as_dir in $PATH
15717 do
15718   IFS=$as_save_IFS
15719   test -z "$as_dir" && as_dir=.
15720     for ac_exec_ext in '' $ac_executable_extensions; do
15721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15722     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15724     break 2
15725   fi
15726 done
15727   done
15728 IFS=$as_save_IFS
15729
15730 fi
15731 fi
15732 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15733 if test -n "$OBJDUMP_FOR_TARGET"; then
15734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15735 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15736 else
15737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15738 $as_echo "no" >&6; }
15739 fi
15740
15741
15742   done
15743 fi
15744
15745 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15746   for ncn_progname in objdump; do
15747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15748 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15749     if test -x $with_build_time_tools/${ncn_progname}; then
15750       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15751       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15752 $as_echo "yes" >&6; }
15753       break
15754     else
15755       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15756 $as_echo "no" >&6; }
15757     fi
15758   done
15759 fi
15760
15761 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15762   for ncn_progname in objdump; do
15763     if test -n "$ncn_target_tool_prefix"; then
15764       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15765 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15767 $as_echo_n "checking for $ac_word... " >&6; }
15768 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15769   $as_echo_n "(cached) " >&6
15770 else
15771   if test -n "$OBJDUMP_FOR_TARGET"; then
15772   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15773 else
15774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15775 for as_dir in $PATH
15776 do
15777   IFS=$as_save_IFS
15778   test -z "$as_dir" && as_dir=.
15779     for ac_exec_ext in '' $ac_executable_extensions; do
15780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15781     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15783     break 2
15784   fi
15785 done
15786   done
15787 IFS=$as_save_IFS
15788
15789 fi
15790 fi
15791 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15792 if test -n "$OBJDUMP_FOR_TARGET"; then
15793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15794 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15795 else
15796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15797 $as_echo "no" >&6; }
15798 fi
15799
15800
15801     fi
15802     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15803       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15804 set dummy ${ncn_progname}; ac_word=$2
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15806 $as_echo_n "checking for $ac_word... " >&6; }
15807 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15808   $as_echo_n "(cached) " >&6
15809 else
15810   if test -n "$OBJDUMP_FOR_TARGET"; then
15811   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15812 else
15813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15814 for as_dir in $PATH
15815 do
15816   IFS=$as_save_IFS
15817   test -z "$as_dir" && as_dir=.
15818     for ac_exec_ext in '' $ac_executable_extensions; do
15819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15820     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15822     break 2
15823   fi
15824 done
15825   done
15826 IFS=$as_save_IFS
15827
15828 fi
15829 fi
15830 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15831 if test -n "$OBJDUMP_FOR_TARGET"; then
15832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15833 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15834 else
15835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15836 $as_echo "no" >&6; }
15837 fi
15838
15839
15840     fi
15841     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15842   done
15843 fi
15844
15845 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15846   set dummy objdump
15847   if test $build = $target ; then
15848     OBJDUMP_FOR_TARGET="$2"
15849   else
15850     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15851   fi
15852 else
15853   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15854 fi
15855
15856 else
15857   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15858 fi
15859
15860
15861
15862
15863 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15864   if test -n "$with_build_time_tools"; then
15865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15866 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15867     if test -x $with_build_time_tools/otool; then
15868       OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15869       ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15870       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15871 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15872     else
15873       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15874 $as_echo "no" >&6; }
15875     fi
15876   elif test $build != $host && test $have_gcc_for_target = yes; then
15877     OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15878     test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15879     test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15880   fi
15881 fi
15882 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15883   # Extract the first word of "otool", so it can be a program name with args.
15884 set dummy otool; ac_word=$2
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15886 $as_echo_n "checking for $ac_word... " >&6; }
15887 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15888   $as_echo_n "(cached) " >&6
15889 else
15890   case $OTOOL_FOR_TARGET in
15891   [\\/]* | ?:[\\/]*)
15892   ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15893   ;;
15894   *)
15895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15896 for as_dir in $gcc_cv_tool_dirs
15897 do
15898   IFS=$as_save_IFS
15899   test -z "$as_dir" && as_dir=.
15900     for ac_exec_ext in '' $ac_executable_extensions; do
15901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15902     ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15904     break 2
15905   fi
15906 done
15907   done
15908 IFS=$as_save_IFS
15909
15910   ;;
15911 esac
15912 fi
15913 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15914 if test -n "$OTOOL_FOR_TARGET"; then
15915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15916 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15917 else
15918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15919 $as_echo "no" >&6; }
15920 fi
15921
15922
15923 fi
15924 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15925
15926
15927 if test -n "$OTOOL_FOR_TARGET"; then
15928   ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15929 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15930   OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15931 fi
15932
15933 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15934   for ncn_progname in otool; do
15935     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15936 set dummy ${ncn_progname}; ac_word=$2
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15938 $as_echo_n "checking for $ac_word... " >&6; }
15939 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15940   $as_echo_n "(cached) " >&6
15941 else
15942   if test -n "$OTOOL_FOR_TARGET"; then
15943   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15944 else
15945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15946 for as_dir in $PATH
15947 do
15948   IFS=$as_save_IFS
15949   test -z "$as_dir" && as_dir=.
15950     for ac_exec_ext in '' $ac_executable_extensions; do
15951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15952     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15954     break 2
15955   fi
15956 done
15957   done
15958 IFS=$as_save_IFS
15959
15960 fi
15961 fi
15962 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15963 if test -n "$OTOOL_FOR_TARGET"; then
15964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15965 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15966 else
15967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15968 $as_echo "no" >&6; }
15969 fi
15970
15971
15972   done
15973 fi
15974
15975 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15976   for ncn_progname in otool; do
15977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15978 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15979     if test -x $with_build_time_tools/${ncn_progname}; then
15980       ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15981       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15982 $as_echo "yes" >&6; }
15983       break
15984     else
15985       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15986 $as_echo "no" >&6; }
15987     fi
15988   done
15989 fi
15990
15991 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15992   for ncn_progname in otool; do
15993     if test -n "$ncn_target_tool_prefix"; then
15994       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15995 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15997 $as_echo_n "checking for $ac_word... " >&6; }
15998 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15999   $as_echo_n "(cached) " >&6
16000 else
16001   if test -n "$OTOOL_FOR_TARGET"; then
16002   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16003 else
16004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16005 for as_dir in $PATH
16006 do
16007   IFS=$as_save_IFS
16008   test -z "$as_dir" && as_dir=.
16009     for ac_exec_ext in '' $ac_executable_extensions; do
16010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16011     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16013     break 2
16014   fi
16015 done
16016   done
16017 IFS=$as_save_IFS
16018
16019 fi
16020 fi
16021 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16022 if test -n "$OTOOL_FOR_TARGET"; then
16023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16024 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16025 else
16026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16027 $as_echo "no" >&6; }
16028 fi
16029
16030
16031     fi
16032     if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16033       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16034 set dummy ${ncn_progname}; ac_word=$2
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16036 $as_echo_n "checking for $ac_word... " >&6; }
16037 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16038   $as_echo_n "(cached) " >&6
16039 else
16040   if test -n "$OTOOL_FOR_TARGET"; then
16041   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16042 else
16043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16044 for as_dir in $PATH
16045 do
16046   IFS=$as_save_IFS
16047   test -z "$as_dir" && as_dir=.
16048     for ac_exec_ext in '' $ac_executable_extensions; do
16049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16050     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16052     break 2
16053   fi
16054 done
16055   done
16056 IFS=$as_save_IFS
16057
16058 fi
16059 fi
16060 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16061 if test -n "$OTOOL_FOR_TARGET"; then
16062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16063 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16064 else
16065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16066 $as_echo "no" >&6; }
16067 fi
16068
16069
16070     fi
16071     test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16072   done
16073 fi
16074
16075 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16076   set dummy otool
16077   if test $build = $target ; then
16078     OTOOL_FOR_TARGET="$2"
16079   else
16080     OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16081   fi
16082 else
16083   OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16084 fi
16085
16086 else
16087   OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16088 fi
16089
16090
16091
16092
16093 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16094   if test -n "$with_build_time_tools"; then
16095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16096 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16097     if test -x $with_build_time_tools/ranlib; then
16098       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16099       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16100       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16101 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16102     else
16103       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16104 $as_echo "no" >&6; }
16105     fi
16106   elif test $build != $host && test $have_gcc_for_target = yes; then
16107     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16108     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16109     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16110   fi
16111 fi
16112 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16113   # Extract the first word of "ranlib", so it can be a program name with args.
16114 set dummy ranlib; ac_word=$2
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16116 $as_echo_n "checking for $ac_word... " >&6; }
16117 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16118   $as_echo_n "(cached) " >&6
16119 else
16120   case $RANLIB_FOR_TARGET in
16121   [\\/]* | ?:[\\/]*)
16122   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16123   ;;
16124   *)
16125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16126 for as_dir in $gcc_cv_tool_dirs
16127 do
16128   IFS=$as_save_IFS
16129   test -z "$as_dir" && as_dir=.
16130     for ac_exec_ext in '' $ac_executable_extensions; do
16131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16132     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16134     break 2
16135   fi
16136 done
16137   done
16138 IFS=$as_save_IFS
16139
16140   ;;
16141 esac
16142 fi
16143 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16144 if test -n "$RANLIB_FOR_TARGET"; then
16145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16146 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16147 else
16148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16149 $as_echo "no" >&6; }
16150 fi
16151
16152
16153 fi
16154 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16155
16156
16157 if test -n "$RANLIB_FOR_TARGET"; then
16158   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16159 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16160   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16161 fi
16162
16163 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16164   for ncn_progname in ranlib; do
16165     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16166 set dummy ${ncn_progname}; ac_word=$2
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16168 $as_echo_n "checking for $ac_word... " >&6; }
16169 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16170   $as_echo_n "(cached) " >&6
16171 else
16172   if test -n "$RANLIB_FOR_TARGET"; then
16173   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16174 else
16175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16176 for as_dir in $PATH
16177 do
16178   IFS=$as_save_IFS
16179   test -z "$as_dir" && as_dir=.
16180     for ac_exec_ext in '' $ac_executable_extensions; do
16181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16182     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16184     break 2
16185   fi
16186 done
16187   done
16188 IFS=$as_save_IFS
16189
16190 fi
16191 fi
16192 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16193 if test -n "$RANLIB_FOR_TARGET"; then
16194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16195 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16196 else
16197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16198 $as_echo "no" >&6; }
16199 fi
16200
16201
16202   done
16203 fi
16204
16205 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16206   for ncn_progname in ranlib; do
16207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16208 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16209     if test -x $with_build_time_tools/${ncn_progname}; then
16210       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16211       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16212 $as_echo "yes" >&6; }
16213       break
16214     else
16215       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16216 $as_echo "no" >&6; }
16217     fi
16218   done
16219 fi
16220
16221 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16222   for ncn_progname in ranlib; do
16223     if test -n "$ncn_target_tool_prefix"; then
16224       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16225 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16227 $as_echo_n "checking for $ac_word... " >&6; }
16228 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16229   $as_echo_n "(cached) " >&6
16230 else
16231   if test -n "$RANLIB_FOR_TARGET"; then
16232   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16233 else
16234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16235 for as_dir in $PATH
16236 do
16237   IFS=$as_save_IFS
16238   test -z "$as_dir" && as_dir=.
16239     for ac_exec_ext in '' $ac_executable_extensions; do
16240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16241     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16243     break 2
16244   fi
16245 done
16246   done
16247 IFS=$as_save_IFS
16248
16249 fi
16250 fi
16251 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16252 if test -n "$RANLIB_FOR_TARGET"; then
16253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16254 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16255 else
16256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16257 $as_echo "no" >&6; }
16258 fi
16259
16260
16261     fi
16262     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16263       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16264 set dummy ${ncn_progname}; ac_word=$2
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16266 $as_echo_n "checking for $ac_word... " >&6; }
16267 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16268   $as_echo_n "(cached) " >&6
16269 else
16270   if test -n "$RANLIB_FOR_TARGET"; then
16271   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16272 else
16273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16274 for as_dir in $PATH
16275 do
16276   IFS=$as_save_IFS
16277   test -z "$as_dir" && as_dir=.
16278     for ac_exec_ext in '' $ac_executable_extensions; do
16279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16280     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16282     break 2
16283   fi
16284 done
16285   done
16286 IFS=$as_save_IFS
16287
16288 fi
16289 fi
16290 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16291 if test -n "$RANLIB_FOR_TARGET"; then
16292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16293 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16294 else
16295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16296 $as_echo "no" >&6; }
16297 fi
16298
16299
16300     fi
16301     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16302   done
16303 fi
16304
16305 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16306   set dummy ranlib
16307   if test $build = $target ; then
16308     RANLIB_FOR_TARGET="$2"
16309   else
16310     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16311   fi
16312 else
16313   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16314 fi
16315
16316 else
16317   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16318 fi
16319
16320
16321
16322
16323 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16324   if test -n "$with_build_time_tools"; then
16325     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16326 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16327     if test -x $with_build_time_tools/readelf; then
16328       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16329       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16330       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16331 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16332     else
16333       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16334 $as_echo "no" >&6; }
16335     fi
16336   elif test $build != $host && test $have_gcc_for_target = yes; then
16337     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16338     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16339     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16340   fi
16341 fi
16342 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16343   # Extract the first word of "readelf", so it can be a program name with args.
16344 set dummy readelf; ac_word=$2
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16346 $as_echo_n "checking for $ac_word... " >&6; }
16347 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16348   $as_echo_n "(cached) " >&6
16349 else
16350   case $READELF_FOR_TARGET in
16351   [\\/]* | ?:[\\/]*)
16352   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16353   ;;
16354   *)
16355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16356 for as_dir in $gcc_cv_tool_dirs
16357 do
16358   IFS=$as_save_IFS
16359   test -z "$as_dir" && as_dir=.
16360     for ac_exec_ext in '' $ac_executable_extensions; do
16361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16362     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16364     break 2
16365   fi
16366 done
16367   done
16368 IFS=$as_save_IFS
16369
16370   ;;
16371 esac
16372 fi
16373 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16374 if test -n "$READELF_FOR_TARGET"; then
16375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16376 $as_echo "$READELF_FOR_TARGET" >&6; }
16377 else
16378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16379 $as_echo "no" >&6; }
16380 fi
16381
16382
16383 fi
16384 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16385
16386
16387 if test -n "$READELF_FOR_TARGET"; then
16388   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16389 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16390   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16391 fi
16392
16393 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16394   for ncn_progname in readelf; do
16395     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16396 set dummy ${ncn_progname}; ac_word=$2
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16398 $as_echo_n "checking for $ac_word... " >&6; }
16399 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16400   $as_echo_n "(cached) " >&6
16401 else
16402   if test -n "$READELF_FOR_TARGET"; then
16403   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16404 else
16405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16406 for as_dir in $PATH
16407 do
16408   IFS=$as_save_IFS
16409   test -z "$as_dir" && as_dir=.
16410     for ac_exec_ext in '' $ac_executable_extensions; do
16411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16412     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16414     break 2
16415   fi
16416 done
16417   done
16418 IFS=$as_save_IFS
16419
16420 fi
16421 fi
16422 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16423 if test -n "$READELF_FOR_TARGET"; then
16424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16425 $as_echo "$READELF_FOR_TARGET" >&6; }
16426 else
16427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16428 $as_echo "no" >&6; }
16429 fi
16430
16431
16432   done
16433 fi
16434
16435 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16436   for ncn_progname in readelf; do
16437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16438 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16439     if test -x $with_build_time_tools/${ncn_progname}; then
16440       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16441       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16442 $as_echo "yes" >&6; }
16443       break
16444     else
16445       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16446 $as_echo "no" >&6; }
16447     fi
16448   done
16449 fi
16450
16451 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16452   for ncn_progname in readelf; do
16453     if test -n "$ncn_target_tool_prefix"; then
16454       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16455 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16457 $as_echo_n "checking for $ac_word... " >&6; }
16458 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16459   $as_echo_n "(cached) " >&6
16460 else
16461   if test -n "$READELF_FOR_TARGET"; then
16462   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16463 else
16464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16465 for as_dir in $PATH
16466 do
16467   IFS=$as_save_IFS
16468   test -z "$as_dir" && as_dir=.
16469     for ac_exec_ext in '' $ac_executable_extensions; do
16470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16471     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16473     break 2
16474   fi
16475 done
16476   done
16477 IFS=$as_save_IFS
16478
16479 fi
16480 fi
16481 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16482 if test -n "$READELF_FOR_TARGET"; then
16483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16484 $as_echo "$READELF_FOR_TARGET" >&6; }
16485 else
16486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16487 $as_echo "no" >&6; }
16488 fi
16489
16490
16491     fi
16492     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16493       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16494 set dummy ${ncn_progname}; ac_word=$2
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16496 $as_echo_n "checking for $ac_word... " >&6; }
16497 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16498   $as_echo_n "(cached) " >&6
16499 else
16500   if test -n "$READELF_FOR_TARGET"; then
16501   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16502 else
16503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16504 for as_dir in $PATH
16505 do
16506   IFS=$as_save_IFS
16507   test -z "$as_dir" && as_dir=.
16508     for ac_exec_ext in '' $ac_executable_extensions; do
16509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16510     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16512     break 2
16513   fi
16514 done
16515   done
16516 IFS=$as_save_IFS
16517
16518 fi
16519 fi
16520 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16521 if test -n "$READELF_FOR_TARGET"; then
16522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16523 $as_echo "$READELF_FOR_TARGET" >&6; }
16524 else
16525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16526 $as_echo "no" >&6; }
16527 fi
16528
16529
16530     fi
16531     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16532   done
16533 fi
16534
16535 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16536   set dummy readelf
16537   if test $build = $target ; then
16538     READELF_FOR_TARGET="$2"
16539   else
16540     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16541   fi
16542 else
16543   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16544 fi
16545
16546 else
16547   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16548 fi
16549
16550
16551
16552
16553 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16554   if test -n "$with_build_time_tools"; then
16555     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16556 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16557     if test -x $with_build_time_tools/strip; then
16558       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16559       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16560       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16561 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16562     else
16563       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16564 $as_echo "no" >&6; }
16565     fi
16566   elif test $build != $host && test $have_gcc_for_target = yes; then
16567     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16568     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16569     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16570   fi
16571 fi
16572 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16573   # Extract the first word of "strip", so it can be a program name with args.
16574 set dummy strip; ac_word=$2
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16576 $as_echo_n "checking for $ac_word... " >&6; }
16577 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16578   $as_echo_n "(cached) " >&6
16579 else
16580   case $STRIP_FOR_TARGET in
16581   [\\/]* | ?:[\\/]*)
16582   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16583   ;;
16584   *)
16585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16586 for as_dir in $gcc_cv_tool_dirs
16587 do
16588   IFS=$as_save_IFS
16589   test -z "$as_dir" && as_dir=.
16590     for ac_exec_ext in '' $ac_executable_extensions; do
16591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16592     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16594     break 2
16595   fi
16596 done
16597   done
16598 IFS=$as_save_IFS
16599
16600   ;;
16601 esac
16602 fi
16603 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16604 if test -n "$STRIP_FOR_TARGET"; then
16605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16606 $as_echo "$STRIP_FOR_TARGET" >&6; }
16607 else
16608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16609 $as_echo "no" >&6; }
16610 fi
16611
16612
16613 fi
16614 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16615
16616
16617 if test -n "$STRIP_FOR_TARGET"; then
16618   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16619 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16620   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16621 fi
16622
16623 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16624   for ncn_progname in strip; do
16625     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16626 set dummy ${ncn_progname}; ac_word=$2
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16628 $as_echo_n "checking for $ac_word... " >&6; }
16629 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16630   $as_echo_n "(cached) " >&6
16631 else
16632   if test -n "$STRIP_FOR_TARGET"; then
16633   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16634 else
16635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16636 for as_dir in $PATH
16637 do
16638   IFS=$as_save_IFS
16639   test -z "$as_dir" && as_dir=.
16640     for ac_exec_ext in '' $ac_executable_extensions; do
16641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16642     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16644     break 2
16645   fi
16646 done
16647   done
16648 IFS=$as_save_IFS
16649
16650 fi
16651 fi
16652 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16653 if test -n "$STRIP_FOR_TARGET"; then
16654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16655 $as_echo "$STRIP_FOR_TARGET" >&6; }
16656 else
16657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16658 $as_echo "no" >&6; }
16659 fi
16660
16661
16662   done
16663 fi
16664
16665 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16666   for ncn_progname in strip; do
16667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16668 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16669     if test -x $with_build_time_tools/${ncn_progname}; then
16670       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16671       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16672 $as_echo "yes" >&6; }
16673       break
16674     else
16675       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16676 $as_echo "no" >&6; }
16677     fi
16678   done
16679 fi
16680
16681 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16682   for ncn_progname in strip; do
16683     if test -n "$ncn_target_tool_prefix"; then
16684       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16685 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16687 $as_echo_n "checking for $ac_word... " >&6; }
16688 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16689   $as_echo_n "(cached) " >&6
16690 else
16691   if test -n "$STRIP_FOR_TARGET"; then
16692   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16693 else
16694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16695 for as_dir in $PATH
16696 do
16697   IFS=$as_save_IFS
16698   test -z "$as_dir" && as_dir=.
16699     for ac_exec_ext in '' $ac_executable_extensions; do
16700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16701     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16703     break 2
16704   fi
16705 done
16706   done
16707 IFS=$as_save_IFS
16708
16709 fi
16710 fi
16711 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16712 if test -n "$STRIP_FOR_TARGET"; then
16713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16714 $as_echo "$STRIP_FOR_TARGET" >&6; }
16715 else
16716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16717 $as_echo "no" >&6; }
16718 fi
16719
16720
16721     fi
16722     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16723       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16724 set dummy ${ncn_progname}; ac_word=$2
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16726 $as_echo_n "checking for $ac_word... " >&6; }
16727 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16728   $as_echo_n "(cached) " >&6
16729 else
16730   if test -n "$STRIP_FOR_TARGET"; then
16731   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16732 else
16733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16734 for as_dir in $PATH
16735 do
16736   IFS=$as_save_IFS
16737   test -z "$as_dir" && as_dir=.
16738     for ac_exec_ext in '' $ac_executable_extensions; do
16739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16740     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16742     break 2
16743   fi
16744 done
16745   done
16746 IFS=$as_save_IFS
16747
16748 fi
16749 fi
16750 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16751 if test -n "$STRIP_FOR_TARGET"; then
16752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16753 $as_echo "$STRIP_FOR_TARGET" >&6; }
16754 else
16755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16756 $as_echo "no" >&6; }
16757 fi
16758
16759
16760     fi
16761     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16762   done
16763 fi
16764
16765 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16766   set dummy strip
16767   if test $build = $target ; then
16768     STRIP_FOR_TARGET="$2"
16769   else
16770     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16771   fi
16772 else
16773   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16774 fi
16775
16776 else
16777   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16778 fi
16779
16780
16781
16782
16783 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16784   if test -n "$with_build_time_tools"; then
16785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16786 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16787     if test -x $with_build_time_tools/windres; then
16788       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16789       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16790       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16791 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16792     else
16793       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16794 $as_echo "no" >&6; }
16795     fi
16796   elif test $build != $host && test $have_gcc_for_target = yes; then
16797     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16798     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16799     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16800   fi
16801 fi
16802 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16803   # Extract the first word of "windres", so it can be a program name with args.
16804 set dummy windres; ac_word=$2
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16806 $as_echo_n "checking for $ac_word... " >&6; }
16807 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16808   $as_echo_n "(cached) " >&6
16809 else
16810   case $WINDRES_FOR_TARGET in
16811   [\\/]* | ?:[\\/]*)
16812   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16813   ;;
16814   *)
16815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16816 for as_dir in $gcc_cv_tool_dirs
16817 do
16818   IFS=$as_save_IFS
16819   test -z "$as_dir" && as_dir=.
16820     for ac_exec_ext in '' $ac_executable_extensions; do
16821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16822     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16824     break 2
16825   fi
16826 done
16827   done
16828 IFS=$as_save_IFS
16829
16830   ;;
16831 esac
16832 fi
16833 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16834 if test -n "$WINDRES_FOR_TARGET"; then
16835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16836 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16837 else
16838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16839 $as_echo "no" >&6; }
16840 fi
16841
16842
16843 fi
16844 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16845
16846
16847 if test -n "$WINDRES_FOR_TARGET"; then
16848   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16849 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16850   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16851 fi
16852
16853 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16854   for ncn_progname in windres; do
16855     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16856 set dummy ${ncn_progname}; ac_word=$2
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16858 $as_echo_n "checking for $ac_word... " >&6; }
16859 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16860   $as_echo_n "(cached) " >&6
16861 else
16862   if test -n "$WINDRES_FOR_TARGET"; then
16863   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16864 else
16865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16866 for as_dir in $PATH
16867 do
16868   IFS=$as_save_IFS
16869   test -z "$as_dir" && as_dir=.
16870     for ac_exec_ext in '' $ac_executable_extensions; do
16871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16872     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16874     break 2
16875   fi
16876 done
16877   done
16878 IFS=$as_save_IFS
16879
16880 fi
16881 fi
16882 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16883 if test -n "$WINDRES_FOR_TARGET"; then
16884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16885 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16886 else
16887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16888 $as_echo "no" >&6; }
16889 fi
16890
16891
16892   done
16893 fi
16894
16895 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16896   for ncn_progname in windres; do
16897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16898 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16899     if test -x $with_build_time_tools/${ncn_progname}; then
16900       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16901       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16902 $as_echo "yes" >&6; }
16903       break
16904     else
16905       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16906 $as_echo "no" >&6; }
16907     fi
16908   done
16909 fi
16910
16911 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16912   for ncn_progname in windres; do
16913     if test -n "$ncn_target_tool_prefix"; then
16914       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16915 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16917 $as_echo_n "checking for $ac_word... " >&6; }
16918 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16919   $as_echo_n "(cached) " >&6
16920 else
16921   if test -n "$WINDRES_FOR_TARGET"; then
16922   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16923 else
16924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16925 for as_dir in $PATH
16926 do
16927   IFS=$as_save_IFS
16928   test -z "$as_dir" && as_dir=.
16929     for ac_exec_ext in '' $ac_executable_extensions; do
16930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16931     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16933     break 2
16934   fi
16935 done
16936   done
16937 IFS=$as_save_IFS
16938
16939 fi
16940 fi
16941 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16942 if test -n "$WINDRES_FOR_TARGET"; then
16943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16944 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16945 else
16946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16947 $as_echo "no" >&6; }
16948 fi
16949
16950
16951     fi
16952     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16953       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16954 set dummy ${ncn_progname}; ac_word=$2
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16956 $as_echo_n "checking for $ac_word... " >&6; }
16957 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16958   $as_echo_n "(cached) " >&6
16959 else
16960   if test -n "$WINDRES_FOR_TARGET"; then
16961   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16962 else
16963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16964 for as_dir in $PATH
16965 do
16966   IFS=$as_save_IFS
16967   test -z "$as_dir" && as_dir=.
16968     for ac_exec_ext in '' $ac_executable_extensions; do
16969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16970     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16972     break 2
16973   fi
16974 done
16975   done
16976 IFS=$as_save_IFS
16977
16978 fi
16979 fi
16980 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16981 if test -n "$WINDRES_FOR_TARGET"; then
16982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16983 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16984 else
16985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16986 $as_echo "no" >&6; }
16987 fi
16988
16989
16990     fi
16991     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16992   done
16993 fi
16994
16995 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16996   set dummy windres
16997   if test $build = $target ; then
16998     WINDRES_FOR_TARGET="$2"
16999   else
17000     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17001   fi
17002 else
17003   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17004 fi
17005
17006 else
17007   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17008 fi
17009
17010
17011
17012
17013 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17014   if test -n "$with_build_time_tools"; then
17015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17016 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17017     if test -x $with_build_time_tools/windmc; then
17018       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17019       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17020       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17021 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17022     else
17023       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17024 $as_echo "no" >&6; }
17025     fi
17026   elif test $build != $host && test $have_gcc_for_target = yes; then
17027     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17028     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17029     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17030   fi
17031 fi
17032 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17033   # Extract the first word of "windmc", so it can be a program name with args.
17034 set dummy windmc; ac_word=$2
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17036 $as_echo_n "checking for $ac_word... " >&6; }
17037 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17038   $as_echo_n "(cached) " >&6
17039 else
17040   case $WINDMC_FOR_TARGET in
17041   [\\/]* | ?:[\\/]*)
17042   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17043   ;;
17044   *)
17045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17046 for as_dir in $gcc_cv_tool_dirs
17047 do
17048   IFS=$as_save_IFS
17049   test -z "$as_dir" && as_dir=.
17050     for ac_exec_ext in '' $ac_executable_extensions; do
17051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17052     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17054     break 2
17055   fi
17056 done
17057   done
17058 IFS=$as_save_IFS
17059
17060   ;;
17061 esac
17062 fi
17063 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17064 if test -n "$WINDMC_FOR_TARGET"; then
17065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17066 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17067 else
17068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17069 $as_echo "no" >&6; }
17070 fi
17071
17072
17073 fi
17074 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17075
17076
17077 if test -n "$WINDMC_FOR_TARGET"; then
17078   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17079 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17080   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17081 fi
17082
17083 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17084   for ncn_progname in windmc; do
17085     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17086 set dummy ${ncn_progname}; ac_word=$2
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17088 $as_echo_n "checking for $ac_word... " >&6; }
17089 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17090   $as_echo_n "(cached) " >&6
17091 else
17092   if test -n "$WINDMC_FOR_TARGET"; then
17093   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17094 else
17095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17096 for as_dir in $PATH
17097 do
17098   IFS=$as_save_IFS
17099   test -z "$as_dir" && as_dir=.
17100     for ac_exec_ext in '' $ac_executable_extensions; do
17101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17102     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17104     break 2
17105   fi
17106 done
17107   done
17108 IFS=$as_save_IFS
17109
17110 fi
17111 fi
17112 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17113 if test -n "$WINDMC_FOR_TARGET"; then
17114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17115 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17116 else
17117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17118 $as_echo "no" >&6; }
17119 fi
17120
17121
17122   done
17123 fi
17124
17125 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17126   for ncn_progname in windmc; do
17127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17128 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17129     if test -x $with_build_time_tools/${ncn_progname}; then
17130       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17131       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17132 $as_echo "yes" >&6; }
17133       break
17134     else
17135       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17136 $as_echo "no" >&6; }
17137     fi
17138   done
17139 fi
17140
17141 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17142   for ncn_progname in windmc; do
17143     if test -n "$ncn_target_tool_prefix"; then
17144       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17145 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17147 $as_echo_n "checking for $ac_word... " >&6; }
17148 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17149   $as_echo_n "(cached) " >&6
17150 else
17151   if test -n "$WINDMC_FOR_TARGET"; then
17152   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17153 else
17154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17155 for as_dir in $PATH
17156 do
17157   IFS=$as_save_IFS
17158   test -z "$as_dir" && as_dir=.
17159     for ac_exec_ext in '' $ac_executable_extensions; do
17160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17161     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17163     break 2
17164   fi
17165 done
17166   done
17167 IFS=$as_save_IFS
17168
17169 fi
17170 fi
17171 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17172 if test -n "$WINDMC_FOR_TARGET"; then
17173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17174 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17175 else
17176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17177 $as_echo "no" >&6; }
17178 fi
17179
17180
17181     fi
17182     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17183       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17184 set dummy ${ncn_progname}; ac_word=$2
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17186 $as_echo_n "checking for $ac_word... " >&6; }
17187 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17188   $as_echo_n "(cached) " >&6
17189 else
17190   if test -n "$WINDMC_FOR_TARGET"; then
17191   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17192 else
17193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17194 for as_dir in $PATH
17195 do
17196   IFS=$as_save_IFS
17197   test -z "$as_dir" && as_dir=.
17198     for ac_exec_ext in '' $ac_executable_extensions; do
17199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17200     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17202     break 2
17203   fi
17204 done
17205   done
17206 IFS=$as_save_IFS
17207
17208 fi
17209 fi
17210 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17211 if test -n "$WINDMC_FOR_TARGET"; then
17212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17213 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17214 else
17215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17216 $as_echo "no" >&6; }
17217 fi
17218
17219
17220     fi
17221     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17222   done
17223 fi
17224
17225 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17226   set dummy windmc
17227   if test $build = $target ; then
17228     WINDMC_FOR_TARGET="$2"
17229   else
17230     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17231   fi
17232 else
17233   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17234 fi
17235
17236 else
17237   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17238 fi
17239
17240
17241 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17242
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17244 $as_echo_n "checking where to find the target ar... " >&6; }
17245 if test "x${build}" != "x${host}" ; then
17246   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17247     # We already found the complete path
17248     ac_dir=`dirname $AR_FOR_TARGET`
17249     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17250 $as_echo "pre-installed in $ac_dir" >&6; }
17251   else
17252     # Canadian cross, just use what we found
17253     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17254 $as_echo "pre-installed" >&6; }
17255   fi
17256 else
17257   ok=yes
17258   case " ${configdirs} " in
17259     *" binutils "*) ;;
17260     *) ok=no ;;
17261   esac
17262
17263   if test $ok = yes; then
17264     # An in-tree tool is available and we can use it
17265     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17267 $as_echo "just compiled" >&6; }
17268   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17269     # We already found the complete path
17270     ac_dir=`dirname $AR_FOR_TARGET`
17271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17272 $as_echo "pre-installed in $ac_dir" >&6; }
17273   elif test "x$target" = "x$host"; then
17274     # We can use an host tool
17275     AR_FOR_TARGET='$(AR)'
17276     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17277 $as_echo "host tool" >&6; }
17278   else
17279     # We need a cross tool
17280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17281 $as_echo "pre-installed" >&6; }
17282   fi
17283 fi
17284
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17286 $as_echo_n "checking where to find the target as... " >&6; }
17287 if test "x${build}" != "x${host}" ; then
17288   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17289     # We already found the complete path
17290     ac_dir=`dirname $AS_FOR_TARGET`
17291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17292 $as_echo "pre-installed in $ac_dir" >&6; }
17293   else
17294     # Canadian cross, just use what we found
17295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17296 $as_echo "pre-installed" >&6; }
17297   fi
17298 else
17299   ok=yes
17300   case " ${configdirs} " in
17301     *" gas "*) ;;
17302     *) ok=no ;;
17303   esac
17304
17305   if test $ok = yes; then
17306     # An in-tree tool is available and we can use it
17307     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17309 $as_echo "just compiled" >&6; }
17310   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17311     # We already found the complete path
17312     ac_dir=`dirname $AS_FOR_TARGET`
17313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17314 $as_echo "pre-installed in $ac_dir" >&6; }
17315   elif test "x$target" = "x$host"; then
17316     # We can use an host tool
17317     AS_FOR_TARGET='$(AS)'
17318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17319 $as_echo "host tool" >&6; }
17320   else
17321     # We need a cross tool
17322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17323 $as_echo "pre-installed" >&6; }
17324   fi
17325 fi
17326
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17328 $as_echo_n "checking where to find the target cc... " >&6; }
17329 if test "x${build}" != "x${host}" ; then
17330   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17331     # We already found the complete path
17332     ac_dir=`dirname $CC_FOR_TARGET`
17333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17334 $as_echo "pre-installed in $ac_dir" >&6; }
17335   else
17336     # Canadian cross, just use what we found
17337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17338 $as_echo "pre-installed" >&6; }
17339   fi
17340 else
17341   ok=yes
17342   case " ${configdirs} " in
17343     *" gcc "*) ;;
17344     *) ok=no ;;
17345   esac
17346
17347   if test $ok = yes; then
17348     # An in-tree tool is available and we can use it
17349     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17351 $as_echo "just compiled" >&6; }
17352   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17353     # We already found the complete path
17354     ac_dir=`dirname $CC_FOR_TARGET`
17355     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17356 $as_echo "pre-installed in $ac_dir" >&6; }
17357   elif test "x$target" = "x$host"; then
17358     # We can use an host tool
17359     CC_FOR_TARGET='$(CC)'
17360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17361 $as_echo "host tool" >&6; }
17362   else
17363     # We need a cross tool
17364     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17365 $as_echo "pre-installed" >&6; }
17366   fi
17367 fi
17368
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17370 $as_echo_n "checking where to find the target c++... " >&6; }
17371 if test "x${build}" != "x${host}" ; then
17372   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17373     # We already found the complete path
17374     ac_dir=`dirname $CXX_FOR_TARGET`
17375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17376 $as_echo "pre-installed in $ac_dir" >&6; }
17377   else
17378     # Canadian cross, just use what we found
17379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17380 $as_echo "pre-installed" >&6; }
17381   fi
17382 else
17383   ok=yes
17384   case " ${configdirs} " in
17385     *" gcc "*) ;;
17386     *) ok=no ;;
17387   esac
17388   case ,${enable_languages}, in
17389     *,c++,*) ;;
17390     *) ok=no ;;
17391   esac
17392   if test $ok = yes; then
17393     # An in-tree tool is available and we can use it
17394     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'
17395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17396 $as_echo "just compiled" >&6; }
17397   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17398     # We already found the complete path
17399     ac_dir=`dirname $CXX_FOR_TARGET`
17400     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17401 $as_echo "pre-installed in $ac_dir" >&6; }
17402   elif test "x$target" = "x$host"; then
17403     # We can use an host tool
17404     CXX_FOR_TARGET='$(CXX)'
17405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17406 $as_echo "host tool" >&6; }
17407   else
17408     # We need a cross tool
17409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17410 $as_echo "pre-installed" >&6; }
17411   fi
17412 fi
17413
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17415 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17416 if test "x${build}" != "x${host}" ; then
17417   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17418     # We already found the complete path
17419     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17421 $as_echo "pre-installed in $ac_dir" >&6; }
17422   else
17423     # Canadian cross, just use what we found
17424     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17425 $as_echo "pre-installed" >&6; }
17426   fi
17427 else
17428   ok=yes
17429   case " ${configdirs} " in
17430     *" gcc "*) ;;
17431     *) ok=no ;;
17432   esac
17433   case ,${enable_languages}, in
17434     *,c++,*) ;;
17435     *) ok=no ;;
17436   esac
17437   if test $ok = yes; then
17438     # An in-tree tool is available and we can use it
17439     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'
17440     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17441 $as_echo "just compiled" >&6; }
17442   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17443     # We already found the complete path
17444     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17446 $as_echo "pre-installed in $ac_dir" >&6; }
17447   elif test "x$target" = "x$host"; then
17448     # We can use an host tool
17449     RAW_CXX_FOR_TARGET='$(CXX)'
17450     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17451 $as_echo "host tool" >&6; }
17452   else
17453     # We need a cross tool
17454     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17455 $as_echo "pre-installed" >&6; }
17456   fi
17457 fi
17458
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17460 $as_echo_n "checking where to find the target dlltool... " >&6; }
17461 if test "x${build}" != "x${host}" ; then
17462   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17463     # We already found the complete path
17464     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17466 $as_echo "pre-installed in $ac_dir" >&6; }
17467   else
17468     # Canadian cross, just use what we found
17469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17470 $as_echo "pre-installed" >&6; }
17471   fi
17472 else
17473   ok=yes
17474   case " ${configdirs} " in
17475     *" binutils "*) ;;
17476     *) ok=no ;;
17477   esac
17478
17479   if test $ok = yes; then
17480     # An in-tree tool is available and we can use it
17481     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17483 $as_echo "just compiled" >&6; }
17484   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17485     # We already found the complete path
17486     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17488 $as_echo "pre-installed in $ac_dir" >&6; }
17489   elif test "x$target" = "x$host"; then
17490     # We can use an host tool
17491     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17493 $as_echo "host tool" >&6; }
17494   else
17495     # We need a cross tool
17496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17497 $as_echo "pre-installed" >&6; }
17498   fi
17499 fi
17500
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17502 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17503 if test "x${build}" != "x${host}" ; then
17504   if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17505     # We already found the complete path
17506     ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17508 $as_echo "pre-installed in $ac_dir" >&6; }
17509   else
17510     # Canadian cross, just use what we found
17511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17512 $as_echo "pre-installed" >&6; }
17513   fi
17514 else
17515   if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17516     # We already found the complete path
17517     ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17519 $as_echo "pre-installed in $ac_dir" >&6; }
17520   elif test "x$target" = "x$host"; then
17521     # We can use an host tool
17522     DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17523     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17524 $as_echo "host tool" >&6; }
17525   else
17526     # We need a cross tool
17527     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17528 $as_echo "pre-installed" >&6; }
17529   fi
17530 fi
17531
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17533 $as_echo_n "checking where to find the target gcc... " >&6; }
17534 if test "x${build}" != "x${host}" ; then
17535   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17536     # We already found the complete path
17537     ac_dir=`dirname $GCC_FOR_TARGET`
17538     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17539 $as_echo "pre-installed in $ac_dir" >&6; }
17540   else
17541     # Canadian cross, just use what we found
17542     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17543 $as_echo "pre-installed" >&6; }
17544   fi
17545 else
17546   ok=yes
17547   case " ${configdirs} " in
17548     *" gcc "*) ;;
17549     *) ok=no ;;
17550   esac
17551
17552   if test $ok = yes; then
17553     # An in-tree tool is available and we can use it
17554     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17556 $as_echo "just compiled" >&6; }
17557   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17558     # We already found the complete path
17559     ac_dir=`dirname $GCC_FOR_TARGET`
17560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17561 $as_echo "pre-installed in $ac_dir" >&6; }
17562   elif test "x$target" = "x$host"; then
17563     # We can use an host tool
17564     GCC_FOR_TARGET='$()'
17565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17566 $as_echo "host tool" >&6; }
17567   else
17568     # We need a cross tool
17569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17570 $as_echo "pre-installed" >&6; }
17571   fi
17572 fi
17573
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17575 $as_echo_n "checking where to find the target gfortran... " >&6; }
17576 if test "x${build}" != "x${host}" ; then
17577   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17578     # We already found the complete path
17579     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17581 $as_echo "pre-installed in $ac_dir" >&6; }
17582   else
17583     # Canadian cross, just use what we found
17584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17585 $as_echo "pre-installed" >&6; }
17586   fi
17587 else
17588   ok=yes
17589   case " ${configdirs} " in
17590     *" gcc "*) ;;
17591     *) ok=no ;;
17592   esac
17593   case ,${enable_languages}, in
17594     *,fortran,*) ;;
17595     *) ok=no ;;
17596   esac
17597   if test $ok = yes; then
17598     # An in-tree tool is available and we can use it
17599     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17600     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17601 $as_echo "just compiled" >&6; }
17602   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17603     # We already found the complete path
17604     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17606 $as_echo "pre-installed in $ac_dir" >&6; }
17607   elif test "x$target" = "x$host"; then
17608     # We can use an host tool
17609     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17611 $as_echo "host tool" >&6; }
17612   else
17613     # We need a cross tool
17614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17615 $as_echo "pre-installed" >&6; }
17616   fi
17617 fi
17618
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17620 $as_echo_n "checking where to find the target gccgo... " >&6; }
17621 if test "x${build}" != "x${host}" ; then
17622   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17623     # We already found the complete path
17624     ac_dir=`dirname $GOC_FOR_TARGET`
17625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17626 $as_echo "pre-installed in $ac_dir" >&6; }
17627   else
17628     # Canadian cross, just use what we found
17629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17630 $as_echo "pre-installed" >&6; }
17631   fi
17632 else
17633   ok=yes
17634   case " ${configdirs} " in
17635     *" gcc "*) ;;
17636     *) ok=no ;;
17637   esac
17638   case ,${enable_languages}, in
17639     *,go,*) ;;
17640     *) ok=no ;;
17641   esac
17642   if test $ok = yes; then
17643     # An in-tree tool is available and we can use it
17644     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17645     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17646 $as_echo "just compiled" >&6; }
17647   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17648     # We already found the complete path
17649     ac_dir=`dirname $GOC_FOR_TARGET`
17650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17651 $as_echo "pre-installed in $ac_dir" >&6; }
17652   elif test "x$target" = "x$host"; then
17653     # We can use an host tool
17654     GOC_FOR_TARGET='$(GOC)'
17655     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17656 $as_echo "host tool" >&6; }
17657   else
17658     # We need a cross tool
17659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17660 $as_echo "pre-installed" >&6; }
17661   fi
17662 fi
17663
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17665 $as_echo_n "checking where to find the target gdc... " >&6; }
17666 if test "x${build}" != "x${host}" ; then
17667   if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17668     # We already found the complete path
17669     ac_dir=`dirname $GDC_FOR_TARGET`
17670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17671 $as_echo "pre-installed in $ac_dir" >&6; }
17672   else
17673     # Canadian cross, just use what we found
17674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17675 $as_echo "pre-installed" >&6; }
17676   fi
17677 else
17678   ok=yes
17679   case " ${configdirs} " in
17680     *" gcc "*) ;;
17681     *) ok=no ;;
17682   esac
17683   case ,${enable_languages}, in
17684     *,d,*) ;;
17685     *) ok=no ;;
17686   esac
17687   if test $ok = yes; then
17688     # An in-tree tool is available and we can use it
17689     GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17691 $as_echo "just compiled" >&6; }
17692   elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17693     # We already found the complete path
17694     ac_dir=`dirname $GDC_FOR_TARGET`
17695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17696 $as_echo "pre-installed in $ac_dir" >&6; }
17697   elif test "x$target" = "x$host"; then
17698     # We can use an host tool
17699     GDC_FOR_TARGET='$(GDC)'
17700     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17701 $as_echo "host tool" >&6; }
17702   else
17703     # We need a cross tool
17704     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17705 $as_echo "pre-installed" >&6; }
17706   fi
17707 fi
17708
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17710 $as_echo_n "checking where to find the target ld... " >&6; }
17711 if test "x${build}" != "x${host}" ; then
17712   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17713     # We already found the complete path
17714     ac_dir=`dirname $LD_FOR_TARGET`
17715     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17716 $as_echo "pre-installed in $ac_dir" >&6; }
17717   else
17718     # Canadian cross, just use what we found
17719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17720 $as_echo "pre-installed" >&6; }
17721   fi
17722 else
17723   ok=yes
17724   case " ${configdirs} " in
17725     *" ld "*) ;;
17726     *) ok=no ;;
17727   esac
17728
17729   if test $ok = yes; then
17730     # An in-tree tool is available and we can use it
17731     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17733 $as_echo "just compiled" >&6; }
17734   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17735     # We already found the complete path
17736     ac_dir=`dirname $LD_FOR_TARGET`
17737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17738 $as_echo "pre-installed in $ac_dir" >&6; }
17739   elif test "x$target" = "x$host"; then
17740     # We can use an host tool
17741     LD_FOR_TARGET='$(LD)'
17742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17743 $as_echo "host tool" >&6; }
17744   else
17745     # We need a cross tool
17746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17747 $as_echo "pre-installed" >&6; }
17748   fi
17749 fi
17750
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17752 $as_echo_n "checking where to find the target lipo... " >&6; }
17753 if test "x${build}" != "x${host}" ; then
17754   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17755     # We already found the complete path
17756     ac_dir=`dirname $LIPO_FOR_TARGET`
17757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17758 $as_echo "pre-installed in $ac_dir" >&6; }
17759   else
17760     # Canadian cross, just use what we found
17761     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17762 $as_echo "pre-installed" >&6; }
17763   fi
17764 else
17765   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17766     # We already found the complete path
17767     ac_dir=`dirname $LIPO_FOR_TARGET`
17768     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17769 $as_echo "pre-installed in $ac_dir" >&6; }
17770   elif test "x$target" = "x$host"; then
17771     # We can use an host tool
17772     LIPO_FOR_TARGET='$(LIPO)'
17773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17774 $as_echo "host tool" >&6; }
17775   else
17776     # We need a cross tool
17777     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17778 $as_echo "pre-installed" >&6; }
17779   fi
17780 fi
17781
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17783 $as_echo_n "checking where to find the target nm... " >&6; }
17784 if test "x${build}" != "x${host}" ; then
17785   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17786     # We already found the complete path
17787     ac_dir=`dirname $NM_FOR_TARGET`
17788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17789 $as_echo "pre-installed in $ac_dir" >&6; }
17790   else
17791     # Canadian cross, just use what we found
17792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17793 $as_echo "pre-installed" >&6; }
17794   fi
17795 else
17796   ok=yes
17797   case " ${configdirs} " in
17798     *" binutils "*) ;;
17799     *) ok=no ;;
17800   esac
17801
17802   if test $ok = yes; then
17803     # An in-tree tool is available and we can use it
17804     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17806 $as_echo "just compiled" >&6; }
17807   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17808     # We already found the complete path
17809     ac_dir=`dirname $NM_FOR_TARGET`
17810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17811 $as_echo "pre-installed in $ac_dir" >&6; }
17812   elif test "x$target" = "x$host"; then
17813     # We can use an host tool
17814     NM_FOR_TARGET='$(NM)'
17815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17816 $as_echo "host tool" >&6; }
17817   else
17818     # We need a cross tool
17819     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17820 $as_echo "pre-installed" >&6; }
17821   fi
17822 fi
17823
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17825 $as_echo_n "checking where to find the target objcopy... " >&6; }
17826 if test "x${build}" != "x${host}" ; then
17827   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17828     # We already found the complete path
17829     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17830     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17831 $as_echo "pre-installed in $ac_dir" >&6; }
17832   else
17833     # Canadian cross, just use what we found
17834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17835 $as_echo "pre-installed" >&6; }
17836   fi
17837 else
17838   ok=yes
17839   case " ${configdirs} " in
17840     *" binutils "*) ;;
17841     *) ok=no ;;
17842   esac
17843
17844   if test $ok = yes; then
17845     # An in-tree tool is available and we can use it
17846     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17847     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17848 $as_echo "just compiled" >&6; }
17849   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17850     # We already found the complete path
17851     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17853 $as_echo "pre-installed in $ac_dir" >&6; }
17854   elif test "x$target" = "x$host"; then
17855     # We can use an host tool
17856     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17858 $as_echo "host tool" >&6; }
17859   else
17860     # We need a cross tool
17861     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17862 $as_echo "pre-installed" >&6; }
17863   fi
17864 fi
17865
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17867 $as_echo_n "checking where to find the target objdump... " >&6; }
17868 if test "x${build}" != "x${host}" ; then
17869   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17870     # We already found the complete path
17871     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17873 $as_echo "pre-installed in $ac_dir" >&6; }
17874   else
17875     # Canadian cross, just use what we found
17876     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17877 $as_echo "pre-installed" >&6; }
17878   fi
17879 else
17880   ok=yes
17881   case " ${configdirs} " in
17882     *" binutils "*) ;;
17883     *) ok=no ;;
17884   esac
17885
17886   if test $ok = yes; then
17887     # An in-tree tool is available and we can use it
17888     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17890 $as_echo "just compiled" >&6; }
17891   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17892     # We already found the complete path
17893     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17895 $as_echo "pre-installed in $ac_dir" >&6; }
17896   elif test "x$target" = "x$host"; then
17897     # We can use an host tool
17898     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17900 $as_echo "host tool" >&6; }
17901   else
17902     # We need a cross tool
17903     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17904 $as_echo "pre-installed" >&6; }
17905   fi
17906 fi
17907
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17909 $as_echo_n "checking where to find the target otool... " >&6; }
17910 if test "x${build}" != "x${host}" ; then
17911   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17912     # We already found the complete path
17913     ac_dir=`dirname $OTOOL_FOR_TARGET`
17914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17915 $as_echo "pre-installed in $ac_dir" >&6; }
17916   else
17917     # Canadian cross, just use what we found
17918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17919 $as_echo "pre-installed" >&6; }
17920   fi
17921 else
17922   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17923     # We already found the complete path
17924     ac_dir=`dirname $OTOOL_FOR_TARGET`
17925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17926 $as_echo "pre-installed in $ac_dir" >&6; }
17927   elif test "x$target" = "x$host"; then
17928     # We can use an host tool
17929     OTOOL_FOR_TARGET='$(OTOOL)'
17930     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17931 $as_echo "host tool" >&6; }
17932   else
17933     # We need a cross tool
17934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17935 $as_echo "pre-installed" >&6; }
17936   fi
17937 fi
17938
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17940 $as_echo_n "checking where to find the target ranlib... " >&6; }
17941 if test "x${build}" != "x${host}" ; then
17942   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17943     # We already found the complete path
17944     ac_dir=`dirname $RANLIB_FOR_TARGET`
17945     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17946 $as_echo "pre-installed in $ac_dir" >&6; }
17947   else
17948     # Canadian cross, just use what we found
17949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17950 $as_echo "pre-installed" >&6; }
17951   fi
17952 else
17953   ok=yes
17954   case " ${configdirs} " in
17955     *" binutils "*) ;;
17956     *) ok=no ;;
17957   esac
17958
17959   if test $ok = yes; then
17960     # An in-tree tool is available and we can use it
17961     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17963 $as_echo "just compiled" >&6; }
17964   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17965     # We already found the complete path
17966     ac_dir=`dirname $RANLIB_FOR_TARGET`
17967     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17968 $as_echo "pre-installed in $ac_dir" >&6; }
17969   elif test "x$target" = "x$host"; then
17970     # We can use an host tool
17971     RANLIB_FOR_TARGET='$(RANLIB)'
17972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17973 $as_echo "host tool" >&6; }
17974   else
17975     # We need a cross tool
17976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17977 $as_echo "pre-installed" >&6; }
17978   fi
17979 fi
17980
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17982 $as_echo_n "checking where to find the target readelf... " >&6; }
17983 if test "x${build}" != "x${host}" ; then
17984   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17985     # We already found the complete path
17986     ac_dir=`dirname $READELF_FOR_TARGET`
17987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17988 $as_echo "pre-installed in $ac_dir" >&6; }
17989   else
17990     # Canadian cross, just use what we found
17991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17992 $as_echo "pre-installed" >&6; }
17993   fi
17994 else
17995   ok=yes
17996   case " ${configdirs} " in
17997     *" binutils "*) ;;
17998     *) ok=no ;;
17999   esac
18000
18001   if test $ok = yes; then
18002     # An in-tree tool is available and we can use it
18003     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18005 $as_echo "just compiled" >&6; }
18006   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18007     # We already found the complete path
18008     ac_dir=`dirname $READELF_FOR_TARGET`
18009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18010 $as_echo "pre-installed in $ac_dir" >&6; }
18011   elif test "x$target" = "x$host"; then
18012     # We can use an host tool
18013     READELF_FOR_TARGET='$(READELF)'
18014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18015 $as_echo "host tool" >&6; }
18016   else
18017     # We need a cross tool
18018     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18019 $as_echo "pre-installed" >&6; }
18020   fi
18021 fi
18022
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18024 $as_echo_n "checking where to find the target strip... " >&6; }
18025 if test "x${build}" != "x${host}" ; then
18026   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18027     # We already found the complete path
18028     ac_dir=`dirname $STRIP_FOR_TARGET`
18029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18030 $as_echo "pre-installed in $ac_dir" >&6; }
18031   else
18032     # Canadian cross, just use what we found
18033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18034 $as_echo "pre-installed" >&6; }
18035   fi
18036 else
18037   ok=yes
18038   case " ${configdirs} " in
18039     *" binutils "*) ;;
18040     *) ok=no ;;
18041   esac
18042
18043   if test $ok = yes; then
18044     # An in-tree tool is available and we can use it
18045     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18047 $as_echo "just compiled" >&6; }
18048   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18049     # We already found the complete path
18050     ac_dir=`dirname $STRIP_FOR_TARGET`
18051     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18052 $as_echo "pre-installed in $ac_dir" >&6; }
18053   elif test "x$target" = "x$host"; then
18054     # We can use an host tool
18055     STRIP_FOR_TARGET='$(STRIP)'
18056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18057 $as_echo "host tool" >&6; }
18058   else
18059     # We need a cross tool
18060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18061 $as_echo "pre-installed" >&6; }
18062   fi
18063 fi
18064
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18066 $as_echo_n "checking where to find the target windres... " >&6; }
18067 if test "x${build}" != "x${host}" ; then
18068   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18069     # We already found the complete path
18070     ac_dir=`dirname $WINDRES_FOR_TARGET`
18071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18072 $as_echo "pre-installed in $ac_dir" >&6; }
18073   else
18074     # Canadian cross, just use what we found
18075     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18076 $as_echo "pre-installed" >&6; }
18077   fi
18078 else
18079   ok=yes
18080   case " ${configdirs} " in
18081     *" binutils "*) ;;
18082     *) ok=no ;;
18083   esac
18084
18085   if test $ok = yes; then
18086     # An in-tree tool is available and we can use it
18087     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18089 $as_echo "just compiled" >&6; }
18090   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18091     # We already found the complete path
18092     ac_dir=`dirname $WINDRES_FOR_TARGET`
18093     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18094 $as_echo "pre-installed in $ac_dir" >&6; }
18095   elif test "x$target" = "x$host"; then
18096     # We can use an host tool
18097     WINDRES_FOR_TARGET='$(WINDRES)'
18098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18099 $as_echo "host tool" >&6; }
18100   else
18101     # We need a cross tool
18102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18103 $as_echo "pre-installed" >&6; }
18104   fi
18105 fi
18106
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18108 $as_echo_n "checking where to find the target windmc... " >&6; }
18109 if test "x${build}" != "x${host}" ; then
18110   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18111     # We already found the complete path
18112     ac_dir=`dirname $WINDMC_FOR_TARGET`
18113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18114 $as_echo "pre-installed in $ac_dir" >&6; }
18115   else
18116     # Canadian cross, just use what we found
18117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18118 $as_echo "pre-installed" >&6; }
18119   fi
18120 else
18121   ok=yes
18122   case " ${configdirs} " in
18123     *" binutils "*) ;;
18124     *) ok=no ;;
18125   esac
18126
18127   if test $ok = yes; then
18128     # An in-tree tool is available and we can use it
18129     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18131 $as_echo "just compiled" >&6; }
18132   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18133     # We already found the complete path
18134     ac_dir=`dirname $WINDMC_FOR_TARGET`
18135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18136 $as_echo "pre-installed in $ac_dir" >&6; }
18137   elif test "x$target" = "x$host"; then
18138     # We can use an host tool
18139     WINDMC_FOR_TARGET='$(WINDMC)'
18140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18141 $as_echo "host tool" >&6; }
18142   else
18143     # We need a cross tool
18144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18145 $as_echo "pre-installed" >&6; }
18146   fi
18147 fi
18148
18149
18150
18151
18152
18153 # Certain tools may need extra flags.
18154 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18155 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18156 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18157
18158 # When building target libraries, except in a Canadian cross, we use
18159 # the same toolchain as the compiler we just built.
18160 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18161 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18162 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18163 if test $host = $build; then
18164   case " $configdirs " in
18165     *" gcc "*)
18166       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18167       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18168       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18169       ;;
18170   esac
18171 fi
18172
18173
18174
18175
18176
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18178 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18179 # Check whether --enable-maintainer-mode was given.
18180 if test "${enable_maintainer_mode+set}" = set; then :
18181   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18182 else
18183   USE_MAINTAINER_MODE=no
18184 fi
18185
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18187 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18188
18189
18190 if test "$USE_MAINTAINER_MODE" = yes; then
18191   MAINTAINER_MODE_TRUE=
18192   MAINTAINER_MODE_FALSE='#'
18193 else
18194   MAINTAINER_MODE_TRUE='#'
18195   MAINTAINER_MODE_FALSE=
18196 fi
18197 MAINT=$MAINTAINER_MODE_TRUE
18198
18199 # ---------------------
18200 # GCC bootstrap support
18201 # ---------------------
18202
18203 # Stage specific cflags for build.
18204 stage1_cflags="-g"
18205 case $build in
18206   vax-*-*)
18207     case ${GCC} in
18208       yes) stage1_cflags="-g -Wa,-J" ;;
18209       *) stage1_cflags="-g -J" ;;
18210     esac ;;
18211 esac
18212
18213
18214
18215 # Enable --enable-checking in stage1 of the compiler.
18216 # Check whether --enable-stage1-checking was given.
18217 if test "${enable_stage1_checking+set}" = set; then :
18218   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18219 else
18220   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18221   # For --disable-checking or implicit --enable-checking=release, avoid
18222   # setting --enable-checking=gc in the default stage1 checking for LTO
18223   # bootstraps.  See PR62077.
18224   case $BUILD_CONFIG in
18225     *lto*)
18226       stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18227     *)
18228       stage1_checking=--enable-checking=yes,types;;
18229   esac
18230   if test "x$enable_checking" = x && \
18231      test -d ${srcdir}/gcc && \
18232      test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18233     stage1_checking=--enable-checking=yes,types,extra
18234   fi
18235 else
18236   stage1_checking=--enable-checking=$enable_checking,types
18237 fi
18238 fi
18239
18240
18241
18242 # Enable -Werror in bootstrap stage2 and later.
18243 # Check whether --enable-werror was given.
18244 if test "${enable_werror+set}" = set; then :
18245   enableval=$enable_werror;
18246 case ${enable_werror} in
18247   yes) stage2_werror_flag="--enable-werror-always" ;;
18248   *) stage2_werror_flag="" ;;
18249 esac
18250
18251 else
18252
18253 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18254   case $BUILD_CONFIG in
18255   bootstrap-debug)
18256       stage2_werror_flag="--enable-werror-always" ;;
18257   "")
18258       stage2_werror_flag="--enable-werror-always" ;;
18259   esac
18260 fi
18261
18262 fi
18263
18264
18265
18266
18267 # Specify what files to not compare during bootstrap.
18268
18269 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18270 case "$target" in
18271   hppa*64*-*-hpux*) ;;
18272   powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18273 esac
18274
18275
18276 ac_config_files="$ac_config_files Makefile"
18277
18278 cat >confcache <<\_ACEOF
18279 # This file is a shell script that caches the results of configure
18280 # tests run on this system so they can be shared between configure
18281 # scripts and configure runs, see configure's option --config-cache.
18282 # It is not useful on other systems.  If it contains results you don't
18283 # want to keep, you may remove or edit it.
18284 #
18285 # config.status only pays attention to the cache file if you give it
18286 # the --recheck option to rerun configure.
18287 #
18288 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18289 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18290 # following values.
18291
18292 _ACEOF
18293
18294 # The following way of writing the cache mishandles newlines in values,
18295 # but we know of no workaround that is simple, portable, and efficient.
18296 # So, we kill variables containing newlines.
18297 # Ultrix sh set writes to stderr and can't be redirected directly,
18298 # and sets the high bit in the cache file unless we assign to the vars.
18299 (
18300   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18301     eval ac_val=\$$ac_var
18302     case $ac_val in #(
18303     *${as_nl}*)
18304       case $ac_var in #(
18305       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18306 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18307       esac
18308       case $ac_var in #(
18309       _ | IFS | as_nl) ;; #(
18310       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18311       *) { eval $ac_var=; unset $ac_var;} ;;
18312       esac ;;
18313     esac
18314   done
18315
18316   (set) 2>&1 |
18317     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18318     *${as_nl}ac_space=\ *)
18319       # `set' does not quote correctly, so add quotes: double-quote
18320       # substitution turns \\\\ into \\, and sed turns \\ into \.
18321       sed -n \
18322         "s/'/'\\\\''/g;
18323           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18324       ;; #(
18325     *)
18326       # `set' quotes correctly as required by POSIX, so do not add quotes.
18327       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18328       ;;
18329     esac |
18330     sort
18331 ) |
18332   sed '
18333      /^ac_cv_env_/b end
18334      t clear
18335      :clear
18336      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18337      t end
18338      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18339      :end' >>confcache
18340 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18341   if test -w "$cache_file"; then
18342     if test "x$cache_file" != "x/dev/null"; then
18343       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18344 $as_echo "$as_me: updating cache $cache_file" >&6;}
18345       if test ! -f "$cache_file" || test -h "$cache_file"; then
18346         cat confcache >"$cache_file"
18347       else
18348         case $cache_file in #(
18349         */* | ?:*)
18350           mv -f confcache "$cache_file"$$ &&
18351           mv -f "$cache_file"$$ "$cache_file" ;; #(
18352         *)
18353           mv -f confcache "$cache_file" ;;
18354         esac
18355       fi
18356     fi
18357   else
18358     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18359 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18360   fi
18361 fi
18362 rm -f confcache
18363
18364 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18365 # Let make expand exec_prefix.
18366 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18367
18368 # Transform confdefs.h into DEFS.
18369 # Protect against shell expansion while executing Makefile rules.
18370 # Protect against Makefile macro expansion.
18371 #
18372 # If the first sed substitution is executed (which looks for macros that
18373 # take arguments), then branch to the quote section.  Otherwise,
18374 # look for a macro that doesn't take arguments.
18375 ac_script='
18376 :mline
18377 /\\$/{
18378  N
18379  s,\\\n,,
18380  b mline
18381 }
18382 t clear
18383 :clear
18384 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
18385 t quote
18386 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
18387 t quote
18388 b any
18389 :quote
18390 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18391 s/\[/\\&/g
18392 s/\]/\\&/g
18393 s/\$/$$/g
18394 H
18395 :any
18396 ${
18397         g
18398         s/^\n//
18399         s/\n/ /g
18400         p
18401 }
18402 '
18403 DEFS=`sed -n "$ac_script" confdefs.h`
18404
18405
18406 ac_libobjs=
18407 ac_ltlibobjs=
18408 U=
18409 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18410   # 1. Remove the extension, and $U if already installed.
18411   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18412   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18413   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18414   #    will be set to the directory where LIBOBJS objects are built.
18415   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18416   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18417 done
18418 LIBOBJS=$ac_libobjs
18419
18420 LTLIBOBJS=$ac_ltlibobjs
18421
18422
18423
18424 : "${CONFIG_STATUS=./config.status}"
18425 ac_write_fail=0
18426 ac_clean_files_save=$ac_clean_files
18427 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18429 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18430 as_write_fail=0
18431 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18432 #! $SHELL
18433 # Generated by $as_me.
18434 # Run this file to recreate the current configuration.
18435 # Compiler output produced by configure, useful for debugging
18436 # configure, is in config.log if it exists.
18437
18438 debug=false
18439 ac_cs_recheck=false
18440 ac_cs_silent=false
18441
18442 SHELL=\${CONFIG_SHELL-$SHELL}
18443 export SHELL
18444 _ASEOF
18445 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18446 ## -------------------- ##
18447 ## M4sh Initialization. ##
18448 ## -------------------- ##
18449
18450 # Be more Bourne compatible
18451 DUALCASE=1; export DUALCASE # for MKS sh
18452 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18453   emulate sh
18454   NULLCMD=:
18455   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18456   # is contrary to our usage.  Disable this feature.
18457   alias -g '${1+"$@"}'='"$@"'
18458   setopt NO_GLOB_SUBST
18459 else
18460   case `(set -o) 2>/dev/null` in #(
18461   *posix*) :
18462     set -o posix ;; #(
18463   *) :
18464      ;;
18465 esac
18466 fi
18467
18468
18469 as_nl='
18470 '
18471 export as_nl
18472 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18473 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18474 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18475 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18476 # Prefer a ksh shell builtin over an external printf program on Solaris,
18477 # but without wasting forks for bash or zsh.
18478 if test -z "$BASH_VERSION$ZSH_VERSION" \
18479     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18480   as_echo='print -r --'
18481   as_echo_n='print -rn --'
18482 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18483   as_echo='printf %s\n'
18484   as_echo_n='printf %s'
18485 else
18486   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18487     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18488     as_echo_n='/usr/ucb/echo -n'
18489   else
18490     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18491     as_echo_n_body='eval
18492       arg=$1;
18493       case $arg in #(
18494       *"$as_nl"*)
18495         expr "X$arg" : "X\\(.*\\)$as_nl";
18496         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18497       esac;
18498       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18499     '
18500     export as_echo_n_body
18501     as_echo_n='sh -c $as_echo_n_body as_echo'
18502   fi
18503   export as_echo_body
18504   as_echo='sh -c $as_echo_body as_echo'
18505 fi
18506
18507 # The user is always right.
18508 if test "${PATH_SEPARATOR+set}" != set; then
18509   PATH_SEPARATOR=:
18510   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18511     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18512       PATH_SEPARATOR=';'
18513   }
18514 fi
18515
18516
18517 # IFS
18518 # We need space, tab and new line, in precisely that order.  Quoting is
18519 # there to prevent editors from complaining about space-tab.
18520 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18521 # splitting by setting IFS to empty value.)
18522 IFS=" ""        $as_nl"
18523
18524 # Find who we are.  Look in the path if we contain no directory separator.
18525 as_myself=
18526 case $0 in #((
18527   *[\\/]* ) as_myself=$0 ;;
18528   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18529 for as_dir in $PATH
18530 do
18531   IFS=$as_save_IFS
18532   test -z "$as_dir" && as_dir=.
18533     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18534   done
18535 IFS=$as_save_IFS
18536
18537      ;;
18538 esac
18539 # We did not find ourselves, most probably we were run as `sh COMMAND'
18540 # in which case we are not to be found in the path.
18541 if test "x$as_myself" = x; then
18542   as_myself=$0
18543 fi
18544 if test ! -f "$as_myself"; then
18545   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18546   exit 1
18547 fi
18548
18549 # Unset variables that we do not need and which cause bugs (e.g. in
18550 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18551 # suppresses any "Segmentation fault" message there.  '((' could
18552 # trigger a bug in pdksh 5.2.14.
18553 for as_var in BASH_ENV ENV MAIL MAILPATH
18554 do eval test x\${$as_var+set} = xset \
18555   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18556 done
18557 PS1='$ '
18558 PS2='> '
18559 PS4='+ '
18560
18561 # NLS nuisances.
18562 LC_ALL=C
18563 export LC_ALL
18564 LANGUAGE=C
18565 export LANGUAGE
18566
18567 # CDPATH.
18568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18569
18570
18571 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18572 # ----------------------------------------
18573 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18574 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18575 # script with STATUS, using 1 if that was 0.
18576 as_fn_error ()
18577 {
18578   as_status=$1; test $as_status -eq 0 && as_status=1
18579   if test "$4"; then
18580     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18581     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18582   fi
18583   $as_echo "$as_me: error: $2" >&2
18584   as_fn_exit $as_status
18585 } # as_fn_error
18586
18587
18588 # as_fn_set_status STATUS
18589 # -----------------------
18590 # Set $? to STATUS, without forking.
18591 as_fn_set_status ()
18592 {
18593   return $1
18594 } # as_fn_set_status
18595
18596 # as_fn_exit STATUS
18597 # -----------------
18598 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18599 as_fn_exit ()
18600 {
18601   set +e
18602   as_fn_set_status $1
18603   exit $1
18604 } # as_fn_exit
18605
18606 # as_fn_unset VAR
18607 # ---------------
18608 # Portably unset VAR.
18609 as_fn_unset ()
18610 {
18611   { eval $1=; unset $1;}
18612 }
18613 as_unset=as_fn_unset
18614 # as_fn_append VAR VALUE
18615 # ----------------------
18616 # Append the text in VALUE to the end of the definition contained in VAR. Take
18617 # advantage of any shell optimizations that allow amortized linear growth over
18618 # repeated appends, instead of the typical quadratic growth present in naive
18619 # implementations.
18620 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18621   eval 'as_fn_append ()
18622   {
18623     eval $1+=\$2
18624   }'
18625 else
18626   as_fn_append ()
18627   {
18628     eval $1=\$$1\$2
18629   }
18630 fi # as_fn_append
18631
18632 # as_fn_arith ARG...
18633 # ------------------
18634 # Perform arithmetic evaluation on the ARGs, and store the result in the
18635 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18636 # must be portable across $(()) and expr.
18637 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18638   eval 'as_fn_arith ()
18639   {
18640     as_val=$(( $* ))
18641   }'
18642 else
18643   as_fn_arith ()
18644   {
18645     as_val=`expr "$@" || test $? -eq 1`
18646   }
18647 fi # as_fn_arith
18648
18649
18650 if expr a : '\(a\)' >/dev/null 2>&1 &&
18651    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18652   as_expr=expr
18653 else
18654   as_expr=false
18655 fi
18656
18657 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18658   as_basename=basename
18659 else
18660   as_basename=false
18661 fi
18662
18663 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18664   as_dirname=dirname
18665 else
18666   as_dirname=false
18667 fi
18668
18669 as_me=`$as_basename -- "$0" ||
18670 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18671          X"$0" : 'X\(//\)$' \| \
18672          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18673 $as_echo X/"$0" |
18674     sed '/^.*\/\([^/][^/]*\)\/*$/{
18675             s//\1/
18676             q
18677           }
18678           /^X\/\(\/\/\)$/{
18679             s//\1/
18680             q
18681           }
18682           /^X\/\(\/\).*/{
18683             s//\1/
18684             q
18685           }
18686           s/.*/./; q'`
18687
18688 # Avoid depending upon Character Ranges.
18689 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18690 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18691 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18692 as_cr_digits='0123456789'
18693 as_cr_alnum=$as_cr_Letters$as_cr_digits
18694
18695 ECHO_C= ECHO_N= ECHO_T=
18696 case `echo -n x` in #(((((
18697 -n*)
18698   case `echo 'xy\c'` in
18699   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18700   xy)  ECHO_C='\c';;
18701   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18702        ECHO_T=' ';;
18703   esac;;
18704 *)
18705   ECHO_N='-n';;
18706 esac
18707
18708 rm -f conf$$ conf$$.exe conf$$.file
18709 if test -d conf$$.dir; then
18710   rm -f conf$$.dir/conf$$.file
18711 else
18712   rm -f conf$$.dir
18713   mkdir conf$$.dir 2>/dev/null
18714 fi
18715 if (echo >conf$$.file) 2>/dev/null; then
18716   if ln -s conf$$.file conf$$ 2>/dev/null; then
18717     as_ln_s='ln -s'
18718     # ... but there are two gotchas:
18719     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18720     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18721     # In both cases, we have to default to `cp -pR'.
18722     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18723       as_ln_s='cp -pR'
18724   elif ln conf$$.file conf$$ 2>/dev/null; then
18725     as_ln_s=ln
18726   else
18727     as_ln_s='cp -pR'
18728   fi
18729 else
18730   as_ln_s='cp -pR'
18731 fi
18732 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18733 rmdir conf$$.dir 2>/dev/null
18734
18735
18736 # as_fn_mkdir_p
18737 # -------------
18738 # Create "$as_dir" as a directory, including parents if necessary.
18739 as_fn_mkdir_p ()
18740 {
18741
18742   case $as_dir in #(
18743   -*) as_dir=./$as_dir;;
18744   esac
18745   test -d "$as_dir" || eval $as_mkdir_p || {
18746     as_dirs=
18747     while :; do
18748       case $as_dir in #(
18749       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18750       *) as_qdir=$as_dir;;
18751       esac
18752       as_dirs="'$as_qdir' $as_dirs"
18753       as_dir=`$as_dirname -- "$as_dir" ||
18754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18755          X"$as_dir" : 'X\(//\)[^/]' \| \
18756          X"$as_dir" : 'X\(//\)$' \| \
18757          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18758 $as_echo X"$as_dir" |
18759     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18760             s//\1/
18761             q
18762           }
18763           /^X\(\/\/\)[^/].*/{
18764             s//\1/
18765             q
18766           }
18767           /^X\(\/\/\)$/{
18768             s//\1/
18769             q
18770           }
18771           /^X\(\/\).*/{
18772             s//\1/
18773             q
18774           }
18775           s/.*/./; q'`
18776       test -d "$as_dir" && break
18777     done
18778     test -z "$as_dirs" || eval "mkdir $as_dirs"
18779   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18780
18781
18782 } # as_fn_mkdir_p
18783 if mkdir -p . 2>/dev/null; then
18784   as_mkdir_p='mkdir -p "$as_dir"'
18785 else
18786   test -d ./-p && rmdir ./-p
18787   as_mkdir_p=false
18788 fi
18789
18790
18791 # as_fn_executable_p FILE
18792 # -----------------------
18793 # Test if FILE is an executable regular file.
18794 as_fn_executable_p ()
18795 {
18796   test -f "$1" && test -x "$1"
18797 } # as_fn_executable_p
18798 as_test_x='test -x'
18799 as_executable_p=as_fn_executable_p
18800
18801 # Sed expression to map a string onto a valid CPP name.
18802 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18803
18804 # Sed expression to map a string onto a valid variable name.
18805 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18806
18807
18808 exec 6>&1
18809 ## ----------------------------------- ##
18810 ## Main body of $CONFIG_STATUS script. ##
18811 ## ----------------------------------- ##
18812 _ASEOF
18813 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18814
18815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18816 # Save the log message, to keep $0 and so on meaningful, and to
18817 # report actual input values of CONFIG_FILES etc. instead of their
18818 # values after options handling.
18819 ac_log="
18820 This file was extended by $as_me, which was
18821 generated by GNU Autoconf 2.69.  Invocation command line was
18822
18823   CONFIG_FILES    = $CONFIG_FILES
18824   CONFIG_HEADERS  = $CONFIG_HEADERS
18825   CONFIG_LINKS    = $CONFIG_LINKS
18826   CONFIG_COMMANDS = $CONFIG_COMMANDS
18827   $ $0 $@
18828
18829 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18830 "
18831
18832 _ACEOF
18833
18834 case $ac_config_files in *"
18835 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18836 esac
18837
18838
18839
18840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18841 # Files that config.status was made for.
18842 config_files="$ac_config_files"
18843
18844 _ACEOF
18845
18846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18847 ac_cs_usage="\
18848 \`$as_me' instantiates files and other configuration actions
18849 from templates according to the current configuration.  Unless the files
18850 and actions are specified as TAGs, all are instantiated by default.
18851
18852 Usage: $0 [OPTION]... [TAG]...
18853
18854   -h, --help       print this help, then exit
18855   -V, --version    print version number and configuration settings, then exit
18856       --config     print configuration, then exit
18857   -q, --quiet, --silent
18858                    do not print progress messages
18859   -d, --debug      don't remove temporary files
18860       --recheck    update $as_me by reconfiguring in the same conditions
18861       --file=FILE[:TEMPLATE]
18862                    instantiate the configuration file FILE
18863
18864 Configuration files:
18865 $config_files
18866
18867 Report bugs to the package provider."
18868
18869 _ACEOF
18870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18871 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18872 ac_cs_version="\\
18873 config.status
18874 configured by $0, generated by GNU Autoconf 2.69,
18875   with options \\"\$ac_cs_config\\"
18876
18877 Copyright (C) 2012 Free Software Foundation, Inc.
18878 This config.status script is free software; the Free Software Foundation
18879 gives unlimited permission to copy, distribute and modify it."
18880
18881 ac_pwd='$ac_pwd'
18882 srcdir='$srcdir'
18883 INSTALL='$INSTALL'
18884 AWK='$AWK'
18885 test -n "\$AWK" || AWK=awk
18886 _ACEOF
18887
18888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18889 # The default lists apply if the user does not specify any file.
18890 ac_need_defaults=:
18891 while test $# != 0
18892 do
18893   case $1 in
18894   --*=?*)
18895     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18896     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18897     ac_shift=:
18898     ;;
18899   --*=)
18900     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18901     ac_optarg=
18902     ac_shift=:
18903     ;;
18904   *)
18905     ac_option=$1
18906     ac_optarg=$2
18907     ac_shift=shift
18908     ;;
18909   esac
18910
18911   case $ac_option in
18912   # Handling of the options.
18913   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18914     ac_cs_recheck=: ;;
18915   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18916     $as_echo "$ac_cs_version"; exit ;;
18917   --config | --confi | --conf | --con | --co | --c )
18918     $as_echo "$ac_cs_config"; exit ;;
18919   --debug | --debu | --deb | --de | --d | -d )
18920     debug=: ;;
18921   --file | --fil | --fi | --f )
18922     $ac_shift
18923     case $ac_optarg in
18924     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18925     '') as_fn_error $? "missing file argument" ;;
18926     esac
18927     as_fn_append CONFIG_FILES " '$ac_optarg'"
18928     ac_need_defaults=false;;
18929   --he | --h |  --help | --hel | -h )
18930     $as_echo "$ac_cs_usage"; exit ;;
18931   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18932   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18933     ac_cs_silent=: ;;
18934
18935   # This is an error.
18936   -*) as_fn_error $? "unrecognized option: \`$1'
18937 Try \`$0 --help' for more information." ;;
18938
18939   *) as_fn_append ac_config_targets " $1"
18940      ac_need_defaults=false ;;
18941
18942   esac
18943   shift
18944 done
18945
18946 ac_configure_extra_args=
18947
18948 if $ac_cs_silent; then
18949   exec 6>/dev/null
18950   ac_configure_extra_args="$ac_configure_extra_args --silent"
18951 fi
18952
18953 _ACEOF
18954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18955 if \$ac_cs_recheck; then
18956   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18957   shift
18958   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18959   CONFIG_SHELL='$SHELL'
18960   export CONFIG_SHELL
18961   exec "\$@"
18962 fi
18963
18964 _ACEOF
18965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18966 exec 5>>config.log
18967 {
18968   echo
18969   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18970 ## Running $as_me. ##
18971 _ASBOX
18972   $as_echo "$ac_log"
18973 } >&5
18974
18975 _ACEOF
18976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18977 #
18978 # INIT-COMMANDS
18979 #
18980 extrasub_build="$extrasub_build"
18981    extrasub_host="$extrasub_host"
18982    extrasub_target="$extrasub_target"
18983
18984 _ACEOF
18985
18986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18987
18988 # Handling of arguments.
18989 for ac_config_target in $ac_config_targets
18990 do
18991   case $ac_config_target in
18992     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18993
18994   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18995   esac
18996 done
18997
18998
18999 # If the user did not use the arguments to specify the items to instantiate,
19000 # then the envvar interface is used.  Set only those that are not.
19001 # We use the long form for the default assignment because of an extremely
19002 # bizarre bug on SunOS 4.1.3.
19003 if $ac_need_defaults; then
19004   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19005 fi
19006
19007 # Have a temporary directory for convenience.  Make it in the build tree
19008 # simply because there is no reason against having it here, and in addition,
19009 # creating and moving files from /tmp can sometimes cause problems.
19010 # Hook for its removal unless debugging.
19011 # Note that there is a small window in which the directory will not be cleaned:
19012 # after its creation but before its name has been assigned to `$tmp'.
19013 $debug ||
19014 {
19015   tmp= ac_tmp=
19016   trap 'exit_status=$?
19017   : "${ac_tmp:=$tmp}"
19018   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19019 ' 0
19020   trap 'as_fn_exit 1' 1 2 13 15
19021 }
19022 # Create a (secure) tmp directory for tmp files.
19023
19024 {
19025   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19026   test -d "$tmp"
19027 }  ||
19028 {
19029   tmp=./conf$$-$RANDOM
19030   (umask 077 && mkdir "$tmp")
19031 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19032 ac_tmp=$tmp
19033
19034 # Set up the scripts for CONFIG_FILES section.
19035 # No need to generate them if there are no CONFIG_FILES.
19036 # This happens for instance with `./config.status config.h'.
19037 if test -n "$CONFIG_FILES"; then
19038
19039 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19040   ac_cs_awk_getline=:
19041   ac_cs_awk_pipe_init=
19042   ac_cs_awk_read_file='
19043       while ((getline aline < (F[key])) > 0)
19044         print(aline)
19045       close(F[key])'
19046   ac_cs_awk_pipe_fini=
19047 else
19048   ac_cs_awk_getline=false
19049   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19050   ac_cs_awk_read_file='
19051       print "|#_!!_#|"
19052       print "cat " F[key] " &&"
19053       '$ac_cs_awk_pipe_init
19054   # The final `:' finishes the AND list.
19055   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19056 fi
19057 ac_cr=`echo X | tr X '\015'`
19058 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19059 # But we know of no other shell where ac_cr would be empty at this
19060 # point, so we can use a bashism as a fallback.
19061 if test "x$ac_cr" = x; then
19062   eval ac_cr=\$\'\\r\'
19063 fi
19064 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19065 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19066   ac_cs_awk_cr='\\r'
19067 else
19068   ac_cs_awk_cr=$ac_cr
19069 fi
19070
19071 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19072 _ACEOF
19073
19074 # Create commands to substitute file output variables.
19075 {
19076   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19077   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19078   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19079   echo "_ACAWK" &&
19080   echo "_ACEOF"
19081 } >conf$$files.sh &&
19082 . ./conf$$files.sh ||
19083   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19084 rm -f conf$$files.sh
19085
19086 {
19087   echo "cat >conf$$subs.awk <<_ACEOF" &&
19088   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19089   echo "_ACEOF"
19090 } >conf$$subs.sh ||
19091   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19092 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19093 ac_delim='%!_!# '
19094 for ac_last_try in false false false false false :; do
19095   . ./conf$$subs.sh ||
19096     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19097
19098   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19099   if test $ac_delim_n = $ac_delim_num; then
19100     break
19101   elif $ac_last_try; then
19102     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19103   else
19104     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19105   fi
19106 done
19107 rm -f conf$$subs.sh
19108
19109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19110 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19111 _ACEOF
19112 sed -n '
19113 h
19114 s/^/S["/; s/!.*/"]=/
19115 p
19116 g
19117 s/^[^!]*!//
19118 :repl
19119 t repl
19120 s/'"$ac_delim"'$//
19121 t delim
19122 :nl
19123 h
19124 s/\(.\{148\}\)..*/\1/
19125 t more1
19126 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19127 p
19128 n
19129 b repl
19130 :more1
19131 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19132 p
19133 g
19134 s/.\{148\}//
19135 t nl
19136 :delim
19137 h
19138 s/\(.\{148\}\)..*/\1/
19139 t more2
19140 s/["\\]/\\&/g; s/^/"/; s/$/"/
19141 p
19142 b
19143 :more2
19144 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19145 p
19146 g
19147 s/.\{148\}//
19148 t delim
19149 ' <conf$$subs.awk | sed '
19150 /^[^""]/{
19151   N
19152   s/\n//
19153 }
19154 ' >>$CONFIG_STATUS || ac_write_fail=1
19155 rm -f conf$$subs.awk
19156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19157 _ACAWK
19158 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19159   for (key in S) S_is_set[key] = 1
19160   FS = "\a"
19161   \$ac_cs_awk_pipe_init
19162 }
19163 {
19164   line = $ 0
19165   nfields = split(line, field, "@")
19166   substed = 0
19167   len = length(field[1])
19168   for (i = 2; i < nfields; i++) {
19169     key = field[i]
19170     keylen = length(key)
19171     if (S_is_set[key]) {
19172       value = S[key]
19173       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19174       len += length(value) + length(field[++i])
19175       substed = 1
19176     } else
19177       len += 1 + keylen
19178   }
19179   if (nfields == 3 && !substed) {
19180     key = field[2]
19181     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
19182       \$ac_cs_awk_read_file
19183       next
19184     }
19185   }
19186   print line
19187 }
19188 \$ac_cs_awk_pipe_fini
19189 _ACAWK
19190 _ACEOF
19191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19192 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19193   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19194 else
19195   cat
19196 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19197   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19198 _ACEOF
19199
19200 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19201 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19202 # trailing colons and then remove the whole line if VPATH becomes empty
19203 # (actually we leave an empty line to preserve line numbers).
19204 if test "x$srcdir" = x.; then
19205   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19206 h
19207 s///
19208 s/^/:/
19209 s/[      ]*$/:/
19210 s/:\$(srcdir):/:/g
19211 s/:\${srcdir}:/:/g
19212 s/:@srcdir@:/:/g
19213 s/^:*//
19214 s/:*$//
19215 x
19216 s/\(=[   ]*\).*/\1/
19217 G
19218 s/\n//
19219 s/^[^=]*=[       ]*$//
19220 }'
19221 fi
19222
19223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19224 fi # test -n "$CONFIG_FILES"
19225
19226
19227 eval set X "  :F $CONFIG_FILES      "
19228 shift
19229 for ac_tag
19230 do
19231   case $ac_tag in
19232   :[FHLC]) ac_mode=$ac_tag; continue;;
19233   esac
19234   case $ac_mode$ac_tag in
19235   :[FHL]*:*);;
19236   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19237   :[FH]-) ac_tag=-:-;;
19238   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19239   esac
19240   ac_save_IFS=$IFS
19241   IFS=:
19242   set x $ac_tag
19243   IFS=$ac_save_IFS
19244   shift
19245   ac_file=$1
19246   shift
19247
19248   case $ac_mode in
19249   :L) ac_source=$1;;
19250   :[FH])
19251     ac_file_inputs=
19252     for ac_f
19253     do
19254       case $ac_f in
19255       -) ac_f="$ac_tmp/stdin";;
19256       *) # Look for the file first in the build tree, then in the source tree
19257          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19258          # because $ac_f cannot contain `:'.
19259          test -f "$ac_f" ||
19260            case $ac_f in
19261            [\\/$]*) false;;
19262            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19263            esac ||
19264            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19265       esac
19266       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19267       as_fn_append ac_file_inputs " '$ac_f'"
19268     done
19269
19270     # Let's still pretend it is `configure' which instantiates (i.e., don't
19271     # use $as_me), people would be surprised to read:
19272     #    /* config.h.  Generated by config.status.  */
19273     configure_input='Generated from '`
19274           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19275         `' by configure.'
19276     if test x"$ac_file" != x-; then
19277       configure_input="$ac_file.  $configure_input"
19278       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19279 $as_echo "$as_me: creating $ac_file" >&6;}
19280     fi
19281     # Neutralize special characters interpreted by sed in replacement strings.
19282     case $configure_input in #(
19283     *\&* | *\|* | *\\* )
19284        ac_sed_conf_input=`$as_echo "$configure_input" |
19285        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19286     *) ac_sed_conf_input=$configure_input;;
19287     esac
19288
19289     case $ac_tag in
19290     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19291       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19292     esac
19293     ;;
19294   esac
19295
19296   ac_dir=`$as_dirname -- "$ac_file" ||
19297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19298          X"$ac_file" : 'X\(//\)[^/]' \| \
19299          X"$ac_file" : 'X\(//\)$' \| \
19300          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19301 $as_echo X"$ac_file" |
19302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19303             s//\1/
19304             q
19305           }
19306           /^X\(\/\/\)[^/].*/{
19307             s//\1/
19308             q
19309           }
19310           /^X\(\/\/\)$/{
19311             s//\1/
19312             q
19313           }
19314           /^X\(\/\).*/{
19315             s//\1/
19316             q
19317           }
19318           s/.*/./; q'`
19319   as_dir="$ac_dir"; as_fn_mkdir_p
19320   ac_builddir=.
19321
19322 case "$ac_dir" in
19323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19324 *)
19325   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19326   # A ".." for each directory in $ac_dir_suffix.
19327   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19328   case $ac_top_builddir_sub in
19329   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19330   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19331   esac ;;
19332 esac
19333 ac_abs_top_builddir=$ac_pwd
19334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19335 # for backward compatibility:
19336 ac_top_builddir=$ac_top_build_prefix
19337
19338 case $srcdir in
19339   .)  # We are building in place.
19340     ac_srcdir=.
19341     ac_top_srcdir=$ac_top_builddir_sub
19342     ac_abs_top_srcdir=$ac_pwd ;;
19343   [\\/]* | ?:[\\/]* )  # Absolute name.
19344     ac_srcdir=$srcdir$ac_dir_suffix;
19345     ac_top_srcdir=$srcdir
19346     ac_abs_top_srcdir=$srcdir ;;
19347   *) # Relative name.
19348     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19349     ac_top_srcdir=$ac_top_build_prefix$srcdir
19350     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19351 esac
19352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19353
19354
19355   case $ac_mode in
19356   :F)
19357   #
19358   # CONFIG_FILE
19359   #
19360
19361   case $INSTALL in
19362   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19363   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19364   esac
19365 _ACEOF
19366
19367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19368 # If the template does not know about datarootdir, expand it.
19369 # FIXME: This hack should be removed a few years after 2.60.
19370 ac_datarootdir_hack=; ac_datarootdir_seen=
19371 ac_sed_dataroot='
19372 /datarootdir/ {
19373   p
19374   q
19375 }
19376 /@datadir@/p
19377 /@docdir@/p
19378 /@infodir@/p
19379 /@localedir@/p
19380 /@mandir@/p'
19381 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19382 *datarootdir*) ac_datarootdir_seen=yes;;
19383 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19384   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19385 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19386 _ACEOF
19387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19388   ac_datarootdir_hack='
19389   s&@datadir@&$datadir&g
19390   s&@docdir@&$docdir&g
19391   s&@infodir@&$infodir&g
19392   s&@localedir@&$localedir&g
19393   s&@mandir@&$mandir&g
19394   s&\\\${datarootdir}&$datarootdir&g' ;;
19395 esac
19396 _ACEOF
19397
19398 # Neutralize VPATH when `$srcdir' = `.'.
19399 # Shell code in configure.ac might set extrasub.
19400 # FIXME: do we really want to maintain this feature?
19401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19402 ac_sed_extra="$ac_vpsub
19403 $extrasub
19404 _ACEOF
19405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19406 :t
19407 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19408 s|@configure_input@|$ac_sed_conf_input|;t t
19409 s&@top_builddir@&$ac_top_builddir_sub&;t t
19410 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19411 s&@srcdir@&$ac_srcdir&;t t
19412 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19413 s&@top_srcdir@&$ac_top_srcdir&;t t
19414 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19415 s&@builddir@&$ac_builddir&;t t
19416 s&@abs_builddir@&$ac_abs_builddir&;t t
19417 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19418 s&@INSTALL@&$ac_INSTALL&;t t
19419 $ac_datarootdir_hack
19420 "
19421 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19422 if $ac_cs_awk_getline; then
19423   $AWK -f "$ac_tmp/subs.awk"
19424 else
19425   $AWK -f "$ac_tmp/subs.awk" | $SHELL
19426 fi \
19427   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19428
19429 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19430   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19431   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19432       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19433   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19434 which seems to be undefined.  Please make sure it is defined" >&5
19435 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19436 which seems to be undefined.  Please make sure it is defined" >&2;}
19437
19438   rm -f "$ac_tmp/stdin"
19439   case $ac_file in
19440   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19441   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19442   esac \
19443   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19444  ;;
19445
19446
19447
19448   esac
19449
19450
19451   case $ac_file$ac_mode in
19452     "Makefile":F) sed "$extrasub_build" Makefile |
19453    sed "$extrasub_host" |
19454    sed "$extrasub_target" > mf$$
19455    mv -f mf$$ Makefile ;;
19456
19457   esac
19458 done # for ac_tag
19459
19460
19461 as_fn_exit 0
19462 _ACEOF
19463 ac_clean_files=$ac_clean_files_save
19464
19465 test $ac_write_fail = 0 ||
19466   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19467
19468
19469 # configure is writing to config.log, and then calls config.status.
19470 # config.status does its own redirection, appending to config.log.
19471 # Unfortunately, on DOS this fails, as config.log is still kept open
19472 # by configure, so config.status won't be able to write to it; its
19473 # output is simply discarded.  So we exec the FD to /dev/null,
19474 # effectively closing config.log, so it can be properly (re)opened and
19475 # appended to by config.status.  When coming back to configure, we
19476 # need to make the FD available again.
19477 if test "$no_create" != yes; then
19478   ac_cs_success=:
19479   ac_config_status_args=
19480   test "$silent" = yes &&
19481     ac_config_status_args="$ac_config_status_args --quiet"
19482   exec 5>/dev/null
19483   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19484   exec 5>>config.log
19485   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19486   # would make configure fail if this is the last instruction.
19487   $ac_cs_success || as_fn_exit 1
19488 fi
19489 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19490   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19491 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19492 fi
19493