Arrange to --disable-shared by default for VxWorks
[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 extra_liboffloadmic_configure_flags
723 target_subdir
724 host_subdir
725 build_subdir
726 build_libsubdir
727 AWK
728 SED
729 LN_S
730 LN
731 INSTALL_DATA
732 INSTALL_SCRIPT
733 INSTALL_PROGRAM
734 target_os
735 target_vendor
736 target_cpu
737 target
738 host_os
739 host_vendor
740 host_cpu
741 host
742 target_noncanonical
743 host_noncanonical
744 build_noncanonical
745 build_os
746 build_vendor
747 build_cpu
748 build
749 TOPLEVEL_CONFIGURE_ARGUMENTS
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL'
788 ac_subst_files='serialization_dependencies
789 host_makefile_frag
790 target_makefile_frag
791 alphaieee_frag
792 ospace_frag'
793 ac_user_opts='
794 enable_option_checking
795 with_build_libsubdir
796 with_system_zlib
797 enable_as_accelerator_for
798 enable_offload_targets
799 enable_offload_defaulted
800 enable_gold
801 enable_ld
802 enable_compressed_debug_sections
803 enable_libquadmath
804 enable_libquadmath_support
805 enable_libada
806 enable_libssp
807 enable_libstdcxx
808 enable_liboffloadmic
809 enable_bootstrap
810 enable_pgo_build
811 with_mpc
812 with_mpc_include
813 with_mpc_lib
814 with_mpfr
815 with_mpfr_include
816 with_mpfr_lib
817 with_gmp
818 with_gmp_include
819 with_gmp_lib
820 with_stage1_libs
821 with_static_standard_libraries
822 with_stage1_ldflags
823 with_boot_libs
824 with_boot_ldflags
825 with_isl
826 with_isl_include
827 with_isl_lib
828 enable_isl_version_check
829 enable_lto
830 enable_linker_plugin_configure_flags
831 enable_linker_plugin_flags
832 enable_host_shared
833 enable_stage1_languages
834 enable_objc_gc
835 with_target_bdw_gc
836 with_target_bdw_gc_include
837 with_target_bdw_gc_lib
838 with_gcc_major_version_only
839 with_build_sysroot
840 with_debug_prefix_map
841 with_build_config
842 enable_vtable_verify
843 enable_serial_configure
844 with_build_time_tools
845 enable_maintainer_mode
846 enable_stage1_checking
847 enable_werror
848 '
849       ac_precious_vars='build_alias
850 host_alias
851 target_alias
852 CC
853 CFLAGS
854 LDFLAGS
855 LIBS
856 CPPFLAGS
857 CXX
858 CXXFLAGS
859 CCC
860 build_configargs
861 host_configargs
862 target_configargs
863 AR
864 AS
865 DLLTOOL
866 DSYMUTIL
867 LD
868 LIPO
869 NM
870 RANLIB
871 STRIP
872 WINDRES
873 WINDMC
874 OBJCOPY
875 OBJDUMP
876 OTOOL
877 READELF
878 CC_FOR_TARGET
879 CXX_FOR_TARGET
880 GCC_FOR_TARGET
881 GFORTRAN_FOR_TARGET
882 GOC_FOR_TARGET
883 GDC_FOR_TARGET
884 AR_FOR_TARGET
885 AS_FOR_TARGET
886 DLLTOOL_FOR_TARGET
887 DSYMUTIL_FOR_TARGET
888 LD_FOR_TARGET
889 LIPO_FOR_TARGET
890 NM_FOR_TARGET
891 OBJCOPY_FOR_TARGET
892 OBJDUMP_FOR_TARGET
893 OTOOL_FOR_TARGET
894 RANLIB_FOR_TARGET
895 READELF_FOR_TARGET
896 STRIP_FOR_TARGET
897 WINDRES_FOR_TARGET
898 WINDMC_FOR_TARGET'
899
900
901 # Initialize some variables set by options.
902 ac_init_help=
903 ac_init_version=false
904 ac_unrecognized_opts=
905 ac_unrecognized_sep=
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
908 cache_file=/dev/null
909 exec_prefix=NONE
910 no_create=
911 no_recursion=
912 prefix=NONE
913 program_prefix=NONE
914 program_suffix=NONE
915 program_transform_name=s,x,x,
916 silent=
917 site=
918 srcdir=
919 verbose=
920 x_includes=NONE
921 x_libraries=NONE
922
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE}'
940 infodir='${datarootdir}/info'
941 htmldir='${docdir}'
942 dvidir='${docdir}'
943 pdfdir='${docdir}'
944 psdir='${docdir}'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
948
949 ac_prev=
950 ac_dashdash=
951 for ac_option
952 do
953   # If the previous option needs an argument, assign it.
954   if test -n "$ac_prev"; then
955     eval $ac_prev=\$ac_option
956     ac_prev=
957     continue
958   fi
959
960   case $ac_option in
961   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962   *=)   ac_optarg= ;;
963   *)    ac_optarg=yes ;;
964   esac
965
966   # Accept the important Cygnus configure options, so we can diagnose typos.
967
968   case $ac_dashdash$ac_option in
969   --)
970     ac_dashdash=yes ;;
971
972   -bindir | --bindir | --bindi | --bind | --bin | --bi)
973     ac_prev=bindir ;;
974   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975     bindir=$ac_optarg ;;
976
977   -build | --build | --buil | --bui | --bu)
978     ac_prev=build_alias ;;
979   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980     build_alias=$ac_optarg ;;
981
982   -cache-file | --cache-file | --cache-fil | --cache-fi \
983   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984     ac_prev=cache_file ;;
985   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987     cache_file=$ac_optarg ;;
988
989   --config-cache | -C)
990     cache_file=config.cache ;;
991
992   -datadir | --datadir | --datadi | --datad)
993     ac_prev=datadir ;;
994   -datadir=* | --datadir=* | --datadi=* | --datad=*)
995     datadir=$ac_optarg ;;
996
997   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998   | --dataroo | --dataro | --datar)
999     ac_prev=datarootdir ;;
1000   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002     datarootdir=$ac_optarg ;;
1003
1004   -disable-* | --disable-*)
1005     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006     # Reject names that are not valid shell variable names.
1007     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008       as_fn_error $? "invalid feature name: $ac_useropt"
1009     ac_useropt_orig=$ac_useropt
1010     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011     case $ac_user_opts in
1012       *"
1013 "enable_$ac_useropt"
1014 "*) ;;
1015       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016          ac_unrecognized_sep=', ';;
1017     esac
1018     eval enable_$ac_useropt=no ;;
1019
1020   -docdir | --docdir | --docdi | --doc | --do)
1021     ac_prev=docdir ;;
1022   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023     docdir=$ac_optarg ;;
1024
1025   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026     ac_prev=dvidir ;;
1027   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028     dvidir=$ac_optarg ;;
1029
1030   -enable-* | --enable-*)
1031     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032     # Reject names that are not valid shell variable names.
1033     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034       as_fn_error $? "invalid feature name: $ac_useropt"
1035     ac_useropt_orig=$ac_useropt
1036     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037     case $ac_user_opts in
1038       *"
1039 "enable_$ac_useropt"
1040 "*) ;;
1041       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042          ac_unrecognized_sep=', ';;
1043     esac
1044     eval enable_$ac_useropt=\$ac_optarg ;;
1045
1046   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048   | --exec | --exe | --ex)
1049     ac_prev=exec_prefix ;;
1050   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052   | --exec=* | --exe=* | --ex=*)
1053     exec_prefix=$ac_optarg ;;
1054
1055   -gas | --gas | --ga | --g)
1056     # Obsolete; use --with-gas.
1057     with_gas=yes ;;
1058
1059   -help | --help | --hel | --he | -h)
1060     ac_init_help=long ;;
1061   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062     ac_init_help=recursive ;;
1063   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064     ac_init_help=short ;;
1065
1066   -host | --host | --hos | --ho)
1067     ac_prev=host_alias ;;
1068   -host=* | --host=* | --hos=* | --ho=*)
1069     host_alias=$ac_optarg ;;
1070
1071   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072     ac_prev=htmldir ;;
1073   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074   | --ht=*)
1075     htmldir=$ac_optarg ;;
1076
1077   -includedir | --includedir | --includedi | --included | --include \
1078   | --includ | --inclu | --incl | --inc)
1079     ac_prev=includedir ;;
1080   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081   | --includ=* | --inclu=* | --incl=* | --inc=*)
1082     includedir=$ac_optarg ;;
1083
1084   -infodir | --infodir | --infodi | --infod | --info | --inf)
1085     ac_prev=infodir ;;
1086   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087     infodir=$ac_optarg ;;
1088
1089   -libdir | --libdir | --libdi | --libd)
1090     ac_prev=libdir ;;
1091   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092     libdir=$ac_optarg ;;
1093
1094   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095   | --libexe | --libex | --libe)
1096     ac_prev=libexecdir ;;
1097   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098   | --libexe=* | --libex=* | --libe=*)
1099     libexecdir=$ac_optarg ;;
1100
1101   -localedir | --localedir | --localedi | --localed | --locale)
1102     ac_prev=localedir ;;
1103   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104     localedir=$ac_optarg ;;
1105
1106   -localstatedir | --localstatedir | --localstatedi | --localstated \
1107   | --localstate | --localstat | --localsta | --localst | --locals)
1108     ac_prev=localstatedir ;;
1109   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111     localstatedir=$ac_optarg ;;
1112
1113   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114     ac_prev=mandir ;;
1115   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116     mandir=$ac_optarg ;;
1117
1118   -nfp | --nfp | --nf)
1119     # Obsolete; use --without-fp.
1120     with_fp=no ;;
1121
1122   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123   | --no-cr | --no-c | -n)
1124     no_create=yes ;;
1125
1126   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128     no_recursion=yes ;;
1129
1130   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132   | --oldin | --oldi | --old | --ol | --o)
1133     ac_prev=oldincludedir ;;
1134   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137     oldincludedir=$ac_optarg ;;
1138
1139   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140     ac_prev=prefix ;;
1141   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142     prefix=$ac_optarg ;;
1143
1144   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145   | --program-pre | --program-pr | --program-p)
1146     ac_prev=program_prefix ;;
1147   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149     program_prefix=$ac_optarg ;;
1150
1151   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152   | --program-suf | --program-su | --program-s)
1153     ac_prev=program_suffix ;;
1154   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156     program_suffix=$ac_optarg ;;
1157
1158   -program-transform-name | --program-transform-name \
1159   | --program-transform-nam | --program-transform-na \
1160   | --program-transform-n | --program-transform- \
1161   | --program-transform | --program-transfor \
1162   | --program-transfo | --program-transf \
1163   | --program-trans | --program-tran \
1164   | --progr-tra | --program-tr | --program-t)
1165     ac_prev=program_transform_name ;;
1166   -program-transform-name=* | --program-transform-name=* \
1167   | --program-transform-nam=* | --program-transform-na=* \
1168   | --program-transform-n=* | --program-transform-=* \
1169   | --program-transform=* | --program-transfor=* \
1170   | --program-transfo=* | --program-transf=* \
1171   | --program-trans=* | --program-tran=* \
1172   | --progr-tra=* | --program-tr=* | --program-t=*)
1173     program_transform_name=$ac_optarg ;;
1174
1175   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176     ac_prev=pdfdir ;;
1177   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178     pdfdir=$ac_optarg ;;
1179
1180   -psdir | --psdir | --psdi | --psd | --ps)
1181     ac_prev=psdir ;;
1182   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183     psdir=$ac_optarg ;;
1184
1185   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186   | -silent | --silent | --silen | --sile | --sil)
1187     silent=yes ;;
1188
1189   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190     ac_prev=sbindir ;;
1191   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192   | --sbi=* | --sb=*)
1193     sbindir=$ac_optarg ;;
1194
1195   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197   | --sharedst | --shareds | --shared | --share | --shar \
1198   | --sha | --sh)
1199     ac_prev=sharedstatedir ;;
1200   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203   | --sha=* | --sh=*)
1204     sharedstatedir=$ac_optarg ;;
1205
1206   -site | --site | --sit)
1207     ac_prev=site ;;
1208   -site=* | --site=* | --sit=*)
1209     site=$ac_optarg ;;
1210
1211   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212     ac_prev=srcdir ;;
1213   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214     srcdir=$ac_optarg ;;
1215
1216   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217   | --syscon | --sysco | --sysc | --sys | --sy)
1218     ac_prev=sysconfdir ;;
1219   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221     sysconfdir=$ac_optarg ;;
1222
1223   -target | --target | --targe | --targ | --tar | --ta | --t)
1224     ac_prev=target_alias ;;
1225   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226     target_alias=$ac_optarg ;;
1227
1228   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229     verbose=yes ;;
1230
1231   -version | --version | --versio | --versi | --vers | -V)
1232     ac_init_version=: ;;
1233
1234   -with-* | --with-*)
1235     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236     # Reject names that are not valid shell variable names.
1237     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238       as_fn_error $? "invalid package name: $ac_useropt"
1239     ac_useropt_orig=$ac_useropt
1240     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241     case $ac_user_opts in
1242       *"
1243 "with_$ac_useropt"
1244 "*) ;;
1245       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246          ac_unrecognized_sep=', ';;
1247     esac
1248     eval with_$ac_useropt=\$ac_optarg ;;
1249
1250   -without-* | --without-*)
1251     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252     # Reject names that are not valid shell variable names.
1253     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254       as_fn_error $? "invalid package name: $ac_useropt"
1255     ac_useropt_orig=$ac_useropt
1256     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257     case $ac_user_opts in
1258       *"
1259 "with_$ac_useropt"
1260 "*) ;;
1261       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262          ac_unrecognized_sep=', ';;
1263     esac
1264     eval with_$ac_useropt=no ;;
1265
1266   --x)
1267     # Obsolete; use --with-x.
1268     with_x=yes ;;
1269
1270   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271   | --x-incl | --x-inc | --x-in | --x-i)
1272     ac_prev=x_includes ;;
1273   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275     x_includes=$ac_optarg ;;
1276
1277   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279     ac_prev=x_libraries ;;
1280   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282     x_libraries=$ac_optarg ;;
1283
1284   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285 Try \`$0 --help' for more information"
1286     ;;
1287
1288   *=*)
1289     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290     # Reject names that are not valid shell variable names.
1291     case $ac_envvar in #(
1292       '' | [0-9]* | *[!_$as_cr_alnum]* )
1293       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1294     esac
1295     eval $ac_envvar=\$ac_optarg
1296     export $ac_envvar ;;
1297
1298   *)
1299     # FIXME: should be removed in autoconf 3.0.
1300     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1304     ;;
1305
1306   esac
1307 done
1308
1309 if test -n "$ac_prev"; then
1310   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311   as_fn_error $? "missing argument to $ac_option"
1312 fi
1313
1314 if test -n "$ac_unrecognized_opts"; then
1315   case $enable_option_checking in
1316     no) ;;
1317     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319   esac
1320 fi
1321
1322 # Check all directory arguments for consistency.
1323 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324                 datadir sysconfdir sharedstatedir localstatedir includedir \
1325                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326                 libdir localedir mandir
1327 do
1328   eval ac_val=\$$ac_var
1329   # Remove trailing slashes.
1330   case $ac_val in
1331     */ )
1332       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333       eval $ac_var=\$ac_val;;
1334   esac
1335   # Be sure to have absolute directory names.
1336   case $ac_val in
1337     [\\/$]* | ?:[\\/]* )  continue;;
1338     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339   esac
1340   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1341 done
1342
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1346 build=$build_alias
1347 host=$host_alias
1348 target=$target_alias
1349
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352   if test "x$build_alias" = x; then
1353     cross_compiling=maybe
1354   elif test "x$build_alias" != "x$host_alias"; then
1355     cross_compiling=yes
1356   fi
1357 fi
1358
1359 ac_tool_prefix=
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362 test "$silent" = yes && exec 6>/dev/null
1363
1364
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368   as_fn_error $? "working directory cannot be determined"
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370   as_fn_error $? "pwd does not report name of working directory"
1371
1372
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375   ac_srcdir_defaulted=yes
1376   # Try the directory containing this script, then the parent directory.
1377   ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379          X"$as_myself" : 'X\(//\)[^/]' \| \
1380          X"$as_myself" : 'X\(//\)$' \| \
1381          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 $as_echo X"$as_myself" |
1383     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384             s//\1/
1385             q
1386           }
1387           /^X\(\/\/\)[^/].*/{
1388             s//\1/
1389             q
1390           }
1391           /^X\(\/\/\)$/{
1392             s//\1/
1393             q
1394           }
1395           /^X\(\/\).*/{
1396             s//\1/
1397             q
1398           }
1399           s/.*/./; q'`
1400   srcdir=$ac_confdir
1401   if test ! -r "$srcdir/$ac_unique_file"; then
1402     srcdir=..
1403   fi
1404 else
1405   ac_srcdir_defaulted=no
1406 fi
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1410 fi
1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 ac_abs_confdir=`(
1413         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414         pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417   srcdir=.
1418 fi
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 case $srcdir in
1426   *" "*)
1427     as_fn_error $? "path to source, $srcdir, contains spaces"
1428     ;;
1429 esac
1430 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1431
1432 for ac_var in $ac_precious_vars; do
1433   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434   eval ac_env_${ac_var}_value=\$${ac_var}
1435   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437 done
1438
1439 #
1440 # Report the --help message.
1441 #
1442 if test "$ac_init_help" = "long"; then
1443   # Omit some internal or obsolete options to make the list less imposing.
1444   # This message is too long to be a string in the A/UX 3.1 sh.
1445   cat <<_ACEOF
1446 \`configure' configures this package to adapt to many kinds of systems.
1447
1448 Usage: $0 [OPTION]... [VAR=VALUE]...
1449
1450 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451 VAR=VALUE.  See below for descriptions of some of the useful variables.
1452
1453 Defaults for the options are specified in brackets.
1454
1455 Configuration:
1456   -h, --help              display this help and exit
1457       --help=short        display options specific to this package
1458       --help=recursive    display the short help of all the included packages
1459   -V, --version           display version information and exit
1460   -q, --quiet, --silent   do not print \`checking ...' messages
1461       --cache-file=FILE   cache test results in FILE [disabled]
1462   -C, --config-cache      alias for \`--cache-file=config.cache'
1463   -n, --no-create         do not create output files
1464       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1465
1466 Installation directories:
1467   --prefix=PREFIX         install architecture-independent files in PREFIX
1468                           [$ac_default_prefix]
1469   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1470                           [PREFIX]
1471
1472 By default, \`make install' will install all the files in
1473 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1474 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475 for instance \`--prefix=\$HOME'.
1476
1477 For better control, use the options below.
1478
1479 Fine tuning of the installation directories:
1480   --bindir=DIR            user executables [EPREFIX/bin]
1481   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1482   --libexecdir=DIR        program executables [EPREFIX/libexec]
1483   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1484   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1485   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1486   --libdir=DIR            object code libraries [EPREFIX/lib]
1487   --includedir=DIR        C header files [PREFIX/include]
1488   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1489   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1490   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1491   --infodir=DIR           info documentation [DATAROOTDIR/info]
1492   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1493   --mandir=DIR            man documentation [DATAROOTDIR/man]
1494   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1495   --htmldir=DIR           html documentation [DOCDIR]
1496   --dvidir=DIR            dvi documentation [DOCDIR]
1497   --pdfdir=DIR            pdf documentation [DOCDIR]
1498   --psdir=DIR             ps documentation [DOCDIR]
1499 _ACEOF
1500
1501   cat <<\_ACEOF
1502
1503 Program names:
1504   --program-prefix=PREFIX            prepend PREFIX to installed program names
1505   --program-suffix=SUFFIX            append SUFFIX to installed program names
1506   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1507
1508 System types:
1509   --build=BUILD     configure for building on BUILD [guessed]
1510   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1511   --target=TARGET   configure for building compilers for TARGET [HOST]
1512 _ACEOF
1513 fi
1514
1515 if test -n "$ac_init_help"; then
1516
1517   cat <<\_ACEOF
1518
1519 Optional Features:
1520   --disable-option-checking  ignore unrecognized --enable/--with options
1521   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1522   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1523   --enable-as-accelerator-for=ARG
1524                           build as offload target compiler. Specify offload
1525                           host triple by ARG
1526   --enable-offload-targets=LIST
1527                           enable offloading to devices from comma-separated
1528                           LIST of TARGET[=DIR]. Use optional path to find
1529                           offload target compiler during the build
1530   --enable-offload-defaulted
1531                 If enabled, configured but not installed offload compilers and
1532                 libgomp plugins are silently ignored.  Useful for distribution
1533                 compilers where those are in separate optional packages.
1534
1535   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1536   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1537   --enable-compressed-debug-sections={all,gas,gold,ld,none}
1538                           Enable compressed debug sections for gas, gold or ld
1539                           by default
1540   --disable-libquadmath   do not build libquadmath directory
1541   --disable-libquadmath-support
1542                           disable libquadmath support for Fortran
1543   --enable-libada         build libada directory
1544   --enable-libssp         build libssp directory
1545   --disable-libstdcxx     do not build libstdc++-v3 directory
1546   --enable-liboffloadmic=ARG
1547                           build liboffloadmic [ARG={no,host,target}]
1548   --enable-bootstrap      enable bootstrapping [yes if native build]
1549   --enable-pgo-build[=lto]
1550                           enable the PGO build
1551   --disable-isl-version-check
1552                           disable check for isl version
1553   --enable-lto            enable link time optimization support
1554   --enable-linker-plugin-configure-flags=FLAGS
1555                           additional flags for configuring linker plugins
1556                           [none]
1557   --enable-linker-plugin-flags=FLAGS
1558                           additional flags for configuring and building linker
1559                           plugins [none]
1560   --enable-host-shared    build host code as shared libraries
1561   --enable-stage1-languages[=all]
1562                           choose additional languages to build during stage1.
1563                           Mostly useful for compiler development
1564   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1565                           Objective-C runtime
1566   --enable-vtable-verify  Enable vtable verification feature
1567   --enable-serial-[{host,target,build}-]configure
1568                           force sequential configuration of sub-packages for
1569                           the host, target or build machine, or all
1570                           sub-packages
1571   --enable-maintainer-mode
1572                           enable make rules and dependencies not useful (and
1573                           sometimes confusing) to the casual installer
1574   --enable-stage1-checking[=all]
1575                           choose additional checking for stage1 of the
1576                           compiler
1577   --enable-werror         enable -Werror in bootstrap stage2 and later
1578
1579 Optional Packages:
1580   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1581   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1582   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1583   --with-system-zlib      use installed libz
1584   --with-mpc=PATH         specify prefix directory for installed MPC package.
1585                           Equivalent to --with-mpc-include=PATH/include plus
1586                           --with-mpc-lib=PATH/lib
1587   --with-mpc-include=PATH specify directory for installed MPC include files
1588   --with-mpc-lib=PATH     specify directory for the installed MPC library
1589   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1590                           Equivalent to --with-mpfr-include=PATH/include plus
1591                           --with-mpfr-lib=PATH/lib
1592   --with-mpfr-include=PATH
1593                           specify directory for installed MPFR include files
1594   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1595   --with-gmp=PATH         specify prefix directory for the installed GMP
1596                           package. Equivalent to
1597                           --with-gmp-include=PATH/include plus
1598                           --with-gmp-lib=PATH/lib
1599   --with-gmp-include=PATH specify directory for installed GMP include files
1600   --with-gmp-lib=PATH     specify directory for the installed GMP library
1601   --with-stage1-libs=LIBS libraries for stage1
1602   --with-static-standard-libraries
1603                           use -static-libstdc++ and -static-libgcc
1604                           (default=auto)
1605   --with-stage1-ldflags=FLAGS
1606                           linker flags for stage1
1607   --with-boot-libs=LIBS   libraries for stage2 and later
1608   --with-boot-ldflags=FLAGS
1609                           linker flags for stage2 and later
1610   --with-isl=PATH         Specify prefix directory for the installed isl
1611                           package. Equivalent to
1612                           --with-isl-include=PATH/include plus
1613                           --with-isl-lib=PATH/lib
1614   --with-isl-include=PATH Specify directory for installed isl include files
1615   --with-isl-lib=PATH     Specify the directory for the installed isl library
1616   --with-target-bdw-gc=PATHLIST
1617                           specify prefix directory for installed bdw-gc
1618                           package. Equivalent to
1619                           --with-target-bdw-gc-include=PATH/include plus
1620                           --with-target-bdw-gc-lib=PATH/lib
1621   --with-target-bdw-gc-include=PATHLIST
1622                           specify directories for installed bdw-gc include
1623                           files
1624   --with-target-bdw-gc-lib=PATHLIST
1625                           specify directories for installed bdw-gc library
1626   --with-gcc-major-version-only
1627                           use only GCC major number in filesystem paths
1628   --with-build-sysroot=SYSROOT
1629                           use sysroot as the system root during the build
1630   --with-debug-prefix-map='A=B C=D ...'
1631                           map A to B, C to D ... in debug information
1632   --with-build-config='NAME NAME2...'
1633                           use config/NAME.mk build configuration
1634   --with-build-time-tools=PATH
1635                           use given path to find target tools during the build
1636
1637 Some influential environment variables:
1638   CC          C compiler command
1639   CFLAGS      C compiler flags
1640   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1641               nonstandard directory <lib dir>
1642   LIBS        libraries to pass to the linker, e.g. -l<library>
1643   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1644               you have headers in a nonstandard directory <include dir>
1645   CXX         C++ compiler command
1646   CXXFLAGS    C++ compiler flags
1647   build_configargs
1648               additional configure arguments for build directories
1649   host_configargs
1650               additional configure arguments for host directories
1651   target_configargs
1652               additional configure arguments for target directories
1653   AR          AR for the host
1654   AS          AS for the host
1655   DLLTOOL     DLLTOOL for the host
1656   DSYMUTIL    DSYMUTIL for the host
1657   LD          LD for the host
1658   LIPO        LIPO for the host
1659   NM          NM for the host
1660   RANLIB      RANLIB for the host
1661   STRIP       STRIP for the host
1662   WINDRES     WINDRES for the host
1663   WINDMC      WINDMC for the host
1664   OBJCOPY     OBJCOPY for the host
1665   OBJDUMP     OBJDUMP for the host
1666   OTOOL       OTOOL for the host
1667   READELF     READELF for the host
1668   CC_FOR_TARGET
1669               CC for the target
1670   CXX_FOR_TARGET
1671               CXX for the target
1672   GCC_FOR_TARGET
1673               GCC for the target
1674   GFORTRAN_FOR_TARGET
1675               GFORTRAN for the target
1676   GOC_FOR_TARGET
1677               GOC for the target
1678   GDC_FOR_TARGET
1679               GDC for the target
1680   AR_FOR_TARGET
1681               AR for the target
1682   AS_FOR_TARGET
1683               AS for the target
1684   DLLTOOL_FOR_TARGET
1685               DLLTOOL for the target
1686   DSYMUTIL_FOR_TARGET
1687               DSYMUTIL for the target
1688   LD_FOR_TARGET
1689               LD for the target
1690   LIPO_FOR_TARGET
1691               LIPO for the target
1692   NM_FOR_TARGET
1693               NM for the target
1694   OBJCOPY_FOR_TARGET
1695               OBJCOPY for the target
1696   OBJDUMP_FOR_TARGET
1697               OBJDUMP for the target
1698   OTOOL_FOR_TARGET
1699               OTOOL for the target
1700   RANLIB_FOR_TARGET
1701               RANLIB for the target
1702   READELF_FOR_TARGET
1703               READELF for the target
1704   STRIP_FOR_TARGET
1705               STRIP for the target
1706   WINDRES_FOR_TARGET
1707               WINDRES for the target
1708   WINDMC_FOR_TARGET
1709               WINDMC for the target
1710
1711 Use these variables to override the choices made by `configure' or to help
1712 it to find libraries and programs with nonstandard names/locations.
1713
1714 Report bugs to the package provider.
1715 _ACEOF
1716 ac_status=$?
1717 fi
1718
1719 if test "$ac_init_help" = "recursive"; then
1720   # If there are subdirs, report their specific --help.
1721   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1722     test -d "$ac_dir" ||
1723       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1724       continue
1725     ac_builddir=.
1726
1727 case "$ac_dir" in
1728 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729 *)
1730   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1731   # A ".." for each directory in $ac_dir_suffix.
1732   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1733   case $ac_top_builddir_sub in
1734   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1736   esac ;;
1737 esac
1738 ac_abs_top_builddir=$ac_pwd
1739 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1740 # for backward compatibility:
1741 ac_top_builddir=$ac_top_build_prefix
1742
1743 case $srcdir in
1744   .)  # We are building in place.
1745     ac_srcdir=.
1746     ac_top_srcdir=$ac_top_builddir_sub
1747     ac_abs_top_srcdir=$ac_pwd ;;
1748   [\\/]* | ?:[\\/]* )  # Absolute name.
1749     ac_srcdir=$srcdir$ac_dir_suffix;
1750     ac_top_srcdir=$srcdir
1751     ac_abs_top_srcdir=$srcdir ;;
1752   *) # Relative name.
1753     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1754     ac_top_srcdir=$ac_top_build_prefix$srcdir
1755     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1756 esac
1757 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1758
1759     cd "$ac_dir" || { ac_status=$?; continue; }
1760     # Check for guested configure.
1761     if test -f "$ac_srcdir/configure.gnu"; then
1762       echo &&
1763       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1764     elif test -f "$ac_srcdir/configure"; then
1765       echo &&
1766       $SHELL "$ac_srcdir/configure" --help=recursive
1767     else
1768       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1769     fi || ac_status=$?
1770     cd "$ac_pwd" || { ac_status=$?; break; }
1771   done
1772 fi
1773
1774 test -n "$ac_init_help" && exit $ac_status
1775 if $ac_init_version; then
1776   cat <<\_ACEOF
1777 configure
1778 generated by GNU Autoconf 2.69
1779
1780 Copyright (C) 2012 Free Software Foundation, Inc.
1781 This configure script is free software; the Free Software Foundation
1782 gives unlimited permission to copy, distribute and modify it.
1783 _ACEOF
1784   exit
1785 fi
1786
1787 ## ------------------------ ##
1788 ## Autoconf initialization. ##
1789 ## ------------------------ ##
1790
1791 # ac_fn_c_try_compile LINENO
1792 # --------------------------
1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_compile ()
1795 {
1796   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797   rm -f conftest.$ac_objext
1798   if { { ac_try="$ac_compile"
1799 case "(($ac_try" in
1800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801   *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805   (eval "$ac_compile") 2>conftest.err
1806   ac_status=$?
1807   if test -s conftest.err; then
1808     grep -v '^ *+' conftest.err >conftest.er1
1809     cat conftest.er1 >&5
1810     mv -f conftest.er1 conftest.err
1811   fi
1812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813   test $ac_status = 0; } && {
1814          test -z "$ac_c_werror_flag" ||
1815          test ! -s conftest.err
1816        } && test -s conftest.$ac_objext; then :
1817   ac_retval=0
1818 else
1819   $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822         ac_retval=1
1823 fi
1824   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825   as_fn_set_status $ac_retval
1826
1827 } # ac_fn_c_try_compile
1828
1829 # ac_fn_cxx_try_compile LINENO
1830 # ----------------------------
1831 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_cxx_try_compile ()
1833 {
1834   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835   rm -f conftest.$ac_objext
1836   if { { ac_try="$ac_compile"
1837 case "(($ac_try" in
1838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839   *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843   (eval "$ac_compile") 2>conftest.err
1844   ac_status=$?
1845   if test -s conftest.err; then
1846     grep -v '^ *+' conftest.err >conftest.er1
1847     cat conftest.er1 >&5
1848     mv -f conftest.er1 conftest.err
1849   fi
1850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851   test $ac_status = 0; } && {
1852          test -z "$ac_cxx_werror_flag" ||
1853          test ! -s conftest.err
1854        } && test -s conftest.$ac_objext; then :
1855   ac_retval=0
1856 else
1857   $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1859
1860         ac_retval=1
1861 fi
1862   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863   as_fn_set_status $ac_retval
1864
1865 } # ac_fn_cxx_try_compile
1866
1867 # ac_fn_cxx_try_link LINENO
1868 # -------------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_cxx_try_link ()
1871 {
1872   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873   rm -f conftest.$ac_objext conftest$ac_exeext
1874   if { { ac_try="$ac_link"
1875 case "(($ac_try" in
1876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877   *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881   (eval "$ac_link") 2>conftest.err
1882   ac_status=$?
1883   if test -s conftest.err; then
1884     grep -v '^ *+' conftest.err >conftest.er1
1885     cat conftest.er1 >&5
1886     mv -f conftest.er1 conftest.err
1887   fi
1888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889   test $ac_status = 0; } && {
1890          test -z "$ac_cxx_werror_flag" ||
1891          test ! -s conftest.err
1892        } && test -s conftest$ac_exeext && {
1893          test "$cross_compiling" = yes ||
1894          test -x conftest$ac_exeext
1895        }; then :
1896   ac_retval=0
1897 else
1898   $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901         ac_retval=1
1902 fi
1903   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905   # interfere with the next link command; also delete a directory that is
1906   # left behind by Apple's compiler.  We do this before executing the actions.
1907   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909   as_fn_set_status $ac_retval
1910
1911 } # ac_fn_cxx_try_link
1912
1913 # ac_fn_c_try_link LINENO
1914 # -----------------------
1915 # Try to link conftest.$ac_ext, and return whether this succeeded.
1916 ac_fn_c_try_link ()
1917 {
1918   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919   rm -f conftest.$ac_objext conftest$ac_exeext
1920   if { { ac_try="$ac_link"
1921 case "(($ac_try" in
1922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923   *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927   (eval "$ac_link") 2>conftest.err
1928   ac_status=$?
1929   if test -s conftest.err; then
1930     grep -v '^ *+' conftest.err >conftest.er1
1931     cat conftest.er1 >&5
1932     mv -f conftest.er1 conftest.err
1933   fi
1934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935   test $ac_status = 0; } && {
1936          test -z "$ac_c_werror_flag" ||
1937          test ! -s conftest.err
1938        } && test -s conftest$ac_exeext && {
1939          test "$cross_compiling" = yes ||
1940          test -x conftest$ac_exeext
1941        }; then :
1942   ac_retval=0
1943 else
1944   $as_echo "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1946
1947         ac_retval=1
1948 fi
1949   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1950   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1951   # interfere with the next link command; also delete a directory that is
1952   # left behind by Apple's compiler.  We do this before executing the actions.
1953   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955   as_fn_set_status $ac_retval
1956
1957 } # ac_fn_c_try_link
1958 cat >config.log <<_ACEOF
1959 This file contains any messages produced by compilers while
1960 running configure, to aid debugging if configure makes a mistake.
1961
1962 It was created by $as_me, which was
1963 generated by GNU Autoconf 2.69.  Invocation command line was
1964
1965   $ $0 $@
1966
1967 _ACEOF
1968 exec 5>>config.log
1969 {
1970 cat <<_ASUNAME
1971 ## --------- ##
1972 ## Platform. ##
1973 ## --------- ##
1974
1975 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1976 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1977 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1978 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1979 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1980
1981 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1982 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1983
1984 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1985 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1986 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1987 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1988 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1989 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1990 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1991
1992 _ASUNAME
1993
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1996 do
1997   IFS=$as_save_IFS
1998   test -z "$as_dir" && as_dir=.
1999     $as_echo "PATH: $as_dir"
2000   done
2001 IFS=$as_save_IFS
2002
2003 } >&5
2004
2005 cat >&5 <<_ACEOF
2006
2007
2008 ## ----------- ##
2009 ## Core tests. ##
2010 ## ----------- ##
2011
2012 _ACEOF
2013
2014
2015 # Keep a trace of the command line.
2016 # Strip out --no-create and --no-recursion so they do not pile up.
2017 # Strip out --silent because we don't want to record it for future runs.
2018 # Also quote any args containing shell meta-characters.
2019 # Make two passes to allow for proper duplicate-argument suppression.
2020 ac_configure_args=
2021 ac_configure_args0=
2022 ac_configure_args1=
2023 ac_must_keep_next=false
2024 for ac_pass in 1 2
2025 do
2026   for ac_arg
2027   do
2028     case $ac_arg in
2029     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2030     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2031     | -silent | --silent | --silen | --sile | --sil)
2032       continue ;;
2033     *\'*)
2034       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2035     esac
2036     case $ac_pass in
2037     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2038     2)
2039       as_fn_append ac_configure_args1 " '$ac_arg'"
2040       if test $ac_must_keep_next = true; then
2041         ac_must_keep_next=false # Got value, back to normal.
2042       else
2043         case $ac_arg in
2044           *=* | --config-cache | -C | -disable-* | --disable-* \
2045           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2046           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2047           | -with-* | --with-* | -without-* | --without-* | --x)
2048             case "$ac_configure_args0 " in
2049               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2050             esac
2051             ;;
2052           -* ) ac_must_keep_next=true ;;
2053         esac
2054       fi
2055       as_fn_append ac_configure_args " '$ac_arg'"
2056       ;;
2057     esac
2058   done
2059 done
2060 { ac_configure_args0=; unset ac_configure_args0;}
2061 { ac_configure_args1=; unset ac_configure_args1;}
2062
2063 # When interrupted or exit'd, cleanup temporary files, and complete
2064 # config.log.  We remove comments because anyway the quotes in there
2065 # would cause problems or look ugly.
2066 # WARNING: Use '\'' to represent an apostrophe within the trap.
2067 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2068 trap 'exit_status=$?
2069   # Save into config.log some information that might help in debugging.
2070   {
2071     echo
2072
2073     $as_echo "## ---------------- ##
2074 ## Cache variables. ##
2075 ## ---------------- ##"
2076     echo
2077     # The following way of writing the cache mishandles newlines in values,
2078 (
2079   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2080     eval ac_val=\$$ac_var
2081     case $ac_val in #(
2082     *${as_nl}*)
2083       case $ac_var in #(
2084       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2085 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2086       esac
2087       case $ac_var in #(
2088       _ | IFS | as_nl) ;; #(
2089       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2090       *) { eval $ac_var=; unset $ac_var;} ;;
2091       esac ;;
2092     esac
2093   done
2094   (set) 2>&1 |
2095     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2096     *${as_nl}ac_space=\ *)
2097       sed -n \
2098         "s/'\''/'\''\\\\'\'''\''/g;
2099           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2100       ;; #(
2101     *)
2102       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2103       ;;
2104     esac |
2105     sort
2106 )
2107     echo
2108
2109     $as_echo "## ----------------- ##
2110 ## Output variables. ##
2111 ## ----------------- ##"
2112     echo
2113     for ac_var in $ac_subst_vars
2114     do
2115       eval ac_val=\$$ac_var
2116       case $ac_val in
2117       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118       esac
2119       $as_echo "$ac_var='\''$ac_val'\''"
2120     done | sort
2121     echo
2122
2123     if test -n "$ac_subst_files"; then
2124       $as_echo "## ------------------- ##
2125 ## File substitutions. ##
2126 ## ------------------- ##"
2127       echo
2128       for ac_var in $ac_subst_files
2129       do
2130         eval ac_val=\$$ac_var
2131         case $ac_val in
2132         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133         esac
2134         $as_echo "$ac_var='\''$ac_val'\''"
2135       done | sort
2136       echo
2137     fi
2138
2139     if test -s confdefs.h; then
2140       $as_echo "## ----------- ##
2141 ## confdefs.h. ##
2142 ## ----------- ##"
2143       echo
2144       cat confdefs.h
2145       echo
2146     fi
2147     test "$ac_signal" != 0 &&
2148       $as_echo "$as_me: caught signal $ac_signal"
2149     $as_echo "$as_me: exit $exit_status"
2150   } >&5
2151   rm -f core *.core core.conftest.* &&
2152     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2153     exit $exit_status
2154 ' 0
2155 for ac_signal in 1 2 13 15; do
2156   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2157 done
2158 ac_signal=0
2159
2160 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2161 rm -f -r conftest* confdefs.h
2162
2163 $as_echo "/* confdefs.h */" > confdefs.h
2164
2165 # Predefined preprocessor variables.
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_NAME "$PACKAGE_NAME"
2169 _ACEOF
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2173 _ACEOF
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2177 _ACEOF
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_STRING "$PACKAGE_STRING"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2185 _ACEOF
2186
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_URL "$PACKAGE_URL"
2189 _ACEOF
2190
2191
2192 # Let the site file select an alternate cache file if it wants to.
2193 # Prefer an explicitly selected file to automatically selected ones.
2194 ac_site_file1=NONE
2195 ac_site_file2=NONE
2196 if test -n "$CONFIG_SITE"; then
2197   # We do not want a PATH search for config.site.
2198   case $CONFIG_SITE in #((
2199     -*)  ac_site_file1=./$CONFIG_SITE;;
2200     */*) ac_site_file1=$CONFIG_SITE;;
2201     *)   ac_site_file1=./$CONFIG_SITE;;
2202   esac
2203 elif test "x$prefix" != xNONE; then
2204   ac_site_file1=$prefix/share/config.site
2205   ac_site_file2=$prefix/etc/config.site
2206 else
2207   ac_site_file1=$ac_default_prefix/share/config.site
2208   ac_site_file2=$ac_default_prefix/etc/config.site
2209 fi
2210 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2211 do
2212   test "x$ac_site_file" = xNONE && continue
2213   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2214     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2215 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2216     sed 's/^/| /' "$ac_site_file" >&5
2217     . "$ac_site_file" \
2218       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2220 as_fn_error $? "failed to load site script $ac_site_file
2221 See \`config.log' for more details" "$LINENO" 5; }
2222   fi
2223 done
2224
2225 if test -r "$cache_file"; then
2226   # Some versions of bash will fail to source /dev/null (special files
2227   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2228   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2229     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2230 $as_echo "$as_me: loading cache $cache_file" >&6;}
2231     case $cache_file in
2232       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2233       *)                      . "./$cache_file";;
2234     esac
2235   fi
2236 else
2237   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2238 $as_echo "$as_me: creating cache $cache_file" >&6;}
2239   >$cache_file
2240 fi
2241
2242 # Check that the precious variables saved in the cache have kept the same
2243 # value.
2244 ac_cache_corrupted=false
2245 for ac_var in $ac_precious_vars; do
2246   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2247   eval ac_new_set=\$ac_env_${ac_var}_set
2248   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2249   eval ac_new_val=\$ac_env_${ac_var}_value
2250   case $ac_old_set,$ac_new_set in
2251     set,)
2252       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2253 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2254       ac_cache_corrupted=: ;;
2255     ,set)
2256       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2257 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2258       ac_cache_corrupted=: ;;
2259     ,);;
2260     *)
2261       if test "x$ac_old_val" != "x$ac_new_val"; then
2262         # differences in whitespace do not lead to failure.
2263         ac_old_val_w=`echo x $ac_old_val`
2264         ac_new_val_w=`echo x $ac_new_val`
2265         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2266           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2267 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2268           ac_cache_corrupted=:
2269         else
2270           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2271 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2272           eval $ac_var=\$ac_old_val
2273         fi
2274         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2275 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2276         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2277 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2278       fi;;
2279   esac
2280   # Pass precious variables to config.status.
2281   if test "$ac_new_set" = set; then
2282     case $ac_new_val in
2283     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2284     *) ac_arg=$ac_var=$ac_new_val ;;
2285     esac
2286     case " $ac_configure_args " in
2287       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2288       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2289     esac
2290   fi
2291 done
2292 if $ac_cache_corrupted; then
2293   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2296 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2297   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2298 fi
2299 ## -------------------- ##
2300 ## Main body of script. ##
2301 ## -------------------- ##
2302
2303 ac_ext=c
2304 ac_cpp='$CPP $CPPFLAGS'
2305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308
2309
2310
2311
2312
2313
2314
2315
2316 progname=$0
2317 # if PWD already has a value, it is probably wrong.
2318 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2319
2320 # Export original configure arguments for use by sub-configures.
2321 # Quote arguments with shell meta charatcers.
2322 TOPLEVEL_CONFIGURE_ARGUMENTS=
2323 set -- "$progname" "$@"
2324 for ac_arg
2325 do
2326   case "$ac_arg" in
2327   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2328     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2329     # if the argument is of the form -foo=baz, quote the baz part only
2330     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2331   *) ;;
2332   esac
2333   # Add the quoted argument to the list.
2334   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2335 done
2336 if test "$silent" = yes; then
2337   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2338 fi
2339 # Remove the initial space we just introduced and, as these will be
2340 # expanded by make, quote '$'.
2341 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2342
2343
2344 # Find the build, host, and target systems.
2345 ac_aux_dir=
2346 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2347   if test -f "$ac_dir/install-sh"; then
2348     ac_aux_dir=$ac_dir
2349     ac_install_sh="$ac_aux_dir/install-sh -c"
2350     break
2351   elif test -f "$ac_dir/install.sh"; then
2352     ac_aux_dir=$ac_dir
2353     ac_install_sh="$ac_aux_dir/install.sh -c"
2354     break
2355   elif test -f "$ac_dir/shtool"; then
2356     ac_aux_dir=$ac_dir
2357     ac_install_sh="$ac_aux_dir/shtool install -c"
2358     break
2359   fi
2360 done
2361 if test -z "$ac_aux_dir"; then
2362   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2363 fi
2364
2365 # These three variables are undocumented and unsupported,
2366 # and are intended to be withdrawn in a future Autoconf release.
2367 # They can cause serious problems if a builder's source tree is in a directory
2368 # whose full name contains unusual characters.
2369 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2370 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2371 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2372
2373
2374 # Make sure we can run config.sub.
2375 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2376   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2377
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2379 $as_echo_n "checking build system type... " >&6; }
2380 if ${ac_cv_build+:} false; then :
2381   $as_echo_n "(cached) " >&6
2382 else
2383   ac_build_alias=$build_alias
2384 test "x$ac_build_alias" = x &&
2385   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2386 test "x$ac_build_alias" = x &&
2387   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2388 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2389   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2390
2391 fi
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2393 $as_echo "$ac_cv_build" >&6; }
2394 case $ac_cv_build in
2395 *-*-*) ;;
2396 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2397 esac
2398 build=$ac_cv_build
2399 ac_save_IFS=$IFS; IFS='-'
2400 set x $ac_cv_build
2401 shift
2402 build_cpu=$1
2403 build_vendor=$2
2404 shift; shift
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2407 build_os=$*
2408 IFS=$ac_save_IFS
2409 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2410
2411
2412  case ${build_alias} in
2413   "") build_noncanonical=${build} ;;
2414   *) build_noncanonical=${build_alias} ;;
2415 esac
2416
2417
2418
2419  case ${host_alias} in
2420   "") host_noncanonical=${build_noncanonical} ;;
2421   *) host_noncanonical=${host_alias} ;;
2422 esac
2423
2424
2425
2426  case ${target_alias} in
2427   "") target_noncanonical=${host_noncanonical} ;;
2428   *) target_noncanonical=${target_alias} ;;
2429 esac
2430
2431
2432
2433
2434 test "$host_noncanonical" = "$target_noncanonical" &&
2435   test "$program_prefix$program_suffix$program_transform_name" = \
2436     NONENONEs,x,x, &&
2437   program_transform_name=s,y,y,
2438
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2440 $as_echo_n "checking host system type... " >&6; }
2441 if ${ac_cv_host+:} false; then :
2442   $as_echo_n "(cached) " >&6
2443 else
2444   if test "x$host_alias" = x; then
2445   ac_cv_host=$ac_cv_build
2446 else
2447   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2448     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2449 fi
2450
2451 fi
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2453 $as_echo "$ac_cv_host" >&6; }
2454 case $ac_cv_host in
2455 *-*-*) ;;
2456 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2457 esac
2458 host=$ac_cv_host
2459 ac_save_IFS=$IFS; IFS='-'
2460 set x $ac_cv_host
2461 shift
2462 host_cpu=$1
2463 host_vendor=$2
2464 shift; shift
2465 # Remember, the first character of IFS is used to create $*,
2466 # except with old shells:
2467 host_os=$*
2468 IFS=$ac_save_IFS
2469 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2470
2471
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2473 $as_echo_n "checking target system type... " >&6; }
2474 if ${ac_cv_target+:} false; then :
2475   $as_echo_n "(cached) " >&6
2476 else
2477   if test "x$target_alias" = x; then
2478   ac_cv_target=$ac_cv_host
2479 else
2480   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2481     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2482 fi
2483
2484 fi
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2486 $as_echo "$ac_cv_target" >&6; }
2487 case $ac_cv_target in
2488 *-*-*) ;;
2489 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2490 esac
2491 target=$ac_cv_target
2492 ac_save_IFS=$IFS; IFS='-'
2493 set x $ac_cv_target
2494 shift
2495 target_cpu=$1
2496 target_vendor=$2
2497 shift; shift
2498 # Remember, the first character of IFS is used to create $*,
2499 # except with old shells:
2500 target_os=$*
2501 IFS=$ac_save_IFS
2502 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2503
2504
2505 # The aliases save the names the user supplied, while $host etc.
2506 # will get canonicalized.
2507 test -n "$target_alias" &&
2508   test "$program_prefix$program_suffix$program_transform_name" = \
2509     NONENONEs,x,x, &&
2510   program_prefix=${target_alias}-
2511
2512 test "$program_prefix" != NONE &&
2513   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2514 # Use a double $ so make ignores it.
2515 test "$program_suffix" != NONE &&
2516   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2517 # Double any \ or $.
2518 # By default was `s,x,x', remove it if useless.
2519 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2520 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2521
2522
2523
2524 # Get 'install' or 'install-sh' and its variants.
2525 # Find a good install program.  We prefer a C program (faster),
2526 # so one script is as good as another.  But avoid the broken or
2527 # incompatible versions:
2528 # SysV /etc/install, /usr/sbin/install
2529 # SunOS /usr/etc/install
2530 # IRIX /sbin/install
2531 # AIX /bin/install
2532 # AmigaOS /C/install, which installs bootblocks on floppy discs
2533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2536 # OS/2's system install, which has a completely different semantic
2537 # ./install, which can be erroneously created by make from ./install.sh.
2538 # Reject install programs that cannot install multiple files.
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2540 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2541 if test -z "$INSTALL"; then
2542 if ${ac_cv_path_install+:} false; then :
2543   $as_echo_n "(cached) " >&6
2544 else
2545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2547 do
2548   IFS=$as_save_IFS
2549   test -z "$as_dir" && as_dir=.
2550     # Account for people who put trailing slashes in PATH elements.
2551 case $as_dir/ in #((
2552   ./ | .// | /[cC]/* | \
2553   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2554   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2555   /usr/ucb/* ) ;;
2556   *)
2557     # OSF1 and SCO ODT 3.0 have their own names for install.
2558     # Don't use installbsd from OSF since it installs stuff as root
2559     # by default.
2560     for ac_prog in ginstall scoinst install; do
2561       for ac_exec_ext in '' $ac_executable_extensions; do
2562         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2563           if test $ac_prog = install &&
2564             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2565             # AIX install.  It has an incompatible calling convention.
2566             :
2567           elif test $ac_prog = install &&
2568             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569             # program-specific install script used by HP pwplus--don't use.
2570             :
2571           else
2572             rm -rf conftest.one conftest.two conftest.dir
2573             echo one > conftest.one
2574             echo two > conftest.two
2575             mkdir conftest.dir
2576             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2577               test -s conftest.one && test -s conftest.two &&
2578               test -s conftest.dir/conftest.one &&
2579               test -s conftest.dir/conftest.two
2580             then
2581               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2582               break 3
2583             fi
2584           fi
2585         fi
2586       done
2587     done
2588     ;;
2589 esac
2590
2591   done
2592 IFS=$as_save_IFS
2593
2594 rm -rf conftest.one conftest.two conftest.dir
2595
2596 fi
2597   if test "${ac_cv_path_install+set}" = set; then
2598     INSTALL=$ac_cv_path_install
2599   else
2600     # As a last resort, use the slow shell script.  Don't cache a
2601     # value for INSTALL within a source directory, because that will
2602     # break other packages using the cache if that directory is
2603     # removed, or if the value is a relative name.
2604     INSTALL=$ac_install_sh
2605   fi
2606 fi
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2608 $as_echo "$INSTALL" >&6; }
2609
2610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2611 # It thinks the first close brace ends the variable substitution.
2612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2613
2614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2615
2616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2617
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2619 $as_echo_n "checking whether ln works... " >&6; }
2620 if ${acx_cv_prog_LN+:} false; then :
2621   $as_echo_n "(cached) " >&6
2622 else
2623   rm -f conftestdata_t
2624 echo >conftestdata_f
2625 if ln conftestdata_f conftestdata_t 2>/dev/null
2626 then
2627   acx_cv_prog_LN=ln
2628 else
2629   acx_cv_prog_LN=no
2630 fi
2631 rm -f conftestdata_f conftestdata_t
2632
2633 fi
2634 if test $acx_cv_prog_LN = no; then
2635   LN="cp"
2636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2637 $as_echo "no, using $LN" >&6; }
2638 else
2639   LN="$acx_cv_prog_LN"
2640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2641 $as_echo "yes" >&6; }
2642 fi
2643
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2645 $as_echo_n "checking whether ln -s works... " >&6; }
2646 LN_S=$as_ln_s
2647 if test "$LN_S" = "ln -s"; then
2648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649 $as_echo "yes" >&6; }
2650 else
2651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2652 $as_echo "no, using $LN_S" >&6; }
2653 fi
2654
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2656 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2657 if ${ac_cv_path_SED+:} false; then :
2658   $as_echo_n "(cached) " >&6
2659 else
2660             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2661      for ac_i in 1 2 3 4 5 6 7; do
2662        ac_script="$ac_script$as_nl$ac_script"
2663      done
2664      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2665      { ac_script=; unset ac_script;}
2666      if test -z "$SED"; then
2667   ac_path_SED_found=false
2668   # Loop through the user's path and test for each of PROGNAME-LIST
2669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672   IFS=$as_save_IFS
2673   test -z "$as_dir" && as_dir=.
2674     for ac_prog in sed gsed; do
2675     for ac_exec_ext in '' $ac_executable_extensions; do
2676       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2677       as_fn_executable_p "$ac_path_SED" || continue
2678 # Check for GNU ac_path_SED and select it if it is found.
2679   # Check for GNU $ac_path_SED
2680 case `"$ac_path_SED" --version 2>&1` in
2681 *GNU*)
2682   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2683 *)
2684   ac_count=0
2685   $as_echo_n 0123456789 >"conftest.in"
2686   while :
2687   do
2688     cat "conftest.in" "conftest.in" >"conftest.tmp"
2689     mv "conftest.tmp" "conftest.in"
2690     cp "conftest.in" "conftest.nl"
2691     $as_echo '' >> "conftest.nl"
2692     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2693     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2694     as_fn_arith $ac_count + 1 && ac_count=$as_val
2695     if test $ac_count -gt ${ac_path_SED_max-0}; then
2696       # Best one so far, save it but keep looking for a better one
2697       ac_cv_path_SED="$ac_path_SED"
2698       ac_path_SED_max=$ac_count
2699     fi
2700     # 10*(2^10) chars as input seems more than enough
2701     test $ac_count -gt 10 && break
2702   done
2703   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2704 esac
2705
2706       $ac_path_SED_found && break 3
2707     done
2708   done
2709   done
2710 IFS=$as_save_IFS
2711   if test -z "$ac_cv_path_SED"; then
2712     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2713   fi
2714 else
2715   ac_cv_path_SED=$SED
2716 fi
2717
2718 fi
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2720 $as_echo "$ac_cv_path_SED" >&6; }
2721  SED="$ac_cv_path_SED"
2722   rm -f conftest.sed
2723
2724 for ac_prog in gawk mawk nawk awk
2725 do
2726   # Extract the first word of "$ac_prog", so it can be a program name with args.
2727 set dummy $ac_prog; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if ${ac_cv_prog_AWK+:} false; then :
2731   $as_echo_n "(cached) " >&6
2732 else
2733   if test -n "$AWK"; then
2734   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2738 do
2739   IFS=$as_save_IFS
2740   test -z "$as_dir" && as_dir=.
2741     for ac_exec_ext in '' $ac_executable_extensions; do
2742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743     ac_cv_prog_AWK="$ac_prog"
2744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745     break 2
2746   fi
2747 done
2748   done
2749 IFS=$as_save_IFS
2750
2751 fi
2752 fi
2753 AWK=$ac_cv_prog_AWK
2754 if test -n "$AWK"; then
2755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2756 $as_echo "$AWK" >&6; }
2757 else
2758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2760 fi
2761
2762
2763   test -n "$AWK" && break
2764 done
2765
2766
2767 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2768
2769 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2770 # a relative path.
2771 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2772   INSTALL="${srcpwd}/install-sh -c"
2773 fi
2774
2775 # Set srcdir to "." if that's what it is.
2776 # This is important for multilib support.
2777 pwd=`${PWDCMD-pwd}`
2778 if test "${pwd}" = "${srcpwd}" ; then
2779   srcdir=.
2780 fi
2781
2782 topsrcdir=$srcpwd
2783
2784 extra_host_args=
2785
2786 ### To add a new directory to the tree, first choose whether it is a target
2787 ### or a host dependent tool.  Then put it into the appropriate list
2788 ### (library or tools, host or target), doing a dependency sort.
2789
2790 # Subdirs will be configured in the order listed in build_configdirs,
2791 # configdirs, or target_configdirs; see the serialization section below.
2792
2793 # Dependency sorting is only needed when *configuration* must be done in
2794 # a particular order.  In all cases a dependency should be specified in
2795 # the Makefile, whether or not it's implicitly specified here.
2796
2797 # Double entries in build_configdirs, configdirs, or target_configdirs may
2798 # cause circular dependencies and break everything horribly.
2799
2800 # these library is used by various programs built for the build
2801 # environment
2802 #
2803 build_libs="build-libiberty build-libcpp"
2804
2805 # these tools are built for the build environment
2806 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2807
2808 # these libraries are used by various programs built for the host environment
2809 #f
2810 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf"
2811
2812 # these tools are built for the host environment
2813 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2814 # know that we are building the simulator.
2815 # binutils, gas and ld appear in that order because it makes sense to run
2816 # "make check" in that particular order.
2817 # If --enable-gold is used, "gold" may replace "ld".
2818 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
2819
2820 # these libraries are built for the target environment, and are built after
2821 # the host libraries and the host tools (which may be a cross compiler)
2822 # Note that libiberty is not a target library.
2823 target_libraries="target-libgcc \
2824                 target-libbacktrace \
2825                 target-libgloss \
2826                 target-newlib \
2827                 target-libgomp \
2828                 target-liboffloadmic \
2829                 target-libatomic \
2830                 target-libitm \
2831                 target-libstdc++-v3 \
2832                 target-libsanitizer \
2833                 target-libvtv \
2834                 target-libssp \
2835                 target-libquadmath \
2836                 target-libgfortran \
2837                 target-libffi \
2838                 target-libobjc \
2839                 target-libada \
2840                 target-libgo \
2841                 target-libphobos \
2842                 target-zlib"
2843
2844 # these tools are built using the target libraries, and are intended to
2845 # run only in the target environment
2846 #
2847 # note: any program that *uses* libraries that are in the "target_libraries"
2848 # list belongs in this list.
2849 #
2850 target_tools="target-rda"
2851
2852 ################################################################################
2853
2854 ## All tools belong in one of the four categories, and are assigned above
2855 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2856 ## is important because configure will choke if they ever get through.
2857 ## ${configdirs} is directories we build using the host tools.
2858 ## ${target_configdirs} is directories we build using the target tools.
2859 configdirs=`echo ${host_libs} ${host_tools}`
2860 target_configdirs=`echo ${target_libraries} ${target_tools}`
2861 build_configdirs=`echo ${build_libs} ${build_tools}`
2862
2863
2864
2865 ################################################################################
2866
2867 srcname="gnu development package"
2868
2869 # This gets set non-empty for some net releases of packages.
2870 appdirs=""
2871
2872 # Define is_cross_compiler to save on calls to 'test'.
2873 is_cross_compiler=
2874 if test x"${host}" = x"${target}" ; then
2875   is_cross_compiler=no
2876 else
2877   is_cross_compiler=yes
2878 fi
2879
2880 # Find the build and target subdir names.
2881
2882 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2883 # have matching libraries, they should use host libraries: Makefile.tpl
2884 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2885 # However, they still use the build modules, because the corresponding
2886 # host modules (e.g. bison) are only built for the host when bootstrap
2887 # finishes. So:
2888 # - build_subdir is where we find build modules, and never changes.
2889 # - build_libsubdir is where we find build libraries, and can be overridden.
2890
2891 # Prefix 'build-' so this never conflicts with target_subdir.
2892 build_subdir="build-${build_noncanonical}"
2893
2894 # Check whether --with-build-libsubdir was given.
2895 if test "${with_build_libsubdir+set}" = set; then :
2896   withval=$with_build_libsubdir; build_libsubdir="$withval"
2897 else
2898   build_libsubdir="$build_subdir"
2899 fi
2900
2901 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2902 if ( test $srcdir = . && test -d gcc ) \
2903    || test -d $srcdir/../host-${host_noncanonical}; then
2904   host_subdir="host-${host_noncanonical}"
2905 else
2906   host_subdir=.
2907 fi
2908 # No prefix.
2909 target_subdir=${target_noncanonical}
2910
2911 # Be sure to cover against remnants of an in-tree build.
2912 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2913   as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2914 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2915 fi
2916
2917 # Skipdirs are removed silently.
2918 skipdirs=
2919 # Noconfigdirs are removed loudly.
2920 noconfigdirs=""
2921
2922 use_gnu_ld=
2923 # Make sure we don't let GNU ld be added if we didn't want it.
2924 if test x$with_gnu_ld = xno ; then
2925   use_gnu_ld=no
2926   noconfigdirs="$noconfigdirs ld gold"
2927 fi
2928
2929 use_gnu_as=
2930 # Make sure we don't let GNU as be added if we didn't want it.
2931 if test x$with_gnu_as = xno ; then
2932   use_gnu_as=no
2933   noconfigdirs="$noconfigdirs gas"
2934 fi
2935
2936 use_included_zlib=
2937
2938 # Check whether --with-system-zlib was given.
2939 if test "${with_system_zlib+set}" = set; then :
2940   withval=$with_system_zlib;
2941 fi
2942
2943 # Make sure we don't let ZLIB be added if we didn't want it.
2944 if test x$with_system_zlib = xyes ; then
2945   use_included_zlib=no
2946   noconfigdirs="$noconfigdirs zlib"
2947 fi
2948
2949 # some tools are so dependent upon X11 that if we're not building with X,
2950 # it's not even worth trying to configure, much less build, that tool.
2951
2952 case ${with_x} in
2953   yes | "") ;; # the default value for this tree is that X11 is available
2954   no)
2955     skipdirs="${skipdirs} tk itcl libgui"
2956     # We won't be able to build gdbtk without X.
2957     enable_gdbtk=no
2958     ;;
2959   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2960 esac
2961
2962 # Some are only suitable for cross toolchains.
2963 # Remove these if host=target.
2964 cross_only="target-libgloss target-newlib target-opcodes"
2965
2966 case $is_cross_compiler in
2967   no) skipdirs="${skipdirs} ${cross_only}" ;;
2968 esac
2969
2970 # If both --with-headers and --with-libs are specified, default to
2971 # --without-newlib.
2972 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2973    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2974   if test x"${with_newlib}" = x ; then
2975     with_newlib=no
2976   fi
2977 fi
2978
2979 # Recognize --with-newlib/--without-newlib.
2980 case ${with_newlib} in
2981   no) skipdirs="${skipdirs} target-newlib" ;;
2982   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2983 esac
2984
2985 # Check whether --enable-as-accelerator-for was given.
2986 if test "${enable_as_accelerator_for+set}" = set; then :
2987   enableval=$enable_as_accelerator_for;
2988 fi
2989
2990
2991 # Check whether --enable-offload-targets was given.
2992 if test "${enable_offload_targets+set}" = set; then :
2993   enableval=$enable_offload_targets;
2994   if test x"$enable_offload_targets" = x; then
2995     as_fn_error $? "no offload targets specified" "$LINENO" 5
2996   fi
2997
2998 else
2999   enable_offload_targets=
3000 fi
3001
3002
3003 # Check whether --enable-offload-defaulted was given.
3004 if test "${enable_offload_defaulted+set}" = set; then :
3005   enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3006 else
3007   enable_offload_defaulted=
3008 fi
3009
3010
3011 # Handle --enable-gold, --enable-ld.
3012 # --disable-gold [--enable-ld]
3013 #     Build only ld.  Default option.
3014 # --enable-gold [--enable-ld]
3015 #     Build both gold and ld.  Install gold as "ld.gold", install ld
3016 #     as "ld.bfd" and "ld".
3017 # --enable-gold=default [--enable-ld]
3018 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
3019 #     install ld as "ld.bfd".
3020 # --enable-gold[=default] --disable-ld
3021 #     Build only gold, which is then installed as both "ld.gold" and "ld".
3022 # --enable-gold --enable-ld=default
3023 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
3024 #     and ld.bfd).
3025 #     In other words, ld is default
3026 # --enable-gold=default --enable-ld=default
3027 #     Error.
3028
3029 default_ld=
3030 # Check whether --enable-gold was given.
3031 if test "${enable_gold+set}" = set; then :
3032   enableval=$enable_gold; ENABLE_GOLD=$enableval
3033 else
3034   ENABLE_GOLD=no
3035 fi
3036
3037 case "${ENABLE_GOLD}" in
3038   yes|default)
3039     # Check for ELF target.
3040     is_elf=no
3041     case "${target}" in
3042       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3043       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3044       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3045       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3046         case "${target}" in
3047           *-*-linux*aout* | *-*-linux*oldld*)
3048             ;;
3049           *)
3050             is_elf=yes
3051             ;;
3052         esac
3053     esac
3054
3055     if test "$is_elf" = "yes"; then
3056       # Check for target supported by gold.
3057       case "${target}" in
3058         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3059         | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3060           configdirs="$configdirs gold"
3061           if test x${ENABLE_GOLD} = xdefault; then
3062             default_ld=gold
3063           fi
3064           ENABLE_GOLD=yes
3065           ;;
3066       esac
3067     fi
3068     ;;
3069   no)
3070     ;;
3071   *)
3072     as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3073     ;;
3074 esac
3075
3076 # Check whether --enable-ld was given.
3077 if test "${enable_ld+set}" = set; then :
3078   enableval=$enable_ld; ENABLE_LD=$enableval
3079 else
3080   ENABLE_LD=yes
3081 fi
3082
3083
3084 case "${ENABLE_LD}" in
3085   default)
3086     if test x${default_ld} != x; then
3087       as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3088     fi
3089     ;;
3090   yes)
3091     ;;
3092   no)
3093     if test x${ENABLE_GOLD} != xyes; then
3094       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3095 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3096     fi
3097     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3098     ;;
3099   *)
3100     as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3101     ;;
3102 esac
3103
3104 # PR gas/19109
3105 # Decide the default method for compressing debug sections.
3106 # Provide a configure time option to override our default.
3107 # Check whether --enable-compressed_debug_sections was given.
3108 if test "${enable_compressed_debug_sections+set}" = set; then :
3109   enableval=$enable_compressed_debug_sections;
3110   if test x"$enable_compressed_debug_sections" = xyes; then
3111     as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3112   fi
3113
3114 else
3115   enable_compressed_debug_sections=
3116 fi
3117
3118
3119 # Configure extra directories which are host specific
3120
3121 case "${host}" in
3122   *-cygwin*)
3123     configdirs="$configdirs libtermcap" ;;
3124 esac
3125
3126 # A target can indicate whether a language isn't supported for some reason.
3127 # Only spaces may be used in this macro; not newlines or tabs.
3128 unsupported_languages=
3129
3130 # Remove more programs from consideration, based on the host or
3131 # target this usually means that a port of the program doesn't
3132 # exist yet.
3133
3134 case "${host}" in
3135   i[3456789]86-*-msdosdjgpp*)
3136     noconfigdirs="$noconfigdirs tcl tk itcl"
3137     ;;
3138 esac
3139
3140
3141 # Check whether --enable-libquadmath was given.
3142 if test "${enable_libquadmath+set}" = set; then :
3143   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3144 else
3145   ENABLE_LIBQUADMATH=yes
3146 fi
3147
3148 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3149   noconfigdirs="$noconfigdirs target-libquadmath"
3150 fi
3151
3152
3153 # Check whether --enable-libquadmath-support was given.
3154 if test "${enable_libquadmath_support+set}" = set; then :
3155   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3156 else
3157   ENABLE_LIBQUADMATH_SUPPORT=yes
3158 fi
3159
3160 enable_libquadmath_support=
3161 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3162   enable_libquadmath_support=no
3163 fi
3164
3165
3166 # Check whether --enable-libada was given.
3167 if test "${enable_libada+set}" = set; then :
3168   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3169 else
3170   ENABLE_LIBADA=yes
3171 fi
3172
3173 if test "${ENABLE_LIBADA}" != "yes" ; then
3174   noconfigdirs="$noconfigdirs gnattools"
3175 fi
3176
3177 # Check whether --enable-libssp was given.
3178 if test "${enable_libssp+set}" = set; then :
3179   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3180 else
3181   ENABLE_LIBSSP=yes
3182 fi
3183
3184
3185 # Check whether --enable-libstdcxx was given.
3186 if test "${enable_libstdcxx+set}" = set; then :
3187   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3188 else
3189   ENABLE_LIBSTDCXX=default
3190 fi
3191
3192 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3193   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3194 fi
3195
3196 # If this is accelerator compiler and its target is intelmic we enable
3197 # target liboffloadmic by default.  If this is compiler with offloading
3198 # for intelmic we enable host liboffloadmic by default.  Otherwise
3199 # liboffloadmic is disabled by default.
3200 # Check whether --enable-liboffloadmic was given.
3201 if test "${enable_liboffloadmic+set}" = set; then :
3202   enableval=$enable_liboffloadmic; case "$enableval" in
3203   no | host | target)
3204     enable_liboffloadmic=$enableval ;;
3205   *)
3206     as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3207 esac
3208 else
3209   if test x"$enable_as_accelerator_for" != x; then
3210   case "${target}" in
3211     *-intelmic-* | *-intelmicemul-*)
3212       enable_liboffloadmic=target
3213       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3214       ;;
3215     *)
3216       enable_liboffloadmic=no
3217       ;;
3218   esac
3219 else
3220   case "${enable_offload_targets}" in
3221     *-intelmic-* | *-intelmicemul-*)
3222       enable_liboffloadmic=host
3223       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3224       ;;
3225     *)
3226       enable_liboffloadmic=no
3227       ;;
3228     esac
3229 fi
3230 fi
3231
3232
3233
3234 # Enable libgomp by default on hosted POSIX systems, and a few others.
3235 if test x$enable_libgomp = x ; then
3236     case "${target}" in
3237     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3238         ;;
3239     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3240         ;;
3241     *-*-solaris2* | *-*-hpux11*)
3242         ;;
3243     *-*-darwin* | *-*-aix*)
3244         ;;
3245     nvptx*-*-* | amdgcn*-*-*)
3246         ;;
3247     *)
3248         noconfigdirs="$noconfigdirs target-libgomp"
3249         ;;
3250     esac
3251 fi
3252
3253 # Disable libatomic on unsupported systems.
3254 if test -d ${srcdir}/libatomic; then
3255     if test x$enable_libatomic = x; then
3256         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3257 $as_echo_n "checking for libatomic support... " >&6; }
3258         if (srcdir=${srcdir}/libatomic; \
3259                 . ${srcdir}/configure.tgt; \
3260                 test -n "$UNSUPPORTED")
3261         then
3262             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264             noconfigdirs="$noconfigdirs target-libatomic"
3265         else
3266             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267 $as_echo "yes" >&6; }
3268         fi
3269     fi
3270 fi
3271
3272 # Disable liboffloadmic on unsupported systems.
3273 if test -d ${srcdir}/liboffloadmic; then
3274     if test x$enable_liboffloadmic != xno; then
3275         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3276 $as_echo_n "checking for liboffloadmic support... " >&6; }
3277         if (srcdir=${srcdir}/liboffloadmic; \
3278                 . ${srcdir}/configure.tgt; \
3279                 test -n "$UNSUPPORTED")
3280         then
3281             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283             noconfigdirs="$noconfigdirs target-liboffloadmic"
3284         else
3285             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3286 $as_echo "yes" >&6; }
3287         fi
3288     fi
3289 fi
3290
3291 # Disable libitm on unsupported systems.
3292 if test -d ${srcdir}/libitm; then
3293     if test x$enable_libitm = x; then
3294         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3295 $as_echo_n "checking for libitm support... " >&6; }
3296         if (srcdir=${srcdir}/libitm; \
3297                 . ${srcdir}/configure.tgt; \
3298                 test -n "$UNSUPPORTED")
3299         then
3300             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3302             noconfigdirs="$noconfigdirs target-libitm"
3303         else
3304             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3305 $as_echo "yes" >&6; }
3306         fi
3307     fi
3308 fi
3309
3310 # Disable libsanitizer on unsupported systems.
3311 if test -d ${srcdir}/libsanitizer; then
3312     if test x$enable_libsanitizer = x; then
3313         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3314 $as_echo_n "checking for libsanitizer support... " >&6; }
3315         if (srcdir=${srcdir}/libsanitizer; \
3316                 . ${srcdir}/configure.tgt; \
3317                 test -n "$UNSUPPORTED")
3318         then
3319             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3321             noconfigdirs="$noconfigdirs target-libsanitizer"
3322         else
3323             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324 $as_echo "yes" >&6; }
3325         fi
3326     fi
3327 fi
3328
3329 # Disable libvtv on unsupported systems.
3330 if test -d ${srcdir}/libvtv; then
3331     if test x$enable_libvtv = x; then
3332         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3333 $as_echo_n "checking for libvtv support... " >&6; }
3334         if (srcdir=${srcdir}/libvtv; \
3335                 . ${srcdir}/configure.tgt; \
3336                 test "$VTV_SUPPORTED" != "yes")
3337         then
3338             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340             noconfigdirs="$noconfigdirs target-libvtv"
3341         else
3342             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3343 $as_echo "yes" >&6; }
3344         fi
3345     fi
3346 fi
3347
3348 # Disable libquadmath for some systems.
3349 case "${target}" in
3350   avr-*-*)
3351     noconfigdirs="$noconfigdirs target-libquadmath"
3352     ;;
3353   # libquadmath is unused on AIX and libquadmath build process use of
3354   # LD_LIBRARY_PATH can break AIX bootstrap.
3355   powerpc-*-aix* | rs6000-*-aix*)
3356     noconfigdirs="$noconfigdirs target-libquadmath"
3357     ;;
3358 esac
3359
3360 # Disable libssp for some systems.
3361 case "${target}" in
3362   avr-*-*)
3363     # No hosted I/O support.
3364     noconfigdirs="$noconfigdirs target-libssp"
3365     ;;
3366   bpf-*-*)
3367     noconfigdirs="$noconfigdirs target-libssp"
3368     ;;
3369   powerpc-*-aix* | rs6000-*-aix*)
3370     noconfigdirs="$noconfigdirs target-libssp"
3371     ;;
3372   pru-*-*)
3373     # No hosted I/O support.
3374     noconfigdirs="$noconfigdirs target-libssp"
3375     ;;
3376   rl78-*-*)
3377     # libssp uses a misaligned load to trigger a fault, but the RL78
3378     # doesn't fault for those - instead, it gives a build-time error
3379     # for explicit misaligned loads.
3380     noconfigdirs="$noconfigdirs target-libssp"
3381     ;;
3382   visium-*-*)
3383     # No hosted I/O support.
3384     noconfigdirs="$noconfigdirs target-libssp"
3385     ;;
3386 esac
3387
3388 # Disable libstdc++-v3 for some systems.
3389 # Allow user to override this if they pass --enable-libstdcxx
3390 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3391   case "${target}" in
3392     *-*-vxworks*)
3393       # VxWorks uses the Dinkumware C++ library.
3394       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3395       ;;
3396     amdgcn*-*-*)
3397       # Not ported/fails to build when using newlib.
3398       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3399       ;;
3400     arm*-wince-pe*)
3401       # the C++ libraries don't build on top of CE's C libraries
3402       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3403       ;;
3404     avr-*-*)
3405       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3406       ;;
3407     bpf-*-*)
3408       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3409       ;;
3410     ft32-*-*)
3411       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3412       ;;
3413   esac
3414 fi
3415
3416 # Disable C++ on systems where it is known to not work.
3417 # For testing, you can override this with --enable-languages=c++.
3418 case ,${enable_languages}, in
3419   *,c++,*)
3420     ;;
3421   *)
3422       case "${target}" in
3423         bpf-*-*)
3424           unsupported_languages="$unsupported_languages c++"
3425           ;;
3426       esac
3427       ;;
3428 esac
3429
3430 # Disable Objc on systems where it is known to not work.
3431 # For testing, you can override this with --enable-languages=objc.
3432 case ,${enable_languages}, in
3433   *,objc,*)
3434     ;;
3435   *)
3436       case "${target}" in
3437         bpf-*-*)
3438           unsupported_languages="$unsupported_languages objc"
3439           ;;
3440       esac
3441       ;;
3442 esac
3443
3444 # Disable D on systems where it is known to not work.
3445 # For testing, you can override this with --enable-languages=d.
3446 case ,${enable_languages}, in
3447   *,d,*)
3448     ;;
3449   *)
3450     case "${target}" in
3451       bpf-*-*)
3452         unsupported_languages="$unsupported_languages d"
3453         ;;
3454     esac
3455     ;;
3456 esac
3457
3458 # Disable libphobos on unsupported systems.
3459 # For testing, you can override this with --enable-libphobos.
3460 if test -d ${srcdir}/libphobos; then
3461     if test x$enable_libphobos = x; then
3462         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3463 $as_echo_n "checking for libphobos support... " >&6; }
3464         if (srcdir=${srcdir}/libphobos; \
3465                 . ${srcdir}/configure.tgt; \
3466                 test "$LIBPHOBOS_SUPPORTED" != "yes")
3467         then
3468             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3470             noconfigdirs="$noconfigdirs target-libphobos"
3471         else
3472             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3473 $as_echo "yes" >&6; }
3474         fi
3475     fi
3476 fi
3477
3478 # Disable Fortran for some systems.
3479 case "${target}" in
3480   mmix-*-*)
3481     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3482     unsupported_languages="$unsupported_languages fortran"
3483     ;;
3484   bpf-*-*)
3485     unsupported_languages="$unsupported_languages fortran"
3486     ;;
3487 esac
3488
3489 # Disable libffi for some systems.
3490 case "${target}" in
3491   powerpc-*-darwin*)
3492     ;;
3493   i[3456789]86-*-darwin*)
3494     ;;
3495   x86_64-*-darwin[912]*)
3496     ;;
3497   *-*-darwin*)
3498     noconfigdirs="$noconfigdirs target-libffi"
3499     ;;
3500   *-*-netware*)
3501     noconfigdirs="$noconfigdirs target-libffi"
3502     ;;
3503   *-*-phoenix*)
3504     noconfigdirs="$noconfigdirs target-libffi"
3505     ;;
3506   *-*-rtems*)
3507     noconfigdirs="$noconfigdirs target-libffi"
3508     ;;
3509   *-*-tpf*)
3510     noconfigdirs="$noconfigdirs target-libffi"
3511     ;;
3512   *-*-uclinux*)
3513     noconfigdirs="$noconfigdirs target-libffi"
3514     ;;
3515   *-*-vxworks*)
3516     noconfigdirs="$noconfigdirs target-libffi"
3517     ;;
3518   aarch64*-*-freebsd*)
3519     noconfigdirs="$noconfigdirs target-libffi"
3520     ;;
3521   alpha*-*-*vms*)
3522     noconfigdirs="$noconfigdirs target-libffi"
3523     ;;
3524   arm*-*-freebsd*)
3525     noconfigdirs="$noconfigdirs target-libffi"
3526     ;;
3527   arm-wince-pe)
3528     noconfigdirs="$noconfigdirs target-libffi"
3529     ;;
3530   arm*-*-symbianelf*)
3531     noconfigdirs="$noconfigdirs target-libffi"
3532     ;;
3533   bpf-*-*)
3534     noconfigdirs="$noconfigdirs target-libffi"
3535     ;;
3536   cris-*-* | crisv32-*-*)
3537     case "${target}" in
3538       *-*-linux*)
3539         ;;
3540       *) # See PR46792 regarding target-libffi.
3541         noconfigdirs="$noconfigdirs target-libffi";;
3542     esac
3543     ;;
3544   hppa*64*-*-hpux*)
3545     noconfigdirs="$noconfigdirs target-libffi"
3546     ;;
3547   ia64*-*-*vms*)
3548     noconfigdirs="$noconfigdirs target-libffi"
3549     ;;
3550   i[3456789]86-w64-mingw*)
3551     noconfigdirs="$noconfigdirs target-libffi"
3552     ;;
3553   i[3456789]86-*-mingw*)
3554     noconfigdirs="$noconfigdirs target-libffi"
3555     ;;
3556   x86_64-*-mingw*)
3557     noconfigdirs="$noconfigdirs target-libffi"
3558     ;;
3559   mmix-*-*)
3560     noconfigdirs="$noconfigdirs target-libffi"
3561     ;;
3562   powerpc-*-aix*)
3563     ;;
3564   rs6000-*-aix*)
3565     ;;
3566   ft32-*-*)
3567     noconfigdirs="$noconfigdirs target-libffi"
3568     ;;
3569   *-*-lynxos*)
3570     noconfigdirs="$noconfigdirs target-libffi"
3571     ;;
3572 esac
3573
3574 # Disable the go frontend on systems where it is known to not work. Please keep
3575 # this in sync with contrib/config-list.mk.
3576 case "${target}" in
3577 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3578     unsupported_languages="$unsupported_languages go"
3579     ;;
3580 esac
3581
3582 # Only allow gdbserver on some systems.
3583 if test -d ${srcdir}/gdbserver; then
3584     if test x$enable_gdbserver = x; then
3585         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3586 $as_echo_n "checking for gdbserver support... " >&6; }
3587         if (srcdir=${srcdir}/gdbserver; \
3588                 . ${srcdir}/configure.srv; \
3589                 test -n "$UNSUPPORTED")
3590         then
3591             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 $as_echo "no" >&6; }
3593             noconfigdirs="$noconfigdirs gdbserver"
3594         else
3595             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3596 $as_echo "yes" >&6; }
3597         fi
3598     fi
3599 fi
3600
3601 # Disable libgo for some systems where it is known to not work.
3602 # For testing, you can easily override this with --enable-libgo.
3603 if test x$enable_libgo = x; then
3604     case "${target}" in
3605     *-*-darwin*)
3606         # PR 46986
3607         noconfigdirs="$noconfigdirs target-libgo"
3608         ;;
3609     *-*-cygwin* | *-*-mingw*)
3610         noconfigdirs="$noconfigdirs target-libgo"
3611         ;;
3612     bpf-*-*)
3613         noconfigdirs="$noconfigdirs target-libgo"
3614         ;;
3615     esac
3616 fi
3617
3618 # Default libgloss CPU subdirectory.
3619 libgloss_dir="$target_cpu"
3620
3621 case "${target}" in
3622   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3623     libgloss_dir=wince
3624     ;;
3625   aarch64*-*-* )
3626     libgloss_dir=aarch64
3627     ;;
3628   arm*-*-*)
3629     libgloss_dir=arm
3630     ;;
3631   cris-*-* | crisv32-*-*)
3632     libgloss_dir=cris
3633     ;;
3634   hppa*-*-*)
3635     libgloss_dir=pa
3636     ;;
3637   i[3456789]86-*-*)
3638     libgloss_dir=i386
3639     ;;
3640   loongarch*-*-*)
3641     libgloss_dir=loongarch
3642     ;;
3643   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3644     libgloss_dir=m68hc11
3645     ;;
3646   m68*-*-* | fido-*-*)
3647     libgloss_dir=m68k
3648     ;;
3649   mips*-*-*)
3650     libgloss_dir=mips
3651     ;;
3652   powerpc*-*-*)
3653     libgloss_dir=rs6000
3654     ;;
3655   pru-*-*)
3656     libgloss_dir=pru
3657     ;;
3658   sparc*-*-*)
3659     libgloss_dir=sparc
3660     ;;
3661 esac
3662
3663 # Disable newlib and libgloss for various target OSes.
3664 case "${target}" in
3665   alpha*-dec-osf*)
3666     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3667     ;;
3668   i[3456789]86-*-linux*)
3669     # This section makes it possible to build newlib natively on linux.
3670     # If we are using a cross compiler then don't configure newlib.
3671     if test x${is_cross_compiler} != xno ; then
3672       noconfigdirs="$noconfigdirs target-newlib"
3673     fi
3674     noconfigdirs="$noconfigdirs target-libgloss"
3675     # If we are not using a cross compiler, do configure newlib.
3676     # Note however, that newlib will only be configured in this situation
3677     # if the --with-newlib option has been given, because otherwise
3678     # 'target-newlib' will appear in skipdirs.
3679     ;;
3680   i[3456789]86-*-rdos*)
3681     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3682     ;;
3683   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3684     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3685     ;;
3686   sparc-*-sunos4*)
3687     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3688     ;;
3689   bpf-*-*)
3690     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3691     ;;
3692   *-*-aix*)
3693     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3694     ;;
3695   *-*-beos*)
3696     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3697     ;;
3698   *-*-chorusos)
3699     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3700     ;;
3701   *-*-dragonfly*)
3702     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3703     ;;
3704   *-*-freebsd*)
3705     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3706     ;;
3707   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3708     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3709     ;;
3710   *-*-lynxos*)
3711     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3712     ;;
3713   *-*-mingw*)
3714     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3715     ;;
3716   *-*-netbsd*)
3717     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3718     ;;
3719   *-*-netware*)
3720     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3721     ;;
3722   *-*-tpf*)
3723     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3724     ;;
3725   *-*-uclinux*)
3726     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3727     ;;
3728   *-*-vxworks*)
3729     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3730     ;;
3731 esac
3732
3733 case "${target}" in
3734   *-*-chorusos)
3735     ;;
3736   aarch64-*-darwin*)
3737     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3738     noconfigdirs="$noconfigdirs sim target-rda"
3739     ;;
3740   amdgcn*-*-*)
3741     ;;
3742   arm-*-darwin*)
3743     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3744     noconfigdirs="$noconfigdirs sim target-rda"
3745     ;;
3746   powerpc-*-darwin*)
3747     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3748     noconfigdirs="$noconfigdirs sim target-rda"
3749     ;;
3750   i[3456789]86-*-darwin*)
3751     noconfigdirs="$noconfigdirs ld gprof"
3752     noconfigdirs="$noconfigdirs sim target-rda"
3753     ;;
3754   x86_64-*-darwin[912]*)
3755     noconfigdirs="$noconfigdirs ld gas gprof"
3756     noconfigdirs="$noconfigdirs sim target-rda"
3757     ;;
3758   *-*-darwin*)
3759     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3760     noconfigdirs="$noconfigdirs sim target-rda"
3761     ;;
3762   *-*-dragonfly*)
3763     ;;
3764   *-*-freebsd*)
3765     if test "x$with_gmp" = x \
3766         && ! test -d ${srcdir}/gmp \
3767         && test -f /usr/local/include/gmp.h; then
3768       with_gmp=/usr/local
3769     fi
3770     ;;
3771   *-*-kaos*)
3772     # Remove unsupported stuff on all kaOS configurations.
3773     noconfigdirs="$noconfigdirs target-libgloss"
3774     ;;
3775   *-*-netbsd*)
3776     ;;
3777   *-*-netware*)
3778     ;;
3779   *-*-phoenix*)
3780     noconfigdirs="$noconfigdirs target-libgloss"
3781     ;;
3782   *-*-rtems*)
3783     noconfigdirs="$noconfigdirs target-libgloss"
3784     ;;
3785     # The tpf target doesn't support gdb yet.
3786   *-*-tpf*)
3787     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3788     ;;
3789   *-*-uclinux*)
3790     noconfigdirs="$noconfigdirs target-rda"
3791     ;;
3792   *-*-vxworks*)
3793     ;;
3794   alpha*-dec-osf*)
3795     # ld works, but does not support shared libraries.
3796     # gas doesn't generate exception information.
3797     noconfigdirs="$noconfigdirs gas ld"
3798     ;;
3799   alpha*-*-*vms*)
3800     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3801     ;;
3802   alpha*-*-*)
3803     # newlib is not 64 bit ready
3804     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3805     ;;
3806   bpf-*-*)
3807     noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3808     ;;
3809   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3810     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3811     ;;
3812   arc*-*-*)
3813     noconfigdirs="$noconfigdirs sim"
3814     ;;
3815   arm-*-pe*)
3816     noconfigdirs="$noconfigdirs target-libgloss"
3817     ;;
3818   arm-*-riscix*)
3819     noconfigdirs="$noconfigdirs ld target-libgloss"
3820     ;;
3821   avr-*-*)
3822     if test x${with_avrlibc} != xno; then
3823       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3824     fi
3825     ;;
3826   c4x-*-* | tic4x-*-*)
3827     noconfigdirs="$noconfigdirs target-libgloss"
3828     ;;
3829   tic54x-*-*)
3830     noconfigdirs="$noconfigdirs target-libgloss gdb"
3831     ;;
3832   d10v-*-*)
3833     noconfigdirs="$noconfigdirs target-libgloss"
3834     ;;
3835   d30v-*-*)
3836     noconfigdirs="$noconfigdirs gdb"
3837     ;;
3838   fr30-*-elf*)
3839     noconfigdirs="$noconfigdirs gdb"
3840     ;;
3841   ft32-*-*)
3842     noconfigdirs="$noconfigdirs target-rda gprof"
3843     ;;
3844   moxie-*-*)
3845     noconfigdirs="$noconfigdirs"
3846     ;;
3847   h8300*-*-*)
3848     noconfigdirs="$noconfigdirs target-libgloss"
3849     ;;
3850   h8500-*-*)
3851     noconfigdirs="$noconfigdirs target-libgloss"
3852     ;;
3853   hppa*64*-*-hpux*)
3854     noconfigdirs="$noconfigdirs gdb"
3855     ;;
3856   hppa*64*-*-linux*)
3857     ;;
3858   hppa*-*-linux*)
3859     ;;
3860   hppa*-*-*elf* | \
3861   hppa*-*-lites* | \
3862   hppa*-*-openbsd* | \
3863   hppa*64*-*-*)
3864     ;;
3865   hppa*-*-pro*)
3866     ;;
3867   hppa*-*-*)
3868     noconfigdirs="$noconfigdirs ld"
3869     ;;
3870   i960-*-*)
3871     noconfigdirs="$noconfigdirs gdb"
3872     ;;
3873   ia64*-*-elf*)
3874     # No gdb support yet.
3875     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3876     ;;
3877   ia64*-**-hpux*)
3878     # No ld support yet.
3879     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3880     ;;
3881   ia64*-*-*vms*)
3882     # No ld support yet.
3883     noconfigdirs="$noconfigdirs libgui itcl ld"
3884     ;;
3885   i[3456789]86-w64-mingw*)
3886     ;;
3887   i[3456789]86-*-mingw*)
3888     target_configdirs="$target_configdirs target-winsup"
3889     ;;
3890   *-*-cygwin*)
3891     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3892     noconfigdirs="$noconfigdirs target-libgloss"
3893     # always build newlib if winsup directory is present.
3894     if test -d "$srcdir/winsup/cygwin"; then
3895       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3896     elif test -d "$srcdir/newlib"; then
3897       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3898     fi
3899     ;;
3900   i[3456789]86-*-pe)
3901     noconfigdirs="$noconfigdirs target-libgloss"
3902     ;;
3903   i[3456789]86-*-sco3.2v5*)
3904     # The linker does not yet know about weak symbols in COFF,
3905     # and is not configured to handle mixed ELF and COFF.
3906     noconfigdirs="$noconfigdirs ld target-libgloss"
3907     ;;
3908   i[3456789]86-*-sco*)
3909     noconfigdirs="$noconfigdirs gprof target-libgloss"
3910     ;;
3911   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3912     noconfigdirs="$noconfigdirs target-libgloss"
3913     ;;
3914   i[3456789]86-*-sysv4*)
3915     noconfigdirs="$noconfigdirs target-libgloss"
3916     ;;
3917   i[3456789]86-*-beos*)
3918     noconfigdirs="$noconfigdirs gdb"
3919     ;;
3920   i[3456789]86-*-rdos*)
3921     noconfigdirs="$noconfigdirs gdb"
3922     ;;
3923   mmix-*-*)
3924     noconfigdirs="$noconfigdirs gdb"
3925     ;;
3926   mt-*-*)
3927     noconfigdirs="$noconfigdirs sim"
3928     ;;
3929   nfp-*-*)
3930     noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3931     noconfigdirs="$noconfigdirs $target_libraries"
3932     ;;
3933   pdp11-*-*)
3934     noconfigdirs="$noconfigdirs gdb gprof"
3935     ;;
3936   powerpc-*-aix*)
3937     # copied from rs6000-*-* entry
3938     noconfigdirs="$noconfigdirs gprof"
3939     ;;
3940   powerpc*-*-winnt* | powerpc*-*-pe*)
3941     target_configdirs="$target_configdirs target-winsup"
3942     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3943     # always build newlib.
3944     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3945     ;;
3946     # This is temporary until we can link against shared libraries
3947   powerpcle-*-solaris*)
3948     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3949     ;;
3950   powerpc-*-beos*)
3951     noconfigdirs="$noconfigdirs gdb"
3952     ;;
3953   rs6000-*-lynxos*)
3954     noconfigdirs="$noconfigdirs gprof"
3955     ;;
3956   rs6000-*-aix*)
3957     noconfigdirs="$noconfigdirs gprof"
3958     ;;
3959   rs6000-*-*)
3960     noconfigdirs="$noconfigdirs gprof"
3961     ;;
3962   m68k-apollo-*)
3963     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3964     ;;
3965   microblaze*)
3966     noconfigdirs="$noconfigdirs gprof"
3967     ;;
3968   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3969     if test x$with_newlib = xyes; then
3970       noconfigdirs="$noconfigdirs gprof"
3971     fi
3972     ;;
3973   mips*-*-irix5*)
3974     noconfigdirs="$noconfigdirs gprof target-libgloss"
3975     ;;
3976   mips*-*-irix6*)
3977     noconfigdirs="$noconfigdirs gprof target-libgloss"
3978     ;;
3979   mips*-*-bsd*)
3980     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3981     ;;
3982   mips*-*-linux*)
3983     ;;
3984   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3985   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3986     noconfigdirs="$noconfigdirs ld gas gprof"
3987     ;;
3988   mips*-*-*)
3989     noconfigdirs="$noconfigdirs gprof"
3990     ;;
3991   nvptx*-*-*)
3992     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3993     ;;
3994   sh-*-*)
3995     case "${target}" in
3996       sh*-*-elf)
3997          ;;
3998       *)
3999          noconfigdirs="$noconfigdirs target-libgloss" ;;
4000     esac
4001     ;;
4002   sparc-*-sunos4*)
4003     if test x${is_cross_compiler} = xno ; then
4004            use_gnu_ld=no
4005     fi
4006     ;;
4007   tic6x-*-*)
4008     noconfigdirs="$noconfigdirs sim"
4009     ;;
4010   v810-*-*)
4011     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4012     ;;
4013   vax-*-*)
4014     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4015     ;;
4016   wasm32-*-*)
4017     noconfigdirs="$noconfigdirs ld"
4018     ;;
4019   loongarch*-*-linux*)
4020     ;;
4021   loongarch*-*-*)
4022     noconfigdirs="$noconfigdirs gprof"
4023     ;;
4024 esac
4025
4026 # If we aren't building newlib, then don't build libgloss, since libgloss
4027 # depends upon some newlib header files.
4028 case "${noconfigdirs}" in
4029   *target-libgloss*) ;;
4030   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4031 esac
4032
4033 # Work in distributions that contain no compiler tools, like Autoconf.
4034 host_makefile_frag=/dev/null
4035 if test -d ${srcdir}/config ; then
4036 case "${host}" in
4037   i[3456789]86-*-msdosdjgpp*)
4038     host_makefile_frag="config/mh-djgpp"
4039     ;;
4040   *-cygwin*)
4041
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4043 $as_echo_n "checking to see if cat works as expected... " >&6; }
4044 echo a >cygwin-cat-check
4045 if test `cat cygwin-cat-check` = a ; then
4046   rm cygwin-cat-check
4047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4048 $as_echo "yes" >&6; }
4049 else
4050   rm cygwin-cat-check
4051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 $as_echo "no" >&6; }
4053   as_fn_error $? "The cat command does not ignore carriage return characters.
4054   Please either mount the build directory in binary mode or run the following
4055   commands before running any configure script:
4056 set -o igncr
4057 export SHELLOPTS
4058   " "$LINENO" 5
4059 fi
4060
4061     host_makefile_frag="config/mh-cygwin"
4062     ;;
4063   *-mingw*)
4064     host_makefile_frag="config/mh-mingw"
4065     ;;
4066   alpha*-linux*)
4067     host_makefile_frag="config/mh-alpha-linux"
4068     ;;
4069   hppa*-hp-hpux*)
4070     host_makefile_frag="config/mh-pa"
4071     ;;
4072   hppa*-*)
4073     host_makefile_frag="config/mh-pa"
4074     ;;
4075   i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4076     host_makefile_frag="config/mh-darwin"
4077     ;;
4078   powerpc-*-aix*)
4079     host_makefile_frag="config/mh-ppc-aix"
4080     ;;
4081   rs6000-*-aix*)
4082     host_makefile_frag="config/mh-ppc-aix"
4083     ;;
4084 esac
4085 fi
4086
4087 if test "${build}" != "${host}" ; then
4088   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4089   AS_FOR_BUILD=${AS_FOR_BUILD-as}
4090   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4091   CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4092   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4093   DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4094   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4095   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4096   GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4097   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4098   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4099   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4100   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4101   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4102   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4103 else
4104   AR_FOR_BUILD="\$(AR)"
4105   AS_FOR_BUILD="\$(AS)"
4106   CC_FOR_BUILD="\$(CC)"
4107   CXX_FOR_BUILD="\$(CXX)"
4108   DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4109   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4110   GOC_FOR_BUILD="\$(GOC)"
4111   GDC_FOR_BUILD="\$(GDC)"
4112   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4113   LD_FOR_BUILD="\$(LD)"
4114   NM_FOR_BUILD="\$(NM)"
4115   RANLIB_FOR_BUILD="\$(RANLIB)"
4116   WINDRES_FOR_BUILD="\$(WINDRES)"
4117   WINDMC_FOR_BUILD="\$(WINDMC)"
4118 fi
4119
4120 ac_ext=c
4121 ac_cpp='$CPP $CPPFLAGS'
4122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125 if test -n "$ac_tool_prefix"; then
4126   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4127 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if ${ac_cv_prog_CC+:} false; then :
4131   $as_echo_n "(cached) " >&6
4132 else
4133   if test -n "$CC"; then
4134   ac_cv_prog_CC="$CC" # Let the user override the test.
4135 else
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH
4138 do
4139   IFS=$as_save_IFS
4140   test -z "$as_dir" && as_dir=.
4141     for ac_exec_ext in '' $ac_executable_extensions; do
4142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4143     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145     break 2
4146   fi
4147 done
4148   done
4149 IFS=$as_save_IFS
4150
4151 fi
4152 fi
4153 CC=$ac_cv_prog_CC
4154 if test -n "$CC"; then
4155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4156 $as_echo "$CC" >&6; }
4157 else
4158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4160 fi
4161
4162
4163 fi
4164 if test -z "$ac_cv_prog_CC"; then
4165   ac_ct_CC=$CC
4166   # Extract the first word of "gcc", so it can be a program name with args.
4167 set dummy gcc; ac_word=$2
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4169 $as_echo_n "checking for $ac_word... " >&6; }
4170 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4171   $as_echo_n "(cached) " >&6
4172 else
4173   if test -n "$ac_ct_CC"; then
4174   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4175 else
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4178 do
4179   IFS=$as_save_IFS
4180   test -z "$as_dir" && as_dir=.
4181     for ac_exec_ext in '' $ac_executable_extensions; do
4182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4183     ac_cv_prog_ac_ct_CC="gcc"
4184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4185     break 2
4186   fi
4187 done
4188   done
4189 IFS=$as_save_IFS
4190
4191 fi
4192 fi
4193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4194 if test -n "$ac_ct_CC"; then
4195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4196 $as_echo "$ac_ct_CC" >&6; }
4197 else
4198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199 $as_echo "no" >&6; }
4200 fi
4201
4202   if test "x$ac_ct_CC" = x; then
4203     CC=""
4204   else
4205     case $cross_compiling:$ac_tool_warned in
4206 yes:)
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4209 ac_tool_warned=yes ;;
4210 esac
4211     CC=$ac_ct_CC
4212   fi
4213 else
4214   CC="$ac_cv_prog_CC"
4215 fi
4216
4217 if test -z "$CC"; then
4218           if test -n "$ac_tool_prefix"; then
4219     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4220 set dummy ${ac_tool_prefix}cc; ac_word=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if ${ac_cv_prog_CC+:} false; then :
4224   $as_echo_n "(cached) " >&6
4225 else
4226   if test -n "$CC"; then
4227   ac_cv_prog_CC="$CC" # Let the user override the test.
4228 else
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4231 do
4232   IFS=$as_save_IFS
4233   test -z "$as_dir" && as_dir=.
4234     for ac_exec_ext in '' $ac_executable_extensions; do
4235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236     ac_cv_prog_CC="${ac_tool_prefix}cc"
4237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238     break 2
4239   fi
4240 done
4241   done
4242 IFS=$as_save_IFS
4243
4244 fi
4245 fi
4246 CC=$ac_cv_prog_CC
4247 if test -n "$CC"; then
4248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4249 $as_echo "$CC" >&6; }
4250 else
4251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4253 fi
4254
4255
4256   fi
4257 fi
4258 if test -z "$CC"; then
4259   # Extract the first word of "cc", so it can be a program name with args.
4260 set dummy cc; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if ${ac_cv_prog_CC+:} false; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   if test -n "$CC"; then
4267   ac_cv_prog_CC="$CC" # Let the user override the test.
4268 else
4269   ac_prog_rejected=no
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4272 do
4273   IFS=$as_save_IFS
4274   test -z "$as_dir" && as_dir=.
4275     for ac_exec_ext in '' $ac_executable_extensions; do
4276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4278        ac_prog_rejected=yes
4279        continue
4280      fi
4281     ac_cv_prog_CC="cc"
4282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283     break 2
4284   fi
4285 done
4286   done
4287 IFS=$as_save_IFS
4288
4289 if test $ac_prog_rejected = yes; then
4290   # We found a bogon in the path, so make sure we never use it.
4291   set dummy $ac_cv_prog_CC
4292   shift
4293   if test $# != 0; then
4294     # We chose a different compiler from the bogus one.
4295     # However, it has the same basename, so the bogon will be chosen
4296     # first if we set CC to just the basename; use the full file name.
4297     shift
4298     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4299   fi
4300 fi
4301 fi
4302 fi
4303 CC=$ac_cv_prog_CC
4304 if test -n "$CC"; then
4305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4306 $as_echo "$CC" >&6; }
4307 else
4308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309 $as_echo "no" >&6; }
4310 fi
4311
4312
4313 fi
4314 if test -z "$CC"; then
4315   if test -n "$ac_tool_prefix"; then
4316   for ac_prog in cl.exe
4317   do
4318     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if ${ac_cv_prog_CC+:} false; then :
4323   $as_echo_n "(cached) " >&6
4324 else
4325   if test -n "$CC"; then
4326   ac_cv_prog_CC="$CC" # Let the user override the test.
4327 else
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH
4330 do
4331   IFS=$as_save_IFS
4332   test -z "$as_dir" && as_dir=.
4333     for ac_exec_ext in '' $ac_executable_extensions; do
4334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4335     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337     break 2
4338   fi
4339 done
4340   done
4341 IFS=$as_save_IFS
4342
4343 fi
4344 fi
4345 CC=$ac_cv_prog_CC
4346 if test -n "$CC"; then
4347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4348 $as_echo "$CC" >&6; }
4349 else
4350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4352 fi
4353
4354
4355     test -n "$CC" && break
4356   done
4357 fi
4358 if test -z "$CC"; then
4359   ac_ct_CC=$CC
4360   for ac_prog in cl.exe
4361 do
4362   # Extract the first word of "$ac_prog", so it can be a program name with args.
4363 set dummy $ac_prog; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4367   $as_echo_n "(cached) " >&6
4368 else
4369   if test -n "$ac_ct_CC"; then
4370   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4374 do
4375   IFS=$as_save_IFS
4376   test -z "$as_dir" && as_dir=.
4377     for ac_exec_ext in '' $ac_executable_extensions; do
4378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379     ac_cv_prog_ac_ct_CC="$ac_prog"
4380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381     break 2
4382   fi
4383 done
4384   done
4385 IFS=$as_save_IFS
4386
4387 fi
4388 fi
4389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4390 if test -n "$ac_ct_CC"; then
4391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4392 $as_echo "$ac_ct_CC" >&6; }
4393 else
4394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4396 fi
4397
4398
4399   test -n "$ac_ct_CC" && break
4400 done
4401
4402   if test "x$ac_ct_CC" = x; then
4403     CC=""
4404   else
4405     case $cross_compiling:$ac_tool_warned in
4406 yes:)
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4409 ac_tool_warned=yes ;;
4410 esac
4411     CC=$ac_ct_CC
4412   fi
4413 fi
4414
4415 fi
4416
4417
4418 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4420 as_fn_error $? "no acceptable C compiler found in \$PATH
4421 See \`config.log' for more details" "$LINENO" 5; }
4422
4423 # Provide some information about the compiler.
4424 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4425 set X $ac_compile
4426 ac_compiler=$2
4427 for ac_option in --version -v -V -qversion; do
4428   { { ac_try="$ac_compiler $ac_option >&5"
4429 case "(($ac_try" in
4430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431   *) ac_try_echo=$ac_try;;
4432 esac
4433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4434 $as_echo "$ac_try_echo"; } >&5
4435   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4436   ac_status=$?
4437   if test -s conftest.err; then
4438     sed '10a\
4439 ... rest of stderr output deleted ...
4440          10q' conftest.err >conftest.er1
4441     cat conftest.er1 >&5
4442   fi
4443   rm -f conftest.er1 conftest.err
4444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4445   test $ac_status = 0; }
4446 done
4447
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h.  */
4450
4451 int
4452 main ()
4453 {
4454
4455   ;
4456   return 0;
4457 }
4458 _ACEOF
4459 ac_clean_files_save=$ac_clean_files
4460 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4461 # Try to create an executable without -o first, disregard a.out.
4462 # It will help us diagnose broken compilers, and finding out an intuition
4463 # of exeext.
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4465 $as_echo_n "checking whether the C compiler works... " >&6; }
4466 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4467
4468 # The possible output files:
4469 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4470
4471 ac_rmfiles=
4472 for ac_file in $ac_files
4473 do
4474   case $ac_file in
4475     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4476     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4477   esac
4478 done
4479 rm -f $ac_rmfiles
4480
4481 if { { ac_try="$ac_link_default"
4482 case "(($ac_try" in
4483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484   *) ac_try_echo=$ac_try;;
4485 esac
4486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4487 $as_echo "$ac_try_echo"; } >&5
4488   (eval "$ac_link_default") 2>&5
4489   ac_status=$?
4490   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4491   test $ac_status = 0; }; then :
4492   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4493 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4494 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4495 # so that the user can short-circuit this test for compilers unknown to
4496 # Autoconf.
4497 for ac_file in $ac_files ''
4498 do
4499   test -f "$ac_file" || continue
4500   case $ac_file in
4501     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4502         ;;
4503     [ab].out )
4504         # We found the default executable, but exeext='' is most
4505         # certainly right.
4506         break;;
4507     *.* )
4508         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4509         then :; else
4510            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4511         fi
4512         # We set ac_cv_exeext here because the later test for it is not
4513         # safe: cross compilers may not add the suffix if given an `-o'
4514         # argument, so we may need to know it at that point already.
4515         # Even if this section looks crufty: it has the advantage of
4516         # actually working.
4517         break;;
4518     * )
4519         break;;
4520   esac
4521 done
4522 test "$ac_cv_exeext" = no && ac_cv_exeext=
4523
4524 else
4525   ac_file=''
4526 fi
4527 if test -z "$ac_file"; then :
4528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4530 $as_echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4532
4533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4535 as_fn_error 77 "C compiler cannot create executables
4536 See \`config.log' for more details" "$LINENO" 5; }
4537 else
4538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4539 $as_echo "yes" >&6; }
4540 fi
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4542 $as_echo_n "checking for C compiler default output file name... " >&6; }
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4544 $as_echo "$ac_file" >&6; }
4545 ac_exeext=$ac_cv_exeext
4546
4547 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4548 ac_clean_files=$ac_clean_files_save
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4550 $as_echo_n "checking for suffix of executables... " >&6; }
4551 if { { 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; }; then :
4562   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4563 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4564 # work properly (i.e., refer to `conftest.exe'), while it won't with
4565 # `rm'.
4566 for ac_file in conftest.exe conftest conftest.*; do
4567   test -f "$ac_file" || continue
4568   case $ac_file in
4569     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4570     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4571           break;;
4572     * ) break;;
4573   esac
4574 done
4575 else
4576   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4578 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4579 See \`config.log' for more details" "$LINENO" 5; }
4580 fi
4581 rm -f conftest conftest$ac_cv_exeext
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4583 $as_echo "$ac_cv_exeext" >&6; }
4584
4585 rm -f conftest.$ac_ext
4586 EXEEXT=$ac_cv_exeext
4587 ac_exeext=$EXEEXT
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h.  */
4590 #include <stdio.h>
4591 int
4592 main ()
4593 {
4594 FILE *f = fopen ("conftest.out", "w");
4595  return ferror (f) || fclose (f) != 0;
4596
4597   ;
4598   return 0;
4599 }
4600 _ACEOF
4601 ac_clean_files="$ac_clean_files conftest.out"
4602 # Check that the compiler produces executables we can run.  If not, either
4603 # the compiler is broken, or we cross compile.
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4605 $as_echo_n "checking whether we are cross compiling... " >&6; }
4606 if test "$cross_compiling" != yes; then
4607   { { ac_try="$ac_link"
4608 case "(($ac_try" in
4609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610   *) ac_try_echo=$ac_try;;
4611 esac
4612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613 $as_echo "$ac_try_echo"; } >&5
4614   (eval "$ac_link") 2>&5
4615   ac_status=$?
4616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617   test $ac_status = 0; }
4618   if { ac_try='./conftest$ac_cv_exeext'
4619   { { case "(($ac_try" in
4620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621   *) ac_try_echo=$ac_try;;
4622 esac
4623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4624 $as_echo "$ac_try_echo"; } >&5
4625   (eval "$ac_try") 2>&5
4626   ac_status=$?
4627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628   test $ac_status = 0; }; }; then
4629     cross_compiling=no
4630   else
4631     if test "$cross_compiling" = maybe; then
4632         cross_compiling=yes
4633     else
4634         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4636 as_fn_error $? "cannot run C compiled programs.
4637 If you meant to cross compile, use \`--host'.
4638 See \`config.log' for more details" "$LINENO" 5; }
4639     fi
4640   fi
4641 fi
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4643 $as_echo "$cross_compiling" >&6; }
4644
4645 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4646 ac_clean_files=$ac_clean_files_save
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4648 $as_echo_n "checking for suffix of object files... " >&6; }
4649 if ${ac_cv_objext+:} false; then :
4650   $as_echo_n "(cached) " >&6
4651 else
4652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h.  */
4654
4655 int
4656 main ()
4657 {
4658
4659   ;
4660   return 0;
4661 }
4662 _ACEOF
4663 rm -f conftest.o conftest.obj
4664 if { { ac_try="$ac_compile"
4665 case "(($ac_try" in
4666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667   *) ac_try_echo=$ac_try;;
4668 esac
4669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4670 $as_echo "$ac_try_echo"; } >&5
4671   (eval "$ac_compile") 2>&5
4672   ac_status=$?
4673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4674   test $ac_status = 0; }; then :
4675   for ac_file in conftest.o conftest.obj conftest.*; do
4676   test -f "$ac_file" || continue;
4677   case $ac_file in
4678     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4679     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4680        break;;
4681   esac
4682 done
4683 else
4684   $as_echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4686
4687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4689 as_fn_error $? "cannot compute suffix of object files: cannot compile
4690 See \`config.log' for more details" "$LINENO" 5; }
4691 fi
4692 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4695 $as_echo "$ac_cv_objext" >&6; }
4696 OBJEXT=$ac_cv_objext
4697 ac_objext=$OBJEXT
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4699 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4700 if ${ac_cv_c_compiler_gnu+:} false; then :
4701   $as_echo_n "(cached) " >&6
4702 else
4703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h.  */
4705
4706 int
4707 main ()
4708 {
4709 #ifndef __GNUC__
4710        choke me
4711 #endif
4712
4713   ;
4714   return 0;
4715 }
4716 _ACEOF
4717 if ac_fn_c_try_compile "$LINENO"; then :
4718   ac_compiler_gnu=yes
4719 else
4720   ac_compiler_gnu=no
4721 fi
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4724
4725 fi
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4727 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4728 if test $ac_compiler_gnu = yes; then
4729   GCC=yes
4730 else
4731   GCC=
4732 fi
4733 ac_test_CFLAGS=${CFLAGS+set}
4734 ac_save_CFLAGS=$CFLAGS
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4736 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4737 if ${ac_cv_prog_cc_g+:} false; then :
4738   $as_echo_n "(cached) " >&6
4739 else
4740   ac_save_c_werror_flag=$ac_c_werror_flag
4741    ac_c_werror_flag=yes
4742    ac_cv_prog_cc_g=no
4743    CFLAGS="-g"
4744    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h.  */
4746
4747 int
4748 main ()
4749 {
4750
4751   ;
4752   return 0;
4753 }
4754 _ACEOF
4755 if ac_fn_c_try_compile "$LINENO"; then :
4756   ac_cv_prog_cc_g=yes
4757 else
4758   CFLAGS=""
4759       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h.  */
4761
4762 int
4763 main ()
4764 {
4765
4766   ;
4767   return 0;
4768 }
4769 _ACEOF
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771
4772 else
4773   ac_c_werror_flag=$ac_save_c_werror_flag
4774          CFLAGS="-g"
4775          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h.  */
4777
4778 int
4779 main ()
4780 {
4781
4782   ;
4783   return 0;
4784 }
4785 _ACEOF
4786 if ac_fn_c_try_compile "$LINENO"; then :
4787   ac_cv_prog_cc_g=yes
4788 fi
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 fi
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 fi
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794    ac_c_werror_flag=$ac_save_c_werror_flag
4795 fi
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4797 $as_echo "$ac_cv_prog_cc_g" >&6; }
4798 if test "$ac_test_CFLAGS" = set; then
4799   CFLAGS=$ac_save_CFLAGS
4800 elif test $ac_cv_prog_cc_g = yes; then
4801   if test "$GCC" = yes; then
4802     CFLAGS="-g -O2"
4803   else
4804     CFLAGS="-g"
4805   fi
4806 else
4807   if test "$GCC" = yes; then
4808     CFLAGS="-O2"
4809   else
4810     CFLAGS=
4811   fi
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4814 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4815 if ${ac_cv_prog_cc_c89+:} false; then :
4816   $as_echo_n "(cached) " >&6
4817 else
4818   ac_cv_prog_cc_c89=no
4819 ac_save_CC=$CC
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h.  */
4822 #include <stdarg.h>
4823 #include <stdio.h>
4824 struct stat;
4825 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4826 struct buf { int x; };
4827 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4828 static char *e (p, i)
4829      char **p;
4830      int i;
4831 {
4832   return p[i];
4833 }
4834 static char *f (char * (*g) (char **, int), char **p, ...)
4835 {
4836   char *s;
4837   va_list v;
4838   va_start (v,p);
4839   s = g (p, va_arg (v,int));
4840   va_end (v);
4841   return s;
4842 }
4843
4844 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4845    function prototypes and stuff, but not '\xHH' hex character constants.
4846    These don't provoke an error unfortunately, instead are silently treated
4847    as 'x'.  The following induces an error, until -std is added to get
4848    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4849    array size at least.  It's necessary to write '\x00'==0 to get something
4850    that's true only with -std.  */
4851 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4852
4853 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4854    inside strings and character constants.  */
4855 #define FOO(x) 'x'
4856 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4857
4858 int test (int i, double x);
4859 struct s1 {int (*f) (int a);};
4860 struct s2 {int (*f) (double a);};
4861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4862 int argc;
4863 char **argv;
4864 int
4865 main ()
4866 {
4867 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4868   ;
4869   return 0;
4870 }
4871 _ACEOF
4872 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4873         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4874 do
4875   CC="$ac_save_CC $ac_arg"
4876   if ac_fn_c_try_compile "$LINENO"; then :
4877   ac_cv_prog_cc_c89=$ac_arg
4878 fi
4879 rm -f core conftest.err conftest.$ac_objext
4880   test "x$ac_cv_prog_cc_c89" != "xno" && break
4881 done
4882 rm -f conftest.$ac_ext
4883 CC=$ac_save_CC
4884
4885 fi
4886 # AC_CACHE_VAL
4887 case "x$ac_cv_prog_cc_c89" in
4888   x)
4889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4890 $as_echo "none needed" >&6; } ;;
4891   xno)
4892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4893 $as_echo "unsupported" >&6; } ;;
4894   *)
4895     CC="$CC $ac_cv_prog_cc_c89"
4896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4897 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4898 esac
4899 if test "x$ac_cv_prog_cc_c89" != xno; then :
4900
4901 fi
4902
4903 ac_ext=c
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908
4909    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4910 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4911 if ${ac_cv_prog_cc_c99+:} false; then :
4912   $as_echo_n "(cached) " >&6
4913 else
4914   ac_cv_prog_cc_c99=no
4915 ac_save_CC=$CC
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h.  */
4918 #include <stdarg.h>
4919 #include <stdbool.h>
4920 #include <stdlib.h>
4921 #include <wchar.h>
4922 #include <stdio.h>
4923
4924 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4925 #define debug(...) fprintf (stderr, __VA_ARGS__)
4926 #define showlist(...) puts (#__VA_ARGS__)
4927 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4928 static void
4929 test_varargs_macros (void)
4930 {
4931   int x = 1234;
4932   int y = 5678;
4933   debug ("Flag");
4934   debug ("X = %d\n", x);
4935   showlist (The first, second, and third items.);
4936   report (x>y, "x is %d but y is %d", x, y);
4937 }
4938
4939 // Check long long types.
4940 #define BIG64 18446744073709551615ull
4941 #define BIG32 4294967295ul
4942 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4943 #if !BIG_OK
4944   your preprocessor is broken;
4945 #endif
4946 #if BIG_OK
4947 #else
4948   your preprocessor is broken;
4949 #endif
4950 static long long int bignum = -9223372036854775807LL;
4951 static unsigned long long int ubignum = BIG64;
4952
4953 struct incomplete_array
4954 {
4955   int datasize;
4956   double data[];
4957 };
4958
4959 struct named_init {
4960   int number;
4961   const wchar_t *name;
4962   double average;
4963 };
4964
4965 typedef const char *ccp;
4966
4967 static inline int
4968 test_restrict (ccp restrict text)
4969 {
4970   // See if C++-style comments work.
4971   // Iterate through items via the restricted pointer.
4972   // Also check for declarations in for loops.
4973   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4974     continue;
4975   return 0;
4976 }
4977
4978 // Check varargs and va_copy.
4979 static void
4980 test_varargs (const char *format, ...)
4981 {
4982   va_list args;
4983   va_start (args, format);
4984   va_list args_copy;
4985   va_copy (args_copy, args);
4986
4987   const char *str;
4988   int number;
4989   float fnumber;
4990
4991   while (*format)
4992     {
4993       switch (*format++)
4994         {
4995         case 's': // string
4996           str = va_arg (args_copy, const char *);
4997           break;
4998         case 'd': // int
4999           number = va_arg (args_copy, int);
5000           break;
5001         case 'f': // float
5002           fnumber = va_arg (args_copy, double);
5003           break;
5004         default:
5005           break;
5006         }
5007     }
5008   va_end (args_copy);
5009   va_end (args);
5010 }
5011
5012 int
5013 main ()
5014 {
5015
5016   // Check bool.
5017   _Bool success = false;
5018
5019   // Check restrict.
5020   if (test_restrict ("String literal") == 0)
5021     success = true;
5022   char *restrict newvar = "Another string";
5023
5024   // Check varargs.
5025   test_varargs ("s, d' f .", "string", 65, 34.234);
5026   test_varargs_macros ();
5027
5028   // Check flexible array members.
5029   struct incomplete_array *ia =
5030     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5031   ia->datasize = 10;
5032   for (int i = 0; i < ia->datasize; ++i)
5033     ia->data[i] = i * 1.234;
5034
5035   // Check named initializers.
5036   struct named_init ni = {
5037     .number = 34,
5038     .name = L"Test wide string",
5039     .average = 543.34343,
5040   };
5041
5042   ni.number = 58;
5043
5044   int dynamic_array[ni.number];
5045   dynamic_array[ni.number - 1] = 543;
5046
5047   // work around unused variable warnings
5048   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5049           || dynamic_array[ni.number - 1] != 543);
5050
5051   ;
5052   return 0;
5053 }
5054 _ACEOF
5055 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5056 do
5057   CC="$ac_save_CC $ac_arg"
5058   if ac_fn_c_try_compile "$LINENO"; then :
5059   ac_cv_prog_cc_c99=$ac_arg
5060 fi
5061 rm -f core conftest.err conftest.$ac_objext
5062   test "x$ac_cv_prog_cc_c99" != "xno" && break
5063 done
5064 rm -f conftest.$ac_ext
5065 CC=$ac_save_CC
5066
5067 fi
5068 # AC_CACHE_VAL
5069 case "x$ac_cv_prog_cc_c99" in
5070   x)
5071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5072 $as_echo "none needed" >&6; } ;;
5073   xno)
5074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5075 $as_echo "unsupported" >&6; } ;;
5076   *)
5077     CC="$CC $ac_cv_prog_cc_c99"
5078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5079 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5080 esac
5081 if test "x$ac_cv_prog_cc_c99" != xno; then :
5082
5083 fi
5084
5085
5086 ac_ext=cpp
5087 ac_cpp='$CXXCPP $CPPFLAGS'
5088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5091 if test -z "$CXX"; then
5092   if test -n "$CCC"; then
5093     CXX=$CCC
5094   else
5095     if test -n "$ac_tool_prefix"; then
5096   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5097   do
5098     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if ${ac_cv_prog_CXX+:} false; then :
5103   $as_echo_n "(cached) " >&6
5104 else
5105   if test -n "$CXX"; then
5106   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113     for ac_exec_ext in '' $ac_executable_extensions; do
5114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117     break 2
5118   fi
5119 done
5120   done
5121 IFS=$as_save_IFS
5122
5123 fi
5124 fi
5125 CXX=$ac_cv_prog_CXX
5126 if test -n "$CXX"; then
5127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5128 $as_echo "$CXX" >&6; }
5129 else
5130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5132 fi
5133
5134
5135     test -n "$CXX" && break
5136   done
5137 fi
5138 if test -z "$CXX"; then
5139   ac_ct_CXX=$CXX
5140   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5141 do
5142   # Extract the first word of "$ac_prog", so it can be a program name with args.
5143 set dummy $ac_prog; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5147   $as_echo_n "(cached) " >&6
5148 else
5149   if test -n "$ac_ct_CXX"; then
5150   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5154 do
5155   IFS=$as_save_IFS
5156   test -z "$as_dir" && as_dir=.
5157     for ac_exec_ext in '' $ac_executable_extensions; do
5158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159     ac_cv_prog_ac_ct_CXX="$ac_prog"
5160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161     break 2
5162   fi
5163 done
5164   done
5165 IFS=$as_save_IFS
5166
5167 fi
5168 fi
5169 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5170 if test -n "$ac_ct_CXX"; then
5171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5172 $as_echo "$ac_ct_CXX" >&6; }
5173 else
5174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5176 fi
5177
5178
5179   test -n "$ac_ct_CXX" && break
5180 done
5181
5182   if test "x$ac_ct_CXX" = x; then
5183     CXX="g++"
5184   else
5185     case $cross_compiling:$ac_tool_warned in
5186 yes:)
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5189 ac_tool_warned=yes ;;
5190 esac
5191     CXX=$ac_ct_CXX
5192   fi
5193 fi
5194
5195   fi
5196 fi
5197 # Provide some information about the compiler.
5198 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5199 set X $ac_compile
5200 ac_compiler=$2
5201 for ac_option in --version -v -V -qversion; do
5202   { { ac_try="$ac_compiler $ac_option >&5"
5203 case "(($ac_try" in
5204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205   *) ac_try_echo=$ac_try;;
5206 esac
5207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5208 $as_echo "$ac_try_echo"; } >&5
5209   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5210   ac_status=$?
5211   if test -s conftest.err; then
5212     sed '10a\
5213 ... rest of stderr output deleted ...
5214          10q' conftest.err >conftest.er1
5215     cat conftest.er1 >&5
5216   fi
5217   rm -f conftest.er1 conftest.err
5218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5219   test $ac_status = 0; }
5220 done
5221
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5223 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5224 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5225   $as_echo_n "(cached) " >&6
5226 else
5227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h.  */
5229
5230 int
5231 main ()
5232 {
5233 #ifndef __GNUC__
5234        choke me
5235 #endif
5236
5237   ;
5238   return 0;
5239 }
5240 _ACEOF
5241 if ac_fn_cxx_try_compile "$LINENO"; then :
5242   ac_compiler_gnu=yes
5243 else
5244   ac_compiler_gnu=no
5245 fi
5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5248
5249 fi
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5251 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5252 if test $ac_compiler_gnu = yes; then
5253   GXX=yes
5254 else
5255   GXX=
5256 fi
5257 ac_test_CXXFLAGS=${CXXFLAGS+set}
5258 ac_save_CXXFLAGS=$CXXFLAGS
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5260 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5261 if ${ac_cv_prog_cxx_g+:} false; then :
5262   $as_echo_n "(cached) " >&6
5263 else
5264   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5265    ac_cxx_werror_flag=yes
5266    ac_cv_prog_cxx_g=no
5267    CXXFLAGS="-g"
5268    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h.  */
5270
5271 int
5272 main ()
5273 {
5274
5275   ;
5276   return 0;
5277 }
5278 _ACEOF
5279 if ac_fn_cxx_try_compile "$LINENO"; then :
5280   ac_cv_prog_cxx_g=yes
5281 else
5282   CXXFLAGS=""
5283       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h.  */
5285
5286 int
5287 main ()
5288 {
5289
5290   ;
5291   return 0;
5292 }
5293 _ACEOF
5294 if ac_fn_cxx_try_compile "$LINENO"; then :
5295
5296 else
5297   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5298          CXXFLAGS="-g"
5299          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h.  */
5301
5302 int
5303 main ()
5304 {
5305
5306   ;
5307   return 0;
5308 }
5309 _ACEOF
5310 if ac_fn_cxx_try_compile "$LINENO"; then :
5311   ac_cv_prog_cxx_g=yes
5312 fi
5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 fi
5315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316 fi
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5319 fi
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5321 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5322 if test "$ac_test_CXXFLAGS" = set; then
5323   CXXFLAGS=$ac_save_CXXFLAGS
5324 elif test $ac_cv_prog_cxx_g = yes; then
5325   if test "$GXX" = yes; then
5326     CXXFLAGS="-g -O2"
5327   else
5328     CXXFLAGS="-g"
5329   fi
5330 else
5331   if test "$GXX" = yes; then
5332     CXXFLAGS="-O2"
5333   else
5334     CXXFLAGS=
5335   fi
5336 fi
5337 ac_ext=c
5338 ac_cpp='$CPP $CPPFLAGS'
5339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5342
5343
5344 # We must set the default linker to the linker used by gcc for the correct
5345 # operation of libtool.  If LD is not defined and we are using gcc, try to
5346 # set the LD default to the ld used by gcc.
5347 if test -z "$LD"; then
5348   if test "$GCC" = yes; then
5349     case $build in
5350     *-*-mingw*)
5351       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5352     *)
5353       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5354     esac
5355     case $gcc_prog_ld in
5356     # Accept absolute paths.
5357     [\\/]* | [A-Za-z]:[\\/]*)
5358       LD="$gcc_prog_ld" ;;
5359     esac
5360   fi
5361 fi
5362
5363 # Check whether -static-libstdc++ -static-libgcc is supported.
5364 have_static_libs=no
5365 if test "$GCC" = yes; then
5366   saved_LDFLAGS="$LDFLAGS"
5367
5368   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5370 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5371   ac_ext=cpp
5372 ac_cpp='$CXXCPP $CPPFLAGS'
5373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5376
5377
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h.  */
5380
5381 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5382 #error -static-libstdc++ not implemented
5383 #endif
5384 int main() {}
5385 _ACEOF
5386 if ac_fn_cxx_try_link "$LINENO"; then :
5387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5388 $as_echo "yes" >&6; }; have_static_libs=yes
5389 else
5390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 $as_echo "no" >&6; }
5392 fi
5393 rm -f core conftest.err conftest.$ac_objext \
5394     conftest$ac_exeext conftest.$ac_ext
5395   ac_ext=c
5396 ac_cpp='$CPP $CPPFLAGS'
5397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5400
5401
5402   LDFLAGS="$saved_LDFLAGS"
5403 fi
5404
5405
5406
5407
5408 if test -n "$ac_tool_prefix"; then
5409   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5410 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_prog_GNATBIND+:} false; then :
5414   $as_echo_n "(cached) " >&6
5415 else
5416   if test -n "$GNATBIND"; then
5417   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5418 else
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5421 do
5422   IFS=$as_save_IFS
5423   test -z "$as_dir" && as_dir=.
5424     for ac_exec_ext in '' $ac_executable_extensions; do
5425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428     break 2
5429   fi
5430 done
5431   done
5432 IFS=$as_save_IFS
5433
5434 fi
5435 fi
5436 GNATBIND=$ac_cv_prog_GNATBIND
5437 if test -n "$GNATBIND"; then
5438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5439 $as_echo "$GNATBIND" >&6; }
5440 else
5441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5443 fi
5444
5445
5446 fi
5447 if test -z "$ac_cv_prog_GNATBIND"; then
5448   ac_ct_GNATBIND=$GNATBIND
5449   # Extract the first word of "gnatbind", so it can be a program name with args.
5450 set dummy gnatbind; ac_word=$2
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452 $as_echo_n "checking for $ac_word... " >&6; }
5453 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5454   $as_echo_n "(cached) " >&6
5455 else
5456   if test -n "$ac_ct_GNATBIND"; then
5457   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5458 else
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5461 do
5462   IFS=$as_save_IFS
5463   test -z "$as_dir" && as_dir=.
5464     for ac_exec_ext in '' $ac_executable_extensions; do
5465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468     break 2
5469   fi
5470 done
5471   done
5472 IFS=$as_save_IFS
5473
5474 fi
5475 fi
5476 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5477 if test -n "$ac_ct_GNATBIND"; then
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5479 $as_echo "$ac_ct_GNATBIND" >&6; }
5480 else
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5483 fi
5484
5485   if test "x$ac_ct_GNATBIND" = x; then
5486     GNATBIND="no"
5487   else
5488     case $cross_compiling:$ac_tool_warned in
5489 yes:)
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5492 ac_tool_warned=yes ;;
5493 esac
5494     GNATBIND=$ac_ct_GNATBIND
5495   fi
5496 else
5497   GNATBIND="$ac_cv_prog_GNATBIND"
5498 fi
5499
5500 if test -n "$ac_tool_prefix"; then
5501   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5502 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504 $as_echo_n "checking for $ac_word... " >&6; }
5505 if ${ac_cv_prog_GNATMAKE+:} false; then :
5506   $as_echo_n "(cached) " >&6
5507 else
5508   if test -n "$GNATMAKE"; then
5509   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5510 else
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5513 do
5514   IFS=$as_save_IFS
5515   test -z "$as_dir" && as_dir=.
5516     for ac_exec_ext in '' $ac_executable_extensions; do
5517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520     break 2
5521   fi
5522 done
5523   done
5524 IFS=$as_save_IFS
5525
5526 fi
5527 fi
5528 GNATMAKE=$ac_cv_prog_GNATMAKE
5529 if test -n "$GNATMAKE"; then
5530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5531 $as_echo "$GNATMAKE" >&6; }
5532 else
5533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5535 fi
5536
5537
5538 fi
5539 if test -z "$ac_cv_prog_GNATMAKE"; then
5540   ac_ct_GNATMAKE=$GNATMAKE
5541   # Extract the first word of "gnatmake", so it can be a program name with args.
5542 set dummy gnatmake; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5546   $as_echo_n "(cached) " >&6
5547 else
5548   if test -n "$ac_ct_GNATMAKE"; then
5549   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5550 else
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5553 do
5554   IFS=$as_save_IFS
5555   test -z "$as_dir" && as_dir=.
5556     for ac_exec_ext in '' $ac_executable_extensions; do
5557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560     break 2
5561   fi
5562 done
5563   done
5564 IFS=$as_save_IFS
5565
5566 fi
5567 fi
5568 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5569 if test -n "$ac_ct_GNATMAKE"; then
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5571 $as_echo "$ac_ct_GNATMAKE" >&6; }
5572 else
5573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5575 fi
5576
5577   if test "x$ac_ct_GNATMAKE" = x; then
5578     GNATMAKE="no"
5579   else
5580     case $cross_compiling:$ac_tool_warned in
5581 yes:)
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5584 ac_tool_warned=yes ;;
5585 esac
5586     GNATMAKE=$ac_ct_GNATMAKE
5587   fi
5588 else
5589   GNATMAKE="$ac_cv_prog_GNATMAKE"
5590 fi
5591
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5593 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5594 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5595   $as_echo_n "(cached) " >&6
5596 else
5597   cat >conftest.adb <<EOF
5598 pragma Warnings (Off);
5599 with System.CRTL;
5600 pragma Warnings (On);
5601 use type System.CRTL.int64;
5602 procedure conftest is begin null; end conftest;
5603 EOF
5604 acx_cv_cc_gcc_supports_ada=no
5605 # There is a bug in old released versions of GCC which causes the
5606 # driver to exit successfully when the appropriate language module
5607 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5608 # Therefore we must check for the error message as well as an
5609 # unsuccessful exit.
5610 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5611 # given a .adb file, but produce no object file.  So we must check
5612 # if an object file was really produced to guard against this.
5613 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5614 if test x"$errors" = x && test -f conftest.$ac_objext; then
5615   acx_cv_cc_gcc_supports_ada=yes
5616 fi
5617 rm -f conftest.*
5618 fi
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5620 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5621
5622 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5623   have_gnat=yes
5624 else
5625   have_gnat=no
5626 fi
5627
5628
5629
5630 if test -n "$ac_tool_prefix"; then
5631   # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5632 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if ${ac_cv_prog_GDC+:} false; then :
5636   $as_echo_n "(cached) " >&6
5637 else
5638   if test -n "$GDC"; then
5639   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5640 else
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5643 do
5644   IFS=$as_save_IFS
5645   test -z "$as_dir" && as_dir=.
5646     for ac_exec_ext in '' $ac_executable_extensions; do
5647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648     ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650     break 2
5651   fi
5652 done
5653   done
5654 IFS=$as_save_IFS
5655
5656 fi
5657 fi
5658 GDC=$ac_cv_prog_GDC
5659 if test -n "$GDC"; then
5660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5661 $as_echo "$GDC" >&6; }
5662 else
5663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5665 fi
5666
5667
5668 fi
5669 if test -z "$ac_cv_prog_GDC"; then
5670   ac_ct_GDC=$GDC
5671   # Extract the first word of "gdc", so it can be a program name with args.
5672 set dummy gdc; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5676   $as_echo_n "(cached) " >&6
5677 else
5678   if test -n "$ac_ct_GDC"; then
5679   ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684   IFS=$as_save_IFS
5685   test -z "$as_dir" && as_dir=.
5686     for ac_exec_ext in '' $ac_executable_extensions; do
5687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688     ac_cv_prog_ac_ct_GDC="gdc"
5689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690     break 2
5691   fi
5692 done
5693   done
5694 IFS=$as_save_IFS
5695
5696 fi
5697 fi
5698 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5699 if test -n "$ac_ct_GDC"; then
5700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5701 $as_echo "$ac_ct_GDC" >&6; }
5702 else
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5705 fi
5706
5707   if test "x$ac_ct_GDC" = x; then
5708     GDC="no"
5709   else
5710     case $cross_compiling:$ac_tool_warned in
5711 yes:)
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5714 ac_tool_warned=yes ;;
5715 esac
5716     GDC=$ac_ct_GDC
5717   fi
5718 else
5719   GDC="$ac_cv_prog_GDC"
5720 fi
5721
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5723 $as_echo_n "checking whether the D compiler works... " >&6; }
5724 if ${acx_cv_d_compiler_works+:} false; then :
5725   $as_echo_n "(cached) " >&6
5726 else
5727   cat >conftest.d <<EOF
5728 module conftest; int main() { return 0; }
5729 EOF
5730 acx_cv_d_compiler_works=no
5731 if test "x$GDC" != xno; then
5732   errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5733   if test x"$errors" = x && test -f conftest.$ac_objext; then
5734     acx_cv_d_compiler_works=yes
5735   fi
5736   rm -f conftest.*
5737 fi
5738 fi
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5740 $as_echo "$acx_cv_d_compiler_works" >&6; }
5741 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5742   have_gdc=yes
5743 else
5744   have_gdc=no
5745 fi
5746
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5748 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5749 if ${gcc_cv_prog_cmp_skip+:} false; then :
5750   $as_echo_n "(cached) " >&6
5751 else
5752    echo abfoo >t1
5753   echo cdfoo >t2
5754   gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5755   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5756     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5757       :
5758     else
5759       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5760     fi
5761   fi
5762   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5763     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5764       :
5765     else
5766       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5767     fi
5768   fi
5769   rm t1 t2
5770
5771 fi
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5773 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5774 do_compare="$gcc_cv_prog_cmp_skip"
5775
5776
5777
5778 # Check whether --enable-bootstrap was given.
5779 if test "${enable_bootstrap+set}" = set; then :
5780   enableval=$enable_bootstrap;
5781 else
5782   enable_bootstrap=default
5783 fi
5784
5785
5786 # Issue errors and warnings for invalid/strange bootstrap combinations.
5787 if test -r $srcdir/gcc/configure; then
5788   have_compiler=yes
5789 else
5790   have_compiler=no
5791 fi
5792
5793 case "$have_compiler:$host:$target:$enable_bootstrap" in
5794   *:*:*:no) ;;
5795
5796   # Default behavior.  Enable bootstrap if we have a compiler
5797   # and we are in a native configuration.
5798   yes:$build:$build:default)
5799     enable_bootstrap=yes ;;
5800
5801   *:*:*:default)
5802     enable_bootstrap=no ;;
5803
5804   # We have a compiler and we are in a native configuration, bootstrap is ok
5805   yes:$build:$build:yes)
5806     ;;
5807
5808   # Other configurations, but we have a compiler.  Assume the user knows
5809   # what he's doing.
5810   yes:*:*:yes)
5811     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5812 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5813     ;;
5814
5815   # No compiler: if they passed --enable-bootstrap explicitly, fail
5816   no:*:*:yes)
5817     as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5818
5819   # Fail if wrong command line
5820   *)
5821     as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5822     ;;
5823 esac
5824
5825 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5826 # C++11 compiler can still start the bootstrap.  Otherwise, if building GCC,
5827 # require C++11 (or higher).
5828 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5829   CXX="$CXX -std=c++11"
5830 elif test "$have_compiler" = yes; then
5831     ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
5832   ac_ext=cpp
5833 ac_cpp='$CXXCPP $CPPFLAGS'
5834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5837   ac_success=no
5838
5839       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5840 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5841 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5842   $as_echo_n "(cached) " >&6
5843 else
5844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h.  */
5846
5847
5848 // If the compiler admits that it is not ready for C++11, why torture it?
5849 // Hopefully, this will speed up the test.
5850
5851 #ifndef __cplusplus
5852
5853 #error "This is not a C++ compiler"
5854
5855 #elif __cplusplus < 201103L
5856
5857 #error "This is not a C++11 compiler"
5858
5859 #else
5860
5861 namespace cxx11
5862 {
5863
5864   namespace test_static_assert
5865   {
5866
5867     template <typename T>
5868     struct check
5869     {
5870       static_assert(sizeof(int) <= sizeof(T), "not big enough");
5871     };
5872
5873   }
5874
5875   namespace test_final_override
5876   {
5877
5878     struct Base
5879     {
5880       virtual ~Base() {}
5881       virtual void f() {}
5882     };
5883
5884     struct Derived : public Base
5885     {
5886       virtual ~Derived() override {}
5887       virtual void f() override {}
5888     };
5889
5890   }
5891
5892   namespace test_double_right_angle_brackets
5893   {
5894
5895     template < typename T >
5896     struct check {};
5897
5898     typedef check<void> single_type;
5899     typedef check<check<void>> double_type;
5900     typedef check<check<check<void>>> triple_type;
5901     typedef check<check<check<check<void>>>> quadruple_type;
5902
5903   }
5904
5905   namespace test_decltype
5906   {
5907
5908     int
5909     f()
5910     {
5911       int a = 1;
5912       decltype(a) b = 2;
5913       return a + b;
5914     }
5915
5916   }
5917
5918   namespace test_type_deduction
5919   {
5920
5921     template < typename T1, typename T2 >
5922     struct is_same
5923     {
5924       static const bool value = false;
5925     };
5926
5927     template < typename T >
5928     struct is_same<T, T>
5929     {
5930       static const bool value = true;
5931     };
5932
5933     template < typename T1, typename T2 >
5934     auto
5935     add(T1 a1, T2 a2) -> decltype(a1 + a2)
5936     {
5937       return a1 + a2;
5938     }
5939
5940     int
5941     test(const int c, volatile int v)
5942     {
5943       static_assert(is_same<int, decltype(0)>::value == true, "");
5944       static_assert(is_same<int, decltype(c)>::value == false, "");
5945       static_assert(is_same<int, decltype(v)>::value == false, "");
5946       auto ac = c;
5947       auto av = v;
5948       auto sumi = ac + av + 'x';
5949       auto sumf = ac + av + 1.0;
5950       static_assert(is_same<int, decltype(ac)>::value == true, "");
5951       static_assert(is_same<int, decltype(av)>::value == true, "");
5952       static_assert(is_same<int, decltype(sumi)>::value == true, "");
5953       static_assert(is_same<int, decltype(sumf)>::value == false, "");
5954       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5955       return (sumf > 0.0) ? sumi : add(c, v);
5956     }
5957
5958   }
5959
5960   namespace test_noexcept
5961   {
5962
5963     int f() { return 0; }
5964     int g() noexcept { return 0; }
5965
5966     static_assert(noexcept(f()) == false, "");
5967     static_assert(noexcept(g()) == true, "");
5968
5969   }
5970
5971   namespace test_constexpr
5972   {
5973
5974     template < typename CharT >
5975     unsigned long constexpr
5976     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5977     {
5978       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5979     }
5980
5981     template < typename CharT >
5982     unsigned long constexpr
5983     strlen_c(const CharT *const s) noexcept
5984     {
5985       return strlen_c_r(s, 0UL);
5986     }
5987
5988     static_assert(strlen_c("") == 0UL, "");
5989     static_assert(strlen_c("1") == 1UL, "");
5990     static_assert(strlen_c("example") == 7UL, "");
5991     static_assert(strlen_c("another\0example") == 7UL, "");
5992
5993   }
5994
5995   namespace test_rvalue_references
5996   {
5997
5998     template < int N >
5999     struct answer
6000     {
6001       static constexpr int value = N;
6002     };
6003
6004     answer<1> f(int&)       { return answer<1>(); }
6005     answer<2> f(const int&) { return answer<2>(); }
6006     answer<3> f(int&&)      { return answer<3>(); }
6007
6008     void
6009     test()
6010     {
6011       int i = 0;
6012       const int c = 0;
6013       static_assert(decltype(f(i))::value == 1, "");
6014       static_assert(decltype(f(c))::value == 2, "");
6015       static_assert(decltype(f(0))::value == 3, "");
6016     }
6017
6018   }
6019
6020   namespace test_uniform_initialization
6021   {
6022
6023     struct test
6024     {
6025       static const int zero {};
6026       static const int one {1};
6027     };
6028
6029     static_assert(test::zero == 0, "");
6030     static_assert(test::one == 1, "");
6031
6032   }
6033
6034   namespace test_lambdas
6035   {
6036
6037     void
6038     test1()
6039     {
6040       auto lambda1 = [](){};
6041       auto lambda2 = lambda1;
6042       lambda1();
6043       lambda2();
6044     }
6045
6046     int
6047     test2()
6048     {
6049       auto a = [](int i, int j){ return i + j; }(1, 2);
6050       auto b = []() -> int { return '0'; }();
6051       auto c = [=](){ return a + b; }();
6052       auto d = [&](){ return c; }();
6053       auto e = [a, &b](int x) mutable {
6054         const auto identity = [](int y){ return y; };
6055         for (auto i = 0; i < a; ++i)
6056           a += b--;
6057         return x + identity(a + b);
6058       }(0);
6059       return a + b + c + d + e;
6060     }
6061
6062     int
6063     test3()
6064     {
6065       const auto nullary = [](){ return 0; };
6066       const auto unary = [](int x){ return x; };
6067       using nullary_t = decltype(nullary);
6068       using unary_t = decltype(unary);
6069       const auto higher1st = [](nullary_t f){ return f(); };
6070       const auto higher2nd = [unary](nullary_t f1){
6071         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6072       };
6073       return higher1st(nullary) + higher2nd(nullary)(unary);
6074     }
6075
6076   }
6077
6078   namespace test_variadic_templates
6079   {
6080
6081     template <int...>
6082     struct sum;
6083
6084     template <int N0, int... N1toN>
6085     struct sum<N0, N1toN...>
6086     {
6087       static constexpr auto value = N0 + sum<N1toN...>::value;
6088     };
6089
6090     template <>
6091     struct sum<>
6092     {
6093       static constexpr auto value = 0;
6094     };
6095
6096     static_assert(sum<>::value == 0, "");
6097     static_assert(sum<1>::value == 1, "");
6098     static_assert(sum<23>::value == 23, "");
6099     static_assert(sum<1, 2>::value == 3, "");
6100     static_assert(sum<5, 5, 11>::value == 21, "");
6101     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6102
6103   }
6104
6105   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6106   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6107   // because of this.
6108   namespace test_template_alias_sfinae
6109   {
6110
6111     struct foo {};
6112
6113     template<typename T>
6114     using member = typename T::member_type;
6115
6116     template<typename T>
6117     void func(...) {}
6118
6119     template<typename T>
6120     void func(member<T>*) {}
6121
6122     void test();
6123
6124     void test() { func<foo>(0); }
6125
6126   }
6127
6128 }  // namespace cxx11
6129
6130 #endif  // __cplusplus >= 201103L
6131
6132
6133
6134 _ACEOF
6135 if ac_fn_cxx_try_compile "$LINENO"; then :
6136   ax_cv_cxx_compile_cxx11=yes
6137 else
6138   ax_cv_cxx_compile_cxx11=no
6139 fi
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 fi
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6143 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6144     if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6145       ac_success=yes
6146     fi
6147
6148     if test x$ac_success = xno; then
6149     for alternative in ${ax_cxx_compile_alternatives}; do
6150       switch="-std=gnu++${alternative}"
6151       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6152       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6153 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6154 if eval \${$cachevar+:} false; then :
6155   $as_echo_n "(cached) " >&6
6156 else
6157   ac_save_CXX="$CXX"
6158          CXX="$CXX $switch"
6159          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h.  */
6161
6162
6163 // If the compiler admits that it is not ready for C++11, why torture it?
6164 // Hopefully, this will speed up the test.
6165
6166 #ifndef __cplusplus
6167
6168 #error "This is not a C++ compiler"
6169
6170 #elif __cplusplus < 201103L
6171
6172 #error "This is not a C++11 compiler"
6173
6174 #else
6175
6176 namespace cxx11
6177 {
6178
6179   namespace test_static_assert
6180   {
6181
6182     template <typename T>
6183     struct check
6184     {
6185       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6186     };
6187
6188   }
6189
6190   namespace test_final_override
6191   {
6192
6193     struct Base
6194     {
6195       virtual ~Base() {}
6196       virtual void f() {}
6197     };
6198
6199     struct Derived : public Base
6200     {
6201       virtual ~Derived() override {}
6202       virtual void f() override {}
6203     };
6204
6205   }
6206
6207   namespace test_double_right_angle_brackets
6208   {
6209
6210     template < typename T >
6211     struct check {};
6212
6213     typedef check<void> single_type;
6214     typedef check<check<void>> double_type;
6215     typedef check<check<check<void>>> triple_type;
6216     typedef check<check<check<check<void>>>> quadruple_type;
6217
6218   }
6219
6220   namespace test_decltype
6221   {
6222
6223     int
6224     f()
6225     {
6226       int a = 1;
6227       decltype(a) b = 2;
6228       return a + b;
6229     }
6230
6231   }
6232
6233   namespace test_type_deduction
6234   {
6235
6236     template < typename T1, typename T2 >
6237     struct is_same
6238     {
6239       static const bool value = false;
6240     };
6241
6242     template < typename T >
6243     struct is_same<T, T>
6244     {
6245       static const bool value = true;
6246     };
6247
6248     template < typename T1, typename T2 >
6249     auto
6250     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6251     {
6252       return a1 + a2;
6253     }
6254
6255     int
6256     test(const int c, volatile int v)
6257     {
6258       static_assert(is_same<int, decltype(0)>::value == true, "");
6259       static_assert(is_same<int, decltype(c)>::value == false, "");
6260       static_assert(is_same<int, decltype(v)>::value == false, "");
6261       auto ac = c;
6262       auto av = v;
6263       auto sumi = ac + av + 'x';
6264       auto sumf = ac + av + 1.0;
6265       static_assert(is_same<int, decltype(ac)>::value == true, "");
6266       static_assert(is_same<int, decltype(av)>::value == true, "");
6267       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6268       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6269       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6270       return (sumf > 0.0) ? sumi : add(c, v);
6271     }
6272
6273   }
6274
6275   namespace test_noexcept
6276   {
6277
6278     int f() { return 0; }
6279     int g() noexcept { return 0; }
6280
6281     static_assert(noexcept(f()) == false, "");
6282     static_assert(noexcept(g()) == true, "");
6283
6284   }
6285
6286   namespace test_constexpr
6287   {
6288
6289     template < typename CharT >
6290     unsigned long constexpr
6291     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6292     {
6293       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6294     }
6295
6296     template < typename CharT >
6297     unsigned long constexpr
6298     strlen_c(const CharT *const s) noexcept
6299     {
6300       return strlen_c_r(s, 0UL);
6301     }
6302
6303     static_assert(strlen_c("") == 0UL, "");
6304     static_assert(strlen_c("1") == 1UL, "");
6305     static_assert(strlen_c("example") == 7UL, "");
6306     static_assert(strlen_c("another\0example") == 7UL, "");
6307
6308   }
6309
6310   namespace test_rvalue_references
6311   {
6312
6313     template < int N >
6314     struct answer
6315     {
6316       static constexpr int value = N;
6317     };
6318
6319     answer<1> f(int&)       { return answer<1>(); }
6320     answer<2> f(const int&) { return answer<2>(); }
6321     answer<3> f(int&&)      { return answer<3>(); }
6322
6323     void
6324     test()
6325     {
6326       int i = 0;
6327       const int c = 0;
6328       static_assert(decltype(f(i))::value == 1, "");
6329       static_assert(decltype(f(c))::value == 2, "");
6330       static_assert(decltype(f(0))::value == 3, "");
6331     }
6332
6333   }
6334
6335   namespace test_uniform_initialization
6336   {
6337
6338     struct test
6339     {
6340       static const int zero {};
6341       static const int one {1};
6342     };
6343
6344     static_assert(test::zero == 0, "");
6345     static_assert(test::one == 1, "");
6346
6347   }
6348
6349   namespace test_lambdas
6350   {
6351
6352     void
6353     test1()
6354     {
6355       auto lambda1 = [](){};
6356       auto lambda2 = lambda1;
6357       lambda1();
6358       lambda2();
6359     }
6360
6361     int
6362     test2()
6363     {
6364       auto a = [](int i, int j){ return i + j; }(1, 2);
6365       auto b = []() -> int { return '0'; }();
6366       auto c = [=](){ return a + b; }();
6367       auto d = [&](){ return c; }();
6368       auto e = [a, &b](int x) mutable {
6369         const auto identity = [](int y){ return y; };
6370         for (auto i = 0; i < a; ++i)
6371           a += b--;
6372         return x + identity(a + b);
6373       }(0);
6374       return a + b + c + d + e;
6375     }
6376
6377     int
6378     test3()
6379     {
6380       const auto nullary = [](){ return 0; };
6381       const auto unary = [](int x){ return x; };
6382       using nullary_t = decltype(nullary);
6383       using unary_t = decltype(unary);
6384       const auto higher1st = [](nullary_t f){ return f(); };
6385       const auto higher2nd = [unary](nullary_t f1){
6386         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6387       };
6388       return higher1st(nullary) + higher2nd(nullary)(unary);
6389     }
6390
6391   }
6392
6393   namespace test_variadic_templates
6394   {
6395
6396     template <int...>
6397     struct sum;
6398
6399     template <int N0, int... N1toN>
6400     struct sum<N0, N1toN...>
6401     {
6402       static constexpr auto value = N0 + sum<N1toN...>::value;
6403     };
6404
6405     template <>
6406     struct sum<>
6407     {
6408       static constexpr auto value = 0;
6409     };
6410
6411     static_assert(sum<>::value == 0, "");
6412     static_assert(sum<1>::value == 1, "");
6413     static_assert(sum<23>::value == 23, "");
6414     static_assert(sum<1, 2>::value == 3, "");
6415     static_assert(sum<5, 5, 11>::value == 21, "");
6416     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6417
6418   }
6419
6420   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6421   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6422   // because of this.
6423   namespace test_template_alias_sfinae
6424   {
6425
6426     struct foo {};
6427
6428     template<typename T>
6429     using member = typename T::member_type;
6430
6431     template<typename T>
6432     void func(...) {}
6433
6434     template<typename T>
6435     void func(member<T>*) {}
6436
6437     void test();
6438
6439     void test() { func<foo>(0); }
6440
6441   }
6442
6443 }  // namespace cxx11
6444
6445 #endif  // __cplusplus >= 201103L
6446
6447
6448
6449 _ACEOF
6450 if ac_fn_cxx_try_compile "$LINENO"; then :
6451   eval $cachevar=yes
6452 else
6453   eval $cachevar=no
6454 fi
6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456          CXX="$ac_save_CXX"
6457 fi
6458 eval ac_res=\$$cachevar
6459                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6460 $as_echo "$ac_res" >&6; }
6461       if eval test x\$$cachevar = xyes; then
6462         CXX="$CXX $switch"
6463         if test -n "$CXXCPP" ; then
6464           CXXCPP="$CXXCPP $switch"
6465         fi
6466         ac_success=yes
6467         break
6468       fi
6469     done
6470   fi
6471
6472     if test x$ac_success = xno; then
6473                 for alternative in ${ax_cxx_compile_alternatives}; do
6474       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6475         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6476         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6477 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6478 if eval \${$cachevar+:} false; then :
6479   $as_echo_n "(cached) " >&6
6480 else
6481   ac_save_CXX="$CXX"
6482            CXX="$CXX $switch"
6483            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h.  */
6485
6486
6487 // If the compiler admits that it is not ready for C++11, why torture it?
6488 // Hopefully, this will speed up the test.
6489
6490 #ifndef __cplusplus
6491
6492 #error "This is not a C++ compiler"
6493
6494 #elif __cplusplus < 201103L
6495
6496 #error "This is not a C++11 compiler"
6497
6498 #else
6499
6500 namespace cxx11
6501 {
6502
6503   namespace test_static_assert
6504   {
6505
6506     template <typename T>
6507     struct check
6508     {
6509       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6510     };
6511
6512   }
6513
6514   namespace test_final_override
6515   {
6516
6517     struct Base
6518     {
6519       virtual ~Base() {}
6520       virtual void f() {}
6521     };
6522
6523     struct Derived : public Base
6524     {
6525       virtual ~Derived() override {}
6526       virtual void f() override {}
6527     };
6528
6529   }
6530
6531   namespace test_double_right_angle_brackets
6532   {
6533
6534     template < typename T >
6535     struct check {};
6536
6537     typedef check<void> single_type;
6538     typedef check<check<void>> double_type;
6539     typedef check<check<check<void>>> triple_type;
6540     typedef check<check<check<check<void>>>> quadruple_type;
6541
6542   }
6543
6544   namespace test_decltype
6545   {
6546
6547     int
6548     f()
6549     {
6550       int a = 1;
6551       decltype(a) b = 2;
6552       return a + b;
6553     }
6554
6555   }
6556
6557   namespace test_type_deduction
6558   {
6559
6560     template < typename T1, typename T2 >
6561     struct is_same
6562     {
6563       static const bool value = false;
6564     };
6565
6566     template < typename T >
6567     struct is_same<T, T>
6568     {
6569       static const bool value = true;
6570     };
6571
6572     template < typename T1, typename T2 >
6573     auto
6574     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6575     {
6576       return a1 + a2;
6577     }
6578
6579     int
6580     test(const int c, volatile int v)
6581     {
6582       static_assert(is_same<int, decltype(0)>::value == true, "");
6583       static_assert(is_same<int, decltype(c)>::value == false, "");
6584       static_assert(is_same<int, decltype(v)>::value == false, "");
6585       auto ac = c;
6586       auto av = v;
6587       auto sumi = ac + av + 'x';
6588       auto sumf = ac + av + 1.0;
6589       static_assert(is_same<int, decltype(ac)>::value == true, "");
6590       static_assert(is_same<int, decltype(av)>::value == true, "");
6591       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6592       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6593       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6594       return (sumf > 0.0) ? sumi : add(c, v);
6595     }
6596
6597   }
6598
6599   namespace test_noexcept
6600   {
6601
6602     int f() { return 0; }
6603     int g() noexcept { return 0; }
6604
6605     static_assert(noexcept(f()) == false, "");
6606     static_assert(noexcept(g()) == true, "");
6607
6608   }
6609
6610   namespace test_constexpr
6611   {
6612
6613     template < typename CharT >
6614     unsigned long constexpr
6615     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6616     {
6617       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6618     }
6619
6620     template < typename CharT >
6621     unsigned long constexpr
6622     strlen_c(const CharT *const s) noexcept
6623     {
6624       return strlen_c_r(s, 0UL);
6625     }
6626
6627     static_assert(strlen_c("") == 0UL, "");
6628     static_assert(strlen_c("1") == 1UL, "");
6629     static_assert(strlen_c("example") == 7UL, "");
6630     static_assert(strlen_c("another\0example") == 7UL, "");
6631
6632   }
6633
6634   namespace test_rvalue_references
6635   {
6636
6637     template < int N >
6638     struct answer
6639     {
6640       static constexpr int value = N;
6641     };
6642
6643     answer<1> f(int&)       { return answer<1>(); }
6644     answer<2> f(const int&) { return answer<2>(); }
6645     answer<3> f(int&&)      { return answer<3>(); }
6646
6647     void
6648     test()
6649     {
6650       int i = 0;
6651       const int c = 0;
6652       static_assert(decltype(f(i))::value == 1, "");
6653       static_assert(decltype(f(c))::value == 2, "");
6654       static_assert(decltype(f(0))::value == 3, "");
6655     }
6656
6657   }
6658
6659   namespace test_uniform_initialization
6660   {
6661
6662     struct test
6663     {
6664       static const int zero {};
6665       static const int one {1};
6666     };
6667
6668     static_assert(test::zero == 0, "");
6669     static_assert(test::one == 1, "");
6670
6671   }
6672
6673   namespace test_lambdas
6674   {
6675
6676     void
6677     test1()
6678     {
6679       auto lambda1 = [](){};
6680       auto lambda2 = lambda1;
6681       lambda1();
6682       lambda2();
6683     }
6684
6685     int
6686     test2()
6687     {
6688       auto a = [](int i, int j){ return i + j; }(1, 2);
6689       auto b = []() -> int { return '0'; }();
6690       auto c = [=](){ return a + b; }();
6691       auto d = [&](){ return c; }();
6692       auto e = [a, &b](int x) mutable {
6693         const auto identity = [](int y){ return y; };
6694         for (auto i = 0; i < a; ++i)
6695           a += b--;
6696         return x + identity(a + b);
6697       }(0);
6698       return a + b + c + d + e;
6699     }
6700
6701     int
6702     test3()
6703     {
6704       const auto nullary = [](){ return 0; };
6705       const auto unary = [](int x){ return x; };
6706       using nullary_t = decltype(nullary);
6707       using unary_t = decltype(unary);
6708       const auto higher1st = [](nullary_t f){ return f(); };
6709       const auto higher2nd = [unary](nullary_t f1){
6710         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6711       };
6712       return higher1st(nullary) + higher2nd(nullary)(unary);
6713     }
6714
6715   }
6716
6717   namespace test_variadic_templates
6718   {
6719
6720     template <int...>
6721     struct sum;
6722
6723     template <int N0, int... N1toN>
6724     struct sum<N0, N1toN...>
6725     {
6726       static constexpr auto value = N0 + sum<N1toN...>::value;
6727     };
6728
6729     template <>
6730     struct sum<>
6731     {
6732       static constexpr auto value = 0;
6733     };
6734
6735     static_assert(sum<>::value == 0, "");
6736     static_assert(sum<1>::value == 1, "");
6737     static_assert(sum<23>::value == 23, "");
6738     static_assert(sum<1, 2>::value == 3, "");
6739     static_assert(sum<5, 5, 11>::value == 21, "");
6740     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6741
6742   }
6743
6744   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6745   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6746   // because of this.
6747   namespace test_template_alias_sfinae
6748   {
6749
6750     struct foo {};
6751
6752     template<typename T>
6753     using member = typename T::member_type;
6754
6755     template<typename T>
6756     void func(...) {}
6757
6758     template<typename T>
6759     void func(member<T>*) {}
6760
6761     void test();
6762
6763     void test() { func<foo>(0); }
6764
6765   }
6766
6767 }  // namespace cxx11
6768
6769 #endif  // __cplusplus >= 201103L
6770
6771
6772
6773 _ACEOF
6774 if ac_fn_cxx_try_compile "$LINENO"; then :
6775   eval $cachevar=yes
6776 else
6777   eval $cachevar=no
6778 fi
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780            CXX="$ac_save_CXX"
6781 fi
6782 eval ac_res=\$$cachevar
6783                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6784 $as_echo "$ac_res" >&6; }
6785         if eval test x\$$cachevar = xyes; then
6786           CXX="$CXX $switch"
6787           if test -n "$CXXCPP" ; then
6788             CXXCPP="$CXXCPP $switch"
6789           fi
6790           ac_success=yes
6791           break
6792         fi
6793       done
6794       if test x$ac_success = xyes; then
6795         break
6796       fi
6797     done
6798   fi
6799
6800   ac_ext=c
6801 ac_cpp='$CPP $CPPFLAGS'
6802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6805
6806   if test x$ax_cxx_compile_cxx11_required = xtrue; then
6807     if test x$ac_success = xno; then
6808       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6809     fi
6810   fi
6811   if test x$ac_success = xno; then
6812     HAVE_CXX11=0
6813     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6814 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6815   else
6816     HAVE_CXX11=1
6817
6818 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6819
6820   fi
6821
6822
6823
6824   if test "${build}" != "${host}"; then
6825       ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
6826   ac_ext=cpp
6827 ac_cpp='$CXXCPP $CPPFLAGS'
6828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6831   ac_success=no
6832       ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6833     ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6834     ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6835     CXX="$CXX_FOR_BUILD"
6836     CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6837     CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6838       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6839 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6840 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6841   $as_echo_n "(cached) " >&6
6842 else
6843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h.  */
6845
6846
6847 // If the compiler admits that it is not ready for C++11, why torture it?
6848 // Hopefully, this will speed up the test.
6849
6850 #ifndef __cplusplus
6851
6852 #error "This is not a C++ compiler"
6853
6854 #elif __cplusplus < 201103L
6855
6856 #error "This is not a C++11 compiler"
6857
6858 #else
6859
6860 namespace cxx11
6861 {
6862
6863   namespace test_static_assert
6864   {
6865
6866     template <typename T>
6867     struct check
6868     {
6869       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6870     };
6871
6872   }
6873
6874   namespace test_final_override
6875   {
6876
6877     struct Base
6878     {
6879       virtual ~Base() {}
6880       virtual void f() {}
6881     };
6882
6883     struct Derived : public Base
6884     {
6885       virtual ~Derived() override {}
6886       virtual void f() override {}
6887     };
6888
6889   }
6890
6891   namespace test_double_right_angle_brackets
6892   {
6893
6894     template < typename T >
6895     struct check {};
6896
6897     typedef check<void> single_type;
6898     typedef check<check<void>> double_type;
6899     typedef check<check<check<void>>> triple_type;
6900     typedef check<check<check<check<void>>>> quadruple_type;
6901
6902   }
6903
6904   namespace test_decltype
6905   {
6906
6907     int
6908     f()
6909     {
6910       int a = 1;
6911       decltype(a) b = 2;
6912       return a + b;
6913     }
6914
6915   }
6916
6917   namespace test_type_deduction
6918   {
6919
6920     template < typename T1, typename T2 >
6921     struct is_same
6922     {
6923       static const bool value = false;
6924     };
6925
6926     template < typename T >
6927     struct is_same<T, T>
6928     {
6929       static const bool value = true;
6930     };
6931
6932     template < typename T1, typename T2 >
6933     auto
6934     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6935     {
6936       return a1 + a2;
6937     }
6938
6939     int
6940     test(const int c, volatile int v)
6941     {
6942       static_assert(is_same<int, decltype(0)>::value == true, "");
6943       static_assert(is_same<int, decltype(c)>::value == false, "");
6944       static_assert(is_same<int, decltype(v)>::value == false, "");
6945       auto ac = c;
6946       auto av = v;
6947       auto sumi = ac + av + 'x';
6948       auto sumf = ac + av + 1.0;
6949       static_assert(is_same<int, decltype(ac)>::value == true, "");
6950       static_assert(is_same<int, decltype(av)>::value == true, "");
6951       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6952       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6953       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6954       return (sumf > 0.0) ? sumi : add(c, v);
6955     }
6956
6957   }
6958
6959   namespace test_noexcept
6960   {
6961
6962     int f() { return 0; }
6963     int g() noexcept { return 0; }
6964
6965     static_assert(noexcept(f()) == false, "");
6966     static_assert(noexcept(g()) == true, "");
6967
6968   }
6969
6970   namespace test_constexpr
6971   {
6972
6973     template < typename CharT >
6974     unsigned long constexpr
6975     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6976     {
6977       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6978     }
6979
6980     template < typename CharT >
6981     unsigned long constexpr
6982     strlen_c(const CharT *const s) noexcept
6983     {
6984       return strlen_c_r(s, 0UL);
6985     }
6986
6987     static_assert(strlen_c("") == 0UL, "");
6988     static_assert(strlen_c("1") == 1UL, "");
6989     static_assert(strlen_c("example") == 7UL, "");
6990     static_assert(strlen_c("another\0example") == 7UL, "");
6991
6992   }
6993
6994   namespace test_rvalue_references
6995   {
6996
6997     template < int N >
6998     struct answer
6999     {
7000       static constexpr int value = N;
7001     };
7002
7003     answer<1> f(int&)       { return answer<1>(); }
7004     answer<2> f(const int&) { return answer<2>(); }
7005     answer<3> f(int&&)      { return answer<3>(); }
7006
7007     void
7008     test()
7009     {
7010       int i = 0;
7011       const int c = 0;
7012       static_assert(decltype(f(i))::value == 1, "");
7013       static_assert(decltype(f(c))::value == 2, "");
7014       static_assert(decltype(f(0))::value == 3, "");
7015     }
7016
7017   }
7018
7019   namespace test_uniform_initialization
7020   {
7021
7022     struct test
7023     {
7024       static const int zero {};
7025       static const int one {1};
7026     };
7027
7028     static_assert(test::zero == 0, "");
7029     static_assert(test::one == 1, "");
7030
7031   }
7032
7033   namespace test_lambdas
7034   {
7035
7036     void
7037     test1()
7038     {
7039       auto lambda1 = [](){};
7040       auto lambda2 = lambda1;
7041       lambda1();
7042       lambda2();
7043     }
7044
7045     int
7046     test2()
7047     {
7048       auto a = [](int i, int j){ return i + j; }(1, 2);
7049       auto b = []() -> int { return '0'; }();
7050       auto c = [=](){ return a + b; }();
7051       auto d = [&](){ return c; }();
7052       auto e = [a, &b](int x) mutable {
7053         const auto identity = [](int y){ return y; };
7054         for (auto i = 0; i < a; ++i)
7055           a += b--;
7056         return x + identity(a + b);
7057       }(0);
7058       return a + b + c + d + e;
7059     }
7060
7061     int
7062     test3()
7063     {
7064       const auto nullary = [](){ return 0; };
7065       const auto unary = [](int x){ return x; };
7066       using nullary_t = decltype(nullary);
7067       using unary_t = decltype(unary);
7068       const auto higher1st = [](nullary_t f){ return f(); };
7069       const auto higher2nd = [unary](nullary_t f1){
7070         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7071       };
7072       return higher1st(nullary) + higher2nd(nullary)(unary);
7073     }
7074
7075   }
7076
7077   namespace test_variadic_templates
7078   {
7079
7080     template <int...>
7081     struct sum;
7082
7083     template <int N0, int... N1toN>
7084     struct sum<N0, N1toN...>
7085     {
7086       static constexpr auto value = N0 + sum<N1toN...>::value;
7087     };
7088
7089     template <>
7090     struct sum<>
7091     {
7092       static constexpr auto value = 0;
7093     };
7094
7095     static_assert(sum<>::value == 0, "");
7096     static_assert(sum<1>::value == 1, "");
7097     static_assert(sum<23>::value == 23, "");
7098     static_assert(sum<1, 2>::value == 3, "");
7099     static_assert(sum<5, 5, 11>::value == 21, "");
7100     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7101
7102   }
7103
7104   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7105   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7106   // because of this.
7107   namespace test_template_alias_sfinae
7108   {
7109
7110     struct foo {};
7111
7112     template<typename T>
7113     using member = typename T::member_type;
7114
7115     template<typename T>
7116     void func(...) {}
7117
7118     template<typename T>
7119     void func(member<T>*) {}
7120
7121     void test();
7122
7123     void test() { func<foo>(0); }
7124
7125   }
7126
7127 }  // namespace cxx11
7128
7129 #endif  // __cplusplus >= 201103L
7130
7131
7132
7133 _ACEOF
7134 if ac_fn_cxx_try_compile "$LINENO"; then :
7135   ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7136 else
7137   ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7138 fi
7139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 fi
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7142 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7143     if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7144       ac_success=yes
7145     fi
7146
7147     if test x$ac_success = xno; then
7148     for alternative in ${ax_cxx_compile_alternatives}; do
7149       switch="-std=gnu++${alternative}"
7150       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7151       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7152 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7153 if eval \${$cachevar+:} false; then :
7154   $as_echo_n "(cached) " >&6
7155 else
7156   ac_save_CXX="$CXX"
7157          CXX="$CXX $switch"
7158          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h.  */
7160
7161
7162 // If the compiler admits that it is not ready for C++11, why torture it?
7163 // Hopefully, this will speed up the test.
7164
7165 #ifndef __cplusplus
7166
7167 #error "This is not a C++ compiler"
7168
7169 #elif __cplusplus < 201103L
7170
7171 #error "This is not a C++11 compiler"
7172
7173 #else
7174
7175 namespace cxx11
7176 {
7177
7178   namespace test_static_assert
7179   {
7180
7181     template <typename T>
7182     struct check
7183     {
7184       static_assert(sizeof(int) <= sizeof(T), "not big enough");
7185     };
7186
7187   }
7188
7189   namespace test_final_override
7190   {
7191
7192     struct Base
7193     {
7194       virtual ~Base() {}
7195       virtual void f() {}
7196     };
7197
7198     struct Derived : public Base
7199     {
7200       virtual ~Derived() override {}
7201       virtual void f() override {}
7202     };
7203
7204   }
7205
7206   namespace test_double_right_angle_brackets
7207   {
7208
7209     template < typename T >
7210     struct check {};
7211
7212     typedef check<void> single_type;
7213     typedef check<check<void>> double_type;
7214     typedef check<check<check<void>>> triple_type;
7215     typedef check<check<check<check<void>>>> quadruple_type;
7216
7217   }
7218
7219   namespace test_decltype
7220   {
7221
7222     int
7223     f()
7224     {
7225       int a = 1;
7226       decltype(a) b = 2;
7227       return a + b;
7228     }
7229
7230   }
7231
7232   namespace test_type_deduction
7233   {
7234
7235     template < typename T1, typename T2 >
7236     struct is_same
7237     {
7238       static const bool value = false;
7239     };
7240
7241     template < typename T >
7242     struct is_same<T, T>
7243     {
7244       static const bool value = true;
7245     };
7246
7247     template < typename T1, typename T2 >
7248     auto
7249     add(T1 a1, T2 a2) -> decltype(a1 + a2)
7250     {
7251       return a1 + a2;
7252     }
7253
7254     int
7255     test(const int c, volatile int v)
7256     {
7257       static_assert(is_same<int, decltype(0)>::value == true, "");
7258       static_assert(is_same<int, decltype(c)>::value == false, "");
7259       static_assert(is_same<int, decltype(v)>::value == false, "");
7260       auto ac = c;
7261       auto av = v;
7262       auto sumi = ac + av + 'x';
7263       auto sumf = ac + av + 1.0;
7264       static_assert(is_same<int, decltype(ac)>::value == true, "");
7265       static_assert(is_same<int, decltype(av)>::value == true, "");
7266       static_assert(is_same<int, decltype(sumi)>::value == true, "");
7267       static_assert(is_same<int, decltype(sumf)>::value == false, "");
7268       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7269       return (sumf > 0.0) ? sumi : add(c, v);
7270     }
7271
7272   }
7273
7274   namespace test_noexcept
7275   {
7276
7277     int f() { return 0; }
7278     int g() noexcept { return 0; }
7279
7280     static_assert(noexcept(f()) == false, "");
7281     static_assert(noexcept(g()) == true, "");
7282
7283   }
7284
7285   namespace test_constexpr
7286   {
7287
7288     template < typename CharT >
7289     unsigned long constexpr
7290     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7291     {
7292       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7293     }
7294
7295     template < typename CharT >
7296     unsigned long constexpr
7297     strlen_c(const CharT *const s) noexcept
7298     {
7299       return strlen_c_r(s, 0UL);
7300     }
7301
7302     static_assert(strlen_c("") == 0UL, "");
7303     static_assert(strlen_c("1") == 1UL, "");
7304     static_assert(strlen_c("example") == 7UL, "");
7305     static_assert(strlen_c("another\0example") == 7UL, "");
7306
7307   }
7308
7309   namespace test_rvalue_references
7310   {
7311
7312     template < int N >
7313     struct answer
7314     {
7315       static constexpr int value = N;
7316     };
7317
7318     answer<1> f(int&)       { return answer<1>(); }
7319     answer<2> f(const int&) { return answer<2>(); }
7320     answer<3> f(int&&)      { return answer<3>(); }
7321
7322     void
7323     test()
7324     {
7325       int i = 0;
7326       const int c = 0;
7327       static_assert(decltype(f(i))::value == 1, "");
7328       static_assert(decltype(f(c))::value == 2, "");
7329       static_assert(decltype(f(0))::value == 3, "");
7330     }
7331
7332   }
7333
7334   namespace test_uniform_initialization
7335   {
7336
7337     struct test
7338     {
7339       static const int zero {};
7340       static const int one {1};
7341     };
7342
7343     static_assert(test::zero == 0, "");
7344     static_assert(test::one == 1, "");
7345
7346   }
7347
7348   namespace test_lambdas
7349   {
7350
7351     void
7352     test1()
7353     {
7354       auto lambda1 = [](){};
7355       auto lambda2 = lambda1;
7356       lambda1();
7357       lambda2();
7358     }
7359
7360     int
7361     test2()
7362     {
7363       auto a = [](int i, int j){ return i + j; }(1, 2);
7364       auto b = []() -> int { return '0'; }();
7365       auto c = [=](){ return a + b; }();
7366       auto d = [&](){ return c; }();
7367       auto e = [a, &b](int x) mutable {
7368         const auto identity = [](int y){ return y; };
7369         for (auto i = 0; i < a; ++i)
7370           a += b--;
7371         return x + identity(a + b);
7372       }(0);
7373       return a + b + c + d + e;
7374     }
7375
7376     int
7377     test3()
7378     {
7379       const auto nullary = [](){ return 0; };
7380       const auto unary = [](int x){ return x; };
7381       using nullary_t = decltype(nullary);
7382       using unary_t = decltype(unary);
7383       const auto higher1st = [](nullary_t f){ return f(); };
7384       const auto higher2nd = [unary](nullary_t f1){
7385         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7386       };
7387       return higher1st(nullary) + higher2nd(nullary)(unary);
7388     }
7389
7390   }
7391
7392   namespace test_variadic_templates
7393   {
7394
7395     template <int...>
7396     struct sum;
7397
7398     template <int N0, int... N1toN>
7399     struct sum<N0, N1toN...>
7400     {
7401       static constexpr auto value = N0 + sum<N1toN...>::value;
7402     };
7403
7404     template <>
7405     struct sum<>
7406     {
7407       static constexpr auto value = 0;
7408     };
7409
7410     static_assert(sum<>::value == 0, "");
7411     static_assert(sum<1>::value == 1, "");
7412     static_assert(sum<23>::value == 23, "");
7413     static_assert(sum<1, 2>::value == 3, "");
7414     static_assert(sum<5, 5, 11>::value == 21, "");
7415     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7416
7417   }
7418
7419   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7420   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7421   // because of this.
7422   namespace test_template_alias_sfinae
7423   {
7424
7425     struct foo {};
7426
7427     template<typename T>
7428     using member = typename T::member_type;
7429
7430     template<typename T>
7431     void func(...) {}
7432
7433     template<typename T>
7434     void func(member<T>*) {}
7435
7436     void test();
7437
7438     void test() { func<foo>(0); }
7439
7440   }
7441
7442 }  // namespace cxx11
7443
7444 #endif  // __cplusplus >= 201103L
7445
7446
7447
7448 _ACEOF
7449 if ac_fn_cxx_try_compile "$LINENO"; then :
7450   eval $cachevar=yes
7451 else
7452   eval $cachevar=no
7453 fi
7454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7455          CXX="$ac_save_CXX"
7456 fi
7457 eval ac_res=\$$cachevar
7458                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7459 $as_echo "$ac_res" >&6; }
7460       if eval test x\$$cachevar = xyes; then
7461         CXX="$CXX $switch"
7462         if test -n "$CXXCPP" ; then
7463           CXXCPP="$CXXCPP $switch"
7464         fi
7465         ac_success=yes
7466         break
7467       fi
7468     done
7469   fi
7470
7471     if test x$ac_success = xno; then
7472                 for alternative in ${ax_cxx_compile_alternatives}; do
7473       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7474         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7475         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7476 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7477 if eval \${$cachevar+:} false; then :
7478   $as_echo_n "(cached) " >&6
7479 else
7480   ac_save_CXX="$CXX"
7481            CXX="$CXX $switch"
7482            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h.  */
7484
7485
7486 // If the compiler admits that it is not ready for C++11, why torture it?
7487 // Hopefully, this will speed up the test.
7488
7489 #ifndef __cplusplus
7490
7491 #error "This is not a C++ compiler"
7492
7493 #elif __cplusplus < 201103L
7494
7495 #error "This is not a C++11 compiler"
7496
7497 #else
7498
7499 namespace cxx11
7500 {
7501
7502   namespace test_static_assert
7503   {
7504
7505     template <typename T>
7506     struct check
7507     {
7508       static_assert(sizeof(int) <= sizeof(T), "not big enough");
7509     };
7510
7511   }
7512
7513   namespace test_final_override
7514   {
7515
7516     struct Base
7517     {
7518       virtual ~Base() {}
7519       virtual void f() {}
7520     };
7521
7522     struct Derived : public Base
7523     {
7524       virtual ~Derived() override {}
7525       virtual void f() override {}
7526     };
7527
7528   }
7529
7530   namespace test_double_right_angle_brackets
7531   {
7532
7533     template < typename T >
7534     struct check {};
7535
7536     typedef check<void> single_type;
7537     typedef check<check<void>> double_type;
7538     typedef check<check<check<void>>> triple_type;
7539     typedef check<check<check<check<void>>>> quadruple_type;
7540
7541   }
7542
7543   namespace test_decltype
7544   {
7545
7546     int
7547     f()
7548     {
7549       int a = 1;
7550       decltype(a) b = 2;
7551       return a + b;
7552     }
7553
7554   }
7555
7556   namespace test_type_deduction
7557   {
7558
7559     template < typename T1, typename T2 >
7560     struct is_same
7561     {
7562       static const bool value = false;
7563     };
7564
7565     template < typename T >
7566     struct is_same<T, T>
7567     {
7568       static const bool value = true;
7569     };
7570
7571     template < typename T1, typename T2 >
7572     auto
7573     add(T1 a1, T2 a2) -> decltype(a1 + a2)
7574     {
7575       return a1 + a2;
7576     }
7577
7578     int
7579     test(const int c, volatile int v)
7580     {
7581       static_assert(is_same<int, decltype(0)>::value == true, "");
7582       static_assert(is_same<int, decltype(c)>::value == false, "");
7583       static_assert(is_same<int, decltype(v)>::value == false, "");
7584       auto ac = c;
7585       auto av = v;
7586       auto sumi = ac + av + 'x';
7587       auto sumf = ac + av + 1.0;
7588       static_assert(is_same<int, decltype(ac)>::value == true, "");
7589       static_assert(is_same<int, decltype(av)>::value == true, "");
7590       static_assert(is_same<int, decltype(sumi)>::value == true, "");
7591       static_assert(is_same<int, decltype(sumf)>::value == false, "");
7592       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7593       return (sumf > 0.0) ? sumi : add(c, v);
7594     }
7595
7596   }
7597
7598   namespace test_noexcept
7599   {
7600
7601     int f() { return 0; }
7602     int g() noexcept { return 0; }
7603
7604     static_assert(noexcept(f()) == false, "");
7605     static_assert(noexcept(g()) == true, "");
7606
7607   }
7608
7609   namespace test_constexpr
7610   {
7611
7612     template < typename CharT >
7613     unsigned long constexpr
7614     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7615     {
7616       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7617     }
7618
7619     template < typename CharT >
7620     unsigned long constexpr
7621     strlen_c(const CharT *const s) noexcept
7622     {
7623       return strlen_c_r(s, 0UL);
7624     }
7625
7626     static_assert(strlen_c("") == 0UL, "");
7627     static_assert(strlen_c("1") == 1UL, "");
7628     static_assert(strlen_c("example") == 7UL, "");
7629     static_assert(strlen_c("another\0example") == 7UL, "");
7630
7631   }
7632
7633   namespace test_rvalue_references
7634   {
7635
7636     template < int N >
7637     struct answer
7638     {
7639       static constexpr int value = N;
7640     };
7641
7642     answer<1> f(int&)       { return answer<1>(); }
7643     answer<2> f(const int&) { return answer<2>(); }
7644     answer<3> f(int&&)      { return answer<3>(); }
7645
7646     void
7647     test()
7648     {
7649       int i = 0;
7650       const int c = 0;
7651       static_assert(decltype(f(i))::value == 1, "");
7652       static_assert(decltype(f(c))::value == 2, "");
7653       static_assert(decltype(f(0))::value == 3, "");
7654     }
7655
7656   }
7657
7658   namespace test_uniform_initialization
7659   {
7660
7661     struct test
7662     {
7663       static const int zero {};
7664       static const int one {1};
7665     };
7666
7667     static_assert(test::zero == 0, "");
7668     static_assert(test::one == 1, "");
7669
7670   }
7671
7672   namespace test_lambdas
7673   {
7674
7675     void
7676     test1()
7677     {
7678       auto lambda1 = [](){};
7679       auto lambda2 = lambda1;
7680       lambda1();
7681       lambda2();
7682     }
7683
7684     int
7685     test2()
7686     {
7687       auto a = [](int i, int j){ return i + j; }(1, 2);
7688       auto b = []() -> int { return '0'; }();
7689       auto c = [=](){ return a + b; }();
7690       auto d = [&](){ return c; }();
7691       auto e = [a, &b](int x) mutable {
7692         const auto identity = [](int y){ return y; };
7693         for (auto i = 0; i < a; ++i)
7694           a += b--;
7695         return x + identity(a + b);
7696       }(0);
7697       return a + b + c + d + e;
7698     }
7699
7700     int
7701     test3()
7702     {
7703       const auto nullary = [](){ return 0; };
7704       const auto unary = [](int x){ return x; };
7705       using nullary_t = decltype(nullary);
7706       using unary_t = decltype(unary);
7707       const auto higher1st = [](nullary_t f){ return f(); };
7708       const auto higher2nd = [unary](nullary_t f1){
7709         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7710       };
7711       return higher1st(nullary) + higher2nd(nullary)(unary);
7712     }
7713
7714   }
7715
7716   namespace test_variadic_templates
7717   {
7718
7719     template <int...>
7720     struct sum;
7721
7722     template <int N0, int... N1toN>
7723     struct sum<N0, N1toN...>
7724     {
7725       static constexpr auto value = N0 + sum<N1toN...>::value;
7726     };
7727
7728     template <>
7729     struct sum<>
7730     {
7731       static constexpr auto value = 0;
7732     };
7733
7734     static_assert(sum<>::value == 0, "");
7735     static_assert(sum<1>::value == 1, "");
7736     static_assert(sum<23>::value == 23, "");
7737     static_assert(sum<1, 2>::value == 3, "");
7738     static_assert(sum<5, 5, 11>::value == 21, "");
7739     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7740
7741   }
7742
7743   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7744   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7745   // because of this.
7746   namespace test_template_alias_sfinae
7747   {
7748
7749     struct foo {};
7750
7751     template<typename T>
7752     using member = typename T::member_type;
7753
7754     template<typename T>
7755     void func(...) {}
7756
7757     template<typename T>
7758     void func(member<T>*) {}
7759
7760     void test();
7761
7762     void test() { func<foo>(0); }
7763
7764   }
7765
7766 }  // namespace cxx11
7767
7768 #endif  // __cplusplus >= 201103L
7769
7770
7771
7772 _ACEOF
7773 if ac_fn_cxx_try_compile "$LINENO"; then :
7774   eval $cachevar=yes
7775 else
7776   eval $cachevar=no
7777 fi
7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779            CXX="$ac_save_CXX"
7780 fi
7781 eval ac_res=\$$cachevar
7782                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7783 $as_echo "$ac_res" >&6; }
7784         if eval test x\$$cachevar = xyes; then
7785           CXX="$CXX $switch"
7786           if test -n "$CXXCPP" ; then
7787             CXXCPP="$CXXCPP $switch"
7788           fi
7789           ac_success=yes
7790           break
7791         fi
7792       done
7793       if test x$ac_success = xyes; then
7794         break
7795       fi
7796     done
7797   fi
7798       CXX_FOR_BUILD="$CXX"
7799     CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7800     CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7801     CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7802     CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7803     CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7804   ac_ext=c
7805 ac_cpp='$CPP $CPPFLAGS'
7806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7809
7810   if test x$ax_cxx_compile_cxx11_required = xtrue; then
7811     if test x$ac_success = xno; then
7812       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7813     fi
7814   fi
7815   if test x$ac_success = xno; then
7816     HAVE_CXX11_FOR_BUILD=0
7817     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7818 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7819   else
7820     HAVE_CXX11_FOR_BUILD=1
7821
7822 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7823
7824   fi
7825
7826
7827   fi
7828 fi
7829
7830 # Check whether --enable-pgo-build was given.
7831 if test "${enable_pgo_build+set}" = set; then :
7832   enableval=$enable_pgo_build; enable_pgo_build=$enableval
7833 else
7834   enable_pgo_build=no
7835 fi
7836
7837
7838 # Issue errors and warnings for invalid/strange PGO build combinations.
7839 case "$have_compiler:$host:$target:$enable_pgo_build" in
7840   *:*:*:no) ;;
7841
7842   # Allow the PGO build only if we aren't building a compiler and
7843   # we are in a native configuration.
7844   no:$build:$build:yes | no:$build:$build:lto) ;;
7845
7846   # Disallow the PGO bootstrap if we are building a compiler.
7847   yes:*:*:yes | yes:*:*:lto)
7848     as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7849
7850   *)
7851     as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7852     ;;
7853 esac
7854
7855 if test "$enable_pgo_build" != "no"; then
7856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7857 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7858   old_CFLAGS="$CFLAGS"
7859   PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7860   CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7861
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h.  */
7864 int foo;
7865 _ACEOF
7866 if ac_fn_c_try_compile "$LINENO"; then :
7867
7868 else
7869   PGO_BUILD_GEN_CFLAGS=
7870 fi
7871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872   CFLAGS="$old_CFLAGS"
7873   if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7875 $as_echo "yes" >&6; }
7876     PGO_BUILD_USE_CFLAGS="-fprofile-use"
7877   else
7878     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7880     as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7881   fi
7882
7883   if test "$enable_pgo_build" = "lto"; then
7884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7885 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7886     old_CFLAGS="$CFLAGS"
7887     PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7888     CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7889     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h.  */
7891 int foo;
7892 _ACEOF
7893 if ac_fn_c_try_compile "$LINENO"; then :
7894
7895 else
7896   PGO_BUILD_LTO_CFLAGS=
7897 fi
7898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899     CFLAGS="$old_CFLAGS"
7900     if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7901       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7902 $as_echo "yes" >&6; }
7903     else
7904       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7906       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7907 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7908     fi
7909   fi
7910 fi
7911
7912
7913
7914
7915 # Used for setting $lt_cv_objdir
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7917 $as_echo_n "checking for objdir... " >&6; }
7918 if ${lt_cv_objdir+:} false; then :
7919   $as_echo_n "(cached) " >&6
7920 else
7921   rm -f .libs 2>/dev/null
7922 mkdir .libs 2>/dev/null
7923 if test -d .libs; then
7924   lt_cv_objdir=.libs
7925 else
7926   # MS-DOS does not allow filenames that begin with a dot.
7927   lt_cv_objdir=_libs
7928 fi
7929 rmdir .libs 2>/dev/null
7930 fi
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7932 $as_echo "$lt_cv_objdir" >&6; }
7933 objdir=$lt_cv_objdir
7934
7935
7936
7937
7938
7939 cat >>confdefs.h <<_ACEOF
7940 #define LT_OBJDIR "$lt_cv_objdir/"
7941 _ACEOF
7942
7943
7944
7945 # Check for GMP, MPFR and MPC
7946 gmplibs="-lmpc -lmpfr -lgmp"
7947 gmpinc=
7948 have_gmp=no
7949
7950 # Specify a location for mpc
7951 # check for this first so it ends up on the link line before mpfr.
7952
7953 # Check whether --with-mpc was given.
7954 if test "${with_mpc+set}" = set; then :
7955   withval=$with_mpc;
7956 fi
7957
7958
7959 # Check whether --with-mpc-include was given.
7960 if test "${with_mpc_include+set}" = set; then :
7961   withval=$with_mpc_include;
7962 fi
7963
7964
7965 # Check whether --with-mpc-lib was given.
7966 if test "${with_mpc_lib+set}" = set; then :
7967   withval=$with_mpc_lib;
7968 fi
7969
7970
7971 if test "x$with_mpc" != x; then
7972   gmplibs="-L$with_mpc/lib $gmplibs"
7973   gmpinc="-I$with_mpc/include $gmpinc"
7974 fi
7975 if test "x$with_mpc_include" != x; then
7976   gmpinc="-I$with_mpc_include $gmpinc"
7977 fi
7978 if test "x$with_mpc_lib" != x; then
7979   gmplibs="-L$with_mpc_lib $gmplibs"
7980 fi
7981 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7982   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7983   gmpinc='-I$$s/mpc/src '"$gmpinc"
7984   # Do not test the mpc version.  Assume that it is sufficient, since
7985   # it is in the source tree, and the library has not been built yet
7986   # but it would be included on the link line in the version check below
7987   # hence making the test fail.
7988   have_gmp=yes
7989 fi
7990
7991 # Specify a location for mpfr
7992 # check for this first so it ends up on the link line before gmp.
7993
7994 # Check whether --with-mpfr was given.
7995 if test "${with_mpfr+set}" = set; then :
7996   withval=$with_mpfr;
7997 fi
7998
7999
8000 # Check whether --with-mpfr-include was given.
8001 if test "${with_mpfr_include+set}" = set; then :
8002   withval=$with_mpfr_include;
8003 fi
8004
8005
8006 # Check whether --with-mpfr-lib was given.
8007 if test "${with_mpfr_lib+set}" = set; then :
8008   withval=$with_mpfr_lib;
8009 fi
8010
8011
8012 if test "x$with_mpfr" != x; then
8013   gmplibs="-L$with_mpfr/lib $gmplibs"
8014   gmpinc="-I$with_mpfr/include $gmpinc"
8015 fi
8016 if test "x$with_mpfr_include" != x; then
8017   gmpinc="-I$with_mpfr_include $gmpinc"
8018 fi
8019 if test "x$with_mpfr_lib" != x; then
8020   gmplibs="-L$with_mpfr_lib $gmplibs"
8021 fi
8022 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8023   # MPFR v3.1.0 moved the sources into a src sub-directory.
8024   if ! test -d ${srcdir}/mpfr/src; then
8025     as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8026   fi
8027   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8028   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8029   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8030   # Do not test the mpfr version.  Assume that it is sufficient, since
8031   # it is in the source tree, and the library has not been built yet
8032   # but it would be included on the link line in the version check below
8033   # hence making the test fail.
8034   have_gmp=yes
8035 fi
8036
8037 # Specify a location for gmp
8038
8039 # Check whether --with-gmp was given.
8040 if test "${with_gmp+set}" = set; then :
8041   withval=$with_gmp;
8042 fi
8043
8044
8045 # Check whether --with-gmp-include was given.
8046 if test "${with_gmp_include+set}" = set; then :
8047   withval=$with_gmp_include;
8048 fi
8049
8050
8051 # Check whether --with-gmp-lib was given.
8052 if test "${with_gmp_lib+set}" = set; then :
8053   withval=$with_gmp_lib;
8054 fi
8055
8056
8057
8058 if test "x$with_gmp" != x; then
8059   gmplibs="-L$with_gmp/lib $gmplibs"
8060   gmpinc="-I$with_gmp/include $gmpinc"
8061 fi
8062 if test "x$with_gmp_include" != x; then
8063   gmpinc="-I$with_gmp_include $gmpinc"
8064 fi
8065 if test "x$with_gmp_lib" != x; then
8066   gmplibs="-L$with_gmp_lib $gmplibs"
8067 fi
8068 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8069   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8070   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8071   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8072   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8073   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8074   # Do not test the gmp version.  Assume that it is sufficient, since
8075   # it is in the source tree, and the library has not been built yet
8076   # but it would be included on the link line in the version check below
8077   # hence making the test fail.
8078   have_gmp=yes
8079 fi
8080
8081 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
8082   have_gmp=yes
8083   saved_CFLAGS="$CFLAGS"
8084   CFLAGS="$CFLAGS $gmpinc"
8085   # Check for the recommended and required versions of GMP.
8086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8087 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h.  */
8090 #include "gmp.h"
8091 int
8092 main ()
8093 {
8094
8095   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8096   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8097   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8098   choke me
8099   #endif
8100
8101   ;
8102   return 0;
8103 }
8104 _ACEOF
8105 if ac_fn_c_try_compile "$LINENO"; then :
8106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h.  */
8108 #include <gmp.h>
8109 int
8110 main ()
8111 {
8112
8113   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8114   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8115   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8116   choke me
8117   #endif
8118
8119   ;
8120   return 0;
8121 }
8122 _ACEOF
8123 if ac_fn_c_try_compile "$LINENO"; then :
8124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8125 $as_echo "yes" >&6; }
8126 else
8127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8128 $as_echo "buggy but acceptable" >&6; }
8129 fi
8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131 else
8132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }; have_gmp=no
8134 fi
8135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136
8137   # If we have GMP, check the MPFR version.
8138   if test x"$have_gmp" = xyes; then
8139     # Check for the recommended and required versions of MPFR.
8140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8141 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8142     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h.  */
8144 #include <gmp.h>
8145     #include <mpfr.h>
8146 int
8147 main ()
8148 {
8149
8150     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8151     choke me
8152     #endif
8153
8154   ;
8155   return 0;
8156 }
8157 _ACEOF
8158 if ac_fn_c_try_compile "$LINENO"; then :
8159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h.  */
8161 #include <gmp.h>
8162     #include <mpfr.h>
8163 int
8164 main ()
8165 {
8166
8167     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8168     choke me
8169     #endif
8170
8171   ;
8172   return 0;
8173 }
8174 _ACEOF
8175 if ac_fn_c_try_compile "$LINENO"; then :
8176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8177 $as_echo "yes" >&6; }
8178 else
8179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8180 $as_echo "buggy but acceptable" >&6; }
8181 fi
8182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183 else
8184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }; have_gmp=no
8186 fi
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188   fi
8189
8190   # Check for the MPC header version.
8191   if test x"$have_gmp" = xyes ; then
8192     # Check for the recommended and required versions of MPC.
8193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8194 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8195     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h.  */
8197 #include <mpc.h>
8198 int
8199 main ()
8200 {
8201
8202     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8203     choke me
8204     #endif
8205
8206   ;
8207   return 0;
8208 }
8209 _ACEOF
8210 if ac_fn_c_try_compile "$LINENO"; then :
8211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212 /* end confdefs.h.  */
8213 #include <mpc.h>
8214 int
8215 main ()
8216 {
8217
8218     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8219     choke me
8220     #endif
8221
8222   ;
8223   return 0;
8224 }
8225 _ACEOF
8226 if ac_fn_c_try_compile "$LINENO"; then :
8227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8228 $as_echo "yes" >&6; }
8229 else
8230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8231 $as_echo "buggy but acceptable" >&6; }
8232 fi
8233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 else
8235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }; have_gmp=no
8237 fi
8238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8239   fi
8240
8241   # Now check the MPFR library.
8242   if test x"$have_gmp" = xyes; then
8243     saved_LIBS="$LIBS"
8244     LIBS="$LIBS $gmplibs"
8245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8246 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8247     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h.  */
8249 #include <mpc.h>
8250 int
8251 main ()
8252 {
8253
8254     mpfr_t n;
8255     mpfr_t x;
8256     mpc_t c;
8257     int t;
8258     mpfr_init (n);
8259     mpfr_init (x);
8260     mpfr_atan2 (n, n, x, MPFR_RNDN);
8261     mpfr_erfc (n, x, MPFR_RNDN);
8262     mpfr_subnormalize (x, t, MPFR_RNDN);
8263     mpfr_clear(n);
8264     mpfr_clear(x);
8265     mpc_init2 (c, 53);
8266     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8267     mpc_cosh (c, c, MPC_RNDNN);
8268     mpc_pow (c, c, c, MPC_RNDNN);
8269     mpc_acosh (c, c, MPC_RNDNN);
8270     mpc_clear (c);
8271
8272   ;
8273   return 0;
8274 }
8275 _ACEOF
8276 if ac_fn_c_try_link "$LINENO"; then :
8277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8278 $as_echo "yes" >&6; }
8279 else
8280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281 $as_echo "no" >&6; }; have_gmp=no
8282 fi
8283 rm -f core conftest.err conftest.$ac_objext \
8284     conftest$ac_exeext conftest.$ac_ext
8285     LIBS="$saved_LIBS"
8286   fi
8287
8288   CFLAGS="$saved_CFLAGS"
8289
8290 # The library versions listed in the error message below should match
8291 # the HARD-minimums enforced above.
8292   if test x$have_gmp != xyes; then
8293     as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8294 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8295 their locations.  Source code for these libraries can be found at
8296 their respective hosting sites as well as at
8297 https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
8298 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
8299 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8300 make sure that you have installed both the libraries and the header
8301 files.  They may be located in separate packages." "$LINENO" 5
8302   fi
8303 fi
8304
8305 # Flags needed for both GMP, MPFR and/or MPC.
8306
8307
8308
8309
8310
8311
8312
8313 # Libraries to use for stage1 or when not bootstrapping.
8314
8315 # Check whether --with-stage1-libs was given.
8316 if test "${with_stage1_libs+set}" = set; then :
8317   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8318    stage1_libs=
8319  else
8320    stage1_libs=$withval
8321  fi
8322 else
8323   stage1_libs=
8324 fi
8325
8326
8327
8328 # Whether or not to use -static-libstdc++ and -static-libgcc.  The
8329 # default is yes if gcc is being built; no otherwise.  The reason for
8330 # this default is that gdb is sometimes linked against GNU Source
8331 # Highlight, which is a shared library that uses C++ exceptions.  In
8332 # this case, -static-libstdc++ will cause crashes.
8333
8334 # Check whether --with-static-standard-libraries was given.
8335 if test "${with_static_standard_libraries+set}" = set; then :
8336   withval=$with_static_standard_libraries;
8337 else
8338   with_static_standard_libraries=auto
8339 fi
8340
8341 if test "$with_static_standard_libraries" = auto; then
8342   with_static_standard_libraries=$have_compiler
8343 fi
8344
8345 # Linker flags to use for stage1 or when not bootstrapping.
8346
8347 # Check whether --with-stage1-ldflags was given.
8348 if test "${with_stage1_ldflags+set}" = set; then :
8349   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8350    stage1_ldflags=
8351  else
8352    stage1_ldflags=$withval
8353  fi
8354 else
8355   stage1_ldflags=
8356  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8357  # if supported.  But if the user explicitly specified the libraries to use,
8358  # trust that they are doing what they want.
8359  if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8360      -a "$have_static_libs" = yes; then
8361    stage1_ldflags="-static-libstdc++ -static-libgcc"
8362  fi
8363 fi
8364
8365
8366
8367 # Libraries to use for stage2 and later builds.
8368
8369 # Check whether --with-boot-libs was given.
8370 if test "${with_boot_libs+set}" = set; then :
8371   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8372    poststage1_libs=
8373  else
8374    poststage1_libs=$withval
8375  fi
8376 else
8377   poststage1_libs=
8378 fi
8379
8380
8381
8382 # Linker flags to use for stage2 and later builds.
8383
8384 # Check whether --with-boot-ldflags was given.
8385 if test "${with_boot_ldflags+set}" = set; then :
8386   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8387    poststage1_ldflags=
8388  else
8389    poststage1_ldflags=$withval
8390  fi
8391 else
8392   poststage1_ldflags=
8393  # In stages 2 and 3, default to linking libstdc++ and libgcc
8394  # statically.  But if the user explicitly specified the libraries to
8395  # use, trust that they are doing what they want.
8396  if test "$poststage1_libs" = ""; then
8397    poststage1_ldflags="-static-libstdc++ -static-libgcc"
8398  fi
8399 fi
8400
8401
8402
8403 # GCC GRAPHITE dependency isl.
8404 # Basic setup is inlined here, actual checks are in config/isl.m4
8405
8406
8407 # Check whether --with-isl was given.
8408 if test "${with_isl+set}" = set; then :
8409   withval=$with_isl;
8410 fi
8411
8412
8413 # Treat --without-isl as a request to disable
8414 # GRAPHITE support and skip all following checks.
8415 if test "x$with_isl" != "xno"; then
8416   # Check for isl
8417
8418
8419 # Check whether --with-isl-include was given.
8420 if test "${with_isl_include+set}" = set; then :
8421   withval=$with_isl_include;
8422 fi
8423
8424
8425 # Check whether --with-isl-lib was given.
8426 if test "${with_isl_lib+set}" = set; then :
8427   withval=$with_isl_lib;
8428 fi
8429
8430
8431   # Check whether --enable-isl-version-check was given.
8432 if test "${enable_isl_version_check+set}" = set; then :
8433   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8434 else
8435   ENABLE_ISL_CHECK=yes
8436 fi
8437
8438
8439   # Initialize isllibs and islinc.
8440   case $with_isl in
8441     no)
8442       isllibs=
8443       islinc=
8444       ;;
8445     "" | yes)
8446       ;;
8447     *)
8448       isllibs="-L$with_isl/lib"
8449       islinc="-I$with_isl/include"
8450       ;;
8451   esac
8452   if test "x${with_isl_include}" != x ; then
8453     islinc="-I$with_isl_include"
8454   fi
8455   if test "x${with_isl_lib}" != x; then
8456     isllibs="-L$with_isl_lib"
8457   fi
8458         if test "x${islinc}" = x && test "x${isllibs}" = x \
8459      && test -d ${srcdir}/isl; then
8460     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8461     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8462     ENABLE_ISL_CHECK=no
8463     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8464 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8465   fi
8466
8467   isllibs="${isllibs} -lisl"
8468
8469
8470
8471   if test "${ENABLE_ISL_CHECK}" = yes ; then
8472     _isl_saved_CFLAGS=$CFLAGS
8473     _isl_saved_LDFLAGS=$LDFLAGS
8474     _isl_saved_LIBS=$LIBS
8475
8476     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8477     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8478     LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8479
8480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8481 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8482     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h.  */
8484 #include <isl/schedule.h>
8485 int
8486 main ()
8487 {
8488 isl_options_set_schedule_serialize_sccs (NULL, 0);
8489   ;
8490   return 0;
8491 }
8492 _ACEOF
8493 if ac_fn_c_try_link "$LINENO"; then :
8494   gcc_cv_isl=yes
8495 else
8496   gcc_cv_isl=no
8497 fi
8498 rm -f core conftest.err conftest.$ac_objext \
8499     conftest$ac_exeext conftest.$ac_ext
8500     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8501 $as_echo "$gcc_cv_isl" >&6; }
8502
8503     if test "${gcc_cv_isl}" = no ; then
8504       { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8505 $as_echo "required isl version is 0.15 or later" >&6; }
8506     fi
8507
8508     CFLAGS=$_isl_saved_CFLAGS
8509     LDFLAGS=$_isl_saved_LDFLAGS
8510     LIBS=$_isl_saved_LIBS
8511   fi
8512
8513
8514
8515
8516
8517
8518   if test "x${with_isl}" = xno; then
8519     graphite_requested=no
8520   elif test "x${with_isl}" != x \
8521     || test "x${with_isl_include}" != x \
8522     || test "x${with_isl_lib}" != x ; then
8523     graphite_requested=yes
8524   else
8525     graphite_requested=no
8526   fi
8527
8528
8529
8530   if test "${gcc_cv_isl}" = no ; then
8531     isllibs=
8532     islinc=
8533   fi
8534
8535   if test "${graphite_requested}" = yes \
8536     && test "x${isllibs}" = x \
8537     && test "x${islinc}" = x ; then
8538
8539     as_fn_error $? "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
8540   fi
8541
8542
8543 fi
8544
8545 # If the isl check failed, disable builds of in-tree variant of isl
8546 if test "x$with_isl" = xno ||
8547    test "x$gcc_cv_isl" = xno; then
8548   noconfigdirs="$noconfigdirs isl"
8549   islinc=
8550 fi
8551
8552
8553
8554
8555 # Check for LTO support.
8556 # Check whether --enable-lto was given.
8557 if test "${enable_lto+set}" = set; then :
8558   enableval=$enable_lto; enable_lto=$enableval
8559 else
8560   enable_lto=yes; default_enable_lto=yes
8561 fi
8562
8563
8564
8565
8566
8567 target_elf=no
8568 case $target in
8569   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8570   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8571   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8572   nvptx-*-none)
8573     target_elf=no
8574     ;;
8575   *)
8576     target_elf=yes
8577     ;;
8578 esac
8579
8580 if test $target_elf = yes; then :
8581   # ELF platforms build the lto-plugin always.
8582   build_lto_plugin=yes
8583
8584 else
8585   if test x"$default_enable_lto" = x"yes" ; then
8586     case $target in
8587       *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8588       # On other non-ELF platforms, LTO has yet to be validated.
8589       *) enable_lto=no ;;
8590     esac
8591   else
8592   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8593   # It would also be nice to check the binutils support, but we don't
8594   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
8595   # warn during gcc/ subconfigure; unless you're bootstrapping with
8596   # -flto it won't be needed until after installation anyway.
8597     case $target in
8598       *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8599       *) if test x"$enable_lto" = x"yes"; then
8600         as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8601         fi
8602       ;;
8603     esac
8604   fi
8605   # Among non-ELF, only Windows platforms support the lto-plugin so far.
8606   # Build it unless LTO was explicitly disabled.
8607   case $target in
8608     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8609     *) ;;
8610   esac
8611
8612 fi
8613
8614
8615 # Check whether --enable-linker-plugin-configure-flags was given.
8616 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8617   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8618 else
8619   extra_linker_plugin_configure_flags=
8620 fi
8621
8622
8623 # Check whether --enable-linker-plugin-flags was given.
8624 if test "${enable_linker_plugin_flags+set}" = set; then :
8625   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8626 else
8627   extra_linker_plugin_flags=
8628 fi
8629
8630
8631
8632 # Enable --enable-host-shared.
8633 # Checked early to determine whether jit is an 'all' language
8634 # Check whether --enable-host-shared was given.
8635 if test "${enable_host_shared+set}" = set; then :
8636   enableval=$enable_host_shared; host_shared=$enableval
8637  case $host in
8638    x86_64-*-darwin* | aarch64-*-darwin*)
8639      if test x$host_shared != xyes ; then
8640        # PIC is the default, and actually cannot be switched off.
8641        echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8642        host_shared=yes
8643      fi ;;
8644   *) ;;
8645  esac
8646 else
8647   case $host in
8648   x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8649   *) host_shared=no ;;
8650  esac
8651 fi
8652
8653
8654
8655 # By default, C and C++ are the only stage 1 languages.
8656 stage1_languages=,c,
8657
8658 # Target libraries that we bootstrap.
8659 bootstrap_target_libs=,target-libgcc,
8660
8661 # Figure out what language subdirectories are present.
8662 # Look if the user specified --enable-languages="..."; if not, use
8663 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8664 # go away some day.
8665 # NB:  embedded tabs in this IF block -- do not untabify
8666 if test -d ${srcdir}/gcc; then
8667   if test x"${enable_languages+set}" != xset; then
8668     if test x"${LANGUAGES+set}" = xset; then
8669       enable_languages="${LANGUAGES}"
8670         echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8671     else
8672       enable_languages=default
8673     fi
8674   else
8675     if test x"${enable_languages}" = x ||
8676        test x"${enable_languages}" = xyes;
8677        then
8678       echo configure.ac: --enable-languages needs at least one language argument 1>&2
8679       exit 1
8680     fi
8681   fi
8682   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
8683
8684   # 'f95' is the old name for the 'fortran' language. We issue a warning
8685   # and make the substitution.
8686   case ,${enable_languages}, in
8687     *,f95,*)
8688       echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8689       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8690       ;;
8691   esac
8692
8693   # If bootstrapping, C++ must be enabled.
8694   case ",$enable_languages,:$enable_bootstrap" in
8695     *,c++,*:*) ;;
8696     *:yes)
8697       if test -f ${srcdir}/gcc/cp/config-lang.in; then
8698         enable_languages="${enable_languages},c++"
8699       else
8700         as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8701       fi
8702       ;;
8703   esac
8704
8705   # First scan to see if an enabled language requires some other language.
8706   # We assume that a given config-lang.in will list all the language
8707   # front ends it requires, even if some are required indirectly.
8708   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8709     case ${lang_frag} in
8710       ..) ;;
8711       # The odd quoting in the next line works around
8712       # an apparent bug in bash 1.12 on linux.
8713       ${srcdir}/gcc/[*]/config-lang.in) ;;
8714       *)
8715         # From the config-lang.in, get $language, $lang_requires, and
8716         # $lang_requires_boot_languages.
8717         language=
8718         lang_requires=
8719         lang_requires_boot_languages=
8720         # set srcdir during sourcing lang_frag to the gcc dir.
8721         # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8722         # polutes this shell
8723         saved_srcdir=${srcdir}
8724         srcdir=${srcdir}/gcc . ${lang_frag}
8725         srcdir=${saved_srcdir}
8726         for other in ${lang_requires} ${lang_requires_boot_languages}; do
8727           case ,${enable_languages}, in
8728             *,$other,*) ;;
8729             *,default,*) ;;
8730             *,all,*) ;;
8731             *,$language,*)
8732               echo " \`$other' language required by \`$language'; enabling" 1>&2
8733               enable_languages="${enable_languages},${other}"
8734               ;;
8735           esac
8736         done
8737         for other in ${lang_requires_boot_languages} ; do
8738           if test "$other" != "c"; then
8739             case ,${enable_stage1_languages}, in
8740               *,$other,*) ;;
8741               *,default,*) ;;
8742               *,all,*) ;;
8743               *)
8744                 case ,${enable_languages}, in
8745                   *,$language,*)
8746                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8747                     enable_stage1_languages="$enable_stage1_languages,${other}"
8748                     ;;
8749                 esac
8750                 ;;
8751             esac
8752           fi
8753         done
8754         ;;
8755     esac
8756   done
8757
8758   new_enable_languages=,c,
8759
8760   # If LTO is enabled, add the LTO front end.
8761   if test "$enable_lto" = "yes" ; then
8762     case ,${enable_languages}, in
8763       *,lto,*) ;;
8764       *) enable_languages="${enable_languages},lto" ;;
8765     esac
8766     if test "${build_lto_plugin}" = "yes" ; then
8767       configdirs="$configdirs lto-plugin"
8768     fi
8769   fi
8770
8771   # If we're building an offloading compiler, add the LTO front end.
8772   if test x"$enable_as_accelerator_for" != x ; then
8773     case ,${enable_languages}, in
8774       *,lto,*) ;;
8775       *) enable_languages="${enable_languages},lto" ;;
8776     esac
8777   fi
8778
8779   missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8780   potential_languages=,c,
8781
8782   enabled_target_libs=
8783   disabled_target_libs=
8784
8785   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8786     case ${lang_frag} in
8787       ..) ;;
8788       # The odd quoting in the next line works around
8789       # an apparent bug in bash 1.12 on linux.
8790       ${srcdir}/gcc/[*]/config-lang.in) ;;
8791       *)
8792         # From the config-lang.in, get $language, $target_libs,
8793         # $lang_dirs, $boot_language, and $build_by_default
8794         language=
8795         target_libs=
8796         lang_dirs=
8797         subdir_requires=
8798         boot_language=no
8799         build_by_default=yes
8800         # set srcdir during sourcing.  See above about save & restore
8801         saved_srcdir=${srcdir}
8802         srcdir=${srcdir}/gcc . ${lang_frag}
8803         srcdir=${saved_srcdir}
8804         if test x${language} = x; then
8805           echo "${lang_frag} doesn't set \$language." 1>&2
8806           exit 1
8807         fi
8808
8809         if test "$language" = "c++"; then
8810           boot_language=yes
8811         fi
8812
8813         add_this_lang=no
8814         # C is always enabled, so no need to add it again
8815         if test "$language" != "c"; then
8816           case ,${enable_languages}, in
8817             *,${language},*)
8818               # Language was explicitly selected; include it
8819               add_this_lang=yes
8820               ;;
8821             *,all,*)
8822               # All languages are enabled
8823               add_this_lang=all
8824               ;;
8825             *,default,*)
8826               # 'default' was selected, select it if it is a default language
8827               add_this_lang=${build_by_default}
8828               ;;
8829           esac
8830         fi
8831
8832         # Disable languages that need other directories if these aren't available.
8833         for i in $subdir_requires; do
8834           test -f "$srcdir/gcc/$i/config-lang.in" && continue
8835           case ${add_this_lang} in
8836             yes)
8837               # Specifically requested language; tell them.
8838               as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8839               ;;
8840             all)
8841               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8842 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8843               add_this_lang=unsupported
8844               ;;
8845             *)
8846               # Silently disable.
8847               add_this_lang=unsupported
8848               ;;
8849           esac
8850         done
8851
8852         # Disable Ada if no preexisting GNAT is available.
8853         case ${add_this_lang}:${language}:${have_gnat} in
8854           yes:ada:no)
8855             # Specifically requested language; tell them.
8856             as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8857             ;;
8858           all:ada:no)
8859             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8860 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8861             add_this_lang=unsupported
8862             ;;
8863           *:ada:no)
8864             # Silently disable.
8865             add_this_lang=unsupported
8866             ;;
8867         esac
8868
8869         # Disable D if no preexisting GDC is available.
8870         case ${add_this_lang}:${language}:${have_gdc} in
8871           yes:d:no)
8872             # Specifically requested language; tell them.
8873             as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8874            ;;
8875           all:d:no)
8876             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8877 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8878             add_this_lang=unsupported
8879             ;;
8880           *:d:no)
8881             # Silently disable.
8882             add_this_lang=unsupported
8883             ;;
8884         esac
8885
8886         # Disable jit if -enable-host-shared not specified
8887         # but not if building for Mingw. All code in Windows
8888         # is position independent code (PIC).
8889         case $target in
8890           *mingw*) ;;
8891           *)
8892           case ${add_this_lang}:${language}:${host_shared} in
8893             yes:jit:no)
8894                    # PR jit/64780: explicitly specify --enable-host-shared
8895             as_fn_error $? "
8896 Enabling language \"jit\" requires --enable-host-shared.
8897
8898 --enable-host-shared typically slows the rest of the compiler down by
8899 a few %, so you must explicitly enable it.
8900
8901 If you want to build both the jit and the regular compiler, it is often
8902 best to do this via two separate configure/builds, in separate
8903 directories, to avoid imposing the performance cost of
8904 --enable-host-shared on the regular compiler." "$LINENO" 5
8905                     ;;
8906             all:jit:no)
8907               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8908 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8909               add_this_lang=unsupported
8910               ;;
8911             *:jit:no)
8912               # Silently disable.
8913               add_this_lang=unsupported
8914               ;;
8915                 esac
8916           ;;
8917         esac
8918
8919         # Disable a language that is unsupported by the target.
8920         case "${add_this_lang}: $unsupported_languages " in
8921           no:*) ;;
8922           unsupported:*) ;;
8923           *:*" $language "*)
8924             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8925 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8926             add_this_lang=unsupported
8927             ;;
8928         esac
8929
8930         case $add_this_lang in
8931           unsupported)
8932             # Remove language-dependent dirs.
8933             disabled_target_libs="$disabled_target_libs $target_libs"
8934             noconfigdirs="$noconfigdirs $lang_dirs"
8935             ;;
8936           no)
8937             # Remove language-dependent dirs; still show language as supported.
8938             disabled_target_libs="$disabled_target_libs $target_libs"
8939             noconfigdirs="$noconfigdirs $lang_dirs"
8940             potential_languages="${potential_languages}${language},"
8941             ;;
8942           all|yes)
8943             new_enable_languages="${new_enable_languages}${language},"
8944             potential_languages="${potential_languages}${language},"
8945             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8946             enabled_target_libs="$enabled_target_libs $target_libs"
8947             case "${boot_language}:,$enable_stage1_languages," in
8948               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8949                 # Add to (comma-separated) list of stage 1 languages.
8950                 case ",$stage1_languages," in
8951                   *,$language,* | ,yes, | ,all,) ;;
8952                   *) stage1_languages="${stage1_languages}${language}," ;;
8953                 esac
8954                 # We need to bootstrap any supporting libraries.
8955                 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8956                 ;;
8957             esac
8958             ;;
8959         esac
8960         ;;
8961     esac
8962   done
8963
8964   # Add target libraries which are only needed for disabled languages
8965   # to noconfigdirs.
8966   if test -n "$disabled_target_libs"; then
8967     for dir in $disabled_target_libs; do
8968       case " $enabled_target_libs " in
8969       *" ${dir} "*) ;;
8970       *) noconfigdirs="$noconfigdirs $dir" ;;
8971       esac
8972     done
8973   fi
8974
8975   # Check whether --enable-stage1-languages was given.
8976 if test "${enable_stage1_languages+set}" = set; then :
8977   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8978     ,no,|,,)
8979       # Set it to something that will have no effect in the loop below
8980       enable_stage1_languages=c ;;
8981     ,yes,)
8982       enable_stage1_languages=`echo $new_enable_languages | \
8983         sed -e "s/^,//" -e "s/,$//" ` ;;
8984     *,all,*)
8985       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8986         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8987   esac
8988
8989   # Add "good" languages from enable_stage1_languages to stage1_languages,
8990   # while "bad" languages go in missing_languages.  Leave no duplicates.
8991   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8992     case $potential_languages in
8993       *,$i,*)
8994         case $stage1_languages in
8995           *,$i,*) ;;
8996           *) stage1_languages="$stage1_languages$i," ;;
8997         esac ;;
8998       *)
8999         case $missing_languages in
9000           *,$i,*) ;;
9001           *) missing_languages="$missing_languages$i," ;;
9002         esac ;;
9003      esac
9004   done
9005 fi
9006
9007
9008   # Remove leading/trailing commas that were added for simplicity
9009   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9010   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9011   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9012   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9013
9014   if test "x$missing_languages" != x; then
9015     as_fn_error $? "
9016 The following requested languages could not be built: ${missing_languages}
9017 Supported languages are: ${potential_languages}" "$LINENO" 5
9018   fi
9019   if test "x$new_enable_languages" != "x$enable_languages"; then
9020     echo The following languages will be built: ${new_enable_languages}
9021     enable_languages="$new_enable_languages"
9022   fi
9023
9024
9025   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9026 fi
9027
9028 # Handle --disable-<component> generically.
9029 for dir in $configdirs $build_configdirs $target_configdirs ; do
9030   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9031   varname=`echo $dirname | sed -e s/+/_/g`
9032   if eval test x\${enable_${varname}} "=" xno ; then
9033     noconfigdirs="$noconfigdirs $dir"
9034   fi
9035 done
9036
9037 # Check for Boehm's garbage collector
9038 # Check whether --enable-objc-gc was given.
9039 if test "${enable_objc_gc+set}" = set; then :
9040   enableval=$enable_objc_gc;
9041 fi
9042
9043
9044 # Check whether --with-target-bdw-gc was given.
9045 if test "${with_target_bdw_gc+set}" = set; then :
9046   withval=$with_target_bdw_gc;
9047 fi
9048
9049
9050 # Check whether --with-target-bdw-gc-include was given.
9051 if test "${with_target_bdw_gc_include+set}" = set; then :
9052   withval=$with_target_bdw_gc_include;
9053 fi
9054
9055
9056 # Check whether --with-target-bdw-gc-lib was given.
9057 if test "${with_target_bdw_gc_lib+set}" = set; then :
9058   withval=$with_target_bdw_gc_lib;
9059 fi
9060
9061
9062 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9064 $as_echo_n "checking for bdw garbage collector... " >&6; }
9065   if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9066         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9067 $as_echo "using bdw-gc in default locations" >&6; }
9068   else
9069         if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9070       as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9071     elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9072       as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9073     else
9074       { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9075 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9076     fi
9077   fi
9078 esac
9079
9080 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9081 case ,${enable_languages}, in
9082   *,c++,*)
9083     # Disable libitm, libsanitizer if we're not building libstdc++
9084     case "${noconfigdirs}" in
9085       *target-libstdc++-v3*)
9086         noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9087         ;;
9088       *) ;;
9089     esac
9090     ;;
9091   *)
9092     noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9093     ;;
9094 esac
9095
9096 # If gcc/ is not in the source tree then we'll not be building a
9097 # target compiler, assume in that case we don't want to build any
9098 # target libraries or tools.
9099 #
9100 # This was added primarily for the benefit for binutils-gdb who reuse
9101 # this configure script, but don't always have target tools available.
9102 if test ! -d ${srcdir}/gcc; then
9103    skipdirs="${skipdirs} ${target_configdirs}"
9104 fi
9105
9106 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9107 # $build_configdirs and $target_configdirs.
9108 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9109
9110 notsupp=""
9111 for dir in . $skipdirs $noconfigdirs ; do
9112   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9113   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9114     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9115     if test -r $srcdir/$dirname/configure ; then
9116       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9117         true
9118       else
9119         notsupp="$notsupp $dir"
9120       fi
9121     fi
9122   fi
9123   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9124     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9125     if test -r $srcdir/$dirname/configure ; then
9126       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9127         true
9128       else
9129         notsupp="$notsupp $dir"
9130       fi
9131     fi
9132   fi
9133   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9134     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9135     if test -r $srcdir/$dirname/configure ; then
9136       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9137         true
9138       else
9139         notsupp="$notsupp $dir"
9140       fi
9141     fi
9142   fi
9143 done
9144
9145 # Quietly strip out all directories which aren't configurable in this tree.
9146 # This relies on all configurable subdirectories being autoconfiscated, which
9147 # is now the case.
9148 build_configdirs_all="$build_configdirs"
9149 build_configdirs=
9150 for i in ${build_configdirs_all} ; do
9151   j=`echo $i | sed -e s/build-//g`
9152   if test -f ${srcdir}/$j/configure ; then
9153     build_configdirs="${build_configdirs} $i"
9154   fi
9155 done
9156
9157 configdirs_all="$configdirs"
9158 configdirs=
9159 for i in ${configdirs_all} ; do
9160   if test -f ${srcdir}/$i/configure ; then
9161     configdirs="${configdirs} $i"
9162   fi
9163 done
9164
9165 target_configdirs_all="$target_configdirs"
9166 target_configdirs=
9167 for i in ${target_configdirs_all} ; do
9168   j=`echo $i | sed -e s/target-//g`
9169   if test -f ${srcdir}/$j/configure ; then
9170     target_configdirs="${target_configdirs} $i"
9171   fi
9172 done
9173
9174 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9175 # so we have to add it after the preceding checks.
9176 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9177 then
9178   case " $configdirs " in
9179     *" libiberty "*)
9180       # If we can build libiberty, we can also build libiberty-linker-plugin.
9181       configdirs="$configdirs libiberty-linker-plugin"
9182       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9183         --with-libiberty=../libiberty-linker-plugin";;
9184     *)
9185       as_fn_error $? "libiberty missing" "$LINENO" 5;;
9186   esac
9187 fi
9188
9189 # Sometimes we have special requirements for the host libiberty.
9190 extra_host_libiberty_configure_flags=
9191 case " $configdirs " in
9192   *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9193     # When these are to be built as shared libraries, the same applies to
9194     # libiberty.
9195     extra_host_libiberty_configure_flags=--enable-shared
9196     ;;
9197 esac
9198
9199
9200 # Sometimes we have special requirements for the host zlib.
9201 extra_host_zlib_configure_flags=
9202 case " $configdirs " in
9203   *" bfd "*)
9204     # When bfd is to be built as a shared library, the same applies to
9205     # zlib.
9206     if test "$enable_shared" = "yes"; then
9207       extra_host_zlib_configure_flags=--enable-host-shared
9208     fi
9209     ;;
9210 esac
9211
9212
9213 # Produce a warning message for the subdirs we can't configure.
9214 # This isn't especially interesting in the Cygnus tree, but in the individual
9215 # FSF releases, it's important to let people know when their machine isn't
9216 # supported by the one or two programs in a package.
9217
9218 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9219   # If $appdirs is non-empty, at least one of those directories must still
9220   # be configured, or we error out.  (E.g., if the gas release supports a
9221   # specified target in some subdirs but not the gas subdir, we shouldn't
9222   # pretend that all is well.)
9223   if test -n "$appdirs" ; then
9224     for dir in $appdirs ; do
9225       if test -r $dir/Makefile.in ; then
9226         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9227           appdirs=""
9228           break
9229         fi
9230         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9231           appdirs=""
9232           break
9233         fi
9234       fi
9235     done
9236     if test -n "$appdirs" ; then
9237       echo "*** This configuration is not supported by this package." 1>&2
9238       exit 1
9239     fi
9240   fi
9241   # Okay, some application will build, or we don't care to check.  Still
9242   # notify of subdirs not getting built.
9243   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9244   echo "    ${notsupp}" 1>&2
9245   echo "    (Any other directories should still work fine.)" 1>&2
9246 fi
9247
9248 case "$host" in
9249   *msdosdjgpp*)
9250     enable_gdbtk=no ;;
9251 esac
9252
9253 # To find our prefix, in gcc_cv_tool_prefix.
9254
9255 # The user is always right.
9256 if test "${PATH_SEPARATOR+set}" != set; then
9257   echo "#! /bin/sh" >conf$$.sh
9258   echo  "exit 0"   >>conf$$.sh
9259   chmod +x conf$$.sh
9260   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9261     PATH_SEPARATOR=';'
9262   else
9263     PATH_SEPARATOR=:
9264   fi
9265   rm -f conf$$.sh
9266 fi
9267
9268
9269   get_gcc_base_ver="cat"
9270
9271 # Check whether --with-gcc-major-version-only was given.
9272 if test "${with_gcc_major_version_only+set}" = set; then :
9273   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9274         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9275       fi
9276
9277 fi
9278
9279
9280
9281
9282
9283
9284 if test "x$exec_prefix" = xNONE; then
9285         if test "x$prefix" = xNONE; then
9286                 gcc_cv_tool_prefix=$ac_default_prefix
9287         else
9288                 gcc_cv_tool_prefix=$prefix
9289         fi
9290 else
9291         gcc_cv_tool_prefix=$exec_prefix
9292 fi
9293
9294 # If there is no compiler in the tree, use the PATH only.  In any
9295 # case, if there is no compiler in the tree nobody should use
9296 # AS_FOR_TARGET and LD_FOR_TARGET.
9297 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9298     if test x$with_gcc_major_version_only = xyes ; then
9299                 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9300             else
9301         gcc_version=`cat $srcdir/gcc/BASE-VER`
9302     fi
9303     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9304     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9305     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9306     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9307     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9308     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9309 else
9310     gcc_cv_tool_dirs=
9311 fi
9312
9313 if test x$build = x$target && test -n "$md_exec_prefix"; then
9314         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9315 fi
9316
9317
9318
9319 copy_dirs=
9320
9321
9322 # Check whether --with-build-sysroot was given.
9323 if test "${with_build_sysroot+set}" = set; then :
9324   withval=$with_build_sysroot; if test x"$withval" != x ; then
9325      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9326    fi
9327 else
9328   SYSROOT_CFLAGS_FOR_TARGET=
9329 fi
9330
9331
9332
9333
9334 # Check whether --with-debug-prefix-map was given.
9335 if test "${with_debug_prefix_map+set}" = set; then :
9336   withval=$with_debug_prefix_map; if test x"$withval" != x; then
9337      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9338      for debug_map in $withval; do
9339        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9340      done
9341    fi
9342 else
9343   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9344 fi
9345
9346
9347
9348 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9349 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
9350 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9351 # We want to ensure that TARGET libraries (which we know are built with
9352 # gcc) are built with "-O2 -g", so include those options when setting
9353 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9354 if test "x$CFLAGS_FOR_TARGET" = x; then
9355   if test "x${is_cross_compiler}" = xyes; then
9356     CFLAGS_FOR_TARGET="-g -O2"
9357   else
9358     CFLAGS_FOR_TARGET=$CFLAGS
9359     case " $CFLAGS " in
9360       *" -O2 "*) ;;
9361       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9362     esac
9363     case " $CFLAGS " in
9364       *" -g "* | *" -g3 "*) ;;
9365       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9366     esac
9367   fi
9368 fi
9369
9370
9371 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9372   if test "x${is_cross_compiler}" = xyes; then
9373     CXXFLAGS_FOR_TARGET="-g -O2"
9374   else
9375     CXXFLAGS_FOR_TARGET=$CXXFLAGS
9376     case " $CXXFLAGS " in
9377       *" -O2 "*) ;;
9378       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9379     esac
9380     case " $CXXFLAGS " in
9381       *" -g "* | *" -g3 "*) ;;
9382       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9383     esac
9384   fi
9385 fi
9386
9387
9388
9389
9390 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
9391 # the named directory are copied to $(tooldir)/sys-include.
9392 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9393   if test x${is_cross_compiler} = xno ; then
9394     echo 1>&2 '***' --with-headers is only supported when cross compiling
9395     exit 1
9396   fi
9397   if test x"${with_headers}" != xyes ; then
9398     x=${gcc_cv_tool_prefix}
9399     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9400   fi
9401 fi
9402
9403 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
9404 # the name directories are copied to $(tooldir)/lib.  Multiple directories
9405 # are permitted.
9406 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9407   if test x${is_cross_compiler} = xno ; then
9408     echo 1>&2 '***' --with-libs is only supported when cross compiling
9409     exit 1
9410   fi
9411   if test x"${with_libs}" != xyes ; then
9412     # Copy the libraries in reverse order, so that files in the first named
9413     # library override files in subsequent libraries.
9414     x=${gcc_cv_tool_prefix}
9415     for l in ${with_libs}; do
9416       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9417     done
9418   fi
9419 fi
9420
9421 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9422 #
9423 # This is done by determining whether or not the appropriate directory
9424 # is available, and by checking whether or not specific configurations
9425 # have requested that this magic not happen.
9426 #
9427 # The command line options always override the explicit settings in
9428 # configure.ac, and the settings in configure.ac override this magic.
9429 #
9430 # If the default for a toolchain is to use GNU as and ld, and you don't
9431 # want to do that, then you should use the --without-gnu-as and
9432 # --without-gnu-ld options for the configure script.  Similarly, if
9433 # the default is to use the included zlib and you don't want to do that,
9434 # you should use the --with-system-zlib option for the configure script.
9435
9436 if test x${use_gnu_as} = x &&
9437    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9438   with_gnu_as=yes
9439   extra_host_args="$extra_host_args --with-gnu-as"
9440 fi
9441
9442 if test x${use_gnu_ld} = x &&
9443    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9444   with_gnu_ld=yes
9445   extra_host_args="$extra_host_args --with-gnu-ld"
9446 fi
9447
9448 if test x${use_included_zlib} = x &&
9449    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9450   :
9451 else
9452   with_system_zlib=yes
9453   extra_host_args="$extra_host_args --with-system-zlib"
9454 fi
9455
9456 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9457 # can detect this case.
9458
9459 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9460   with_newlib=yes
9461   extra_host_args="$extra_host_args --with-newlib"
9462 fi
9463
9464 # Handle ${copy_dirs}
9465 set fnord ${copy_dirs}
9466 shift
9467 while test $# != 0 ; do
9468   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9469     :
9470   else
9471     echo Copying $1 to $2
9472
9473     # Use the install script to create the directory and all required
9474     # parent directories.
9475     if test -d $2 ; then
9476       :
9477     else
9478       echo >config.temp
9479       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9480     fi
9481
9482     # Copy the directory, assuming we have tar.
9483     # FIXME: Should we use B in the second tar?  Not all systems support it.
9484     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9485
9486     # It is the responsibility of the user to correctly adjust all
9487     # symlinks.  If somebody can figure out how to handle them correctly
9488     # here, feel free to add the code.
9489
9490     echo $1 > $2/COPIED
9491   fi
9492   shift; shift
9493 done
9494
9495 # Determine a target-dependent exec_prefix that the installed
9496 # gcc will search in.  Keep this list sorted by triplet, with
9497 # the *-*-osname triplets last.
9498 md_exec_prefix=
9499 case "${target}" in
9500   i[34567]86-pc-msdosdjgpp*)
9501     md_exec_prefix=/dev/env/DJDIR/bin
9502     ;;
9503   *-*-hpux* | \
9504   *-*-nto-qnx* | \
9505   *-*-solaris2*)
9506     md_exec_prefix=/usr/ccs/bin
9507     ;;
9508 esac
9509
9510 extra_arflags_for_target=
9511 extra_nmflags_for_target=
9512 extra_ranlibflags_for_target=
9513 target_makefile_frag=/dev/null
9514 case "${target}" in
9515   spu-*-*)
9516     target_makefile_frag="config/mt-spu"
9517     ;;
9518   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9519     target_makefile_frag="config/mt-sde"
9520     ;;
9521   mipsisa*-*-elfoabi*)
9522     target_makefile_frag="config/mt-mips-elfoabi"
9523     ;;
9524   mips*-*-*linux* | mips*-*-gnu*)
9525     target_makefile_frag="config/mt-mips-gnu"
9526     ;;
9527   nios2-*-elf*)
9528     target_makefile_frag="config/mt-nios2-elf"
9529     ;;
9530   *-*-linux-android*)
9531     target_makefile_frag="config/mt-android"
9532     ;;
9533   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9534     target_makefile_frag="config/mt-gnu"
9535     ;;
9536   *-*-aix4.[3456789]* | *-*-aix[56789].*)
9537     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9538     # commands to handle both 32-bit and 64-bit objects.  These flags are
9539     # harmless if we're using GNU nm or ar.
9540     extra_arflags_for_target=" -X32_64"
9541     extra_nmflags_for_target=" -B -X32_64"
9542     ;;
9543 esac
9544
9545 alphaieee_frag=/dev/null
9546 case $target in
9547   alpha*-*-*)
9548     # This just makes sure to use the -mieee option to build target libs.
9549     # This should probably be set individually by each library.
9550     alphaieee_frag="config/mt-alphaieee"
9551     ;;
9552 esac
9553
9554 # If --enable-target-optspace always use -Os instead of -O2 to build
9555 # the target libraries, similarly if it is not specified, use -Os
9556 # on selected platforms.
9557 ospace_frag=/dev/null
9558 case "${enable_target_optspace}:${target}" in
9559   yes:*)
9560     ospace_frag="config/mt-ospace"
9561     ;;
9562   :d30v-*)
9563     ospace_frag="config/mt-d30v"
9564     ;;
9565   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9566     ospace_frag="config/mt-ospace"
9567     ;;
9568   no:* | :*)
9569     ;;
9570   *)
9571     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9572     ;;
9573 esac
9574
9575 # Some systems (e.g., one of the i386-aix systems the gas testers are
9576 # using) don't handle "\$" correctly, so don't use it here.
9577 tooldir='${exec_prefix}'/${target_noncanonical}
9578 build_tooldir=${tooldir}
9579
9580 # Create a .gdbinit file which runs the one in srcdir
9581 # and tells GDB to look there for source files.
9582
9583 if test -r ${srcdir}/.gdbinit ; then
9584   case ${srcdir} in
9585     .) ;;
9586     *) cat > ./.gdbinit <<EOF
9587 # ${NO_EDIT}
9588 dir ${srcdir}
9589 dir .
9590 source ${srcdir}/.gdbinit
9591 EOF
9592     ;;
9593   esac
9594 fi
9595
9596 # Make sure that the compiler is able to generate an executable.  If it
9597 # can't, we are probably in trouble.  We don't care whether we can run the
9598 # executable--we might be using a cross compiler--we only care whether it
9599 # can be created.  At this point the main configure script has set CC.
9600 we_are_ok=no
9601 echo "int main () { return 0; }" > conftest.c
9602 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9603 if test $? = 0 ; then
9604   if test -s conftest || test -s conftest.exe ; then
9605     we_are_ok=yes
9606   fi
9607 fi
9608 case $we_are_ok in
9609   no)
9610     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9611     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9612     rm -f conftest*
9613     exit 1
9614     ;;
9615 esac
9616 rm -f conftest*
9617
9618 # Decide which environment variable is used to find dynamic libraries.
9619 case "${host}" in
9620   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9621   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9622   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9623   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9624 esac
9625
9626 # On systems where the dynamic library environment variable is PATH,
9627 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9628 # built executables to PATH.
9629 if test "$RPATH_ENVVAR" = PATH; then
9630   GCC_SHLIB_SUBDIR=/shlib
9631 else
9632   GCC_SHLIB_SUBDIR=
9633 fi
9634
9635 # Adjust the toplevel makefile according to whether bootstrap was selected.
9636 case $enable_bootstrap in
9637   yes)
9638     bootstrap_suffix=bootstrap
9639     BUILD_CONFIG=bootstrap-debug
9640     ;;
9641   no)
9642     bootstrap_suffix=no-bootstrap
9643     BUILD_CONFIG=
9644     ;;
9645 esac
9646
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9648 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9649
9650
9651 # Check whether --with-build-config was given.
9652 if test "${with_build_config+set}" = set; then :
9653   withval=$with_build_config; case $with_build_config in
9654    yes) with_build_config= ;;
9655    no) with_build_config= BUILD_CONFIG= ;;
9656    esac
9657 fi
9658
9659
9660 if test "x${with_build_config}" != x; then
9661   BUILD_CONFIG=$with_build_config
9662 else
9663   case $BUILD_CONFIG in
9664   bootstrap-debug)
9665     if echo "int f (void) { return 0; }" > conftest.c &&
9666        ${CC} -c conftest.c &&
9667        mv conftest.o conftest.o.g0 &&
9668        ${CC} -c -g conftest.c &&
9669        mv conftest.o conftest.o.g &&
9670        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9671       :
9672     else
9673       BUILD_CONFIG=
9674     fi
9675     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9676     ;;
9677   esac
9678 fi
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9680 $as_echo "$BUILD_CONFIG" >&6; }
9681
9682
9683 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9685 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9686 # Check whether --enable-vtable-verify was given.
9687 if test "${enable_vtable_verify+set}" = set; then :
9688   enableval=$enable_vtable_verify; case "$enableval" in
9689  yes) enable_vtable_verify=yes ;;
9690  no)  enable_vtable_verify=no ;;
9691  *)   enable_vtable_verify=no;;
9692  esac
9693 else
9694   enable_vtable_verify=no
9695 fi
9696
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9698 $as_echo "$enable_vtable_verify" >&6; }
9699
9700 # Record target_configdirs and the configure arguments for target and
9701 # build configuration in Makefile.
9702 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9703 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9704 bootstrap_fixincludes=no
9705
9706 # If we are building libgomp, bootstrap it.
9707 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9708   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9709 fi
9710
9711 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9712 # or bootstrap-ubsan, bootstrap it.
9713 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9714   case "$BUILD_CONFIG" in
9715     *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9716       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9717       bootstrap_fixincludes=yes
9718       ;;
9719   esac
9720 fi
9721
9722 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9723 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9724    test "$enable_vtable_verify" != no; then
9725   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9726 fi
9727
9728 # If we are building libatomic and the list of enabled languages includes the
9729 # D frontend, bootstrap it.
9730 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9731   case ,${enable_languages}, in
9732     *,d,*)
9733       bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9734       ;;
9735   esac
9736 fi
9737
9738 # Determine whether gdb needs tk/tcl or not.
9739 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9740 # and in that case we want gdb to be built without tk.  Ugh!
9741 # In fact I believe gdb is the *only* package directly dependent on tk,
9742 # so we should be able to put the 'maybe's in unconditionally and
9743 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
9744 # 100% sure that that's safe though.
9745
9746 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9747 case "$enable_gdbtk" in
9748   no)
9749     GDB_TK="" ;;
9750   yes)
9751     GDB_TK="${gdb_tk}" ;;
9752   *)
9753     # Only add the dependency on gdbtk when GDBtk is part of the gdb
9754     # distro.  Eventually someone will fix this and move Insight, nee
9755     # gdbtk to a separate directory.
9756     if test -d ${srcdir}/gdb/gdbtk ; then
9757       GDB_TK="${gdb_tk}"
9758     else
9759       GDB_TK=""
9760     fi
9761     ;;
9762 esac
9763 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9764 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9765
9766 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9767 # else does, only include them if one of these is built.  The Makefile
9768 # provides the ordering, so it's enough here to add to the list.
9769 case " ${configdirs} " in
9770   *\ gdb\ *)
9771     configdirs="${configdirs} gnulib gdbsupport"
9772     ;;
9773   *\ gdbserver\ *)
9774     configdirs="${configdirs} gnulib gdbsupport"
9775     ;;
9776   *\ sim\ *)
9777     configdirs="${configdirs} gnulib"
9778     ;;
9779 esac
9780
9781 # Strip out unwanted targets.
9782
9783 # While at that, we remove Makefiles if we were started for recursive
9784 # configuration, so that the top-level Makefile reconfigures them,
9785 # like we used to do when configure itself was recursive.
9786
9787 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
9788 # but now we're fixing up the Makefile ourselves with the additional
9789 # commands passed to AC_CONFIG_FILES.  Use separate variables
9790 # extrasub-{build,host,target} not because there is any reason to split
9791 # the substitutions up that way, but only to remain below the limit of
9792 # 99 commands in a script, for HP-UX sed.
9793
9794 # Do not nest @if/@endif or @unless/@endunless pairs, because
9795 # configure will not warn you at all.
9796
9797 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9798   yes:yes:*\ gold\ *:*,c++,*) ;;
9799   yes:yes:*\ gold\ *:*)
9800     as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9801     ;;
9802 esac
9803
9804 extrasub_build=
9805 for module in ${build_configdirs} ; do
9806   if test -z "${no_recursion}" \
9807      && test -f ${build_subdir}/${module}/Makefile; then
9808     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9809     rm -f ${build_subdir}/${module}/Makefile
9810   fi
9811   extrasub_build="$extrasub_build
9812 /^@if build-$module\$/d
9813 /^@endif build-$module\$/d
9814 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9815 /^@if build-$module-$bootstrap_suffix\$/d
9816 /^@endif build-$module-$bootstrap_suffix\$/d
9817 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9818 done
9819 extrasub_host=
9820 for module in ${configdirs} ; do
9821   if test -z "${no_recursion}"; then
9822     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9823       if test -f ${file}; then
9824         echo 1>&2 "*** removing ${file} to force reconfigure"
9825         rm -f ${file}
9826       fi
9827     done
9828   fi
9829   case ${module},${bootstrap_fixincludes} in
9830     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9831     *) host_bootstrap_suffix=$bootstrap_suffix ;;
9832   esac
9833   extrasub_host="$extrasub_host
9834 /^@if $module\$/d
9835 /^@endif $module\$/d
9836 /^@unless $module\$/,/^@endunless $module\$/d
9837 /^@if $module-$host_bootstrap_suffix\$/d
9838 /^@endif $module-$host_bootstrap_suffix\$/d
9839 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9840 done
9841 extrasub_target=
9842 for module in ${target_configdirs} ; do
9843   if test -z "${no_recursion}" \
9844      && test -f ${target_subdir}/${module}/Makefile; then
9845     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9846     rm -f ${target_subdir}/${module}/Makefile
9847   fi
9848
9849   # We only bootstrap target libraries listed in bootstrap_target_libs.
9850   case $bootstrap_target_libs in
9851     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9852     *) target_bootstrap_suffix=no-bootstrap ;;
9853   esac
9854
9855   extrasub_target="$extrasub_target
9856 /^@if target-$module\$/d
9857 /^@endif target-$module\$/d
9858 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9859 /^@if target-$module-$target_bootstrap_suffix\$/d
9860 /^@endif target-$module-$target_bootstrap_suffix\$/d
9861 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9862 done
9863
9864 # Do the final fixup along with target modules.
9865 extrasub_target="$extrasub_target
9866 /^@if /,/^@endif /d
9867 /^@unless /d
9868 /^@endunless /d"
9869
9870 if test "$enable_pgo_build" != "no"; then
9871   extrasub_build="$extrasub_build
9872 /^@if pgo-build\$/d
9873 /^@endif pgo-build\$/d"
9874 fi
9875
9876 # Create the serialization dependencies.  This uses a temporary file.
9877
9878 # Check whether --enable-serial-configure was given.
9879 if test "${enable_serial_configure+set}" = set; then :
9880   enableval=$enable_serial_configure;
9881 fi
9882
9883
9884 case ${enable_serial_configure} in
9885   yes)
9886     enable_serial_build_configure=yes
9887     enable_serial_host_configure=yes
9888     enable_serial_target_configure=yes
9889     ;;
9890 esac
9891
9892 # These force 'configure's to be done one at a time, to avoid problems
9893 # with contention over a shared config.cache.
9894 rm -f serdep.tmp
9895 echo '# serdep.tmp' > serdep.tmp
9896 olditem=
9897 test "x${enable_serial_build_configure}" = xyes &&
9898 for item in ${build_configdirs} ; do
9899   case ${olditem} in
9900     "") ;;
9901     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9902   esac
9903   olditem=${item}
9904 done
9905 olditem=
9906 test "x${enable_serial_host_configure}" = xyes &&
9907 for item in ${configdirs} ; do
9908   case ${olditem} in
9909     "") ;;
9910     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9911   esac
9912   olditem=${item}
9913 done
9914 olditem=
9915 test "x${enable_serial_target_configure}" = xyes &&
9916 for item in ${target_configdirs} ; do
9917   case ${olditem} in
9918     "") ;;
9919     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9920   esac
9921   olditem=${item}
9922 done
9923 serialization_dependencies=serdep.tmp
9924
9925
9926 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
9927 # target, nonopt, and variable assignments.  These are the ones we
9928 # might not want to pass down to subconfigures.  The exception being
9929 # --cache-file=/dev/null, which is used to turn off the use of cache
9930 # files altogether, and which should be passed on to subconfigures.
9931 # Also strip program-prefix, program-suffix, and program-transform-name,
9932 # so that we can pass down a consistent program-transform-name.
9933 baseargs=
9934 tbaseargs=
9935 keep_next=no
9936 skip_next=no
9937 eval "set -- $ac_configure_args"
9938 for ac_arg
9939 do
9940   if test X"$skip_next" = X"yes"; then
9941     skip_next=no
9942     continue
9943   fi
9944   if test X"$keep_next" = X"yes"; then
9945     case $ac_arg in
9946       *\'*)
9947         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9948     esac
9949     baseargs="$baseargs '$ac_arg'"
9950     tbaseargs="$tbaseargs '$ac_arg'"
9951     keep_next=no
9952     continue
9953   fi
9954
9955   # Handle separated arguments.  Based on the logic generated by
9956   # autoconf 2.59.
9957   case $ac_arg in
9958     *=* | --config-cache | -C | -disable-* | --disable-* \
9959       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9960       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9961       | -with-* | --with-* | -without-* | --without-* | --x)
9962       separate_arg=no
9963       ;;
9964     -*)
9965       separate_arg=yes
9966       ;;
9967     *)
9968       separate_arg=no
9969       ;;
9970   esac
9971
9972   skip_targ=no
9973   case $ac_arg in
9974
9975   --with-* | --without-*)
9976     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9977
9978     case $libopt in
9979     *[-_]include)
9980       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9981       ;;
9982     *[-_]lib)
9983       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9984       ;;
9985     *)
9986       lib=$libopt
9987       ;;
9988     esac
9989
9990
9991     case $lib in
9992     mpc | mpfr | gmp | isl)
9993       # If we're processing --with-$lib, --with-$lib-include or
9994       # --with-$lib-lib, for one of the libs above, and target is
9995       # different from host, don't pass the current argument to any
9996       # target library's configure.
9997       if test x$is_cross_compiler = xyes; then
9998         skip_targ=yes
9999       fi
10000       ;;
10001     esac
10002     ;;
10003   esac
10004
10005   case "$ac_arg" in
10006     --cache-file=/dev/null | \
10007     -cache-file=/dev/null )
10008       # Handled here to avoid the test to skip args below.
10009       baseargs="$baseargs '$ac_arg'"
10010       tbaseargs="$tbaseargs '$ac_arg'"
10011       # Assert: $separate_arg should always be no.
10012       keep_next=$separate_arg
10013       ;;
10014     --no*)
10015       continue
10016       ;;
10017     --c* | \
10018     --sr* | \
10019     --ho* | \
10020     --bu* | \
10021     --t* | \
10022     --program-* | \
10023     -cache_file* | \
10024     -srcdir* | \
10025     -host* | \
10026     -build* | \
10027     -target* | \
10028     -program-prefix* | \
10029     -program-suffix* | \
10030     -program-transform-name* )
10031       skip_next=$separate_arg
10032       continue
10033       ;;
10034     -*)
10035       # An option.  Add it.
10036       case $ac_arg in
10037         *\'*)
10038           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10039       esac
10040       baseargs="$baseargs '$ac_arg'"
10041       if test X"$skip_targ" = Xno; then
10042         tbaseargs="$tbaseargs '$ac_arg'"
10043       fi
10044       keep_next=$separate_arg
10045       ;;
10046     *)
10047       # Either a variable assignment, or a nonopt (triplet).  Don't
10048       # pass it down; let the Makefile handle this.
10049       continue
10050       ;;
10051   esac
10052 done
10053 # Remove the initial space we just introduced and, as these will be
10054 # expanded by make, quote '$'.
10055 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10056
10057 # Add in --program-transform-name, after --program-prefix and
10058 # --program-suffix have been applied to it.  Autoconf has already
10059 # doubled dollar signs and backslashes in program_transform_name; we want
10060 # the backslashes un-doubled, and then the entire thing wrapped in single
10061 # quotes, because this will be expanded first by make and then by the shell.
10062 # Also, because we want to override the logic in subdir configure scripts to
10063 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10064 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10065 ${program_transform_name}
10066 EOF_SED
10067 gcc_transform_name=`cat conftestsed.out`
10068 rm -f conftestsed.out
10069 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10070 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10071 if test "$silent" = yes; then
10072   baseargs="$baseargs --silent"
10073   tbaseargs="$tbaseargs --silent"
10074 fi
10075 baseargs="$baseargs --disable-option-checking"
10076 tbaseargs="$tbaseargs --disable-option-checking"
10077
10078 # Record and document user additions to sub configure arguments.
10079
10080
10081
10082
10083 # For the build-side libraries, we just need to pretend we're native,
10084 # and not use the same cache file.  Multilibs are neither needed nor
10085 # desired.  We can't even use the same cache file for all build-side
10086 # libraries, as they're compiled differently; some with C, some with
10087 # C++ or with different feature-enabling options.
10088 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10089
10090 # For host modules, accept cache file option, or specification as blank.
10091 case "${cache_file}" in
10092 "") # empty
10093   cache_file_option="" ;;
10094 /* | [A-Za-z]:[\\/]* ) # absolute path
10095   cache_file_option="--cache-file=${cache_file}" ;;
10096 *) # relative path
10097   cache_file_option="--cache-file=../${cache_file}" ;;
10098 esac
10099
10100 # Host dirs don't like to share a cache file either, horribly enough.
10101 # This seems to be due to autoconf 2.5x stupidity.
10102 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10103
10104 target_configargs="$target_configargs ${tbaseargs}"
10105
10106 # Passing a --with-cross-host argument lets the target libraries know
10107 # whether they are being built with a cross-compiler or being built
10108 # native.  However, it would be better to use other mechanisms to make the
10109 # sorts of decisions they want to make on this basis.  Please consider
10110 # this option to be deprecated.  FIXME.
10111 if test x${is_cross_compiler} = xyes ; then
10112   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10113 fi
10114
10115 # Special user-friendly check for native x86_64-linux build, if
10116 # multilib is not explicitly enabled.
10117 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10118   x86_64-*linux*:yes:$build:$build:)
10119     # Make sure we have a development environment that handles 32-bit
10120     dev64=no
10121     echo "int main () { return 0; }" > conftest.c
10122     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10123     if test $? = 0 ; then
10124       if test -s conftest || test -s conftest.exe ; then
10125         dev64=yes
10126       fi
10127     fi
10128     rm -f conftest*
10129     if test x${dev64} != xyes ; then
10130       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
10131     fi
10132     ;;
10133 esac
10134
10135 # Default to --enable-multilib.
10136 if test x${enable_multilib} = x ; then
10137   target_configargs="--enable-multilib ${target_configargs}"
10138 fi
10139
10140 # Pass --with-newlib if appropriate.  Note that target_configdirs has
10141 # changed from the earlier setting of with_newlib.
10142 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10143   target_configargs="--with-newlib ${target_configargs}"
10144 fi
10145
10146 # Different target subdirs use different values of certain variables
10147 # (notably CXX).  Worse, multilibs use *lots* of different values.
10148 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10149 # it doesn't automatically accept command-line overrides of them.
10150 # This means it's not safe for target subdirs to share a cache file,
10151 # which is disgusting, but there you have it.  Hopefully this can be
10152 # fixed in future.  It's still worthwhile to use a cache file for each
10153 # directory.  I think.
10154
10155 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10156 # We need to pass --target, as newer autoconf's requires consistency
10157 # for target_alias and gcc doesn't manage it consistently.
10158 target_configargs="--cache-file=./config.cache ${target_configargs}"
10159
10160 FLAGS_FOR_TARGET=
10161 case " $target_configdirs " in
10162  *" newlib "*)
10163   case " $target_configargs " in
10164   *" --with-newlib "*)
10165    case "$target" in
10166     *-cygwin*)
10167       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10168       ;;
10169    esac
10170
10171    # If we're not building GCC, don't discard standard headers.
10172    if test -d ${srcdir}/gcc; then
10173      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10174
10175      if test "${build}" != "${host}"; then
10176        # On Canadian crosses, CC_FOR_TARGET will have already been set
10177        # by `configure', so we won't have an opportunity to add -Bgcc/
10178        # to it.  This is right: we don't want to search that directory
10179        # for binaries, but we want the header files in there, so add
10180        # them explicitly.
10181        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10182
10183        # Someone might think of using the pre-installed headers on
10184        # Canadian crosses, in case the installed compiler is not fully
10185        # compatible with the compiler being built.  In this case, it
10186        # would be better to flag an error than risking having
10187        # incompatible object files being constructed.  We can't
10188        # guarantee that an error will be flagged, but let's hope the
10189        # compiler will do it, when presented with incompatible header
10190        # files.
10191      fi
10192    fi
10193
10194    case "${target}-${is_cross_compiler}" in
10195    i[3456789]86-*-linux*-no)
10196       # Here host == target, so we don't need to build gcc,
10197       # so we don't want to discard standard headers.
10198       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10199       ;;
10200    *)
10201       # If we're building newlib, use its generic headers last, but search
10202       # for any libc-related directories first (so make it the last -B
10203       # switch).
10204       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10205
10206       # If we're building libgloss, find the startup file, simulator library
10207       # and linker script.
10208       case " $target_configdirs " in
10209         *" libgloss "*)
10210         # Look for startup file, simulator library and maybe linker script.
10211         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10212         # Look for libnosys.a in case the target needs it.
10213         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10214         # Most targets have the linker script in the source directory.
10215         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10216         ;;
10217       esac
10218       ;;
10219    esac
10220    ;;
10221   esac
10222   ;;
10223 esac
10224
10225 case "$target" in
10226   x86_64-*mingw* | *-w64-mingw*)
10227   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10228   # however, use a symlink named 'mingw' in ${prefix} .
10229     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10230     ;;
10231   *-mingw*)
10232   # MinGW can't be handled as Cygwin above since it does not use newlib.
10233     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'
10234     ;;
10235 esac
10236
10237 # Allow the user to override the flags for
10238 # our build compiler if desired.
10239 if test x"${build}" = x"${host}" ; then
10240   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10241   CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10242   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10243   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10244 fi
10245
10246 # On Canadian crosses, we'll be searching the right directories for
10247 # the previously-installed cross compiler, so don't bother to add
10248 # flags for directories within the install tree of the compiler
10249 # being built; programs in there won't even run.
10250 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10251   # Search for pre-installed headers if nothing else fits.
10252   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10253 fi
10254
10255 if test "x${use_gnu_ld}" = x &&
10256    echo " ${configdirs} " | grep " ld " > /dev/null ; then
10257   # Arrange for us to find uninstalled linker scripts.
10258   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10259 fi
10260
10261 # Search for other target-specific linker scripts and such.
10262 case "${target}" in
10263   mep*)
10264     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10265     ;;
10266   # The VxWorks support for shared libraries is getting in
10267   # incrementally.  Make sure it doesn't get activated implicitly:
10268   *vxworks*)
10269     if test "${enable_shared-unset}" = unset ; then
10270       enable_shared=no
10271       # So the build of libraries knows ...
10272       target_configargs="${target_configargs} --disable-shared"
10273       # So gcc knows ...
10274       host_configargs="${host_configargs} --disable-shared"
10275     fi
10276     ;;
10277 esac
10278
10279 # Makefile fragments.
10280 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10281 do
10282   eval fragval=\$$frag
10283   if test $fragval != /dev/null; then
10284     eval $frag=${srcdir}/$fragval
10285   fi
10286 done
10287
10288
10289
10290
10291
10292 # Miscellanea: directories, flags, etc.
10293
10294
10295
10296
10297
10298
10299
10300
10301 # Build module lists & subconfigure args.
10302
10303
10304
10305 # Host module lists & subconfigure args.
10306
10307
10308
10309
10310 # Target module lists & subconfigure args.
10311
10312
10313
10314 # Build tools.
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335 # Generate default definitions for YACC, M4, LEX and other programs that run
10336 # on the build machine.  These are used if the Makefile can't locate these
10337 # programs in objdir.
10338 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10339
10340 for ac_prog in 'bison -y' byacc yacc
10341 do
10342   # Extract the first word of "$ac_prog", so it can be a program name with args.
10343 set dummy $ac_prog; ac_word=$2
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10345 $as_echo_n "checking for $ac_word... " >&6; }
10346 if ${ac_cv_prog_YACC+:} false; then :
10347   $as_echo_n "(cached) " >&6
10348 else
10349   if test -n "$YACC"; then
10350   ac_cv_prog_YACC="$YACC" # Let the user override the test.
10351 else
10352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353 for as_dir in $PATH
10354 do
10355   IFS=$as_save_IFS
10356   test -z "$as_dir" && as_dir=.
10357     for ac_exec_ext in '' $ac_executable_extensions; do
10358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10359     ac_cv_prog_YACC="$ac_prog"
10360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10361     break 2
10362   fi
10363 done
10364   done
10365 IFS=$as_save_IFS
10366
10367 fi
10368 fi
10369 YACC=$ac_cv_prog_YACC
10370 if test -n "$YACC"; then
10371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10372 $as_echo "$YACC" >&6; }
10373 else
10374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 $as_echo "no" >&6; }
10376 fi
10377
10378
10379   test -n "$YACC" && break
10380 done
10381 test -n "$YACC" || YACC="$MISSING bison -y"
10382
10383 case " $build_configdirs " in
10384   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10385 esac
10386
10387 for ac_prog in bison
10388 do
10389   # Extract the first word of "$ac_prog", so it can be a program name with args.
10390 set dummy $ac_prog; ac_word=$2
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10392 $as_echo_n "checking for $ac_word... " >&6; }
10393 if ${ac_cv_prog_BISON+:} false; then :
10394   $as_echo_n "(cached) " >&6
10395 else
10396   if test -n "$BISON"; then
10397   ac_cv_prog_BISON="$BISON" # Let the user override the test.
10398 else
10399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10400 for as_dir in $PATH
10401 do
10402   IFS=$as_save_IFS
10403   test -z "$as_dir" && as_dir=.
10404     for ac_exec_ext in '' $ac_executable_extensions; do
10405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10406     ac_cv_prog_BISON="$ac_prog"
10407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10408     break 2
10409   fi
10410 done
10411   done
10412 IFS=$as_save_IFS
10413
10414 fi
10415 fi
10416 BISON=$ac_cv_prog_BISON
10417 if test -n "$BISON"; then
10418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10419 $as_echo "$BISON" >&6; }
10420 else
10421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10422 $as_echo "no" >&6; }
10423 fi
10424
10425
10426   test -n "$BISON" && break
10427 done
10428 test -n "$BISON" || BISON="$MISSING bison"
10429
10430 case " $build_configdirs " in
10431   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10432 esac
10433
10434 for ac_prog in gm4 gnum4 m4
10435 do
10436   # Extract the first word of "$ac_prog", so it can be a program name with args.
10437 set dummy $ac_prog; ac_word=$2
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10439 $as_echo_n "checking for $ac_word... " >&6; }
10440 if ${ac_cv_prog_M4+:} false; then :
10441   $as_echo_n "(cached) " >&6
10442 else
10443   if test -n "$M4"; then
10444   ac_cv_prog_M4="$M4" # Let the user override the test.
10445 else
10446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447 for as_dir in $PATH
10448 do
10449   IFS=$as_save_IFS
10450   test -z "$as_dir" && as_dir=.
10451     for ac_exec_ext in '' $ac_executable_extensions; do
10452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10453     ac_cv_prog_M4="$ac_prog"
10454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10455     break 2
10456   fi
10457 done
10458   done
10459 IFS=$as_save_IFS
10460
10461 fi
10462 fi
10463 M4=$ac_cv_prog_M4
10464 if test -n "$M4"; then
10465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10466 $as_echo "$M4" >&6; }
10467 else
10468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10469 $as_echo "no" >&6; }
10470 fi
10471
10472
10473   test -n "$M4" && break
10474 done
10475 test -n "$M4" || M4="$MISSING m4"
10476
10477 case " $build_configdirs " in
10478   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10479 esac
10480
10481 for ac_prog in flex lex
10482 do
10483   # Extract the first word of "$ac_prog", so it can be a program name with args.
10484 set dummy $ac_prog; ac_word=$2
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10486 $as_echo_n "checking for $ac_word... " >&6; }
10487 if ${ac_cv_prog_LEX+:} false; then :
10488   $as_echo_n "(cached) " >&6
10489 else
10490   if test -n "$LEX"; then
10491   ac_cv_prog_LEX="$LEX" # Let the user override the test.
10492 else
10493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494 for as_dir in $PATH
10495 do
10496   IFS=$as_save_IFS
10497   test -z "$as_dir" && as_dir=.
10498     for ac_exec_ext in '' $ac_executable_extensions; do
10499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10500     ac_cv_prog_LEX="$ac_prog"
10501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10502     break 2
10503   fi
10504 done
10505   done
10506 IFS=$as_save_IFS
10507
10508 fi
10509 fi
10510 LEX=$ac_cv_prog_LEX
10511 if test -n "$LEX"; then
10512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10513 $as_echo "$LEX" >&6; }
10514 else
10515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516 $as_echo "no" >&6; }
10517 fi
10518
10519
10520   test -n "$LEX" && break
10521 done
10522 test -n "$LEX" || LEX="$MISSING flex"
10523
10524 case " $build_configdirs " in
10525   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10526   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10527 esac
10528
10529 for ac_prog in flex
10530 do
10531   # Extract the first word of "$ac_prog", so it can be a program name with args.
10532 set dummy $ac_prog; ac_word=$2
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10534 $as_echo_n "checking for $ac_word... " >&6; }
10535 if ${ac_cv_prog_FLEX+:} false; then :
10536   $as_echo_n "(cached) " >&6
10537 else
10538   if test -n "$FLEX"; then
10539   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10540 else
10541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10542 for as_dir in $PATH
10543 do
10544   IFS=$as_save_IFS
10545   test -z "$as_dir" && as_dir=.
10546     for ac_exec_ext in '' $ac_executable_extensions; do
10547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10548     ac_cv_prog_FLEX="$ac_prog"
10549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10550     break 2
10551   fi
10552 done
10553   done
10554 IFS=$as_save_IFS
10555
10556 fi
10557 fi
10558 FLEX=$ac_cv_prog_FLEX
10559 if test -n "$FLEX"; then
10560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10561 $as_echo "$FLEX" >&6; }
10562 else
10563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10564 $as_echo "no" >&6; }
10565 fi
10566
10567
10568   test -n "$FLEX" && break
10569 done
10570 test -n "$FLEX" || FLEX="$MISSING flex"
10571
10572 case " $build_configdirs " in
10573   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10574 esac
10575
10576 for ac_prog in makeinfo
10577 do
10578   # Extract the first word of "$ac_prog", so it can be a program name with args.
10579 set dummy $ac_prog; ac_word=$2
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10581 $as_echo_n "checking for $ac_word... " >&6; }
10582 if ${ac_cv_prog_MAKEINFO+:} false; then :
10583   $as_echo_n "(cached) " >&6
10584 else
10585   if test -n "$MAKEINFO"; then
10586   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10587 else
10588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589 for as_dir in $PATH
10590 do
10591   IFS=$as_save_IFS
10592   test -z "$as_dir" && as_dir=.
10593     for ac_exec_ext in '' $ac_executable_extensions; do
10594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10595     ac_cv_prog_MAKEINFO="$ac_prog"
10596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10597     break 2
10598   fi
10599 done
10600   done
10601 IFS=$as_save_IFS
10602
10603 fi
10604 fi
10605 MAKEINFO=$ac_cv_prog_MAKEINFO
10606 if test -n "$MAKEINFO"; then
10607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10608 $as_echo "$MAKEINFO" >&6; }
10609 else
10610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611 $as_echo "no" >&6; }
10612 fi
10613
10614
10615   test -n "$MAKEINFO" && break
10616 done
10617 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10618
10619 case " $build_configdirs " in
10620   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10621   *)
10622
10623     # For an installed makeinfo, we require it to be from texinfo 4.7 or
10624     # higher, else we use the "missing" dummy.
10625     if ${MAKEINFO} --version \
10626        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10627       :
10628     else
10629       MAKEINFO="$MISSING makeinfo"
10630     fi
10631     ;;
10632
10633 esac
10634
10635 # FIXME: expect and dejagnu may become build tools?
10636
10637 for ac_prog in expect
10638 do
10639   # Extract the first word of "$ac_prog", so it can be a program name with args.
10640 set dummy $ac_prog; ac_word=$2
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10642 $as_echo_n "checking for $ac_word... " >&6; }
10643 if ${ac_cv_prog_EXPECT+:} false; then :
10644   $as_echo_n "(cached) " >&6
10645 else
10646   if test -n "$EXPECT"; then
10647   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10648 else
10649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650 for as_dir in $PATH
10651 do
10652   IFS=$as_save_IFS
10653   test -z "$as_dir" && as_dir=.
10654     for ac_exec_ext in '' $ac_executable_extensions; do
10655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10656     ac_cv_prog_EXPECT="$ac_prog"
10657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10658     break 2
10659   fi
10660 done
10661   done
10662 IFS=$as_save_IFS
10663
10664 fi
10665 fi
10666 EXPECT=$ac_cv_prog_EXPECT
10667 if test -n "$EXPECT"; then
10668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10669 $as_echo "$EXPECT" >&6; }
10670 else
10671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672 $as_echo "no" >&6; }
10673 fi
10674
10675
10676   test -n "$EXPECT" && break
10677 done
10678 test -n "$EXPECT" || EXPECT="expect"
10679
10680 case " $configdirs " in
10681   *" expect "*)
10682     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10683     ;;
10684 esac
10685
10686 for ac_prog in runtest
10687 do
10688   # Extract the first word of "$ac_prog", so it can be a program name with args.
10689 set dummy $ac_prog; ac_word=$2
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10691 $as_echo_n "checking for $ac_word... " >&6; }
10692 if ${ac_cv_prog_RUNTEST+:} false; then :
10693   $as_echo_n "(cached) " >&6
10694 else
10695   if test -n "$RUNTEST"; then
10696   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10697 else
10698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10699 for as_dir in $PATH
10700 do
10701   IFS=$as_save_IFS
10702   test -z "$as_dir" && as_dir=.
10703     for ac_exec_ext in '' $ac_executable_extensions; do
10704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10705     ac_cv_prog_RUNTEST="$ac_prog"
10706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10707     break 2
10708   fi
10709 done
10710   done
10711 IFS=$as_save_IFS
10712
10713 fi
10714 fi
10715 RUNTEST=$ac_cv_prog_RUNTEST
10716 if test -n "$RUNTEST"; then
10717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10718 $as_echo "$RUNTEST" >&6; }
10719 else
10720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10721 $as_echo "no" >&6; }
10722 fi
10723
10724
10725   test -n "$RUNTEST" && break
10726 done
10727 test -n "$RUNTEST" || RUNTEST="runtest"
10728
10729 case " $configdirs " in
10730   *" dejagnu "*)
10731     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10732     ;;
10733 esac
10734
10735
10736 # Host tools.
10737 ncn_tool_prefix=
10738 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10739 ncn_target_tool_prefix=
10740 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10741
10742
10743
10744 if test -n "$AR"; then
10745   ac_cv_prog_AR=$AR
10746 elif test -n "$ac_cv_prog_AR"; then
10747   AR=$ac_cv_prog_AR
10748 fi
10749
10750 if test -n "$ac_cv_prog_AR"; then
10751   for ncn_progname in ar; do
10752     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10753 set dummy ${ncn_progname}; ac_word=$2
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10755 $as_echo_n "checking for $ac_word... " >&6; }
10756 if ${ac_cv_prog_AR+:} false; then :
10757   $as_echo_n "(cached) " >&6
10758 else
10759   if test -n "$AR"; then
10760   ac_cv_prog_AR="$AR" # Let the user override the test.
10761 else
10762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763 for as_dir in $PATH
10764 do
10765   IFS=$as_save_IFS
10766   test -z "$as_dir" && as_dir=.
10767     for ac_exec_ext in '' $ac_executable_extensions; do
10768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10769     ac_cv_prog_AR="${ncn_progname}"
10770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10771     break 2
10772   fi
10773 done
10774   done
10775 IFS=$as_save_IFS
10776
10777 fi
10778 fi
10779 AR=$ac_cv_prog_AR
10780 if test -n "$AR"; then
10781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10782 $as_echo "$AR" >&6; }
10783 else
10784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785 $as_echo "no" >&6; }
10786 fi
10787
10788
10789   done
10790 fi
10791
10792 for ncn_progname in ar; do
10793   if test -n "$ncn_tool_prefix"; then
10794     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10795 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10797 $as_echo_n "checking for $ac_word... " >&6; }
10798 if ${ac_cv_prog_AR+:} false; then :
10799   $as_echo_n "(cached) " >&6
10800 else
10801   if test -n "$AR"; then
10802   ac_cv_prog_AR="$AR" # Let the user override the test.
10803 else
10804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805 for as_dir in $PATH
10806 do
10807   IFS=$as_save_IFS
10808   test -z "$as_dir" && as_dir=.
10809     for ac_exec_ext in '' $ac_executable_extensions; do
10810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10811     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10813     break 2
10814   fi
10815 done
10816   done
10817 IFS=$as_save_IFS
10818
10819 fi
10820 fi
10821 AR=$ac_cv_prog_AR
10822 if test -n "$AR"; then
10823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10824 $as_echo "$AR" >&6; }
10825 else
10826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10827 $as_echo "no" >&6; }
10828 fi
10829
10830
10831   fi
10832   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10833     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10834 set dummy ${ncn_progname}; ac_word=$2
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10836 $as_echo_n "checking for $ac_word... " >&6; }
10837 if ${ac_cv_prog_AR+:} false; then :
10838   $as_echo_n "(cached) " >&6
10839 else
10840   if test -n "$AR"; then
10841   ac_cv_prog_AR="$AR" # Let the user override the test.
10842 else
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $PATH
10845 do
10846   IFS=$as_save_IFS
10847   test -z "$as_dir" && as_dir=.
10848     for ac_exec_ext in '' $ac_executable_extensions; do
10849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10850     ac_cv_prog_AR="${ncn_progname}"
10851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10852     break 2
10853   fi
10854 done
10855   done
10856 IFS=$as_save_IFS
10857
10858 fi
10859 fi
10860 AR=$ac_cv_prog_AR
10861 if test -n "$AR"; then
10862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10863 $as_echo "$AR" >&6; }
10864 else
10865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10866 $as_echo "no" >&6; }
10867 fi
10868
10869
10870   fi
10871   test -n "$ac_cv_prog_AR" && break
10872 done
10873
10874 if test -z "$ac_cv_prog_AR" ; then
10875   set dummy ar
10876   if test $build = $host ; then
10877     AR="$2"
10878   else
10879     AR="${ncn_tool_prefix}$2"
10880   fi
10881 fi
10882
10883
10884
10885 if test -n "$AS"; then
10886   ac_cv_prog_AS=$AS
10887 elif test -n "$ac_cv_prog_AS"; then
10888   AS=$ac_cv_prog_AS
10889 fi
10890
10891 if test -n "$ac_cv_prog_AS"; then
10892   for ncn_progname in as; do
10893     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10894 set dummy ${ncn_progname}; ac_word=$2
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10896 $as_echo_n "checking for $ac_word... " >&6; }
10897 if ${ac_cv_prog_AS+:} false; then :
10898   $as_echo_n "(cached) " >&6
10899 else
10900   if test -n "$AS"; then
10901   ac_cv_prog_AS="$AS" # Let the user override the test.
10902 else
10903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10904 for as_dir in $PATH
10905 do
10906   IFS=$as_save_IFS
10907   test -z "$as_dir" && as_dir=.
10908     for ac_exec_ext in '' $ac_executable_extensions; do
10909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10910     ac_cv_prog_AS="${ncn_progname}"
10911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10912     break 2
10913   fi
10914 done
10915   done
10916 IFS=$as_save_IFS
10917
10918 fi
10919 fi
10920 AS=$ac_cv_prog_AS
10921 if test -n "$AS"; then
10922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10923 $as_echo "$AS" >&6; }
10924 else
10925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; }
10927 fi
10928
10929
10930   done
10931 fi
10932
10933 for ncn_progname in as; do
10934   if test -n "$ncn_tool_prefix"; then
10935     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10936 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938 $as_echo_n "checking for $ac_word... " >&6; }
10939 if ${ac_cv_prog_AS+:} false; then :
10940   $as_echo_n "(cached) " >&6
10941 else
10942   if test -n "$AS"; then
10943   ac_cv_prog_AS="$AS" # Let the user override the test.
10944 else
10945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946 for as_dir in $PATH
10947 do
10948   IFS=$as_save_IFS
10949   test -z "$as_dir" && as_dir=.
10950     for ac_exec_ext in '' $ac_executable_extensions; do
10951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10952     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10954     break 2
10955   fi
10956 done
10957   done
10958 IFS=$as_save_IFS
10959
10960 fi
10961 fi
10962 AS=$ac_cv_prog_AS
10963 if test -n "$AS"; then
10964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10965 $as_echo "$AS" >&6; }
10966 else
10967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10969 fi
10970
10971
10972   fi
10973   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10974     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10975 set dummy ${ncn_progname}; ac_word=$2
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977 $as_echo_n "checking for $ac_word... " >&6; }
10978 if ${ac_cv_prog_AS+:} false; then :
10979   $as_echo_n "(cached) " >&6
10980 else
10981   if test -n "$AS"; then
10982   ac_cv_prog_AS="$AS" # Let the user override the test.
10983 else
10984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985 for as_dir in $PATH
10986 do
10987   IFS=$as_save_IFS
10988   test -z "$as_dir" && as_dir=.
10989     for ac_exec_ext in '' $ac_executable_extensions; do
10990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10991     ac_cv_prog_AS="${ncn_progname}"
10992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993     break 2
10994   fi
10995 done
10996   done
10997 IFS=$as_save_IFS
10998
10999 fi
11000 fi
11001 AS=$ac_cv_prog_AS
11002 if test -n "$AS"; then
11003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11004 $as_echo "$AS" >&6; }
11005 else
11006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 $as_echo "no" >&6; }
11008 fi
11009
11010
11011   fi
11012   test -n "$ac_cv_prog_AS" && break
11013 done
11014
11015 if test -z "$ac_cv_prog_AS" ; then
11016   set dummy as
11017   if test $build = $host ; then
11018     AS="$2"
11019   else
11020     AS="${ncn_tool_prefix}$2"
11021   fi
11022 fi
11023
11024
11025
11026 if test -n "$DLLTOOL"; then
11027   ac_cv_prog_DLLTOOL=$DLLTOOL
11028 elif test -n "$ac_cv_prog_DLLTOOL"; then
11029   DLLTOOL=$ac_cv_prog_DLLTOOL
11030 fi
11031
11032 if test -n "$ac_cv_prog_DLLTOOL"; then
11033   for ncn_progname in dlltool; do
11034     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11035 set dummy ${ncn_progname}; ac_word=$2
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11037 $as_echo_n "checking for $ac_word... " >&6; }
11038 if ${ac_cv_prog_DLLTOOL+:} false; then :
11039   $as_echo_n "(cached) " >&6
11040 else
11041   if test -n "$DLLTOOL"; then
11042   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11043 else
11044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11045 for as_dir in $PATH
11046 do
11047   IFS=$as_save_IFS
11048   test -z "$as_dir" && as_dir=.
11049     for ac_exec_ext in '' $ac_executable_extensions; do
11050   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11051     ac_cv_prog_DLLTOOL="${ncn_progname}"
11052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11053     break 2
11054   fi
11055 done
11056   done
11057 IFS=$as_save_IFS
11058
11059 fi
11060 fi
11061 DLLTOOL=$ac_cv_prog_DLLTOOL
11062 if test -n "$DLLTOOL"; then
11063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11064 $as_echo "$DLLTOOL" >&6; }
11065 else
11066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067 $as_echo "no" >&6; }
11068 fi
11069
11070
11071   done
11072 fi
11073
11074 for ncn_progname in dlltool; do
11075   if test -n "$ncn_tool_prefix"; then
11076     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11077 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11079 $as_echo_n "checking for $ac_word... " >&6; }
11080 if ${ac_cv_prog_DLLTOOL+:} false; then :
11081   $as_echo_n "(cached) " >&6
11082 else
11083   if test -n "$DLLTOOL"; then
11084   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11085 else
11086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11087 for as_dir in $PATH
11088 do
11089   IFS=$as_save_IFS
11090   test -z "$as_dir" && as_dir=.
11091     for ac_exec_ext in '' $ac_executable_extensions; do
11092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11093     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11095     break 2
11096   fi
11097 done
11098   done
11099 IFS=$as_save_IFS
11100
11101 fi
11102 fi
11103 DLLTOOL=$ac_cv_prog_DLLTOOL
11104 if test -n "$DLLTOOL"; then
11105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11106 $as_echo "$DLLTOOL" >&6; }
11107 else
11108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109 $as_echo "no" >&6; }
11110 fi
11111
11112
11113   fi
11114   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11115     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11116 set dummy ${ncn_progname}; ac_word=$2
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11118 $as_echo_n "checking for $ac_word... " >&6; }
11119 if ${ac_cv_prog_DLLTOOL+:} false; then :
11120   $as_echo_n "(cached) " >&6
11121 else
11122   if test -n "$DLLTOOL"; then
11123   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11124 else
11125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126 for as_dir in $PATH
11127 do
11128   IFS=$as_save_IFS
11129   test -z "$as_dir" && as_dir=.
11130     for ac_exec_ext in '' $ac_executable_extensions; do
11131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11132     ac_cv_prog_DLLTOOL="${ncn_progname}"
11133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11134     break 2
11135   fi
11136 done
11137   done
11138 IFS=$as_save_IFS
11139
11140 fi
11141 fi
11142 DLLTOOL=$ac_cv_prog_DLLTOOL
11143 if test -n "$DLLTOOL"; then
11144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11145 $as_echo "$DLLTOOL" >&6; }
11146 else
11147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11148 $as_echo "no" >&6; }
11149 fi
11150
11151
11152   fi
11153   test -n "$ac_cv_prog_DLLTOOL" && break
11154 done
11155
11156 if test -z "$ac_cv_prog_DLLTOOL" ; then
11157   set dummy dlltool
11158   if test $build = $host ; then
11159     DLLTOOL="$2"
11160   else
11161     DLLTOOL="${ncn_tool_prefix}$2"
11162   fi
11163 fi
11164
11165
11166
11167 if test -n "$DSYMUTIL"; then
11168   ac_cv_prog_DSYMUTIL=$DSYMUTIL
11169 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11170   DSYMUTIL=$ac_cv_prog_DSYMUTIL
11171 fi
11172
11173 if test -n "$ac_cv_prog_DSYMUTIL"; then
11174   for ncn_progname in dsymutil; do
11175     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11176 set dummy ${ncn_progname}; ac_word=$2
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 $as_echo_n "checking for $ac_word... " >&6; }
11179 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11180   $as_echo_n "(cached) " >&6
11181 else
11182   if test -n "$DSYMUTIL"; then
11183   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11184 else
11185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11186 for as_dir in $PATH
11187 do
11188   IFS=$as_save_IFS
11189   test -z "$as_dir" && as_dir=.
11190     for ac_exec_ext in '' $ac_executable_extensions; do
11191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11192     ac_cv_prog_DSYMUTIL="${ncn_progname}"
11193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11194     break 2
11195   fi
11196 done
11197   done
11198 IFS=$as_save_IFS
11199
11200 fi
11201 fi
11202 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11203 if test -n "$DSYMUTIL"; then
11204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11205 $as_echo "$DSYMUTIL" >&6; }
11206 else
11207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208 $as_echo "no" >&6; }
11209 fi
11210
11211
11212   done
11213 fi
11214
11215 for ncn_progname in dsymutil; do
11216   if test -n "$ncn_tool_prefix"; then
11217     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11218 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11220 $as_echo_n "checking for $ac_word... " >&6; }
11221 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11222   $as_echo_n "(cached) " >&6
11223 else
11224   if test -n "$DSYMUTIL"; then
11225   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11226 else
11227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228 for as_dir in $PATH
11229 do
11230   IFS=$as_save_IFS
11231   test -z "$as_dir" && as_dir=.
11232     for ac_exec_ext in '' $ac_executable_extensions; do
11233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11234     ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11236     break 2
11237   fi
11238 done
11239   done
11240 IFS=$as_save_IFS
11241
11242 fi
11243 fi
11244 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11245 if test -n "$DSYMUTIL"; then
11246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11247 $as_echo "$DSYMUTIL" >&6; }
11248 else
11249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250 $as_echo "no" >&6; }
11251 fi
11252
11253
11254   fi
11255   if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11256     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11257 set dummy ${ncn_progname}; ac_word=$2
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11259 $as_echo_n "checking for $ac_word... " >&6; }
11260 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11261   $as_echo_n "(cached) " >&6
11262 else
11263   if test -n "$DSYMUTIL"; then
11264   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11265 else
11266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in $PATH
11268 do
11269   IFS=$as_save_IFS
11270   test -z "$as_dir" && as_dir=.
11271     for ac_exec_ext in '' $ac_executable_extensions; do
11272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11273     ac_cv_prog_DSYMUTIL="${ncn_progname}"
11274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11275     break 2
11276   fi
11277 done
11278   done
11279 IFS=$as_save_IFS
11280
11281 fi
11282 fi
11283 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11284 if test -n "$DSYMUTIL"; then
11285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11286 $as_echo "$DSYMUTIL" >&6; }
11287 else
11288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289 $as_echo "no" >&6; }
11290 fi
11291
11292
11293   fi
11294   test -n "$ac_cv_prog_DSYMUTIL" && break
11295 done
11296
11297 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11298   set dummy dsymutil
11299   if test $build = $host ; then
11300     DSYMUTIL="$2"
11301   else
11302     DSYMUTIL="${ncn_tool_prefix}$2"
11303   fi
11304 fi
11305
11306
11307
11308 if test -n "$LD"; then
11309   ac_cv_prog_LD=$LD
11310 elif test -n "$ac_cv_prog_LD"; then
11311   LD=$ac_cv_prog_LD
11312 fi
11313
11314 if test -n "$ac_cv_prog_LD"; then
11315   for ncn_progname in ld; do
11316     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11317 set dummy ${ncn_progname}; ac_word=$2
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11319 $as_echo_n "checking for $ac_word... " >&6; }
11320 if ${ac_cv_prog_LD+:} false; then :
11321   $as_echo_n "(cached) " >&6
11322 else
11323   if test -n "$LD"; then
11324   ac_cv_prog_LD="$LD" # Let the user override the test.
11325 else
11326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327 for as_dir in $PATH
11328 do
11329   IFS=$as_save_IFS
11330   test -z "$as_dir" && as_dir=.
11331     for ac_exec_ext in '' $ac_executable_extensions; do
11332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11333     ac_cv_prog_LD="${ncn_progname}"
11334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11335     break 2
11336   fi
11337 done
11338   done
11339 IFS=$as_save_IFS
11340
11341 fi
11342 fi
11343 LD=$ac_cv_prog_LD
11344 if test -n "$LD"; then
11345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11346 $as_echo "$LD" >&6; }
11347 else
11348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11349 $as_echo "no" >&6; }
11350 fi
11351
11352
11353   done
11354 fi
11355
11356 for ncn_progname in ld; do
11357   if test -n "$ncn_tool_prefix"; then
11358     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11359 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11361 $as_echo_n "checking for $ac_word... " >&6; }
11362 if ${ac_cv_prog_LD+:} false; then :
11363   $as_echo_n "(cached) " >&6
11364 else
11365   if test -n "$LD"; then
11366   ac_cv_prog_LD="$LD" # Let the user override the test.
11367 else
11368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11369 for as_dir in $PATH
11370 do
11371   IFS=$as_save_IFS
11372   test -z "$as_dir" && as_dir=.
11373     for ac_exec_ext in '' $ac_executable_extensions; do
11374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11375     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11377     break 2
11378   fi
11379 done
11380   done
11381 IFS=$as_save_IFS
11382
11383 fi
11384 fi
11385 LD=$ac_cv_prog_LD
11386 if test -n "$LD"; then
11387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11388 $as_echo "$LD" >&6; }
11389 else
11390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391 $as_echo "no" >&6; }
11392 fi
11393
11394
11395   fi
11396   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11397     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11398 set dummy ${ncn_progname}; ac_word=$2
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11400 $as_echo_n "checking for $ac_word... " >&6; }
11401 if ${ac_cv_prog_LD+:} false; then :
11402   $as_echo_n "(cached) " >&6
11403 else
11404   if test -n "$LD"; then
11405   ac_cv_prog_LD="$LD" # Let the user override the test.
11406 else
11407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408 for as_dir in $PATH
11409 do
11410   IFS=$as_save_IFS
11411   test -z "$as_dir" && as_dir=.
11412     for ac_exec_ext in '' $ac_executable_extensions; do
11413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11414     ac_cv_prog_LD="${ncn_progname}"
11415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11416     break 2
11417   fi
11418 done
11419   done
11420 IFS=$as_save_IFS
11421
11422 fi
11423 fi
11424 LD=$ac_cv_prog_LD
11425 if test -n "$LD"; then
11426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11427 $as_echo "$LD" >&6; }
11428 else
11429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430 $as_echo "no" >&6; }
11431 fi
11432
11433
11434   fi
11435   test -n "$ac_cv_prog_LD" && break
11436 done
11437
11438 if test -z "$ac_cv_prog_LD" ; then
11439   set dummy ld
11440   if test $build = $host ; then
11441     LD="$2"
11442   else
11443     LD="${ncn_tool_prefix}$2"
11444   fi
11445 fi
11446
11447
11448
11449 if test -n "$LIPO"; then
11450   ac_cv_prog_LIPO=$LIPO
11451 elif test -n "$ac_cv_prog_LIPO"; then
11452   LIPO=$ac_cv_prog_LIPO
11453 fi
11454
11455 if test -n "$ac_cv_prog_LIPO"; then
11456   for ncn_progname in lipo; do
11457     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11458 set dummy ${ncn_progname}; ac_word=$2
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11460 $as_echo_n "checking for $ac_word... " >&6; }
11461 if ${ac_cv_prog_LIPO+:} false; then :
11462   $as_echo_n "(cached) " >&6
11463 else
11464   if test -n "$LIPO"; then
11465   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11466 else
11467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468 for as_dir in $PATH
11469 do
11470   IFS=$as_save_IFS
11471   test -z "$as_dir" && as_dir=.
11472     for ac_exec_ext in '' $ac_executable_extensions; do
11473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11474     ac_cv_prog_LIPO="${ncn_progname}"
11475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11476     break 2
11477   fi
11478 done
11479   done
11480 IFS=$as_save_IFS
11481
11482 fi
11483 fi
11484 LIPO=$ac_cv_prog_LIPO
11485 if test -n "$LIPO"; then
11486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11487 $as_echo "$LIPO" >&6; }
11488 else
11489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490 $as_echo "no" >&6; }
11491 fi
11492
11493
11494   done
11495 fi
11496
11497 for ncn_progname in lipo; do
11498   if test -n "$ncn_tool_prefix"; then
11499     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11500 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11502 $as_echo_n "checking for $ac_word... " >&6; }
11503 if ${ac_cv_prog_LIPO+:} false; then :
11504   $as_echo_n "(cached) " >&6
11505 else
11506   if test -n "$LIPO"; then
11507   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11508 else
11509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11510 for as_dir in $PATH
11511 do
11512   IFS=$as_save_IFS
11513   test -z "$as_dir" && as_dir=.
11514     for ac_exec_ext in '' $ac_executable_extensions; do
11515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11516     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11518     break 2
11519   fi
11520 done
11521   done
11522 IFS=$as_save_IFS
11523
11524 fi
11525 fi
11526 LIPO=$ac_cv_prog_LIPO
11527 if test -n "$LIPO"; then
11528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11529 $as_echo "$LIPO" >&6; }
11530 else
11531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532 $as_echo "no" >&6; }
11533 fi
11534
11535
11536   fi
11537   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11538     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11539 set dummy ${ncn_progname}; ac_word=$2
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11541 $as_echo_n "checking for $ac_word... " >&6; }
11542 if ${ac_cv_prog_LIPO+:} false; then :
11543   $as_echo_n "(cached) " >&6
11544 else
11545   if test -n "$LIPO"; then
11546   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11547 else
11548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11549 for as_dir in $PATH
11550 do
11551   IFS=$as_save_IFS
11552   test -z "$as_dir" && as_dir=.
11553     for ac_exec_ext in '' $ac_executable_extensions; do
11554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11555     ac_cv_prog_LIPO="${ncn_progname}"
11556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11557     break 2
11558   fi
11559 done
11560   done
11561 IFS=$as_save_IFS
11562
11563 fi
11564 fi
11565 LIPO=$ac_cv_prog_LIPO
11566 if test -n "$LIPO"; then
11567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11568 $as_echo "$LIPO" >&6; }
11569 else
11570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571 $as_echo "no" >&6; }
11572 fi
11573
11574
11575   fi
11576   test -n "$ac_cv_prog_LIPO" && break
11577 done
11578
11579 if test -z "$ac_cv_prog_LIPO" ; then
11580   set dummy lipo
11581   if test $build = $host ; then
11582     LIPO="$2"
11583   else
11584     LIPO="${ncn_tool_prefix}$2"
11585   fi
11586 fi
11587
11588
11589
11590 if test -n "$NM"; then
11591   ac_cv_prog_NM=$NM
11592 elif test -n "$ac_cv_prog_NM"; then
11593   NM=$ac_cv_prog_NM
11594 fi
11595
11596 if test -n "$ac_cv_prog_NM"; then
11597   for ncn_progname in nm; do
11598     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11599 set dummy ${ncn_progname}; ac_word=$2
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601 $as_echo_n "checking for $ac_word... " >&6; }
11602 if ${ac_cv_prog_NM+:} false; then :
11603   $as_echo_n "(cached) " >&6
11604 else
11605   if test -n "$NM"; then
11606   ac_cv_prog_NM="$NM" # Let the user override the test.
11607 else
11608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609 for as_dir in $PATH
11610 do
11611   IFS=$as_save_IFS
11612   test -z "$as_dir" && as_dir=.
11613     for ac_exec_ext in '' $ac_executable_extensions; do
11614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11615     ac_cv_prog_NM="${ncn_progname}"
11616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11617     break 2
11618   fi
11619 done
11620   done
11621 IFS=$as_save_IFS
11622
11623 fi
11624 fi
11625 NM=$ac_cv_prog_NM
11626 if test -n "$NM"; then
11627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11628 $as_echo "$NM" >&6; }
11629 else
11630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11632 fi
11633
11634
11635   done
11636 fi
11637
11638 for ncn_progname in nm; do
11639   if test -n "$ncn_tool_prefix"; then
11640     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11641 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11643 $as_echo_n "checking for $ac_word... " >&6; }
11644 if ${ac_cv_prog_NM+:} false; then :
11645   $as_echo_n "(cached) " >&6
11646 else
11647   if test -n "$NM"; then
11648   ac_cv_prog_NM="$NM" # Let the user override the test.
11649 else
11650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651 for as_dir in $PATH
11652 do
11653   IFS=$as_save_IFS
11654   test -z "$as_dir" && as_dir=.
11655     for ac_exec_ext in '' $ac_executable_extensions; do
11656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11657     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11659     break 2
11660   fi
11661 done
11662   done
11663 IFS=$as_save_IFS
11664
11665 fi
11666 fi
11667 NM=$ac_cv_prog_NM
11668 if test -n "$NM"; then
11669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11670 $as_echo "$NM" >&6; }
11671 else
11672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11674 fi
11675
11676
11677   fi
11678   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11679     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11680 set dummy ${ncn_progname}; ac_word=$2
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682 $as_echo_n "checking for $ac_word... " >&6; }
11683 if ${ac_cv_prog_NM+:} false; then :
11684   $as_echo_n "(cached) " >&6
11685 else
11686   if test -n "$NM"; then
11687   ac_cv_prog_NM="$NM" # Let the user override the test.
11688 else
11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11691 do
11692   IFS=$as_save_IFS
11693   test -z "$as_dir" && as_dir=.
11694     for ac_exec_ext in '' $ac_executable_extensions; do
11695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11696     ac_cv_prog_NM="${ncn_progname}"
11697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11698     break 2
11699   fi
11700 done
11701   done
11702 IFS=$as_save_IFS
11703
11704 fi
11705 fi
11706 NM=$ac_cv_prog_NM
11707 if test -n "$NM"; then
11708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11709 $as_echo "$NM" >&6; }
11710 else
11711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11713 fi
11714
11715
11716   fi
11717   test -n "$ac_cv_prog_NM" && break
11718 done
11719
11720 if test -z "$ac_cv_prog_NM" ; then
11721   set dummy nm
11722   if test $build = $host ; then
11723     NM="$2"
11724   else
11725     NM="${ncn_tool_prefix}$2"
11726   fi
11727 fi
11728
11729
11730
11731 if test -n "$RANLIB"; then
11732   ac_cv_prog_RANLIB=$RANLIB
11733 elif test -n "$ac_cv_prog_RANLIB"; then
11734   RANLIB=$ac_cv_prog_RANLIB
11735 fi
11736
11737 if test -n "$ac_cv_prog_RANLIB"; then
11738   for ncn_progname in ranlib; do
11739     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11740 set dummy ${ncn_progname}; ac_word=$2
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11742 $as_echo_n "checking for $ac_word... " >&6; }
11743 if ${ac_cv_prog_RANLIB+:} false; then :
11744   $as_echo_n "(cached) " >&6
11745 else
11746   if test -n "$RANLIB"; then
11747   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11748 else
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11751 do
11752   IFS=$as_save_IFS
11753   test -z "$as_dir" && as_dir=.
11754     for ac_exec_ext in '' $ac_executable_extensions; do
11755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11756     ac_cv_prog_RANLIB="${ncn_progname}"
11757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758     break 2
11759   fi
11760 done
11761   done
11762 IFS=$as_save_IFS
11763
11764 fi
11765 fi
11766 RANLIB=$ac_cv_prog_RANLIB
11767 if test -n "$RANLIB"; then
11768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11769 $as_echo "$RANLIB" >&6; }
11770 else
11771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11772 $as_echo "no" >&6; }
11773 fi
11774
11775
11776   done
11777 fi
11778
11779 for ncn_progname in ranlib; do
11780   if test -n "$ncn_tool_prefix"; then
11781     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11782 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11784 $as_echo_n "checking for $ac_word... " >&6; }
11785 if ${ac_cv_prog_RANLIB+:} false; then :
11786   $as_echo_n "(cached) " >&6
11787 else
11788   if test -n "$RANLIB"; then
11789   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11790 else
11791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792 for as_dir in $PATH
11793 do
11794   IFS=$as_save_IFS
11795   test -z "$as_dir" && as_dir=.
11796     for ac_exec_ext in '' $ac_executable_extensions; do
11797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11798     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11800     break 2
11801   fi
11802 done
11803   done
11804 IFS=$as_save_IFS
11805
11806 fi
11807 fi
11808 RANLIB=$ac_cv_prog_RANLIB
11809 if test -n "$RANLIB"; then
11810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11811 $as_echo "$RANLIB" >&6; }
11812 else
11813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814 $as_echo "no" >&6; }
11815 fi
11816
11817
11818   fi
11819   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11820     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11821 set dummy ${ncn_progname}; ac_word=$2
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11823 $as_echo_n "checking for $ac_word... " >&6; }
11824 if ${ac_cv_prog_RANLIB+:} false; then :
11825   $as_echo_n "(cached) " >&6
11826 else
11827   if test -n "$RANLIB"; then
11828   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11829 else
11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH
11832 do
11833   IFS=$as_save_IFS
11834   test -z "$as_dir" && as_dir=.
11835     for ac_exec_ext in '' $ac_executable_extensions; do
11836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11837     ac_cv_prog_RANLIB="${ncn_progname}"
11838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11839     break 2
11840   fi
11841 done
11842   done
11843 IFS=$as_save_IFS
11844
11845 fi
11846 fi
11847 RANLIB=$ac_cv_prog_RANLIB
11848 if test -n "$RANLIB"; then
11849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11850 $as_echo "$RANLIB" >&6; }
11851 else
11852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853 $as_echo "no" >&6; }
11854 fi
11855
11856
11857   fi
11858   test -n "$ac_cv_prog_RANLIB" && break
11859 done
11860
11861 if test -z "$ac_cv_prog_RANLIB" ; then
11862   RANLIB="true"
11863 fi
11864
11865
11866
11867 if test -n "$STRIP"; then
11868   ac_cv_prog_STRIP=$STRIP
11869 elif test -n "$ac_cv_prog_STRIP"; then
11870   STRIP=$ac_cv_prog_STRIP
11871 fi
11872
11873 if test -n "$ac_cv_prog_STRIP"; then
11874   for ncn_progname in strip; do
11875     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11876 set dummy ${ncn_progname}; ac_word=$2
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11878 $as_echo_n "checking for $ac_word... " >&6; }
11879 if ${ac_cv_prog_STRIP+:} false; then :
11880   $as_echo_n "(cached) " >&6
11881 else
11882   if test -n "$STRIP"; then
11883   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11884 else
11885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886 for as_dir in $PATH
11887 do
11888   IFS=$as_save_IFS
11889   test -z "$as_dir" && as_dir=.
11890     for ac_exec_ext in '' $ac_executable_extensions; do
11891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11892     ac_cv_prog_STRIP="${ncn_progname}"
11893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11894     break 2
11895   fi
11896 done
11897   done
11898 IFS=$as_save_IFS
11899
11900 fi
11901 fi
11902 STRIP=$ac_cv_prog_STRIP
11903 if test -n "$STRIP"; then
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11905 $as_echo "$STRIP" >&6; }
11906 else
11907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908 $as_echo "no" >&6; }
11909 fi
11910
11911
11912   done
11913 fi
11914
11915 for ncn_progname in strip; do
11916   if test -n "$ncn_tool_prefix"; then
11917     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11918 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11920 $as_echo_n "checking for $ac_word... " >&6; }
11921 if ${ac_cv_prog_STRIP+:} false; then :
11922   $as_echo_n "(cached) " >&6
11923 else
11924   if test -n "$STRIP"; then
11925   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11926 else
11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in $PATH
11929 do
11930   IFS=$as_save_IFS
11931   test -z "$as_dir" && as_dir=.
11932     for ac_exec_ext in '' $ac_executable_extensions; do
11933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11934     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11936     break 2
11937   fi
11938 done
11939   done
11940 IFS=$as_save_IFS
11941
11942 fi
11943 fi
11944 STRIP=$ac_cv_prog_STRIP
11945 if test -n "$STRIP"; then
11946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11947 $as_echo "$STRIP" >&6; }
11948 else
11949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 $as_echo "no" >&6; }
11951 fi
11952
11953
11954   fi
11955   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11956     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11957 set dummy ${ncn_progname}; ac_word=$2
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959 $as_echo_n "checking for $ac_word... " >&6; }
11960 if ${ac_cv_prog_STRIP+:} false; then :
11961   $as_echo_n "(cached) " >&6
11962 else
11963   if test -n "$STRIP"; then
11964   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11965 else
11966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967 for as_dir in $PATH
11968 do
11969   IFS=$as_save_IFS
11970   test -z "$as_dir" && as_dir=.
11971     for ac_exec_ext in '' $ac_executable_extensions; do
11972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11973     ac_cv_prog_STRIP="${ncn_progname}"
11974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11975     break 2
11976   fi
11977 done
11978   done
11979 IFS=$as_save_IFS
11980
11981 fi
11982 fi
11983 STRIP=$ac_cv_prog_STRIP
11984 if test -n "$STRIP"; then
11985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11986 $as_echo "$STRIP" >&6; }
11987 else
11988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989 $as_echo "no" >&6; }
11990 fi
11991
11992
11993   fi
11994   test -n "$ac_cv_prog_STRIP" && break
11995 done
11996
11997 if test -z "$ac_cv_prog_STRIP" ; then
11998   STRIP="true"
11999 fi
12000
12001
12002
12003 if test -n "$WINDRES"; then
12004   ac_cv_prog_WINDRES=$WINDRES
12005 elif test -n "$ac_cv_prog_WINDRES"; then
12006   WINDRES=$ac_cv_prog_WINDRES
12007 fi
12008
12009 if test -n "$ac_cv_prog_WINDRES"; then
12010   for ncn_progname in windres; do
12011     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12012 set dummy ${ncn_progname}; ac_word=$2
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12014 $as_echo_n "checking for $ac_word... " >&6; }
12015 if ${ac_cv_prog_WINDRES+:} false; then :
12016   $as_echo_n "(cached) " >&6
12017 else
12018   if test -n "$WINDRES"; then
12019   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12020 else
12021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12022 for as_dir in $PATH
12023 do
12024   IFS=$as_save_IFS
12025   test -z "$as_dir" && as_dir=.
12026     for ac_exec_ext in '' $ac_executable_extensions; do
12027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12028     ac_cv_prog_WINDRES="${ncn_progname}"
12029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12030     break 2
12031   fi
12032 done
12033   done
12034 IFS=$as_save_IFS
12035
12036 fi
12037 fi
12038 WINDRES=$ac_cv_prog_WINDRES
12039 if test -n "$WINDRES"; then
12040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12041 $as_echo "$WINDRES" >&6; }
12042 else
12043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044 $as_echo "no" >&6; }
12045 fi
12046
12047
12048   done
12049 fi
12050
12051 for ncn_progname in windres; do
12052   if test -n "$ncn_tool_prefix"; then
12053     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12054 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12056 $as_echo_n "checking for $ac_word... " >&6; }
12057 if ${ac_cv_prog_WINDRES+:} false; then :
12058   $as_echo_n "(cached) " >&6
12059 else
12060   if test -n "$WINDRES"; then
12061   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12062 else
12063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12065 do
12066   IFS=$as_save_IFS
12067   test -z "$as_dir" && as_dir=.
12068     for ac_exec_ext in '' $ac_executable_extensions; do
12069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12070     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12072     break 2
12073   fi
12074 done
12075   done
12076 IFS=$as_save_IFS
12077
12078 fi
12079 fi
12080 WINDRES=$ac_cv_prog_WINDRES
12081 if test -n "$WINDRES"; then
12082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12083 $as_echo "$WINDRES" >&6; }
12084 else
12085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086 $as_echo "no" >&6; }
12087 fi
12088
12089
12090   fi
12091   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12092     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12093 set dummy ${ncn_progname}; ac_word=$2
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12095 $as_echo_n "checking for $ac_word... " >&6; }
12096 if ${ac_cv_prog_WINDRES+:} false; then :
12097   $as_echo_n "(cached) " >&6
12098 else
12099   if test -n "$WINDRES"; then
12100   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12101 else
12102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103 for as_dir in $PATH
12104 do
12105   IFS=$as_save_IFS
12106   test -z "$as_dir" && as_dir=.
12107     for ac_exec_ext in '' $ac_executable_extensions; do
12108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12109     ac_cv_prog_WINDRES="${ncn_progname}"
12110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12111     break 2
12112   fi
12113 done
12114   done
12115 IFS=$as_save_IFS
12116
12117 fi
12118 fi
12119 WINDRES=$ac_cv_prog_WINDRES
12120 if test -n "$WINDRES"; then
12121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12122 $as_echo "$WINDRES" >&6; }
12123 else
12124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125 $as_echo "no" >&6; }
12126 fi
12127
12128
12129   fi
12130   test -n "$ac_cv_prog_WINDRES" && break
12131 done
12132
12133 if test -z "$ac_cv_prog_WINDRES" ; then
12134   set dummy windres
12135   if test $build = $host ; then
12136     WINDRES="$2"
12137   else
12138     WINDRES="${ncn_tool_prefix}$2"
12139   fi
12140 fi
12141
12142
12143
12144 if test -n "$WINDMC"; then
12145   ac_cv_prog_WINDMC=$WINDMC
12146 elif test -n "$ac_cv_prog_WINDMC"; then
12147   WINDMC=$ac_cv_prog_WINDMC
12148 fi
12149
12150 if test -n "$ac_cv_prog_WINDMC"; then
12151   for ncn_progname in windmc; do
12152     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12153 set dummy ${ncn_progname}; ac_word=$2
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12155 $as_echo_n "checking for $ac_word... " >&6; }
12156 if ${ac_cv_prog_WINDMC+:} false; then :
12157   $as_echo_n "(cached) " >&6
12158 else
12159   if test -n "$WINDMC"; then
12160   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12161 else
12162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12163 for as_dir in $PATH
12164 do
12165   IFS=$as_save_IFS
12166   test -z "$as_dir" && as_dir=.
12167     for ac_exec_ext in '' $ac_executable_extensions; do
12168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12169     ac_cv_prog_WINDMC="${ncn_progname}"
12170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12171     break 2
12172   fi
12173 done
12174   done
12175 IFS=$as_save_IFS
12176
12177 fi
12178 fi
12179 WINDMC=$ac_cv_prog_WINDMC
12180 if test -n "$WINDMC"; then
12181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12182 $as_echo "$WINDMC" >&6; }
12183 else
12184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185 $as_echo "no" >&6; }
12186 fi
12187
12188
12189   done
12190 fi
12191
12192 for ncn_progname in windmc; do
12193   if test -n "$ncn_tool_prefix"; then
12194     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12195 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197 $as_echo_n "checking for $ac_word... " >&6; }
12198 if ${ac_cv_prog_WINDMC+:} false; then :
12199   $as_echo_n "(cached) " >&6
12200 else
12201   if test -n "$WINDMC"; then
12202   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12203 else
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12206 do
12207   IFS=$as_save_IFS
12208   test -z "$as_dir" && as_dir=.
12209     for ac_exec_ext in '' $ac_executable_extensions; do
12210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12213     break 2
12214   fi
12215 done
12216   done
12217 IFS=$as_save_IFS
12218
12219 fi
12220 fi
12221 WINDMC=$ac_cv_prog_WINDMC
12222 if test -n "$WINDMC"; then
12223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12224 $as_echo "$WINDMC" >&6; }
12225 else
12226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12228 fi
12229
12230
12231   fi
12232   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12233     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12234 set dummy ${ncn_progname}; ac_word=$2
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12236 $as_echo_n "checking for $ac_word... " >&6; }
12237 if ${ac_cv_prog_WINDMC+:} false; then :
12238   $as_echo_n "(cached) " >&6
12239 else
12240   if test -n "$WINDMC"; then
12241   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12242 else
12243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244 for as_dir in $PATH
12245 do
12246   IFS=$as_save_IFS
12247   test -z "$as_dir" && as_dir=.
12248     for ac_exec_ext in '' $ac_executable_extensions; do
12249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12250     ac_cv_prog_WINDMC="${ncn_progname}"
12251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252     break 2
12253   fi
12254 done
12255   done
12256 IFS=$as_save_IFS
12257
12258 fi
12259 fi
12260 WINDMC=$ac_cv_prog_WINDMC
12261 if test -n "$WINDMC"; then
12262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12263 $as_echo "$WINDMC" >&6; }
12264 else
12265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12267 fi
12268
12269
12270   fi
12271   test -n "$ac_cv_prog_WINDMC" && break
12272 done
12273
12274 if test -z "$ac_cv_prog_WINDMC" ; then
12275   set dummy windmc
12276   if test $build = $host ; then
12277     WINDMC="$2"
12278   else
12279     WINDMC="${ncn_tool_prefix}$2"
12280   fi
12281 fi
12282
12283
12284
12285 if test -n "$OBJCOPY"; then
12286   ac_cv_prog_OBJCOPY=$OBJCOPY
12287 elif test -n "$ac_cv_prog_OBJCOPY"; then
12288   OBJCOPY=$ac_cv_prog_OBJCOPY
12289 fi
12290
12291 if test -n "$ac_cv_prog_OBJCOPY"; then
12292   for ncn_progname in objcopy; do
12293     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12294 set dummy ${ncn_progname}; ac_word=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296 $as_echo_n "checking for $ac_word... " >&6; }
12297 if ${ac_cv_prog_OBJCOPY+:} false; then :
12298   $as_echo_n "(cached) " >&6
12299 else
12300   if test -n "$OBJCOPY"; then
12301   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12302 else
12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304 for as_dir in $PATH
12305 do
12306   IFS=$as_save_IFS
12307   test -z "$as_dir" && as_dir=.
12308     for ac_exec_ext in '' $ac_executable_extensions; do
12309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12310     ac_cv_prog_OBJCOPY="${ncn_progname}"
12311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312     break 2
12313   fi
12314 done
12315   done
12316 IFS=$as_save_IFS
12317
12318 fi
12319 fi
12320 OBJCOPY=$ac_cv_prog_OBJCOPY
12321 if test -n "$OBJCOPY"; then
12322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12323 $as_echo "$OBJCOPY" >&6; }
12324 else
12325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12327 fi
12328
12329
12330   done
12331 fi
12332
12333 for ncn_progname in objcopy; do
12334   if test -n "$ncn_tool_prefix"; then
12335     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12336 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12338 $as_echo_n "checking for $ac_word... " >&6; }
12339 if ${ac_cv_prog_OBJCOPY+:} false; then :
12340   $as_echo_n "(cached) " >&6
12341 else
12342   if test -n "$OBJCOPY"; then
12343   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12344 else
12345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346 for as_dir in $PATH
12347 do
12348   IFS=$as_save_IFS
12349   test -z "$as_dir" && as_dir=.
12350     for ac_exec_ext in '' $ac_executable_extensions; do
12351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12352     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12354     break 2
12355   fi
12356 done
12357   done
12358 IFS=$as_save_IFS
12359
12360 fi
12361 fi
12362 OBJCOPY=$ac_cv_prog_OBJCOPY
12363 if test -n "$OBJCOPY"; then
12364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12365 $as_echo "$OBJCOPY" >&6; }
12366 else
12367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368 $as_echo "no" >&6; }
12369 fi
12370
12371
12372   fi
12373   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12374     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12375 set dummy ${ncn_progname}; ac_word=$2
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12377 $as_echo_n "checking for $ac_word... " >&6; }
12378 if ${ac_cv_prog_OBJCOPY+:} false; then :
12379   $as_echo_n "(cached) " >&6
12380 else
12381   if test -n "$OBJCOPY"; then
12382   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12383 else
12384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385 for as_dir in $PATH
12386 do
12387   IFS=$as_save_IFS
12388   test -z "$as_dir" && as_dir=.
12389     for ac_exec_ext in '' $ac_executable_extensions; do
12390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12391     ac_cv_prog_OBJCOPY="${ncn_progname}"
12392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12393     break 2
12394   fi
12395 done
12396   done
12397 IFS=$as_save_IFS
12398
12399 fi
12400 fi
12401 OBJCOPY=$ac_cv_prog_OBJCOPY
12402 if test -n "$OBJCOPY"; then
12403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12404 $as_echo "$OBJCOPY" >&6; }
12405 else
12406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407 $as_echo "no" >&6; }
12408 fi
12409
12410
12411   fi
12412   test -n "$ac_cv_prog_OBJCOPY" && break
12413 done
12414
12415 if test -z "$ac_cv_prog_OBJCOPY" ; then
12416   set dummy objcopy
12417   if test $build = $host ; then
12418     OBJCOPY="$2"
12419   else
12420     OBJCOPY="${ncn_tool_prefix}$2"
12421   fi
12422 fi
12423
12424
12425
12426 if test -n "$OBJDUMP"; then
12427   ac_cv_prog_OBJDUMP=$OBJDUMP
12428 elif test -n "$ac_cv_prog_OBJDUMP"; then
12429   OBJDUMP=$ac_cv_prog_OBJDUMP
12430 fi
12431
12432 if test -n "$ac_cv_prog_OBJDUMP"; then
12433   for ncn_progname in objdump; do
12434     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12435 set dummy ${ncn_progname}; ac_word=$2
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437 $as_echo_n "checking for $ac_word... " >&6; }
12438 if ${ac_cv_prog_OBJDUMP+:} false; then :
12439   $as_echo_n "(cached) " >&6
12440 else
12441   if test -n "$OBJDUMP"; then
12442   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12443 else
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in $PATH
12446 do
12447   IFS=$as_save_IFS
12448   test -z "$as_dir" && as_dir=.
12449     for ac_exec_ext in '' $ac_executable_extensions; do
12450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12451     ac_cv_prog_OBJDUMP="${ncn_progname}"
12452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12453     break 2
12454   fi
12455 done
12456   done
12457 IFS=$as_save_IFS
12458
12459 fi
12460 fi
12461 OBJDUMP=$ac_cv_prog_OBJDUMP
12462 if test -n "$OBJDUMP"; then
12463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12464 $as_echo "$OBJDUMP" >&6; }
12465 else
12466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467 $as_echo "no" >&6; }
12468 fi
12469
12470
12471   done
12472 fi
12473
12474 for ncn_progname in objdump; do
12475   if test -n "$ncn_tool_prefix"; then
12476     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12477 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12479 $as_echo_n "checking for $ac_word... " >&6; }
12480 if ${ac_cv_prog_OBJDUMP+:} false; then :
12481   $as_echo_n "(cached) " >&6
12482 else
12483   if test -n "$OBJDUMP"; then
12484   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12485 else
12486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487 for as_dir in $PATH
12488 do
12489   IFS=$as_save_IFS
12490   test -z "$as_dir" && as_dir=.
12491     for ac_exec_ext in '' $ac_executable_extensions; do
12492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12493     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12495     break 2
12496   fi
12497 done
12498   done
12499 IFS=$as_save_IFS
12500
12501 fi
12502 fi
12503 OBJDUMP=$ac_cv_prog_OBJDUMP
12504 if test -n "$OBJDUMP"; then
12505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12506 $as_echo "$OBJDUMP" >&6; }
12507 else
12508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509 $as_echo "no" >&6; }
12510 fi
12511
12512
12513   fi
12514   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12515     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12516 set dummy ${ncn_progname}; ac_word=$2
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12518 $as_echo_n "checking for $ac_word... " >&6; }
12519 if ${ac_cv_prog_OBJDUMP+:} false; then :
12520   $as_echo_n "(cached) " >&6
12521 else
12522   if test -n "$OBJDUMP"; then
12523   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12524 else
12525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526 for as_dir in $PATH
12527 do
12528   IFS=$as_save_IFS
12529   test -z "$as_dir" && as_dir=.
12530     for ac_exec_ext in '' $ac_executable_extensions; do
12531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12532     ac_cv_prog_OBJDUMP="${ncn_progname}"
12533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12534     break 2
12535   fi
12536 done
12537   done
12538 IFS=$as_save_IFS
12539
12540 fi
12541 fi
12542 OBJDUMP=$ac_cv_prog_OBJDUMP
12543 if test -n "$OBJDUMP"; then
12544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12545 $as_echo "$OBJDUMP" >&6; }
12546 else
12547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548 $as_echo "no" >&6; }
12549 fi
12550
12551
12552   fi
12553   test -n "$ac_cv_prog_OBJDUMP" && break
12554 done
12555
12556 if test -z "$ac_cv_prog_OBJDUMP" ; then
12557   set dummy objdump
12558   if test $build = $host ; then
12559     OBJDUMP="$2"
12560   else
12561     OBJDUMP="${ncn_tool_prefix}$2"
12562   fi
12563 fi
12564
12565
12566
12567 if test -n "$OTOOL"; then
12568   ac_cv_prog_OTOOL=$OTOOL
12569 elif test -n "$ac_cv_prog_OTOOL"; then
12570   OTOOL=$ac_cv_prog_OTOOL
12571 fi
12572
12573 if test -n "$ac_cv_prog_OTOOL"; then
12574   for ncn_progname in otool; do
12575     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12576 set dummy ${ncn_progname}; ac_word=$2
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578 $as_echo_n "checking for $ac_word... " >&6; }
12579 if ${ac_cv_prog_OTOOL+:} false; then :
12580   $as_echo_n "(cached) " >&6
12581 else
12582   if test -n "$OTOOL"; then
12583   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12584 else
12585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586 for as_dir in $PATH
12587 do
12588   IFS=$as_save_IFS
12589   test -z "$as_dir" && as_dir=.
12590     for ac_exec_ext in '' $ac_executable_extensions; do
12591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12592     ac_cv_prog_OTOOL="${ncn_progname}"
12593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12594     break 2
12595   fi
12596 done
12597   done
12598 IFS=$as_save_IFS
12599
12600 fi
12601 fi
12602 OTOOL=$ac_cv_prog_OTOOL
12603 if test -n "$OTOOL"; then
12604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12605 $as_echo "$OTOOL" >&6; }
12606 else
12607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12609 fi
12610
12611
12612   done
12613 fi
12614
12615 for ncn_progname in otool; do
12616   if test -n "$ncn_tool_prefix"; then
12617     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12618 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12620 $as_echo_n "checking for $ac_word... " >&6; }
12621 if ${ac_cv_prog_OTOOL+:} false; then :
12622   $as_echo_n "(cached) " >&6
12623 else
12624   if test -n "$OTOOL"; then
12625   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12626 else
12627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12628 for as_dir in $PATH
12629 do
12630   IFS=$as_save_IFS
12631   test -z "$as_dir" && as_dir=.
12632     for ac_exec_ext in '' $ac_executable_extensions; do
12633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12634     ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12636     break 2
12637   fi
12638 done
12639   done
12640 IFS=$as_save_IFS
12641
12642 fi
12643 fi
12644 OTOOL=$ac_cv_prog_OTOOL
12645 if test -n "$OTOOL"; then
12646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12647 $as_echo "$OTOOL" >&6; }
12648 else
12649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650 $as_echo "no" >&6; }
12651 fi
12652
12653
12654   fi
12655   if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12656     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12657 set dummy ${ncn_progname}; ac_word=$2
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12659 $as_echo_n "checking for $ac_word... " >&6; }
12660 if ${ac_cv_prog_OTOOL+:} false; then :
12661   $as_echo_n "(cached) " >&6
12662 else
12663   if test -n "$OTOOL"; then
12664   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12665 else
12666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667 for as_dir in $PATH
12668 do
12669   IFS=$as_save_IFS
12670   test -z "$as_dir" && as_dir=.
12671     for ac_exec_ext in '' $ac_executable_extensions; do
12672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12673     ac_cv_prog_OTOOL="${ncn_progname}"
12674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12675     break 2
12676   fi
12677 done
12678   done
12679 IFS=$as_save_IFS
12680
12681 fi
12682 fi
12683 OTOOL=$ac_cv_prog_OTOOL
12684 if test -n "$OTOOL"; then
12685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12686 $as_echo "$OTOOL" >&6; }
12687 else
12688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 $as_echo "no" >&6; }
12690 fi
12691
12692
12693   fi
12694   test -n "$ac_cv_prog_OTOOL" && break
12695 done
12696
12697 if test -z "$ac_cv_prog_OTOOL" ; then
12698   set dummy otool
12699   if test $build = $host ; then
12700     OTOOL="$2"
12701   else
12702     OTOOL="${ncn_tool_prefix}$2"
12703   fi
12704 fi
12705
12706
12707
12708 if test -n "$READELF"; then
12709   ac_cv_prog_READELF=$READELF
12710 elif test -n "$ac_cv_prog_READELF"; then
12711   READELF=$ac_cv_prog_READELF
12712 fi
12713
12714 if test -n "$ac_cv_prog_READELF"; then
12715   for ncn_progname in readelf; do
12716     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12717 set dummy ${ncn_progname}; ac_word=$2
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12719 $as_echo_n "checking for $ac_word... " >&6; }
12720 if ${ac_cv_prog_READELF+:} false; then :
12721   $as_echo_n "(cached) " >&6
12722 else
12723   if test -n "$READELF"; then
12724   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12725 else
12726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12727 for as_dir in $PATH
12728 do
12729   IFS=$as_save_IFS
12730   test -z "$as_dir" && as_dir=.
12731     for ac_exec_ext in '' $ac_executable_extensions; do
12732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12733     ac_cv_prog_READELF="${ncn_progname}"
12734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12735     break 2
12736   fi
12737 done
12738   done
12739 IFS=$as_save_IFS
12740
12741 fi
12742 fi
12743 READELF=$ac_cv_prog_READELF
12744 if test -n "$READELF"; then
12745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12746 $as_echo "$READELF" >&6; }
12747 else
12748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12750 fi
12751
12752
12753   done
12754 fi
12755
12756 for ncn_progname in readelf; do
12757   if test -n "$ncn_tool_prefix"; then
12758     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12759 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12761 $as_echo_n "checking for $ac_word... " >&6; }
12762 if ${ac_cv_prog_READELF+:} false; then :
12763   $as_echo_n "(cached) " >&6
12764 else
12765   if test -n "$READELF"; then
12766   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12767 else
12768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12769 for as_dir in $PATH
12770 do
12771   IFS=$as_save_IFS
12772   test -z "$as_dir" && as_dir=.
12773     for ac_exec_ext in '' $ac_executable_extensions; do
12774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12775     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12777     break 2
12778   fi
12779 done
12780   done
12781 IFS=$as_save_IFS
12782
12783 fi
12784 fi
12785 READELF=$ac_cv_prog_READELF
12786 if test -n "$READELF"; then
12787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12788 $as_echo "$READELF" >&6; }
12789 else
12790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791 $as_echo "no" >&6; }
12792 fi
12793
12794
12795   fi
12796   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12797     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12798 set dummy ${ncn_progname}; ac_word=$2
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12800 $as_echo_n "checking for $ac_word... " >&6; }
12801 if ${ac_cv_prog_READELF+:} false; then :
12802   $as_echo_n "(cached) " >&6
12803 else
12804   if test -n "$READELF"; then
12805   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12806 else
12807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12808 for as_dir in $PATH
12809 do
12810   IFS=$as_save_IFS
12811   test -z "$as_dir" && as_dir=.
12812     for ac_exec_ext in '' $ac_executable_extensions; do
12813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12814     ac_cv_prog_READELF="${ncn_progname}"
12815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12816     break 2
12817   fi
12818 done
12819   done
12820 IFS=$as_save_IFS
12821
12822 fi
12823 fi
12824 READELF=$ac_cv_prog_READELF
12825 if test -n "$READELF"; then
12826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12827 $as_echo "$READELF" >&6; }
12828 else
12829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12831 fi
12832
12833
12834   fi
12835   test -n "$ac_cv_prog_READELF" && break
12836 done
12837
12838 if test -z "$ac_cv_prog_READELF" ; then
12839   set dummy readelf
12840   if test $build = $host ; then
12841     READELF="$2"
12842   else
12843     READELF="${ncn_tool_prefix}$2"
12844   fi
12845 fi
12846
12847
12848
12849
12850
12851
12852
12853
12854 # Target tools.
12855
12856 # Check whether --with-build-time-tools was given.
12857 if test "${with_build_time_tools+set}" = set; then :
12858   withval=$with_build_time_tools; case x"$withval" in
12859      x/*) ;;
12860      *)
12861        with_build_time_tools=
12862        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12863 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12864        ;;
12865    esac
12866 else
12867   with_build_time_tools=
12868 fi
12869
12870
12871
12872
12873 if test -n "$CC_FOR_TARGET"; then
12874   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12875 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12876   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12877 fi
12878
12879 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12880   for ncn_progname in cc gcc; do
12881     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12882 set dummy ${ncn_progname}; ac_word=$2
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12884 $as_echo_n "checking for $ac_word... " >&6; }
12885 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12886   $as_echo_n "(cached) " >&6
12887 else
12888   if test -n "$CC_FOR_TARGET"; then
12889   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12890 else
12891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892 for as_dir in $PATH
12893 do
12894   IFS=$as_save_IFS
12895   test -z "$as_dir" && as_dir=.
12896     for ac_exec_ext in '' $ac_executable_extensions; do
12897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12898     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12900     break 2
12901   fi
12902 done
12903   done
12904 IFS=$as_save_IFS
12905
12906 fi
12907 fi
12908 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12909 if test -n "$CC_FOR_TARGET"; then
12910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12911 $as_echo "$CC_FOR_TARGET" >&6; }
12912 else
12913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914 $as_echo "no" >&6; }
12915 fi
12916
12917
12918   done
12919 fi
12920
12921 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12922   for ncn_progname in cc gcc; do
12923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12924 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12925     if test -x $with_build_time_tools/${ncn_progname}; then
12926       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12927       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12928 $as_echo "yes" >&6; }
12929       break
12930     else
12931       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932 $as_echo "no" >&6; }
12933     fi
12934   done
12935 fi
12936
12937 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12938   for ncn_progname in cc gcc; do
12939     if test -n "$ncn_target_tool_prefix"; then
12940       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12941 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943 $as_echo_n "checking for $ac_word... " >&6; }
12944 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12945   $as_echo_n "(cached) " >&6
12946 else
12947   if test -n "$CC_FOR_TARGET"; then
12948   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12949 else
12950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951 for as_dir in $PATH
12952 do
12953   IFS=$as_save_IFS
12954   test -z "$as_dir" && as_dir=.
12955     for ac_exec_ext in '' $ac_executable_extensions; do
12956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12957     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12959     break 2
12960   fi
12961 done
12962   done
12963 IFS=$as_save_IFS
12964
12965 fi
12966 fi
12967 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12968 if test -n "$CC_FOR_TARGET"; then
12969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12970 $as_echo "$CC_FOR_TARGET" >&6; }
12971 else
12972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12973 $as_echo "no" >&6; }
12974 fi
12975
12976
12977     fi
12978     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12979       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12980 set dummy ${ncn_progname}; ac_word=$2
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12982 $as_echo_n "checking for $ac_word... " >&6; }
12983 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12984   $as_echo_n "(cached) " >&6
12985 else
12986   if test -n "$CC_FOR_TARGET"; then
12987   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12988 else
12989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12990 for as_dir in $PATH
12991 do
12992   IFS=$as_save_IFS
12993   test -z "$as_dir" && as_dir=.
12994     for ac_exec_ext in '' $ac_executable_extensions; do
12995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12996     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12998     break 2
12999   fi
13000 done
13001   done
13002 IFS=$as_save_IFS
13003
13004 fi
13005 fi
13006 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13007 if test -n "$CC_FOR_TARGET"; then
13008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13009 $as_echo "$CC_FOR_TARGET" >&6; }
13010 else
13011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13012 $as_echo "no" >&6; }
13013 fi
13014
13015
13016     fi
13017     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13018   done
13019 fi
13020
13021 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13022   set dummy cc gcc
13023   if test $build = $target ; then
13024     CC_FOR_TARGET="$2"
13025   else
13026     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13027   fi
13028 else
13029   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13030 fi
13031
13032
13033
13034 if test -n "$CXX_FOR_TARGET"; then
13035   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13036 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13037   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13038 fi
13039
13040 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13041   for ncn_progname in c++ g++ cxx gxx; do
13042     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13043 set dummy ${ncn_progname}; ac_word=$2
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13045 $as_echo_n "checking for $ac_word... " >&6; }
13046 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13047   $as_echo_n "(cached) " >&6
13048 else
13049   if test -n "$CXX_FOR_TARGET"; then
13050   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13051 else
13052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13053 for as_dir in $PATH
13054 do
13055   IFS=$as_save_IFS
13056   test -z "$as_dir" && as_dir=.
13057     for ac_exec_ext in '' $ac_executable_extensions; do
13058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13059     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13061     break 2
13062   fi
13063 done
13064   done
13065 IFS=$as_save_IFS
13066
13067 fi
13068 fi
13069 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13070 if test -n "$CXX_FOR_TARGET"; then
13071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13072 $as_echo "$CXX_FOR_TARGET" >&6; }
13073 else
13074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075 $as_echo "no" >&6; }
13076 fi
13077
13078
13079   done
13080 fi
13081
13082 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13083   for ncn_progname in c++ g++ cxx gxx; do
13084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13085 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13086     if test -x $with_build_time_tools/${ncn_progname}; then
13087       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13088       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13089 $as_echo "yes" >&6; }
13090       break
13091     else
13092       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093 $as_echo "no" >&6; }
13094     fi
13095   done
13096 fi
13097
13098 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13099   for ncn_progname in c++ g++ cxx gxx; do
13100     if test -n "$ncn_target_tool_prefix"; then
13101       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13102 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13104 $as_echo_n "checking for $ac_word... " >&6; }
13105 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13106   $as_echo_n "(cached) " >&6
13107 else
13108   if test -n "$CXX_FOR_TARGET"; then
13109   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13110 else
13111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13112 for as_dir in $PATH
13113 do
13114   IFS=$as_save_IFS
13115   test -z "$as_dir" && as_dir=.
13116     for ac_exec_ext in '' $ac_executable_extensions; do
13117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13118     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13120     break 2
13121   fi
13122 done
13123   done
13124 IFS=$as_save_IFS
13125
13126 fi
13127 fi
13128 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13129 if test -n "$CXX_FOR_TARGET"; then
13130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13131 $as_echo "$CXX_FOR_TARGET" >&6; }
13132 else
13133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13134 $as_echo "no" >&6; }
13135 fi
13136
13137
13138     fi
13139     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13140       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13141 set dummy ${ncn_progname}; ac_word=$2
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13143 $as_echo_n "checking for $ac_word... " >&6; }
13144 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13145   $as_echo_n "(cached) " >&6
13146 else
13147   if test -n "$CXX_FOR_TARGET"; then
13148   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13149 else
13150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13151 for as_dir in $PATH
13152 do
13153   IFS=$as_save_IFS
13154   test -z "$as_dir" && as_dir=.
13155     for ac_exec_ext in '' $ac_executable_extensions; do
13156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13157     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13159     break 2
13160   fi
13161 done
13162   done
13163 IFS=$as_save_IFS
13164
13165 fi
13166 fi
13167 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13168 if test -n "$CXX_FOR_TARGET"; then
13169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13170 $as_echo "$CXX_FOR_TARGET" >&6; }
13171 else
13172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13173 $as_echo "no" >&6; }
13174 fi
13175
13176
13177     fi
13178     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13179   done
13180 fi
13181
13182 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13183   set dummy c++ g++ cxx gxx
13184   if test $build = $target ; then
13185     CXX_FOR_TARGET="$2"
13186   else
13187     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13188   fi
13189 else
13190   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13191 fi
13192
13193
13194
13195 if test -n "$GCC_FOR_TARGET"; then
13196   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13197 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13198   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13199 fi
13200
13201 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13202   for ncn_progname in gcc; do
13203     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13204 set dummy ${ncn_progname}; ac_word=$2
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13206 $as_echo_n "checking for $ac_word... " >&6; }
13207 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13208   $as_echo_n "(cached) " >&6
13209 else
13210   if test -n "$GCC_FOR_TARGET"; then
13211   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13212 else
13213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13214 for as_dir in $PATH
13215 do
13216   IFS=$as_save_IFS
13217   test -z "$as_dir" && as_dir=.
13218     for ac_exec_ext in '' $ac_executable_extensions; do
13219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13220     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13222     break 2
13223   fi
13224 done
13225   done
13226 IFS=$as_save_IFS
13227
13228 fi
13229 fi
13230 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13231 if test -n "$GCC_FOR_TARGET"; then
13232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13233 $as_echo "$GCC_FOR_TARGET" >&6; }
13234 else
13235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13236 $as_echo "no" >&6; }
13237 fi
13238
13239
13240   done
13241 fi
13242
13243 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13244   for ncn_progname in gcc; do
13245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13246 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13247     if test -x $with_build_time_tools/${ncn_progname}; then
13248       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13249       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13250 $as_echo "yes" >&6; }
13251       break
13252     else
13253       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13254 $as_echo "no" >&6; }
13255     fi
13256   done
13257 fi
13258
13259 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13260   for ncn_progname in gcc; do
13261     if test -n "$ncn_target_tool_prefix"; then
13262       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13263 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265 $as_echo_n "checking for $ac_word... " >&6; }
13266 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13267   $as_echo_n "(cached) " >&6
13268 else
13269   if test -n "$GCC_FOR_TARGET"; then
13270   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13271 else
13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13274 do
13275   IFS=$as_save_IFS
13276   test -z "$as_dir" && as_dir=.
13277     for ac_exec_ext in '' $ac_executable_extensions; do
13278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13279     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281     break 2
13282   fi
13283 done
13284   done
13285 IFS=$as_save_IFS
13286
13287 fi
13288 fi
13289 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13290 if test -n "$GCC_FOR_TARGET"; then
13291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13292 $as_echo "$GCC_FOR_TARGET" >&6; }
13293 else
13294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13296 fi
13297
13298
13299     fi
13300     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13301       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13302 set dummy ${ncn_progname}; ac_word=$2
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13304 $as_echo_n "checking for $ac_word... " >&6; }
13305 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13306   $as_echo_n "(cached) " >&6
13307 else
13308   if test -n "$GCC_FOR_TARGET"; then
13309   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13310 else
13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13313 do
13314   IFS=$as_save_IFS
13315   test -z "$as_dir" && as_dir=.
13316     for ac_exec_ext in '' $ac_executable_extensions; do
13317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13318     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13320     break 2
13321   fi
13322 done
13323   done
13324 IFS=$as_save_IFS
13325
13326 fi
13327 fi
13328 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13329 if test -n "$GCC_FOR_TARGET"; then
13330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13331 $as_echo "$GCC_FOR_TARGET" >&6; }
13332 else
13333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13335 fi
13336
13337
13338     fi
13339     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13340   done
13341 fi
13342
13343 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13344   GCC_FOR_TARGET="${CC_FOR_TARGET}"
13345 else
13346   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13347 fi
13348
13349
13350
13351 if test -n "$GFORTRAN_FOR_TARGET"; then
13352   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13353 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13354   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13355 fi
13356
13357 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13358   for ncn_progname in gfortran; do
13359     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13360 set dummy ${ncn_progname}; ac_word=$2
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13362 $as_echo_n "checking for $ac_word... " >&6; }
13363 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13364   $as_echo_n "(cached) " >&6
13365 else
13366   if test -n "$GFORTRAN_FOR_TARGET"; then
13367   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13368 else
13369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13370 for as_dir in $PATH
13371 do
13372   IFS=$as_save_IFS
13373   test -z "$as_dir" && as_dir=.
13374     for ac_exec_ext in '' $ac_executable_extensions; do
13375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13376     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13378     break 2
13379   fi
13380 done
13381   done
13382 IFS=$as_save_IFS
13383
13384 fi
13385 fi
13386 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13387 if test -n "$GFORTRAN_FOR_TARGET"; then
13388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13389 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13390 else
13391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13392 $as_echo "no" >&6; }
13393 fi
13394
13395
13396   done
13397 fi
13398
13399 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13400   for ncn_progname in gfortran; do
13401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13402 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13403     if test -x $with_build_time_tools/${ncn_progname}; then
13404       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13405       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13406 $as_echo "yes" >&6; }
13407       break
13408     else
13409       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410 $as_echo "no" >&6; }
13411     fi
13412   done
13413 fi
13414
13415 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13416   for ncn_progname in gfortran; do
13417     if test -n "$ncn_target_tool_prefix"; then
13418       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13419 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13421 $as_echo_n "checking for $ac_word... " >&6; }
13422 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13423   $as_echo_n "(cached) " >&6
13424 else
13425   if test -n "$GFORTRAN_FOR_TARGET"; then
13426   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13427 else
13428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429 for as_dir in $PATH
13430 do
13431   IFS=$as_save_IFS
13432   test -z "$as_dir" && as_dir=.
13433     for ac_exec_ext in '' $ac_executable_extensions; do
13434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13435     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13437     break 2
13438   fi
13439 done
13440   done
13441 IFS=$as_save_IFS
13442
13443 fi
13444 fi
13445 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13446 if test -n "$GFORTRAN_FOR_TARGET"; then
13447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13448 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13449 else
13450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451 $as_echo "no" >&6; }
13452 fi
13453
13454
13455     fi
13456     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13457       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13458 set dummy ${ncn_progname}; ac_word=$2
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13460 $as_echo_n "checking for $ac_word... " >&6; }
13461 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13462   $as_echo_n "(cached) " >&6
13463 else
13464   if test -n "$GFORTRAN_FOR_TARGET"; then
13465   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13466 else
13467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13468 for as_dir in $PATH
13469 do
13470   IFS=$as_save_IFS
13471   test -z "$as_dir" && as_dir=.
13472     for ac_exec_ext in '' $ac_executable_extensions; do
13473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13474     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13476     break 2
13477   fi
13478 done
13479   done
13480 IFS=$as_save_IFS
13481
13482 fi
13483 fi
13484 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13485 if test -n "$GFORTRAN_FOR_TARGET"; then
13486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13487 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13488 else
13489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13490 $as_echo "no" >&6; }
13491 fi
13492
13493
13494     fi
13495     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13496   done
13497 fi
13498
13499 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13500   set dummy gfortran
13501   if test $build = $target ; then
13502     GFORTRAN_FOR_TARGET="$2"
13503   else
13504     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13505   fi
13506 else
13507   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13508 fi
13509
13510
13511
13512 if test -n "$GOC_FOR_TARGET"; then
13513   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13514 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13515   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13516 fi
13517
13518 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13519   for ncn_progname in gccgo; do
13520     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13521 set dummy ${ncn_progname}; ac_word=$2
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13523 $as_echo_n "checking for $ac_word... " >&6; }
13524 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13525   $as_echo_n "(cached) " >&6
13526 else
13527   if test -n "$GOC_FOR_TARGET"; then
13528   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13529 else
13530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531 for as_dir in $PATH
13532 do
13533   IFS=$as_save_IFS
13534   test -z "$as_dir" && as_dir=.
13535     for ac_exec_ext in '' $ac_executable_extensions; do
13536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13537     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13539     break 2
13540   fi
13541 done
13542   done
13543 IFS=$as_save_IFS
13544
13545 fi
13546 fi
13547 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13548 if test -n "$GOC_FOR_TARGET"; then
13549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13550 $as_echo "$GOC_FOR_TARGET" >&6; }
13551 else
13552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553 $as_echo "no" >&6; }
13554 fi
13555
13556
13557   done
13558 fi
13559
13560 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13561   for ncn_progname in gccgo; do
13562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13563 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13564     if test -x $with_build_time_tools/${ncn_progname}; then
13565       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13566       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13567 $as_echo "yes" >&6; }
13568       break
13569     else
13570       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13571 $as_echo "no" >&6; }
13572     fi
13573   done
13574 fi
13575
13576 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13577   for ncn_progname in gccgo; do
13578     if test -n "$ncn_target_tool_prefix"; then
13579       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13580 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13582 $as_echo_n "checking for $ac_word... " >&6; }
13583 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13584   $as_echo_n "(cached) " >&6
13585 else
13586   if test -n "$GOC_FOR_TARGET"; then
13587   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13588 else
13589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590 for as_dir in $PATH
13591 do
13592   IFS=$as_save_IFS
13593   test -z "$as_dir" && as_dir=.
13594     for ac_exec_ext in '' $ac_executable_extensions; do
13595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13596     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13598     break 2
13599   fi
13600 done
13601   done
13602 IFS=$as_save_IFS
13603
13604 fi
13605 fi
13606 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13607 if test -n "$GOC_FOR_TARGET"; then
13608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13609 $as_echo "$GOC_FOR_TARGET" >&6; }
13610 else
13611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612 $as_echo "no" >&6; }
13613 fi
13614
13615
13616     fi
13617     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13618       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13619 set dummy ${ncn_progname}; ac_word=$2
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13621 $as_echo_n "checking for $ac_word... " >&6; }
13622 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13623   $as_echo_n "(cached) " >&6
13624 else
13625   if test -n "$GOC_FOR_TARGET"; then
13626   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13627 else
13628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629 for as_dir in $PATH
13630 do
13631   IFS=$as_save_IFS
13632   test -z "$as_dir" && as_dir=.
13633     for ac_exec_ext in '' $ac_executable_extensions; do
13634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13635     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13637     break 2
13638   fi
13639 done
13640   done
13641 IFS=$as_save_IFS
13642
13643 fi
13644 fi
13645 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13646 if test -n "$GOC_FOR_TARGET"; then
13647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13648 $as_echo "$GOC_FOR_TARGET" >&6; }
13649 else
13650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13651 $as_echo "no" >&6; }
13652 fi
13653
13654
13655     fi
13656     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13657   done
13658 fi
13659
13660 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13661   set dummy gccgo
13662   if test $build = $target ; then
13663     GOC_FOR_TARGET="$2"
13664   else
13665     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13666   fi
13667 else
13668   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13669 fi
13670
13671
13672
13673 if test -n "$GDC_FOR_TARGET"; then
13674   ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13675 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13676   GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13677 fi
13678
13679 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13680   for ncn_progname in gdc; do
13681     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13682 set dummy ${ncn_progname}; ac_word=$2
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13684 $as_echo_n "checking for $ac_word... " >&6; }
13685 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13686   $as_echo_n "(cached) " >&6
13687 else
13688   if test -n "$GDC_FOR_TARGET"; then
13689   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13690 else
13691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13692 for as_dir in $PATH
13693 do
13694   IFS=$as_save_IFS
13695   test -z "$as_dir" && as_dir=.
13696     for ac_exec_ext in '' $ac_executable_extensions; do
13697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13698     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13700     break 2
13701   fi
13702 done
13703   done
13704 IFS=$as_save_IFS
13705
13706 fi
13707 fi
13708 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13709 if test -n "$GDC_FOR_TARGET"; then
13710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13711 $as_echo "$GDC_FOR_TARGET" >&6; }
13712 else
13713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13714 $as_echo "no" >&6; }
13715 fi
13716
13717
13718   done
13719 fi
13720
13721 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13722   for ncn_progname in gdc; do
13723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13724 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13725     if test -x $with_build_time_tools/${ncn_progname}; then
13726       ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13727       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13728 $as_echo "yes" >&6; }
13729       break
13730     else
13731       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13732 $as_echo "no" >&6; }
13733     fi
13734   done
13735 fi
13736
13737 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13738   for ncn_progname in gdc; do
13739     if test -n "$ncn_target_tool_prefix"; then
13740       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13741 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13743 $as_echo_n "checking for $ac_word... " >&6; }
13744 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13745   $as_echo_n "(cached) " >&6
13746 else
13747   if test -n "$GDC_FOR_TARGET"; then
13748   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13749 else
13750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13751 for as_dir in $PATH
13752 do
13753   IFS=$as_save_IFS
13754   test -z "$as_dir" && as_dir=.
13755     for ac_exec_ext in '' $ac_executable_extensions; do
13756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13757     ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13759     break 2
13760   fi
13761 done
13762   done
13763 IFS=$as_save_IFS
13764
13765 fi
13766 fi
13767 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13768 if test -n "$GDC_FOR_TARGET"; then
13769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13770 $as_echo "$GDC_FOR_TARGET" >&6; }
13771 else
13772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13773 $as_echo "no" >&6; }
13774 fi
13775
13776
13777     fi
13778     if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13779       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13780 set dummy ${ncn_progname}; ac_word=$2
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13782 $as_echo_n "checking for $ac_word... " >&6; }
13783 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13784   $as_echo_n "(cached) " >&6
13785 else
13786   if test -n "$GDC_FOR_TARGET"; then
13787   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13788 else
13789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790 for as_dir in $PATH
13791 do
13792   IFS=$as_save_IFS
13793   test -z "$as_dir" && as_dir=.
13794     for ac_exec_ext in '' $ac_executable_extensions; do
13795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13796     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13798     break 2
13799   fi
13800 done
13801   done
13802 IFS=$as_save_IFS
13803
13804 fi
13805 fi
13806 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13807 if test -n "$GDC_FOR_TARGET"; then
13808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13809 $as_echo "$GDC_FOR_TARGET" >&6; }
13810 else
13811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13812 $as_echo "no" >&6; }
13813 fi
13814
13815
13816     fi
13817     test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13818   done
13819 fi
13820
13821 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13822   set dummy gdc
13823   if test $build = $target ; then
13824     GDC_FOR_TARGET="$2"
13825   else
13826     GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13827   fi
13828 else
13829   GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13830 fi
13831
13832
13833
13834 cat > conftest.c << \EOF
13835 #ifdef __GNUC__
13836   gcc_yay;
13837 #endif
13838 EOF
13839 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13840   have_gcc_for_target=yes
13841 else
13842   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13843   have_gcc_for_target=no
13844 fi
13845 rm conftest.c
13846
13847
13848
13849
13850 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13851   if test -n "$with_build_time_tools"; then
13852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13853 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13854     if test -x $with_build_time_tools/ar; then
13855       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13856       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13857       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13858 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13859     else
13860       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861 $as_echo "no" >&6; }
13862     fi
13863   elif test $build != $host && test $have_gcc_for_target = yes; then
13864     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13865     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13866     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13867   fi
13868 fi
13869 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13870   # Extract the first word of "ar", so it can be a program name with args.
13871 set dummy ar; ac_word=$2
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13873 $as_echo_n "checking for $ac_word... " >&6; }
13874 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13875   $as_echo_n "(cached) " >&6
13876 else
13877   case $AR_FOR_TARGET in
13878   [\\/]* | ?:[\\/]*)
13879   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13880   ;;
13881   *)
13882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13883 for as_dir in $gcc_cv_tool_dirs
13884 do
13885   IFS=$as_save_IFS
13886   test -z "$as_dir" && as_dir=.
13887     for ac_exec_ext in '' $ac_executable_extensions; do
13888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13889     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13891     break 2
13892   fi
13893 done
13894   done
13895 IFS=$as_save_IFS
13896
13897   ;;
13898 esac
13899 fi
13900 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13901 if test -n "$AR_FOR_TARGET"; then
13902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13903 $as_echo "$AR_FOR_TARGET" >&6; }
13904 else
13905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906 $as_echo "no" >&6; }
13907 fi
13908
13909
13910 fi
13911 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13912
13913
13914 if test -n "$AR_FOR_TARGET"; then
13915   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13916 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13917   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13918 fi
13919
13920 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13921   for ncn_progname in ar; do
13922     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13923 set dummy ${ncn_progname}; ac_word=$2
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13925 $as_echo_n "checking for $ac_word... " >&6; }
13926 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13927   $as_echo_n "(cached) " >&6
13928 else
13929   if test -n "$AR_FOR_TARGET"; then
13930   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13931 else
13932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13933 for as_dir in $PATH
13934 do
13935   IFS=$as_save_IFS
13936   test -z "$as_dir" && as_dir=.
13937     for ac_exec_ext in '' $ac_executable_extensions; do
13938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13939     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13941     break 2
13942   fi
13943 done
13944   done
13945 IFS=$as_save_IFS
13946
13947 fi
13948 fi
13949 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13950 if test -n "$AR_FOR_TARGET"; then
13951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13952 $as_echo "$AR_FOR_TARGET" >&6; }
13953 else
13954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13955 $as_echo "no" >&6; }
13956 fi
13957
13958
13959   done
13960 fi
13961
13962 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13963   for ncn_progname in ar; do
13964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13965 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13966     if test -x $with_build_time_tools/${ncn_progname}; then
13967       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13968       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13969 $as_echo "yes" >&6; }
13970       break
13971     else
13972       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13973 $as_echo "no" >&6; }
13974     fi
13975   done
13976 fi
13977
13978 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13979   for ncn_progname in ar; do
13980     if test -n "$ncn_target_tool_prefix"; then
13981       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13982 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13984 $as_echo_n "checking for $ac_word... " >&6; }
13985 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13986   $as_echo_n "(cached) " >&6
13987 else
13988   if test -n "$AR_FOR_TARGET"; then
13989   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13990 else
13991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992 for as_dir in $PATH
13993 do
13994   IFS=$as_save_IFS
13995   test -z "$as_dir" && as_dir=.
13996     for ac_exec_ext in '' $ac_executable_extensions; do
13997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13998     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14000     break 2
14001   fi
14002 done
14003   done
14004 IFS=$as_save_IFS
14005
14006 fi
14007 fi
14008 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14009 if test -n "$AR_FOR_TARGET"; then
14010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14011 $as_echo "$AR_FOR_TARGET" >&6; }
14012 else
14013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14014 $as_echo "no" >&6; }
14015 fi
14016
14017
14018     fi
14019     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14020       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14021 set dummy ${ncn_progname}; ac_word=$2
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14023 $as_echo_n "checking for $ac_word... " >&6; }
14024 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14025   $as_echo_n "(cached) " >&6
14026 else
14027   if test -n "$AR_FOR_TARGET"; then
14028   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14029 else
14030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14031 for as_dir in $PATH
14032 do
14033   IFS=$as_save_IFS
14034   test -z "$as_dir" && as_dir=.
14035     for ac_exec_ext in '' $ac_executable_extensions; do
14036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14037     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14039     break 2
14040   fi
14041 done
14042   done
14043 IFS=$as_save_IFS
14044
14045 fi
14046 fi
14047 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14048 if test -n "$AR_FOR_TARGET"; then
14049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14050 $as_echo "$AR_FOR_TARGET" >&6; }
14051 else
14052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053 $as_echo "no" >&6; }
14054 fi
14055
14056
14057     fi
14058     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14059   done
14060 fi
14061
14062 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14063   set dummy ar
14064   if test $build = $target ; then
14065     AR_FOR_TARGET="$2"
14066   else
14067     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14068   fi
14069 else
14070   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14071 fi
14072
14073 else
14074   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14075 fi
14076
14077
14078
14079
14080 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14081   if test -n "$with_build_time_tools"; then
14082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14083 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14084     if test -x $with_build_time_tools/as; then
14085       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14086       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14087       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14088 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14089     else
14090       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14091 $as_echo "no" >&6; }
14092     fi
14093   elif test $build != $host && test $have_gcc_for_target = yes; then
14094     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14095     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14096     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14097   fi
14098 fi
14099 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14100   # Extract the first word of "as", so it can be a program name with args.
14101 set dummy as; ac_word=$2
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14103 $as_echo_n "checking for $ac_word... " >&6; }
14104 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14105   $as_echo_n "(cached) " >&6
14106 else
14107   case $AS_FOR_TARGET in
14108   [\\/]* | ?:[\\/]*)
14109   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14110   ;;
14111   *)
14112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14113 for as_dir in $gcc_cv_tool_dirs
14114 do
14115   IFS=$as_save_IFS
14116   test -z "$as_dir" && as_dir=.
14117     for ac_exec_ext in '' $ac_executable_extensions; do
14118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14119     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14121     break 2
14122   fi
14123 done
14124   done
14125 IFS=$as_save_IFS
14126
14127   ;;
14128 esac
14129 fi
14130 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14131 if test -n "$AS_FOR_TARGET"; then
14132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14133 $as_echo "$AS_FOR_TARGET" >&6; }
14134 else
14135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14136 $as_echo "no" >&6; }
14137 fi
14138
14139
14140 fi
14141 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14142
14143
14144 if test -n "$AS_FOR_TARGET"; then
14145   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14146 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14147   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14148 fi
14149
14150 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14151   for ncn_progname in as; do
14152     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14153 set dummy ${ncn_progname}; ac_word=$2
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14155 $as_echo_n "checking for $ac_word... " >&6; }
14156 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14157   $as_echo_n "(cached) " >&6
14158 else
14159   if test -n "$AS_FOR_TARGET"; then
14160   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14161 else
14162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14163 for as_dir in $PATH
14164 do
14165   IFS=$as_save_IFS
14166   test -z "$as_dir" && as_dir=.
14167     for ac_exec_ext in '' $ac_executable_extensions; do
14168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14169     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14171     break 2
14172   fi
14173 done
14174   done
14175 IFS=$as_save_IFS
14176
14177 fi
14178 fi
14179 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14180 if test -n "$AS_FOR_TARGET"; then
14181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14182 $as_echo "$AS_FOR_TARGET" >&6; }
14183 else
14184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14185 $as_echo "no" >&6; }
14186 fi
14187
14188
14189   done
14190 fi
14191
14192 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14193   for ncn_progname in as; do
14194     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14195 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14196     if test -x $with_build_time_tools/${ncn_progname}; then
14197       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14198       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14199 $as_echo "yes" >&6; }
14200       break
14201     else
14202       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14203 $as_echo "no" >&6; }
14204     fi
14205   done
14206 fi
14207
14208 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14209   for ncn_progname in as; do
14210     if test -n "$ncn_target_tool_prefix"; then
14211       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14212 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14214 $as_echo_n "checking for $ac_word... " >&6; }
14215 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14216   $as_echo_n "(cached) " >&6
14217 else
14218   if test -n "$AS_FOR_TARGET"; then
14219   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14220 else
14221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14222 for as_dir in $PATH
14223 do
14224   IFS=$as_save_IFS
14225   test -z "$as_dir" && as_dir=.
14226     for ac_exec_ext in '' $ac_executable_extensions; do
14227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14228     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14230     break 2
14231   fi
14232 done
14233   done
14234 IFS=$as_save_IFS
14235
14236 fi
14237 fi
14238 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14239 if test -n "$AS_FOR_TARGET"; then
14240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14241 $as_echo "$AS_FOR_TARGET" >&6; }
14242 else
14243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14244 $as_echo "no" >&6; }
14245 fi
14246
14247
14248     fi
14249     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14250       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14251 set dummy ${ncn_progname}; ac_word=$2
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14253 $as_echo_n "checking for $ac_word... " >&6; }
14254 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14255   $as_echo_n "(cached) " >&6
14256 else
14257   if test -n "$AS_FOR_TARGET"; then
14258   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14259 else
14260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14261 for as_dir in $PATH
14262 do
14263   IFS=$as_save_IFS
14264   test -z "$as_dir" && as_dir=.
14265     for ac_exec_ext in '' $ac_executable_extensions; do
14266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14267     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14269     break 2
14270   fi
14271 done
14272   done
14273 IFS=$as_save_IFS
14274
14275 fi
14276 fi
14277 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14278 if test -n "$AS_FOR_TARGET"; then
14279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14280 $as_echo "$AS_FOR_TARGET" >&6; }
14281 else
14282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14283 $as_echo "no" >&6; }
14284 fi
14285
14286
14287     fi
14288     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14289   done
14290 fi
14291
14292 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14293   set dummy as
14294   if test $build = $target ; then
14295     AS_FOR_TARGET="$2"
14296   else
14297     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14298   fi
14299 else
14300   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14301 fi
14302
14303 else
14304   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14305 fi
14306
14307
14308
14309
14310 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14311   if test -n "$with_build_time_tools"; then
14312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14313 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14314     if test -x $with_build_time_tools/dlltool; then
14315       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14316       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14317       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14318 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14319     else
14320       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14321 $as_echo "no" >&6; }
14322     fi
14323   elif test $build != $host && test $have_gcc_for_target = yes; then
14324     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14325     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14326     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14327   fi
14328 fi
14329 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14330   # Extract the first word of "dlltool", so it can be a program name with args.
14331 set dummy dlltool; ac_word=$2
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14333 $as_echo_n "checking for $ac_word... " >&6; }
14334 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14335   $as_echo_n "(cached) " >&6
14336 else
14337   case $DLLTOOL_FOR_TARGET in
14338   [\\/]* | ?:[\\/]*)
14339   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14340   ;;
14341   *)
14342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14343 for as_dir in $gcc_cv_tool_dirs
14344 do
14345   IFS=$as_save_IFS
14346   test -z "$as_dir" && as_dir=.
14347     for ac_exec_ext in '' $ac_executable_extensions; do
14348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14349     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14351     break 2
14352   fi
14353 done
14354   done
14355 IFS=$as_save_IFS
14356
14357   ;;
14358 esac
14359 fi
14360 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14361 if test -n "$DLLTOOL_FOR_TARGET"; then
14362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14363 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14364 else
14365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14366 $as_echo "no" >&6; }
14367 fi
14368
14369
14370 fi
14371 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14372
14373
14374 if test -n "$DLLTOOL_FOR_TARGET"; then
14375   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14376 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14377   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14378 fi
14379
14380 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14381   for ncn_progname in dlltool; do
14382     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14383 set dummy ${ncn_progname}; ac_word=$2
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14385 $as_echo_n "checking for $ac_word... " >&6; }
14386 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14387   $as_echo_n "(cached) " >&6
14388 else
14389   if test -n "$DLLTOOL_FOR_TARGET"; then
14390   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14391 else
14392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14393 for as_dir in $PATH
14394 do
14395   IFS=$as_save_IFS
14396   test -z "$as_dir" && as_dir=.
14397     for ac_exec_ext in '' $ac_executable_extensions; do
14398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14399     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14401     break 2
14402   fi
14403 done
14404   done
14405 IFS=$as_save_IFS
14406
14407 fi
14408 fi
14409 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14410 if test -n "$DLLTOOL_FOR_TARGET"; then
14411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14412 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14413 else
14414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14415 $as_echo "no" >&6; }
14416 fi
14417
14418
14419   done
14420 fi
14421
14422 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14423   for ncn_progname in dlltool; do
14424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14425 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14426     if test -x $with_build_time_tools/${ncn_progname}; then
14427       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14428       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14429 $as_echo "yes" >&6; }
14430       break
14431     else
14432       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14433 $as_echo "no" >&6; }
14434     fi
14435   done
14436 fi
14437
14438 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14439   for ncn_progname in dlltool; do
14440     if test -n "$ncn_target_tool_prefix"; then
14441       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14442 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14444 $as_echo_n "checking for $ac_word... " >&6; }
14445 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14446   $as_echo_n "(cached) " >&6
14447 else
14448   if test -n "$DLLTOOL_FOR_TARGET"; then
14449   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14450 else
14451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14452 for as_dir in $PATH
14453 do
14454   IFS=$as_save_IFS
14455   test -z "$as_dir" && as_dir=.
14456     for ac_exec_ext in '' $ac_executable_extensions; do
14457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14458     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14460     break 2
14461   fi
14462 done
14463   done
14464 IFS=$as_save_IFS
14465
14466 fi
14467 fi
14468 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14469 if test -n "$DLLTOOL_FOR_TARGET"; then
14470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14471 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14472 else
14473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14474 $as_echo "no" >&6; }
14475 fi
14476
14477
14478     fi
14479     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14480       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14481 set dummy ${ncn_progname}; ac_word=$2
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14483 $as_echo_n "checking for $ac_word... " >&6; }
14484 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14485   $as_echo_n "(cached) " >&6
14486 else
14487   if test -n "$DLLTOOL_FOR_TARGET"; then
14488   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14489 else
14490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14491 for as_dir in $PATH
14492 do
14493   IFS=$as_save_IFS
14494   test -z "$as_dir" && as_dir=.
14495     for ac_exec_ext in '' $ac_executable_extensions; do
14496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14497     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14499     break 2
14500   fi
14501 done
14502   done
14503 IFS=$as_save_IFS
14504
14505 fi
14506 fi
14507 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14508 if test -n "$DLLTOOL_FOR_TARGET"; then
14509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14510 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14511 else
14512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14513 $as_echo "no" >&6; }
14514 fi
14515
14516
14517     fi
14518     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14519   done
14520 fi
14521
14522 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14523   set dummy dlltool
14524   if test $build = $target ; then
14525     DLLTOOL_FOR_TARGET="$2"
14526   else
14527     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14528   fi
14529 else
14530   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14531 fi
14532
14533 else
14534   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14535 fi
14536
14537
14538
14539
14540 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14541   if test -n "$with_build_time_tools"; then
14542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14543 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14544     if test -x $with_build_time_tools/dsymutil; then
14545       DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14546       ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14547       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14548 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14549     else
14550       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14551 $as_echo "no" >&6; }
14552     fi
14553   elif test $build != $host && test $have_gcc_for_target = yes; then
14554     DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14555     test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14556     test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14557   fi
14558 fi
14559 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14560   # Extract the first word of "dsymutil", so it can be a program name with args.
14561 set dummy dsymutil; ac_word=$2
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14563 $as_echo_n "checking for $ac_word... " >&6; }
14564 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14565   $as_echo_n "(cached) " >&6
14566 else
14567   case $DSYMUTIL_FOR_TARGET in
14568   [\\/]* | ?:[\\/]*)
14569   ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14570   ;;
14571   *)
14572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14573 for as_dir in $gcc_cv_tool_dirs
14574 do
14575   IFS=$as_save_IFS
14576   test -z "$as_dir" && as_dir=.
14577     for ac_exec_ext in '' $ac_executable_extensions; do
14578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14579     ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14581     break 2
14582   fi
14583 done
14584   done
14585 IFS=$as_save_IFS
14586
14587   ;;
14588 esac
14589 fi
14590 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14591 if test -n "$DSYMUTIL_FOR_TARGET"; then
14592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14593 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14594 else
14595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14596 $as_echo "no" >&6; }
14597 fi
14598
14599
14600 fi
14601 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14602
14603
14604 if test -n "$DSYMUTIL_FOR_TARGET"; then
14605   ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14606 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14607   DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14608 fi
14609
14610 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14611   for ncn_progname in dsymutil; do
14612     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14613 set dummy ${ncn_progname}; ac_word=$2
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14615 $as_echo_n "checking for $ac_word... " >&6; }
14616 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14617   $as_echo_n "(cached) " >&6
14618 else
14619   if test -n "$DSYMUTIL_FOR_TARGET"; then
14620   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14621 else
14622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14623 for as_dir in $PATH
14624 do
14625   IFS=$as_save_IFS
14626   test -z "$as_dir" && as_dir=.
14627     for ac_exec_ext in '' $ac_executable_extensions; do
14628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14629     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14631     break 2
14632   fi
14633 done
14634   done
14635 IFS=$as_save_IFS
14636
14637 fi
14638 fi
14639 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14640 if test -n "$DSYMUTIL_FOR_TARGET"; then
14641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14642 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14643 else
14644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14645 $as_echo "no" >&6; }
14646 fi
14647
14648
14649   done
14650 fi
14651
14652 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14653   for ncn_progname in dsymutil; do
14654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14655 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14656     if test -x $with_build_time_tools/${ncn_progname}; then
14657       ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14658       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14659 $as_echo "yes" >&6; }
14660       break
14661     else
14662       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14663 $as_echo "no" >&6; }
14664     fi
14665   done
14666 fi
14667
14668 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14669   for ncn_progname in dsymutil; do
14670     if test -n "$ncn_target_tool_prefix"; then
14671       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14672 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14674 $as_echo_n "checking for $ac_word... " >&6; }
14675 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14676   $as_echo_n "(cached) " >&6
14677 else
14678   if test -n "$DSYMUTIL_FOR_TARGET"; then
14679   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14680 else
14681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14682 for as_dir in $PATH
14683 do
14684   IFS=$as_save_IFS
14685   test -z "$as_dir" && as_dir=.
14686     for ac_exec_ext in '' $ac_executable_extensions; do
14687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14688     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14690     break 2
14691   fi
14692 done
14693   done
14694 IFS=$as_save_IFS
14695
14696 fi
14697 fi
14698 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14699 if test -n "$DSYMUTIL_FOR_TARGET"; then
14700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14701 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14702 else
14703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14704 $as_echo "no" >&6; }
14705 fi
14706
14707
14708     fi
14709     if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14710       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14711 set dummy ${ncn_progname}; ac_word=$2
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14713 $as_echo_n "checking for $ac_word... " >&6; }
14714 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14715   $as_echo_n "(cached) " >&6
14716 else
14717   if test -n "$DSYMUTIL_FOR_TARGET"; then
14718   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14719 else
14720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14721 for as_dir in $PATH
14722 do
14723   IFS=$as_save_IFS
14724   test -z "$as_dir" && as_dir=.
14725     for ac_exec_ext in '' $ac_executable_extensions; do
14726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14727     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14729     break 2
14730   fi
14731 done
14732   done
14733 IFS=$as_save_IFS
14734
14735 fi
14736 fi
14737 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14738 if test -n "$DSYMUTIL_FOR_TARGET"; then
14739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14740 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14741 else
14742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14743 $as_echo "no" >&6; }
14744 fi
14745
14746
14747     fi
14748     test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14749   done
14750 fi
14751
14752 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14753   set dummy dsymutil
14754   if test $build = $target ; then
14755     DSYMUTIL_FOR_TARGET="$2"
14756   else
14757     DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14758   fi
14759 else
14760   DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14761 fi
14762
14763 else
14764   DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14765 fi
14766
14767
14768
14769
14770 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14771   if test -n "$with_build_time_tools"; then
14772     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14773 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14774     if test -x $with_build_time_tools/ld; then
14775       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14776       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14777       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14778 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14779     else
14780       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14781 $as_echo "no" >&6; }
14782     fi
14783   elif test $build != $host && test $have_gcc_for_target = yes; then
14784     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14785     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14786     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14787   fi
14788 fi
14789 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14790   # Extract the first word of "ld", so it can be a program name with args.
14791 set dummy ld; ac_word=$2
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14793 $as_echo_n "checking for $ac_word... " >&6; }
14794 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14795   $as_echo_n "(cached) " >&6
14796 else
14797   case $LD_FOR_TARGET in
14798   [\\/]* | ?:[\\/]*)
14799   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14800   ;;
14801   *)
14802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14803 for as_dir in $gcc_cv_tool_dirs
14804 do
14805   IFS=$as_save_IFS
14806   test -z "$as_dir" && as_dir=.
14807     for ac_exec_ext in '' $ac_executable_extensions; do
14808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14809     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14811     break 2
14812   fi
14813 done
14814   done
14815 IFS=$as_save_IFS
14816
14817   ;;
14818 esac
14819 fi
14820 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14821 if test -n "$LD_FOR_TARGET"; then
14822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14823 $as_echo "$LD_FOR_TARGET" >&6; }
14824 else
14825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14826 $as_echo "no" >&6; }
14827 fi
14828
14829
14830 fi
14831 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14832
14833
14834 if test -n "$LD_FOR_TARGET"; then
14835   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14836 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14837   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14838 fi
14839
14840 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14841   for ncn_progname in ld; do
14842     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14843 set dummy ${ncn_progname}; ac_word=$2
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14845 $as_echo_n "checking for $ac_word... " >&6; }
14846 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14847   $as_echo_n "(cached) " >&6
14848 else
14849   if test -n "$LD_FOR_TARGET"; then
14850   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14851 else
14852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14853 for as_dir in $PATH
14854 do
14855   IFS=$as_save_IFS
14856   test -z "$as_dir" && as_dir=.
14857     for ac_exec_ext in '' $ac_executable_extensions; do
14858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14859     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14861     break 2
14862   fi
14863 done
14864   done
14865 IFS=$as_save_IFS
14866
14867 fi
14868 fi
14869 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14870 if test -n "$LD_FOR_TARGET"; then
14871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14872 $as_echo "$LD_FOR_TARGET" >&6; }
14873 else
14874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14875 $as_echo "no" >&6; }
14876 fi
14877
14878
14879   done
14880 fi
14881
14882 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14883   for ncn_progname in ld; do
14884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14885 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14886     if test -x $with_build_time_tools/${ncn_progname}; then
14887       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14888       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14889 $as_echo "yes" >&6; }
14890       break
14891     else
14892       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14893 $as_echo "no" >&6; }
14894     fi
14895   done
14896 fi
14897
14898 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14899   for ncn_progname in ld; do
14900     if test -n "$ncn_target_tool_prefix"; then
14901       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14902 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14904 $as_echo_n "checking for $ac_word... " >&6; }
14905 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14906   $as_echo_n "(cached) " >&6
14907 else
14908   if test -n "$LD_FOR_TARGET"; then
14909   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14910 else
14911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14912 for as_dir in $PATH
14913 do
14914   IFS=$as_save_IFS
14915   test -z "$as_dir" && as_dir=.
14916     for ac_exec_ext in '' $ac_executable_extensions; do
14917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14918     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14920     break 2
14921   fi
14922 done
14923   done
14924 IFS=$as_save_IFS
14925
14926 fi
14927 fi
14928 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14929 if test -n "$LD_FOR_TARGET"; then
14930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14931 $as_echo "$LD_FOR_TARGET" >&6; }
14932 else
14933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14934 $as_echo "no" >&6; }
14935 fi
14936
14937
14938     fi
14939     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14940       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14941 set dummy ${ncn_progname}; ac_word=$2
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14943 $as_echo_n "checking for $ac_word... " >&6; }
14944 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14945   $as_echo_n "(cached) " >&6
14946 else
14947   if test -n "$LD_FOR_TARGET"; then
14948   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14949 else
14950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14951 for as_dir in $PATH
14952 do
14953   IFS=$as_save_IFS
14954   test -z "$as_dir" && as_dir=.
14955     for ac_exec_ext in '' $ac_executable_extensions; do
14956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14957     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14959     break 2
14960   fi
14961 done
14962   done
14963 IFS=$as_save_IFS
14964
14965 fi
14966 fi
14967 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14968 if test -n "$LD_FOR_TARGET"; then
14969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14970 $as_echo "$LD_FOR_TARGET" >&6; }
14971 else
14972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14973 $as_echo "no" >&6; }
14974 fi
14975
14976
14977     fi
14978     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14979   done
14980 fi
14981
14982 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14983   set dummy ld
14984   if test $build = $target ; then
14985     LD_FOR_TARGET="$2"
14986   else
14987     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14988   fi
14989 else
14990   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14991 fi
14992
14993 else
14994   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14995 fi
14996
14997
14998
14999
15000 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15001   if test -n "$with_build_time_tools"; then
15002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15003 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15004     if test -x $with_build_time_tools/lipo; then
15005       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15006       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15007       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15008 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15009     else
15010       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15011 $as_echo "no" >&6; }
15012     fi
15013   elif test $build != $host && test $have_gcc_for_target = yes; then
15014     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15015     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15016     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15017   fi
15018 fi
15019 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15020   # Extract the first word of "lipo", so it can be a program name with args.
15021 set dummy lipo; ac_word=$2
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15023 $as_echo_n "checking for $ac_word... " >&6; }
15024 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15025   $as_echo_n "(cached) " >&6
15026 else
15027   case $LIPO_FOR_TARGET in
15028   [\\/]* | ?:[\\/]*)
15029   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15030   ;;
15031   *)
15032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15033 for as_dir in $gcc_cv_tool_dirs
15034 do
15035   IFS=$as_save_IFS
15036   test -z "$as_dir" && as_dir=.
15037     for ac_exec_ext in '' $ac_executable_extensions; do
15038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15039     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15041     break 2
15042   fi
15043 done
15044   done
15045 IFS=$as_save_IFS
15046
15047   ;;
15048 esac
15049 fi
15050 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15051 if test -n "$LIPO_FOR_TARGET"; then
15052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15053 $as_echo "$LIPO_FOR_TARGET" >&6; }
15054 else
15055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15056 $as_echo "no" >&6; }
15057 fi
15058
15059
15060 fi
15061 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15062
15063
15064 if test -n "$LIPO_FOR_TARGET"; then
15065   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15066 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15067   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15068 fi
15069
15070 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15071   for ncn_progname in lipo; do
15072     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15073 set dummy ${ncn_progname}; ac_word=$2
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15075 $as_echo_n "checking for $ac_word... " >&6; }
15076 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15077   $as_echo_n "(cached) " >&6
15078 else
15079   if test -n "$LIPO_FOR_TARGET"; then
15080   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15081 else
15082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15083 for as_dir in $PATH
15084 do
15085   IFS=$as_save_IFS
15086   test -z "$as_dir" && as_dir=.
15087     for ac_exec_ext in '' $ac_executable_extensions; do
15088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15089     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15091     break 2
15092   fi
15093 done
15094   done
15095 IFS=$as_save_IFS
15096
15097 fi
15098 fi
15099 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15100 if test -n "$LIPO_FOR_TARGET"; then
15101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15102 $as_echo "$LIPO_FOR_TARGET" >&6; }
15103 else
15104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15105 $as_echo "no" >&6; }
15106 fi
15107
15108
15109   done
15110 fi
15111
15112 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15113   for ncn_progname in lipo; do
15114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15115 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15116     if test -x $with_build_time_tools/${ncn_progname}; then
15117       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15118       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15119 $as_echo "yes" >&6; }
15120       break
15121     else
15122       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15123 $as_echo "no" >&6; }
15124     fi
15125   done
15126 fi
15127
15128 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15129   for ncn_progname in lipo; do
15130     if test -n "$ncn_target_tool_prefix"; then
15131       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15132 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15134 $as_echo_n "checking for $ac_word... " >&6; }
15135 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15136   $as_echo_n "(cached) " >&6
15137 else
15138   if test -n "$LIPO_FOR_TARGET"; then
15139   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15140 else
15141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15142 for as_dir in $PATH
15143 do
15144   IFS=$as_save_IFS
15145   test -z "$as_dir" && as_dir=.
15146     for ac_exec_ext in '' $ac_executable_extensions; do
15147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15148     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15150     break 2
15151   fi
15152 done
15153   done
15154 IFS=$as_save_IFS
15155
15156 fi
15157 fi
15158 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15159 if test -n "$LIPO_FOR_TARGET"; then
15160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15161 $as_echo "$LIPO_FOR_TARGET" >&6; }
15162 else
15163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15164 $as_echo "no" >&6; }
15165 fi
15166
15167
15168     fi
15169     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15170       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15171 set dummy ${ncn_progname}; ac_word=$2
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15173 $as_echo_n "checking for $ac_word... " >&6; }
15174 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15175   $as_echo_n "(cached) " >&6
15176 else
15177   if test -n "$LIPO_FOR_TARGET"; then
15178   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15179 else
15180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15181 for as_dir in $PATH
15182 do
15183   IFS=$as_save_IFS
15184   test -z "$as_dir" && as_dir=.
15185     for ac_exec_ext in '' $ac_executable_extensions; do
15186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15187     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15189     break 2
15190   fi
15191 done
15192   done
15193 IFS=$as_save_IFS
15194
15195 fi
15196 fi
15197 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15198 if test -n "$LIPO_FOR_TARGET"; then
15199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15200 $as_echo "$LIPO_FOR_TARGET" >&6; }
15201 else
15202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15203 $as_echo "no" >&6; }
15204 fi
15205
15206
15207     fi
15208     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15209   done
15210 fi
15211
15212 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15213   set dummy lipo
15214   if test $build = $target ; then
15215     LIPO_FOR_TARGET="$2"
15216   else
15217     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15218   fi
15219 else
15220   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15221 fi
15222
15223 else
15224   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15225 fi
15226
15227
15228
15229
15230 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15231   if test -n "$with_build_time_tools"; then
15232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15233 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15234     if test -x $with_build_time_tools/nm; then
15235       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15236       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15237       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15238 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15239     else
15240       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15241 $as_echo "no" >&6; }
15242     fi
15243   elif test $build != $host && test $have_gcc_for_target = yes; then
15244     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15245     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15246     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15247   fi
15248 fi
15249 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15250   # Extract the first word of "nm", so it can be a program name with args.
15251 set dummy nm; ac_word=$2
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15253 $as_echo_n "checking for $ac_word... " >&6; }
15254 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15255   $as_echo_n "(cached) " >&6
15256 else
15257   case $NM_FOR_TARGET in
15258   [\\/]* | ?:[\\/]*)
15259   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15260   ;;
15261   *)
15262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15263 for as_dir in $gcc_cv_tool_dirs
15264 do
15265   IFS=$as_save_IFS
15266   test -z "$as_dir" && as_dir=.
15267     for ac_exec_ext in '' $ac_executable_extensions; do
15268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15269     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15271     break 2
15272   fi
15273 done
15274   done
15275 IFS=$as_save_IFS
15276
15277   ;;
15278 esac
15279 fi
15280 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15281 if test -n "$NM_FOR_TARGET"; then
15282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15283 $as_echo "$NM_FOR_TARGET" >&6; }
15284 else
15285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15286 $as_echo "no" >&6; }
15287 fi
15288
15289
15290 fi
15291 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15292
15293
15294 if test -n "$NM_FOR_TARGET"; then
15295   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15296 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15297   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15298 fi
15299
15300 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15301   for ncn_progname in nm; do
15302     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15303 set dummy ${ncn_progname}; ac_word=$2
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15305 $as_echo_n "checking for $ac_word... " >&6; }
15306 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15307   $as_echo_n "(cached) " >&6
15308 else
15309   if test -n "$NM_FOR_TARGET"; then
15310   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15311 else
15312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15313 for as_dir in $PATH
15314 do
15315   IFS=$as_save_IFS
15316   test -z "$as_dir" && as_dir=.
15317     for ac_exec_ext in '' $ac_executable_extensions; do
15318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15319     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15321     break 2
15322   fi
15323 done
15324   done
15325 IFS=$as_save_IFS
15326
15327 fi
15328 fi
15329 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15330 if test -n "$NM_FOR_TARGET"; then
15331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15332 $as_echo "$NM_FOR_TARGET" >&6; }
15333 else
15334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15335 $as_echo "no" >&6; }
15336 fi
15337
15338
15339   done
15340 fi
15341
15342 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15343   for ncn_progname in nm; do
15344     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15345 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15346     if test -x $with_build_time_tools/${ncn_progname}; then
15347       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15348       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15349 $as_echo "yes" >&6; }
15350       break
15351     else
15352       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15353 $as_echo "no" >&6; }
15354     fi
15355   done
15356 fi
15357
15358 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15359   for ncn_progname in nm; do
15360     if test -n "$ncn_target_tool_prefix"; then
15361       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15362 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15364 $as_echo_n "checking for $ac_word... " >&6; }
15365 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15366   $as_echo_n "(cached) " >&6
15367 else
15368   if test -n "$NM_FOR_TARGET"; then
15369   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15370 else
15371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15372 for as_dir in $PATH
15373 do
15374   IFS=$as_save_IFS
15375   test -z "$as_dir" && as_dir=.
15376     for ac_exec_ext in '' $ac_executable_extensions; do
15377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15378     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15380     break 2
15381   fi
15382 done
15383   done
15384 IFS=$as_save_IFS
15385
15386 fi
15387 fi
15388 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15389 if test -n "$NM_FOR_TARGET"; then
15390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15391 $as_echo "$NM_FOR_TARGET" >&6; }
15392 else
15393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15394 $as_echo "no" >&6; }
15395 fi
15396
15397
15398     fi
15399     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15400       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15401 set dummy ${ncn_progname}; ac_word=$2
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15403 $as_echo_n "checking for $ac_word... " >&6; }
15404 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15405   $as_echo_n "(cached) " >&6
15406 else
15407   if test -n "$NM_FOR_TARGET"; then
15408   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15409 else
15410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15411 for as_dir in $PATH
15412 do
15413   IFS=$as_save_IFS
15414   test -z "$as_dir" && as_dir=.
15415     for ac_exec_ext in '' $ac_executable_extensions; do
15416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15417     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15419     break 2
15420   fi
15421 done
15422   done
15423 IFS=$as_save_IFS
15424
15425 fi
15426 fi
15427 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15428 if test -n "$NM_FOR_TARGET"; then
15429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15430 $as_echo "$NM_FOR_TARGET" >&6; }
15431 else
15432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15433 $as_echo "no" >&6; }
15434 fi
15435
15436
15437     fi
15438     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15439   done
15440 fi
15441
15442 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15443   set dummy nm
15444   if test $build = $target ; then
15445     NM_FOR_TARGET="$2"
15446   else
15447     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15448   fi
15449 else
15450   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15451 fi
15452
15453 else
15454   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15455 fi
15456
15457
15458
15459
15460 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15461   if test -n "$with_build_time_tools"; then
15462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15463 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15464     if test -x $with_build_time_tools/objcopy; then
15465       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15466       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15467       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15468 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15469     else
15470       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15471 $as_echo "no" >&6; }
15472     fi
15473   elif test $build != $host && test $have_gcc_for_target = yes; then
15474     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15475     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15476     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15477   fi
15478 fi
15479 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15480   # Extract the first word of "objcopy", so it can be a program name with args.
15481 set dummy objcopy; ac_word=$2
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15483 $as_echo_n "checking for $ac_word... " >&6; }
15484 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15485   $as_echo_n "(cached) " >&6
15486 else
15487   case $OBJCOPY_FOR_TARGET in
15488   [\\/]* | ?:[\\/]*)
15489   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15490   ;;
15491   *)
15492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15493 for as_dir in $gcc_cv_tool_dirs
15494 do
15495   IFS=$as_save_IFS
15496   test -z "$as_dir" && as_dir=.
15497     for ac_exec_ext in '' $ac_executable_extensions; do
15498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15499     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15501     break 2
15502   fi
15503 done
15504   done
15505 IFS=$as_save_IFS
15506
15507   ;;
15508 esac
15509 fi
15510 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15511 if test -n "$OBJCOPY_FOR_TARGET"; then
15512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15513 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15514 else
15515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15516 $as_echo "no" >&6; }
15517 fi
15518
15519
15520 fi
15521 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15522
15523
15524 if test -n "$OBJCOPY_FOR_TARGET"; then
15525   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15526 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15527   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15528 fi
15529
15530 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15531   for ncn_progname in objcopy; do
15532     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15533 set dummy ${ncn_progname}; ac_word=$2
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15535 $as_echo_n "checking for $ac_word... " >&6; }
15536 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15537   $as_echo_n "(cached) " >&6
15538 else
15539   if test -n "$OBJCOPY_FOR_TARGET"; then
15540   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15541 else
15542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15543 for as_dir in $PATH
15544 do
15545   IFS=$as_save_IFS
15546   test -z "$as_dir" && as_dir=.
15547     for ac_exec_ext in '' $ac_executable_extensions; do
15548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15549     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15551     break 2
15552   fi
15553 done
15554   done
15555 IFS=$as_save_IFS
15556
15557 fi
15558 fi
15559 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15560 if test -n "$OBJCOPY_FOR_TARGET"; then
15561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15562 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15563 else
15564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15565 $as_echo "no" >&6; }
15566 fi
15567
15568
15569   done
15570 fi
15571
15572 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15573   for ncn_progname in objcopy; do
15574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15575 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15576     if test -x $with_build_time_tools/${ncn_progname}; then
15577       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15578       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15579 $as_echo "yes" >&6; }
15580       break
15581     else
15582       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15583 $as_echo "no" >&6; }
15584     fi
15585   done
15586 fi
15587
15588 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15589   for ncn_progname in objcopy; do
15590     if test -n "$ncn_target_tool_prefix"; then
15591       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15592 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15594 $as_echo_n "checking for $ac_word... " >&6; }
15595 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15596   $as_echo_n "(cached) " >&6
15597 else
15598   if test -n "$OBJCOPY_FOR_TARGET"; then
15599   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15600 else
15601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15602 for as_dir in $PATH
15603 do
15604   IFS=$as_save_IFS
15605   test -z "$as_dir" && as_dir=.
15606     for ac_exec_ext in '' $ac_executable_extensions; do
15607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15608     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15610     break 2
15611   fi
15612 done
15613   done
15614 IFS=$as_save_IFS
15615
15616 fi
15617 fi
15618 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15619 if test -n "$OBJCOPY_FOR_TARGET"; then
15620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15621 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15622 else
15623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15624 $as_echo "no" >&6; }
15625 fi
15626
15627
15628     fi
15629     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15630       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15631 set dummy ${ncn_progname}; ac_word=$2
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15633 $as_echo_n "checking for $ac_word... " >&6; }
15634 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15635   $as_echo_n "(cached) " >&6
15636 else
15637   if test -n "$OBJCOPY_FOR_TARGET"; then
15638   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15639 else
15640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15641 for as_dir in $PATH
15642 do
15643   IFS=$as_save_IFS
15644   test -z "$as_dir" && as_dir=.
15645     for ac_exec_ext in '' $ac_executable_extensions; do
15646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15647     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15649     break 2
15650   fi
15651 done
15652   done
15653 IFS=$as_save_IFS
15654
15655 fi
15656 fi
15657 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15658 if test -n "$OBJCOPY_FOR_TARGET"; then
15659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15660 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15661 else
15662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15663 $as_echo "no" >&6; }
15664 fi
15665
15666
15667     fi
15668     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15669   done
15670 fi
15671
15672 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15673   set dummy objcopy
15674   if test $build = $target ; then
15675     OBJCOPY_FOR_TARGET="$2"
15676   else
15677     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15678   fi
15679 else
15680   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15681 fi
15682
15683 else
15684   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15685 fi
15686
15687
15688
15689
15690 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15691   if test -n "$with_build_time_tools"; then
15692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15693 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15694     if test -x $with_build_time_tools/objdump; then
15695       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15696       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15697       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15698 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15699     else
15700       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15701 $as_echo "no" >&6; }
15702     fi
15703   elif test $build != $host && test $have_gcc_for_target = yes; then
15704     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15705     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15706     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15707   fi
15708 fi
15709 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15710   # Extract the first word of "objdump", so it can be a program name with args.
15711 set dummy objdump; ac_word=$2
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15713 $as_echo_n "checking for $ac_word... " >&6; }
15714 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15715   $as_echo_n "(cached) " >&6
15716 else
15717   case $OBJDUMP_FOR_TARGET in
15718   [\\/]* | ?:[\\/]*)
15719   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15720   ;;
15721   *)
15722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15723 for as_dir in $gcc_cv_tool_dirs
15724 do
15725   IFS=$as_save_IFS
15726   test -z "$as_dir" && as_dir=.
15727     for ac_exec_ext in '' $ac_executable_extensions; do
15728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15729     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15731     break 2
15732   fi
15733 done
15734   done
15735 IFS=$as_save_IFS
15736
15737   ;;
15738 esac
15739 fi
15740 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15741 if test -n "$OBJDUMP_FOR_TARGET"; then
15742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15743 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15744 else
15745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15746 $as_echo "no" >&6; }
15747 fi
15748
15749
15750 fi
15751 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15752
15753
15754 if test -n "$OBJDUMP_FOR_TARGET"; then
15755   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15756 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15757   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15758 fi
15759
15760 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15761   for ncn_progname in objdump; do
15762     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15763 set dummy ${ncn_progname}; ac_word=$2
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15765 $as_echo_n "checking for $ac_word... " >&6; }
15766 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15767   $as_echo_n "(cached) " >&6
15768 else
15769   if test -n "$OBJDUMP_FOR_TARGET"; then
15770   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15771 else
15772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15773 for as_dir in $PATH
15774 do
15775   IFS=$as_save_IFS
15776   test -z "$as_dir" && as_dir=.
15777     for ac_exec_ext in '' $ac_executable_extensions; do
15778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15779     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15781     break 2
15782   fi
15783 done
15784   done
15785 IFS=$as_save_IFS
15786
15787 fi
15788 fi
15789 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15790 if test -n "$OBJDUMP_FOR_TARGET"; then
15791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15792 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15793 else
15794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15795 $as_echo "no" >&6; }
15796 fi
15797
15798
15799   done
15800 fi
15801
15802 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15803   for ncn_progname in objdump; do
15804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15805 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15806     if test -x $with_build_time_tools/${ncn_progname}; then
15807       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15808       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15809 $as_echo "yes" >&6; }
15810       break
15811     else
15812       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15813 $as_echo "no" >&6; }
15814     fi
15815   done
15816 fi
15817
15818 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15819   for ncn_progname in objdump; do
15820     if test -n "$ncn_target_tool_prefix"; then
15821       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15822 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15824 $as_echo_n "checking for $ac_word... " >&6; }
15825 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15826   $as_echo_n "(cached) " >&6
15827 else
15828   if test -n "$OBJDUMP_FOR_TARGET"; then
15829   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15830 else
15831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15832 for as_dir in $PATH
15833 do
15834   IFS=$as_save_IFS
15835   test -z "$as_dir" && as_dir=.
15836     for ac_exec_ext in '' $ac_executable_extensions; do
15837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15838     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15840     break 2
15841   fi
15842 done
15843   done
15844 IFS=$as_save_IFS
15845
15846 fi
15847 fi
15848 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15849 if test -n "$OBJDUMP_FOR_TARGET"; then
15850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15851 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15852 else
15853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15854 $as_echo "no" >&6; }
15855 fi
15856
15857
15858     fi
15859     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15860       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15861 set dummy ${ncn_progname}; ac_word=$2
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15863 $as_echo_n "checking for $ac_word... " >&6; }
15864 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15865   $as_echo_n "(cached) " >&6
15866 else
15867   if test -n "$OBJDUMP_FOR_TARGET"; then
15868   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15869 else
15870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15871 for as_dir in $PATH
15872 do
15873   IFS=$as_save_IFS
15874   test -z "$as_dir" && as_dir=.
15875     for ac_exec_ext in '' $ac_executable_extensions; do
15876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15877     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15879     break 2
15880   fi
15881 done
15882   done
15883 IFS=$as_save_IFS
15884
15885 fi
15886 fi
15887 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15888 if test -n "$OBJDUMP_FOR_TARGET"; then
15889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15890 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15891 else
15892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15893 $as_echo "no" >&6; }
15894 fi
15895
15896
15897     fi
15898     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15899   done
15900 fi
15901
15902 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15903   set dummy objdump
15904   if test $build = $target ; then
15905     OBJDUMP_FOR_TARGET="$2"
15906   else
15907     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15908   fi
15909 else
15910   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15911 fi
15912
15913 else
15914   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15915 fi
15916
15917
15918
15919
15920 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15921   if test -n "$with_build_time_tools"; then
15922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15923 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15924     if test -x $with_build_time_tools/otool; then
15925       OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15926       ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15927       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15928 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15929     else
15930       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15931 $as_echo "no" >&6; }
15932     fi
15933   elif test $build != $host && test $have_gcc_for_target = yes; then
15934     OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15935     test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15936     test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15937   fi
15938 fi
15939 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15940   # Extract the first word of "otool", so it can be a program name with args.
15941 set dummy otool; ac_word=$2
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15943 $as_echo_n "checking for $ac_word... " >&6; }
15944 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15945   $as_echo_n "(cached) " >&6
15946 else
15947   case $OTOOL_FOR_TARGET in
15948   [\\/]* | ?:[\\/]*)
15949   ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15950   ;;
15951   *)
15952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15953 for as_dir in $gcc_cv_tool_dirs
15954 do
15955   IFS=$as_save_IFS
15956   test -z "$as_dir" && as_dir=.
15957     for ac_exec_ext in '' $ac_executable_extensions; do
15958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15959     ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15961     break 2
15962   fi
15963 done
15964   done
15965 IFS=$as_save_IFS
15966
15967   ;;
15968 esac
15969 fi
15970 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15971 if test -n "$OTOOL_FOR_TARGET"; then
15972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15973 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15974 else
15975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15976 $as_echo "no" >&6; }
15977 fi
15978
15979
15980 fi
15981 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15982
15983
15984 if test -n "$OTOOL_FOR_TARGET"; then
15985   ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15986 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15987   OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15988 fi
15989
15990 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15991   for ncn_progname in otool; do
15992     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15993 set dummy ${ncn_progname}; ac_word=$2
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15995 $as_echo_n "checking for $ac_word... " >&6; }
15996 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15997   $as_echo_n "(cached) " >&6
15998 else
15999   if test -n "$OTOOL_FOR_TARGET"; then
16000   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16001 else
16002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16003 for as_dir in $PATH
16004 do
16005   IFS=$as_save_IFS
16006   test -z "$as_dir" && as_dir=.
16007     for ac_exec_ext in '' $ac_executable_extensions; do
16008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16009     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16011     break 2
16012   fi
16013 done
16014   done
16015 IFS=$as_save_IFS
16016
16017 fi
16018 fi
16019 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16020 if test -n "$OTOOL_FOR_TARGET"; then
16021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16022 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16023 else
16024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16025 $as_echo "no" >&6; }
16026 fi
16027
16028
16029   done
16030 fi
16031
16032 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16033   for ncn_progname in otool; do
16034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16035 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16036     if test -x $with_build_time_tools/${ncn_progname}; then
16037       ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16038       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16039 $as_echo "yes" >&6; }
16040       break
16041     else
16042       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16043 $as_echo "no" >&6; }
16044     fi
16045   done
16046 fi
16047
16048 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16049   for ncn_progname in otool; do
16050     if test -n "$ncn_target_tool_prefix"; then
16051       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16052 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16054 $as_echo_n "checking for $ac_word... " >&6; }
16055 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16056   $as_echo_n "(cached) " >&6
16057 else
16058   if test -n "$OTOOL_FOR_TARGET"; then
16059   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16060 else
16061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16062 for as_dir in $PATH
16063 do
16064   IFS=$as_save_IFS
16065   test -z "$as_dir" && as_dir=.
16066     for ac_exec_ext in '' $ac_executable_extensions; do
16067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16068     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16070     break 2
16071   fi
16072 done
16073   done
16074 IFS=$as_save_IFS
16075
16076 fi
16077 fi
16078 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16079 if test -n "$OTOOL_FOR_TARGET"; then
16080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16081 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16082 else
16083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16084 $as_echo "no" >&6; }
16085 fi
16086
16087
16088     fi
16089     if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16090       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16091 set dummy ${ncn_progname}; ac_word=$2
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16093 $as_echo_n "checking for $ac_word... " >&6; }
16094 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16095   $as_echo_n "(cached) " >&6
16096 else
16097   if test -n "$OTOOL_FOR_TARGET"; then
16098   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16099 else
16100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16101 for as_dir in $PATH
16102 do
16103   IFS=$as_save_IFS
16104   test -z "$as_dir" && as_dir=.
16105     for ac_exec_ext in '' $ac_executable_extensions; do
16106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16107     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16109     break 2
16110   fi
16111 done
16112   done
16113 IFS=$as_save_IFS
16114
16115 fi
16116 fi
16117 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16118 if test -n "$OTOOL_FOR_TARGET"; then
16119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16120 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16121 else
16122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16123 $as_echo "no" >&6; }
16124 fi
16125
16126
16127     fi
16128     test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16129   done
16130 fi
16131
16132 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16133   set dummy otool
16134   if test $build = $target ; then
16135     OTOOL_FOR_TARGET="$2"
16136   else
16137     OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16138   fi
16139 else
16140   OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16141 fi
16142
16143 else
16144   OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16145 fi
16146
16147
16148
16149
16150 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16151   if test -n "$with_build_time_tools"; then
16152     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16153 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16154     if test -x $with_build_time_tools/ranlib; then
16155       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16156       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16157       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16158 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16159     else
16160       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16161 $as_echo "no" >&6; }
16162     fi
16163   elif test $build != $host && test $have_gcc_for_target = yes; then
16164     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16165     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16166     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16167   fi
16168 fi
16169 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16170   # Extract the first word of "ranlib", so it can be a program name with args.
16171 set dummy ranlib; ac_word=$2
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16173 $as_echo_n "checking for $ac_word... " >&6; }
16174 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16175   $as_echo_n "(cached) " >&6
16176 else
16177   case $RANLIB_FOR_TARGET in
16178   [\\/]* | ?:[\\/]*)
16179   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16180   ;;
16181   *)
16182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16183 for as_dir in $gcc_cv_tool_dirs
16184 do
16185   IFS=$as_save_IFS
16186   test -z "$as_dir" && as_dir=.
16187     for ac_exec_ext in '' $ac_executable_extensions; do
16188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16189     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16191     break 2
16192   fi
16193 done
16194   done
16195 IFS=$as_save_IFS
16196
16197   ;;
16198 esac
16199 fi
16200 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16201 if test -n "$RANLIB_FOR_TARGET"; then
16202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16203 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16204 else
16205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16206 $as_echo "no" >&6; }
16207 fi
16208
16209
16210 fi
16211 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16212
16213
16214 if test -n "$RANLIB_FOR_TARGET"; then
16215   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16216 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16217   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16218 fi
16219
16220 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16221   for ncn_progname in ranlib; do
16222     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16223 set dummy ${ncn_progname}; ac_word=$2
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16225 $as_echo_n "checking for $ac_word... " >&6; }
16226 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16227   $as_echo_n "(cached) " >&6
16228 else
16229   if test -n "$RANLIB_FOR_TARGET"; then
16230   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16231 else
16232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16233 for as_dir in $PATH
16234 do
16235   IFS=$as_save_IFS
16236   test -z "$as_dir" && as_dir=.
16237     for ac_exec_ext in '' $ac_executable_extensions; do
16238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16239     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16241     break 2
16242   fi
16243 done
16244   done
16245 IFS=$as_save_IFS
16246
16247 fi
16248 fi
16249 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16250 if test -n "$RANLIB_FOR_TARGET"; then
16251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16252 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16253 else
16254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16255 $as_echo "no" >&6; }
16256 fi
16257
16258
16259   done
16260 fi
16261
16262 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16263   for ncn_progname in ranlib; do
16264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16265 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16266     if test -x $with_build_time_tools/${ncn_progname}; then
16267       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16268       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16269 $as_echo "yes" >&6; }
16270       break
16271     else
16272       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16273 $as_echo "no" >&6; }
16274     fi
16275   done
16276 fi
16277
16278 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16279   for ncn_progname in ranlib; do
16280     if test -n "$ncn_target_tool_prefix"; then
16281       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16282 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16284 $as_echo_n "checking for $ac_word... " >&6; }
16285 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16286   $as_echo_n "(cached) " >&6
16287 else
16288   if test -n "$RANLIB_FOR_TARGET"; then
16289   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16290 else
16291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16292 for as_dir in $PATH
16293 do
16294   IFS=$as_save_IFS
16295   test -z "$as_dir" && as_dir=.
16296     for ac_exec_ext in '' $ac_executable_extensions; do
16297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16298     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16300     break 2
16301   fi
16302 done
16303   done
16304 IFS=$as_save_IFS
16305
16306 fi
16307 fi
16308 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16309 if test -n "$RANLIB_FOR_TARGET"; then
16310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16311 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16312 else
16313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16314 $as_echo "no" >&6; }
16315 fi
16316
16317
16318     fi
16319     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16320       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16321 set dummy ${ncn_progname}; ac_word=$2
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16323 $as_echo_n "checking for $ac_word... " >&6; }
16324 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16325   $as_echo_n "(cached) " >&6
16326 else
16327   if test -n "$RANLIB_FOR_TARGET"; then
16328   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16329 else
16330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16331 for as_dir in $PATH
16332 do
16333   IFS=$as_save_IFS
16334   test -z "$as_dir" && as_dir=.
16335     for ac_exec_ext in '' $ac_executable_extensions; do
16336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16337     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16339     break 2
16340   fi
16341 done
16342   done
16343 IFS=$as_save_IFS
16344
16345 fi
16346 fi
16347 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16348 if test -n "$RANLIB_FOR_TARGET"; then
16349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16350 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16351 else
16352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16353 $as_echo "no" >&6; }
16354 fi
16355
16356
16357     fi
16358     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16359   done
16360 fi
16361
16362 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16363   set dummy ranlib
16364   if test $build = $target ; then
16365     RANLIB_FOR_TARGET="$2"
16366   else
16367     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16368   fi
16369 else
16370   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16371 fi
16372
16373 else
16374   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16375 fi
16376
16377
16378
16379
16380 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16381   if test -n "$with_build_time_tools"; then
16382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16383 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16384     if test -x $with_build_time_tools/readelf; then
16385       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16386       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16387       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16388 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16389     else
16390       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16391 $as_echo "no" >&6; }
16392     fi
16393   elif test $build != $host && test $have_gcc_for_target = yes; then
16394     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16395     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16396     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16397   fi
16398 fi
16399 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16400   # Extract the first word of "readelf", so it can be a program name with args.
16401 set dummy readelf; ac_word=$2
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16403 $as_echo_n "checking for $ac_word... " >&6; }
16404 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16405   $as_echo_n "(cached) " >&6
16406 else
16407   case $READELF_FOR_TARGET in
16408   [\\/]* | ?:[\\/]*)
16409   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16410   ;;
16411   *)
16412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16413 for as_dir in $gcc_cv_tool_dirs
16414 do
16415   IFS=$as_save_IFS
16416   test -z "$as_dir" && as_dir=.
16417     for ac_exec_ext in '' $ac_executable_extensions; do
16418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16419     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16421     break 2
16422   fi
16423 done
16424   done
16425 IFS=$as_save_IFS
16426
16427   ;;
16428 esac
16429 fi
16430 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16431 if test -n "$READELF_FOR_TARGET"; then
16432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16433 $as_echo "$READELF_FOR_TARGET" >&6; }
16434 else
16435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16436 $as_echo "no" >&6; }
16437 fi
16438
16439
16440 fi
16441 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16442
16443
16444 if test -n "$READELF_FOR_TARGET"; then
16445   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16446 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16447   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16448 fi
16449
16450 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16451   for ncn_progname in readelf; do
16452     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16453 set dummy ${ncn_progname}; ac_word=$2
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16455 $as_echo_n "checking for $ac_word... " >&6; }
16456 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16457   $as_echo_n "(cached) " >&6
16458 else
16459   if test -n "$READELF_FOR_TARGET"; then
16460   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16461 else
16462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16463 for as_dir in $PATH
16464 do
16465   IFS=$as_save_IFS
16466   test -z "$as_dir" && as_dir=.
16467     for ac_exec_ext in '' $ac_executable_extensions; do
16468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16469     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16471     break 2
16472   fi
16473 done
16474   done
16475 IFS=$as_save_IFS
16476
16477 fi
16478 fi
16479 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16480 if test -n "$READELF_FOR_TARGET"; then
16481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16482 $as_echo "$READELF_FOR_TARGET" >&6; }
16483 else
16484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16485 $as_echo "no" >&6; }
16486 fi
16487
16488
16489   done
16490 fi
16491
16492 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16493   for ncn_progname in readelf; do
16494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16495 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16496     if test -x $with_build_time_tools/${ncn_progname}; then
16497       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16498       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16499 $as_echo "yes" >&6; }
16500       break
16501     else
16502       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16503 $as_echo "no" >&6; }
16504     fi
16505   done
16506 fi
16507
16508 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16509   for ncn_progname in readelf; do
16510     if test -n "$ncn_target_tool_prefix"; then
16511       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16512 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16514 $as_echo_n "checking for $ac_word... " >&6; }
16515 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16516   $as_echo_n "(cached) " >&6
16517 else
16518   if test -n "$READELF_FOR_TARGET"; then
16519   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16520 else
16521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16522 for as_dir in $PATH
16523 do
16524   IFS=$as_save_IFS
16525   test -z "$as_dir" && as_dir=.
16526     for ac_exec_ext in '' $ac_executable_extensions; do
16527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16528     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16530     break 2
16531   fi
16532 done
16533   done
16534 IFS=$as_save_IFS
16535
16536 fi
16537 fi
16538 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16539 if test -n "$READELF_FOR_TARGET"; then
16540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16541 $as_echo "$READELF_FOR_TARGET" >&6; }
16542 else
16543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16544 $as_echo "no" >&6; }
16545 fi
16546
16547
16548     fi
16549     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16550       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16551 set dummy ${ncn_progname}; ac_word=$2
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16553 $as_echo_n "checking for $ac_word... " >&6; }
16554 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16555   $as_echo_n "(cached) " >&6
16556 else
16557   if test -n "$READELF_FOR_TARGET"; then
16558   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16559 else
16560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16561 for as_dir in $PATH
16562 do
16563   IFS=$as_save_IFS
16564   test -z "$as_dir" && as_dir=.
16565     for ac_exec_ext in '' $ac_executable_extensions; do
16566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16567     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16569     break 2
16570   fi
16571 done
16572   done
16573 IFS=$as_save_IFS
16574
16575 fi
16576 fi
16577 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16578 if test -n "$READELF_FOR_TARGET"; then
16579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16580 $as_echo "$READELF_FOR_TARGET" >&6; }
16581 else
16582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16583 $as_echo "no" >&6; }
16584 fi
16585
16586
16587     fi
16588     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16589   done
16590 fi
16591
16592 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16593   set dummy readelf
16594   if test $build = $target ; then
16595     READELF_FOR_TARGET="$2"
16596   else
16597     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16598   fi
16599 else
16600   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16601 fi
16602
16603 else
16604   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16605 fi
16606
16607
16608
16609
16610 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16611   if test -n "$with_build_time_tools"; then
16612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16613 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16614     if test -x $with_build_time_tools/strip; then
16615       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16616       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16617       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16618 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16619     else
16620       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16621 $as_echo "no" >&6; }
16622     fi
16623   elif test $build != $host && test $have_gcc_for_target = yes; then
16624     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16625     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16626     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16627   fi
16628 fi
16629 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16630   # Extract the first word of "strip", so it can be a program name with args.
16631 set dummy strip; ac_word=$2
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16633 $as_echo_n "checking for $ac_word... " >&6; }
16634 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16635   $as_echo_n "(cached) " >&6
16636 else
16637   case $STRIP_FOR_TARGET in
16638   [\\/]* | ?:[\\/]*)
16639   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16640   ;;
16641   *)
16642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16643 for as_dir in $gcc_cv_tool_dirs
16644 do
16645   IFS=$as_save_IFS
16646   test -z "$as_dir" && as_dir=.
16647     for ac_exec_ext in '' $ac_executable_extensions; do
16648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16649     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16651     break 2
16652   fi
16653 done
16654   done
16655 IFS=$as_save_IFS
16656
16657   ;;
16658 esac
16659 fi
16660 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16661 if test -n "$STRIP_FOR_TARGET"; then
16662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16663 $as_echo "$STRIP_FOR_TARGET" >&6; }
16664 else
16665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16666 $as_echo "no" >&6; }
16667 fi
16668
16669
16670 fi
16671 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16672
16673
16674 if test -n "$STRIP_FOR_TARGET"; then
16675   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16676 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16677   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16678 fi
16679
16680 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16681   for ncn_progname in strip; do
16682     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16683 set dummy ${ncn_progname}; ac_word=$2
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16685 $as_echo_n "checking for $ac_word... " >&6; }
16686 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16687   $as_echo_n "(cached) " >&6
16688 else
16689   if test -n "$STRIP_FOR_TARGET"; then
16690   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16691 else
16692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16693 for as_dir in $PATH
16694 do
16695   IFS=$as_save_IFS
16696   test -z "$as_dir" && as_dir=.
16697     for ac_exec_ext in '' $ac_executable_extensions; do
16698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16699     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16701     break 2
16702   fi
16703 done
16704   done
16705 IFS=$as_save_IFS
16706
16707 fi
16708 fi
16709 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16710 if test -n "$STRIP_FOR_TARGET"; then
16711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16712 $as_echo "$STRIP_FOR_TARGET" >&6; }
16713 else
16714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16715 $as_echo "no" >&6; }
16716 fi
16717
16718
16719   done
16720 fi
16721
16722 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16723   for ncn_progname in strip; do
16724     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16725 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16726     if test -x $with_build_time_tools/${ncn_progname}; then
16727       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16728       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16729 $as_echo "yes" >&6; }
16730       break
16731     else
16732       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16733 $as_echo "no" >&6; }
16734     fi
16735   done
16736 fi
16737
16738 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16739   for ncn_progname in strip; do
16740     if test -n "$ncn_target_tool_prefix"; then
16741       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16742 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16744 $as_echo_n "checking for $ac_word... " >&6; }
16745 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16746   $as_echo_n "(cached) " >&6
16747 else
16748   if test -n "$STRIP_FOR_TARGET"; then
16749   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16750 else
16751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16752 for as_dir in $PATH
16753 do
16754   IFS=$as_save_IFS
16755   test -z "$as_dir" && as_dir=.
16756     for ac_exec_ext in '' $ac_executable_extensions; do
16757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16758     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16760     break 2
16761   fi
16762 done
16763   done
16764 IFS=$as_save_IFS
16765
16766 fi
16767 fi
16768 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16769 if test -n "$STRIP_FOR_TARGET"; then
16770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16771 $as_echo "$STRIP_FOR_TARGET" >&6; }
16772 else
16773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16774 $as_echo "no" >&6; }
16775 fi
16776
16777
16778     fi
16779     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16780       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16781 set dummy ${ncn_progname}; ac_word=$2
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16783 $as_echo_n "checking for $ac_word... " >&6; }
16784 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16785   $as_echo_n "(cached) " >&6
16786 else
16787   if test -n "$STRIP_FOR_TARGET"; then
16788   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16789 else
16790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16791 for as_dir in $PATH
16792 do
16793   IFS=$as_save_IFS
16794   test -z "$as_dir" && as_dir=.
16795     for ac_exec_ext in '' $ac_executable_extensions; do
16796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16797     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16799     break 2
16800   fi
16801 done
16802   done
16803 IFS=$as_save_IFS
16804
16805 fi
16806 fi
16807 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16808 if test -n "$STRIP_FOR_TARGET"; then
16809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16810 $as_echo "$STRIP_FOR_TARGET" >&6; }
16811 else
16812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16813 $as_echo "no" >&6; }
16814 fi
16815
16816
16817     fi
16818     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16819   done
16820 fi
16821
16822 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16823   set dummy strip
16824   if test $build = $target ; then
16825     STRIP_FOR_TARGET="$2"
16826   else
16827     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16828   fi
16829 else
16830   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16831 fi
16832
16833 else
16834   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16835 fi
16836
16837
16838
16839
16840 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16841   if test -n "$with_build_time_tools"; then
16842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16843 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16844     if test -x $with_build_time_tools/windres; then
16845       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16846       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16847       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16848 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16849     else
16850       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16851 $as_echo "no" >&6; }
16852     fi
16853   elif test $build != $host && test $have_gcc_for_target = yes; then
16854     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16855     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16856     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16857   fi
16858 fi
16859 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16860   # Extract the first word of "windres", so it can be a program name with args.
16861 set dummy windres; ac_word=$2
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16863 $as_echo_n "checking for $ac_word... " >&6; }
16864 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16865   $as_echo_n "(cached) " >&6
16866 else
16867   case $WINDRES_FOR_TARGET in
16868   [\\/]* | ?:[\\/]*)
16869   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16870   ;;
16871   *)
16872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16873 for as_dir in $gcc_cv_tool_dirs
16874 do
16875   IFS=$as_save_IFS
16876   test -z "$as_dir" && as_dir=.
16877     for ac_exec_ext in '' $ac_executable_extensions; do
16878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16879     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16881     break 2
16882   fi
16883 done
16884   done
16885 IFS=$as_save_IFS
16886
16887   ;;
16888 esac
16889 fi
16890 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16891 if test -n "$WINDRES_FOR_TARGET"; then
16892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16893 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16894 else
16895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16896 $as_echo "no" >&6; }
16897 fi
16898
16899
16900 fi
16901 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16902
16903
16904 if test -n "$WINDRES_FOR_TARGET"; then
16905   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16906 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16907   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16908 fi
16909
16910 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16911   for ncn_progname in windres; do
16912     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16913 set dummy ${ncn_progname}; ac_word=$2
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16915 $as_echo_n "checking for $ac_word... " >&6; }
16916 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16917   $as_echo_n "(cached) " >&6
16918 else
16919   if test -n "$WINDRES_FOR_TARGET"; then
16920   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16921 else
16922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16923 for as_dir in $PATH
16924 do
16925   IFS=$as_save_IFS
16926   test -z "$as_dir" && as_dir=.
16927     for ac_exec_ext in '' $ac_executable_extensions; do
16928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16929     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16931     break 2
16932   fi
16933 done
16934   done
16935 IFS=$as_save_IFS
16936
16937 fi
16938 fi
16939 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16940 if test -n "$WINDRES_FOR_TARGET"; then
16941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16942 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16943 else
16944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16945 $as_echo "no" >&6; }
16946 fi
16947
16948
16949   done
16950 fi
16951
16952 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16953   for ncn_progname in windres; do
16954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16955 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16956     if test -x $with_build_time_tools/${ncn_progname}; then
16957       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16958       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16959 $as_echo "yes" >&6; }
16960       break
16961     else
16962       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16963 $as_echo "no" >&6; }
16964     fi
16965   done
16966 fi
16967
16968 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16969   for ncn_progname in windres; do
16970     if test -n "$ncn_target_tool_prefix"; then
16971       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16972 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16974 $as_echo_n "checking for $ac_word... " >&6; }
16975 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16976   $as_echo_n "(cached) " >&6
16977 else
16978   if test -n "$WINDRES_FOR_TARGET"; then
16979   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16980 else
16981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16982 for as_dir in $PATH
16983 do
16984   IFS=$as_save_IFS
16985   test -z "$as_dir" && as_dir=.
16986     for ac_exec_ext in '' $ac_executable_extensions; do
16987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16988     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16990     break 2
16991   fi
16992 done
16993   done
16994 IFS=$as_save_IFS
16995
16996 fi
16997 fi
16998 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16999 if test -n "$WINDRES_FOR_TARGET"; then
17000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17001 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17002 else
17003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17004 $as_echo "no" >&6; }
17005 fi
17006
17007
17008     fi
17009     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17010       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17011 set dummy ${ncn_progname}; ac_word=$2
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17013 $as_echo_n "checking for $ac_word... " >&6; }
17014 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17015   $as_echo_n "(cached) " >&6
17016 else
17017   if test -n "$WINDRES_FOR_TARGET"; then
17018   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17019 else
17020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17021 for as_dir in $PATH
17022 do
17023   IFS=$as_save_IFS
17024   test -z "$as_dir" && as_dir=.
17025     for ac_exec_ext in '' $ac_executable_extensions; do
17026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17027     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17029     break 2
17030   fi
17031 done
17032   done
17033 IFS=$as_save_IFS
17034
17035 fi
17036 fi
17037 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17038 if test -n "$WINDRES_FOR_TARGET"; then
17039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17040 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17041 else
17042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17043 $as_echo "no" >&6; }
17044 fi
17045
17046
17047     fi
17048     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17049   done
17050 fi
17051
17052 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17053   set dummy windres
17054   if test $build = $target ; then
17055     WINDRES_FOR_TARGET="$2"
17056   else
17057     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17058   fi
17059 else
17060   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17061 fi
17062
17063 else
17064   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17065 fi
17066
17067
17068
17069
17070 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17071   if test -n "$with_build_time_tools"; then
17072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17073 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17074     if test -x $with_build_time_tools/windmc; then
17075       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17076       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17077       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17078 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17079     else
17080       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17081 $as_echo "no" >&6; }
17082     fi
17083   elif test $build != $host && test $have_gcc_for_target = yes; then
17084     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17085     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17086     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17087   fi
17088 fi
17089 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17090   # Extract the first word of "windmc", so it can be a program name with args.
17091 set dummy windmc; ac_word=$2
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17093 $as_echo_n "checking for $ac_word... " >&6; }
17094 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17095   $as_echo_n "(cached) " >&6
17096 else
17097   case $WINDMC_FOR_TARGET in
17098   [\\/]* | ?:[\\/]*)
17099   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17100   ;;
17101   *)
17102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17103 for as_dir in $gcc_cv_tool_dirs
17104 do
17105   IFS=$as_save_IFS
17106   test -z "$as_dir" && as_dir=.
17107     for ac_exec_ext in '' $ac_executable_extensions; do
17108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17109     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17111     break 2
17112   fi
17113 done
17114   done
17115 IFS=$as_save_IFS
17116
17117   ;;
17118 esac
17119 fi
17120 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17121 if test -n "$WINDMC_FOR_TARGET"; then
17122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17123 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17124 else
17125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17126 $as_echo "no" >&6; }
17127 fi
17128
17129
17130 fi
17131 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17132
17133
17134 if test -n "$WINDMC_FOR_TARGET"; then
17135   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17136 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17137   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17138 fi
17139
17140 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17141   for ncn_progname in windmc; do
17142     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17143 set dummy ${ncn_progname}; ac_word=$2
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17145 $as_echo_n "checking for $ac_word... " >&6; }
17146 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17147   $as_echo_n "(cached) " >&6
17148 else
17149   if test -n "$WINDMC_FOR_TARGET"; then
17150   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17151 else
17152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17153 for as_dir in $PATH
17154 do
17155   IFS=$as_save_IFS
17156   test -z "$as_dir" && as_dir=.
17157     for ac_exec_ext in '' $ac_executable_extensions; do
17158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17159     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17161     break 2
17162   fi
17163 done
17164   done
17165 IFS=$as_save_IFS
17166
17167 fi
17168 fi
17169 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17170 if test -n "$WINDMC_FOR_TARGET"; then
17171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17172 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17173 else
17174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17175 $as_echo "no" >&6; }
17176 fi
17177
17178
17179   done
17180 fi
17181
17182 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17183   for ncn_progname in windmc; do
17184     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17185 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17186     if test -x $with_build_time_tools/${ncn_progname}; then
17187       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17188       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17189 $as_echo "yes" >&6; }
17190       break
17191     else
17192       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17193 $as_echo "no" >&6; }
17194     fi
17195   done
17196 fi
17197
17198 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17199   for ncn_progname in windmc; do
17200     if test -n "$ncn_target_tool_prefix"; then
17201       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17202 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17204 $as_echo_n "checking for $ac_word... " >&6; }
17205 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17206   $as_echo_n "(cached) " >&6
17207 else
17208   if test -n "$WINDMC_FOR_TARGET"; then
17209   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17210 else
17211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17212 for as_dir in $PATH
17213 do
17214   IFS=$as_save_IFS
17215   test -z "$as_dir" && as_dir=.
17216     for ac_exec_ext in '' $ac_executable_extensions; do
17217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17218     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17220     break 2
17221   fi
17222 done
17223   done
17224 IFS=$as_save_IFS
17225
17226 fi
17227 fi
17228 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17229 if test -n "$WINDMC_FOR_TARGET"; then
17230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17231 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17232 else
17233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17234 $as_echo "no" >&6; }
17235 fi
17236
17237
17238     fi
17239     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17240       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17241 set dummy ${ncn_progname}; ac_word=$2
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17243 $as_echo_n "checking for $ac_word... " >&6; }
17244 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17245   $as_echo_n "(cached) " >&6
17246 else
17247   if test -n "$WINDMC_FOR_TARGET"; then
17248   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17249 else
17250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17251 for as_dir in $PATH
17252 do
17253   IFS=$as_save_IFS
17254   test -z "$as_dir" && as_dir=.
17255     for ac_exec_ext in '' $ac_executable_extensions; do
17256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17257     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17259     break 2
17260   fi
17261 done
17262   done
17263 IFS=$as_save_IFS
17264
17265 fi
17266 fi
17267 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17268 if test -n "$WINDMC_FOR_TARGET"; then
17269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17270 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17271 else
17272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17273 $as_echo "no" >&6; }
17274 fi
17275
17276
17277     fi
17278     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17279   done
17280 fi
17281
17282 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17283   set dummy windmc
17284   if test $build = $target ; then
17285     WINDMC_FOR_TARGET="$2"
17286   else
17287     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17288   fi
17289 else
17290   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17291 fi
17292
17293 else
17294   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17295 fi
17296
17297
17298 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17299
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17301 $as_echo_n "checking where to find the target ar... " >&6; }
17302 if test "x${build}" != "x${host}" ; then
17303   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17304     # We already found the complete path
17305     ac_dir=`dirname $AR_FOR_TARGET`
17306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17307 $as_echo "pre-installed in $ac_dir" >&6; }
17308   else
17309     # Canadian cross, just use what we found
17310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17311 $as_echo "pre-installed" >&6; }
17312   fi
17313 else
17314   ok=yes
17315   case " ${configdirs} " in
17316     *" binutils "*) ;;
17317     *) ok=no ;;
17318   esac
17319
17320   if test $ok = yes; then
17321     # An in-tree tool is available and we can use it
17322     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17324 $as_echo "just compiled" >&6; }
17325   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17326     # We already found the complete path
17327     ac_dir=`dirname $AR_FOR_TARGET`
17328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17329 $as_echo "pre-installed in $ac_dir" >&6; }
17330   elif test "x$target" = "x$host"; then
17331     # We can use an host tool
17332     AR_FOR_TARGET='$(AR)'
17333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17334 $as_echo "host tool" >&6; }
17335   else
17336     # We need a cross tool
17337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17338 $as_echo "pre-installed" >&6; }
17339   fi
17340 fi
17341
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17343 $as_echo_n "checking where to find the target as... " >&6; }
17344 if test "x${build}" != "x${host}" ; then
17345   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17346     # We already found the complete path
17347     ac_dir=`dirname $AS_FOR_TARGET`
17348     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17349 $as_echo "pre-installed in $ac_dir" >&6; }
17350   else
17351     # Canadian cross, just use what we found
17352     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17353 $as_echo "pre-installed" >&6; }
17354   fi
17355 else
17356   ok=yes
17357   case " ${configdirs} " in
17358     *" gas "*) ;;
17359     *) ok=no ;;
17360   esac
17361
17362   if test $ok = yes; then
17363     # An in-tree tool is available and we can use it
17364     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17366 $as_echo "just compiled" >&6; }
17367   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17368     # We already found the complete path
17369     ac_dir=`dirname $AS_FOR_TARGET`
17370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17371 $as_echo "pre-installed in $ac_dir" >&6; }
17372   elif test "x$target" = "x$host"; then
17373     # We can use an host tool
17374     AS_FOR_TARGET='$(AS)'
17375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17376 $as_echo "host tool" >&6; }
17377   else
17378     # We need a cross tool
17379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17380 $as_echo "pre-installed" >&6; }
17381   fi
17382 fi
17383
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17385 $as_echo_n "checking where to find the target cc... " >&6; }
17386 if test "x${build}" != "x${host}" ; then
17387   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17388     # We already found the complete path
17389     ac_dir=`dirname $CC_FOR_TARGET`
17390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17391 $as_echo "pre-installed in $ac_dir" >&6; }
17392   else
17393     # Canadian cross, just use what we found
17394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17395 $as_echo "pre-installed" >&6; }
17396   fi
17397 else
17398   ok=yes
17399   case " ${configdirs} " in
17400     *" gcc "*) ;;
17401     *) ok=no ;;
17402   esac
17403
17404   if test $ok = yes; then
17405     # An in-tree tool is available and we can use it
17406     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17408 $as_echo "just compiled" >&6; }
17409   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17410     # We already found the complete path
17411     ac_dir=`dirname $CC_FOR_TARGET`
17412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17413 $as_echo "pre-installed in $ac_dir" >&6; }
17414   elif test "x$target" = "x$host"; then
17415     # We can use an host tool
17416     CC_FOR_TARGET='$(CC)'
17417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17418 $as_echo "host tool" >&6; }
17419   else
17420     # We need a cross tool
17421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17422 $as_echo "pre-installed" >&6; }
17423   fi
17424 fi
17425
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17427 $as_echo_n "checking where to find the target c++... " >&6; }
17428 if test "x${build}" != "x${host}" ; then
17429   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17430     # We already found the complete path
17431     ac_dir=`dirname $CXX_FOR_TARGET`
17432     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17433 $as_echo "pre-installed in $ac_dir" >&6; }
17434   else
17435     # Canadian cross, just use what we found
17436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17437 $as_echo "pre-installed" >&6; }
17438   fi
17439 else
17440   ok=yes
17441   case " ${configdirs} " in
17442     *" gcc "*) ;;
17443     *) ok=no ;;
17444   esac
17445   case ,${enable_languages}, in
17446     *,c++,*) ;;
17447     *) ok=no ;;
17448   esac
17449   if test $ok = yes; then
17450     # An in-tree tool is available and we can use it
17451     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'
17452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17453 $as_echo "just compiled" >&6; }
17454   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17455     # We already found the complete path
17456     ac_dir=`dirname $CXX_FOR_TARGET`
17457     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17458 $as_echo "pre-installed in $ac_dir" >&6; }
17459   elif test "x$target" = "x$host"; then
17460     # We can use an host tool
17461     CXX_FOR_TARGET='$(CXX)'
17462     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17463 $as_echo "host tool" >&6; }
17464   else
17465     # We need a cross tool
17466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17467 $as_echo "pre-installed" >&6; }
17468   fi
17469 fi
17470
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17472 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17473 if test "x${build}" != "x${host}" ; then
17474   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17475     # We already found the complete path
17476     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17478 $as_echo "pre-installed in $ac_dir" >&6; }
17479   else
17480     # Canadian cross, just use what we found
17481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17482 $as_echo "pre-installed" >&6; }
17483   fi
17484 else
17485   ok=yes
17486   case " ${configdirs} " in
17487     *" gcc "*) ;;
17488     *) ok=no ;;
17489   esac
17490   case ,${enable_languages}, in
17491     *,c++,*) ;;
17492     *) ok=no ;;
17493   esac
17494   if test $ok = yes; then
17495     # An in-tree tool is available and we can use it
17496     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'
17497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17498 $as_echo "just compiled" >&6; }
17499   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17500     # We already found the complete path
17501     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17502     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17503 $as_echo "pre-installed in $ac_dir" >&6; }
17504   elif test "x$target" = "x$host"; then
17505     # We can use an host tool
17506     RAW_CXX_FOR_TARGET='$(CXX)'
17507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17508 $as_echo "host tool" >&6; }
17509   else
17510     # We need a cross tool
17511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17512 $as_echo "pre-installed" >&6; }
17513   fi
17514 fi
17515
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17517 $as_echo_n "checking where to find the target dlltool... " >&6; }
17518 if test "x${build}" != "x${host}" ; then
17519   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17520     # We already found the complete path
17521     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17523 $as_echo "pre-installed in $ac_dir" >&6; }
17524   else
17525     # Canadian cross, just use what we found
17526     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17527 $as_echo "pre-installed" >&6; }
17528   fi
17529 else
17530   ok=yes
17531   case " ${configdirs} " in
17532     *" binutils "*) ;;
17533     *) ok=no ;;
17534   esac
17535
17536   if test $ok = yes; then
17537     # An in-tree tool is available and we can use it
17538     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17540 $as_echo "just compiled" >&6; }
17541   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17542     # We already found the complete path
17543     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17545 $as_echo "pre-installed in $ac_dir" >&6; }
17546   elif test "x$target" = "x$host"; then
17547     # We can use an host tool
17548     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17549     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17550 $as_echo "host tool" >&6; }
17551   else
17552     # We need a cross tool
17553     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17554 $as_echo "pre-installed" >&6; }
17555   fi
17556 fi
17557
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17559 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17560 if test "x${build}" != "x${host}" ; then
17561   if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17562     # We already found the complete path
17563     ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17565 $as_echo "pre-installed in $ac_dir" >&6; }
17566   else
17567     # Canadian cross, just use what we found
17568     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17569 $as_echo "pre-installed" >&6; }
17570   fi
17571 else
17572   if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17573     # We already found the complete path
17574     ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17576 $as_echo "pre-installed in $ac_dir" >&6; }
17577   elif test "x$target" = "x$host"; then
17578     # We can use an host tool
17579     DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17581 $as_echo "host tool" >&6; }
17582   else
17583     # We need a cross tool
17584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17585 $as_echo "pre-installed" >&6; }
17586   fi
17587 fi
17588
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17590 $as_echo_n "checking where to find the target gcc... " >&6; }
17591 if test "x${build}" != "x${host}" ; then
17592   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17593     # We already found the complete path
17594     ac_dir=`dirname $GCC_FOR_TARGET`
17595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17596 $as_echo "pre-installed in $ac_dir" >&6; }
17597   else
17598     # Canadian cross, just use what we found
17599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17600 $as_echo "pre-installed" >&6; }
17601   fi
17602 else
17603   ok=yes
17604   case " ${configdirs} " in
17605     *" gcc "*) ;;
17606     *) ok=no ;;
17607   esac
17608
17609   if test $ok = yes; then
17610     # An in-tree tool is available and we can use it
17611     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17613 $as_echo "just compiled" >&6; }
17614   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17615     # We already found the complete path
17616     ac_dir=`dirname $GCC_FOR_TARGET`
17617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17618 $as_echo "pre-installed in $ac_dir" >&6; }
17619   elif test "x$target" = "x$host"; then
17620     # We can use an host tool
17621     GCC_FOR_TARGET='$()'
17622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17623 $as_echo "host tool" >&6; }
17624   else
17625     # We need a cross tool
17626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17627 $as_echo "pre-installed" >&6; }
17628   fi
17629 fi
17630
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17632 $as_echo_n "checking where to find the target gfortran... " >&6; }
17633 if test "x${build}" != "x${host}" ; then
17634   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17635     # We already found the complete path
17636     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17637     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17638 $as_echo "pre-installed in $ac_dir" >&6; }
17639   else
17640     # Canadian cross, just use what we found
17641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17642 $as_echo "pre-installed" >&6; }
17643   fi
17644 else
17645   ok=yes
17646   case " ${configdirs} " in
17647     *" gcc "*) ;;
17648     *) ok=no ;;
17649   esac
17650   case ,${enable_languages}, in
17651     *,fortran,*) ;;
17652     *) ok=no ;;
17653   esac
17654   if test $ok = yes; then
17655     # An in-tree tool is available and we can use it
17656     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17658 $as_echo "just compiled" >&6; }
17659   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17660     # We already found the complete path
17661     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17662     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17663 $as_echo "pre-installed in $ac_dir" >&6; }
17664   elif test "x$target" = "x$host"; then
17665     # We can use an host tool
17666     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17668 $as_echo "host tool" >&6; }
17669   else
17670     # We need a cross tool
17671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17672 $as_echo "pre-installed" >&6; }
17673   fi
17674 fi
17675
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17677 $as_echo_n "checking where to find the target gccgo... " >&6; }
17678 if test "x${build}" != "x${host}" ; then
17679   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17680     # We already found the complete path
17681     ac_dir=`dirname $GOC_FOR_TARGET`
17682     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17683 $as_echo "pre-installed in $ac_dir" >&6; }
17684   else
17685     # Canadian cross, just use what we found
17686     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17687 $as_echo "pre-installed" >&6; }
17688   fi
17689 else
17690   ok=yes
17691   case " ${configdirs} " in
17692     *" gcc "*) ;;
17693     *) ok=no ;;
17694   esac
17695   case ,${enable_languages}, in
17696     *,go,*) ;;
17697     *) ok=no ;;
17698   esac
17699   if test $ok = yes; then
17700     # An in-tree tool is available and we can use it
17701     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17703 $as_echo "just compiled" >&6; }
17704   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17705     # We already found the complete path
17706     ac_dir=`dirname $GOC_FOR_TARGET`
17707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17708 $as_echo "pre-installed in $ac_dir" >&6; }
17709   elif test "x$target" = "x$host"; then
17710     # We can use an host tool
17711     GOC_FOR_TARGET='$(GOC)'
17712     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17713 $as_echo "host tool" >&6; }
17714   else
17715     # We need a cross tool
17716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17717 $as_echo "pre-installed" >&6; }
17718   fi
17719 fi
17720
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17722 $as_echo_n "checking where to find the target gdc... " >&6; }
17723 if test "x${build}" != "x${host}" ; then
17724   if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17725     # We already found the complete path
17726     ac_dir=`dirname $GDC_FOR_TARGET`
17727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17728 $as_echo "pre-installed in $ac_dir" >&6; }
17729   else
17730     # Canadian cross, just use what we found
17731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17732 $as_echo "pre-installed" >&6; }
17733   fi
17734 else
17735   ok=yes
17736   case " ${configdirs} " in
17737     *" gcc "*) ;;
17738     *) ok=no ;;
17739   esac
17740   case ,${enable_languages}, in
17741     *,d,*) ;;
17742     *) ok=no ;;
17743   esac
17744   if test $ok = yes; then
17745     # An in-tree tool is available and we can use it
17746     GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17748 $as_echo "just compiled" >&6; }
17749   elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17750     # We already found the complete path
17751     ac_dir=`dirname $GDC_FOR_TARGET`
17752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17753 $as_echo "pre-installed in $ac_dir" >&6; }
17754   elif test "x$target" = "x$host"; then
17755     # We can use an host tool
17756     GDC_FOR_TARGET='$(GDC)'
17757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17758 $as_echo "host tool" >&6; }
17759   else
17760     # We need a cross tool
17761     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17762 $as_echo "pre-installed" >&6; }
17763   fi
17764 fi
17765
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17767 $as_echo_n "checking where to find the target ld... " >&6; }
17768 if test "x${build}" != "x${host}" ; then
17769   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17770     # We already found the complete path
17771     ac_dir=`dirname $LD_FOR_TARGET`
17772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17773 $as_echo "pre-installed in $ac_dir" >&6; }
17774   else
17775     # Canadian cross, just use what we found
17776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17777 $as_echo "pre-installed" >&6; }
17778   fi
17779 else
17780   ok=yes
17781   case " ${configdirs} " in
17782     *" ld "*) ;;
17783     *) ok=no ;;
17784   esac
17785
17786   if test $ok = yes; then
17787     # An in-tree tool is available and we can use it
17788     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17790 $as_echo "just compiled" >&6; }
17791   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17792     # We already found the complete path
17793     ac_dir=`dirname $LD_FOR_TARGET`
17794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17795 $as_echo "pre-installed in $ac_dir" >&6; }
17796   elif test "x$target" = "x$host"; then
17797     # We can use an host tool
17798     LD_FOR_TARGET='$(LD)'
17799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17800 $as_echo "host tool" >&6; }
17801   else
17802     # We need a cross tool
17803     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17804 $as_echo "pre-installed" >&6; }
17805   fi
17806 fi
17807
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17809 $as_echo_n "checking where to find the target lipo... " >&6; }
17810 if test "x${build}" != "x${host}" ; then
17811   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17812     # We already found the complete path
17813     ac_dir=`dirname $LIPO_FOR_TARGET`
17814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17815 $as_echo "pre-installed in $ac_dir" >&6; }
17816   else
17817     # Canadian cross, just use what we found
17818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17819 $as_echo "pre-installed" >&6; }
17820   fi
17821 else
17822   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17823     # We already found the complete path
17824     ac_dir=`dirname $LIPO_FOR_TARGET`
17825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17826 $as_echo "pre-installed in $ac_dir" >&6; }
17827   elif test "x$target" = "x$host"; then
17828     # We can use an host tool
17829     LIPO_FOR_TARGET='$(LIPO)'
17830     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17831 $as_echo "host tool" >&6; }
17832   else
17833     # We need a cross tool
17834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17835 $as_echo "pre-installed" >&6; }
17836   fi
17837 fi
17838
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17840 $as_echo_n "checking where to find the target nm... " >&6; }
17841 if test "x${build}" != "x${host}" ; then
17842   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17843     # We already found the complete path
17844     ac_dir=`dirname $NM_FOR_TARGET`
17845     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17846 $as_echo "pre-installed in $ac_dir" >&6; }
17847   else
17848     # Canadian cross, just use what we found
17849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17850 $as_echo "pre-installed" >&6; }
17851   fi
17852 else
17853   ok=yes
17854   case " ${configdirs} " in
17855     *" binutils "*) ;;
17856     *) ok=no ;;
17857   esac
17858
17859   if test $ok = yes; then
17860     # An in-tree tool is available and we can use it
17861     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17862     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17863 $as_echo "just compiled" >&6; }
17864   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17865     # We already found the complete path
17866     ac_dir=`dirname $NM_FOR_TARGET`
17867     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17868 $as_echo "pre-installed in $ac_dir" >&6; }
17869   elif test "x$target" = "x$host"; then
17870     # We can use an host tool
17871     NM_FOR_TARGET='$(NM)'
17872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17873 $as_echo "host tool" >&6; }
17874   else
17875     # We need a cross tool
17876     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17877 $as_echo "pre-installed" >&6; }
17878   fi
17879 fi
17880
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17882 $as_echo_n "checking where to find the target objcopy... " >&6; }
17883 if test "x${build}" != "x${host}" ; then
17884   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17885     # We already found the complete path
17886     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17888 $as_echo "pre-installed in $ac_dir" >&6; }
17889   else
17890     # Canadian cross, just use what we found
17891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17892 $as_echo "pre-installed" >&6; }
17893   fi
17894 else
17895   ok=yes
17896   case " ${configdirs} " in
17897     *" binutils "*) ;;
17898     *) ok=no ;;
17899   esac
17900
17901   if test $ok = yes; then
17902     # An in-tree tool is available and we can use it
17903     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17905 $as_echo "just compiled" >&6; }
17906   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17907     # We already found the complete path
17908     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17910 $as_echo "pre-installed in $ac_dir" >&6; }
17911   elif test "x$target" = "x$host"; then
17912     # We can use an host tool
17913     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17915 $as_echo "host tool" >&6; }
17916   else
17917     # We need a cross tool
17918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17919 $as_echo "pre-installed" >&6; }
17920   fi
17921 fi
17922
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17924 $as_echo_n "checking where to find the target objdump... " >&6; }
17925 if test "x${build}" != "x${host}" ; then
17926   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17927     # We already found the complete path
17928     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17930 $as_echo "pre-installed in $ac_dir" >&6; }
17931   else
17932     # Canadian cross, just use what we found
17933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17934 $as_echo "pre-installed" >&6; }
17935   fi
17936 else
17937   ok=yes
17938   case " ${configdirs} " in
17939     *" binutils "*) ;;
17940     *) ok=no ;;
17941   esac
17942
17943   if test $ok = yes; then
17944     # An in-tree tool is available and we can use it
17945     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17946     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17947 $as_echo "just compiled" >&6; }
17948   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17949     # We already found the complete path
17950     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17952 $as_echo "pre-installed in $ac_dir" >&6; }
17953   elif test "x$target" = "x$host"; then
17954     # We can use an host tool
17955     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17957 $as_echo "host tool" >&6; }
17958   else
17959     # We need a cross tool
17960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17961 $as_echo "pre-installed" >&6; }
17962   fi
17963 fi
17964
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17966 $as_echo_n "checking where to find the target otool... " >&6; }
17967 if test "x${build}" != "x${host}" ; then
17968   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17969     # We already found the complete path
17970     ac_dir=`dirname $OTOOL_FOR_TARGET`
17971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17972 $as_echo "pre-installed in $ac_dir" >&6; }
17973   else
17974     # Canadian cross, just use what we found
17975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17976 $as_echo "pre-installed" >&6; }
17977   fi
17978 else
17979   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17980     # We already found the complete path
17981     ac_dir=`dirname $OTOOL_FOR_TARGET`
17982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17983 $as_echo "pre-installed in $ac_dir" >&6; }
17984   elif test "x$target" = "x$host"; then
17985     # We can use an host tool
17986     OTOOL_FOR_TARGET='$(OTOOL)'
17987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17988 $as_echo "host tool" >&6; }
17989   else
17990     # We need a cross tool
17991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17992 $as_echo "pre-installed" >&6; }
17993   fi
17994 fi
17995
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17997 $as_echo_n "checking where to find the target ranlib... " >&6; }
17998 if test "x${build}" != "x${host}" ; then
17999   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18000     # We already found the complete path
18001     ac_dir=`dirname $RANLIB_FOR_TARGET`
18002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18003 $as_echo "pre-installed in $ac_dir" >&6; }
18004   else
18005     # Canadian cross, just use what we found
18006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18007 $as_echo "pre-installed" >&6; }
18008   fi
18009 else
18010   ok=yes
18011   case " ${configdirs} " in
18012     *" binutils "*) ;;
18013     *) ok=no ;;
18014   esac
18015
18016   if test $ok = yes; then
18017     # An in-tree tool is available and we can use it
18018     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18020 $as_echo "just compiled" >&6; }
18021   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18022     # We already found the complete path
18023     ac_dir=`dirname $RANLIB_FOR_TARGET`
18024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18025 $as_echo "pre-installed in $ac_dir" >&6; }
18026   elif test "x$target" = "x$host"; then
18027     # We can use an host tool
18028     RANLIB_FOR_TARGET='$(RANLIB)'
18029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18030 $as_echo "host tool" >&6; }
18031   else
18032     # We need a cross tool
18033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18034 $as_echo "pre-installed" >&6; }
18035   fi
18036 fi
18037
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18039 $as_echo_n "checking where to find the target readelf... " >&6; }
18040 if test "x${build}" != "x${host}" ; then
18041   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18042     # We already found the complete path
18043     ac_dir=`dirname $READELF_FOR_TARGET`
18044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18045 $as_echo "pre-installed in $ac_dir" >&6; }
18046   else
18047     # Canadian cross, just use what we found
18048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18049 $as_echo "pre-installed" >&6; }
18050   fi
18051 else
18052   ok=yes
18053   case " ${configdirs} " in
18054     *" binutils "*) ;;
18055     *) ok=no ;;
18056   esac
18057
18058   if test $ok = yes; then
18059     # An in-tree tool is available and we can use it
18060     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18062 $as_echo "just compiled" >&6; }
18063   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18064     # We already found the complete path
18065     ac_dir=`dirname $READELF_FOR_TARGET`
18066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18067 $as_echo "pre-installed in $ac_dir" >&6; }
18068   elif test "x$target" = "x$host"; then
18069     # We can use an host tool
18070     READELF_FOR_TARGET='$(READELF)'
18071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18072 $as_echo "host tool" >&6; }
18073   else
18074     # We need a cross tool
18075     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18076 $as_echo "pre-installed" >&6; }
18077   fi
18078 fi
18079
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18081 $as_echo_n "checking where to find the target strip... " >&6; }
18082 if test "x${build}" != "x${host}" ; then
18083   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18084     # We already found the complete path
18085     ac_dir=`dirname $STRIP_FOR_TARGET`
18086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18087 $as_echo "pre-installed in $ac_dir" >&6; }
18088   else
18089     # Canadian cross, just use what we found
18090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18091 $as_echo "pre-installed" >&6; }
18092   fi
18093 else
18094   ok=yes
18095   case " ${configdirs} " in
18096     *" binutils "*) ;;
18097     *) ok=no ;;
18098   esac
18099
18100   if test $ok = yes; then
18101     # An in-tree tool is available and we can use it
18102     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18103     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18104 $as_echo "just compiled" >&6; }
18105   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18106     # We already found the complete path
18107     ac_dir=`dirname $STRIP_FOR_TARGET`
18108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18109 $as_echo "pre-installed in $ac_dir" >&6; }
18110   elif test "x$target" = "x$host"; then
18111     # We can use an host tool
18112     STRIP_FOR_TARGET='$(STRIP)'
18113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18114 $as_echo "host tool" >&6; }
18115   else
18116     # We need a cross tool
18117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18118 $as_echo "pre-installed" >&6; }
18119   fi
18120 fi
18121
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18123 $as_echo_n "checking where to find the target windres... " >&6; }
18124 if test "x${build}" != "x${host}" ; then
18125   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18126     # We already found the complete path
18127     ac_dir=`dirname $WINDRES_FOR_TARGET`
18128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18129 $as_echo "pre-installed in $ac_dir" >&6; }
18130   else
18131     # Canadian cross, just use what we found
18132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18133 $as_echo "pre-installed" >&6; }
18134   fi
18135 else
18136   ok=yes
18137   case " ${configdirs} " in
18138     *" binutils "*) ;;
18139     *) ok=no ;;
18140   esac
18141
18142   if test $ok = yes; then
18143     # An in-tree tool is available and we can use it
18144     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18146 $as_echo "just compiled" >&6; }
18147   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18148     # We already found the complete path
18149     ac_dir=`dirname $WINDRES_FOR_TARGET`
18150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18151 $as_echo "pre-installed in $ac_dir" >&6; }
18152   elif test "x$target" = "x$host"; then
18153     # We can use an host tool
18154     WINDRES_FOR_TARGET='$(WINDRES)'
18155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18156 $as_echo "host tool" >&6; }
18157   else
18158     # We need a cross tool
18159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18160 $as_echo "pre-installed" >&6; }
18161   fi
18162 fi
18163
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18165 $as_echo_n "checking where to find the target windmc... " >&6; }
18166 if test "x${build}" != "x${host}" ; then
18167   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18168     # We already found the complete path
18169     ac_dir=`dirname $WINDMC_FOR_TARGET`
18170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18171 $as_echo "pre-installed in $ac_dir" >&6; }
18172   else
18173     # Canadian cross, just use what we found
18174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18175 $as_echo "pre-installed" >&6; }
18176   fi
18177 else
18178   ok=yes
18179   case " ${configdirs} " in
18180     *" binutils "*) ;;
18181     *) ok=no ;;
18182   esac
18183
18184   if test $ok = yes; then
18185     # An in-tree tool is available and we can use it
18186     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18188 $as_echo "just compiled" >&6; }
18189   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18190     # We already found the complete path
18191     ac_dir=`dirname $WINDMC_FOR_TARGET`
18192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18193 $as_echo "pre-installed in $ac_dir" >&6; }
18194   elif test "x$target" = "x$host"; then
18195     # We can use an host tool
18196     WINDMC_FOR_TARGET='$(WINDMC)'
18197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18198 $as_echo "host tool" >&6; }
18199   else
18200     # We need a cross tool
18201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18202 $as_echo "pre-installed" >&6; }
18203   fi
18204 fi
18205
18206
18207
18208
18209
18210 # Certain tools may need extra flags.
18211 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18212 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18213 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18214
18215 # When building target libraries, except in a Canadian cross, we use
18216 # the same toolchain as the compiler we just built.
18217 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18218 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18219 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18220 if test $host = $build; then
18221   case " $configdirs " in
18222     *" gcc "*)
18223       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18224       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18225       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18226       ;;
18227   esac
18228 fi
18229
18230
18231
18232
18233
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18235 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18236 # Check whether --enable-maintainer-mode was given.
18237 if test "${enable_maintainer_mode+set}" = set; then :
18238   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18239 else
18240   USE_MAINTAINER_MODE=no
18241 fi
18242
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18244 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18245
18246
18247 if test "$USE_MAINTAINER_MODE" = yes; then
18248   MAINTAINER_MODE_TRUE=
18249   MAINTAINER_MODE_FALSE='#'
18250 else
18251   MAINTAINER_MODE_TRUE='#'
18252   MAINTAINER_MODE_FALSE=
18253 fi
18254 MAINT=$MAINTAINER_MODE_TRUE
18255
18256 # ---------------------
18257 # GCC bootstrap support
18258 # ---------------------
18259
18260 # Stage specific cflags for build.
18261 stage1_cflags="-g"
18262 case $build in
18263   vax-*-*)
18264     case ${GCC} in
18265       yes) stage1_cflags="-g -Wa,-J" ;;
18266       *) stage1_cflags="-g -J" ;;
18267     esac ;;
18268 esac
18269
18270
18271
18272 # Enable --enable-checking in stage1 of the compiler.
18273 # Check whether --enable-stage1-checking was given.
18274 if test "${enable_stage1_checking+set}" = set; then :
18275   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18276 else
18277   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18278   # For --disable-checking or implicit --enable-checking=release, avoid
18279   # setting --enable-checking=gc in the default stage1 checking for LTO
18280   # bootstraps.  See PR62077.
18281   case $BUILD_CONFIG in
18282     *lto*)
18283       stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18284     *)
18285       stage1_checking=--enable-checking=yes,types;;
18286   esac
18287   if test "x$enable_checking" = x && \
18288      test -d ${srcdir}/gcc && \
18289      test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18290     stage1_checking=--enable-checking=yes,types,extra
18291   fi
18292 else
18293   stage1_checking=--enable-checking=$enable_checking,types
18294 fi
18295 fi
18296
18297
18298
18299 # Enable -Werror in bootstrap stage2 and later.
18300 # Check whether --enable-werror was given.
18301 if test "${enable_werror+set}" = set; then :
18302   enableval=$enable_werror;
18303 case ${enable_werror} in
18304   yes) stage2_werror_flag="--enable-werror-always" ;;
18305   *) stage2_werror_flag="" ;;
18306 esac
18307
18308 else
18309
18310 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18311   case $BUILD_CONFIG in
18312   bootstrap-debug)
18313       stage2_werror_flag="--enable-werror-always" ;;
18314   "")
18315       stage2_werror_flag="--enable-werror-always" ;;
18316   esac
18317 fi
18318
18319 fi
18320
18321
18322
18323
18324 # Specify what files to not compare during bootstrap.
18325
18326 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18327 case "$target" in
18328   hppa*64*-*-hpux*) ;;
18329   powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18330 esac
18331
18332
18333 ac_config_files="$ac_config_files Makefile"
18334
18335 cat >confcache <<\_ACEOF
18336 # This file is a shell script that caches the results of configure
18337 # tests run on this system so they can be shared between configure
18338 # scripts and configure runs, see configure's option --config-cache.
18339 # It is not useful on other systems.  If it contains results you don't
18340 # want to keep, you may remove or edit it.
18341 #
18342 # config.status only pays attention to the cache file if you give it
18343 # the --recheck option to rerun configure.
18344 #
18345 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18346 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18347 # following values.
18348
18349 _ACEOF
18350
18351 # The following way of writing the cache mishandles newlines in values,
18352 # but we know of no workaround that is simple, portable, and efficient.
18353 # So, we kill variables containing newlines.
18354 # Ultrix sh set writes to stderr and can't be redirected directly,
18355 # and sets the high bit in the cache file unless we assign to the vars.
18356 (
18357   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18358     eval ac_val=\$$ac_var
18359     case $ac_val in #(
18360     *${as_nl}*)
18361       case $ac_var in #(
18362       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18363 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18364       esac
18365       case $ac_var in #(
18366       _ | IFS | as_nl) ;; #(
18367       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18368       *) { eval $ac_var=; unset $ac_var;} ;;
18369       esac ;;
18370     esac
18371   done
18372
18373   (set) 2>&1 |
18374     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18375     *${as_nl}ac_space=\ *)
18376       # `set' does not quote correctly, so add quotes: double-quote
18377       # substitution turns \\\\ into \\, and sed turns \\ into \.
18378       sed -n \
18379         "s/'/'\\\\''/g;
18380           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18381       ;; #(
18382     *)
18383       # `set' quotes correctly as required by POSIX, so do not add quotes.
18384       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18385       ;;
18386     esac |
18387     sort
18388 ) |
18389   sed '
18390      /^ac_cv_env_/b end
18391      t clear
18392      :clear
18393      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18394      t end
18395      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18396      :end' >>confcache
18397 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18398   if test -w "$cache_file"; then
18399     if test "x$cache_file" != "x/dev/null"; then
18400       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18401 $as_echo "$as_me: updating cache $cache_file" >&6;}
18402       if test ! -f "$cache_file" || test -h "$cache_file"; then
18403         cat confcache >"$cache_file"
18404       else
18405         case $cache_file in #(
18406         */* | ?:*)
18407           mv -f confcache "$cache_file"$$ &&
18408           mv -f "$cache_file"$$ "$cache_file" ;; #(
18409         *)
18410           mv -f confcache "$cache_file" ;;
18411         esac
18412       fi
18413     fi
18414   else
18415     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18416 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18417   fi
18418 fi
18419 rm -f confcache
18420
18421 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18422 # Let make expand exec_prefix.
18423 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18424
18425 # Transform confdefs.h into DEFS.
18426 # Protect against shell expansion while executing Makefile rules.
18427 # Protect against Makefile macro expansion.
18428 #
18429 # If the first sed substitution is executed (which looks for macros that
18430 # take arguments), then branch to the quote section.  Otherwise,
18431 # look for a macro that doesn't take arguments.
18432 ac_script='
18433 :mline
18434 /\\$/{
18435  N
18436  s,\\\n,,
18437  b mline
18438 }
18439 t clear
18440 :clear
18441 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
18442 t quote
18443 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
18444 t quote
18445 b any
18446 :quote
18447 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18448 s/\[/\\&/g
18449 s/\]/\\&/g
18450 s/\$/$$/g
18451 H
18452 :any
18453 ${
18454         g
18455         s/^\n//
18456         s/\n/ /g
18457         p
18458 }
18459 '
18460 DEFS=`sed -n "$ac_script" confdefs.h`
18461
18462
18463 ac_libobjs=
18464 ac_ltlibobjs=
18465 U=
18466 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18467   # 1. Remove the extension, and $U if already installed.
18468   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18469   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18470   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18471   #    will be set to the directory where LIBOBJS objects are built.
18472   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18473   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18474 done
18475 LIBOBJS=$ac_libobjs
18476
18477 LTLIBOBJS=$ac_ltlibobjs
18478
18479
18480
18481 : "${CONFIG_STATUS=./config.status}"
18482 ac_write_fail=0
18483 ac_clean_files_save=$ac_clean_files
18484 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18486 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18487 as_write_fail=0
18488 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18489 #! $SHELL
18490 # Generated by $as_me.
18491 # Run this file to recreate the current configuration.
18492 # Compiler output produced by configure, useful for debugging
18493 # configure, is in config.log if it exists.
18494
18495 debug=false
18496 ac_cs_recheck=false
18497 ac_cs_silent=false
18498
18499 SHELL=\${CONFIG_SHELL-$SHELL}
18500 export SHELL
18501 _ASEOF
18502 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18503 ## -------------------- ##
18504 ## M4sh Initialization. ##
18505 ## -------------------- ##
18506
18507 # Be more Bourne compatible
18508 DUALCASE=1; export DUALCASE # for MKS sh
18509 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18510   emulate sh
18511   NULLCMD=:
18512   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18513   # is contrary to our usage.  Disable this feature.
18514   alias -g '${1+"$@"}'='"$@"'
18515   setopt NO_GLOB_SUBST
18516 else
18517   case `(set -o) 2>/dev/null` in #(
18518   *posix*) :
18519     set -o posix ;; #(
18520   *) :
18521      ;;
18522 esac
18523 fi
18524
18525
18526 as_nl='
18527 '
18528 export as_nl
18529 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18530 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18531 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18532 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18533 # Prefer a ksh shell builtin over an external printf program on Solaris,
18534 # but without wasting forks for bash or zsh.
18535 if test -z "$BASH_VERSION$ZSH_VERSION" \
18536     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18537   as_echo='print -r --'
18538   as_echo_n='print -rn --'
18539 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18540   as_echo='printf %s\n'
18541   as_echo_n='printf %s'
18542 else
18543   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18544     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18545     as_echo_n='/usr/ucb/echo -n'
18546   else
18547     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18548     as_echo_n_body='eval
18549       arg=$1;
18550       case $arg in #(
18551       *"$as_nl"*)
18552         expr "X$arg" : "X\\(.*\\)$as_nl";
18553         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18554       esac;
18555       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18556     '
18557     export as_echo_n_body
18558     as_echo_n='sh -c $as_echo_n_body as_echo'
18559   fi
18560   export as_echo_body
18561   as_echo='sh -c $as_echo_body as_echo'
18562 fi
18563
18564 # The user is always right.
18565 if test "${PATH_SEPARATOR+set}" != set; then
18566   PATH_SEPARATOR=:
18567   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18568     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18569       PATH_SEPARATOR=';'
18570   }
18571 fi
18572
18573
18574 # IFS
18575 # We need space, tab and new line, in precisely that order.  Quoting is
18576 # there to prevent editors from complaining about space-tab.
18577 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18578 # splitting by setting IFS to empty value.)
18579 IFS=" ""        $as_nl"
18580
18581 # Find who we are.  Look in the path if we contain no directory separator.
18582 as_myself=
18583 case $0 in #((
18584   *[\\/]* ) as_myself=$0 ;;
18585   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18586 for as_dir in $PATH
18587 do
18588   IFS=$as_save_IFS
18589   test -z "$as_dir" && as_dir=.
18590     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18591   done
18592 IFS=$as_save_IFS
18593
18594      ;;
18595 esac
18596 # We did not find ourselves, most probably we were run as `sh COMMAND'
18597 # in which case we are not to be found in the path.
18598 if test "x$as_myself" = x; then
18599   as_myself=$0
18600 fi
18601 if test ! -f "$as_myself"; then
18602   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18603   exit 1
18604 fi
18605
18606 # Unset variables that we do not need and which cause bugs (e.g. in
18607 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18608 # suppresses any "Segmentation fault" message there.  '((' could
18609 # trigger a bug in pdksh 5.2.14.
18610 for as_var in BASH_ENV ENV MAIL MAILPATH
18611 do eval test x\${$as_var+set} = xset \
18612   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18613 done
18614 PS1='$ '
18615 PS2='> '
18616 PS4='+ '
18617
18618 # NLS nuisances.
18619 LC_ALL=C
18620 export LC_ALL
18621 LANGUAGE=C
18622 export LANGUAGE
18623
18624 # CDPATH.
18625 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18626
18627
18628 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18629 # ----------------------------------------
18630 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18631 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18632 # script with STATUS, using 1 if that was 0.
18633 as_fn_error ()
18634 {
18635   as_status=$1; test $as_status -eq 0 && as_status=1
18636   if test "$4"; then
18637     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18638     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18639   fi
18640   $as_echo "$as_me: error: $2" >&2
18641   as_fn_exit $as_status
18642 } # as_fn_error
18643
18644
18645 # as_fn_set_status STATUS
18646 # -----------------------
18647 # Set $? to STATUS, without forking.
18648 as_fn_set_status ()
18649 {
18650   return $1
18651 } # as_fn_set_status
18652
18653 # as_fn_exit STATUS
18654 # -----------------
18655 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18656 as_fn_exit ()
18657 {
18658   set +e
18659   as_fn_set_status $1
18660   exit $1
18661 } # as_fn_exit
18662
18663 # as_fn_unset VAR
18664 # ---------------
18665 # Portably unset VAR.
18666 as_fn_unset ()
18667 {
18668   { eval $1=; unset $1;}
18669 }
18670 as_unset=as_fn_unset
18671 # as_fn_append VAR VALUE
18672 # ----------------------
18673 # Append the text in VALUE to the end of the definition contained in VAR. Take
18674 # advantage of any shell optimizations that allow amortized linear growth over
18675 # repeated appends, instead of the typical quadratic growth present in naive
18676 # implementations.
18677 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18678   eval 'as_fn_append ()
18679   {
18680     eval $1+=\$2
18681   }'
18682 else
18683   as_fn_append ()
18684   {
18685     eval $1=\$$1\$2
18686   }
18687 fi # as_fn_append
18688
18689 # as_fn_arith ARG...
18690 # ------------------
18691 # Perform arithmetic evaluation on the ARGs, and store the result in the
18692 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18693 # must be portable across $(()) and expr.
18694 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18695   eval 'as_fn_arith ()
18696   {
18697     as_val=$(( $* ))
18698   }'
18699 else
18700   as_fn_arith ()
18701   {
18702     as_val=`expr "$@" || test $? -eq 1`
18703   }
18704 fi # as_fn_arith
18705
18706
18707 if expr a : '\(a\)' >/dev/null 2>&1 &&
18708    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18709   as_expr=expr
18710 else
18711   as_expr=false
18712 fi
18713
18714 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18715   as_basename=basename
18716 else
18717   as_basename=false
18718 fi
18719
18720 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18721   as_dirname=dirname
18722 else
18723   as_dirname=false
18724 fi
18725
18726 as_me=`$as_basename -- "$0" ||
18727 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18728          X"$0" : 'X\(//\)$' \| \
18729          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18730 $as_echo X/"$0" |
18731     sed '/^.*\/\([^/][^/]*\)\/*$/{
18732             s//\1/
18733             q
18734           }
18735           /^X\/\(\/\/\)$/{
18736             s//\1/
18737             q
18738           }
18739           /^X\/\(\/\).*/{
18740             s//\1/
18741             q
18742           }
18743           s/.*/./; q'`
18744
18745 # Avoid depending upon Character Ranges.
18746 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18747 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18748 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18749 as_cr_digits='0123456789'
18750 as_cr_alnum=$as_cr_Letters$as_cr_digits
18751
18752 ECHO_C= ECHO_N= ECHO_T=
18753 case `echo -n x` in #(((((
18754 -n*)
18755   case `echo 'xy\c'` in
18756   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18757   xy)  ECHO_C='\c';;
18758   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18759        ECHO_T=' ';;
18760   esac;;
18761 *)
18762   ECHO_N='-n';;
18763 esac
18764
18765 rm -f conf$$ conf$$.exe conf$$.file
18766 if test -d conf$$.dir; then
18767   rm -f conf$$.dir/conf$$.file
18768 else
18769   rm -f conf$$.dir
18770   mkdir conf$$.dir 2>/dev/null
18771 fi
18772 if (echo >conf$$.file) 2>/dev/null; then
18773   if ln -s conf$$.file conf$$ 2>/dev/null; then
18774     as_ln_s='ln -s'
18775     # ... but there are two gotchas:
18776     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18777     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18778     # In both cases, we have to default to `cp -pR'.
18779     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18780       as_ln_s='cp -pR'
18781   elif ln conf$$.file conf$$ 2>/dev/null; then
18782     as_ln_s=ln
18783   else
18784     as_ln_s='cp -pR'
18785   fi
18786 else
18787   as_ln_s='cp -pR'
18788 fi
18789 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18790 rmdir conf$$.dir 2>/dev/null
18791
18792
18793 # as_fn_mkdir_p
18794 # -------------
18795 # Create "$as_dir" as a directory, including parents if necessary.
18796 as_fn_mkdir_p ()
18797 {
18798
18799   case $as_dir in #(
18800   -*) as_dir=./$as_dir;;
18801   esac
18802   test -d "$as_dir" || eval $as_mkdir_p || {
18803     as_dirs=
18804     while :; do
18805       case $as_dir in #(
18806       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18807       *) as_qdir=$as_dir;;
18808       esac
18809       as_dirs="'$as_qdir' $as_dirs"
18810       as_dir=`$as_dirname -- "$as_dir" ||
18811 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18812          X"$as_dir" : 'X\(//\)[^/]' \| \
18813          X"$as_dir" : 'X\(//\)$' \| \
18814          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18815 $as_echo X"$as_dir" |
18816     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18817             s//\1/
18818             q
18819           }
18820           /^X\(\/\/\)[^/].*/{
18821             s//\1/
18822             q
18823           }
18824           /^X\(\/\/\)$/{
18825             s//\1/
18826             q
18827           }
18828           /^X\(\/\).*/{
18829             s//\1/
18830             q
18831           }
18832           s/.*/./; q'`
18833       test -d "$as_dir" && break
18834     done
18835     test -z "$as_dirs" || eval "mkdir $as_dirs"
18836   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18837
18838
18839 } # as_fn_mkdir_p
18840 if mkdir -p . 2>/dev/null; then
18841   as_mkdir_p='mkdir -p "$as_dir"'
18842 else
18843   test -d ./-p && rmdir ./-p
18844   as_mkdir_p=false
18845 fi
18846
18847
18848 # as_fn_executable_p FILE
18849 # -----------------------
18850 # Test if FILE is an executable regular file.
18851 as_fn_executable_p ()
18852 {
18853   test -f "$1" && test -x "$1"
18854 } # as_fn_executable_p
18855 as_test_x='test -x'
18856 as_executable_p=as_fn_executable_p
18857
18858 # Sed expression to map a string onto a valid CPP name.
18859 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18860
18861 # Sed expression to map a string onto a valid variable name.
18862 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18863
18864
18865 exec 6>&1
18866 ## ----------------------------------- ##
18867 ## Main body of $CONFIG_STATUS script. ##
18868 ## ----------------------------------- ##
18869 _ASEOF
18870 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18871
18872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18873 # Save the log message, to keep $0 and so on meaningful, and to
18874 # report actual input values of CONFIG_FILES etc. instead of their
18875 # values after options handling.
18876 ac_log="
18877 This file was extended by $as_me, which was
18878 generated by GNU Autoconf 2.69.  Invocation command line was
18879
18880   CONFIG_FILES    = $CONFIG_FILES
18881   CONFIG_HEADERS  = $CONFIG_HEADERS
18882   CONFIG_LINKS    = $CONFIG_LINKS
18883   CONFIG_COMMANDS = $CONFIG_COMMANDS
18884   $ $0 $@
18885
18886 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18887 "
18888
18889 _ACEOF
18890
18891 case $ac_config_files in *"
18892 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18893 esac
18894
18895
18896
18897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18898 # Files that config.status was made for.
18899 config_files="$ac_config_files"
18900
18901 _ACEOF
18902
18903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18904 ac_cs_usage="\
18905 \`$as_me' instantiates files and other configuration actions
18906 from templates according to the current configuration.  Unless the files
18907 and actions are specified as TAGs, all are instantiated by default.
18908
18909 Usage: $0 [OPTION]... [TAG]...
18910
18911   -h, --help       print this help, then exit
18912   -V, --version    print version number and configuration settings, then exit
18913       --config     print configuration, then exit
18914   -q, --quiet, --silent
18915                    do not print progress messages
18916   -d, --debug      don't remove temporary files
18917       --recheck    update $as_me by reconfiguring in the same conditions
18918       --file=FILE[:TEMPLATE]
18919                    instantiate the configuration file FILE
18920
18921 Configuration files:
18922 $config_files
18923
18924 Report bugs to the package provider."
18925
18926 _ACEOF
18927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18928 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18929 ac_cs_version="\\
18930 config.status
18931 configured by $0, generated by GNU Autoconf 2.69,
18932   with options \\"\$ac_cs_config\\"
18933
18934 Copyright (C) 2012 Free Software Foundation, Inc.
18935 This config.status script is free software; the Free Software Foundation
18936 gives unlimited permission to copy, distribute and modify it."
18937
18938 ac_pwd='$ac_pwd'
18939 srcdir='$srcdir'
18940 INSTALL='$INSTALL'
18941 AWK='$AWK'
18942 test -n "\$AWK" || AWK=awk
18943 _ACEOF
18944
18945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18946 # The default lists apply if the user does not specify any file.
18947 ac_need_defaults=:
18948 while test $# != 0
18949 do
18950   case $1 in
18951   --*=?*)
18952     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18953     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18954     ac_shift=:
18955     ;;
18956   --*=)
18957     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18958     ac_optarg=
18959     ac_shift=:
18960     ;;
18961   *)
18962     ac_option=$1
18963     ac_optarg=$2
18964     ac_shift=shift
18965     ;;
18966   esac
18967
18968   case $ac_option in
18969   # Handling of the options.
18970   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18971     ac_cs_recheck=: ;;
18972   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18973     $as_echo "$ac_cs_version"; exit ;;
18974   --config | --confi | --conf | --con | --co | --c )
18975     $as_echo "$ac_cs_config"; exit ;;
18976   --debug | --debu | --deb | --de | --d | -d )
18977     debug=: ;;
18978   --file | --fil | --fi | --f )
18979     $ac_shift
18980     case $ac_optarg in
18981     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18982     '') as_fn_error $? "missing file argument" ;;
18983     esac
18984     as_fn_append CONFIG_FILES " '$ac_optarg'"
18985     ac_need_defaults=false;;
18986   --he | --h |  --help | --hel | -h )
18987     $as_echo "$ac_cs_usage"; exit ;;
18988   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18989   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18990     ac_cs_silent=: ;;
18991
18992   # This is an error.
18993   -*) as_fn_error $? "unrecognized option: \`$1'
18994 Try \`$0 --help' for more information." ;;
18995
18996   *) as_fn_append ac_config_targets " $1"
18997      ac_need_defaults=false ;;
18998
18999   esac
19000   shift
19001 done
19002
19003 ac_configure_extra_args=
19004
19005 if $ac_cs_silent; then
19006   exec 6>/dev/null
19007   ac_configure_extra_args="$ac_configure_extra_args --silent"
19008 fi
19009
19010 _ACEOF
19011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19012 if \$ac_cs_recheck; then
19013   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19014   shift
19015   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19016   CONFIG_SHELL='$SHELL'
19017   export CONFIG_SHELL
19018   exec "\$@"
19019 fi
19020
19021 _ACEOF
19022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19023 exec 5>>config.log
19024 {
19025   echo
19026   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19027 ## Running $as_me. ##
19028 _ASBOX
19029   $as_echo "$ac_log"
19030 } >&5
19031
19032 _ACEOF
19033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19034 #
19035 # INIT-COMMANDS
19036 #
19037 extrasub_build="$extrasub_build"
19038    extrasub_host="$extrasub_host"
19039    extrasub_target="$extrasub_target"
19040
19041 _ACEOF
19042
19043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19044
19045 # Handling of arguments.
19046 for ac_config_target in $ac_config_targets
19047 do
19048   case $ac_config_target in
19049     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19050
19051   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19052   esac
19053 done
19054
19055
19056 # If the user did not use the arguments to specify the items to instantiate,
19057 # then the envvar interface is used.  Set only those that are not.
19058 # We use the long form for the default assignment because of an extremely
19059 # bizarre bug on SunOS 4.1.3.
19060 if $ac_need_defaults; then
19061   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19062 fi
19063
19064 # Have a temporary directory for convenience.  Make it in the build tree
19065 # simply because there is no reason against having it here, and in addition,
19066 # creating and moving files from /tmp can sometimes cause problems.
19067 # Hook for its removal unless debugging.
19068 # Note that there is a small window in which the directory will not be cleaned:
19069 # after its creation but before its name has been assigned to `$tmp'.
19070 $debug ||
19071 {
19072   tmp= ac_tmp=
19073   trap 'exit_status=$?
19074   : "${ac_tmp:=$tmp}"
19075   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19076 ' 0
19077   trap 'as_fn_exit 1' 1 2 13 15
19078 }
19079 # Create a (secure) tmp directory for tmp files.
19080
19081 {
19082   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19083   test -d "$tmp"
19084 }  ||
19085 {
19086   tmp=./conf$$-$RANDOM
19087   (umask 077 && mkdir "$tmp")
19088 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19089 ac_tmp=$tmp
19090
19091 # Set up the scripts for CONFIG_FILES section.
19092 # No need to generate them if there are no CONFIG_FILES.
19093 # This happens for instance with `./config.status config.h'.
19094 if test -n "$CONFIG_FILES"; then
19095
19096 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19097   ac_cs_awk_getline=:
19098   ac_cs_awk_pipe_init=
19099   ac_cs_awk_read_file='
19100       while ((getline aline < (F[key])) > 0)
19101         print(aline)
19102       close(F[key])'
19103   ac_cs_awk_pipe_fini=
19104 else
19105   ac_cs_awk_getline=false
19106   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19107   ac_cs_awk_read_file='
19108       print "|#_!!_#|"
19109       print "cat " F[key] " &&"
19110       '$ac_cs_awk_pipe_init
19111   # The final `:' finishes the AND list.
19112   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19113 fi
19114 ac_cr=`echo X | tr X '\015'`
19115 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19116 # But we know of no other shell where ac_cr would be empty at this
19117 # point, so we can use a bashism as a fallback.
19118 if test "x$ac_cr" = x; then
19119   eval ac_cr=\$\'\\r\'
19120 fi
19121 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19122 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19123   ac_cs_awk_cr='\\r'
19124 else
19125   ac_cs_awk_cr=$ac_cr
19126 fi
19127
19128 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19129 _ACEOF
19130
19131 # Create commands to substitute file output variables.
19132 {
19133   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19134   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19135   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19136   echo "_ACAWK" &&
19137   echo "_ACEOF"
19138 } >conf$$files.sh &&
19139 . ./conf$$files.sh ||
19140   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19141 rm -f conf$$files.sh
19142
19143 {
19144   echo "cat >conf$$subs.awk <<_ACEOF" &&
19145   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19146   echo "_ACEOF"
19147 } >conf$$subs.sh ||
19148   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19149 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19150 ac_delim='%!_!# '
19151 for ac_last_try in false false false false false :; do
19152   . ./conf$$subs.sh ||
19153     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19154
19155   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19156   if test $ac_delim_n = $ac_delim_num; then
19157     break
19158   elif $ac_last_try; then
19159     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19160   else
19161     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19162   fi
19163 done
19164 rm -f conf$$subs.sh
19165
19166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19167 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19168 _ACEOF
19169 sed -n '
19170 h
19171 s/^/S["/; s/!.*/"]=/
19172 p
19173 g
19174 s/^[^!]*!//
19175 :repl
19176 t repl
19177 s/'"$ac_delim"'$//
19178 t delim
19179 :nl
19180 h
19181 s/\(.\{148\}\)..*/\1/
19182 t more1
19183 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19184 p
19185 n
19186 b repl
19187 :more1
19188 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19189 p
19190 g
19191 s/.\{148\}//
19192 t nl
19193 :delim
19194 h
19195 s/\(.\{148\}\)..*/\1/
19196 t more2
19197 s/["\\]/\\&/g; s/^/"/; s/$/"/
19198 p
19199 b
19200 :more2
19201 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19202 p
19203 g
19204 s/.\{148\}//
19205 t delim
19206 ' <conf$$subs.awk | sed '
19207 /^[^""]/{
19208   N
19209   s/\n//
19210 }
19211 ' >>$CONFIG_STATUS || ac_write_fail=1
19212 rm -f conf$$subs.awk
19213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19214 _ACAWK
19215 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19216   for (key in S) S_is_set[key] = 1
19217   FS = "\a"
19218   \$ac_cs_awk_pipe_init
19219 }
19220 {
19221   line = $ 0
19222   nfields = split(line, field, "@")
19223   substed = 0
19224   len = length(field[1])
19225   for (i = 2; i < nfields; i++) {
19226     key = field[i]
19227     keylen = length(key)
19228     if (S_is_set[key]) {
19229       value = S[key]
19230       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19231       len += length(value) + length(field[++i])
19232       substed = 1
19233     } else
19234       len += 1 + keylen
19235   }
19236   if (nfields == 3 && !substed) {
19237     key = field[2]
19238     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
19239       \$ac_cs_awk_read_file
19240       next
19241     }
19242   }
19243   print line
19244 }
19245 \$ac_cs_awk_pipe_fini
19246 _ACAWK
19247 _ACEOF
19248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19249 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19250   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19251 else
19252   cat
19253 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19254   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19255 _ACEOF
19256
19257 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19258 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19259 # trailing colons and then remove the whole line if VPATH becomes empty
19260 # (actually we leave an empty line to preserve line numbers).
19261 if test "x$srcdir" = x.; then
19262   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19263 h
19264 s///
19265 s/^/:/
19266 s/[      ]*$/:/
19267 s/:\$(srcdir):/:/g
19268 s/:\${srcdir}:/:/g
19269 s/:@srcdir@:/:/g
19270 s/^:*//
19271 s/:*$//
19272 x
19273 s/\(=[   ]*\).*/\1/
19274 G
19275 s/\n//
19276 s/^[^=]*=[       ]*$//
19277 }'
19278 fi
19279
19280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19281 fi # test -n "$CONFIG_FILES"
19282
19283
19284 eval set X "  :F $CONFIG_FILES      "
19285 shift
19286 for ac_tag
19287 do
19288   case $ac_tag in
19289   :[FHLC]) ac_mode=$ac_tag; continue;;
19290   esac
19291   case $ac_mode$ac_tag in
19292   :[FHL]*:*);;
19293   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19294   :[FH]-) ac_tag=-:-;;
19295   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19296   esac
19297   ac_save_IFS=$IFS
19298   IFS=:
19299   set x $ac_tag
19300   IFS=$ac_save_IFS
19301   shift
19302   ac_file=$1
19303   shift
19304
19305   case $ac_mode in
19306   :L) ac_source=$1;;
19307   :[FH])
19308     ac_file_inputs=
19309     for ac_f
19310     do
19311       case $ac_f in
19312       -) ac_f="$ac_tmp/stdin";;
19313       *) # Look for the file first in the build tree, then in the source tree
19314          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19315          # because $ac_f cannot contain `:'.
19316          test -f "$ac_f" ||
19317            case $ac_f in
19318            [\\/$]*) false;;
19319            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19320            esac ||
19321            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19322       esac
19323       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19324       as_fn_append ac_file_inputs " '$ac_f'"
19325     done
19326
19327     # Let's still pretend it is `configure' which instantiates (i.e., don't
19328     # use $as_me), people would be surprised to read:
19329     #    /* config.h.  Generated by config.status.  */
19330     configure_input='Generated from '`
19331           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19332         `' by configure.'
19333     if test x"$ac_file" != x-; then
19334       configure_input="$ac_file.  $configure_input"
19335       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19336 $as_echo "$as_me: creating $ac_file" >&6;}
19337     fi
19338     # Neutralize special characters interpreted by sed in replacement strings.
19339     case $configure_input in #(
19340     *\&* | *\|* | *\\* )
19341        ac_sed_conf_input=`$as_echo "$configure_input" |
19342        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19343     *) ac_sed_conf_input=$configure_input;;
19344     esac
19345
19346     case $ac_tag in
19347     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19348       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19349     esac
19350     ;;
19351   esac
19352
19353   ac_dir=`$as_dirname -- "$ac_file" ||
19354 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19355          X"$ac_file" : 'X\(//\)[^/]' \| \
19356          X"$ac_file" : 'X\(//\)$' \| \
19357          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19358 $as_echo X"$ac_file" |
19359     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19360             s//\1/
19361             q
19362           }
19363           /^X\(\/\/\)[^/].*/{
19364             s//\1/
19365             q
19366           }
19367           /^X\(\/\/\)$/{
19368             s//\1/
19369             q
19370           }
19371           /^X\(\/\).*/{
19372             s//\1/
19373             q
19374           }
19375           s/.*/./; q'`
19376   as_dir="$ac_dir"; as_fn_mkdir_p
19377   ac_builddir=.
19378
19379 case "$ac_dir" in
19380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19381 *)
19382   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19383   # A ".." for each directory in $ac_dir_suffix.
19384   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19385   case $ac_top_builddir_sub in
19386   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19387   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19388   esac ;;
19389 esac
19390 ac_abs_top_builddir=$ac_pwd
19391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19392 # for backward compatibility:
19393 ac_top_builddir=$ac_top_build_prefix
19394
19395 case $srcdir in
19396   .)  # We are building in place.
19397     ac_srcdir=.
19398     ac_top_srcdir=$ac_top_builddir_sub
19399     ac_abs_top_srcdir=$ac_pwd ;;
19400   [\\/]* | ?:[\\/]* )  # Absolute name.
19401     ac_srcdir=$srcdir$ac_dir_suffix;
19402     ac_top_srcdir=$srcdir
19403     ac_abs_top_srcdir=$srcdir ;;
19404   *) # Relative name.
19405     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19406     ac_top_srcdir=$ac_top_build_prefix$srcdir
19407     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19408 esac
19409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19410
19411
19412   case $ac_mode in
19413   :F)
19414   #
19415   # CONFIG_FILE
19416   #
19417
19418   case $INSTALL in
19419   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19420   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19421   esac
19422 _ACEOF
19423
19424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19425 # If the template does not know about datarootdir, expand it.
19426 # FIXME: This hack should be removed a few years after 2.60.
19427 ac_datarootdir_hack=; ac_datarootdir_seen=
19428 ac_sed_dataroot='
19429 /datarootdir/ {
19430   p
19431   q
19432 }
19433 /@datadir@/p
19434 /@docdir@/p
19435 /@infodir@/p
19436 /@localedir@/p
19437 /@mandir@/p'
19438 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19439 *datarootdir*) ac_datarootdir_seen=yes;;
19440 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19441   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19442 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19443 _ACEOF
19444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19445   ac_datarootdir_hack='
19446   s&@datadir@&$datadir&g
19447   s&@docdir@&$docdir&g
19448   s&@infodir@&$infodir&g
19449   s&@localedir@&$localedir&g
19450   s&@mandir@&$mandir&g
19451   s&\\\${datarootdir}&$datarootdir&g' ;;
19452 esac
19453 _ACEOF
19454
19455 # Neutralize VPATH when `$srcdir' = `.'.
19456 # Shell code in configure.ac might set extrasub.
19457 # FIXME: do we really want to maintain this feature?
19458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19459 ac_sed_extra="$ac_vpsub
19460 $extrasub
19461 _ACEOF
19462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19463 :t
19464 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19465 s|@configure_input@|$ac_sed_conf_input|;t t
19466 s&@top_builddir@&$ac_top_builddir_sub&;t t
19467 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19468 s&@srcdir@&$ac_srcdir&;t t
19469 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19470 s&@top_srcdir@&$ac_top_srcdir&;t t
19471 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19472 s&@builddir@&$ac_builddir&;t t
19473 s&@abs_builddir@&$ac_abs_builddir&;t t
19474 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19475 s&@INSTALL@&$ac_INSTALL&;t t
19476 $ac_datarootdir_hack
19477 "
19478 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19479 if $ac_cs_awk_getline; then
19480   $AWK -f "$ac_tmp/subs.awk"
19481 else
19482   $AWK -f "$ac_tmp/subs.awk" | $SHELL
19483 fi \
19484   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19485
19486 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19487   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19488   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19489       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19490   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19491 which seems to be undefined.  Please make sure it is defined" >&5
19492 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19493 which seems to be undefined.  Please make sure it is defined" >&2;}
19494
19495   rm -f "$ac_tmp/stdin"
19496   case $ac_file in
19497   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19498   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19499   esac \
19500   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19501  ;;
19502
19503
19504
19505   esac
19506
19507
19508   case $ac_file$ac_mode in
19509     "Makefile":F) sed "$extrasub_build" Makefile |
19510    sed "$extrasub_host" |
19511    sed "$extrasub_target" > mf$$
19512    mv -f mf$$ Makefile ;;
19513
19514   esac
19515 done # for ac_tag
19516
19517
19518 as_fn_exit 0
19519 _ACEOF
19520 ac_clean_files=$ac_clean_files_save
19521
19522 test $ac_write_fail = 0 ||
19523   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19524
19525
19526 # configure is writing to config.log, and then calls config.status.
19527 # config.status does its own redirection, appending to config.log.
19528 # Unfortunately, on DOS this fails, as config.log is still kept open
19529 # by configure, so config.status won't be able to write to it; its
19530 # output is simply discarded.  So we exec the FD to /dev/null,
19531 # effectively closing config.log, so it can be properly (re)opened and
19532 # appended to by config.status.  When coming back to configure, we
19533 # need to make the FD available again.
19534 if test "$no_create" != yes; then
19535   ac_cs_success=:
19536   ac_config_status_args=
19537   test "$silent" = yes &&
19538     ac_config_status_args="$ac_config_status_args --quiet"
19539   exec 5>/dev/null
19540   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19541   exec 5>>config.log
19542   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19543   # would make configure fail if this is the last instruction.
19544   $ac_cs_success || as_fn_exit 1
19545 fi
19546 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19547   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19548 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19549 fi
19550