top-level configure: setup target_configdirs based on repository
[platform/upstream/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GDC_FOR_TARGET
617 GOC_FOR_TARGET
618 GFORTRAN_FOR_TARGET
619 GCC_FOR_TARGET
620 CXX_FOR_TARGET
621 CC_FOR_TARGET
622 READELF
623 OTOOL
624 OBJDUMP
625 OBJCOPY
626 WINDMC
627 WINDRES
628 STRIP
629 RANLIB
630 NM
631 LIPO
632 LD
633 DSYMUTIL
634 DLLTOOL
635 AS
636 AR
637 RUNTEST
638 EXPECT
639 MAKEINFO
640 FLEX
641 LEX
642 M4
643 BISON
644 YACC
645 WINDRES_FOR_BUILD
646 WINDMC_FOR_BUILD
647 RANLIB_FOR_BUILD
648 NM_FOR_BUILD
649 LD_FOR_BUILD
650 LDFLAGS_FOR_BUILD
651 GDC_FOR_BUILD
652 GOC_FOR_BUILD
653 GFORTRAN_FOR_BUILD
654 DSYMUTIL_FOR_BUILD
655 DLLTOOL_FOR_BUILD
656 CXX_FOR_BUILD
657 CXXFLAGS_FOR_BUILD
658 CFLAGS_FOR_BUILD
659 CC_FOR_BUILD
660 AS_FOR_BUILD
661 AR_FOR_BUILD
662 target_configdirs
663 configdirs
664 build_configdirs
665 INSTALL_GDB_TK
666 GDB_TK
667 CONFIGURE_GDB_TK
668 build_tooldir
669 tooldir
670 GCC_SHLIB_SUBDIR
671 RPATH_ENVVAR
672 target_configargs
673 host_configargs
674 build_configargs
675 BUILD_CONFIG
676 LDFLAGS_FOR_TARGET
677 CXXFLAGS_FOR_TARGET
678 CFLAGS_FOR_TARGET
679 DEBUG_PREFIX_CFLAGS_FOR_TARGET
680 SYSROOT_CFLAGS_FOR_TARGET
681 get_gcc_base_ver
682 extra_host_zlib_configure_flags
683 extra_host_libiberty_configure_flags
684 stage1_languages
685 host_shared
686 extra_linker_plugin_flags
687 extra_linker_plugin_configure_flags
688 islinc
689 isllibs
690 poststage1_ldflags
691 poststage1_libs
692 stage1_ldflags
693 stage1_libs
694 extra_isl_gmp_configure_flags
695 extra_mpc_mpfr_configure_flags
696 extra_mpc_gmp_configure_flags
697 extra_mpfr_configure_flags
698 gmpinc
699 gmplibs
700 HAVE_CXX11_FOR_BUILD
701 HAVE_CXX11
702 do_compare
703 GNATMAKE
704 GNATBIND
705 ac_ct_CXX
706 CXXFLAGS
707 CXX
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
714 CC
715 extra_liboffloadmic_configure_flags
716 target_subdir
717 host_subdir
718 build_subdir
719 build_libsubdir
720 AWK
721 SED
722 LN_S
723 LN
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 target_os
728 target_vendor
729 target_cpu
730 target
731 host_os
732 host_vendor
733 host_cpu
734 host
735 target_noncanonical
736 host_noncanonical
737 build_noncanonical
738 build_os
739 build_vendor
740 build_cpu
741 build
742 TOPLEVEL_CONFIGURE_ARGUMENTS
743 target_alias
744 host_alias
745 build_alias
746 LIBS
747 ECHO_T
748 ECHO_N
749 ECHO_C
750 DEFS
751 mandir
752 localedir
753 libdir
754 psdir
755 pdfdir
756 dvidir
757 htmldir
758 infodir
759 docdir
760 oldincludedir
761 includedir
762 localstatedir
763 sharedstatedir
764 sysconfdir
765 datadir
766 datarootdir
767 libexecdir
768 sbindir
769 bindir
770 program_transform_name
771 prefix
772 exec_prefix
773 PACKAGE_URL
774 PACKAGE_BUGREPORT
775 PACKAGE_STRING
776 PACKAGE_VERSION
777 PACKAGE_TARNAME
778 PACKAGE_NAME
779 PATH_SEPARATOR
780 SHELL'
781 ac_subst_files='serialization_dependencies
782 host_makefile_frag
783 target_makefile_frag
784 alphaieee_frag
785 ospace_frag'
786 ac_user_opts='
787 enable_option_checking
788 with_build_libsubdir
789 with_system_zlib
790 enable_as_accelerator_for
791 enable_offload_targets
792 enable_offload_defaulted
793 enable_gold
794 enable_ld
795 enable_compressed_debug_sections
796 enable_libquadmath
797 enable_libquadmath_support
798 enable_libada
799 enable_libssp
800 enable_libstdcxx
801 enable_liboffloadmic
802 enable_bootstrap
803 with_mpc
804 with_mpc_include
805 with_mpc_lib
806 with_mpfr_dir
807 with_mpfr
808 with_mpfr_include
809 with_mpfr_lib
810 with_gmp_dir
811 with_gmp
812 with_gmp_include
813 with_gmp_lib
814 with_stage1_libs
815 with_static_standard_libraries
816 with_stage1_ldflags
817 with_boot_libs
818 with_boot_ldflags
819 with_isl
820 with_isl_include
821 with_isl_lib
822 enable_isl_version_check
823 enable_lto
824 enable_linker_plugin_configure_flags
825 enable_linker_plugin_flags
826 enable_host_shared
827 enable_stage1_languages
828 enable_objc_gc
829 with_target_bdw_gc
830 with_target_bdw_gc_include
831 with_target_bdw_gc_lib
832 with_gcc_major_version_only
833 with_build_sysroot
834 with_debug_prefix_map
835 with_build_config
836 enable_vtable_verify
837 enable_serial_configure
838 with_build_time_tools
839 enable_maintainer_mode
840 enable_stage1_checking
841 enable_werror
842 '
843       ac_precious_vars='build_alias
844 host_alias
845 target_alias
846 CC
847 CFLAGS
848 LDFLAGS
849 LIBS
850 CPPFLAGS
851 CXX
852 CXXFLAGS
853 CCC
854 build_configargs
855 host_configargs
856 target_configargs
857 AR
858 AS
859 DLLTOOL
860 DSYMUTIL
861 LD
862 LIPO
863 NM
864 RANLIB
865 STRIP
866 WINDRES
867 WINDMC
868 OBJCOPY
869 OBJDUMP
870 OTOOL
871 READELF
872 CC_FOR_TARGET
873 CXX_FOR_TARGET
874 GCC_FOR_TARGET
875 GFORTRAN_FOR_TARGET
876 GOC_FOR_TARGET
877 GDC_FOR_TARGET
878 AR_FOR_TARGET
879 AS_FOR_TARGET
880 DLLTOOL_FOR_TARGET
881 DSYMUTIL_FOR_TARGET
882 LD_FOR_TARGET
883 LIPO_FOR_TARGET
884 NM_FOR_TARGET
885 OBJCOPY_FOR_TARGET
886 OBJDUMP_FOR_TARGET
887 OTOOL_FOR_TARGET
888 RANLIB_FOR_TARGET
889 READELF_FOR_TARGET
890 STRIP_FOR_TARGET
891 WINDRES_FOR_TARGET
892 WINDMC_FOR_TARGET'
893
894
895 # Initialize some variables set by options.
896 ac_init_help=
897 ac_init_version=false
898 ac_unrecognized_opts=
899 ac_unrecognized_sep=
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
902 cache_file=/dev/null
903 exec_prefix=NONE
904 no_create=
905 no_recursion=
906 prefix=NONE
907 program_prefix=NONE
908 program_suffix=NONE
909 program_transform_name=s,x,x,
910 silent=
911 site=
912 srcdir=
913 verbose=
914 x_includes=NONE
915 x_libraries=NONE
916
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE}'
934 infodir='${datarootdir}/info'
935 htmldir='${docdir}'
936 dvidir='${docdir}'
937 pdfdir='${docdir}'
938 psdir='${docdir}'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
942
943 ac_prev=
944 ac_dashdash=
945 for ac_option
946 do
947   # If the previous option needs an argument, assign it.
948   if test -n "$ac_prev"; then
949     eval $ac_prev=\$ac_option
950     ac_prev=
951     continue
952   fi
953
954   case $ac_option in
955   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956   *=)   ac_optarg= ;;
957   *)    ac_optarg=yes ;;
958   esac
959
960   # Accept the important Cygnus configure options, so we can diagnose typos.
961
962   case $ac_dashdash$ac_option in
963   --)
964     ac_dashdash=yes ;;
965
966   -bindir | --bindir | --bindi | --bind | --bin | --bi)
967     ac_prev=bindir ;;
968   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969     bindir=$ac_optarg ;;
970
971   -build | --build | --buil | --bui | --bu)
972     ac_prev=build_alias ;;
973   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974     build_alias=$ac_optarg ;;
975
976   -cache-file | --cache-file | --cache-fil | --cache-fi \
977   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978     ac_prev=cache_file ;;
979   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981     cache_file=$ac_optarg ;;
982
983   --config-cache | -C)
984     cache_file=config.cache ;;
985
986   -datadir | --datadir | --datadi | --datad)
987     ac_prev=datadir ;;
988   -datadir=* | --datadir=* | --datadi=* | --datad=*)
989     datadir=$ac_optarg ;;
990
991   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992   | --dataroo | --dataro | --datar)
993     ac_prev=datarootdir ;;
994   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996     datarootdir=$ac_optarg ;;
997
998   -disable-* | --disable-*)
999     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000     # Reject names that are not valid shell variable names.
1001     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002       as_fn_error $? "invalid feature name: $ac_useropt"
1003     ac_useropt_orig=$ac_useropt
1004     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005     case $ac_user_opts in
1006       *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010          ac_unrecognized_sep=', ';;
1011     esac
1012     eval enable_$ac_useropt=no ;;
1013
1014   -docdir | --docdir | --docdi | --doc | --do)
1015     ac_prev=docdir ;;
1016   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017     docdir=$ac_optarg ;;
1018
1019   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020     ac_prev=dvidir ;;
1021   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022     dvidir=$ac_optarg ;;
1023
1024   -enable-* | --enable-*)
1025     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026     # Reject names that are not valid shell variable names.
1027     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028       as_fn_error $? "invalid feature name: $ac_useropt"
1029     ac_useropt_orig=$ac_useropt
1030     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031     case $ac_user_opts in
1032       *"
1033 "enable_$ac_useropt"
1034 "*) ;;
1035       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036          ac_unrecognized_sep=', ';;
1037     esac
1038     eval enable_$ac_useropt=\$ac_optarg ;;
1039
1040   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042   | --exec | --exe | --ex)
1043     ac_prev=exec_prefix ;;
1044   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046   | --exec=* | --exe=* | --ex=*)
1047     exec_prefix=$ac_optarg ;;
1048
1049   -gas | --gas | --ga | --g)
1050     # Obsolete; use --with-gas.
1051     with_gas=yes ;;
1052
1053   -help | --help | --hel | --he | -h)
1054     ac_init_help=long ;;
1055   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056     ac_init_help=recursive ;;
1057   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058     ac_init_help=short ;;
1059
1060   -host | --host | --hos | --ho)
1061     ac_prev=host_alias ;;
1062   -host=* | --host=* | --hos=* | --ho=*)
1063     host_alias=$ac_optarg ;;
1064
1065   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066     ac_prev=htmldir ;;
1067   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068   | --ht=*)
1069     htmldir=$ac_optarg ;;
1070
1071   -includedir | --includedir | --includedi | --included | --include \
1072   | --includ | --inclu | --incl | --inc)
1073     ac_prev=includedir ;;
1074   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075   | --includ=* | --inclu=* | --incl=* | --inc=*)
1076     includedir=$ac_optarg ;;
1077
1078   -infodir | --infodir | --infodi | --infod | --info | --inf)
1079     ac_prev=infodir ;;
1080   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1081     infodir=$ac_optarg ;;
1082
1083   -libdir | --libdir | --libdi | --libd)
1084     ac_prev=libdir ;;
1085   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1086     libdir=$ac_optarg ;;
1087
1088   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089   | --libexe | --libex | --libe)
1090     ac_prev=libexecdir ;;
1091   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092   | --libexe=* | --libex=* | --libe=*)
1093     libexecdir=$ac_optarg ;;
1094
1095   -localedir | --localedir | --localedi | --localed | --locale)
1096     ac_prev=localedir ;;
1097   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098     localedir=$ac_optarg ;;
1099
1100   -localstatedir | --localstatedir | --localstatedi | --localstated \
1101   | --localstate | --localstat | --localsta | --localst | --locals)
1102     ac_prev=localstatedir ;;
1103   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105     localstatedir=$ac_optarg ;;
1106
1107   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108     ac_prev=mandir ;;
1109   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1110     mandir=$ac_optarg ;;
1111
1112   -nfp | --nfp | --nf)
1113     # Obsolete; use --without-fp.
1114     with_fp=no ;;
1115
1116   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1117   | --no-cr | --no-c | -n)
1118     no_create=yes ;;
1119
1120   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122     no_recursion=yes ;;
1123
1124   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126   | --oldin | --oldi | --old | --ol | --o)
1127     ac_prev=oldincludedir ;;
1128   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1131     oldincludedir=$ac_optarg ;;
1132
1133   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134     ac_prev=prefix ;;
1135   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1136     prefix=$ac_optarg ;;
1137
1138   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139   | --program-pre | --program-pr | --program-p)
1140     ac_prev=program_prefix ;;
1141   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1143     program_prefix=$ac_optarg ;;
1144
1145   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146   | --program-suf | --program-su | --program-s)
1147     ac_prev=program_suffix ;;
1148   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1150     program_suffix=$ac_optarg ;;
1151
1152   -program-transform-name | --program-transform-name \
1153   | --program-transform-nam | --program-transform-na \
1154   | --program-transform-n | --program-transform- \
1155   | --program-transform | --program-transfor \
1156   | --program-transfo | --program-transf \
1157   | --program-trans | --program-tran \
1158   | --progr-tra | --program-tr | --program-t)
1159     ac_prev=program_transform_name ;;
1160   -program-transform-name=* | --program-transform-name=* \
1161   | --program-transform-nam=* | --program-transform-na=* \
1162   | --program-transform-n=* | --program-transform-=* \
1163   | --program-transform=* | --program-transfor=* \
1164   | --program-transfo=* | --program-transf=* \
1165   | --program-trans=* | --program-tran=* \
1166   | --progr-tra=* | --program-tr=* | --program-t=*)
1167     program_transform_name=$ac_optarg ;;
1168
1169   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170     ac_prev=pdfdir ;;
1171   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172     pdfdir=$ac_optarg ;;
1173
1174   -psdir | --psdir | --psdi | --psd | --ps)
1175     ac_prev=psdir ;;
1176   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177     psdir=$ac_optarg ;;
1178
1179   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180   | -silent | --silent | --silen | --sile | --sil)
1181     silent=yes ;;
1182
1183   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184     ac_prev=sbindir ;;
1185   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186   | --sbi=* | --sb=*)
1187     sbindir=$ac_optarg ;;
1188
1189   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191   | --sharedst | --shareds | --shared | --share | --shar \
1192   | --sha | --sh)
1193     ac_prev=sharedstatedir ;;
1194   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197   | --sha=* | --sh=*)
1198     sharedstatedir=$ac_optarg ;;
1199
1200   -site | --site | --sit)
1201     ac_prev=site ;;
1202   -site=* | --site=* | --sit=*)
1203     site=$ac_optarg ;;
1204
1205   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206     ac_prev=srcdir ;;
1207   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208     srcdir=$ac_optarg ;;
1209
1210   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211   | --syscon | --sysco | --sysc | --sys | --sy)
1212     ac_prev=sysconfdir ;;
1213   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215     sysconfdir=$ac_optarg ;;
1216
1217   -target | --target | --targe | --targ | --tar | --ta | --t)
1218     ac_prev=target_alias ;;
1219   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220     target_alias=$ac_optarg ;;
1221
1222   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223     verbose=yes ;;
1224
1225   -version | --version | --versio | --versi | --vers | -V)
1226     ac_init_version=: ;;
1227
1228   -with-* | --with-*)
1229     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230     # Reject names that are not valid shell variable names.
1231     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232       as_fn_error $? "invalid package name: $ac_useropt"
1233     ac_useropt_orig=$ac_useropt
1234     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235     case $ac_user_opts in
1236       *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240          ac_unrecognized_sep=', ';;
1241     esac
1242     eval with_$ac_useropt=\$ac_optarg ;;
1243
1244   -without-* | --without-*)
1245     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246     # Reject names that are not valid shell variable names.
1247     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248       as_fn_error $? "invalid package name: $ac_useropt"
1249     ac_useropt_orig=$ac_useropt
1250     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251     case $ac_user_opts in
1252       *"
1253 "with_$ac_useropt"
1254 "*) ;;
1255       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256          ac_unrecognized_sep=', ';;
1257     esac
1258     eval with_$ac_useropt=no ;;
1259
1260   --x)
1261     # Obsolete; use --with-x.
1262     with_x=yes ;;
1263
1264   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265   | --x-incl | --x-inc | --x-in | --x-i)
1266     ac_prev=x_includes ;;
1267   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269     x_includes=$ac_optarg ;;
1270
1271   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273     ac_prev=x_libraries ;;
1274   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276     x_libraries=$ac_optarg ;;
1277
1278   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1279 Try \`$0 --help' for more information"
1280     ;;
1281
1282   *=*)
1283     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284     # Reject names that are not valid shell variable names.
1285     case $ac_envvar in #(
1286       '' | [0-9]* | *[!_$as_cr_alnum]* )
1287       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1288     esac
1289     eval $ac_envvar=\$ac_optarg
1290     export $ac_envvar ;;
1291
1292   *)
1293     # FIXME: should be removed in autoconf 3.0.
1294     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1298     ;;
1299
1300   esac
1301 done
1302
1303 if test -n "$ac_prev"; then
1304   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305   as_fn_error $? "missing argument to $ac_option"
1306 fi
1307
1308 if test -n "$ac_unrecognized_opts"; then
1309   case $enable_option_checking in
1310     no) ;;
1311     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1312     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313   esac
1314 fi
1315
1316 # Check all directory arguments for consistency.
1317 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318                 datadir sysconfdir sharedstatedir localstatedir includedir \
1319                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320                 libdir localedir mandir
1321 do
1322   eval ac_val=\$$ac_var
1323   # Remove trailing slashes.
1324   case $ac_val in
1325     */ )
1326       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327       eval $ac_var=\$ac_val;;
1328   esac
1329   # Be sure to have absolute directory names.
1330   case $ac_val in
1331     [\\/$]* | ?:[\\/]* )  continue;;
1332     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333   esac
1334   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1335 done
1336
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1340 build=$build_alias
1341 host=$host_alias
1342 target=$target_alias
1343
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346   if test "x$build_alias" = x; then
1347     cross_compiling=maybe
1348   elif test "x$build_alias" != "x$host_alias"; then
1349     cross_compiling=yes
1350   fi
1351 fi
1352
1353 ac_tool_prefix=
1354 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355
1356 test "$silent" = yes && exec 6>/dev/null
1357
1358
1359 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360 ac_ls_di=`ls -di .` &&
1361 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1362   as_fn_error $? "working directory cannot be determined"
1363 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1364   as_fn_error $? "pwd does not report name of working directory"
1365
1366
1367 # Find the source files, if location was not specified.
1368 if test -z "$srcdir"; then
1369   ac_srcdir_defaulted=yes
1370   # Try the directory containing this script, then the parent directory.
1371   ac_confdir=`$as_dirname -- "$as_myself" ||
1372 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1373          X"$as_myself" : 'X\(//\)[^/]' \| \
1374          X"$as_myself" : 'X\(//\)$' \| \
1375          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1376 $as_echo X"$as_myself" |
1377     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378             s//\1/
1379             q
1380           }
1381           /^X\(\/\/\)[^/].*/{
1382             s//\1/
1383             q
1384           }
1385           /^X\(\/\/\)$/{
1386             s//\1/
1387             q
1388           }
1389           /^X\(\/\).*/{
1390             s//\1/
1391             q
1392           }
1393           s/.*/./; q'`
1394   srcdir=$ac_confdir
1395   if test ! -r "$srcdir/$ac_unique_file"; then
1396     srcdir=..
1397   fi
1398 else
1399   ac_srcdir_defaulted=no
1400 fi
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1403   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1404 fi
1405 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 ac_abs_confdir=`(
1407         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1408         pwd)`
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1411   srcdir=.
1412 fi
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1416 case $srcdir in
1417 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 esac
1419 case $srcdir in
1420   *" "*)
1421     as_fn_error $? "path to source, $srcdir, contains spaces"
1422     ;;
1423 esac
1424 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1425
1426 for ac_var in $ac_precious_vars; do
1427   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1428   eval ac_env_${ac_var}_value=\$${ac_var}
1429   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1430   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1431 done
1432
1433 #
1434 # Report the --help message.
1435 #
1436 if test "$ac_init_help" = "long"; then
1437   # Omit some internal or obsolete options to make the list less imposing.
1438   # This message is too long to be a string in the A/UX 3.1 sh.
1439   cat <<_ACEOF
1440 \`configure' configures this package to adapt to many kinds of systems.
1441
1442 Usage: $0 [OPTION]... [VAR=VALUE]...
1443
1444 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445 VAR=VALUE.  See below for descriptions of some of the useful variables.
1446
1447 Defaults for the options are specified in brackets.
1448
1449 Configuration:
1450   -h, --help              display this help and exit
1451       --help=short        display options specific to this package
1452       --help=recursive    display the short help of all the included packages
1453   -V, --version           display version information and exit
1454   -q, --quiet, --silent   do not print \`checking ...' messages
1455       --cache-file=FILE   cache test results in FILE [disabled]
1456   -C, --config-cache      alias for \`--cache-file=config.cache'
1457   -n, --no-create         do not create output files
1458       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1459
1460 Installation directories:
1461   --prefix=PREFIX         install architecture-independent files in PREFIX
1462                           [$ac_default_prefix]
1463   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1464                           [PREFIX]
1465
1466 By default, \`make install' will install all the files in
1467 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1468 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469 for instance \`--prefix=\$HOME'.
1470
1471 For better control, use the options below.
1472
1473 Fine tuning of the installation directories:
1474   --bindir=DIR            user executables [EPREFIX/bin]
1475   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1476   --libexecdir=DIR        program executables [EPREFIX/libexec]
1477   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1478   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1479   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1480   --libdir=DIR            object code libraries [EPREFIX/lib]
1481   --includedir=DIR        C header files [PREFIX/include]
1482   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1483   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1484   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1485   --infodir=DIR           info documentation [DATAROOTDIR/info]
1486   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1487   --mandir=DIR            man documentation [DATAROOTDIR/man]
1488   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1489   --htmldir=DIR           html documentation [DOCDIR]
1490   --dvidir=DIR            dvi documentation [DOCDIR]
1491   --pdfdir=DIR            pdf documentation [DOCDIR]
1492   --psdir=DIR             ps documentation [DOCDIR]
1493 _ACEOF
1494
1495   cat <<\_ACEOF
1496
1497 Program names:
1498   --program-prefix=PREFIX            prepend PREFIX to installed program names
1499   --program-suffix=SUFFIX            append SUFFIX to installed program names
1500   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1501
1502 System types:
1503   --build=BUILD     configure for building on BUILD [guessed]
1504   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1505   --target=TARGET   configure for building compilers for TARGET [HOST]
1506 _ACEOF
1507 fi
1508
1509 if test -n "$ac_init_help"; then
1510
1511   cat <<\_ACEOF
1512
1513 Optional Features:
1514   --disable-option-checking  ignore unrecognized --enable/--with options
1515   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1516   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1517   --enable-as-accelerator-for=ARG
1518                           build as offload target compiler. Specify offload
1519                           host triple by ARG
1520   --enable-offload-targets=LIST
1521                           enable offloading to devices from comma-separated
1522                           LIST of TARGET[=DIR]. Use optional path to find
1523                           offload target compiler during the build
1524   --enable-offload-defaulted
1525                 If enabled, configured but not installed offload compilers and
1526                 libgomp plugins are silently ignored.  Useful for distribution
1527                 compilers where those are in separate optional packages.
1528
1529   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1530   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1531   --enable-compressed-debug-sections={all,gas,gold,ld,none}
1532                           Enable compressed debug sections for gas, gold or ld
1533                           by default
1534   --disable-libquadmath   do not build libquadmath directory
1535   --disable-libquadmath-support
1536                           disable libquadmath support for Fortran
1537   --enable-libada         build libada directory
1538   --enable-libssp         build libssp directory
1539   --disable-libstdcxx     do not build libstdc++-v3 directory
1540   --enable-liboffloadmic=ARG
1541                           build liboffloadmic [ARG={no,host,target}]
1542   --enable-bootstrap      enable bootstrapping [yes if native build]
1543   --disable-isl-version-check
1544                           disable check for isl version
1545   --enable-lto            enable link time optimization support
1546   --enable-linker-plugin-configure-flags=FLAGS
1547                           additional flags for configuring linker plugins
1548                           [none]
1549   --enable-linker-plugin-flags=FLAGS
1550                           additional flags for configuring and building linker
1551                           plugins [none]
1552   --enable-host-shared    build host code as shared libraries
1553   --enable-stage1-languages[=all]
1554                           choose additional languages to build during stage1.
1555                           Mostly useful for compiler development
1556   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1557                           Objective-C runtime
1558   --enable-vtable-verify  Enable vtable verification feature
1559   --enable-serial-[{host,target,build}-]configure
1560                           force sequential configuration of sub-packages for
1561                           the host, target or build machine, or all
1562                           sub-packages
1563   --enable-maintainer-mode
1564                           enable make rules and dependencies not useful (and
1565                           sometimes confusing) to the casual installer
1566   --enable-stage1-checking[=all]
1567                           choose additional checking for stage1 of the
1568                           compiler
1569   --enable-werror         enable -Werror in bootstrap stage2 and later
1570
1571 Optional Packages:
1572   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1573   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1574   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1575   --with-system-zlib      use installed libz
1576   --with-mpc=PATH         specify prefix directory for installed MPC package.
1577                           Equivalent to --with-mpc-include=PATH/include plus
1578                           --with-mpc-lib=PATH/lib
1579   --with-mpc-include=PATH specify directory for installed MPC include files
1580   --with-mpc-lib=PATH     specify directory for the installed MPC library
1581   --with-mpfr-dir=PATH    this option has been REMOVED
1582   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1583                           Equivalent to --with-mpfr-include=PATH/include plus
1584                           --with-mpfr-lib=PATH/lib
1585   --with-mpfr-include=PATH
1586                           specify directory for installed MPFR include files
1587   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1588   --with-gmp-dir=PATH     this option has been REMOVED
1589   --with-gmp=PATH         specify prefix directory for the installed GMP
1590                           package. Equivalent to
1591                           --with-gmp-include=PATH/include plus
1592                           --with-gmp-lib=PATH/lib
1593   --with-gmp-include=PATH specify directory for installed GMP include files
1594   --with-gmp-lib=PATH     specify directory for the installed GMP library
1595   --with-stage1-libs=LIBS libraries for stage1
1596   --with-static-standard-libraries
1597                           use -static-libstdc++ and -static-libgcc
1598                           (default=auto)
1599   --with-stage1-ldflags=FLAGS
1600                           linker flags for stage1
1601   --with-boot-libs=LIBS   libraries for stage2 and later
1602   --with-boot-ldflags=FLAGS
1603                           linker flags for stage2 and later
1604   --with-isl=PATH         Specify prefix directory for the installed isl
1605                           package. Equivalent to
1606                           --with-isl-include=PATH/include plus
1607                           --with-isl-lib=PATH/lib
1608   --with-isl-include=PATH Specify directory for installed isl include files
1609   --with-isl-lib=PATH     Specify the directory for the installed isl library
1610   --with-target-bdw-gc=PATHLIST
1611                           specify prefix directory for installed bdw-gc
1612                           package. Equivalent to
1613                           --with-target-bdw-gc-include=PATH/include plus
1614                           --with-target-bdw-gc-lib=PATH/lib
1615   --with-target-bdw-gc-include=PATHLIST
1616                           specify directories for installed bdw-gc include
1617                           files
1618   --with-target-bdw-gc-lib=PATHLIST
1619                           specify directories for installed bdw-gc library
1620   --with-gcc-major-version-only
1621                           use only GCC major number in filesystem paths
1622   --with-build-sysroot=SYSROOT
1623                           use sysroot as the system root during the build
1624   --with-debug-prefix-map='A=B C=D ...'
1625                           map A to B, C to D ... in debug information
1626   --with-build-config='NAME NAME2...'
1627                           use config/NAME.mk build configuration
1628   --with-build-time-tools=PATH
1629                           use given path to find target tools during the build
1630
1631 Some influential environment variables:
1632   CC          C compiler command
1633   CFLAGS      C compiler flags
1634   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1635               nonstandard directory <lib dir>
1636   LIBS        libraries to pass to the linker, e.g. -l<library>
1637   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1638               you have headers in a nonstandard directory <include dir>
1639   CXX         C++ compiler command
1640   CXXFLAGS    C++ compiler flags
1641   build_configargs
1642               additional configure arguments for build directories
1643   host_configargs
1644               additional configure arguments for host directories
1645   target_configargs
1646               additional configure arguments for target directories
1647   AR          AR for the host
1648   AS          AS for the host
1649   DLLTOOL     DLLTOOL for the host
1650   DSYMUTIL    DSYMUTIL for the host
1651   LD          LD for the host
1652   LIPO        LIPO for the host
1653   NM          NM for the host
1654   RANLIB      RANLIB for the host
1655   STRIP       STRIP for the host
1656   WINDRES     WINDRES for the host
1657   WINDMC      WINDMC for the host
1658   OBJCOPY     OBJCOPY for the host
1659   OBJDUMP     OBJDUMP for the host
1660   OTOOL       OTOOL for the host
1661   READELF     READELF for the host
1662   CC_FOR_TARGET
1663               CC for the target
1664   CXX_FOR_TARGET
1665               CXX for the target
1666   GCC_FOR_TARGET
1667               GCC for the target
1668   GFORTRAN_FOR_TARGET
1669               GFORTRAN for the target
1670   GOC_FOR_TARGET
1671               GOC for the target
1672   GDC_FOR_TARGET
1673               GDC for the target
1674   AR_FOR_TARGET
1675               AR for the target
1676   AS_FOR_TARGET
1677               AS for the target
1678   DLLTOOL_FOR_TARGET
1679               DLLTOOL for the target
1680   DSYMUTIL_FOR_TARGET
1681               DSYMUTIL for the target
1682   LD_FOR_TARGET
1683               LD for the target
1684   LIPO_FOR_TARGET
1685               LIPO for the target
1686   NM_FOR_TARGET
1687               NM for the target
1688   OBJCOPY_FOR_TARGET
1689               OBJCOPY for the target
1690   OBJDUMP_FOR_TARGET
1691               OBJDUMP for the target
1692   OTOOL_FOR_TARGET
1693               OTOOL for the target
1694   RANLIB_FOR_TARGET
1695               RANLIB for the target
1696   READELF_FOR_TARGET
1697               READELF for the target
1698   STRIP_FOR_TARGET
1699               STRIP for the target
1700   WINDRES_FOR_TARGET
1701               WINDRES for the target
1702   WINDMC_FOR_TARGET
1703               WINDMC for the target
1704
1705 Use these variables to override the choices made by `configure' or to help
1706 it to find libraries and programs with nonstandard names/locations.
1707
1708 Report bugs to the package provider.
1709 _ACEOF
1710 ac_status=$?
1711 fi
1712
1713 if test "$ac_init_help" = "recursive"; then
1714   # If there are subdirs, report their specific --help.
1715   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1716     test -d "$ac_dir" ||
1717       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1718       continue
1719     ac_builddir=.
1720
1721 case "$ac_dir" in
1722 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723 *)
1724   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1725   # A ".." for each directory in $ac_dir_suffix.
1726   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1727   case $ac_top_builddir_sub in
1728   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1730   esac ;;
1731 esac
1732 ac_abs_top_builddir=$ac_pwd
1733 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1734 # for backward compatibility:
1735 ac_top_builddir=$ac_top_build_prefix
1736
1737 case $srcdir in
1738   .)  # We are building in place.
1739     ac_srcdir=.
1740     ac_top_srcdir=$ac_top_builddir_sub
1741     ac_abs_top_srcdir=$ac_pwd ;;
1742   [\\/]* | ?:[\\/]* )  # Absolute name.
1743     ac_srcdir=$srcdir$ac_dir_suffix;
1744     ac_top_srcdir=$srcdir
1745     ac_abs_top_srcdir=$srcdir ;;
1746   *) # Relative name.
1747     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1748     ac_top_srcdir=$ac_top_build_prefix$srcdir
1749     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1750 esac
1751 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1752
1753     cd "$ac_dir" || { ac_status=$?; continue; }
1754     # Check for guested configure.
1755     if test -f "$ac_srcdir/configure.gnu"; then
1756       echo &&
1757       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1758     elif test -f "$ac_srcdir/configure"; then
1759       echo &&
1760       $SHELL "$ac_srcdir/configure" --help=recursive
1761     else
1762       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1763     fi || ac_status=$?
1764     cd "$ac_pwd" || { ac_status=$?; break; }
1765   done
1766 fi
1767
1768 test -n "$ac_init_help" && exit $ac_status
1769 if $ac_init_version; then
1770   cat <<\_ACEOF
1771 configure
1772 generated by GNU Autoconf 2.69
1773
1774 Copyright (C) 2012 Free Software Foundation, Inc.
1775 This configure script is free software; the Free Software Foundation
1776 gives unlimited permission to copy, distribute and modify it.
1777 _ACEOF
1778   exit
1779 fi
1780
1781 ## ------------------------ ##
1782 ## Autoconf initialization. ##
1783 ## ------------------------ ##
1784
1785 # ac_fn_c_try_compile LINENO
1786 # --------------------------
1787 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_c_try_compile ()
1789 {
1790   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791   rm -f conftest.$ac_objext
1792   if { { ac_try="$ac_compile"
1793 case "(($ac_try" in
1794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795   *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799   (eval "$ac_compile") 2>conftest.err
1800   ac_status=$?
1801   if test -s conftest.err; then
1802     grep -v '^ *+' conftest.err >conftest.er1
1803     cat conftest.er1 >&5
1804     mv -f conftest.er1 conftest.err
1805   fi
1806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807   test $ac_status = 0; } && {
1808          test -z "$ac_c_werror_flag" ||
1809          test ! -s conftest.err
1810        } && test -s conftest.$ac_objext; then :
1811   ac_retval=0
1812 else
1813   $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1815
1816         ac_retval=1
1817 fi
1818   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819   as_fn_set_status $ac_retval
1820
1821 } # ac_fn_c_try_compile
1822
1823 # ac_fn_cxx_try_compile LINENO
1824 # ----------------------------
1825 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1826 ac_fn_cxx_try_compile ()
1827 {
1828   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829   rm -f conftest.$ac_objext
1830   if { { ac_try="$ac_compile"
1831 case "(($ac_try" in
1832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833   *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837   (eval "$ac_compile") 2>conftest.err
1838   ac_status=$?
1839   if test -s conftest.err; then
1840     grep -v '^ *+' conftest.err >conftest.er1
1841     cat conftest.er1 >&5
1842     mv -f conftest.er1 conftest.err
1843   fi
1844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845   test $ac_status = 0; } && {
1846          test -z "$ac_cxx_werror_flag" ||
1847          test ! -s conftest.err
1848        } && test -s conftest.$ac_objext; then :
1849   ac_retval=0
1850 else
1851   $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1853
1854         ac_retval=1
1855 fi
1856   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857   as_fn_set_status $ac_retval
1858
1859 } # ac_fn_cxx_try_compile
1860
1861 # ac_fn_cxx_try_link LINENO
1862 # -------------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_cxx_try_link ()
1865 {
1866   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867   rm -f conftest.$ac_objext conftest$ac_exeext
1868   if { { ac_try="$ac_link"
1869 case "(($ac_try" in
1870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871   *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875   (eval "$ac_link") 2>conftest.err
1876   ac_status=$?
1877   if test -s conftest.err; then
1878     grep -v '^ *+' conftest.err >conftest.er1
1879     cat conftest.er1 >&5
1880     mv -f conftest.er1 conftest.err
1881   fi
1882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883   test $ac_status = 0; } && {
1884          test -z "$ac_cxx_werror_flag" ||
1885          test ! -s conftest.err
1886        } && test -s conftest$ac_exeext && {
1887          test "$cross_compiling" = yes ||
1888          test -x conftest$ac_exeext
1889        }; then :
1890   ac_retval=0
1891 else
1892   $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1894
1895         ac_retval=1
1896 fi
1897   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1898   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1899   # interfere with the next link command; also delete a directory that is
1900   # left behind by Apple's compiler.  We do this before executing the actions.
1901   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903   as_fn_set_status $ac_retval
1904
1905 } # ac_fn_cxx_try_link
1906
1907 # ac_fn_c_try_link LINENO
1908 # -----------------------
1909 # Try to link conftest.$ac_ext, and return whether this succeeded.
1910 ac_fn_c_try_link ()
1911 {
1912   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913   rm -f conftest.$ac_objext conftest$ac_exeext
1914   if { { ac_try="$ac_link"
1915 case "(($ac_try" in
1916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917   *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921   (eval "$ac_link") 2>conftest.err
1922   ac_status=$?
1923   if test -s conftest.err; then
1924     grep -v '^ *+' conftest.err >conftest.er1
1925     cat conftest.er1 >&5
1926     mv -f conftest.er1 conftest.err
1927   fi
1928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929   test $ac_status = 0; } && {
1930          test -z "$ac_c_werror_flag" ||
1931          test ! -s conftest.err
1932        } && test -s conftest$ac_exeext && {
1933          test "$cross_compiling" = yes ||
1934          test -x conftest$ac_exeext
1935        }; then :
1936   ac_retval=0
1937 else
1938   $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1940
1941         ac_retval=1
1942 fi
1943   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1944   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1945   # interfere with the next link command; also delete a directory that is
1946   # left behind by Apple's compiler.  We do this before executing the actions.
1947   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1948   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949   as_fn_set_status $ac_retval
1950
1951 } # ac_fn_c_try_link
1952 cat >config.log <<_ACEOF
1953 This file contains any messages produced by compilers while
1954 running configure, to aid debugging if configure makes a mistake.
1955
1956 It was created by $as_me, which was
1957 generated by GNU Autoconf 2.69.  Invocation command line was
1958
1959   $ $0 $@
1960
1961 _ACEOF
1962 exec 5>>config.log
1963 {
1964 cat <<_ASUNAME
1965 ## --------- ##
1966 ## Platform. ##
1967 ## --------- ##
1968
1969 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1970 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1971 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1972 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1973 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1974
1975 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1976 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1977
1978 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1979 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1980 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1981 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1982 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1983 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1984 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1985
1986 _ASUNAME
1987
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991   IFS=$as_save_IFS
1992   test -z "$as_dir" && as_dir=.
1993     $as_echo "PATH: $as_dir"
1994   done
1995 IFS=$as_save_IFS
1996
1997 } >&5
1998
1999 cat >&5 <<_ACEOF
2000
2001
2002 ## ----------- ##
2003 ## Core tests. ##
2004 ## ----------- ##
2005
2006 _ACEOF
2007
2008
2009 # Keep a trace of the command line.
2010 # Strip out --no-create and --no-recursion so they do not pile up.
2011 # Strip out --silent because we don't want to record it for future runs.
2012 # Also quote any args containing shell meta-characters.
2013 # Make two passes to allow for proper duplicate-argument suppression.
2014 ac_configure_args=
2015 ac_configure_args0=
2016 ac_configure_args1=
2017 ac_must_keep_next=false
2018 for ac_pass in 1 2
2019 do
2020   for ac_arg
2021   do
2022     case $ac_arg in
2023     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2024     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2025     | -silent | --silent | --silen | --sile | --sil)
2026       continue ;;
2027     *\'*)
2028       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2029     esac
2030     case $ac_pass in
2031     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2032     2)
2033       as_fn_append ac_configure_args1 " '$ac_arg'"
2034       if test $ac_must_keep_next = true; then
2035         ac_must_keep_next=false # Got value, back to normal.
2036       else
2037         case $ac_arg in
2038           *=* | --config-cache | -C | -disable-* | --disable-* \
2039           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2040           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2041           | -with-* | --with-* | -without-* | --without-* | --x)
2042             case "$ac_configure_args0 " in
2043               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2044             esac
2045             ;;
2046           -* ) ac_must_keep_next=true ;;
2047         esac
2048       fi
2049       as_fn_append ac_configure_args " '$ac_arg'"
2050       ;;
2051     esac
2052   done
2053 done
2054 { ac_configure_args0=; unset ac_configure_args0;}
2055 { ac_configure_args1=; unset ac_configure_args1;}
2056
2057 # When interrupted or exit'd, cleanup temporary files, and complete
2058 # config.log.  We remove comments because anyway the quotes in there
2059 # would cause problems or look ugly.
2060 # WARNING: Use '\'' to represent an apostrophe within the trap.
2061 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2062 trap 'exit_status=$?
2063   # Save into config.log some information that might help in debugging.
2064   {
2065     echo
2066
2067     $as_echo "## ---------------- ##
2068 ## Cache variables. ##
2069 ## ---------------- ##"
2070     echo
2071     # The following way of writing the cache mishandles newlines in values,
2072 (
2073   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2074     eval ac_val=\$$ac_var
2075     case $ac_val in #(
2076     *${as_nl}*)
2077       case $ac_var in #(
2078       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2079 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2080       esac
2081       case $ac_var in #(
2082       _ | IFS | as_nl) ;; #(
2083       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2084       *) { eval $ac_var=; unset $ac_var;} ;;
2085       esac ;;
2086     esac
2087   done
2088   (set) 2>&1 |
2089     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2090     *${as_nl}ac_space=\ *)
2091       sed -n \
2092         "s/'\''/'\''\\\\'\'''\''/g;
2093           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2094       ;; #(
2095     *)
2096       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2097       ;;
2098     esac |
2099     sort
2100 )
2101     echo
2102
2103     $as_echo "## ----------------- ##
2104 ## Output variables. ##
2105 ## ----------------- ##"
2106     echo
2107     for ac_var in $ac_subst_vars
2108     do
2109       eval ac_val=\$$ac_var
2110       case $ac_val in
2111       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112       esac
2113       $as_echo "$ac_var='\''$ac_val'\''"
2114     done | sort
2115     echo
2116
2117     if test -n "$ac_subst_files"; then
2118       $as_echo "## ------------------- ##
2119 ## File substitutions. ##
2120 ## ------------------- ##"
2121       echo
2122       for ac_var in $ac_subst_files
2123       do
2124         eval ac_val=\$$ac_var
2125         case $ac_val in
2126         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127         esac
2128         $as_echo "$ac_var='\''$ac_val'\''"
2129       done | sort
2130       echo
2131     fi
2132
2133     if test -s confdefs.h; then
2134       $as_echo "## ----------- ##
2135 ## confdefs.h. ##
2136 ## ----------- ##"
2137       echo
2138       cat confdefs.h
2139       echo
2140     fi
2141     test "$ac_signal" != 0 &&
2142       $as_echo "$as_me: caught signal $ac_signal"
2143     $as_echo "$as_me: exit $exit_status"
2144   } >&5
2145   rm -f core *.core core.conftest.* &&
2146     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2147     exit $exit_status
2148 ' 0
2149 for ac_signal in 1 2 13 15; do
2150   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2151 done
2152 ac_signal=0
2153
2154 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2155 rm -f -r conftest* confdefs.h
2156
2157 $as_echo "/* confdefs.h */" > confdefs.h
2158
2159 # Predefined preprocessor variables.
2160
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_NAME "$PACKAGE_NAME"
2163 _ACEOF
2164
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2167 _ACEOF
2168
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2171 _ACEOF
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_STRING "$PACKAGE_STRING"
2175 _ACEOF
2176
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2179 _ACEOF
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_URL "$PACKAGE_URL"
2183 _ACEOF
2184
2185
2186 # Let the site file select an alternate cache file if it wants to.
2187 # Prefer an explicitly selected file to automatically selected ones.
2188 ac_site_file1=NONE
2189 ac_site_file2=NONE
2190 if test -n "$CONFIG_SITE"; then
2191   # We do not want a PATH search for config.site.
2192   case $CONFIG_SITE in #((
2193     -*)  ac_site_file1=./$CONFIG_SITE;;
2194     */*) ac_site_file1=$CONFIG_SITE;;
2195     *)   ac_site_file1=./$CONFIG_SITE;;
2196   esac
2197 elif test "x$prefix" != xNONE; then
2198   ac_site_file1=$prefix/share/config.site
2199   ac_site_file2=$prefix/etc/config.site
2200 else
2201   ac_site_file1=$ac_default_prefix/share/config.site
2202   ac_site_file2=$ac_default_prefix/etc/config.site
2203 fi
2204 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2205 do
2206   test "x$ac_site_file" = xNONE && continue
2207   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2208     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2209 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2210     sed 's/^/| /' "$ac_site_file" >&5
2211     . "$ac_site_file" \
2212       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214 as_fn_error $? "failed to load site script $ac_site_file
2215 See \`config.log' for more details" "$LINENO" 5; }
2216   fi
2217 done
2218
2219 if test -r "$cache_file"; then
2220   # Some versions of bash will fail to source /dev/null (special files
2221   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2222   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2223     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2224 $as_echo "$as_me: loading cache $cache_file" >&6;}
2225     case $cache_file in
2226       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2227       *)                      . "./$cache_file";;
2228     esac
2229   fi
2230 else
2231   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2232 $as_echo "$as_me: creating cache $cache_file" >&6;}
2233   >$cache_file
2234 fi
2235
2236 # Check that the precious variables saved in the cache have kept the same
2237 # value.
2238 ac_cache_corrupted=false
2239 for ac_var in $ac_precious_vars; do
2240   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2241   eval ac_new_set=\$ac_env_${ac_var}_set
2242   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2243   eval ac_new_val=\$ac_env_${ac_var}_value
2244   case $ac_old_set,$ac_new_set in
2245     set,)
2246       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2247 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2248       ac_cache_corrupted=: ;;
2249     ,set)
2250       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2251 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2252       ac_cache_corrupted=: ;;
2253     ,);;
2254     *)
2255       if test "x$ac_old_val" != "x$ac_new_val"; then
2256         # differences in whitespace do not lead to failure.
2257         ac_old_val_w=`echo x $ac_old_val`
2258         ac_new_val_w=`echo x $ac_new_val`
2259         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2260           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2261 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2262           ac_cache_corrupted=:
2263         else
2264           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2265 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2266           eval $ac_var=\$ac_old_val
2267         fi
2268         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2269 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2270         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2271 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2272       fi;;
2273   esac
2274   # Pass precious variables to config.status.
2275   if test "$ac_new_set" = set; then
2276     case $ac_new_val in
2277     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2278     *) ac_arg=$ac_var=$ac_new_val ;;
2279     esac
2280     case " $ac_configure_args " in
2281       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2282       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2283     esac
2284   fi
2285 done
2286 if $ac_cache_corrupted; then
2287   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2289   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2290 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2291   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2292 fi
2293 ## -------------------- ##
2294 ## Main body of script. ##
2295 ## -------------------- ##
2296
2297 ac_ext=c
2298 ac_cpp='$CPP $CPPFLAGS'
2299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2302
2303
2304
2305
2306
2307
2308
2309
2310 progname=$0
2311 # if PWD already has a value, it is probably wrong.
2312 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2313
2314 # Export original configure arguments for use by sub-configures.
2315 # Quote arguments with shell meta charatcers.
2316 TOPLEVEL_CONFIGURE_ARGUMENTS=
2317 set -- "$progname" "$@"
2318 for ac_arg
2319 do
2320   case "$ac_arg" in
2321   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2322     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2323     # if the argument is of the form -foo=baz, quote the baz part only
2324     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2325   *) ;;
2326   esac
2327   # Add the quoted argument to the list.
2328   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2329 done
2330 if test "$silent" = yes; then
2331   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2332 fi
2333 # Remove the initial space we just introduced and, as these will be
2334 # expanded by make, quote '$'.
2335 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2336
2337
2338 # Find the build, host, and target systems.
2339 ac_aux_dir=
2340 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2341   if test -f "$ac_dir/install-sh"; then
2342     ac_aux_dir=$ac_dir
2343     ac_install_sh="$ac_aux_dir/install-sh -c"
2344     break
2345   elif test -f "$ac_dir/install.sh"; then
2346     ac_aux_dir=$ac_dir
2347     ac_install_sh="$ac_aux_dir/install.sh -c"
2348     break
2349   elif test -f "$ac_dir/shtool"; then
2350     ac_aux_dir=$ac_dir
2351     ac_install_sh="$ac_aux_dir/shtool install -c"
2352     break
2353   fi
2354 done
2355 if test -z "$ac_aux_dir"; then
2356   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2357 fi
2358
2359 # These three variables are undocumented and unsupported,
2360 # and are intended to be withdrawn in a future Autoconf release.
2361 # They can cause serious problems if a builder's source tree is in a directory
2362 # whose full name contains unusual characters.
2363 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2364 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2365 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2366
2367
2368 # Make sure we can run config.sub.
2369 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2370   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2371
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2373 $as_echo_n "checking build system type... " >&6; }
2374 if ${ac_cv_build+:} false; then :
2375   $as_echo_n "(cached) " >&6
2376 else
2377   ac_build_alias=$build_alias
2378 test "x$ac_build_alias" = x &&
2379   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2380 test "x$ac_build_alias" = x &&
2381   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2382 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2383   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2384
2385 fi
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2387 $as_echo "$ac_cv_build" >&6; }
2388 case $ac_cv_build in
2389 *-*-*) ;;
2390 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2391 esac
2392 build=$ac_cv_build
2393 ac_save_IFS=$IFS; IFS='-'
2394 set x $ac_cv_build
2395 shift
2396 build_cpu=$1
2397 build_vendor=$2
2398 shift; shift
2399 # Remember, the first character of IFS is used to create $*,
2400 # except with old shells:
2401 build_os=$*
2402 IFS=$ac_save_IFS
2403 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2404
2405
2406  case ${build_alias} in
2407   "") build_noncanonical=${build} ;;
2408   *) build_noncanonical=${build_alias} ;;
2409 esac
2410
2411
2412
2413  case ${host_alias} in
2414   "") host_noncanonical=${build_noncanonical} ;;
2415   *) host_noncanonical=${host_alias} ;;
2416 esac
2417
2418
2419
2420  case ${target_alias} in
2421   "") target_noncanonical=${host_noncanonical} ;;
2422   *) target_noncanonical=${target_alias} ;;
2423 esac
2424
2425
2426
2427
2428 test "$host_noncanonical" = "$target_noncanonical" &&
2429   test "$program_prefix$program_suffix$program_transform_name" = \
2430     NONENONEs,x,x, &&
2431   program_transform_name=s,y,y,
2432
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2434 $as_echo_n "checking host system type... " >&6; }
2435 if ${ac_cv_host+:} false; then :
2436   $as_echo_n "(cached) " >&6
2437 else
2438   if test "x$host_alias" = x; then
2439   ac_cv_host=$ac_cv_build
2440 else
2441   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2442     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2443 fi
2444
2445 fi
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2447 $as_echo "$ac_cv_host" >&6; }
2448 case $ac_cv_host in
2449 *-*-*) ;;
2450 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2451 esac
2452 host=$ac_cv_host
2453 ac_save_IFS=$IFS; IFS='-'
2454 set x $ac_cv_host
2455 shift
2456 host_cpu=$1
2457 host_vendor=$2
2458 shift; shift
2459 # Remember, the first character of IFS is used to create $*,
2460 # except with old shells:
2461 host_os=$*
2462 IFS=$ac_save_IFS
2463 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2464
2465
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2467 $as_echo_n "checking target system type... " >&6; }
2468 if ${ac_cv_target+:} false; then :
2469   $as_echo_n "(cached) " >&6
2470 else
2471   if test "x$target_alias" = x; then
2472   ac_cv_target=$ac_cv_host
2473 else
2474   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2475     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2476 fi
2477
2478 fi
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2480 $as_echo "$ac_cv_target" >&6; }
2481 case $ac_cv_target in
2482 *-*-*) ;;
2483 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2484 esac
2485 target=$ac_cv_target
2486 ac_save_IFS=$IFS; IFS='-'
2487 set x $ac_cv_target
2488 shift
2489 target_cpu=$1
2490 target_vendor=$2
2491 shift; shift
2492 # Remember, the first character of IFS is used to create $*,
2493 # except with old shells:
2494 target_os=$*
2495 IFS=$ac_save_IFS
2496 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2497
2498
2499 # The aliases save the names the user supplied, while $host etc.
2500 # will get canonicalized.
2501 test -n "$target_alias" &&
2502   test "$program_prefix$program_suffix$program_transform_name" = \
2503     NONENONEs,x,x, &&
2504   program_prefix=${target_alias}-
2505
2506 test "$program_prefix" != NONE &&
2507   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2508 # Use a double $ so make ignores it.
2509 test "$program_suffix" != NONE &&
2510   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2511 # Double any \ or $.
2512 # By default was `s,x,x', remove it if useless.
2513 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2514 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2515
2516
2517
2518 # Get 'install' or 'install-sh' and its variants.
2519 # Find a good install program.  We prefer a C program (faster),
2520 # so one script is as good as another.  But avoid the broken or
2521 # incompatible versions:
2522 # SysV /etc/install, /usr/sbin/install
2523 # SunOS /usr/etc/install
2524 # IRIX /sbin/install
2525 # AIX /bin/install
2526 # AmigaOS /C/install, which installs bootblocks on floppy discs
2527 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2528 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2529 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2530 # OS/2's system install, which has a completely different semantic
2531 # ./install, which can be erroneously created by make from ./install.sh.
2532 # Reject install programs that cannot install multiple files.
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2534 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2535 if test -z "$INSTALL"; then
2536 if ${ac_cv_path_install+:} false; then :
2537   $as_echo_n "(cached) " >&6
2538 else
2539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542   IFS=$as_save_IFS
2543   test -z "$as_dir" && as_dir=.
2544     # Account for people who put trailing slashes in PATH elements.
2545 case $as_dir/ in #((
2546   ./ | .// | /[cC]/* | \
2547   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2548   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2549   /usr/ucb/* ) ;;
2550   *)
2551     # OSF1 and SCO ODT 3.0 have their own names for install.
2552     # Don't use installbsd from OSF since it installs stuff as root
2553     # by default.
2554     for ac_prog in ginstall scoinst install; do
2555       for ac_exec_ext in '' $ac_executable_extensions; do
2556         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2557           if test $ac_prog = install &&
2558             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2559             # AIX install.  It has an incompatible calling convention.
2560             :
2561           elif test $ac_prog = install &&
2562             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2563             # program-specific install script used by HP pwplus--don't use.
2564             :
2565           else
2566             rm -rf conftest.one conftest.two conftest.dir
2567             echo one > conftest.one
2568             echo two > conftest.two
2569             mkdir conftest.dir
2570             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2571               test -s conftest.one && test -s conftest.two &&
2572               test -s conftest.dir/conftest.one &&
2573               test -s conftest.dir/conftest.two
2574             then
2575               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2576               break 3
2577             fi
2578           fi
2579         fi
2580       done
2581     done
2582     ;;
2583 esac
2584
2585   done
2586 IFS=$as_save_IFS
2587
2588 rm -rf conftest.one conftest.two conftest.dir
2589
2590 fi
2591   if test "${ac_cv_path_install+set}" = set; then
2592     INSTALL=$ac_cv_path_install
2593   else
2594     # As a last resort, use the slow shell script.  Don't cache a
2595     # value for INSTALL within a source directory, because that will
2596     # break other packages using the cache if that directory is
2597     # removed, or if the value is a relative name.
2598     INSTALL=$ac_install_sh
2599   fi
2600 fi
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2602 $as_echo "$INSTALL" >&6; }
2603
2604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2605 # It thinks the first close brace ends the variable substitution.
2606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2607
2608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2609
2610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2611
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2613 $as_echo_n "checking whether ln works... " >&6; }
2614 if ${acx_cv_prog_LN+:} false; then :
2615   $as_echo_n "(cached) " >&6
2616 else
2617   rm -f conftestdata_t
2618 echo >conftestdata_f
2619 if ln conftestdata_f conftestdata_t 2>/dev/null
2620 then
2621   acx_cv_prog_LN=ln
2622 else
2623   acx_cv_prog_LN=no
2624 fi
2625 rm -f conftestdata_f conftestdata_t
2626
2627 fi
2628 if test $acx_cv_prog_LN = no; then
2629   LN="cp"
2630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2631 $as_echo "no, using $LN" >&6; }
2632 else
2633   LN="$acx_cv_prog_LN"
2634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2636 fi
2637
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2639 $as_echo_n "checking whether ln -s works... " >&6; }
2640 LN_S=$as_ln_s
2641 if test "$LN_S" = "ln -s"; then
2642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2643 $as_echo "yes" >&6; }
2644 else
2645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2646 $as_echo "no, using $LN_S" >&6; }
2647 fi
2648
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2650 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2651 if ${ac_cv_path_SED+:} false; then :
2652   $as_echo_n "(cached) " >&6
2653 else
2654             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2655      for ac_i in 1 2 3 4 5 6 7; do
2656        ac_script="$ac_script$as_nl$ac_script"
2657      done
2658      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2659      { ac_script=; unset ac_script;}
2660      if test -z "$SED"; then
2661   ac_path_SED_found=false
2662   # Loop through the user's path and test for each of PROGNAME-LIST
2663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666   IFS=$as_save_IFS
2667   test -z "$as_dir" && as_dir=.
2668     for ac_prog in sed gsed; do
2669     for ac_exec_ext in '' $ac_executable_extensions; do
2670       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2671       as_fn_executable_p "$ac_path_SED" || continue
2672 # Check for GNU ac_path_SED and select it if it is found.
2673   # Check for GNU $ac_path_SED
2674 case `"$ac_path_SED" --version 2>&1` in
2675 *GNU*)
2676   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2677 *)
2678   ac_count=0
2679   $as_echo_n 0123456789 >"conftest.in"
2680   while :
2681   do
2682     cat "conftest.in" "conftest.in" >"conftest.tmp"
2683     mv "conftest.tmp" "conftest.in"
2684     cp "conftest.in" "conftest.nl"
2685     $as_echo '' >> "conftest.nl"
2686     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2687     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2688     as_fn_arith $ac_count + 1 && ac_count=$as_val
2689     if test $ac_count -gt ${ac_path_SED_max-0}; then
2690       # Best one so far, save it but keep looking for a better one
2691       ac_cv_path_SED="$ac_path_SED"
2692       ac_path_SED_max=$ac_count
2693     fi
2694     # 10*(2^10) chars as input seems more than enough
2695     test $ac_count -gt 10 && break
2696   done
2697   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2698 esac
2699
2700       $ac_path_SED_found && break 3
2701     done
2702   done
2703   done
2704 IFS=$as_save_IFS
2705   if test -z "$ac_cv_path_SED"; then
2706     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2707   fi
2708 else
2709   ac_cv_path_SED=$SED
2710 fi
2711
2712 fi
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2714 $as_echo "$ac_cv_path_SED" >&6; }
2715  SED="$ac_cv_path_SED"
2716   rm -f conftest.sed
2717
2718 for ac_prog in gawk mawk nawk awk
2719 do
2720   # Extract the first word of "$ac_prog", so it can be a program name with args.
2721 set dummy $ac_prog; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_prog_AWK+:} false; then :
2725   $as_echo_n "(cached) " >&6
2726 else
2727   if test -n "$AWK"; then
2728   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2732 do
2733   IFS=$as_save_IFS
2734   test -z "$as_dir" && as_dir=.
2735     for ac_exec_ext in '' $ac_executable_extensions; do
2736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737     ac_cv_prog_AWK="$ac_prog"
2738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739     break 2
2740   fi
2741 done
2742   done
2743 IFS=$as_save_IFS
2744
2745 fi
2746 fi
2747 AWK=$ac_cv_prog_AWK
2748 if test -n "$AWK"; then
2749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2750 $as_echo "$AWK" >&6; }
2751 else
2752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2754 fi
2755
2756
2757   test -n "$AWK" && break
2758 done
2759
2760
2761 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2762
2763 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2764 # a relative path.
2765 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2766   INSTALL="${srcpwd}/install-sh -c"
2767 fi
2768
2769 # Set srcdir to "." if that's what it is.
2770 # This is important for multilib support.
2771 pwd=`${PWDCMD-pwd}`
2772 if test "${pwd}" = "${srcpwd}" ; then
2773   srcdir=.
2774 fi
2775
2776 topsrcdir=$srcpwd
2777
2778 extra_host_args=
2779
2780 ### To add a new directory to the tree, first choose whether it is a target
2781 ### or a host dependent tool.  Then put it into the appropriate list
2782 ### (library or tools, host or target), doing a dependency sort.
2783
2784 # Subdirs will be configured in the order listed in build_configdirs,
2785 # configdirs, or target_configdirs; see the serialization section below.
2786
2787 # Dependency sorting is only needed when *configuration* must be done in
2788 # a particular order.  In all cases a dependency should be specified in
2789 # the Makefile, whether or not it's implicitly specified here.
2790
2791 # Double entries in build_configdirs, configdirs, or target_configdirs may
2792 # cause circular dependencies and break everything horribly.
2793
2794 # these library is used by various programs built for the build
2795 # environment
2796 #
2797 build_libs="build-libiberty build-libcpp"
2798
2799 # these tools are built for the build environment
2800 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2801
2802 # these libraries are used by various programs built for the host environment
2803 #f
2804 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2805
2806 # these tools are built for the host environment
2807 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2808 # know that we are building the simulator.
2809 # binutils, gas and ld appear in that order because it makes sense to run
2810 # "make check" in that particular order.
2811 # If --enable-gold is used, "gold" may replace "ld".
2812 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"
2813
2814 # these libraries are built for the target environment, and are built after
2815 # the host libraries and the host tools (which may be a cross compiler)
2816 # Note that libiberty is not a target library.
2817 target_libraries="target-libgcc \
2818                 target-libbacktrace \
2819                 target-libgloss \
2820                 target-newlib \
2821                 target-libgomp \
2822                 target-liboffloadmic \
2823                 target-libatomic \
2824                 target-libitm \
2825                 target-libstdc++-v3 \
2826                 target-libsanitizer \
2827                 target-libvtv \
2828                 target-libssp \
2829                 target-libquadmath \
2830                 target-libgfortran \
2831                 target-libffi \
2832                 target-libobjc \
2833                 target-libada \
2834                 target-libgo \
2835                 target-libphobos \
2836                 target-zlib"
2837
2838 # these tools are built using the target libraries, and are intended to
2839 # run only in the target environment
2840 #
2841 # note: any program that *uses* libraries that are in the "target_libraries"
2842 # list belongs in this list.
2843 #
2844 target_tools="target-rda"
2845
2846 ################################################################################
2847
2848 ## All tools belong in one of the four categories, and are assigned above
2849 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2850 ## is important because configure will choke if they ever get through.
2851 ## ${configdirs} is directories we build using the host tools.
2852 ## ${target_configdirs} is directories we build using the target tools.
2853 configdirs=`echo ${host_libs} ${host_tools}`
2854 target_configdirs=`echo ${target_libraries} ${target_tools}`
2855 build_configdirs=`echo ${build_libs} ${build_tools}`
2856
2857
2858
2859 ################################################################################
2860
2861 srcname="gnu development package"
2862
2863 # This gets set non-empty for some net releases of packages.
2864 appdirs=""
2865
2866 # Define is_cross_compiler to save on calls to 'test'.
2867 is_cross_compiler=
2868 if test x"${host}" = x"${target}" ; then
2869   is_cross_compiler=no
2870 else
2871   is_cross_compiler=yes
2872 fi
2873
2874 # Find the build and target subdir names.
2875
2876 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2877 # have matching libraries, they should use host libraries: Makefile.tpl
2878 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2879 # However, they still use the build modules, because the corresponding
2880 # host modules (e.g. bison) are only built for the host when bootstrap
2881 # finishes. So:
2882 # - build_subdir is where we find build modules, and never changes.
2883 # - build_libsubdir is where we find build libraries, and can be overridden.
2884
2885 # Prefix 'build-' so this never conflicts with target_subdir.
2886 build_subdir="build-${build_noncanonical}"
2887
2888 # Check whether --with-build-libsubdir was given.
2889 if test "${with_build_libsubdir+set}" = set; then :
2890   withval=$with_build_libsubdir; build_libsubdir="$withval"
2891 else
2892   build_libsubdir="$build_subdir"
2893 fi
2894
2895 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2896 if ( test $srcdir = . && test -d gcc ) \
2897    || test -d $srcdir/../host-${host_noncanonical}; then
2898   host_subdir="host-${host_noncanonical}"
2899 else
2900   host_subdir=.
2901 fi
2902 # No prefix.
2903 target_subdir=${target_noncanonical}
2904
2905 # Be sure to cover against remnants of an in-tree build.
2906 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2907   as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2908 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2909 fi
2910
2911 # Skipdirs are removed silently.
2912 skipdirs=
2913 # Noconfigdirs are removed loudly.
2914 noconfigdirs=""
2915
2916 use_gnu_ld=
2917 # Make sure we don't let GNU ld be added if we didn't want it.
2918 if test x$with_gnu_ld = xno ; then
2919   use_gnu_ld=no
2920   noconfigdirs="$noconfigdirs ld gold"
2921 fi
2922
2923 use_gnu_as=
2924 # Make sure we don't let GNU as be added if we didn't want it.
2925 if test x$with_gnu_as = xno ; then
2926   use_gnu_as=no
2927   noconfigdirs="$noconfigdirs gas"
2928 fi
2929
2930 use_included_zlib=
2931
2932 # Check whether --with-system-zlib was given.
2933 if test "${with_system_zlib+set}" = set; then :
2934   withval=$with_system_zlib;
2935 fi
2936
2937 # Make sure we don't let ZLIB be added if we didn't want it.
2938 if test x$with_system_zlib = xyes ; then
2939   use_included_zlib=no
2940   noconfigdirs="$noconfigdirs zlib"
2941 fi
2942
2943 # some tools are so dependent upon X11 that if we're not building with X,
2944 # it's not even worth trying to configure, much less build, that tool.
2945
2946 case ${with_x} in
2947   yes | "") ;; # the default value for this tree is that X11 is available
2948   no)
2949     skipdirs="${skipdirs} tk itcl libgui"
2950     # We won't be able to build gdbtk without X.
2951     enable_gdbtk=no
2952     ;;
2953   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2954 esac
2955
2956 # Some are only suitable for cross toolchains.
2957 # Remove these if host=target.
2958 cross_only="target-libgloss target-newlib target-opcodes"
2959
2960 case $is_cross_compiler in
2961   no) skipdirs="${skipdirs} ${cross_only}" ;;
2962 esac
2963
2964 # If both --with-headers and --with-libs are specified, default to
2965 # --without-newlib.
2966 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2967    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2968   if test x"${with_newlib}" = x ; then
2969     with_newlib=no
2970   fi
2971 fi
2972
2973 # Recognize --with-newlib/--without-newlib.
2974 case ${with_newlib} in
2975   no) skipdirs="${skipdirs} target-newlib" ;;
2976   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2977 esac
2978
2979 # Check whether --enable-as-accelerator-for was given.
2980 if test "${enable_as_accelerator_for+set}" = set; then :
2981   enableval=$enable_as_accelerator_for;
2982 fi
2983
2984
2985 # Check whether --enable-offload-targets was given.
2986 if test "${enable_offload_targets+set}" = set; then :
2987   enableval=$enable_offload_targets;
2988   if test x"$enable_offload_targets" = x; then
2989     as_fn_error $? "no offload targets specified" "$LINENO" 5
2990   fi
2991
2992 else
2993   enable_offload_targets=
2994 fi
2995
2996
2997 # Check whether --enable-offload-defaulted was given.
2998 if test "${enable_offload_defaulted+set}" = set; then :
2999   enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3000 else
3001   enable_offload_defaulted=
3002 fi
3003
3004
3005 # Handle --enable-gold, --enable-ld.
3006 # --disable-gold [--enable-ld]
3007 #     Build only ld.  Default option.
3008 # --enable-gold [--enable-ld]
3009 #     Build both gold and ld.  Install gold as "ld.gold", install ld
3010 #     as "ld.bfd" and "ld".
3011 # --enable-gold=default [--enable-ld]
3012 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
3013 #     install ld as "ld.bfd".
3014 # --enable-gold[=default] --disable-ld
3015 #     Build only gold, which is then installed as both "ld.gold" and "ld".
3016 # --enable-gold --enable-ld=default
3017 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
3018 #     and ld.bfd).
3019 #     In other words, ld is default
3020 # --enable-gold=default --enable-ld=default
3021 #     Error.
3022
3023 default_ld=
3024 # Check whether --enable-gold was given.
3025 if test "${enable_gold+set}" = set; then :
3026   enableval=$enable_gold; ENABLE_GOLD=$enableval
3027 else
3028   ENABLE_GOLD=no
3029 fi
3030
3031 case "${ENABLE_GOLD}" in
3032   yes|default)
3033     # Check for ELF target.
3034     is_elf=no
3035     case "${target}" in
3036       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3037       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3038       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3039       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3040         case "${target}" in
3041           *-*-linux*aout* | *-*-linux*oldld*)
3042             ;;
3043           *)
3044             is_elf=yes
3045             ;;
3046         esac
3047     esac
3048
3049     if test "$is_elf" = "yes"; then
3050       # Check for target supported by gold.
3051       case "${target}" in
3052         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3053         | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3054           configdirs="$configdirs gold"
3055           if test x${ENABLE_GOLD} = xdefault; then
3056             default_ld=gold
3057           fi
3058           ENABLE_GOLD=yes
3059           ;;
3060       esac
3061     fi
3062     ;;
3063   no)
3064     ;;
3065   *)
3066     as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3067     ;;
3068 esac
3069
3070 # Check whether --enable-ld was given.
3071 if test "${enable_ld+set}" = set; then :
3072   enableval=$enable_ld; ENABLE_LD=$enableval
3073 else
3074   ENABLE_LD=yes
3075 fi
3076
3077
3078 case "${ENABLE_LD}" in
3079   default)
3080     if test x${default_ld} != x; then
3081       as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3082     fi
3083     ;;
3084   yes)
3085     ;;
3086   no)
3087     if test x${ENABLE_GOLD} != xyes; then
3088       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3089 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3090     fi
3091     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3092     ;;
3093   *)
3094     as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3095     ;;
3096 esac
3097
3098 # PR gas/19109
3099 # Decide the default method for compressing debug sections.
3100 # Provide a configure time option to override our default.
3101 # Check whether --enable-compressed_debug_sections was given.
3102 if test "${enable_compressed_debug_sections+set}" = set; then :
3103   enableval=$enable_compressed_debug_sections;
3104   if test x"$enable_compressed_debug_sections" = xyes; then
3105     as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3106   fi
3107
3108 else
3109   enable_compressed_debug_sections=
3110 fi
3111
3112
3113 # Configure extra directories which are host specific
3114
3115 case "${host}" in
3116   *-cygwin*)
3117     configdirs="$configdirs libtermcap" ;;
3118 esac
3119
3120 # A target can indicate whether a language isn't supported for some reason.
3121 # Only spaces may be used in this macro; not newlines or tabs.
3122 unsupported_languages=
3123
3124 # Remove more programs from consideration, based on the host or
3125 # target this usually means that a port of the program doesn't
3126 # exist yet.
3127
3128 case "${host}" in
3129   i[3456789]86-*-msdosdjgpp*)
3130     noconfigdirs="$noconfigdirs tcl tk itcl"
3131     ;;
3132 esac
3133
3134
3135 # Check whether --enable-libquadmath was given.
3136 if test "${enable_libquadmath+set}" = set; then :
3137   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3138 else
3139   ENABLE_LIBQUADMATH=yes
3140 fi
3141
3142 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3143   noconfigdirs="$noconfigdirs target-libquadmath"
3144 fi
3145
3146
3147 # Check whether --enable-libquadmath-support was given.
3148 if test "${enable_libquadmath_support+set}" = set; then :
3149   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3150 else
3151   ENABLE_LIBQUADMATH_SUPPORT=yes
3152 fi
3153
3154 enable_libquadmath_support=
3155 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3156   enable_libquadmath_support=no
3157 fi
3158
3159
3160 # Check whether --enable-libada was given.
3161 if test "${enable_libada+set}" = set; then :
3162   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3163 else
3164   ENABLE_LIBADA=yes
3165 fi
3166
3167 if test "${ENABLE_LIBADA}" != "yes" ; then
3168   noconfigdirs="$noconfigdirs gnattools"
3169 fi
3170
3171 # Check whether --enable-libssp was given.
3172 if test "${enable_libssp+set}" = set; then :
3173   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3174 else
3175   ENABLE_LIBSSP=yes
3176 fi
3177
3178
3179 # Check whether --enable-libstdcxx was given.
3180 if test "${enable_libstdcxx+set}" = set; then :
3181   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3182 else
3183   ENABLE_LIBSTDCXX=default
3184 fi
3185
3186 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3187   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3188 fi
3189
3190 # If this is accelerator compiler and its target is intelmic we enable
3191 # target liboffloadmic by default.  If this is compiler with offloading
3192 # for intelmic we enable host liboffloadmic by default.  Otherwise
3193 # liboffloadmic is disabled by default.
3194 # Check whether --enable-liboffloadmic was given.
3195 if test "${enable_liboffloadmic+set}" = set; then :
3196   enableval=$enable_liboffloadmic; case "$enableval" in
3197   no | host | target)
3198     enable_liboffloadmic=$enableval ;;
3199   *)
3200     as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3201 esac
3202 else
3203   if test x"$enable_as_accelerator_for" != x; then
3204   case "${target}" in
3205     *-intelmic-* | *-intelmicemul-*)
3206       enable_liboffloadmic=target
3207       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3208       ;;
3209     *)
3210       enable_liboffloadmic=no
3211       ;;
3212   esac
3213 else
3214   case "${enable_offload_targets}" in
3215     *-intelmic-* | *-intelmicemul-*)
3216       enable_liboffloadmic=host
3217       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3218       ;;
3219     *)
3220       enable_liboffloadmic=no
3221       ;;
3222     esac
3223 fi
3224 fi
3225
3226
3227
3228 # Enable libgomp by default on hosted POSIX systems, and a few others.
3229 if test x$enable_libgomp = x ; then
3230     case "${target}" in
3231     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3232         ;;
3233     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3234         ;;
3235     *-*-solaris2* | *-*-hpux11*)
3236         ;;
3237     *-*-darwin* | *-*-aix*)
3238         ;;
3239     nvptx*-*-* | amdgcn*-*-*)
3240         ;;
3241     *)
3242         noconfigdirs="$noconfigdirs target-libgomp"
3243         ;;
3244     esac
3245 fi
3246
3247 # Disable libatomic on unsupported systems.
3248 if test -d ${srcdir}/libatomic; then
3249     if test x$enable_libatomic = x; then
3250         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3251 $as_echo_n "checking for libatomic support... " >&6; }
3252         if (srcdir=${srcdir}/libatomic; \
3253                 . ${srcdir}/configure.tgt; \
3254                 test -n "$UNSUPPORTED")
3255         then
3256             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258             noconfigdirs="$noconfigdirs target-libatomic"
3259         else
3260             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3261 $as_echo "yes" >&6; }
3262         fi
3263     fi
3264 fi
3265
3266 # Disable liboffloadmic on unsupported systems.
3267 if test -d ${srcdir}/liboffloadmic; then
3268     if test x$enable_liboffloadmic != xno; then
3269         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3270 $as_echo_n "checking for liboffloadmic support... " >&6; }
3271         if (srcdir=${srcdir}/liboffloadmic; \
3272                 . ${srcdir}/configure.tgt; \
3273                 test -n "$UNSUPPORTED")
3274         then
3275             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277             noconfigdirs="$noconfigdirs target-liboffloadmic"
3278         else
3279             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3280 $as_echo "yes" >&6; }
3281         fi
3282     fi
3283 fi
3284
3285 # Disable libitm on unsupported systems.
3286 if test -d ${srcdir}/libitm; then
3287     if test x$enable_libitm = x; then
3288         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3289 $as_echo_n "checking for libitm support... " >&6; }
3290         if (srcdir=${srcdir}/libitm; \
3291                 . ${srcdir}/configure.tgt; \
3292                 test -n "$UNSUPPORTED")
3293         then
3294             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296             noconfigdirs="$noconfigdirs target-libitm"
3297         else
3298             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299 $as_echo "yes" >&6; }
3300         fi
3301     fi
3302 fi
3303
3304 # Disable libsanitizer on unsupported systems.
3305 if test -d ${srcdir}/libsanitizer; then
3306     if test x$enable_libsanitizer = x; then
3307         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3308 $as_echo_n "checking for libsanitizer support... " >&6; }
3309         if (srcdir=${srcdir}/libsanitizer; \
3310                 . ${srcdir}/configure.tgt; \
3311                 test -n "$UNSUPPORTED")
3312         then
3313             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315             noconfigdirs="$noconfigdirs target-libsanitizer"
3316         else
3317             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318 $as_echo "yes" >&6; }
3319         fi
3320     fi
3321 fi
3322
3323 # Disable libvtv on unsupported systems.
3324 if test -d ${srcdir}/libvtv; then
3325     if test x$enable_libvtv = x; then
3326         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3327 $as_echo_n "checking for libvtv support... " >&6; }
3328         if (srcdir=${srcdir}/libvtv; \
3329                 . ${srcdir}/configure.tgt; \
3330                 test "$VTV_SUPPORTED" != "yes")
3331         then
3332             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334             noconfigdirs="$noconfigdirs target-libvtv"
3335         else
3336             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337 $as_echo "yes" >&6; }
3338         fi
3339     fi
3340 fi
3341
3342 # Disable libquadmath for some systems.
3343 case "${target}" in
3344   avr-*-*)
3345     noconfigdirs="$noconfigdirs target-libquadmath"
3346     ;;
3347   # libquadmath is unused on AIX and libquadmath build process use of
3348   # LD_LIBRARY_PATH can break AIX bootstrap.
3349   powerpc-*-aix* | rs6000-*-aix*)
3350     noconfigdirs="$noconfigdirs target-libquadmath"
3351     ;;
3352 esac
3353
3354 # Disable libssp for some systems.
3355 case "${target}" in
3356   avr-*-*)
3357     # No hosted I/O support.
3358     noconfigdirs="$noconfigdirs target-libssp"
3359     ;;
3360   bpf-*-*)
3361     noconfigdirs="$noconfigdirs target-libssp"
3362     ;;
3363   powerpc-*-aix* | rs6000-*-aix*)
3364     noconfigdirs="$noconfigdirs target-libssp"
3365     ;;
3366   pru-*-*)
3367     # No hosted I/O support.
3368     noconfigdirs="$noconfigdirs target-libssp"
3369     ;;
3370   rl78-*-*)
3371     # libssp uses a misaligned load to trigger a fault, but the RL78
3372     # doesn't fault for those - instead, it gives a build-time error
3373     # for explicit misaligned loads.
3374     noconfigdirs="$noconfigdirs target-libssp"
3375     ;;
3376   visium-*-*)
3377     # No hosted I/O support.
3378     noconfigdirs="$noconfigdirs target-libssp"
3379     ;;
3380 esac
3381
3382 # Disable libstdc++-v3 for some systems.
3383 # Allow user to override this if they pass --enable-libstdc++-v3
3384 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3385   case "${target}" in
3386     *-*-vxworks*)
3387       # VxWorks uses the Dinkumware C++ library.
3388       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3389       ;;
3390     amdgcn*-*-*)
3391       # Not ported/fails to build when using newlib.
3392       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3393       ;;
3394     arm*-wince-pe*)
3395       # the C++ libraries don't build on top of CE's C libraries
3396       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3397       ;;
3398     avr-*-*)
3399       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3400       ;;
3401     bpf-*-*)
3402       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3403       ;;
3404     ft32-*-*)
3405       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3406       ;;
3407   esac
3408 fi
3409
3410 # Disable C++ on systems where it is known to not work.
3411 # For testing, you can override this with --enable-languages=c++.
3412 case ,${enable_languages}, in
3413   *,c++,*)
3414     ;;
3415   *)
3416       case "${target}" in
3417         bpf-*-*)
3418           unsupported_languages="$unsupported_languages c++"
3419           ;;
3420       esac
3421       ;;
3422 esac
3423
3424 # Disable Objc on systems where it is known to not work.
3425 # For testing, you can override this with --enable-languages=objc.
3426 case ,${enable_languages}, in
3427   *,objc,*)
3428     ;;
3429   *)
3430       case "${target}" in
3431         bpf-*-*)
3432           unsupported_languages="$unsupported_languages objc"
3433           ;;
3434       esac
3435       ;;
3436 esac
3437
3438 # Disable D on systems where it is known to not work.
3439 # For testing, you can override this with --enable-languages=d.
3440 case ,${enable_languages}, in
3441   *,d,*)
3442     ;;
3443   *)
3444     case "${target}" in
3445       bpf-*-*)
3446         unsupported_languages="$unsupported_languages d"
3447         ;;
3448     esac
3449     ;;
3450 esac
3451
3452 # Disable libphobos on unsupported systems.
3453 # For testing, you can override this with --enable-libphobos.
3454 if test -d ${srcdir}/libphobos; then
3455     if test x$enable_libphobos = x; then
3456         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3457 $as_echo_n "checking for libphobos support... " >&6; }
3458         if (srcdir=${srcdir}/libphobos; \
3459                 . ${srcdir}/configure.tgt; \
3460                 test "$LIBPHOBOS_SUPPORTED" != "yes")
3461         then
3462             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 $as_echo "no" >&6; }
3464             noconfigdirs="$noconfigdirs target-libphobos"
3465         else
3466             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3467 $as_echo "yes" >&6; }
3468         fi
3469     fi
3470 fi
3471
3472 # Disable Fortran for some systems.
3473 case "${target}" in
3474   mmix-*-*)
3475     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3476     unsupported_languages="$unsupported_languages fortran"
3477     ;;
3478   bpf-*-*)
3479     unsupported_languages="$unsupported_languages fortran"
3480     ;;
3481 esac
3482
3483 # Disable libffi for some systems.
3484 case "${target}" in
3485   powerpc-*-darwin*)
3486     ;;
3487   i[3456789]86-*-darwin*)
3488     ;;
3489   x86_64-*-darwin[912]*)
3490     ;;
3491   *-*-darwin*)
3492     noconfigdirs="$noconfigdirs target-libffi"
3493     ;;
3494   *-*-netware*)
3495     noconfigdirs="$noconfigdirs target-libffi"
3496     ;;
3497   *-*-phoenix*)
3498     noconfigdirs="$noconfigdirs target-libffi"
3499     ;;
3500   *-*-rtems*)
3501     noconfigdirs="$noconfigdirs target-libffi"
3502     ;;
3503   *-*-tpf*)
3504     noconfigdirs="$noconfigdirs target-libffi"
3505     ;;
3506   *-*-uclinux*)
3507     noconfigdirs="$noconfigdirs target-libffi"
3508     ;;
3509   *-*-vxworks*)
3510     noconfigdirs="$noconfigdirs target-libffi"
3511     ;;
3512   aarch64*-*-freebsd*)
3513     noconfigdirs="$noconfigdirs target-libffi"
3514     ;;
3515   alpha*-*-*vms*)
3516     noconfigdirs="$noconfigdirs target-libffi"
3517     ;;
3518   arm*-*-freebsd*)
3519     noconfigdirs="$noconfigdirs target-libffi"
3520     ;;
3521   arm-wince-pe)
3522     noconfigdirs="$noconfigdirs target-libffi"
3523     ;;
3524   arm*-*-symbianelf*)
3525     noconfigdirs="$noconfigdirs target-libffi"
3526     ;;
3527   bpf-*-*)
3528     noconfigdirs="$noconfigdirs target-libffi"
3529     ;;
3530   cris-*-* | crisv32-*-*)
3531     case "${target}" in
3532       *-*-linux*)
3533         ;;
3534       *) # See PR46792 regarding target-libffi.
3535         noconfigdirs="$noconfigdirs target-libffi";;
3536     esac
3537     ;;
3538   hppa*64*-*-hpux*)
3539     noconfigdirs="$noconfigdirs target-libffi"
3540     ;;
3541   hppa*-hp-hpux11*)
3542     ;;
3543   hppa*-*-hpux*)
3544     noconfigdirs="$noconfigdirs target-libffi"
3545     ;;
3546   ia64*-*-*vms*)
3547     noconfigdirs="$noconfigdirs target-libffi"
3548     ;;
3549   i[3456789]86-w64-mingw*)
3550     noconfigdirs="$noconfigdirs target-libffi"
3551     ;;
3552   i[3456789]86-*-mingw*)
3553     noconfigdirs="$noconfigdirs target-libffi"
3554     ;;
3555   x86_64-*-mingw*)
3556     noconfigdirs="$noconfigdirs target-libffi"
3557     ;;
3558   mmix-*-*)
3559     noconfigdirs="$noconfigdirs target-libffi"
3560     ;;
3561   powerpc-*-aix*)
3562     ;;
3563   rs6000-*-aix*)
3564     ;;
3565   ft32-*-*)
3566     noconfigdirs="$noconfigdirs target-libffi"
3567     ;;
3568   *-*-lynxos*)
3569     noconfigdirs="$noconfigdirs target-libffi"
3570     ;;
3571 esac
3572
3573 # Disable the go frontend on systems where it is known to not work. Please keep
3574 # this in sync with contrib/config-list.mk.
3575 case "${target}" in
3576 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3577     unsupported_languages="$unsupported_languages go"
3578     ;;
3579 esac
3580
3581 # Only allow gdbserver on some systems.
3582 if test -d ${srcdir}/gdbserver; then
3583     if test x$enable_gdbserver = x; then
3584         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3585 $as_echo_n "checking for gdbserver support... " >&6; }
3586         if (srcdir=${srcdir}/gdbserver; \
3587                 . ${srcdir}/configure.srv; \
3588                 test -n "$UNSUPPORTED")
3589         then
3590             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3592             noconfigdirs="$noconfigdirs gdbserver"
3593         else
3594             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3595 $as_echo "yes" >&6; }
3596         fi
3597     fi
3598 fi
3599
3600 # Disable libgo for some systems where it is known to not work.
3601 # For testing, you can easily override this with --enable-libgo.
3602 if test x$enable_libgo = x; then
3603     case "${target}" in
3604     *-*-darwin*)
3605         # PR 46986
3606         noconfigdirs="$noconfigdirs target-libgo"
3607         ;;
3608     *-*-cygwin* | *-*-mingw*)
3609         noconfigdirs="$noconfigdirs target-libgo"
3610         ;;
3611     bpf-*-*)
3612         noconfigdirs="$noconfigdirs target-libgo"
3613         ;;
3614     esac
3615 fi
3616
3617 # Default libgloss CPU subdirectory.
3618 libgloss_dir="$target_cpu"
3619
3620 case "${target}" in
3621   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3622     libgloss_dir=wince
3623     ;;
3624   aarch64*-*-* )
3625     libgloss_dir=aarch64
3626     ;;
3627   arm*-*-*)
3628     libgloss_dir=arm
3629     ;;
3630   cris-*-* | crisv32-*-*)
3631     libgloss_dir=cris
3632     ;;
3633   hppa*-*-*)
3634     libgloss_dir=pa
3635     ;;
3636   i[3456789]86-*-*)
3637     libgloss_dir=i386
3638     ;;
3639   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3640     libgloss_dir=m68hc11
3641     ;;
3642   m68*-*-* | fido-*-*)
3643     libgloss_dir=m68k
3644     ;;
3645   mips*-*-*)
3646     libgloss_dir=mips
3647     ;;
3648   powerpc*-*-*)
3649     libgloss_dir=rs6000
3650     ;;
3651   pru-*-*)
3652     libgloss_dir=pru
3653     ;;
3654   sparc*-*-*)
3655     libgloss_dir=sparc
3656     ;;
3657 esac
3658
3659 # Disable newlib and libgloss for various target OSes.
3660 case "${target}" in
3661   alpha*-dec-osf*)
3662     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3663     ;;
3664   i[3456789]86-*-linux*)
3665     # This section makes it possible to build newlib natively on linux.
3666     # If we are using a cross compiler then don't configure newlib.
3667     if test x${is_cross_compiler} != xno ; then
3668       noconfigdirs="$noconfigdirs target-newlib"
3669     fi
3670     noconfigdirs="$noconfigdirs target-libgloss"
3671     # If we are not using a cross compiler, do configure newlib.
3672     # Note however, that newlib will only be configured in this situation
3673     # if the --with-newlib option has been given, because otherwise
3674     # 'target-newlib' will appear in skipdirs.
3675     ;;
3676   i[3456789]86-*-rdos*)
3677     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678     ;;
3679   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3680     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3681     ;;
3682   sparc-*-sunos4*)
3683     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3684     ;;
3685   bpf-*-*)
3686     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687     ;;
3688   *-*-aix*)
3689     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3690     ;;
3691   *-*-beos*)
3692     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693     ;;
3694   *-*-chorusos)
3695     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3696     ;;
3697   *-*-dragonfly*)
3698     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3699     ;;
3700   *-*-freebsd*)
3701     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3702     ;;
3703   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3704     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3705     ;;
3706   *-*-lynxos*)
3707     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3708     ;;
3709   *-*-mingw*)
3710     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3711     ;;
3712   *-*-netbsd*)
3713     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3714     ;;
3715   *-*-netware*)
3716     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3717     ;;
3718   *-*-tpf*)
3719     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720     ;;
3721   *-*-uclinux*)
3722     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723     ;;
3724   *-*-vxworks*)
3725     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3726     ;;
3727 esac
3728
3729 case "${target}" in
3730   *-*-chorusos)
3731     ;;
3732   aarch64-*-darwin*)
3733     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3734     noconfigdirs="$noconfigdirs sim target-rda"
3735     ;;
3736   amdgcn*-*-*)
3737     ;;
3738   arm-*-darwin*)
3739     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3740     noconfigdirs="$noconfigdirs sim target-rda"
3741     ;;
3742   powerpc-*-darwin*)
3743     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3744     noconfigdirs="$noconfigdirs sim target-rda"
3745     ;;
3746   i[3456789]86-*-darwin*)
3747     noconfigdirs="$noconfigdirs ld gprof"
3748     noconfigdirs="$noconfigdirs sim target-rda"
3749     ;;
3750   x86_64-*-darwin[912]*)
3751     noconfigdirs="$noconfigdirs ld gas gprof"
3752     noconfigdirs="$noconfigdirs sim target-rda"
3753     ;;
3754   *-*-darwin*)
3755     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3756     noconfigdirs="$noconfigdirs sim target-rda"
3757     ;;
3758   *-*-dragonfly*)
3759     ;;
3760   *-*-freebsd*)
3761     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3762         && ! test -d ${srcdir}/gmp \
3763         && test -f /usr/local/include/gmp.h; then
3764       with_gmp=/usr/local
3765     fi
3766     ;;
3767   *-*-kaos*)
3768     # Remove unsupported stuff on all kaOS configurations.
3769     noconfigdirs="$noconfigdirs target-libgloss"
3770     ;;
3771   *-*-netbsd*)
3772     ;;
3773   *-*-netware*)
3774     ;;
3775   *-*-phoenix*)
3776     noconfigdirs="$noconfigdirs target-libgloss"
3777     ;;
3778   *-*-rtems*)
3779     noconfigdirs="$noconfigdirs target-libgloss"
3780     ;;
3781     # The tpf target doesn't support gdb yet.
3782   *-*-tpf*)
3783     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3784     ;;
3785   *-*-uclinux*)
3786     noconfigdirs="$noconfigdirs target-rda"
3787     ;;
3788   *-*-vxworks*)
3789     ;;
3790   alpha*-dec-osf*)
3791     # ld works, but does not support shared libraries.
3792     # gas doesn't generate exception information.
3793     noconfigdirs="$noconfigdirs gas ld"
3794     ;;
3795   alpha*-*-*vms*)
3796     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3797     ;;
3798   alpha*-*-*)
3799     # newlib is not 64 bit ready
3800     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3801     ;;
3802   bpf-*-*)
3803     noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3804     ;;
3805   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3806     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3807     ;;
3808   arc*-*-*)
3809     noconfigdirs="$noconfigdirs sim"
3810     ;;
3811   arm-*-pe*)
3812     noconfigdirs="$noconfigdirs target-libgloss"
3813     ;;
3814   arm-*-riscix*)
3815     noconfigdirs="$noconfigdirs ld target-libgloss"
3816     ;;
3817   avr-*-*)
3818     if test x${with_avrlibc} != xno; then
3819       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3820     fi
3821     ;;
3822   c4x-*-* | tic4x-*-*)
3823     noconfigdirs="$noconfigdirs target-libgloss"
3824     ;;
3825   tic54x-*-*)
3826     noconfigdirs="$noconfigdirs target-libgloss gdb"
3827     ;;
3828   d10v-*-*)
3829     noconfigdirs="$noconfigdirs target-libgloss"
3830     ;;
3831   d30v-*-*)
3832     noconfigdirs="$noconfigdirs gdb"
3833     ;;
3834   fr30-*-elf*)
3835     noconfigdirs="$noconfigdirs gdb"
3836     ;;
3837   ft32-*-*)
3838     noconfigdirs="$noconfigdirs target-rda gprof"
3839     ;;
3840   moxie-*-*)
3841     noconfigdirs="$noconfigdirs"
3842     ;;
3843   h8300*-*-*)
3844     noconfigdirs="$noconfigdirs target-libgloss"
3845     ;;
3846   h8500-*-*)
3847     noconfigdirs="$noconfigdirs target-libgloss"
3848     ;;
3849   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3850     ;;
3851   hppa*64*-*-hpux*)
3852     noconfigdirs="$noconfigdirs gdb"
3853     ;;
3854   hppa*-*-hpux11*)
3855     noconfigdirs="$noconfigdirs gdb ld"
3856     ;;
3857   hppa*64*-*-linux*)
3858     ;;
3859   hppa*-*-linux*)
3860     ;;
3861   hppa*-*-*elf* | \
3862   hppa*-*-lites* | \
3863   hppa*-*-openbsd* | \
3864   hppa*64*-*-*)
3865     ;;
3866   hppa*-*-pro*)
3867     ;;
3868   hppa*-*-*)
3869     noconfigdirs="$noconfigdirs ld"
3870     ;;
3871   i960-*-*)
3872     noconfigdirs="$noconfigdirs gdb"
3873     ;;
3874   ia64*-*-elf*)
3875     # No gdb support yet.
3876     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3877     ;;
3878   ia64*-**-hpux*)
3879     # No ld support yet.
3880     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3881     ;;
3882   ia64*-*-*vms*)
3883     # No ld support yet.
3884     noconfigdirs="$noconfigdirs libgui itcl ld"
3885     ;;
3886   i[3456789]86-w64-mingw*)
3887     ;;
3888   i[3456789]86-*-mingw*)
3889     target_configdirs="$target_configdirs target-winsup"
3890     ;;
3891   *-*-cygwin*)
3892     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3893     noconfigdirs="$noconfigdirs target-libgloss"
3894     # always build newlib if winsup directory is present.
3895     if test -d "$srcdir/winsup/cygwin"; then
3896       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3897     elif test -d "$srcdir/newlib"; then
3898       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3899     fi
3900     ;;
3901   i[3456789]86-*-pe)
3902     noconfigdirs="$noconfigdirs target-libgloss"
3903     ;;
3904   i[3456789]86-*-sco3.2v5*)
3905     # The linker does not yet know about weak symbols in COFF,
3906     # and is not configured to handle mixed ELF and COFF.
3907     noconfigdirs="$noconfigdirs ld target-libgloss"
3908     ;;
3909   i[3456789]86-*-sco*)
3910     noconfigdirs="$noconfigdirs gprof target-libgloss"
3911     ;;
3912   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3913     noconfigdirs="$noconfigdirs target-libgloss"
3914     ;;
3915   i[3456789]86-*-sysv4*)
3916     noconfigdirs="$noconfigdirs target-libgloss"
3917     ;;
3918   i[3456789]86-*-beos*)
3919     noconfigdirs="$noconfigdirs gdb"
3920     ;;
3921   i[3456789]86-*-rdos*)
3922     noconfigdirs="$noconfigdirs gdb"
3923     ;;
3924   mmix-*-*)
3925     noconfigdirs="$noconfigdirs gdb"
3926     ;;
3927   mt-*-*)
3928     noconfigdirs="$noconfigdirs sim"
3929     ;;
3930   nfp-*-*)
3931     noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3932     noconfigdirs="$noconfigdirs $target_libraries"
3933     ;;
3934   pdp11-*-*)
3935     noconfigdirs="$noconfigdirs gdb gprof"
3936     ;;
3937   powerpc-*-aix*)
3938     # copied from rs6000-*-* entry
3939     noconfigdirs="$noconfigdirs gprof"
3940     ;;
3941   powerpc*-*-winnt* | powerpc*-*-pe*)
3942     target_configdirs="$target_configdirs target-winsup"
3943     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3944     # always build newlib.
3945     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3946     ;;
3947     # This is temporary until we can link against shared libraries
3948   powerpcle-*-solaris*)
3949     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3950     ;;
3951   powerpc-*-beos*)
3952     noconfigdirs="$noconfigdirs gdb"
3953     ;;
3954   rs6000-*-lynxos*)
3955     noconfigdirs="$noconfigdirs gprof"
3956     ;;
3957   rs6000-*-aix*)
3958     noconfigdirs="$noconfigdirs gprof"
3959     ;;
3960   rs6000-*-*)
3961     noconfigdirs="$noconfigdirs gprof"
3962     ;;
3963   m68k-apollo-*)
3964     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3965     ;;
3966   microblaze*)
3967     noconfigdirs="$noconfigdirs gprof"
3968     ;;
3969   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3970     if test x$with_newlib = xyes; then
3971       noconfigdirs="$noconfigdirs gprof"
3972     fi
3973     ;;
3974   mips*-*-irix5*)
3975     noconfigdirs="$noconfigdirs gprof target-libgloss"
3976     ;;
3977   mips*-*-irix6*)
3978     noconfigdirs="$noconfigdirs gprof target-libgloss"
3979     ;;
3980   mips*-*-bsd*)
3981     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3982     ;;
3983   mips*-*-linux*)
3984     ;;
3985   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3986   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3987     noconfigdirs="$noconfigdirs ld gas gprof"
3988     ;;
3989   mips*-*-*)
3990     noconfigdirs="$noconfigdirs gprof"
3991     ;;
3992   nvptx*-*-*)
3993     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3994     ;;
3995   sh-*-*)
3996     case "${target}" in
3997       sh*-*-elf)
3998          ;;
3999       *)
4000          noconfigdirs="$noconfigdirs target-libgloss" ;;
4001     esac
4002     ;;
4003   sparc-*-sunos4*)
4004     if test x${is_cross_compiler} = xno ; then
4005            use_gnu_ld=no
4006     fi
4007     ;;
4008   tic6x-*-*)
4009     noconfigdirs="$noconfigdirs sim"
4010     ;;
4011   tilepro*-*-* | tilegx*-*-*)
4012     noconfigdirs="$noconfigdirs sim"
4013     ;;
4014   v810-*-*)
4015     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4016     ;;
4017   vax-*-*)
4018     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4019     ;;
4020   wasm32-*-*)
4021     noconfigdirs="$noconfigdirs ld"
4022     ;;
4023 esac
4024
4025 # If we aren't building newlib, then don't build libgloss, since libgloss
4026 # depends upon some newlib header files.
4027 case "${noconfigdirs}" in
4028   *target-libgloss*) ;;
4029   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4030 esac
4031
4032 # Work in distributions that contain no compiler tools, like Autoconf.
4033 host_makefile_frag=/dev/null
4034 if test -d ${srcdir}/config ; then
4035 case "${host}" in
4036   i[3456789]86-*-msdosdjgpp*)
4037     host_makefile_frag="config/mh-djgpp"
4038     ;;
4039   *-cygwin*)
4040
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4042 $as_echo_n "checking to see if cat works as expected... " >&6; }
4043 echo a >cygwin-cat-check
4044 if test `cat cygwin-cat-check` = a ; then
4045   rm cygwin-cat-check
4046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4047 $as_echo "yes" >&6; }
4048 else
4049   rm cygwin-cat-check
4050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4052   as_fn_error $? "The cat command does not ignore carriage return characters.
4053   Please either mount the build directory in binary mode or run the following
4054   commands before running any configure script:
4055 set -o igncr
4056 export SHELLOPTS
4057   " "$LINENO" 5
4058 fi
4059
4060     host_makefile_frag="config/mh-cygwin"
4061     ;;
4062   *-mingw*)
4063     host_makefile_frag="config/mh-mingw"
4064     ;;
4065   alpha*-linux*)
4066     host_makefile_frag="config/mh-alpha-linux"
4067     ;;
4068   hppa*-hp-hpux10*)
4069     host_makefile_frag="config/mh-pa-hpux10"
4070     ;;
4071   hppa*-hp-hpux*)
4072     host_makefile_frag="config/mh-pa"
4073     ;;
4074   hppa*-*)
4075     host_makefile_frag="config/mh-pa"
4076     ;;
4077   i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4078     host_makefile_frag="config/mh-darwin"
4079     ;;
4080   powerpc-*-aix*)
4081     host_makefile_frag="config/mh-ppc-aix"
4082     ;;
4083   rs6000-*-aix*)
4084     host_makefile_frag="config/mh-ppc-aix"
4085     ;;
4086 esac
4087 fi
4088
4089 if test "${build}" != "${host}" ; then
4090   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4091   AS_FOR_BUILD=${AS_FOR_BUILD-as}
4092   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4093   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4094   DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4095   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4096   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4097   GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4098   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4099   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4100   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4101   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4102   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4103   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4104 else
4105   AR_FOR_BUILD="\$(AR)"
4106   AS_FOR_BUILD="\$(AS)"
4107   CC_FOR_BUILD="\$(CC)"
4108   CXX_FOR_BUILD="\$(CXX)"
4109   DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4110   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4111   GOC_FOR_BUILD="\$(GOC)"
4112   GDC_FOR_BUILD="\$(GDC)"
4113   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4114   LD_FOR_BUILD="\$(LD)"
4115   NM_FOR_BUILD="\$(NM)"
4116   RANLIB_FOR_BUILD="\$(RANLIB)"
4117   WINDRES_FOR_BUILD="\$(WINDRES)"
4118   WINDMC_FOR_BUILD="\$(WINDMC)"
4119 fi
4120
4121 ac_ext=c
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 if test -n "$ac_tool_prefix"; then
4127   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4128 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_CC+:} false; then :
4132   $as_echo_n "(cached) " >&6
4133 else
4134   if test -n "$CC"; then
4135   ac_cv_prog_CC="$CC" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140   IFS=$as_save_IFS
4141   test -z "$as_dir" && as_dir=.
4142     for ac_exec_ext in '' $ac_executable_extensions; do
4143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146     break 2
4147   fi
4148 done
4149   done
4150 IFS=$as_save_IFS
4151
4152 fi
4153 fi
4154 CC=$ac_cv_prog_CC
4155 if test -n "$CC"; then
4156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4157 $as_echo "$CC" >&6; }
4158 else
4159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4161 fi
4162
4163
4164 fi
4165 if test -z "$ac_cv_prog_CC"; then
4166   ac_ct_CC=$CC
4167   # Extract the first word of "gcc", so it can be a program name with args.
4168 set dummy gcc; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4172   $as_echo_n "(cached) " >&6
4173 else
4174   if test -n "$ac_ct_CC"; then
4175   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4179 do
4180   IFS=$as_save_IFS
4181   test -z "$as_dir" && as_dir=.
4182     for ac_exec_ext in '' $ac_executable_extensions; do
4183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4184     ac_cv_prog_ac_ct_CC="gcc"
4185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186     break 2
4187   fi
4188 done
4189   done
4190 IFS=$as_save_IFS
4191
4192 fi
4193 fi
4194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4195 if test -n "$ac_ct_CC"; then
4196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4197 $as_echo "$ac_ct_CC" >&6; }
4198 else
4199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4201 fi
4202
4203   if test "x$ac_ct_CC" = x; then
4204     CC=""
4205   else
4206     case $cross_compiling:$ac_tool_warned in
4207 yes:)
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4210 ac_tool_warned=yes ;;
4211 esac
4212     CC=$ac_ct_CC
4213   fi
4214 else
4215   CC="$ac_cv_prog_CC"
4216 fi
4217
4218 if test -z "$CC"; then
4219           if test -n "$ac_tool_prefix"; then
4220     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4221 set dummy ${ac_tool_prefix}cc; ac_word=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if ${ac_cv_prog_CC+:} false; then :
4225   $as_echo_n "(cached) " >&6
4226 else
4227   if test -n "$CC"; then
4228   ac_cv_prog_CC="$CC" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4232 do
4233   IFS=$as_save_IFS
4234   test -z "$as_dir" && as_dir=.
4235     for ac_exec_ext in '' $ac_executable_extensions; do
4236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237     ac_cv_prog_CC="${ac_tool_prefix}cc"
4238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239     break 2
4240   fi
4241 done
4242   done
4243 IFS=$as_save_IFS
4244
4245 fi
4246 fi
4247 CC=$ac_cv_prog_CC
4248 if test -n "$CC"; then
4249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250 $as_echo "$CC" >&6; }
4251 else
4252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4254 fi
4255
4256
4257   fi
4258 fi
4259 if test -z "$CC"; then
4260   # Extract the first word of "cc", so it can be a program name with args.
4261 set dummy cc; ac_word=$2
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 $as_echo_n "checking for $ac_word... " >&6; }
4264 if ${ac_cv_prog_CC+:} false; then :
4265   $as_echo_n "(cached) " >&6
4266 else
4267   if test -n "$CC"; then
4268   ac_cv_prog_CC="$CC" # Let the user override the test.
4269 else
4270   ac_prog_rejected=no
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274   IFS=$as_save_IFS
4275   test -z "$as_dir" && as_dir=.
4276     for ac_exec_ext in '' $ac_executable_extensions; do
4277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4278     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4279        ac_prog_rejected=yes
4280        continue
4281      fi
4282     ac_cv_prog_CC="cc"
4283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284     break 2
4285   fi
4286 done
4287   done
4288 IFS=$as_save_IFS
4289
4290 if test $ac_prog_rejected = yes; then
4291   # We found a bogon in the path, so make sure we never use it.
4292   set dummy $ac_cv_prog_CC
4293   shift
4294   if test $# != 0; then
4295     # We chose a different compiler from the bogus one.
4296     # However, it has the same basename, so the bogon will be chosen
4297     # first if we set CC to just the basename; use the full file name.
4298     shift
4299     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4300   fi
4301 fi
4302 fi
4303 fi
4304 CC=$ac_cv_prog_CC
4305 if test -n "$CC"; then
4306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4307 $as_echo "$CC" >&6; }
4308 else
4309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4311 fi
4312
4313
4314 fi
4315 if test -z "$CC"; then
4316   if test -n "$ac_tool_prefix"; then
4317   for ac_prog in cl.exe
4318   do
4319     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4322 $as_echo_n "checking for $ac_word... " >&6; }
4323 if ${ac_cv_prog_CC+:} false; then :
4324   $as_echo_n "(cached) " >&6
4325 else
4326   if test -n "$CC"; then
4327   ac_cv_prog_CC="$CC" # Let the user override the test.
4328 else
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4331 do
4332   IFS=$as_save_IFS
4333   test -z "$as_dir" && as_dir=.
4334     for ac_exec_ext in '' $ac_executable_extensions; do
4335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4338     break 2
4339   fi
4340 done
4341   done
4342 IFS=$as_save_IFS
4343
4344 fi
4345 fi
4346 CC=$ac_cv_prog_CC
4347 if test -n "$CC"; then
4348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4349 $as_echo "$CC" >&6; }
4350 else
4351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4353 fi
4354
4355
4356     test -n "$CC" && break
4357   done
4358 fi
4359 if test -z "$CC"; then
4360   ac_ct_CC=$CC
4361   for ac_prog in cl.exe
4362 do
4363   # Extract the first word of "$ac_prog", so it can be a program name with args.
4364 set dummy $ac_prog; ac_word=$2
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366 $as_echo_n "checking for $ac_word... " >&6; }
4367 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4368   $as_echo_n "(cached) " >&6
4369 else
4370   if test -n "$ac_ct_CC"; then
4371   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4372 else
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4375 do
4376   IFS=$as_save_IFS
4377   test -z "$as_dir" && as_dir=.
4378     for ac_exec_ext in '' $ac_executable_extensions; do
4379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380     ac_cv_prog_ac_ct_CC="$ac_prog"
4381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382     break 2
4383   fi
4384 done
4385   done
4386 IFS=$as_save_IFS
4387
4388 fi
4389 fi
4390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4391 if test -n "$ac_ct_CC"; then
4392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4393 $as_echo "$ac_ct_CC" >&6; }
4394 else
4395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 $as_echo "no" >&6; }
4397 fi
4398
4399
4400   test -n "$ac_ct_CC" && break
4401 done
4402
4403   if test "x$ac_ct_CC" = x; then
4404     CC=""
4405   else
4406     case $cross_compiling:$ac_tool_warned in
4407 yes:)
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4410 ac_tool_warned=yes ;;
4411 esac
4412     CC=$ac_ct_CC
4413   fi
4414 fi
4415
4416 fi
4417
4418
4419 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4421 as_fn_error $? "no acceptable C compiler found in \$PATH
4422 See \`config.log' for more details" "$LINENO" 5; }
4423
4424 # Provide some information about the compiler.
4425 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4426 set X $ac_compile
4427 ac_compiler=$2
4428 for ac_option in --version -v -V -qversion; do
4429   { { ac_try="$ac_compiler $ac_option >&5"
4430 case "(($ac_try" in
4431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432   *) ac_try_echo=$ac_try;;
4433 esac
4434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435 $as_echo "$ac_try_echo"; } >&5
4436   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4437   ac_status=$?
4438   if test -s conftest.err; then
4439     sed '10a\
4440 ... rest of stderr output deleted ...
4441          10q' conftest.err >conftest.er1
4442     cat conftest.er1 >&5
4443   fi
4444   rm -f conftest.er1 conftest.err
4445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446   test $ac_status = 0; }
4447 done
4448
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h.  */
4451
4452 int
4453 main ()
4454 {
4455
4456   ;
4457   return 0;
4458 }
4459 _ACEOF
4460 ac_clean_files_save=$ac_clean_files
4461 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4462 # Try to create an executable without -o first, disregard a.out.
4463 # It will help us diagnose broken compilers, and finding out an intuition
4464 # of exeext.
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4466 $as_echo_n "checking whether the C compiler works... " >&6; }
4467 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4468
4469 # The possible output files:
4470 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4471
4472 ac_rmfiles=
4473 for ac_file in $ac_files
4474 do
4475   case $ac_file in
4476     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4477     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4478   esac
4479 done
4480 rm -f $ac_rmfiles
4481
4482 if { { ac_try="$ac_link_default"
4483 case "(($ac_try" in
4484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485   *) ac_try_echo=$ac_try;;
4486 esac
4487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4488 $as_echo "$ac_try_echo"; } >&5
4489   (eval "$ac_link_default") 2>&5
4490   ac_status=$?
4491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4492   test $ac_status = 0; }; then :
4493   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4494 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4495 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4496 # so that the user can short-circuit this test for compilers unknown to
4497 # Autoconf.
4498 for ac_file in $ac_files ''
4499 do
4500   test -f "$ac_file" || continue
4501   case $ac_file in
4502     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4503         ;;
4504     [ab].out )
4505         # We found the default executable, but exeext='' is most
4506         # certainly right.
4507         break;;
4508     *.* )
4509         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4510         then :; else
4511            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4512         fi
4513         # We set ac_cv_exeext here because the later test for it is not
4514         # safe: cross compilers may not add the suffix if given an `-o'
4515         # argument, so we may need to know it at that point already.
4516         # Even if this section looks crufty: it has the advantage of
4517         # actually working.
4518         break;;
4519     * )
4520         break;;
4521   esac
4522 done
4523 test "$ac_cv_exeext" = no && ac_cv_exeext=
4524
4525 else
4526   ac_file=''
4527 fi
4528 if test -z "$ac_file"; then :
4529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4531 $as_echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error 77 "C compiler cannot create executables
4537 See \`config.log' for more details" "$LINENO" 5; }
4538 else
4539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4540 $as_echo "yes" >&6; }
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4543 $as_echo_n "checking for C compiler default output file name... " >&6; }
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4545 $as_echo "$ac_file" >&6; }
4546 ac_exeext=$ac_cv_exeext
4547
4548 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4549 ac_clean_files=$ac_clean_files_save
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4551 $as_echo_n "checking for suffix of executables... " >&6; }
4552 if { { ac_try="$ac_link"
4553 case "(($ac_try" in
4554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555   *) ac_try_echo=$ac_try;;
4556 esac
4557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558 $as_echo "$ac_try_echo"; } >&5
4559   (eval "$ac_link") 2>&5
4560   ac_status=$?
4561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562   test $ac_status = 0; }; then :
4563   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4564 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4565 # work properly (i.e., refer to `conftest.exe'), while it won't with
4566 # `rm'.
4567 for ac_file in conftest.exe conftest conftest.*; do
4568   test -f "$ac_file" || continue
4569   case $ac_file in
4570     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4571     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4572           break;;
4573     * ) break;;
4574   esac
4575 done
4576 else
4577   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4579 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4580 See \`config.log' for more details" "$LINENO" 5; }
4581 fi
4582 rm -f conftest conftest$ac_cv_exeext
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4584 $as_echo "$ac_cv_exeext" >&6; }
4585
4586 rm -f conftest.$ac_ext
4587 EXEEXT=$ac_cv_exeext
4588 ac_exeext=$EXEEXT
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h.  */
4591 #include <stdio.h>
4592 int
4593 main ()
4594 {
4595 FILE *f = fopen ("conftest.out", "w");
4596  return ferror (f) || fclose (f) != 0;
4597
4598   ;
4599   return 0;
4600 }
4601 _ACEOF
4602 ac_clean_files="$ac_clean_files conftest.out"
4603 # Check that the compiler produces executables we can run.  If not, either
4604 # the compiler is broken, or we cross compile.
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4606 $as_echo_n "checking whether we are cross compiling... " >&6; }
4607 if test "$cross_compiling" != yes; then
4608   { { ac_try="$ac_link"
4609 case "(($ac_try" in
4610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611   *) ac_try_echo=$ac_try;;
4612 esac
4613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614 $as_echo "$ac_try_echo"; } >&5
4615   (eval "$ac_link") 2>&5
4616   ac_status=$?
4617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4618   test $ac_status = 0; }
4619   if { ac_try='./conftest$ac_cv_exeext'
4620   { { case "(($ac_try" in
4621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622   *) ac_try_echo=$ac_try;;
4623 esac
4624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625 $as_echo "$ac_try_echo"; } >&5
4626   (eval "$ac_try") 2>&5
4627   ac_status=$?
4628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629   test $ac_status = 0; }; }; then
4630     cross_compiling=no
4631   else
4632     if test "$cross_compiling" = maybe; then
4633         cross_compiling=yes
4634     else
4635         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4637 as_fn_error $? "cannot run C compiled programs.
4638 If you meant to cross compile, use \`--host'.
4639 See \`config.log' for more details" "$LINENO" 5; }
4640     fi
4641   fi
4642 fi
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4644 $as_echo "$cross_compiling" >&6; }
4645
4646 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4647 ac_clean_files=$ac_clean_files_save
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4649 $as_echo_n "checking for suffix of object files... " >&6; }
4650 if ${ac_cv_objext+:} false; then :
4651   $as_echo_n "(cached) " >&6
4652 else
4653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h.  */
4655
4656 int
4657 main ()
4658 {
4659
4660   ;
4661   return 0;
4662 }
4663 _ACEOF
4664 rm -f conftest.o conftest.obj
4665 if { { ac_try="$ac_compile"
4666 case "(($ac_try" in
4667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668   *) ac_try_echo=$ac_try;;
4669 esac
4670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4671 $as_echo "$ac_try_echo"; } >&5
4672   (eval "$ac_compile") 2>&5
4673   ac_status=$?
4674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4675   test $ac_status = 0; }; then :
4676   for ac_file in conftest.o conftest.obj conftest.*; do
4677   test -f "$ac_file" || continue;
4678   case $ac_file in
4679     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4680     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4681        break;;
4682   esac
4683 done
4684 else
4685   $as_echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4687
4688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690 as_fn_error $? "cannot compute suffix of object files: cannot compile
4691 See \`config.log' for more details" "$LINENO" 5; }
4692 fi
4693 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4694 fi
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4696 $as_echo "$ac_cv_objext" >&6; }
4697 OBJEXT=$ac_cv_objext
4698 ac_objext=$OBJEXT
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4700 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4701 if ${ac_cv_c_compiler_gnu+:} false; then :
4702   $as_echo_n "(cached) " >&6
4703 else
4704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h.  */
4706
4707 int
4708 main ()
4709 {
4710 #ifndef __GNUC__
4711        choke me
4712 #endif
4713
4714   ;
4715   return 0;
4716 }
4717 _ACEOF
4718 if ac_fn_c_try_compile "$LINENO"; then :
4719   ac_compiler_gnu=yes
4720 else
4721   ac_compiler_gnu=no
4722 fi
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4725
4726 fi
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4728 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4729 if test $ac_compiler_gnu = yes; then
4730   GCC=yes
4731 else
4732   GCC=
4733 fi
4734 ac_test_CFLAGS=${CFLAGS+set}
4735 ac_save_CFLAGS=$CFLAGS
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4737 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4738 if ${ac_cv_prog_cc_g+:} false; then :
4739   $as_echo_n "(cached) " >&6
4740 else
4741   ac_save_c_werror_flag=$ac_c_werror_flag
4742    ac_c_werror_flag=yes
4743    ac_cv_prog_cc_g=no
4744    CFLAGS="-g"
4745    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h.  */
4747
4748 int
4749 main ()
4750 {
4751
4752   ;
4753   return 0;
4754 }
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757   ac_cv_prog_cc_g=yes
4758 else
4759   CFLAGS=""
4760       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h.  */
4762
4763 int
4764 main ()
4765 {
4766
4767   ;
4768   return 0;
4769 }
4770 _ACEOF
4771 if ac_fn_c_try_compile "$LINENO"; then :
4772
4773 else
4774   ac_c_werror_flag=$ac_save_c_werror_flag
4775          CFLAGS="-g"
4776          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h.  */
4778
4779 int
4780 main ()
4781 {
4782
4783   ;
4784   return 0;
4785 }
4786 _ACEOF
4787 if ac_fn_c_try_compile "$LINENO"; then :
4788   ac_cv_prog_cc_g=yes
4789 fi
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 fi
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 fi
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795    ac_c_werror_flag=$ac_save_c_werror_flag
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4798 $as_echo "$ac_cv_prog_cc_g" >&6; }
4799 if test "$ac_test_CFLAGS" = set; then
4800   CFLAGS=$ac_save_CFLAGS
4801 elif test $ac_cv_prog_cc_g = yes; then
4802   if test "$GCC" = yes; then
4803     CFLAGS="-g -O2"
4804   else
4805     CFLAGS="-g"
4806   fi
4807 else
4808   if test "$GCC" = yes; then
4809     CFLAGS="-O2"
4810   else
4811     CFLAGS=
4812   fi
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4815 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4816 if ${ac_cv_prog_cc_c89+:} false; then :
4817   $as_echo_n "(cached) " >&6
4818 else
4819   ac_cv_prog_cc_c89=no
4820 ac_save_CC=$CC
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h.  */
4823 #include <stdarg.h>
4824 #include <stdio.h>
4825 struct stat;
4826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4827 struct buf { int x; };
4828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4829 static char *e (p, i)
4830      char **p;
4831      int i;
4832 {
4833   return p[i];
4834 }
4835 static char *f (char * (*g) (char **, int), char **p, ...)
4836 {
4837   char *s;
4838   va_list v;
4839   va_start (v,p);
4840   s = g (p, va_arg (v,int));
4841   va_end (v);
4842   return s;
4843 }
4844
4845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4846    function prototypes and stuff, but not '\xHH' hex character constants.
4847    These don't provoke an error unfortunately, instead are silently treated
4848    as 'x'.  The following induces an error, until -std is added to get
4849    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4850    array size at least.  It's necessary to write '\x00'==0 to get something
4851    that's true only with -std.  */
4852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4853
4854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4855    inside strings and character constants.  */
4856 #define FOO(x) 'x'
4857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4858
4859 int test (int i, double x);
4860 struct s1 {int (*f) (int a);};
4861 struct s2 {int (*f) (double a);};
4862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4863 int argc;
4864 char **argv;
4865 int
4866 main ()
4867 {
4868 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4869   ;
4870   return 0;
4871 }
4872 _ACEOF
4873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4874         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4875 do
4876   CC="$ac_save_CC $ac_arg"
4877   if ac_fn_c_try_compile "$LINENO"; then :
4878   ac_cv_prog_cc_c89=$ac_arg
4879 fi
4880 rm -f core conftest.err conftest.$ac_objext
4881   test "x$ac_cv_prog_cc_c89" != "xno" && break
4882 done
4883 rm -f conftest.$ac_ext
4884 CC=$ac_save_CC
4885
4886 fi
4887 # AC_CACHE_VAL
4888 case "x$ac_cv_prog_cc_c89" in
4889   x)
4890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4891 $as_echo "none needed" >&6; } ;;
4892   xno)
4893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4894 $as_echo "unsupported" >&6; } ;;
4895   *)
4896     CC="$CC $ac_cv_prog_cc_c89"
4897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4898 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4899 esac
4900 if test "x$ac_cv_prog_cc_c89" != xno; then :
4901
4902 fi
4903
4904 ac_ext=c
4905 ac_cpp='$CPP $CPPFLAGS'
4906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909
4910    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4911 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4912 if ${ac_cv_prog_cc_c99+:} false; then :
4913   $as_echo_n "(cached) " >&6
4914 else
4915   ac_cv_prog_cc_c99=no
4916 ac_save_CC=$CC
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h.  */
4919 #include <stdarg.h>
4920 #include <stdbool.h>
4921 #include <stdlib.h>
4922 #include <wchar.h>
4923 #include <stdio.h>
4924
4925 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4926 #define debug(...) fprintf (stderr, __VA_ARGS__)
4927 #define showlist(...) puts (#__VA_ARGS__)
4928 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4929 static void
4930 test_varargs_macros (void)
4931 {
4932   int x = 1234;
4933   int y = 5678;
4934   debug ("Flag");
4935   debug ("X = %d\n", x);
4936   showlist (The first, second, and third items.);
4937   report (x>y, "x is %d but y is %d", x, y);
4938 }
4939
4940 // Check long long types.
4941 #define BIG64 18446744073709551615ull
4942 #define BIG32 4294967295ul
4943 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4944 #if !BIG_OK
4945   your preprocessor is broken;
4946 #endif
4947 #if BIG_OK
4948 #else
4949   your preprocessor is broken;
4950 #endif
4951 static long long int bignum = -9223372036854775807LL;
4952 static unsigned long long int ubignum = BIG64;
4953
4954 struct incomplete_array
4955 {
4956   int datasize;
4957   double data[];
4958 };
4959
4960 struct named_init {
4961   int number;
4962   const wchar_t *name;
4963   double average;
4964 };
4965
4966 typedef const char *ccp;
4967
4968 static inline int
4969 test_restrict (ccp restrict text)
4970 {
4971   // See if C++-style comments work.
4972   // Iterate through items via the restricted pointer.
4973   // Also check for declarations in for loops.
4974   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4975     continue;
4976   return 0;
4977 }
4978
4979 // Check varargs and va_copy.
4980 static void
4981 test_varargs (const char *format, ...)
4982 {
4983   va_list args;
4984   va_start (args, format);
4985   va_list args_copy;
4986   va_copy (args_copy, args);
4987
4988   const char *str;
4989   int number;
4990   float fnumber;
4991
4992   while (*format)
4993     {
4994       switch (*format++)
4995         {
4996         case 's': // string
4997           str = va_arg (args_copy, const char *);
4998           break;
4999         case 'd': // int
5000           number = va_arg (args_copy, int);
5001           break;
5002         case 'f': // float
5003           fnumber = va_arg (args_copy, double);
5004           break;
5005         default:
5006           break;
5007         }
5008     }
5009   va_end (args_copy);
5010   va_end (args);
5011 }
5012
5013 int
5014 main ()
5015 {
5016
5017   // Check bool.
5018   _Bool success = false;
5019
5020   // Check restrict.
5021   if (test_restrict ("String literal") == 0)
5022     success = true;
5023   char *restrict newvar = "Another string";
5024
5025   // Check varargs.
5026   test_varargs ("s, d' f .", "string", 65, 34.234);
5027   test_varargs_macros ();
5028
5029   // Check flexible array members.
5030   struct incomplete_array *ia =
5031     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5032   ia->datasize = 10;
5033   for (int i = 0; i < ia->datasize; ++i)
5034     ia->data[i] = i * 1.234;
5035
5036   // Check named initializers.
5037   struct named_init ni = {
5038     .number = 34,
5039     .name = L"Test wide string",
5040     .average = 543.34343,
5041   };
5042
5043   ni.number = 58;
5044
5045   int dynamic_array[ni.number];
5046   dynamic_array[ni.number - 1] = 543;
5047
5048   // work around unused variable warnings
5049   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5050           || dynamic_array[ni.number - 1] != 543);
5051
5052   ;
5053   return 0;
5054 }
5055 _ACEOF
5056 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5057 do
5058   CC="$ac_save_CC $ac_arg"
5059   if ac_fn_c_try_compile "$LINENO"; then :
5060   ac_cv_prog_cc_c99=$ac_arg
5061 fi
5062 rm -f core conftest.err conftest.$ac_objext
5063   test "x$ac_cv_prog_cc_c99" != "xno" && break
5064 done
5065 rm -f conftest.$ac_ext
5066 CC=$ac_save_CC
5067
5068 fi
5069 # AC_CACHE_VAL
5070 case "x$ac_cv_prog_cc_c99" in
5071   x)
5072     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5073 $as_echo "none needed" >&6; } ;;
5074   xno)
5075     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5076 $as_echo "unsupported" >&6; } ;;
5077   *)
5078     CC="$CC $ac_cv_prog_cc_c99"
5079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5080 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5081 esac
5082 if test "x$ac_cv_prog_cc_c99" != xno; then :
5083
5084 fi
5085
5086
5087 ac_ext=cpp
5088 ac_cpp='$CXXCPP $CPPFLAGS'
5089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5092 if test -z "$CXX"; then
5093   if test -n "$CCC"; then
5094     CXX=$CCC
5095   else
5096     if test -n "$ac_tool_prefix"; then
5097   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5098   do
5099     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if ${ac_cv_prog_CXX+:} false; then :
5104   $as_echo_n "(cached) " >&6
5105 else
5106   if test -n "$CXX"; then
5107   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5108 else
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5111 do
5112   IFS=$as_save_IFS
5113   test -z "$as_dir" && as_dir=.
5114     for ac_exec_ext in '' $ac_executable_extensions; do
5115   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118     break 2
5119   fi
5120 done
5121   done
5122 IFS=$as_save_IFS
5123
5124 fi
5125 fi
5126 CXX=$ac_cv_prog_CXX
5127 if test -n "$CXX"; then
5128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5129 $as_echo "$CXX" >&6; }
5130 else
5131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5133 fi
5134
5135
5136     test -n "$CXX" && break
5137   done
5138 fi
5139 if test -z "$CXX"; then
5140   ac_ct_CXX=$CXX
5141   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5142 do
5143   # Extract the first word of "$ac_prog", so it can be a program name with args.
5144 set dummy $ac_prog; ac_word=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5148   $as_echo_n "(cached) " >&6
5149 else
5150   if test -n "$ac_ct_CXX"; then
5151   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5152 else
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5155 do
5156   IFS=$as_save_IFS
5157   test -z "$as_dir" && as_dir=.
5158     for ac_exec_ext in '' $ac_executable_extensions; do
5159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160     ac_cv_prog_ac_ct_CXX="$ac_prog"
5161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162     break 2
5163   fi
5164 done
5165   done
5166 IFS=$as_save_IFS
5167
5168 fi
5169 fi
5170 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5171 if test -n "$ac_ct_CXX"; then
5172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5173 $as_echo "$ac_ct_CXX" >&6; }
5174 else
5175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5177 fi
5178
5179
5180   test -n "$ac_ct_CXX" && break
5181 done
5182
5183   if test "x$ac_ct_CXX" = x; then
5184     CXX="g++"
5185   else
5186     case $cross_compiling:$ac_tool_warned in
5187 yes:)
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5190 ac_tool_warned=yes ;;
5191 esac
5192     CXX=$ac_ct_CXX
5193   fi
5194 fi
5195
5196   fi
5197 fi
5198 # Provide some information about the compiler.
5199 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5200 set X $ac_compile
5201 ac_compiler=$2
5202 for ac_option in --version -v -V -qversion; do
5203   { { ac_try="$ac_compiler $ac_option >&5"
5204 case "(($ac_try" in
5205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206   *) ac_try_echo=$ac_try;;
5207 esac
5208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5209 $as_echo "$ac_try_echo"; } >&5
5210   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5211   ac_status=$?
5212   if test -s conftest.err; then
5213     sed '10a\
5214 ... rest of stderr output deleted ...
5215          10q' conftest.err >conftest.er1
5216     cat conftest.er1 >&5
5217   fi
5218   rm -f conftest.er1 conftest.err
5219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5220   test $ac_status = 0; }
5221 done
5222
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5224 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5225 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5226   $as_echo_n "(cached) " >&6
5227 else
5228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h.  */
5230
5231 int
5232 main ()
5233 {
5234 #ifndef __GNUC__
5235        choke me
5236 #endif
5237
5238   ;
5239   return 0;
5240 }
5241 _ACEOF
5242 if ac_fn_cxx_try_compile "$LINENO"; then :
5243   ac_compiler_gnu=yes
5244 else
5245   ac_compiler_gnu=no
5246 fi
5247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5248 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5249
5250 fi
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5252 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5253 if test $ac_compiler_gnu = yes; then
5254   GXX=yes
5255 else
5256   GXX=
5257 fi
5258 ac_test_CXXFLAGS=${CXXFLAGS+set}
5259 ac_save_CXXFLAGS=$CXXFLAGS
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5261 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5262 if ${ac_cv_prog_cxx_g+:} false; then :
5263   $as_echo_n "(cached) " >&6
5264 else
5265   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5266    ac_cxx_werror_flag=yes
5267    ac_cv_prog_cxx_g=no
5268    CXXFLAGS="-g"
5269    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h.  */
5271
5272 int
5273 main ()
5274 {
5275
5276   ;
5277   return 0;
5278 }
5279 _ACEOF
5280 if ac_fn_cxx_try_compile "$LINENO"; then :
5281   ac_cv_prog_cxx_g=yes
5282 else
5283   CXXFLAGS=""
5284       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h.  */
5286
5287 int
5288 main ()
5289 {
5290
5291   ;
5292   return 0;
5293 }
5294 _ACEOF
5295 if ac_fn_cxx_try_compile "$LINENO"; then :
5296
5297 else
5298   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5299          CXXFLAGS="-g"
5300          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h.  */
5302
5303 int
5304 main ()
5305 {
5306
5307   ;
5308   return 0;
5309 }
5310 _ACEOF
5311 if ac_fn_cxx_try_compile "$LINENO"; then :
5312   ac_cv_prog_cxx_g=yes
5313 fi
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 fi
5316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317 fi
5318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5320 fi
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5322 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5323 if test "$ac_test_CXXFLAGS" = set; then
5324   CXXFLAGS=$ac_save_CXXFLAGS
5325 elif test $ac_cv_prog_cxx_g = yes; then
5326   if test "$GXX" = yes; then
5327     CXXFLAGS="-g -O2"
5328   else
5329     CXXFLAGS="-g"
5330   fi
5331 else
5332   if test "$GXX" = yes; then
5333     CXXFLAGS="-O2"
5334   else
5335     CXXFLAGS=
5336   fi
5337 fi
5338 ac_ext=c
5339 ac_cpp='$CPP $CPPFLAGS'
5340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5343
5344
5345 # We must set the default linker to the linker used by gcc for the correct
5346 # operation of libtool.  If LD is not defined and we are using gcc, try to
5347 # set the LD default to the ld used by gcc.
5348 if test -z "$LD"; then
5349   if test "$GCC" = yes; then
5350     case $build in
5351     *-*-mingw*)
5352       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5353     *)
5354       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5355     esac
5356     case $gcc_prog_ld in
5357     # Accept absolute paths.
5358     [\\/]* | [A-Za-z]:[\\/]*)
5359       LD="$gcc_prog_ld" ;;
5360     esac
5361   fi
5362 fi
5363
5364 # Check whether -static-libstdc++ -static-libgcc is supported.
5365 have_static_libs=no
5366 if test "$GCC" = yes; then
5367   saved_LDFLAGS="$LDFLAGS"
5368
5369   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5371 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5372   ac_ext=cpp
5373 ac_cpp='$CXXCPP $CPPFLAGS'
5374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5377
5378
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h.  */
5381
5382 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5383 #error -static-libstdc++ not implemented
5384 #endif
5385 int main() {}
5386 _ACEOF
5387 if ac_fn_cxx_try_link "$LINENO"; then :
5388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5389 $as_echo "yes" >&6; }; have_static_libs=yes
5390 else
5391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }
5393 fi
5394 rm -f core conftest.err conftest.$ac_objext \
5395     conftest$ac_exeext conftest.$ac_ext
5396   ac_ext=c
5397 ac_cpp='$CPP $CPPFLAGS'
5398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5401
5402
5403   LDFLAGS="$saved_LDFLAGS"
5404 fi
5405
5406
5407
5408
5409 if test -n "$ac_tool_prefix"; then
5410   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5411 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413 $as_echo_n "checking for $ac_word... " >&6; }
5414 if ${ac_cv_prog_GNATBIND+:} false; then :
5415   $as_echo_n "(cached) " >&6
5416 else
5417   if test -n "$GNATBIND"; then
5418   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5419 else
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5422 do
5423   IFS=$as_save_IFS
5424   test -z "$as_dir" && as_dir=.
5425     for ac_exec_ext in '' $ac_executable_extensions; do
5426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5427     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429     break 2
5430   fi
5431 done
5432   done
5433 IFS=$as_save_IFS
5434
5435 fi
5436 fi
5437 GNATBIND=$ac_cv_prog_GNATBIND
5438 if test -n "$GNATBIND"; then
5439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5440 $as_echo "$GNATBIND" >&6; }
5441 else
5442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5444 fi
5445
5446
5447 fi
5448 if test -z "$ac_cv_prog_GNATBIND"; then
5449   ac_ct_GNATBIND=$GNATBIND
5450   # Extract the first word of "gnatbind", so it can be a program name with args.
5451 set dummy gnatbind; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5455   $as_echo_n "(cached) " >&6
5456 else
5457   if test -n "$ac_ct_GNATBIND"; then
5458   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463   IFS=$as_save_IFS
5464   test -z "$as_dir" && as_dir=.
5465     for ac_exec_ext in '' $ac_executable_extensions; do
5466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5467     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469     break 2
5470   fi
5471 done
5472   done
5473 IFS=$as_save_IFS
5474
5475 fi
5476 fi
5477 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5478 if test -n "$ac_ct_GNATBIND"; then
5479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5480 $as_echo "$ac_ct_GNATBIND" >&6; }
5481 else
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 fi
5485
5486   if test "x$ac_ct_GNATBIND" = x; then
5487     GNATBIND="no"
5488   else
5489     case $cross_compiling:$ac_tool_warned in
5490 yes:)
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493 ac_tool_warned=yes ;;
5494 esac
5495     GNATBIND=$ac_ct_GNATBIND
5496   fi
5497 else
5498   GNATBIND="$ac_cv_prog_GNATBIND"
5499 fi
5500
5501 if test -n "$ac_tool_prefix"; then
5502   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5503 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if ${ac_cv_prog_GNATMAKE+:} false; then :
5507   $as_echo_n "(cached) " >&6
5508 else
5509   if test -n "$GNATMAKE"; then
5510   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5511 else
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 for as_dir in $PATH
5514 do
5515   IFS=$as_save_IFS
5516   test -z "$as_dir" && as_dir=.
5517     for ac_exec_ext in '' $ac_executable_extensions; do
5518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5519     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521     break 2
5522   fi
5523 done
5524   done
5525 IFS=$as_save_IFS
5526
5527 fi
5528 fi
5529 GNATMAKE=$ac_cv_prog_GNATMAKE
5530 if test -n "$GNATMAKE"; then
5531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5532 $as_echo "$GNATMAKE" >&6; }
5533 else
5534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5536 fi
5537
5538
5539 fi
5540 if test -z "$ac_cv_prog_GNATMAKE"; then
5541   ac_ct_GNATMAKE=$GNATMAKE
5542   # Extract the first word of "gnatmake", so it can be a program name with args.
5543 set dummy gnatmake; ac_word=$2
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5547   $as_echo_n "(cached) " >&6
5548 else
5549   if test -n "$ac_ct_GNATMAKE"; then
5550   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5551 else
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5554 do
5555   IFS=$as_save_IFS
5556   test -z "$as_dir" && as_dir=.
5557     for ac_exec_ext in '' $ac_executable_extensions; do
5558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5559     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561     break 2
5562   fi
5563 done
5564   done
5565 IFS=$as_save_IFS
5566
5567 fi
5568 fi
5569 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5570 if test -n "$ac_ct_GNATMAKE"; then
5571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5572 $as_echo "$ac_ct_GNATMAKE" >&6; }
5573 else
5574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5576 fi
5577
5578   if test "x$ac_ct_GNATMAKE" = x; then
5579     GNATMAKE="no"
5580   else
5581     case $cross_compiling:$ac_tool_warned in
5582 yes:)
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585 ac_tool_warned=yes ;;
5586 esac
5587     GNATMAKE=$ac_ct_GNATMAKE
5588   fi
5589 else
5590   GNATMAKE="$ac_cv_prog_GNATMAKE"
5591 fi
5592
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5594 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5595 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5596   $as_echo_n "(cached) " >&6
5597 else
5598   cat >conftest.adb <<EOF
5599 procedure conftest is begin null; end conftest;
5600 EOF
5601 acx_cv_cc_gcc_supports_ada=no
5602 # There is a bug in old released versions of GCC which causes the
5603 # driver to exit successfully when the appropriate language module
5604 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5605 # Therefore we must check for the error message as well as an
5606 # unsuccessful exit.
5607 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5608 # given a .adb file, but produce no object file.  So we must check
5609 # if an object file was really produced to guard against this.
5610 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5611 if test x"$errors" = x && test -f conftest.$ac_objext; then
5612   acx_cv_cc_gcc_supports_ada=yes
5613 fi
5614 rm -f conftest.*
5615 fi
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5617 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5618
5619 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5620   have_gnat=yes
5621 else
5622   have_gnat=no
5623 fi
5624
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5626 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5627 if ${gcc_cv_prog_cmp_skip+:} false; then :
5628   $as_echo_n "(cached) " >&6
5629 else
5630    echo abfoo >t1
5631   echo cdfoo >t2
5632   gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5633   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5634     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5635       :
5636     else
5637       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5638     fi
5639   fi
5640   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5641     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5642       :
5643     else
5644       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5645     fi
5646   fi
5647   rm t1 t2
5648
5649 fi
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5651 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5652 do_compare="$gcc_cv_prog_cmp_skip"
5653
5654
5655
5656 # Check whether --enable-bootstrap was given.
5657 if test "${enable_bootstrap+set}" = set; then :
5658   enableval=$enable_bootstrap;
5659 else
5660   enable_bootstrap=default
5661 fi
5662
5663
5664 # Issue errors and warnings for invalid/strange bootstrap combinations.
5665 if test -r $srcdir/gcc/configure; then
5666   have_compiler=yes
5667 else
5668   have_compiler=no
5669 fi
5670
5671 case "$have_compiler:$host:$target:$enable_bootstrap" in
5672   *:*:*:no) ;;
5673
5674   # Default behavior.  Enable bootstrap if we have a compiler
5675   # and we are in a native configuration.
5676   yes:$build:$build:default)
5677     enable_bootstrap=yes ;;
5678
5679   *:*:*:default)
5680     enable_bootstrap=no ;;
5681
5682   # We have a compiler and we are in a native configuration, bootstrap is ok
5683   yes:$build:$build:yes)
5684     ;;
5685
5686   # Other configurations, but we have a compiler.  Assume the user knows
5687   # what he's doing.
5688   yes:*:*:yes)
5689     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5690 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5691     ;;
5692
5693   # No compiler: if they passed --enable-bootstrap explicitly, fail
5694   no:*:*:yes)
5695     as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5696
5697   # Fail if wrong command line
5698   *)
5699     as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5700     ;;
5701 esac
5702
5703 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5704 # C++11 compiler can still start the bootstrap.  Otherwise, if building GCC,
5705 # require C++11 (or higher).
5706 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5707   CXX="$CXX -std=c++11"
5708 elif test "$have_compiler" = yes; then
5709     ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
5710   ac_ext=cpp
5711 ac_cpp='$CXXCPP $CPPFLAGS'
5712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5715   ac_success=no
5716
5717       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5718 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5719 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5720   $as_echo_n "(cached) " >&6
5721 else
5722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h.  */
5724
5725
5726 // If the compiler admits that it is not ready for C++11, why torture it?
5727 // Hopefully, this will speed up the test.
5728
5729 #ifndef __cplusplus
5730
5731 #error "This is not a C++ compiler"
5732
5733 #elif __cplusplus < 201103L
5734
5735 #error "This is not a C++11 compiler"
5736
5737 #else
5738
5739 namespace cxx11
5740 {
5741
5742   namespace test_static_assert
5743   {
5744
5745     template <typename T>
5746     struct check
5747     {
5748       static_assert(sizeof(int) <= sizeof(T), "not big enough");
5749     };
5750
5751   }
5752
5753   namespace test_final_override
5754   {
5755
5756     struct Base
5757     {
5758       virtual ~Base() {}
5759       virtual void f() {}
5760     };
5761
5762     struct Derived : public Base
5763     {
5764       virtual ~Derived() override {}
5765       virtual void f() override {}
5766     };
5767
5768   }
5769
5770   namespace test_double_right_angle_brackets
5771   {
5772
5773     template < typename T >
5774     struct check {};
5775
5776     typedef check<void> single_type;
5777     typedef check<check<void>> double_type;
5778     typedef check<check<check<void>>> triple_type;
5779     typedef check<check<check<check<void>>>> quadruple_type;
5780
5781   }
5782
5783   namespace test_decltype
5784   {
5785
5786     int
5787     f()
5788     {
5789       int a = 1;
5790       decltype(a) b = 2;
5791       return a + b;
5792     }
5793
5794   }
5795
5796   namespace test_type_deduction
5797   {
5798
5799     template < typename T1, typename T2 >
5800     struct is_same
5801     {
5802       static const bool value = false;
5803     };
5804
5805     template < typename T >
5806     struct is_same<T, T>
5807     {
5808       static const bool value = true;
5809     };
5810
5811     template < typename T1, typename T2 >
5812     auto
5813     add(T1 a1, T2 a2) -> decltype(a1 + a2)
5814     {
5815       return a1 + a2;
5816     }
5817
5818     int
5819     test(const int c, volatile int v)
5820     {
5821       static_assert(is_same<int, decltype(0)>::value == true, "");
5822       static_assert(is_same<int, decltype(c)>::value == false, "");
5823       static_assert(is_same<int, decltype(v)>::value == false, "");
5824       auto ac = c;
5825       auto av = v;
5826       auto sumi = ac + av + 'x';
5827       auto sumf = ac + av + 1.0;
5828       static_assert(is_same<int, decltype(ac)>::value == true, "");
5829       static_assert(is_same<int, decltype(av)>::value == true, "");
5830       static_assert(is_same<int, decltype(sumi)>::value == true, "");
5831       static_assert(is_same<int, decltype(sumf)>::value == false, "");
5832       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5833       return (sumf > 0.0) ? sumi : add(c, v);
5834     }
5835
5836   }
5837
5838   namespace test_noexcept
5839   {
5840
5841     int f() { return 0; }
5842     int g() noexcept { return 0; }
5843
5844     static_assert(noexcept(f()) == false, "");
5845     static_assert(noexcept(g()) == true, "");
5846
5847   }
5848
5849   namespace test_constexpr
5850   {
5851
5852     template < typename CharT >
5853     unsigned long constexpr
5854     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5855     {
5856       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5857     }
5858
5859     template < typename CharT >
5860     unsigned long constexpr
5861     strlen_c(const CharT *const s) noexcept
5862     {
5863       return strlen_c_r(s, 0UL);
5864     }
5865
5866     static_assert(strlen_c("") == 0UL, "");
5867     static_assert(strlen_c("1") == 1UL, "");
5868     static_assert(strlen_c("example") == 7UL, "");
5869     static_assert(strlen_c("another\0example") == 7UL, "");
5870
5871   }
5872
5873   namespace test_rvalue_references
5874   {
5875
5876     template < int N >
5877     struct answer
5878     {
5879       static constexpr int value = N;
5880     };
5881
5882     answer<1> f(int&)       { return answer<1>(); }
5883     answer<2> f(const int&) { return answer<2>(); }
5884     answer<3> f(int&&)      { return answer<3>(); }
5885
5886     void
5887     test()
5888     {
5889       int i = 0;
5890       const int c = 0;
5891       static_assert(decltype(f(i))::value == 1, "");
5892       static_assert(decltype(f(c))::value == 2, "");
5893       static_assert(decltype(f(0))::value == 3, "");
5894     }
5895
5896   }
5897
5898   namespace test_uniform_initialization
5899   {
5900
5901     struct test
5902     {
5903       static const int zero {};
5904       static const int one {1};
5905     };
5906
5907     static_assert(test::zero == 0, "");
5908     static_assert(test::one == 1, "");
5909
5910   }
5911
5912   namespace test_lambdas
5913   {
5914
5915     void
5916     test1()
5917     {
5918       auto lambda1 = [](){};
5919       auto lambda2 = lambda1;
5920       lambda1();
5921       lambda2();
5922     }
5923
5924     int
5925     test2()
5926     {
5927       auto a = [](int i, int j){ return i + j; }(1, 2);
5928       auto b = []() -> int { return '0'; }();
5929       auto c = [=](){ return a + b; }();
5930       auto d = [&](){ return c; }();
5931       auto e = [a, &b](int x) mutable {
5932         const auto identity = [](int y){ return y; };
5933         for (auto i = 0; i < a; ++i)
5934           a += b--;
5935         return x + identity(a + b);
5936       }(0);
5937       return a + b + c + d + e;
5938     }
5939
5940     int
5941     test3()
5942     {
5943       const auto nullary = [](){ return 0; };
5944       const auto unary = [](int x){ return x; };
5945       using nullary_t = decltype(nullary);
5946       using unary_t = decltype(unary);
5947       const auto higher1st = [](nullary_t f){ return f(); };
5948       const auto higher2nd = [unary](nullary_t f1){
5949         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5950       };
5951       return higher1st(nullary) + higher2nd(nullary)(unary);
5952     }
5953
5954   }
5955
5956   namespace test_variadic_templates
5957   {
5958
5959     template <int...>
5960     struct sum;
5961
5962     template <int N0, int... N1toN>
5963     struct sum<N0, N1toN...>
5964     {
5965       static constexpr auto value = N0 + sum<N1toN...>::value;
5966     };
5967
5968     template <>
5969     struct sum<>
5970     {
5971       static constexpr auto value = 0;
5972     };
5973
5974     static_assert(sum<>::value == 0, "");
5975     static_assert(sum<1>::value == 1, "");
5976     static_assert(sum<23>::value == 23, "");
5977     static_assert(sum<1, 2>::value == 3, "");
5978     static_assert(sum<5, 5, 11>::value == 21, "");
5979     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5980
5981   }
5982
5983   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5984   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5985   // because of this.
5986   namespace test_template_alias_sfinae
5987   {
5988
5989     struct foo {};
5990
5991     template<typename T>
5992     using member = typename T::member_type;
5993
5994     template<typename T>
5995     void func(...) {}
5996
5997     template<typename T>
5998     void func(member<T>*) {}
5999
6000     void test();
6001
6002     void test() { func<foo>(0); }
6003
6004   }
6005
6006 }  // namespace cxx11
6007
6008 #endif  // __cplusplus >= 201103L
6009
6010
6011
6012 _ACEOF
6013 if ac_fn_cxx_try_compile "$LINENO"; then :
6014   ax_cv_cxx_compile_cxx11=yes
6015 else
6016   ax_cv_cxx_compile_cxx11=no
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 fi
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6021 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6022     if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6023       ac_success=yes
6024     fi
6025
6026     if test x$ac_success = xno; then
6027     for alternative in ${ax_cxx_compile_alternatives}; do
6028       switch="-std=gnu++${alternative}"
6029       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6030       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6031 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6032 if eval \${$cachevar+:} false; then :
6033   $as_echo_n "(cached) " >&6
6034 else
6035   ac_save_CXX="$CXX"
6036          CXX="$CXX $switch"
6037          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h.  */
6039
6040
6041 // If the compiler admits that it is not ready for C++11, why torture it?
6042 // Hopefully, this will speed up the test.
6043
6044 #ifndef __cplusplus
6045
6046 #error "This is not a C++ compiler"
6047
6048 #elif __cplusplus < 201103L
6049
6050 #error "This is not a C++11 compiler"
6051
6052 #else
6053
6054 namespace cxx11
6055 {
6056
6057   namespace test_static_assert
6058   {
6059
6060     template <typename T>
6061     struct check
6062     {
6063       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6064     };
6065
6066   }
6067
6068   namespace test_final_override
6069   {
6070
6071     struct Base
6072     {
6073       virtual ~Base() {}
6074       virtual void f() {}
6075     };
6076
6077     struct Derived : public Base
6078     {
6079       virtual ~Derived() override {}
6080       virtual void f() override {}
6081     };
6082
6083   }
6084
6085   namespace test_double_right_angle_brackets
6086   {
6087
6088     template < typename T >
6089     struct check {};
6090
6091     typedef check<void> single_type;
6092     typedef check<check<void>> double_type;
6093     typedef check<check<check<void>>> triple_type;
6094     typedef check<check<check<check<void>>>> quadruple_type;
6095
6096   }
6097
6098   namespace test_decltype
6099   {
6100
6101     int
6102     f()
6103     {
6104       int a = 1;
6105       decltype(a) b = 2;
6106       return a + b;
6107     }
6108
6109   }
6110
6111   namespace test_type_deduction
6112   {
6113
6114     template < typename T1, typename T2 >
6115     struct is_same
6116     {
6117       static const bool value = false;
6118     };
6119
6120     template < typename T >
6121     struct is_same<T, T>
6122     {
6123       static const bool value = true;
6124     };
6125
6126     template < typename T1, typename T2 >
6127     auto
6128     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6129     {
6130       return a1 + a2;
6131     }
6132
6133     int
6134     test(const int c, volatile int v)
6135     {
6136       static_assert(is_same<int, decltype(0)>::value == true, "");
6137       static_assert(is_same<int, decltype(c)>::value == false, "");
6138       static_assert(is_same<int, decltype(v)>::value == false, "");
6139       auto ac = c;
6140       auto av = v;
6141       auto sumi = ac + av + 'x';
6142       auto sumf = ac + av + 1.0;
6143       static_assert(is_same<int, decltype(ac)>::value == true, "");
6144       static_assert(is_same<int, decltype(av)>::value == true, "");
6145       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6146       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6147       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6148       return (sumf > 0.0) ? sumi : add(c, v);
6149     }
6150
6151   }
6152
6153   namespace test_noexcept
6154   {
6155
6156     int f() { return 0; }
6157     int g() noexcept { return 0; }
6158
6159     static_assert(noexcept(f()) == false, "");
6160     static_assert(noexcept(g()) == true, "");
6161
6162   }
6163
6164   namespace test_constexpr
6165   {
6166
6167     template < typename CharT >
6168     unsigned long constexpr
6169     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6170     {
6171       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6172     }
6173
6174     template < typename CharT >
6175     unsigned long constexpr
6176     strlen_c(const CharT *const s) noexcept
6177     {
6178       return strlen_c_r(s, 0UL);
6179     }
6180
6181     static_assert(strlen_c("") == 0UL, "");
6182     static_assert(strlen_c("1") == 1UL, "");
6183     static_assert(strlen_c("example") == 7UL, "");
6184     static_assert(strlen_c("another\0example") == 7UL, "");
6185
6186   }
6187
6188   namespace test_rvalue_references
6189   {
6190
6191     template < int N >
6192     struct answer
6193     {
6194       static constexpr int value = N;
6195     };
6196
6197     answer<1> f(int&)       { return answer<1>(); }
6198     answer<2> f(const int&) { return answer<2>(); }
6199     answer<3> f(int&&)      { return answer<3>(); }
6200
6201     void
6202     test()
6203     {
6204       int i = 0;
6205       const int c = 0;
6206       static_assert(decltype(f(i))::value == 1, "");
6207       static_assert(decltype(f(c))::value == 2, "");
6208       static_assert(decltype(f(0))::value == 3, "");
6209     }
6210
6211   }
6212
6213   namespace test_uniform_initialization
6214   {
6215
6216     struct test
6217     {
6218       static const int zero {};
6219       static const int one {1};
6220     };
6221
6222     static_assert(test::zero == 0, "");
6223     static_assert(test::one == 1, "");
6224
6225   }
6226
6227   namespace test_lambdas
6228   {
6229
6230     void
6231     test1()
6232     {
6233       auto lambda1 = [](){};
6234       auto lambda2 = lambda1;
6235       lambda1();
6236       lambda2();
6237     }
6238
6239     int
6240     test2()
6241     {
6242       auto a = [](int i, int j){ return i + j; }(1, 2);
6243       auto b = []() -> int { return '0'; }();
6244       auto c = [=](){ return a + b; }();
6245       auto d = [&](){ return c; }();
6246       auto e = [a, &b](int x) mutable {
6247         const auto identity = [](int y){ return y; };
6248         for (auto i = 0; i < a; ++i)
6249           a += b--;
6250         return x + identity(a + b);
6251       }(0);
6252       return a + b + c + d + e;
6253     }
6254
6255     int
6256     test3()
6257     {
6258       const auto nullary = [](){ return 0; };
6259       const auto unary = [](int x){ return x; };
6260       using nullary_t = decltype(nullary);
6261       using unary_t = decltype(unary);
6262       const auto higher1st = [](nullary_t f){ return f(); };
6263       const auto higher2nd = [unary](nullary_t f1){
6264         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6265       };
6266       return higher1st(nullary) + higher2nd(nullary)(unary);
6267     }
6268
6269   }
6270
6271   namespace test_variadic_templates
6272   {
6273
6274     template <int...>
6275     struct sum;
6276
6277     template <int N0, int... N1toN>
6278     struct sum<N0, N1toN...>
6279     {
6280       static constexpr auto value = N0 + sum<N1toN...>::value;
6281     };
6282
6283     template <>
6284     struct sum<>
6285     {
6286       static constexpr auto value = 0;
6287     };
6288
6289     static_assert(sum<>::value == 0, "");
6290     static_assert(sum<1>::value == 1, "");
6291     static_assert(sum<23>::value == 23, "");
6292     static_assert(sum<1, 2>::value == 3, "");
6293     static_assert(sum<5, 5, 11>::value == 21, "");
6294     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6295
6296   }
6297
6298   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6299   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6300   // because of this.
6301   namespace test_template_alias_sfinae
6302   {
6303
6304     struct foo {};
6305
6306     template<typename T>
6307     using member = typename T::member_type;
6308
6309     template<typename T>
6310     void func(...) {}
6311
6312     template<typename T>
6313     void func(member<T>*) {}
6314
6315     void test();
6316
6317     void test() { func<foo>(0); }
6318
6319   }
6320
6321 }  // namespace cxx11
6322
6323 #endif  // __cplusplus >= 201103L
6324
6325
6326
6327 _ACEOF
6328 if ac_fn_cxx_try_compile "$LINENO"; then :
6329   eval $cachevar=yes
6330 else
6331   eval $cachevar=no
6332 fi
6333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334          CXX="$ac_save_CXX"
6335 fi
6336 eval ac_res=\$$cachevar
6337                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6338 $as_echo "$ac_res" >&6; }
6339       if eval test x\$$cachevar = xyes; then
6340         CXX="$CXX $switch"
6341         if test -n "$CXXCPP" ; then
6342           CXXCPP="$CXXCPP $switch"
6343         fi
6344         ac_success=yes
6345         break
6346       fi
6347     done
6348   fi
6349
6350     if test x$ac_success = xno; then
6351                 for alternative in ${ax_cxx_compile_alternatives}; do
6352       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6353         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6354         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6355 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6356 if eval \${$cachevar+:} false; then :
6357   $as_echo_n "(cached) " >&6
6358 else
6359   ac_save_CXX="$CXX"
6360            CXX="$CXX $switch"
6361            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h.  */
6363
6364
6365 // If the compiler admits that it is not ready for C++11, why torture it?
6366 // Hopefully, this will speed up the test.
6367
6368 #ifndef __cplusplus
6369
6370 #error "This is not a C++ compiler"
6371
6372 #elif __cplusplus < 201103L
6373
6374 #error "This is not a C++11 compiler"
6375
6376 #else
6377
6378 namespace cxx11
6379 {
6380
6381   namespace test_static_assert
6382   {
6383
6384     template <typename T>
6385     struct check
6386     {
6387       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6388     };
6389
6390   }
6391
6392   namespace test_final_override
6393   {
6394
6395     struct Base
6396     {
6397       virtual ~Base() {}
6398       virtual void f() {}
6399     };
6400
6401     struct Derived : public Base
6402     {
6403       virtual ~Derived() override {}
6404       virtual void f() override {}
6405     };
6406
6407   }
6408
6409   namespace test_double_right_angle_brackets
6410   {
6411
6412     template < typename T >
6413     struct check {};
6414
6415     typedef check<void> single_type;
6416     typedef check<check<void>> double_type;
6417     typedef check<check<check<void>>> triple_type;
6418     typedef check<check<check<check<void>>>> quadruple_type;
6419
6420   }
6421
6422   namespace test_decltype
6423   {
6424
6425     int
6426     f()
6427     {
6428       int a = 1;
6429       decltype(a) b = 2;
6430       return a + b;
6431     }
6432
6433   }
6434
6435   namespace test_type_deduction
6436   {
6437
6438     template < typename T1, typename T2 >
6439     struct is_same
6440     {
6441       static const bool value = false;
6442     };
6443
6444     template < typename T >
6445     struct is_same<T, T>
6446     {
6447       static const bool value = true;
6448     };
6449
6450     template < typename T1, typename T2 >
6451     auto
6452     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6453     {
6454       return a1 + a2;
6455     }
6456
6457     int
6458     test(const int c, volatile int v)
6459     {
6460       static_assert(is_same<int, decltype(0)>::value == true, "");
6461       static_assert(is_same<int, decltype(c)>::value == false, "");
6462       static_assert(is_same<int, decltype(v)>::value == false, "");
6463       auto ac = c;
6464       auto av = v;
6465       auto sumi = ac + av + 'x';
6466       auto sumf = ac + av + 1.0;
6467       static_assert(is_same<int, decltype(ac)>::value == true, "");
6468       static_assert(is_same<int, decltype(av)>::value == true, "");
6469       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6470       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6471       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6472       return (sumf > 0.0) ? sumi : add(c, v);
6473     }
6474
6475   }
6476
6477   namespace test_noexcept
6478   {
6479
6480     int f() { return 0; }
6481     int g() noexcept { return 0; }
6482
6483     static_assert(noexcept(f()) == false, "");
6484     static_assert(noexcept(g()) == true, "");
6485
6486   }
6487
6488   namespace test_constexpr
6489   {
6490
6491     template < typename CharT >
6492     unsigned long constexpr
6493     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6494     {
6495       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6496     }
6497
6498     template < typename CharT >
6499     unsigned long constexpr
6500     strlen_c(const CharT *const s) noexcept
6501     {
6502       return strlen_c_r(s, 0UL);
6503     }
6504
6505     static_assert(strlen_c("") == 0UL, "");
6506     static_assert(strlen_c("1") == 1UL, "");
6507     static_assert(strlen_c("example") == 7UL, "");
6508     static_assert(strlen_c("another\0example") == 7UL, "");
6509
6510   }
6511
6512   namespace test_rvalue_references
6513   {
6514
6515     template < int N >
6516     struct answer
6517     {
6518       static constexpr int value = N;
6519     };
6520
6521     answer<1> f(int&)       { return answer<1>(); }
6522     answer<2> f(const int&) { return answer<2>(); }
6523     answer<3> f(int&&)      { return answer<3>(); }
6524
6525     void
6526     test()
6527     {
6528       int i = 0;
6529       const int c = 0;
6530       static_assert(decltype(f(i))::value == 1, "");
6531       static_assert(decltype(f(c))::value == 2, "");
6532       static_assert(decltype(f(0))::value == 3, "");
6533     }
6534
6535   }
6536
6537   namespace test_uniform_initialization
6538   {
6539
6540     struct test
6541     {
6542       static const int zero {};
6543       static const int one {1};
6544     };
6545
6546     static_assert(test::zero == 0, "");
6547     static_assert(test::one == 1, "");
6548
6549   }
6550
6551   namespace test_lambdas
6552   {
6553
6554     void
6555     test1()
6556     {
6557       auto lambda1 = [](){};
6558       auto lambda2 = lambda1;
6559       lambda1();
6560       lambda2();
6561     }
6562
6563     int
6564     test2()
6565     {
6566       auto a = [](int i, int j){ return i + j; }(1, 2);
6567       auto b = []() -> int { return '0'; }();
6568       auto c = [=](){ return a + b; }();
6569       auto d = [&](){ return c; }();
6570       auto e = [a, &b](int x) mutable {
6571         const auto identity = [](int y){ return y; };
6572         for (auto i = 0; i < a; ++i)
6573           a += b--;
6574         return x + identity(a + b);
6575       }(0);
6576       return a + b + c + d + e;
6577     }
6578
6579     int
6580     test3()
6581     {
6582       const auto nullary = [](){ return 0; };
6583       const auto unary = [](int x){ return x; };
6584       using nullary_t = decltype(nullary);
6585       using unary_t = decltype(unary);
6586       const auto higher1st = [](nullary_t f){ return f(); };
6587       const auto higher2nd = [unary](nullary_t f1){
6588         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6589       };
6590       return higher1st(nullary) + higher2nd(nullary)(unary);
6591     }
6592
6593   }
6594
6595   namespace test_variadic_templates
6596   {
6597
6598     template <int...>
6599     struct sum;
6600
6601     template <int N0, int... N1toN>
6602     struct sum<N0, N1toN...>
6603     {
6604       static constexpr auto value = N0 + sum<N1toN...>::value;
6605     };
6606
6607     template <>
6608     struct sum<>
6609     {
6610       static constexpr auto value = 0;
6611     };
6612
6613     static_assert(sum<>::value == 0, "");
6614     static_assert(sum<1>::value == 1, "");
6615     static_assert(sum<23>::value == 23, "");
6616     static_assert(sum<1, 2>::value == 3, "");
6617     static_assert(sum<5, 5, 11>::value == 21, "");
6618     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6619
6620   }
6621
6622   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6623   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6624   // because of this.
6625   namespace test_template_alias_sfinae
6626   {
6627
6628     struct foo {};
6629
6630     template<typename T>
6631     using member = typename T::member_type;
6632
6633     template<typename T>
6634     void func(...) {}
6635
6636     template<typename T>
6637     void func(member<T>*) {}
6638
6639     void test();
6640
6641     void test() { func<foo>(0); }
6642
6643   }
6644
6645 }  // namespace cxx11
6646
6647 #endif  // __cplusplus >= 201103L
6648
6649
6650
6651 _ACEOF
6652 if ac_fn_cxx_try_compile "$LINENO"; then :
6653   eval $cachevar=yes
6654 else
6655   eval $cachevar=no
6656 fi
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658            CXX="$ac_save_CXX"
6659 fi
6660 eval ac_res=\$$cachevar
6661                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6662 $as_echo "$ac_res" >&6; }
6663         if eval test x\$$cachevar = xyes; then
6664           CXX="$CXX $switch"
6665           if test -n "$CXXCPP" ; then
6666             CXXCPP="$CXXCPP $switch"
6667           fi
6668           ac_success=yes
6669           break
6670         fi
6671       done
6672       if test x$ac_success = xyes; then
6673         break
6674       fi
6675     done
6676   fi
6677
6678   ac_ext=c
6679 ac_cpp='$CPP $CPPFLAGS'
6680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6683
6684   if test x$ax_cxx_compile_cxx11_required = xtrue; then
6685     if test x$ac_success = xno; then
6686       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6687     fi
6688   fi
6689   if test x$ac_success = xno; then
6690     HAVE_CXX11=0
6691     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6692 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6693   else
6694     HAVE_CXX11=1
6695
6696 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6697
6698   fi
6699
6700
6701
6702   if test "${build}" != "${host}"; then
6703       ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
6704   ac_ext=cpp
6705 ac_cpp='$CXXCPP $CPPFLAGS'
6706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6709   ac_success=no
6710       ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6711     ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6712     ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6713     CXX="$CXX_FOR_BUILD"
6714     CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6715     CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6716       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6717 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6718 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6719   $as_echo_n "(cached) " >&6
6720 else
6721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h.  */
6723
6724
6725 // If the compiler admits that it is not ready for C++11, why torture it?
6726 // Hopefully, this will speed up the test.
6727
6728 #ifndef __cplusplus
6729
6730 #error "This is not a C++ compiler"
6731
6732 #elif __cplusplus < 201103L
6733
6734 #error "This is not a C++11 compiler"
6735
6736 #else
6737
6738 namespace cxx11
6739 {
6740
6741   namespace test_static_assert
6742   {
6743
6744     template <typename T>
6745     struct check
6746     {
6747       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6748     };
6749
6750   }
6751
6752   namespace test_final_override
6753   {
6754
6755     struct Base
6756     {
6757       virtual ~Base() {}
6758       virtual void f() {}
6759     };
6760
6761     struct Derived : public Base
6762     {
6763       virtual ~Derived() override {}
6764       virtual void f() override {}
6765     };
6766
6767   }
6768
6769   namespace test_double_right_angle_brackets
6770   {
6771
6772     template < typename T >
6773     struct check {};
6774
6775     typedef check<void> single_type;
6776     typedef check<check<void>> double_type;
6777     typedef check<check<check<void>>> triple_type;
6778     typedef check<check<check<check<void>>>> quadruple_type;
6779
6780   }
6781
6782   namespace test_decltype
6783   {
6784
6785     int
6786     f()
6787     {
6788       int a = 1;
6789       decltype(a) b = 2;
6790       return a + b;
6791     }
6792
6793   }
6794
6795   namespace test_type_deduction
6796   {
6797
6798     template < typename T1, typename T2 >
6799     struct is_same
6800     {
6801       static const bool value = false;
6802     };
6803
6804     template < typename T >
6805     struct is_same<T, T>
6806     {
6807       static const bool value = true;
6808     };
6809
6810     template < typename T1, typename T2 >
6811     auto
6812     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6813     {
6814       return a1 + a2;
6815     }
6816
6817     int
6818     test(const int c, volatile int v)
6819     {
6820       static_assert(is_same<int, decltype(0)>::value == true, "");
6821       static_assert(is_same<int, decltype(c)>::value == false, "");
6822       static_assert(is_same<int, decltype(v)>::value == false, "");
6823       auto ac = c;
6824       auto av = v;
6825       auto sumi = ac + av + 'x';
6826       auto sumf = ac + av + 1.0;
6827       static_assert(is_same<int, decltype(ac)>::value == true, "");
6828       static_assert(is_same<int, decltype(av)>::value == true, "");
6829       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6830       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6831       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6832       return (sumf > 0.0) ? sumi : add(c, v);
6833     }
6834
6835   }
6836
6837   namespace test_noexcept
6838   {
6839
6840     int f() { return 0; }
6841     int g() noexcept { return 0; }
6842
6843     static_assert(noexcept(f()) == false, "");
6844     static_assert(noexcept(g()) == true, "");
6845
6846   }
6847
6848   namespace test_constexpr
6849   {
6850
6851     template < typename CharT >
6852     unsigned long constexpr
6853     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6854     {
6855       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6856     }
6857
6858     template < typename CharT >
6859     unsigned long constexpr
6860     strlen_c(const CharT *const s) noexcept
6861     {
6862       return strlen_c_r(s, 0UL);
6863     }
6864
6865     static_assert(strlen_c("") == 0UL, "");
6866     static_assert(strlen_c("1") == 1UL, "");
6867     static_assert(strlen_c("example") == 7UL, "");
6868     static_assert(strlen_c("another\0example") == 7UL, "");
6869
6870   }
6871
6872   namespace test_rvalue_references
6873   {
6874
6875     template < int N >
6876     struct answer
6877     {
6878       static constexpr int value = N;
6879     };
6880
6881     answer<1> f(int&)       { return answer<1>(); }
6882     answer<2> f(const int&) { return answer<2>(); }
6883     answer<3> f(int&&)      { return answer<3>(); }
6884
6885     void
6886     test()
6887     {
6888       int i = 0;
6889       const int c = 0;
6890       static_assert(decltype(f(i))::value == 1, "");
6891       static_assert(decltype(f(c))::value == 2, "");
6892       static_assert(decltype(f(0))::value == 3, "");
6893     }
6894
6895   }
6896
6897   namespace test_uniform_initialization
6898   {
6899
6900     struct test
6901     {
6902       static const int zero {};
6903       static const int one {1};
6904     };
6905
6906     static_assert(test::zero == 0, "");
6907     static_assert(test::one == 1, "");
6908
6909   }
6910
6911   namespace test_lambdas
6912   {
6913
6914     void
6915     test1()
6916     {
6917       auto lambda1 = [](){};
6918       auto lambda2 = lambda1;
6919       lambda1();
6920       lambda2();
6921     }
6922
6923     int
6924     test2()
6925     {
6926       auto a = [](int i, int j){ return i + j; }(1, 2);
6927       auto b = []() -> int { return '0'; }();
6928       auto c = [=](){ return a + b; }();
6929       auto d = [&](){ return c; }();
6930       auto e = [a, &b](int x) mutable {
6931         const auto identity = [](int y){ return y; };
6932         for (auto i = 0; i < a; ++i)
6933           a += b--;
6934         return x + identity(a + b);
6935       }(0);
6936       return a + b + c + d + e;
6937     }
6938
6939     int
6940     test3()
6941     {
6942       const auto nullary = [](){ return 0; };
6943       const auto unary = [](int x){ return x; };
6944       using nullary_t = decltype(nullary);
6945       using unary_t = decltype(unary);
6946       const auto higher1st = [](nullary_t f){ return f(); };
6947       const auto higher2nd = [unary](nullary_t f1){
6948         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6949       };
6950       return higher1st(nullary) + higher2nd(nullary)(unary);
6951     }
6952
6953   }
6954
6955   namespace test_variadic_templates
6956   {
6957
6958     template <int...>
6959     struct sum;
6960
6961     template <int N0, int... N1toN>
6962     struct sum<N0, N1toN...>
6963     {
6964       static constexpr auto value = N0 + sum<N1toN...>::value;
6965     };
6966
6967     template <>
6968     struct sum<>
6969     {
6970       static constexpr auto value = 0;
6971     };
6972
6973     static_assert(sum<>::value == 0, "");
6974     static_assert(sum<1>::value == 1, "");
6975     static_assert(sum<23>::value == 23, "");
6976     static_assert(sum<1, 2>::value == 3, "");
6977     static_assert(sum<5, 5, 11>::value == 21, "");
6978     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6979
6980   }
6981
6982   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6983   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6984   // because of this.
6985   namespace test_template_alias_sfinae
6986   {
6987
6988     struct foo {};
6989
6990     template<typename T>
6991     using member = typename T::member_type;
6992
6993     template<typename T>
6994     void func(...) {}
6995
6996     template<typename T>
6997     void func(member<T>*) {}
6998
6999     void test();
7000
7001     void test() { func<foo>(0); }
7002
7003   }
7004
7005 }  // namespace cxx11
7006
7007 #endif  // __cplusplus >= 201103L
7008
7009
7010
7011 _ACEOF
7012 if ac_fn_cxx_try_compile "$LINENO"; then :
7013   ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7014 else
7015   ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7016 fi
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 fi
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7020 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7021     if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7022       ac_success=yes
7023     fi
7024
7025     if test x$ac_success = xno; then
7026     for alternative in ${ax_cxx_compile_alternatives}; do
7027       switch="-std=gnu++${alternative}"
7028       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7029       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7030 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7031 if eval \${$cachevar+:} false; then :
7032   $as_echo_n "(cached) " >&6
7033 else
7034   ac_save_CXX="$CXX"
7035          CXX="$CXX $switch"
7036          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h.  */
7038
7039
7040 // If the compiler admits that it is not ready for C++11, why torture it?
7041 // Hopefully, this will speed up the test.
7042
7043 #ifndef __cplusplus
7044
7045 #error "This is not a C++ compiler"
7046
7047 #elif __cplusplus < 201103L
7048
7049 #error "This is not a C++11 compiler"
7050
7051 #else
7052
7053 namespace cxx11
7054 {
7055
7056   namespace test_static_assert
7057   {
7058
7059     template <typename T>
7060     struct check
7061     {
7062       static_assert(sizeof(int) <= sizeof(T), "not big enough");
7063     };
7064
7065   }
7066
7067   namespace test_final_override
7068   {
7069
7070     struct Base
7071     {
7072       virtual ~Base() {}
7073       virtual void f() {}
7074     };
7075
7076     struct Derived : public Base
7077     {
7078       virtual ~Derived() override {}
7079       virtual void f() override {}
7080     };
7081
7082   }
7083
7084   namespace test_double_right_angle_brackets
7085   {
7086
7087     template < typename T >
7088     struct check {};
7089
7090     typedef check<void> single_type;
7091     typedef check<check<void>> double_type;
7092     typedef check<check<check<void>>> triple_type;
7093     typedef check<check<check<check<void>>>> quadruple_type;
7094
7095   }
7096
7097   namespace test_decltype
7098   {
7099
7100     int
7101     f()
7102     {
7103       int a = 1;
7104       decltype(a) b = 2;
7105       return a + b;
7106     }
7107
7108   }
7109
7110   namespace test_type_deduction
7111   {
7112
7113     template < typename T1, typename T2 >
7114     struct is_same
7115     {
7116       static const bool value = false;
7117     };
7118
7119     template < typename T >
7120     struct is_same<T, T>
7121     {
7122       static const bool value = true;
7123     };
7124
7125     template < typename T1, typename T2 >
7126     auto
7127     add(T1 a1, T2 a2) -> decltype(a1 + a2)
7128     {
7129       return a1 + a2;
7130     }
7131
7132     int
7133     test(const int c, volatile int v)
7134     {
7135       static_assert(is_same<int, decltype(0)>::value == true, "");
7136       static_assert(is_same<int, decltype(c)>::value == false, "");
7137       static_assert(is_same<int, decltype(v)>::value == false, "");
7138       auto ac = c;
7139       auto av = v;
7140       auto sumi = ac + av + 'x';
7141       auto sumf = ac + av + 1.0;
7142       static_assert(is_same<int, decltype(ac)>::value == true, "");
7143       static_assert(is_same<int, decltype(av)>::value == true, "");
7144       static_assert(is_same<int, decltype(sumi)>::value == true, "");
7145       static_assert(is_same<int, decltype(sumf)>::value == false, "");
7146       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7147       return (sumf > 0.0) ? sumi : add(c, v);
7148     }
7149
7150   }
7151
7152   namespace test_noexcept
7153   {
7154
7155     int f() { return 0; }
7156     int g() noexcept { return 0; }
7157
7158     static_assert(noexcept(f()) == false, "");
7159     static_assert(noexcept(g()) == true, "");
7160
7161   }
7162
7163   namespace test_constexpr
7164   {
7165
7166     template < typename CharT >
7167     unsigned long constexpr
7168     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7169     {
7170       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7171     }
7172
7173     template < typename CharT >
7174     unsigned long constexpr
7175     strlen_c(const CharT *const s) noexcept
7176     {
7177       return strlen_c_r(s, 0UL);
7178     }
7179
7180     static_assert(strlen_c("") == 0UL, "");
7181     static_assert(strlen_c("1") == 1UL, "");
7182     static_assert(strlen_c("example") == 7UL, "");
7183     static_assert(strlen_c("another\0example") == 7UL, "");
7184
7185   }
7186
7187   namespace test_rvalue_references
7188   {
7189
7190     template < int N >
7191     struct answer
7192     {
7193       static constexpr int value = N;
7194     };
7195
7196     answer<1> f(int&)       { return answer<1>(); }
7197     answer<2> f(const int&) { return answer<2>(); }
7198     answer<3> f(int&&)      { return answer<3>(); }
7199
7200     void
7201     test()
7202     {
7203       int i = 0;
7204       const int c = 0;
7205       static_assert(decltype(f(i))::value == 1, "");
7206       static_assert(decltype(f(c))::value == 2, "");
7207       static_assert(decltype(f(0))::value == 3, "");
7208     }
7209
7210   }
7211
7212   namespace test_uniform_initialization
7213   {
7214
7215     struct test
7216     {
7217       static const int zero {};
7218       static const int one {1};
7219     };
7220
7221     static_assert(test::zero == 0, "");
7222     static_assert(test::one == 1, "");
7223
7224   }
7225
7226   namespace test_lambdas
7227   {
7228
7229     void
7230     test1()
7231     {
7232       auto lambda1 = [](){};
7233       auto lambda2 = lambda1;
7234       lambda1();
7235       lambda2();
7236     }
7237
7238     int
7239     test2()
7240     {
7241       auto a = [](int i, int j){ return i + j; }(1, 2);
7242       auto b = []() -> int { return '0'; }();
7243       auto c = [=](){ return a + b; }();
7244       auto d = [&](){ return c; }();
7245       auto e = [a, &b](int x) mutable {
7246         const auto identity = [](int y){ return y; };
7247         for (auto i = 0; i < a; ++i)
7248           a += b--;
7249         return x + identity(a + b);
7250       }(0);
7251       return a + b + c + d + e;
7252     }
7253
7254     int
7255     test3()
7256     {
7257       const auto nullary = [](){ return 0; };
7258       const auto unary = [](int x){ return x; };
7259       using nullary_t = decltype(nullary);
7260       using unary_t = decltype(unary);
7261       const auto higher1st = [](nullary_t f){ return f(); };
7262       const auto higher2nd = [unary](nullary_t f1){
7263         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7264       };
7265       return higher1st(nullary) + higher2nd(nullary)(unary);
7266     }
7267
7268   }
7269
7270   namespace test_variadic_templates
7271   {
7272
7273     template <int...>
7274     struct sum;
7275
7276     template <int N0, int... N1toN>
7277     struct sum<N0, N1toN...>
7278     {
7279       static constexpr auto value = N0 + sum<N1toN...>::value;
7280     };
7281
7282     template <>
7283     struct sum<>
7284     {
7285       static constexpr auto value = 0;
7286     };
7287
7288     static_assert(sum<>::value == 0, "");
7289     static_assert(sum<1>::value == 1, "");
7290     static_assert(sum<23>::value == 23, "");
7291     static_assert(sum<1, 2>::value == 3, "");
7292     static_assert(sum<5, 5, 11>::value == 21, "");
7293     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7294
7295   }
7296
7297   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7298   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7299   // because of this.
7300   namespace test_template_alias_sfinae
7301   {
7302
7303     struct foo {};
7304
7305     template<typename T>
7306     using member = typename T::member_type;
7307
7308     template<typename T>
7309     void func(...) {}
7310
7311     template<typename T>
7312     void func(member<T>*) {}
7313
7314     void test();
7315
7316     void test() { func<foo>(0); }
7317
7318   }
7319
7320 }  // namespace cxx11
7321
7322 #endif  // __cplusplus >= 201103L
7323
7324
7325
7326 _ACEOF
7327 if ac_fn_cxx_try_compile "$LINENO"; then :
7328   eval $cachevar=yes
7329 else
7330   eval $cachevar=no
7331 fi
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333          CXX="$ac_save_CXX"
7334 fi
7335 eval ac_res=\$$cachevar
7336                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7337 $as_echo "$ac_res" >&6; }
7338       if eval test x\$$cachevar = xyes; then
7339         CXX="$CXX $switch"
7340         if test -n "$CXXCPP" ; then
7341           CXXCPP="$CXXCPP $switch"
7342         fi
7343         ac_success=yes
7344         break
7345       fi
7346     done
7347   fi
7348
7349     if test x$ac_success = xno; then
7350                 for alternative in ${ax_cxx_compile_alternatives}; do
7351       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7352         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7353         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7354 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7355 if eval \${$cachevar+:} false; then :
7356   $as_echo_n "(cached) " >&6
7357 else
7358   ac_save_CXX="$CXX"
7359            CXX="$CXX $switch"
7360            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h.  */
7362
7363
7364 // If the compiler admits that it is not ready for C++11, why torture it?
7365 // Hopefully, this will speed up the test.
7366
7367 #ifndef __cplusplus
7368
7369 #error "This is not a C++ compiler"
7370
7371 #elif __cplusplus < 201103L
7372
7373 #error "This is not a C++11 compiler"
7374
7375 #else
7376
7377 namespace cxx11
7378 {
7379
7380   namespace test_static_assert
7381   {
7382
7383     template <typename T>
7384     struct check
7385     {
7386       static_assert(sizeof(int) <= sizeof(T), "not big enough");
7387     };
7388
7389   }
7390
7391   namespace test_final_override
7392   {
7393
7394     struct Base
7395     {
7396       virtual ~Base() {}
7397       virtual void f() {}
7398     };
7399
7400     struct Derived : public Base
7401     {
7402       virtual ~Derived() override {}
7403       virtual void f() override {}
7404     };
7405
7406   }
7407
7408   namespace test_double_right_angle_brackets
7409   {
7410
7411     template < typename T >
7412     struct check {};
7413
7414     typedef check<void> single_type;
7415     typedef check<check<void>> double_type;
7416     typedef check<check<check<void>>> triple_type;
7417     typedef check<check<check<check<void>>>> quadruple_type;
7418
7419   }
7420
7421   namespace test_decltype
7422   {
7423
7424     int
7425     f()
7426     {
7427       int a = 1;
7428       decltype(a) b = 2;
7429       return a + b;
7430     }
7431
7432   }
7433
7434   namespace test_type_deduction
7435   {
7436
7437     template < typename T1, typename T2 >
7438     struct is_same
7439     {
7440       static const bool value = false;
7441     };
7442
7443     template < typename T >
7444     struct is_same<T, T>
7445     {
7446       static const bool value = true;
7447     };
7448
7449     template < typename T1, typename T2 >
7450     auto
7451     add(T1 a1, T2 a2) -> decltype(a1 + a2)
7452     {
7453       return a1 + a2;
7454     }
7455
7456     int
7457     test(const int c, volatile int v)
7458     {
7459       static_assert(is_same<int, decltype(0)>::value == true, "");
7460       static_assert(is_same<int, decltype(c)>::value == false, "");
7461       static_assert(is_same<int, decltype(v)>::value == false, "");
7462       auto ac = c;
7463       auto av = v;
7464       auto sumi = ac + av + 'x';
7465       auto sumf = ac + av + 1.0;
7466       static_assert(is_same<int, decltype(ac)>::value == true, "");
7467       static_assert(is_same<int, decltype(av)>::value == true, "");
7468       static_assert(is_same<int, decltype(sumi)>::value == true, "");
7469       static_assert(is_same<int, decltype(sumf)>::value == false, "");
7470       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7471       return (sumf > 0.0) ? sumi : add(c, v);
7472     }
7473
7474   }
7475
7476   namespace test_noexcept
7477   {
7478
7479     int f() { return 0; }
7480     int g() noexcept { return 0; }
7481
7482     static_assert(noexcept(f()) == false, "");
7483     static_assert(noexcept(g()) == true, "");
7484
7485   }
7486
7487   namespace test_constexpr
7488   {
7489
7490     template < typename CharT >
7491     unsigned long constexpr
7492     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7493     {
7494       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7495     }
7496
7497     template < typename CharT >
7498     unsigned long constexpr
7499     strlen_c(const CharT *const s) noexcept
7500     {
7501       return strlen_c_r(s, 0UL);
7502     }
7503
7504     static_assert(strlen_c("") == 0UL, "");
7505     static_assert(strlen_c("1") == 1UL, "");
7506     static_assert(strlen_c("example") == 7UL, "");
7507     static_assert(strlen_c("another\0example") == 7UL, "");
7508
7509   }
7510
7511   namespace test_rvalue_references
7512   {
7513
7514     template < int N >
7515     struct answer
7516     {
7517       static constexpr int value = N;
7518     };
7519
7520     answer<1> f(int&)       { return answer<1>(); }
7521     answer<2> f(const int&) { return answer<2>(); }
7522     answer<3> f(int&&)      { return answer<3>(); }
7523
7524     void
7525     test()
7526     {
7527       int i = 0;
7528       const int c = 0;
7529       static_assert(decltype(f(i))::value == 1, "");
7530       static_assert(decltype(f(c))::value == 2, "");
7531       static_assert(decltype(f(0))::value == 3, "");
7532     }
7533
7534   }
7535
7536   namespace test_uniform_initialization
7537   {
7538
7539     struct test
7540     {
7541       static const int zero {};
7542       static const int one {1};
7543     };
7544
7545     static_assert(test::zero == 0, "");
7546     static_assert(test::one == 1, "");
7547
7548   }
7549
7550   namespace test_lambdas
7551   {
7552
7553     void
7554     test1()
7555     {
7556       auto lambda1 = [](){};
7557       auto lambda2 = lambda1;
7558       lambda1();
7559       lambda2();
7560     }
7561
7562     int
7563     test2()
7564     {
7565       auto a = [](int i, int j){ return i + j; }(1, 2);
7566       auto b = []() -> int { return '0'; }();
7567       auto c = [=](){ return a + b; }();
7568       auto d = [&](){ return c; }();
7569       auto e = [a, &b](int x) mutable {
7570         const auto identity = [](int y){ return y; };
7571         for (auto i = 0; i < a; ++i)
7572           a += b--;
7573         return x + identity(a + b);
7574       }(0);
7575       return a + b + c + d + e;
7576     }
7577
7578     int
7579     test3()
7580     {
7581       const auto nullary = [](){ return 0; };
7582       const auto unary = [](int x){ return x; };
7583       using nullary_t = decltype(nullary);
7584       using unary_t = decltype(unary);
7585       const auto higher1st = [](nullary_t f){ return f(); };
7586       const auto higher2nd = [unary](nullary_t f1){
7587         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7588       };
7589       return higher1st(nullary) + higher2nd(nullary)(unary);
7590     }
7591
7592   }
7593
7594   namespace test_variadic_templates
7595   {
7596
7597     template <int...>
7598     struct sum;
7599
7600     template <int N0, int... N1toN>
7601     struct sum<N0, N1toN...>
7602     {
7603       static constexpr auto value = N0 + sum<N1toN...>::value;
7604     };
7605
7606     template <>
7607     struct sum<>
7608     {
7609       static constexpr auto value = 0;
7610     };
7611
7612     static_assert(sum<>::value == 0, "");
7613     static_assert(sum<1>::value == 1, "");
7614     static_assert(sum<23>::value == 23, "");
7615     static_assert(sum<1, 2>::value == 3, "");
7616     static_assert(sum<5, 5, 11>::value == 21, "");
7617     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7618
7619   }
7620
7621   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7622   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7623   // because of this.
7624   namespace test_template_alias_sfinae
7625   {
7626
7627     struct foo {};
7628
7629     template<typename T>
7630     using member = typename T::member_type;
7631
7632     template<typename T>
7633     void func(...) {}
7634
7635     template<typename T>
7636     void func(member<T>*) {}
7637
7638     void test();
7639
7640     void test() { func<foo>(0); }
7641
7642   }
7643
7644 }  // namespace cxx11
7645
7646 #endif  // __cplusplus >= 201103L
7647
7648
7649
7650 _ACEOF
7651 if ac_fn_cxx_try_compile "$LINENO"; then :
7652   eval $cachevar=yes
7653 else
7654   eval $cachevar=no
7655 fi
7656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657            CXX="$ac_save_CXX"
7658 fi
7659 eval ac_res=\$$cachevar
7660                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7661 $as_echo "$ac_res" >&6; }
7662         if eval test x\$$cachevar = xyes; then
7663           CXX="$CXX $switch"
7664           if test -n "$CXXCPP" ; then
7665             CXXCPP="$CXXCPP $switch"
7666           fi
7667           ac_success=yes
7668           break
7669         fi
7670       done
7671       if test x$ac_success = xyes; then
7672         break
7673       fi
7674     done
7675   fi
7676       CXX_FOR_BUILD="$CXX"
7677     CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7678     CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7679     CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7680     CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7681     CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7682   ac_ext=c
7683 ac_cpp='$CPP $CPPFLAGS'
7684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7687
7688   if test x$ax_cxx_compile_cxx11_required = xtrue; then
7689     if test x$ac_success = xno; then
7690       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7691     fi
7692   fi
7693   if test x$ac_success = xno; then
7694     HAVE_CXX11_FOR_BUILD=0
7695     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7696 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7697   else
7698     HAVE_CXX11_FOR_BUILD=1
7699
7700 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7701
7702   fi
7703
7704
7705   fi
7706 fi
7707
7708 # Used for setting $lt_cv_objdir
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7710 $as_echo_n "checking for objdir... " >&6; }
7711 if ${lt_cv_objdir+:} false; then :
7712   $as_echo_n "(cached) " >&6
7713 else
7714   rm -f .libs 2>/dev/null
7715 mkdir .libs 2>/dev/null
7716 if test -d .libs; then
7717   lt_cv_objdir=.libs
7718 else
7719   # MS-DOS does not allow filenames that begin with a dot.
7720   lt_cv_objdir=_libs
7721 fi
7722 rmdir .libs 2>/dev/null
7723 fi
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7725 $as_echo "$lt_cv_objdir" >&6; }
7726 objdir=$lt_cv_objdir
7727
7728
7729
7730
7731
7732 cat >>confdefs.h <<_ACEOF
7733 #define LT_OBJDIR "$lt_cv_objdir/"
7734 _ACEOF
7735
7736
7737
7738 # Check for GMP, MPFR and MPC
7739 gmplibs="-lmpc -lmpfr -lgmp"
7740 gmpinc=
7741 have_gmp=no
7742
7743 # Specify a location for mpc
7744 # check for this first so it ends up on the link line before mpfr.
7745
7746 # Check whether --with-mpc was given.
7747 if test "${with_mpc+set}" = set; then :
7748   withval=$with_mpc;
7749 fi
7750
7751
7752 # Check whether --with-mpc-include was given.
7753 if test "${with_mpc_include+set}" = set; then :
7754   withval=$with_mpc_include;
7755 fi
7756
7757
7758 # Check whether --with-mpc-lib was given.
7759 if test "${with_mpc_lib+set}" = set; then :
7760   withval=$with_mpc_lib;
7761 fi
7762
7763
7764 if test "x$with_mpc" != x; then
7765   gmplibs="-L$with_mpc/lib $gmplibs"
7766   gmpinc="-I$with_mpc/include $gmpinc"
7767 fi
7768 if test "x$with_mpc_include" != x; then
7769   gmpinc="-I$with_mpc_include $gmpinc"
7770 fi
7771 if test "x$with_mpc_lib" != x; then
7772   gmplibs="-L$with_mpc_lib $gmplibs"
7773 fi
7774 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7775   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7776   gmpinc='-I$$s/mpc/src '"$gmpinc"
7777   # Do not test the mpc version.  Assume that it is sufficient, since
7778   # it is in the source tree, and the library has not been built yet
7779   # but it would be included on the link line in the version check below
7780   # hence making the test fail.
7781   have_gmp=yes
7782 fi
7783
7784 # Specify a location for mpfr
7785 # check for this first so it ends up on the link line before gmp.
7786
7787 # Check whether --with-mpfr-dir was given.
7788 if test "${with_mpfr_dir+set}" = set; then :
7789   withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
7790 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7791 fi
7792
7793
7794
7795 # Check whether --with-mpfr was given.
7796 if test "${with_mpfr+set}" = set; then :
7797   withval=$with_mpfr;
7798 fi
7799
7800
7801 # Check whether --with-mpfr-include was given.
7802 if test "${with_mpfr_include+set}" = set; then :
7803   withval=$with_mpfr_include;
7804 fi
7805
7806
7807 # Check whether --with-mpfr-lib was given.
7808 if test "${with_mpfr_lib+set}" = set; then :
7809   withval=$with_mpfr_lib;
7810 fi
7811
7812
7813 if test "x$with_mpfr" != x; then
7814   gmplibs="-L$with_mpfr/lib $gmplibs"
7815   gmpinc="-I$with_mpfr/include $gmpinc"
7816 fi
7817 if test "x$with_mpfr_include" != x; then
7818   gmpinc="-I$with_mpfr_include $gmpinc"
7819 fi
7820 if test "x$with_mpfr_lib" != x; then
7821   gmplibs="-L$with_mpfr_lib $gmplibs"
7822 fi
7823 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7824   # MPFR v3.1.0 moved the sources into a src sub-directory.
7825   if ! test -d ${srcdir}/mpfr/src; then
7826     as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7827   fi
7828   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7829   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7830   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7831   # Do not test the mpfr version.  Assume that it is sufficient, since
7832   # it is in the source tree, and the library has not been built yet
7833   # but it would be included on the link line in the version check below
7834   # hence making the test fail.
7835   have_gmp=yes
7836 fi
7837
7838 # Specify a location for gmp
7839
7840 # Check whether --with-gmp-dir was given.
7841 if test "${with_gmp_dir+set}" = set; then :
7842   withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
7843 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7844 fi
7845
7846
7847
7848 # Check whether --with-gmp was given.
7849 if test "${with_gmp+set}" = set; then :
7850   withval=$with_gmp;
7851 fi
7852
7853
7854 # Check whether --with-gmp-include was given.
7855 if test "${with_gmp_include+set}" = set; then :
7856   withval=$with_gmp_include;
7857 fi
7858
7859
7860 # Check whether --with-gmp-lib was given.
7861 if test "${with_gmp_lib+set}" = set; then :
7862   withval=$with_gmp_lib;
7863 fi
7864
7865
7866
7867 if test "x$with_gmp" != x; then
7868   gmplibs="-L$with_gmp/lib $gmplibs"
7869   gmpinc="-I$with_gmp/include $gmpinc"
7870 fi
7871 if test "x$with_gmp_include" != x; then
7872   gmpinc="-I$with_gmp_include $gmpinc"
7873 fi
7874 if test "x$with_gmp_lib" != x; then
7875   gmplibs="-L$with_gmp_lib $gmplibs"
7876 fi
7877 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
7878   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
7879   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
7880   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7881   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7882   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
7883   # Do not test the gmp version.  Assume that it is sufficient, since
7884   # it is in the source tree, and the library has not been built yet
7885   # but it would be included on the link line in the version check below
7886   # hence making the test fail.
7887   have_gmp=yes
7888 fi
7889
7890 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
7891   have_gmp=yes
7892   saved_CFLAGS="$CFLAGS"
7893   CFLAGS="$CFLAGS $gmpinc"
7894   # Check for the recommended and required versions of GMP.
7895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
7896 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
7897
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h.  */
7900 #include "gmp.h"
7901 int
7902 main ()
7903 {
7904
7905   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7906   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7907   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
7908   choke me
7909   #endif
7910
7911   ;
7912   return 0;
7913 }
7914 _ACEOF
7915 if ac_fn_c_try_compile "$LINENO"; then :
7916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h.  */
7918 #include <gmp.h>
7919 int
7920 main ()
7921 {
7922
7923   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7924   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7925   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
7926   choke me
7927   #endif
7928
7929   ;
7930   return 0;
7931 }
7932 _ACEOF
7933 if ac_fn_c_try_compile "$LINENO"; then :
7934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7935 $as_echo "yes" >&6; }
7936 else
7937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7938 $as_echo "buggy but acceptable" >&6; }
7939 fi
7940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941 else
7942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 $as_echo "no" >&6; }; have_gmp=no
7944 fi
7945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7946
7947   # If we have GMP, check the MPFR version.
7948   if test x"$have_gmp" = xyes; then
7949     # Check for the recommended and required versions of MPFR.
7950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
7951 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
7952     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h.  */
7954 #include <gmp.h>
7955     #include <mpfr.h>
7956 int
7957 main ()
7958 {
7959
7960     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
7961     choke me
7962     #endif
7963
7964   ;
7965   return 0;
7966 }
7967 _ACEOF
7968 if ac_fn_c_try_compile "$LINENO"; then :
7969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h.  */
7971 #include <gmp.h>
7972     #include <mpfr.h>
7973 int
7974 main ()
7975 {
7976
7977     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
7978     choke me
7979     #endif
7980
7981   ;
7982   return 0;
7983 }
7984 _ACEOF
7985 if ac_fn_c_try_compile "$LINENO"; then :
7986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7987 $as_echo "yes" >&6; }
7988 else
7989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7990 $as_echo "buggy but acceptable" >&6; }
7991 fi
7992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7993 else
7994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }; have_gmp=no
7996 fi
7997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7998   fi
7999
8000   # Check for the MPC header version.
8001   if test x"$have_gmp" = xyes ; then
8002     # Check for the recommended and required versions of MPC.
8003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8004 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8005     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h.  */
8007 #include <mpc.h>
8008 int
8009 main ()
8010 {
8011
8012     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8013     choke me
8014     #endif
8015
8016   ;
8017   return 0;
8018 }
8019 _ACEOF
8020 if ac_fn_c_try_compile "$LINENO"; then :
8021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h.  */
8023 #include <mpc.h>
8024 int
8025 main ()
8026 {
8027
8028     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8029     choke me
8030     #endif
8031
8032   ;
8033   return 0;
8034 }
8035 _ACEOF
8036 if ac_fn_c_try_compile "$LINENO"; then :
8037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8038 $as_echo "yes" >&6; }
8039 else
8040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8041 $as_echo "buggy but acceptable" >&6; }
8042 fi
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 else
8045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }; have_gmp=no
8047 fi
8048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8049   fi
8050
8051   # Now check the MPFR library.
8052   if test x"$have_gmp" = xyes; then
8053     saved_LIBS="$LIBS"
8054     LIBS="$LIBS $gmplibs"
8055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8056 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8057     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h.  */
8059 #include <mpc.h>
8060 int
8061 main ()
8062 {
8063
8064     mpfr_t n;
8065     mpfr_t x;
8066     mpc_t c;
8067     int t;
8068     mpfr_init (n);
8069     mpfr_init (x);
8070     mpfr_atan2 (n, n, x, MPFR_RNDN);
8071     mpfr_erfc (n, x, MPFR_RNDN);
8072     mpfr_subnormalize (x, t, MPFR_RNDN);
8073     mpfr_clear(n);
8074     mpfr_clear(x);
8075     mpc_init2 (c, 53);
8076     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8077     mpc_cosh (c, c, MPC_RNDNN);
8078     mpc_pow (c, c, c, MPC_RNDNN);
8079     mpc_acosh (c, c, MPC_RNDNN);
8080     mpc_clear (c);
8081
8082   ;
8083   return 0;
8084 }
8085 _ACEOF
8086 if ac_fn_c_try_link "$LINENO"; then :
8087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8088 $as_echo "yes" >&6; }
8089 else
8090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091 $as_echo "no" >&6; }; have_gmp=no
8092 fi
8093 rm -f core conftest.err conftest.$ac_objext \
8094     conftest$ac_exeext conftest.$ac_ext
8095     LIBS="$saved_LIBS"
8096   fi
8097
8098   CFLAGS="$saved_CFLAGS"
8099
8100 # The library versions listed in the error message below should match
8101 # the HARD-minimums enforced above.
8102   if test x$have_gmp != xyes; then
8103     as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8104 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8105 their locations.  Source code for these libraries can be found at
8106 their respective hosting sites as well as at
8107 https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
8108 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
8109 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8110 make sure that you have installed both the libraries and the header
8111 files.  They may be located in separate packages." "$LINENO" 5
8112   fi
8113 fi
8114
8115 # Flags needed for both GMP, MPFR and/or MPC.
8116
8117
8118
8119
8120
8121
8122
8123 # Libraries to use for stage1 or when not bootstrapping.
8124
8125 # Check whether --with-stage1-libs was given.
8126 if test "${with_stage1_libs+set}" = set; then :
8127   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8128    stage1_libs=
8129  else
8130    stage1_libs=$withval
8131  fi
8132 else
8133   stage1_libs=
8134 fi
8135
8136
8137
8138 # Whether or not to use -static-libstdc++ and -static-libgcc.  The
8139 # default is yes if gcc is being built; no otherwise.  The reason for
8140 # this default is that gdb is sometimes linked against GNU Source
8141 # Highlight, which is a shared library that uses C++ exceptions.  In
8142 # this case, -static-libstdc++ will cause crashes.
8143
8144 # Check whether --with-static-standard-libraries was given.
8145 if test "${with_static_standard_libraries+set}" = set; then :
8146   withval=$with_static_standard_libraries;
8147 else
8148   with_static_standard_libraries=auto
8149 fi
8150
8151 if test "$with_static_standard_libraries" = auto; then
8152   with_static_standard_libraries=$have_compiler
8153 fi
8154
8155 # Linker flags to use for stage1 or when not bootstrapping.
8156
8157 # Check whether --with-stage1-ldflags was given.
8158 if test "${with_stage1_ldflags+set}" = set; then :
8159   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8160    stage1_ldflags=
8161  else
8162    stage1_ldflags=$withval
8163  fi
8164 else
8165   stage1_ldflags=
8166  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8167  # if supported.  But if the user explicitly specified the libraries to use,
8168  # trust that they are doing what they want.
8169  if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8170      -a "$have_static_libs" = yes; then
8171    stage1_ldflags="-static-libstdc++ -static-libgcc"
8172  fi
8173 fi
8174
8175
8176
8177 # Libraries to use for stage2 and later builds.
8178
8179 # Check whether --with-boot-libs was given.
8180 if test "${with_boot_libs+set}" = set; then :
8181   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8182    poststage1_libs=
8183  else
8184    poststage1_libs=$withval
8185  fi
8186 else
8187   poststage1_libs=
8188 fi
8189
8190
8191
8192 # Linker flags to use for stage2 and later builds.
8193
8194 # Check whether --with-boot-ldflags was given.
8195 if test "${with_boot_ldflags+set}" = set; then :
8196   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8197    poststage1_ldflags=
8198  else
8199    poststage1_ldflags=$withval
8200  fi
8201 else
8202   poststage1_ldflags=
8203  # In stages 2 and 3, default to linking libstdc++ and libgcc
8204  # statically.  But if the user explicitly specified the libraries to
8205  # use, trust that they are doing what they want.
8206  if test "$poststage1_libs" = ""; then
8207    poststage1_ldflags="-static-libstdc++ -static-libgcc"
8208  fi
8209 fi
8210
8211
8212
8213 # GCC GRAPHITE dependency isl.
8214 # Basic setup is inlined here, actual checks are in config/isl.m4
8215
8216
8217 # Check whether --with-isl was given.
8218 if test "${with_isl+set}" = set; then :
8219   withval=$with_isl;
8220 fi
8221
8222
8223 # Treat --without-isl as a request to disable
8224 # GRAPHITE support and skip all following checks.
8225 if test "x$with_isl" != "xno"; then
8226   # Check for isl
8227
8228
8229 # Check whether --with-isl-include was given.
8230 if test "${with_isl_include+set}" = set; then :
8231   withval=$with_isl_include;
8232 fi
8233
8234
8235 # Check whether --with-isl-lib was given.
8236 if test "${with_isl_lib+set}" = set; then :
8237   withval=$with_isl_lib;
8238 fi
8239
8240
8241   # Check whether --enable-isl-version-check was given.
8242 if test "${enable_isl_version_check+set}" = set; then :
8243   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8244 else
8245   ENABLE_ISL_CHECK=yes
8246 fi
8247
8248
8249   # Initialize isllibs and islinc.
8250   case $with_isl in
8251     no)
8252       isllibs=
8253       islinc=
8254       ;;
8255     "" | yes)
8256       ;;
8257     *)
8258       isllibs="-L$with_isl/lib"
8259       islinc="-I$with_isl/include"
8260       ;;
8261   esac
8262   if test "x${with_isl_include}" != x ; then
8263     islinc="-I$with_isl_include"
8264   fi
8265   if test "x${with_isl_lib}" != x; then
8266     isllibs="-L$with_isl_lib"
8267   fi
8268         if test "x${islinc}" = x && test "x${isllibs}" = x \
8269      && test -d ${srcdir}/isl; then
8270     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8271     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8272     ENABLE_ISL_CHECK=no
8273     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8274 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8275   fi
8276
8277   isllibs="${isllibs} -lisl"
8278
8279
8280
8281   if test "${ENABLE_ISL_CHECK}" = yes ; then
8282     _isl_saved_CFLAGS=$CFLAGS
8283     _isl_saved_LDFLAGS=$LDFLAGS
8284     _isl_saved_LIBS=$LIBS
8285
8286     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8287     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8288     LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8289
8290     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8291 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8292     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h.  */
8294 #include <isl/schedule.h>
8295 int
8296 main ()
8297 {
8298 isl_options_set_schedule_serialize_sccs (NULL, 0);
8299   ;
8300   return 0;
8301 }
8302 _ACEOF
8303 if ac_fn_c_try_link "$LINENO"; then :
8304   gcc_cv_isl=yes
8305 else
8306   gcc_cv_isl=no
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext \
8309     conftest$ac_exeext conftest.$ac_ext
8310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8311 $as_echo "$gcc_cv_isl" >&6; }
8312
8313     if test "${gcc_cv_isl}" = no ; then
8314       { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8315 $as_echo "required isl version is 0.15 or later" >&6; }
8316     fi
8317
8318     CFLAGS=$_isl_saved_CFLAGS
8319     LDFLAGS=$_isl_saved_LDFLAGS
8320     LIBS=$_isl_saved_LIBS
8321   fi
8322
8323
8324
8325
8326
8327
8328   if test "x${with_isl}" = xno; then
8329     graphite_requested=no
8330   elif test "x${with_isl}" != x \
8331     || test "x${with_isl_include}" != x \
8332     || test "x${with_isl_lib}" != x ; then
8333     graphite_requested=yes
8334   else
8335     graphite_requested=no
8336   fi
8337
8338
8339
8340   if test "${gcc_cv_isl}" = no ; then
8341     isllibs=
8342     islinc=
8343   fi
8344
8345   if test "${graphite_requested}" = yes \
8346     && test "x${isllibs}" = x \
8347     && test "x${islinc}" = x ; then
8348
8349     as_fn_error $? "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
8350   fi
8351
8352
8353 fi
8354
8355 # If the isl check failed, disable builds of in-tree variant of isl
8356 if test "x$with_isl" = xno ||
8357    test "x$gcc_cv_isl" = xno; then
8358   noconfigdirs="$noconfigdirs isl"
8359   islinc=
8360 fi
8361
8362
8363
8364
8365 # Check for LTO support.
8366 # Check whether --enable-lto was given.
8367 if test "${enable_lto+set}" = set; then :
8368   enableval=$enable_lto; enable_lto=$enableval
8369 else
8370   enable_lto=yes; default_enable_lto=yes
8371 fi
8372
8373
8374
8375
8376
8377 target_elf=no
8378 case $target in
8379   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8380   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8381   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8382   nvptx-*-none)
8383     target_elf=no
8384     ;;
8385   *)
8386     target_elf=yes
8387     ;;
8388 esac
8389
8390 if test $target_elf = yes; then :
8391   # ELF platforms build the lto-plugin always.
8392   build_lto_plugin=yes
8393
8394 else
8395   if test x"$default_enable_lto" = x"yes" ; then
8396     case $target in
8397       *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8398       # On other non-ELF platforms, LTO has yet to be validated.
8399       *) enable_lto=no ;;
8400     esac
8401   else
8402   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8403   # It would also be nice to check the binutils support, but we don't
8404   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
8405   # warn during gcc/ subconfigure; unless you're bootstrapping with
8406   # -flto it won't be needed until after installation anyway.
8407     case $target in
8408       *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8409       *) if test x"$enable_lto" = x"yes"; then
8410         as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8411         fi
8412       ;;
8413     esac
8414   fi
8415   # Among non-ELF, only Windows platforms support the lto-plugin so far.
8416   # Build it unless LTO was explicitly disabled.
8417   case $target in
8418     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8419     *) ;;
8420   esac
8421
8422 fi
8423
8424
8425 # Check whether --enable-linker-plugin-configure-flags was given.
8426 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8427   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8428 else
8429   extra_linker_plugin_configure_flags=
8430 fi
8431
8432
8433 # Check whether --enable-linker-plugin-flags was given.
8434 if test "${enable_linker_plugin_flags+set}" = set; then :
8435   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8436 else
8437   extra_linker_plugin_flags=
8438 fi
8439
8440
8441
8442 # Enable --enable-host-shared.
8443 # Checked early to determine whether jit is an 'all' language
8444 # Check whether --enable-host-shared was given.
8445 if test "${enable_host_shared+set}" = set; then :
8446   enableval=$enable_host_shared; host_shared=$enableval
8447 else
8448   host_shared=no
8449 fi
8450
8451
8452
8453 # By default, C and C++ are the only stage 1 languages.
8454 stage1_languages=,c,
8455
8456 # Target libraries that we bootstrap.
8457 bootstrap_target_libs=,target-libgcc,
8458
8459 # Figure out what language subdirectories are present.
8460 # Look if the user specified --enable-languages="..."; if not, use
8461 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8462 # go away some day.
8463 # NB:  embedded tabs in this IF block -- do not untabify
8464 if test -d ${srcdir}/gcc; then
8465   if test x"${enable_languages+set}" != xset; then
8466     if test x"${LANGUAGES+set}" = xset; then
8467       enable_languages="${LANGUAGES}"
8468         echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8469     else
8470       enable_languages=default
8471     fi
8472   else
8473     if test x"${enable_languages}" = x ||
8474        test x"${enable_languages}" = xyes;
8475        then
8476       echo configure.ac: --enable-languages needs at least one language argument 1>&2
8477       exit 1
8478     fi
8479   fi
8480   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
8481
8482   # 'f95' is the old name for the 'fortran' language. We issue a warning
8483   # and make the substitution.
8484   case ,${enable_languages}, in
8485     *,f95,*)
8486       echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8487       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8488       ;;
8489   esac
8490
8491   # If bootstrapping, C++ must be enabled.
8492   case ",$enable_languages,:$enable_bootstrap" in
8493     *,c++,*:*) ;;
8494     *:yes)
8495       if test -f ${srcdir}/gcc/cp/config-lang.in; then
8496         enable_languages="${enable_languages},c++"
8497       else
8498         as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8499       fi
8500       ;;
8501   esac
8502
8503   # First scan to see if an enabled language requires some other language.
8504   # We assume that a given config-lang.in will list all the language
8505   # front ends it requires, even if some are required indirectly.
8506   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8507     case ${lang_frag} in
8508       ..) ;;
8509       # The odd quoting in the next line works around
8510       # an apparent bug in bash 1.12 on linux.
8511       ${srcdir}/gcc/[*]/config-lang.in) ;;
8512       *)
8513         # From the config-lang.in, get $language, $lang_requires, and
8514         # $lang_requires_boot_languages.
8515         language=
8516         lang_requires=
8517         lang_requires_boot_languages=
8518         # set srcdir during sourcing lang_frag to the gcc dir.
8519         # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8520         # polutes this shell
8521         saved_srcdir=${srcdir}
8522         srcdir=${srcdir}/gcc . ${lang_frag}
8523         srcdir=${saved_srcdir}
8524         for other in ${lang_requires} ${lang_requires_boot_languages}; do
8525           case ,${enable_languages}, in
8526             *,$other,*) ;;
8527             *,default,*) ;;
8528             *,all,*) ;;
8529             *,$language,*)
8530               echo " \`$other' language required by \`$language'; enabling" 1>&2
8531               enable_languages="${enable_languages},${other}"
8532               ;;
8533           esac
8534         done
8535         for other in ${lang_requires_boot_languages} ; do
8536           if test "$other" != "c"; then
8537             case ,${enable_stage1_languages}, in
8538               *,$other,*) ;;
8539               *,default,*) ;;
8540               *,all,*) ;;
8541               *)
8542                 case ,${enable_languages}, in
8543                   *,$language,*)
8544                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8545                     enable_stage1_languages="$enable_stage1_languages,${other}"
8546                     ;;
8547                 esac
8548                 ;;
8549             esac
8550           fi
8551         done
8552         ;;
8553     esac
8554   done
8555
8556   new_enable_languages=,c,
8557
8558   # If LTO is enabled, add the LTO front end.
8559   if test "$enable_lto" = "yes" ; then
8560     case ,${enable_languages}, in
8561       *,lto,*) ;;
8562       *) enable_languages="${enable_languages},lto" ;;
8563     esac
8564     if test "${build_lto_plugin}" = "yes" ; then
8565       configdirs="$configdirs lto-plugin"
8566     fi
8567   fi
8568
8569   # If we're building an offloading compiler, add the LTO front end.
8570   if test x"$enable_as_accelerator_for" != x ; then
8571     case ,${enable_languages}, in
8572       *,lto,*) ;;
8573       *) enable_languages="${enable_languages},lto" ;;
8574     esac
8575   fi
8576
8577   missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8578   potential_languages=,c,
8579
8580   enabled_target_libs=
8581   disabled_target_libs=
8582
8583   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8584     case ${lang_frag} in
8585       ..) ;;
8586       # The odd quoting in the next line works around
8587       # an apparent bug in bash 1.12 on linux.
8588       ${srcdir}/gcc/[*]/config-lang.in) ;;
8589       *)
8590         # From the config-lang.in, get $language, $target_libs,
8591         # $lang_dirs, $boot_language, and $build_by_default
8592         language=
8593         target_libs=
8594         lang_dirs=
8595         subdir_requires=
8596         boot_language=no
8597         build_by_default=yes
8598         # set srcdir during sourcing.  See above about save & restore
8599         saved_srcdir=${srcdir}
8600         srcdir=${srcdir}/gcc . ${lang_frag}
8601         srcdir=${saved_srcdir}
8602         if test x${language} = x; then
8603           echo "${lang_frag} doesn't set \$language." 1>&2
8604           exit 1
8605         fi
8606
8607         if test "$language" = "c++"; then
8608           boot_language=yes
8609         fi
8610
8611         add_this_lang=no
8612         # C is always enabled, so no need to add it again
8613         if test "$language" != "c"; then
8614           case ,${enable_languages}, in
8615             *,${language},*)
8616               # Language was explicitly selected; include it
8617               add_this_lang=yes
8618               ;;
8619             *,all,*)
8620               # All languages are enabled
8621               add_this_lang=all
8622               ;;
8623             *,default,*)
8624               # 'default' was selected, select it if it is a default language
8625               add_this_lang=${build_by_default}
8626               ;;
8627           esac
8628         fi
8629
8630         # Disable languages that need other directories if these aren't available.
8631         for i in $subdir_requires; do
8632           test -f "$srcdir/gcc/$i/config-lang.in" && continue
8633           case ${add_this_lang} in
8634             yes)
8635               # Specifically requested language; tell them.
8636               as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8637               ;;
8638             all)
8639               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8640 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8641               add_this_lang=unsupported
8642               ;;
8643             *)
8644               # Silently disable.
8645               add_this_lang=unsupported
8646               ;;
8647           esac
8648         done
8649
8650         # Disable Ada if no preexisting GNAT is available.
8651         case ${add_this_lang}:${language}:${have_gnat} in
8652           yes:ada:no)
8653             # Specifically requested language; tell them.
8654             as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8655             ;;
8656           all:ada:no)
8657             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8658 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8659             add_this_lang=unsupported
8660             ;;
8661           *:ada:no)
8662             # Silently disable.
8663             add_this_lang=unsupported
8664             ;;
8665         esac
8666
8667         # Disable jit if -enable-host-shared not specified
8668         # but not if building for Mingw. All code in Windows
8669         # is position independent code (PIC).
8670         case $target in
8671           *mingw*) ;;
8672           *)
8673           case ${add_this_lang}:${language}:${host_shared} in
8674             yes:jit:no)
8675                    # PR jit/64780: explicitly specify --enable-host-shared
8676             as_fn_error $? "
8677 Enabling language \"jit\" requires --enable-host-shared.
8678
8679 --enable-host-shared typically slows the rest of the compiler down by
8680 a few %, so you must explicitly enable it.
8681
8682 If you want to build both the jit and the regular compiler, it is often
8683 best to do this via two separate configure/builds, in separate
8684 directories, to avoid imposing the performance cost of
8685 --enable-host-shared on the regular compiler." "$LINENO" 5
8686                     ;;
8687             all:jit:no)
8688               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8689 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8690               add_this_lang=unsupported
8691               ;;
8692             *:jit:no)
8693               # Silently disable.
8694               add_this_lang=unsupported
8695               ;;
8696                 esac
8697           ;;
8698         esac
8699
8700         # Disable a language that is unsupported by the target.
8701         case "${add_this_lang}: $unsupported_languages " in
8702           no:*) ;;
8703           unsupported:*) ;;
8704           *:*" $language "*)
8705             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8706 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8707             add_this_lang=unsupported
8708             ;;
8709         esac
8710
8711         case $add_this_lang in
8712           unsupported)
8713             # Remove language-dependent dirs.
8714             disabled_target_libs="$disabled_target_libs $target_libs"
8715             noconfigdirs="$noconfigdirs $lang_dirs"
8716             ;;
8717           no)
8718             # Remove language-dependent dirs; still show language as supported.
8719             disabled_target_libs="$disabled_target_libs $target_libs"
8720             noconfigdirs="$noconfigdirs $lang_dirs"
8721             potential_languages="${potential_languages}${language},"
8722             ;;
8723           all|yes)
8724             new_enable_languages="${new_enable_languages}${language},"
8725             potential_languages="${potential_languages}${language},"
8726             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8727             enabled_target_libs="$enabled_target_libs $target_libs"
8728             case "${boot_language}:,$enable_stage1_languages," in
8729               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8730                 # Add to (comma-separated) list of stage 1 languages.
8731                 case ",$stage1_languages," in
8732                   *,$language,* | ,yes, | ,all,) ;;
8733                   *) stage1_languages="${stage1_languages}${language}," ;;
8734                 esac
8735                 # We need to bootstrap any supporting libraries.
8736                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
8737                 ;;
8738             esac
8739             ;;
8740         esac
8741         ;;
8742     esac
8743   done
8744
8745   # Add target libraries which are only needed for disabled languages
8746   # to noconfigdirs.
8747   if test -n "$disabled_target_libs"; then
8748     for dir in $disabled_target_libs; do
8749       case " $enabled_target_libs " in
8750       *" ${dir} "*) ;;
8751       *) noconfigdirs="$noconfigdirs $dir" ;;
8752       esac
8753     done
8754   fi
8755
8756   # Check whether --enable-stage1-languages was given.
8757 if test "${enable_stage1_languages+set}" = set; then :
8758   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8759     ,no,|,,)
8760       # Set it to something that will have no effect in the loop below
8761       enable_stage1_languages=c ;;
8762     ,yes,)
8763       enable_stage1_languages=`echo $new_enable_languages | \
8764         sed -e "s/^,//" -e "s/,$//" ` ;;
8765     *,all,*)
8766       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8767         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8768   esac
8769
8770   # Add "good" languages from enable_stage1_languages to stage1_languages,
8771   # while "bad" languages go in missing_languages.  Leave no duplicates.
8772   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8773     case $potential_languages in
8774       *,$i,*)
8775         case $stage1_languages in
8776           *,$i,*) ;;
8777           *) stage1_languages="$stage1_languages$i," ;;
8778         esac ;;
8779       *)
8780         case $missing_languages in
8781           *,$i,*) ;;
8782           *) missing_languages="$missing_languages$i," ;;
8783         esac ;;
8784      esac
8785   done
8786 fi
8787
8788
8789   # Remove leading/trailing commas that were added for simplicity
8790   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8791   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8792   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8793   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8794
8795   if test "x$missing_languages" != x; then
8796     as_fn_error $? "
8797 The following requested languages could not be built: ${missing_languages}
8798 Supported languages are: ${potential_languages}" "$LINENO" 5
8799   fi
8800   if test "x$new_enable_languages" != "x$enable_languages"; then
8801     echo The following languages will be built: ${new_enable_languages}
8802     enable_languages="$new_enable_languages"
8803   fi
8804
8805
8806   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8807 fi
8808
8809 # Handle --disable-<component> generically.
8810 for dir in $configdirs $build_configdirs $target_configdirs ; do
8811   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8812   varname=`echo $dirname | sed -e s/+/_/g`
8813   if eval test x\${enable_${varname}} "=" xno ; then
8814     noconfigdirs="$noconfigdirs $dir"
8815   fi
8816 done
8817
8818 # Check for Boehm's garbage collector
8819 # Check whether --enable-objc-gc was given.
8820 if test "${enable_objc_gc+set}" = set; then :
8821   enableval=$enable_objc_gc;
8822 fi
8823
8824
8825 # Check whether --with-target-bdw-gc was given.
8826 if test "${with_target_bdw_gc+set}" = set; then :
8827   withval=$with_target_bdw_gc;
8828 fi
8829
8830
8831 # Check whether --with-target-bdw-gc-include was given.
8832 if test "${with_target_bdw_gc_include+set}" = set; then :
8833   withval=$with_target_bdw_gc_include;
8834 fi
8835
8836
8837 # Check whether --with-target-bdw-gc-lib was given.
8838 if test "${with_target_bdw_gc_lib+set}" = set; then :
8839   withval=$with_target_bdw_gc_lib;
8840 fi
8841
8842
8843 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8845 $as_echo_n "checking for bdw garbage collector... " >&6; }
8846   if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
8847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8848 $as_echo "using bdw-gc in default locations" >&6; }
8849   else
8850         if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
8851       as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
8852     elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
8853       as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
8854     else
8855       { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8856 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8857     fi
8858   fi
8859 esac
8860
8861 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8862 case ,${enable_languages}, in
8863   *,c++,*)
8864     # Disable libitm, libsanitizer if we're not building libstdc++
8865     case "${noconfigdirs}" in
8866       *target-libstdc++-v3*)
8867         noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
8868         ;;
8869       *) ;;
8870     esac
8871     ;;
8872   *)
8873     noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
8874     ;;
8875 esac
8876
8877 # If gcc/ is not in the source tree then we'll not be building a
8878 # target compiler, assume in that case we don't want to build any
8879 # target libraries or tools.
8880 #
8881 # This was added primarily for the benefit for binutils-gdb who reuse
8882 # this configure script, but don't always have target tools available.
8883 if test ! -d ${srcdir}/gcc; then
8884    skipdirs="${skipdirs} ${target_configdirs}"
8885 fi
8886
8887 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8888 # $build_configdirs and $target_configdirs.
8889 # If we have the source for $noconfigdirs entries, add them to $notsupp.
8890
8891 notsupp=""
8892 for dir in . $skipdirs $noconfigdirs ; do
8893   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8894   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8895     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
8896     if test -r $srcdir/$dirname/configure ; then
8897       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8898         true
8899       else
8900         notsupp="$notsupp $dir"
8901       fi
8902     fi
8903   fi
8904   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8905     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
8906     if test -r $srcdir/$dirname/configure ; then
8907       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8908         true
8909       else
8910         notsupp="$notsupp $dir"
8911       fi
8912     fi
8913   fi
8914   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8915     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
8916     if test -r $srcdir/$dirname/configure ; then
8917       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8918         true
8919       else
8920         notsupp="$notsupp $dir"
8921       fi
8922     fi
8923   fi
8924 done
8925
8926 # Quietly strip out all directories which aren't configurable in this tree.
8927 # This relies on all configurable subdirectories being autoconfiscated, which
8928 # is now the case.
8929 build_configdirs_all="$build_configdirs"
8930 build_configdirs=
8931 for i in ${build_configdirs_all} ; do
8932   j=`echo $i | sed -e s/build-//g`
8933   if test -f ${srcdir}/$j/configure ; then
8934     build_configdirs="${build_configdirs} $i"
8935   fi
8936 done
8937
8938 configdirs_all="$configdirs"
8939 configdirs=
8940 for i in ${configdirs_all} ; do
8941   if test -f ${srcdir}/$i/configure ; then
8942     configdirs="${configdirs} $i"
8943   fi
8944 done
8945
8946 target_configdirs_all="$target_configdirs"
8947 target_configdirs=
8948 for i in ${target_configdirs_all} ; do
8949   j=`echo $i | sed -e s/target-//g`
8950   if test -f ${srcdir}/$j/configure ; then
8951     target_configdirs="${target_configdirs} $i"
8952   fi
8953 done
8954
8955 # libiberty-linker-plugin is special: it doesn't have its own source directory,
8956 # so we have to add it after the preceding checks.
8957 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
8958 then
8959   case " $configdirs " in
8960     *" libiberty "*)
8961       # If we can build libiberty, we can also build libiberty-linker-plugin.
8962       configdirs="$configdirs libiberty-linker-plugin"
8963       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
8964         --with-libiberty=../libiberty-linker-plugin";;
8965     *)
8966       as_fn_error $? "libiberty missing" "$LINENO" 5;;
8967   esac
8968 fi
8969
8970 # Sometimes we have special requirements for the host libiberty.
8971 extra_host_libiberty_configure_flags=
8972 extra_host_zlib_configure_flags=
8973 case " $configdirs " in
8974   *" lto-plugin "* | *" libcc1 "*)
8975     # When these are to be built as shared libraries, the same applies to
8976     # libiberty.
8977     extra_host_libiberty_configure_flags=--enable-shared
8978     ;;
8979   *" bfd "*)
8980     # When bfd is to be built as a shared library, the same applies to
8981     # zlib.
8982     if test "$enable_shared" = "yes"; then
8983       extra_host_zlib_configure_flags=--enable-host-shared
8984     fi
8985     ;;
8986 esac
8987
8988
8989
8990 # Produce a warning message for the subdirs we can't configure.
8991 # This isn't especially interesting in the Cygnus tree, but in the individual
8992 # FSF releases, it's important to let people know when their machine isn't
8993 # supported by the one or two programs in a package.
8994
8995 if test -n "${notsupp}" && test -z "${norecursion}" ; then
8996   # If $appdirs is non-empty, at least one of those directories must still
8997   # be configured, or we error out.  (E.g., if the gas release supports a
8998   # specified target in some subdirs but not the gas subdir, we shouldn't
8999   # pretend that all is well.)
9000   if test -n "$appdirs" ; then
9001     for dir in $appdirs ; do
9002       if test -r $dir/Makefile.in ; then
9003         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9004           appdirs=""
9005           break
9006         fi
9007         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9008           appdirs=""
9009           break
9010         fi
9011       fi
9012     done
9013     if test -n "$appdirs" ; then
9014       echo "*** This configuration is not supported by this package." 1>&2
9015       exit 1
9016     fi
9017   fi
9018   # Okay, some application will build, or we don't care to check.  Still
9019   # notify of subdirs not getting built.
9020   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9021   echo "    ${notsupp}" 1>&2
9022   echo "    (Any other directories should still work fine.)" 1>&2
9023 fi
9024
9025 case "$host" in
9026   *msdosdjgpp*)
9027     enable_gdbtk=no ;;
9028 esac
9029
9030 # To find our prefix, in gcc_cv_tool_prefix.
9031
9032 # The user is always right.
9033 if test "${PATH_SEPARATOR+set}" != set; then
9034   echo "#! /bin/sh" >conf$$.sh
9035   echo  "exit 0"   >>conf$$.sh
9036   chmod +x conf$$.sh
9037   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9038     PATH_SEPARATOR=';'
9039   else
9040     PATH_SEPARATOR=:
9041   fi
9042   rm -f conf$$.sh
9043 fi
9044
9045
9046   get_gcc_base_ver="cat"
9047
9048 # Check whether --with-gcc-major-version-only was given.
9049 if test "${with_gcc_major_version_only+set}" = set; then :
9050   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9051         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9052       fi
9053
9054 fi
9055
9056
9057
9058
9059
9060
9061 if test "x$exec_prefix" = xNONE; then
9062         if test "x$prefix" = xNONE; then
9063                 gcc_cv_tool_prefix=$ac_default_prefix
9064         else
9065                 gcc_cv_tool_prefix=$prefix
9066         fi
9067 else
9068         gcc_cv_tool_prefix=$exec_prefix
9069 fi
9070
9071 # If there is no compiler in the tree, use the PATH only.  In any
9072 # case, if there is no compiler in the tree nobody should use
9073 # AS_FOR_TARGET and LD_FOR_TARGET.
9074 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9075     if test x$with_gcc_major_version_only = xyes ; then
9076                 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9077             else
9078         gcc_version=`cat $srcdir/gcc/BASE-VER`
9079     fi
9080     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9081     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9082     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9083     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9084     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9085     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9086 else
9087     gcc_cv_tool_dirs=
9088 fi
9089
9090 if test x$build = x$target && test -n "$md_exec_prefix"; then
9091         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9092 fi
9093
9094
9095
9096 copy_dirs=
9097
9098
9099 # Check whether --with-build-sysroot was given.
9100 if test "${with_build_sysroot+set}" = set; then :
9101   withval=$with_build_sysroot; if test x"$withval" != x ; then
9102      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9103    fi
9104 else
9105   SYSROOT_CFLAGS_FOR_TARGET=
9106 fi
9107
9108
9109
9110
9111 # Check whether --with-debug-prefix-map was given.
9112 if test "${with_debug_prefix_map+set}" = set; then :
9113   withval=$with_debug_prefix_map; if test x"$withval" != x; then
9114      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9115      for debug_map in $withval; do
9116        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9117      done
9118    fi
9119 else
9120   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9121 fi
9122
9123
9124
9125 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9126 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
9127 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9128 # We want to ensure that TARGET libraries (which we know are built with
9129 # gcc) are built with "-O2 -g", so include those options when setting
9130 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9131 if test "x$CFLAGS_FOR_TARGET" = x; then
9132   if test "x${is_cross_compiler}" = xyes; then
9133     CFLAGS_FOR_TARGET="-g -O2"
9134   else
9135     CFLAGS_FOR_TARGET=$CFLAGS
9136     case " $CFLAGS " in
9137       *" -O2 "*) ;;
9138       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9139     esac
9140     case " $CFLAGS " in
9141       *" -g "* | *" -g3 "*) ;;
9142       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9143     esac
9144   fi
9145 fi
9146
9147
9148 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9149   if test "x${is_cross_compiler}" = xyes; then
9150     CXXFLAGS_FOR_TARGET="-g -O2"
9151   else
9152     CXXFLAGS_FOR_TARGET=$CXXFLAGS
9153     case " $CXXFLAGS " in
9154       *" -O2 "*) ;;
9155       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9156     esac
9157     case " $CXXFLAGS " in
9158       *" -g "* | *" -g3 "*) ;;
9159       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9160     esac
9161   fi
9162 fi
9163
9164
9165
9166
9167 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
9168 # the named directory are copied to $(tooldir)/sys-include.
9169 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9170   if test x${is_cross_compiler} = xno ; then
9171     echo 1>&2 '***' --with-headers is only supported when cross compiling
9172     exit 1
9173   fi
9174   if test x"${with_headers}" != xyes ; then
9175     x=${gcc_cv_tool_prefix}
9176     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9177   fi
9178 fi
9179
9180 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
9181 # the name directories are copied to $(tooldir)/lib.  Multiple directories
9182 # are permitted.
9183 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9184   if test x${is_cross_compiler} = xno ; then
9185     echo 1>&2 '***' --with-libs is only supported when cross compiling
9186     exit 1
9187   fi
9188   if test x"${with_libs}" != xyes ; then
9189     # Copy the libraries in reverse order, so that files in the first named
9190     # library override files in subsequent libraries.
9191     x=${gcc_cv_tool_prefix}
9192     for l in ${with_libs}; do
9193       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9194     done
9195   fi
9196 fi
9197
9198 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9199 #
9200 # This is done by determining whether or not the appropriate directory
9201 # is available, and by checking whether or not specific configurations
9202 # have requested that this magic not happen.
9203 #
9204 # The command line options always override the explicit settings in
9205 # configure.ac, and the settings in configure.ac override this magic.
9206 #
9207 # If the default for a toolchain is to use GNU as and ld, and you don't
9208 # want to do that, then you should use the --without-gnu-as and
9209 # --without-gnu-ld options for the configure script.  Similarly, if
9210 # the default is to use the included zlib and you don't want to do that,
9211 # you should use the --with-system-zlib option for the configure script.
9212
9213 if test x${use_gnu_as} = x &&
9214    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9215   with_gnu_as=yes
9216   extra_host_args="$extra_host_args --with-gnu-as"
9217 fi
9218
9219 if test x${use_gnu_ld} = x &&
9220    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9221   with_gnu_ld=yes
9222   extra_host_args="$extra_host_args --with-gnu-ld"
9223 fi
9224
9225 if test x${use_included_zlib} = x &&
9226    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9227   :
9228 else
9229   with_system_zlib=yes
9230   extra_host_args="$extra_host_args --with-system-zlib"
9231 fi
9232
9233 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9234 # can detect this case.
9235
9236 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9237   with_newlib=yes
9238   extra_host_args="$extra_host_args --with-newlib"
9239 fi
9240
9241 # Handle ${copy_dirs}
9242 set fnord ${copy_dirs}
9243 shift
9244 while test $# != 0 ; do
9245   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9246     :
9247   else
9248     echo Copying $1 to $2
9249
9250     # Use the install script to create the directory and all required
9251     # parent directories.
9252     if test -d $2 ; then
9253       :
9254     else
9255       echo >config.temp
9256       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9257     fi
9258
9259     # Copy the directory, assuming we have tar.
9260     # FIXME: Should we use B in the second tar?  Not all systems support it.
9261     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9262
9263     # It is the responsibility of the user to correctly adjust all
9264     # symlinks.  If somebody can figure out how to handle them correctly
9265     # here, feel free to add the code.
9266
9267     echo $1 > $2/COPIED
9268   fi
9269   shift; shift
9270 done
9271
9272 # Determine a target-dependent exec_prefix that the installed
9273 # gcc will search in.  Keep this list sorted by triplet, with
9274 # the *-*-osname triplets last.
9275 md_exec_prefix=
9276 case "${target}" in
9277   i[34567]86-pc-msdosdjgpp*)
9278     md_exec_prefix=/dev/env/DJDIR/bin
9279     ;;
9280   *-*-hpux* | \
9281   *-*-nto-qnx* | \
9282   *-*-solaris2*)
9283     md_exec_prefix=/usr/ccs/bin
9284     ;;
9285 esac
9286
9287 extra_arflags_for_target=
9288 extra_nmflags_for_target=
9289 extra_ranlibflags_for_target=
9290 target_makefile_frag=/dev/null
9291 case "${target}" in
9292   spu-*-*)
9293     target_makefile_frag="config/mt-spu"
9294     ;;
9295   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9296     target_makefile_frag="config/mt-sde"
9297     ;;
9298   mipsisa*-*-elfoabi*)
9299     target_makefile_frag="config/mt-mips-elfoabi"
9300     ;;
9301   mips*-*-*linux* | mips*-*-gnu*)
9302     target_makefile_frag="config/mt-mips-gnu"
9303     ;;
9304   nios2-*-elf*)
9305     target_makefile_frag="config/mt-nios2-elf"
9306     ;;
9307   *-*-linux-android*)
9308     target_makefile_frag="config/mt-android"
9309     ;;
9310   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9311     target_makefile_frag="config/mt-gnu"
9312     ;;
9313   *-*-aix4.[3456789]* | *-*-aix[56789].*)
9314     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9315     # commands to handle both 32-bit and 64-bit objects.  These flags are
9316     # harmless if we're using GNU nm or ar.
9317     extra_arflags_for_target=" -X32_64"
9318     extra_nmflags_for_target=" -B -X32_64"
9319     ;;
9320 esac
9321
9322 alphaieee_frag=/dev/null
9323 case $target in
9324   alpha*-*-*)
9325     # This just makes sure to use the -mieee option to build target libs.
9326     # This should probably be set individually by each library.
9327     alphaieee_frag="config/mt-alphaieee"
9328     ;;
9329 esac
9330
9331 # If --enable-target-optspace always use -Os instead of -O2 to build
9332 # the target libraries, similarly if it is not specified, use -Os
9333 # on selected platforms.
9334 ospace_frag=/dev/null
9335 case "${enable_target_optspace}:${target}" in
9336   yes:*)
9337     ospace_frag="config/mt-ospace"
9338     ;;
9339   :d30v-*)
9340     ospace_frag="config/mt-d30v"
9341     ;;
9342   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9343     ospace_frag="config/mt-ospace"
9344     ;;
9345   no:* | :*)
9346     ;;
9347   *)
9348     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9349     ;;
9350 esac
9351
9352 # Some systems (e.g., one of the i386-aix systems the gas testers are
9353 # using) don't handle "\$" correctly, so don't use it here.
9354 tooldir='${exec_prefix}'/${target_noncanonical}
9355 build_tooldir=${tooldir}
9356
9357 # Create a .gdbinit file which runs the one in srcdir
9358 # and tells GDB to look there for source files.
9359
9360 if test -r ${srcdir}/.gdbinit ; then
9361   case ${srcdir} in
9362     .) ;;
9363     *) cat > ./.gdbinit <<EOF
9364 # ${NO_EDIT}
9365 dir ${srcdir}
9366 dir .
9367 source ${srcdir}/.gdbinit
9368 EOF
9369     ;;
9370   esac
9371 fi
9372
9373 # Make sure that the compiler is able to generate an executable.  If it
9374 # can't, we are probably in trouble.  We don't care whether we can run the
9375 # executable--we might be using a cross compiler--we only care whether it
9376 # can be created.  At this point the main configure script has set CC.
9377 we_are_ok=no
9378 echo "int main () { return 0; }" > conftest.c
9379 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9380 if test $? = 0 ; then
9381   if test -s conftest || test -s conftest.exe ; then
9382     we_are_ok=yes
9383   fi
9384 fi
9385 case $we_are_ok in
9386   no)
9387     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9388     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9389     rm -f conftest*
9390     exit 1
9391     ;;
9392 esac
9393 rm -f conftest*
9394
9395 # Decide which environment variable is used to find dynamic libraries.
9396 case "${host}" in
9397   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9398   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9399   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9400   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9401 esac
9402
9403 # On systems where the dynamic library environment variable is PATH,
9404 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9405 # built executables to PATH.
9406 if test "$RPATH_ENVVAR" = PATH; then
9407   GCC_SHLIB_SUBDIR=/shlib
9408 else
9409   GCC_SHLIB_SUBDIR=
9410 fi
9411
9412 # Adjust the toplevel makefile according to whether bootstrap was selected.
9413 case $enable_bootstrap in
9414   yes)
9415     bootstrap_suffix=bootstrap
9416     BUILD_CONFIG=bootstrap-debug
9417     ;;
9418   no)
9419     bootstrap_suffix=no-bootstrap
9420     BUILD_CONFIG=
9421     ;;
9422 esac
9423
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9425 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9426
9427
9428 # Check whether --with-build-config was given.
9429 if test "${with_build_config+set}" = set; then :
9430   withval=$with_build_config; case $with_build_config in
9431    yes) with_build_config= ;;
9432    no) with_build_config= BUILD_CONFIG= ;;
9433    esac
9434 fi
9435
9436
9437 if test "x${with_build_config}" != x; then
9438   BUILD_CONFIG=$with_build_config
9439 else
9440   case $BUILD_CONFIG in
9441   bootstrap-debug)
9442     if echo "int f (void) { return 0; }" > conftest.c &&
9443        ${CC} -c conftest.c &&
9444        mv conftest.o conftest.o.g0 &&
9445        ${CC} -c -g conftest.c &&
9446        mv conftest.o conftest.o.g &&
9447        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9448       :
9449     else
9450       BUILD_CONFIG=
9451     fi
9452     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9453     ;;
9454   esac
9455 fi
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9457 $as_echo "$BUILD_CONFIG" >&6; }
9458
9459
9460 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9462 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9463 # Check whether --enable-vtable-verify was given.
9464 if test "${enable_vtable_verify+set}" = set; then :
9465   enableval=$enable_vtable_verify; case "$enableval" in
9466  yes) enable_vtable_verify=yes ;;
9467  no)  enable_vtable_verify=no ;;
9468  *)   enable_vtable_verify=no;;
9469  esac
9470 else
9471   enable_vtable_verify=no
9472 fi
9473
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9475 $as_echo "$enable_vtable_verify" >&6; }
9476
9477 # Record target_configdirs and the configure arguments for target and
9478 # build configuration in Makefile.
9479 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9480 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9481 bootstrap_fixincludes=no
9482
9483 # If we are building libgomp, bootstrap it.
9484 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9485   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9486 fi
9487
9488 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9489 # or bootstrap-ubsan, bootstrap it.
9490 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9491   case "$BUILD_CONFIG" in
9492     *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9493       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9494       bootstrap_fixincludes=yes
9495       ;;
9496   esac
9497 fi
9498
9499 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9500 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9501    test "$enable_vtable_verify" != no; then
9502   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9503 fi
9504
9505 # Determine whether gdb needs tk/tcl or not.
9506 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9507 # and in that case we want gdb to be built without tk.  Ugh!
9508 # In fact I believe gdb is the *only* package directly dependent on tk,
9509 # so we should be able to put the 'maybe's in unconditionally and
9510 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
9511 # 100% sure that that's safe though.
9512
9513 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9514 case "$enable_gdbtk" in
9515   no)
9516     GDB_TK="" ;;
9517   yes)
9518     GDB_TK="${gdb_tk}" ;;
9519   *)
9520     # Only add the dependency on gdbtk when GDBtk is part of the gdb
9521     # distro.  Eventually someone will fix this and move Insight, nee
9522     # gdbtk to a separate directory.
9523     if test -d ${srcdir}/gdb/gdbtk ; then
9524       GDB_TK="${gdb_tk}"
9525     else
9526       GDB_TK=""
9527     fi
9528     ;;
9529 esac
9530 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9531 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9532
9533 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9534 # else does, only include them if one of these is built.  The Makefile
9535 # provides the ordering, so it's enough here to add to the list.
9536 case " ${configdirs} " in
9537   *\ gdb\ *)
9538     configdirs="${configdirs} gnulib gdbsupport"
9539     ;;
9540   *\ gdbserver\ *)
9541     configdirs="${configdirs} gnulib gdbsupport"
9542     ;;
9543   *\ sim\ *)
9544     configdirs="${configdirs} gnulib"
9545     ;;
9546 esac
9547
9548 # Strip out unwanted targets.
9549
9550 # While at that, we remove Makefiles if we were started for recursive
9551 # configuration, so that the top-level Makefile reconfigures them,
9552 # like we used to do when configure itself was recursive.
9553
9554 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
9555 # but now we're fixing up the Makefile ourselves with the additional
9556 # commands passed to AC_CONFIG_FILES.  Use separate variables
9557 # extrasub-{build,host,target} not because there is any reason to split
9558 # the substitutions up that way, but only to remain below the limit of
9559 # 99 commands in a script, for HP-UX sed.
9560
9561 # Do not nest @if/@endif or @unless/@endunless pairs, because
9562 # configure will not warn you at all.
9563
9564 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9565   yes:yes:*\ gold\ *:*,c++,*) ;;
9566   yes:yes:*\ gold\ *:*)
9567     as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9568     ;;
9569 esac
9570
9571 extrasub_build=
9572 for module in ${build_configdirs} ; do
9573   if test -z "${no_recursion}" \
9574      && test -f ${build_subdir}/${module}/Makefile; then
9575     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9576     rm -f ${build_subdir}/${module}/Makefile
9577   fi
9578   extrasub_build="$extrasub_build
9579 /^@if build-$module\$/d
9580 /^@endif build-$module\$/d
9581 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9582 /^@if build-$module-$bootstrap_suffix\$/d
9583 /^@endif build-$module-$bootstrap_suffix\$/d
9584 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9585 done
9586 extrasub_host=
9587 for module in ${configdirs} ; do
9588   if test -z "${no_recursion}"; then
9589     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9590       if test -f ${file}; then
9591         echo 1>&2 "*** removing ${file} to force reconfigure"
9592         rm -f ${file}
9593       fi
9594     done
9595   fi
9596   case ${module},${bootstrap_fixincludes} in
9597     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9598     *) host_bootstrap_suffix=$bootstrap_suffix ;;
9599   esac
9600   extrasub_host="$extrasub_host
9601 /^@if $module\$/d
9602 /^@endif $module\$/d
9603 /^@unless $module\$/,/^@endunless $module\$/d
9604 /^@if $module-$host_bootstrap_suffix\$/d
9605 /^@endif $module-$host_bootstrap_suffix\$/d
9606 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9607 done
9608 extrasub_target=
9609 for module in ${target_configdirs} ; do
9610   if test -z "${no_recursion}" \
9611      && test -f ${target_subdir}/${module}/Makefile; then
9612     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9613     rm -f ${target_subdir}/${module}/Makefile
9614   fi
9615
9616   # We only bootstrap target libraries listed in bootstrap_target_libs.
9617   case $bootstrap_target_libs in
9618     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9619     *) target_bootstrap_suffix=no-bootstrap ;;
9620   esac
9621
9622   extrasub_target="$extrasub_target
9623 /^@if target-$module\$/d
9624 /^@endif target-$module\$/d
9625 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9626 /^@if target-$module-$target_bootstrap_suffix\$/d
9627 /^@endif target-$module-$target_bootstrap_suffix\$/d
9628 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9629 done
9630
9631 # Do the final fixup along with target modules.
9632 extrasub_target="$extrasub_target
9633 /^@if /,/^@endif /d
9634 /^@unless /d
9635 /^@endunless /d"
9636
9637 # Create the serialization dependencies.  This uses a temporary file.
9638
9639 # Check whether --enable-serial-configure was given.
9640 if test "${enable_serial_configure+set}" = set; then :
9641   enableval=$enable_serial_configure;
9642 fi
9643
9644
9645 case ${enable_serial_configure} in
9646   yes)
9647     enable_serial_build_configure=yes
9648     enable_serial_host_configure=yes
9649     enable_serial_target_configure=yes
9650     ;;
9651 esac
9652
9653 # These force 'configure's to be done one at a time, to avoid problems
9654 # with contention over a shared config.cache.
9655 rm -f serdep.tmp
9656 echo '# serdep.tmp' > serdep.tmp
9657 olditem=
9658 test "x${enable_serial_build_configure}" = xyes &&
9659 for item in ${build_configdirs} ; do
9660   case ${olditem} in
9661     "") ;;
9662     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9663   esac
9664   olditem=${item}
9665 done
9666 olditem=
9667 test "x${enable_serial_host_configure}" = xyes &&
9668 for item in ${configdirs} ; do
9669   case ${olditem} in
9670     "") ;;
9671     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9672   esac
9673   olditem=${item}
9674 done
9675 olditem=
9676 test "x${enable_serial_target_configure}" = xyes &&
9677 for item in ${target_configdirs} ; do
9678   case ${olditem} in
9679     "") ;;
9680     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9681   esac
9682   olditem=${item}
9683 done
9684 serialization_dependencies=serdep.tmp
9685
9686
9687 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
9688 # target, nonopt, and variable assignments.  These are the ones we
9689 # might not want to pass down to subconfigures.  The exception being
9690 # --cache-file=/dev/null, which is used to turn off the use of cache
9691 # files altogether, and which should be passed on to subconfigures.
9692 # Also strip program-prefix, program-suffix, and program-transform-name,
9693 # so that we can pass down a consistent program-transform-name.
9694 baseargs=
9695 tbaseargs=
9696 keep_next=no
9697 skip_next=no
9698 eval "set -- $ac_configure_args"
9699 for ac_arg
9700 do
9701   if test X"$skip_next" = X"yes"; then
9702     skip_next=no
9703     continue
9704   fi
9705   if test X"$keep_next" = X"yes"; then
9706     case $ac_arg in
9707       *\'*)
9708         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9709     esac
9710     baseargs="$baseargs '$ac_arg'"
9711     tbaseargs="$tbaseargs '$ac_arg'"
9712     keep_next=no
9713     continue
9714   fi
9715
9716   # Handle separated arguments.  Based on the logic generated by
9717   # autoconf 2.59.
9718   case $ac_arg in
9719     *=* | --config-cache | -C | -disable-* | --disable-* \
9720       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9721       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9722       | -with-* | --with-* | -without-* | --without-* | --x)
9723       separate_arg=no
9724       ;;
9725     -*)
9726       separate_arg=yes
9727       ;;
9728     *)
9729       separate_arg=no
9730       ;;
9731   esac
9732
9733   skip_targ=no
9734   case $ac_arg in
9735
9736   --with-* | --without-*)
9737     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9738
9739     case $libopt in
9740     *[-_]include)
9741       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9742       ;;
9743     *[-_]lib)
9744       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9745       ;;
9746     *)
9747       lib=$libopt
9748       ;;
9749     esac
9750
9751
9752     case $lib in
9753     mpc | mpfr | gmp | isl)
9754       # If we're processing --with-$lib, --with-$lib-include or
9755       # --with-$lib-lib, for one of the libs above, and target is
9756       # different from host, don't pass the current argument to any
9757       # target library's configure.
9758       if test x$is_cross_compiler = xyes; then
9759         skip_targ=yes
9760       fi
9761       ;;
9762     esac
9763     ;;
9764   esac
9765
9766   case "$ac_arg" in
9767     --cache-file=/dev/null | \
9768     -cache-file=/dev/null )
9769       # Handled here to avoid the test to skip args below.
9770       baseargs="$baseargs '$ac_arg'"
9771       tbaseargs="$tbaseargs '$ac_arg'"
9772       # Assert: $separate_arg should always be no.
9773       keep_next=$separate_arg
9774       ;;
9775     --no*)
9776       continue
9777       ;;
9778     --c* | \
9779     --sr* | \
9780     --ho* | \
9781     --bu* | \
9782     --t* | \
9783     --program-* | \
9784     -cache_file* | \
9785     -srcdir* | \
9786     -host* | \
9787     -build* | \
9788     -target* | \
9789     -program-prefix* | \
9790     -program-suffix* | \
9791     -program-transform-name* )
9792       skip_next=$separate_arg
9793       continue
9794       ;;
9795     -*)
9796       # An option.  Add it.
9797       case $ac_arg in
9798         *\'*)
9799           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9800       esac
9801       baseargs="$baseargs '$ac_arg'"
9802       if test X"$skip_targ" = Xno; then
9803         tbaseargs="$tbaseargs '$ac_arg'"
9804       fi
9805       keep_next=$separate_arg
9806       ;;
9807     *)
9808       # Either a variable assignment, or a nonopt (triplet).  Don't
9809       # pass it down; let the Makefile handle this.
9810       continue
9811       ;;
9812   esac
9813 done
9814 # Remove the initial space we just introduced and, as these will be
9815 # expanded by make, quote '$'.
9816 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9817
9818 # Add in --program-transform-name, after --program-prefix and
9819 # --program-suffix have been applied to it.  Autoconf has already
9820 # doubled dollar signs and backslashes in program_transform_name; we want
9821 # the backslashes un-doubled, and then the entire thing wrapped in single
9822 # quotes, because this will be expanded first by make and then by the shell.
9823 # Also, because we want to override the logic in subdir configure scripts to
9824 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9825 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9826 ${program_transform_name}
9827 EOF_SED
9828 gcc_transform_name=`cat conftestsed.out`
9829 rm -f conftestsed.out
9830 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
9831 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9832 if test "$silent" = yes; then
9833   baseargs="$baseargs --silent"
9834   tbaseargs="$tbaseargs --silent"
9835 fi
9836 baseargs="$baseargs --disable-option-checking"
9837 tbaseargs="$tbaseargs --disable-option-checking"
9838
9839 # Record and document user additions to sub configure arguments.
9840
9841
9842
9843
9844 # For the build-side libraries, we just need to pretend we're native,
9845 # and not use the same cache file.  Multilibs are neither needed nor
9846 # desired.  We can't even use the same cache file for all build-side
9847 # libraries, as they're compiled differently; some with C, some with
9848 # C++ or with different feature-enabling options.
9849 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
9850
9851 # For host modules, accept cache file option, or specification as blank.
9852 case "${cache_file}" in
9853 "") # empty
9854   cache_file_option="" ;;
9855 /* | [A-Za-z]:[\\/]* ) # absolute path
9856   cache_file_option="--cache-file=${cache_file}" ;;
9857 *) # relative path
9858   cache_file_option="--cache-file=../${cache_file}" ;;
9859 esac
9860
9861 # Host dirs don't like to share a cache file either, horribly enough.
9862 # This seems to be due to autoconf 2.5x stupidity.
9863 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
9864
9865 target_configargs="$target_configargs ${tbaseargs}"
9866
9867 # Passing a --with-cross-host argument lets the target libraries know
9868 # whether they are being built with a cross-compiler or being built
9869 # native.  However, it would be better to use other mechanisms to make the
9870 # sorts of decisions they want to make on this basis.  Please consider
9871 # this option to be deprecated.  FIXME.
9872 if test x${is_cross_compiler} = xyes ; then
9873   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
9874 fi
9875
9876 # Special user-friendly check for native x86_64-linux build, if
9877 # multilib is not explicitly enabled.
9878 case "$target:$have_compiler:$host:$target:$enable_multilib" in
9879   x86_64-*linux*:yes:$build:$build:)
9880     # Make sure we have a development environment that handles 32-bit
9881     dev64=no
9882     echo "int main () { return 0; }" > conftest.c
9883     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9884     if test $? = 0 ; then
9885       if test -s conftest || test -s conftest.exe ; then
9886         dev64=yes
9887       fi
9888     fi
9889     rm -f conftest*
9890     if test x${dev64} != xyes ; then
9891       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
9892     fi
9893     ;;
9894 esac
9895
9896 # Default to --enable-multilib.
9897 if test x${enable_multilib} = x ; then
9898   target_configargs="--enable-multilib ${target_configargs}"
9899 fi
9900
9901 # Pass --with-newlib if appropriate.  Note that target_configdirs has
9902 # changed from the earlier setting of with_newlib.
9903 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
9904   target_configargs="--with-newlib ${target_configargs}"
9905 fi
9906
9907 # Different target subdirs use different values of certain variables
9908 # (notably CXX).  Worse, multilibs use *lots* of different values.
9909 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9910 # it doesn't automatically accept command-line overrides of them.
9911 # This means it's not safe for target subdirs to share a cache file,
9912 # which is disgusting, but there you have it.  Hopefully this can be
9913 # fixed in future.  It's still worthwhile to use a cache file for each
9914 # directory.  I think.
9915
9916 # Pass the appropriate --build, --host, --target and --cache-file arguments.
9917 # We need to pass --target, as newer autoconf's requires consistency
9918 # for target_alias and gcc doesn't manage it consistently.
9919 target_configargs="--cache-file=./config.cache ${target_configargs}"
9920
9921 FLAGS_FOR_TARGET=
9922 case " $target_configdirs " in
9923  *" newlib "*)
9924   case " $target_configargs " in
9925   *" --with-newlib "*)
9926    case "$target" in
9927     *-cygwin*)
9928       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
9929       ;;
9930    esac
9931
9932    # If we're not building GCC, don't discard standard headers.
9933    if test -d ${srcdir}/gcc; then
9934      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
9935
9936      if test "${build}" != "${host}"; then
9937        # On Canadian crosses, CC_FOR_TARGET will have already been set
9938        # by `configure', so we won't have an opportunity to add -Bgcc/
9939        # to it.  This is right: we don't want to search that directory
9940        # for binaries, but we want the header files in there, so add
9941        # them explicitly.
9942        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
9943
9944        # Someone might think of using the pre-installed headers on
9945        # Canadian crosses, in case the installed compiler is not fully
9946        # compatible with the compiler being built.  In this case, it
9947        # would be better to flag an error than risking having
9948        # incompatible object files being constructed.  We can't
9949        # guarantee that an error will be flagged, but let's hope the
9950        # compiler will do it, when presented with incompatible header
9951        # files.
9952      fi
9953    fi
9954
9955    case "${target}-${is_cross_compiler}" in
9956    i[3456789]86-*-linux*-no)
9957       # Here host == target, so we don't need to build gcc,
9958       # so we don't want to discard standard headers.
9959       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9960       ;;
9961    *)
9962       # If we're building newlib, use its generic headers last, but search
9963       # for any libc-related directories first (so make it the last -B
9964       # switch).
9965       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
9966
9967       # If we're building libgloss, find the startup file, simulator library
9968       # and linker script.
9969       case " $target_configdirs " in
9970         *" libgloss "*)
9971         # Look for startup file, simulator library and maybe linker script.
9972         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
9973         # Look for libnosys.a in case the target needs it.
9974         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
9975         # Most targets have the linker script in the source directory.
9976         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
9977         ;;
9978       esac
9979       ;;
9980    esac
9981    ;;
9982   esac
9983   ;;
9984 esac
9985
9986 case "$target" in
9987   x86_64-*mingw* | *-w64-mingw*)
9988   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
9989   # however, use a symlink named 'mingw' in ${prefix} .
9990     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
9991     ;;
9992   *-mingw*)
9993   # MinGW can't be handled as Cygwin above since it does not use newlib.
9994     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'
9995     ;;
9996 esac
9997
9998 # Allow the user to override the flags for
9999 # our build compiler if desired.
10000 if test x"${build}" = x"${host}" ; then
10001   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10002   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10003   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10004 fi
10005
10006 # On Canadian crosses, we'll be searching the right directories for
10007 # the previously-installed cross compiler, so don't bother to add
10008 # flags for directories within the install tree of the compiler
10009 # being built; programs in there won't even run.
10010 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10011   # Search for pre-installed headers if nothing else fits.
10012   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10013 fi
10014
10015 if test "x${use_gnu_ld}" = x &&
10016    echo " ${configdirs} " | grep " ld " > /dev/null ; then
10017   # Arrange for us to find uninstalled linker scripts.
10018   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10019 fi
10020
10021 # Search for other target-specific linker scripts and such.
10022 case "${target}" in
10023   mep*)
10024     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10025     ;;
10026 esac
10027
10028 # Makefile fragments.
10029 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10030 do
10031   eval fragval=\$$frag
10032   if test $fragval != /dev/null; then
10033     eval $frag=${srcdir}/$fragval
10034   fi
10035 done
10036
10037
10038
10039
10040
10041 # Miscellanea: directories, flags, etc.
10042
10043
10044
10045
10046
10047
10048
10049
10050 # Build module lists & subconfigure args.
10051
10052
10053
10054 # Host module lists & subconfigure args.
10055
10056
10057
10058
10059 # Target module lists & subconfigure args.
10060
10061
10062
10063 # Build tools.
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082 # Generate default definitions for YACC, M4, LEX and other programs that run
10083 # on the build machine.  These are used if the Makefile can't locate these
10084 # programs in objdir.
10085 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10086
10087 for ac_prog in 'bison -y' byacc yacc
10088 do
10089   # Extract the first word of "$ac_prog", so it can be a program name with args.
10090 set dummy $ac_prog; ac_word=$2
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10092 $as_echo_n "checking for $ac_word... " >&6; }
10093 if ${ac_cv_prog_YACC+:} false; then :
10094   $as_echo_n "(cached) " >&6
10095 else
10096   if test -n "$YACC"; then
10097   ac_cv_prog_YACC="$YACC" # Let the user override the test.
10098 else
10099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10100 for as_dir in $PATH
10101 do
10102   IFS=$as_save_IFS
10103   test -z "$as_dir" && as_dir=.
10104     for ac_exec_ext in '' $ac_executable_extensions; do
10105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10106     ac_cv_prog_YACC="$ac_prog"
10107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10108     break 2
10109   fi
10110 done
10111   done
10112 IFS=$as_save_IFS
10113
10114 fi
10115 fi
10116 YACC=$ac_cv_prog_YACC
10117 if test -n "$YACC"; then
10118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10119 $as_echo "$YACC" >&6; }
10120 else
10121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10122 $as_echo "no" >&6; }
10123 fi
10124
10125
10126   test -n "$YACC" && break
10127 done
10128 test -n "$YACC" || YACC="$MISSING bison -y"
10129
10130 case " $build_configdirs " in
10131   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10132 esac
10133
10134 for ac_prog in bison
10135 do
10136   # Extract the first word of "$ac_prog", so it can be a program name with args.
10137 set dummy $ac_prog; ac_word=$2
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139 $as_echo_n "checking for $ac_word... " >&6; }
10140 if ${ac_cv_prog_BISON+:} false; then :
10141   $as_echo_n "(cached) " >&6
10142 else
10143   if test -n "$BISON"; then
10144   ac_cv_prog_BISON="$BISON" # Let the user override the test.
10145 else
10146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147 for as_dir in $PATH
10148 do
10149   IFS=$as_save_IFS
10150   test -z "$as_dir" && as_dir=.
10151     for ac_exec_ext in '' $ac_executable_extensions; do
10152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10153     ac_cv_prog_BISON="$ac_prog"
10154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10155     break 2
10156   fi
10157 done
10158   done
10159 IFS=$as_save_IFS
10160
10161 fi
10162 fi
10163 BISON=$ac_cv_prog_BISON
10164 if test -n "$BISON"; then
10165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10166 $as_echo "$BISON" >&6; }
10167 else
10168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 $as_echo "no" >&6; }
10170 fi
10171
10172
10173   test -n "$BISON" && break
10174 done
10175 test -n "$BISON" || BISON="$MISSING bison"
10176
10177 case " $build_configdirs " in
10178   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10179 esac
10180
10181 for ac_prog in gm4 gnum4 m4
10182 do
10183   # Extract the first word of "$ac_prog", so it can be a program name with args.
10184 set dummy $ac_prog; ac_word=$2
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10186 $as_echo_n "checking for $ac_word... " >&6; }
10187 if ${ac_cv_prog_M4+:} false; then :
10188   $as_echo_n "(cached) " >&6
10189 else
10190   if test -n "$M4"; then
10191   ac_cv_prog_M4="$M4" # Let the user override the test.
10192 else
10193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10195 do
10196   IFS=$as_save_IFS
10197   test -z "$as_dir" && as_dir=.
10198     for ac_exec_ext in '' $ac_executable_extensions; do
10199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200     ac_cv_prog_M4="$ac_prog"
10201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10202     break 2
10203   fi
10204 done
10205   done
10206 IFS=$as_save_IFS
10207
10208 fi
10209 fi
10210 M4=$ac_cv_prog_M4
10211 if test -n "$M4"; then
10212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10213 $as_echo "$M4" >&6; }
10214 else
10215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216 $as_echo "no" >&6; }
10217 fi
10218
10219
10220   test -n "$M4" && break
10221 done
10222 test -n "$M4" || M4="$MISSING m4"
10223
10224 case " $build_configdirs " in
10225   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10226 esac
10227
10228 for ac_prog in flex lex
10229 do
10230   # Extract the first word of "$ac_prog", so it can be a program name with args.
10231 set dummy $ac_prog; ac_word=$2
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233 $as_echo_n "checking for $ac_word... " >&6; }
10234 if ${ac_cv_prog_LEX+:} false; then :
10235   $as_echo_n "(cached) " >&6
10236 else
10237   if test -n "$LEX"; then
10238   ac_cv_prog_LEX="$LEX" # Let the user override the test.
10239 else
10240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241 for as_dir in $PATH
10242 do
10243   IFS=$as_save_IFS
10244   test -z "$as_dir" && as_dir=.
10245     for ac_exec_ext in '' $ac_executable_extensions; do
10246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10247     ac_cv_prog_LEX="$ac_prog"
10248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10249     break 2
10250   fi
10251 done
10252   done
10253 IFS=$as_save_IFS
10254
10255 fi
10256 fi
10257 LEX=$ac_cv_prog_LEX
10258 if test -n "$LEX"; then
10259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10260 $as_echo "$LEX" >&6; }
10261 else
10262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263 $as_echo "no" >&6; }
10264 fi
10265
10266
10267   test -n "$LEX" && break
10268 done
10269 test -n "$LEX" || LEX="$MISSING flex"
10270
10271 case " $build_configdirs " in
10272   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10273   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10274 esac
10275
10276 for ac_prog in flex
10277 do
10278   # Extract the first word of "$ac_prog", so it can be a program name with args.
10279 set dummy $ac_prog; ac_word=$2
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10281 $as_echo_n "checking for $ac_word... " >&6; }
10282 if ${ac_cv_prog_FLEX+:} false; then :
10283   $as_echo_n "(cached) " >&6
10284 else
10285   if test -n "$FLEX"; then
10286   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10287 else
10288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289 for as_dir in $PATH
10290 do
10291   IFS=$as_save_IFS
10292   test -z "$as_dir" && as_dir=.
10293     for ac_exec_ext in '' $ac_executable_extensions; do
10294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10295     ac_cv_prog_FLEX="$ac_prog"
10296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10297     break 2
10298   fi
10299 done
10300   done
10301 IFS=$as_save_IFS
10302
10303 fi
10304 fi
10305 FLEX=$ac_cv_prog_FLEX
10306 if test -n "$FLEX"; then
10307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10308 $as_echo "$FLEX" >&6; }
10309 else
10310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10311 $as_echo "no" >&6; }
10312 fi
10313
10314
10315   test -n "$FLEX" && break
10316 done
10317 test -n "$FLEX" || FLEX="$MISSING flex"
10318
10319 case " $build_configdirs " in
10320   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10321 esac
10322
10323 for ac_prog in makeinfo
10324 do
10325   # Extract the first word of "$ac_prog", so it can be a program name with args.
10326 set dummy $ac_prog; ac_word=$2
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328 $as_echo_n "checking for $ac_word... " >&6; }
10329 if ${ac_cv_prog_MAKEINFO+:} false; then :
10330   $as_echo_n "(cached) " >&6
10331 else
10332   if test -n "$MAKEINFO"; then
10333   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10334 else
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10337 do
10338   IFS=$as_save_IFS
10339   test -z "$as_dir" && as_dir=.
10340     for ac_exec_ext in '' $ac_executable_extensions; do
10341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10342     ac_cv_prog_MAKEINFO="$ac_prog"
10343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344     break 2
10345   fi
10346 done
10347   done
10348 IFS=$as_save_IFS
10349
10350 fi
10351 fi
10352 MAKEINFO=$ac_cv_prog_MAKEINFO
10353 if test -n "$MAKEINFO"; then
10354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10355 $as_echo "$MAKEINFO" >&6; }
10356 else
10357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 $as_echo "no" >&6; }
10359 fi
10360
10361
10362   test -n "$MAKEINFO" && break
10363 done
10364 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10365
10366 case " $build_configdirs " in
10367   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10368   *)
10369
10370     # For an installed makeinfo, we require it to be from texinfo 4.7 or
10371     # higher, else we use the "missing" dummy.
10372     if ${MAKEINFO} --version \
10373        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10374       :
10375     else
10376       MAKEINFO="$MISSING makeinfo"
10377     fi
10378     ;;
10379
10380 esac
10381
10382 # FIXME: expect and dejagnu may become build tools?
10383
10384 for ac_prog in expect
10385 do
10386   # Extract the first word of "$ac_prog", so it can be a program name with args.
10387 set dummy $ac_prog; ac_word=$2
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389 $as_echo_n "checking for $ac_word... " >&6; }
10390 if ${ac_cv_prog_EXPECT+:} false; then :
10391   $as_echo_n "(cached) " >&6
10392 else
10393   if test -n "$EXPECT"; then
10394   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10395 else
10396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397 for as_dir in $PATH
10398 do
10399   IFS=$as_save_IFS
10400   test -z "$as_dir" && as_dir=.
10401     for ac_exec_ext in '' $ac_executable_extensions; do
10402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10403     ac_cv_prog_EXPECT="$ac_prog"
10404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10405     break 2
10406   fi
10407 done
10408   done
10409 IFS=$as_save_IFS
10410
10411 fi
10412 fi
10413 EXPECT=$ac_cv_prog_EXPECT
10414 if test -n "$EXPECT"; then
10415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10416 $as_echo "$EXPECT" >&6; }
10417 else
10418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 $as_echo "no" >&6; }
10420 fi
10421
10422
10423   test -n "$EXPECT" && break
10424 done
10425 test -n "$EXPECT" || EXPECT="expect"
10426
10427 case " $configdirs " in
10428   *" expect "*)
10429     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10430     ;;
10431 esac
10432
10433 for ac_prog in runtest
10434 do
10435   # Extract the first word of "$ac_prog", so it can be a program name with args.
10436 set dummy $ac_prog; ac_word=$2
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10438 $as_echo_n "checking for $ac_word... " >&6; }
10439 if ${ac_cv_prog_RUNTEST+:} false; then :
10440   $as_echo_n "(cached) " >&6
10441 else
10442   if test -n "$RUNTEST"; then
10443   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10444 else
10445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446 for as_dir in $PATH
10447 do
10448   IFS=$as_save_IFS
10449   test -z "$as_dir" && as_dir=.
10450     for ac_exec_ext in '' $ac_executable_extensions; do
10451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10452     ac_cv_prog_RUNTEST="$ac_prog"
10453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10454     break 2
10455   fi
10456 done
10457   done
10458 IFS=$as_save_IFS
10459
10460 fi
10461 fi
10462 RUNTEST=$ac_cv_prog_RUNTEST
10463 if test -n "$RUNTEST"; then
10464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10465 $as_echo "$RUNTEST" >&6; }
10466 else
10467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10468 $as_echo "no" >&6; }
10469 fi
10470
10471
10472   test -n "$RUNTEST" && break
10473 done
10474 test -n "$RUNTEST" || RUNTEST="runtest"
10475
10476 case " $configdirs " in
10477   *" dejagnu "*)
10478     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10479     ;;
10480 esac
10481
10482
10483 # Host tools.
10484 ncn_tool_prefix=
10485 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10486 ncn_target_tool_prefix=
10487 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10488
10489
10490
10491 if test -n "$AR"; then
10492   ac_cv_prog_AR=$AR
10493 elif test -n "$ac_cv_prog_AR"; then
10494   AR=$ac_cv_prog_AR
10495 fi
10496
10497 if test -n "$ac_cv_prog_AR"; then
10498   for ncn_progname in ar; do
10499     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10500 set dummy ${ncn_progname}; ac_word=$2
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10502 $as_echo_n "checking for $ac_word... " >&6; }
10503 if ${ac_cv_prog_AR+:} false; then :
10504   $as_echo_n "(cached) " >&6
10505 else
10506   if test -n "$AR"; then
10507   ac_cv_prog_AR="$AR" # Let the user override the test.
10508 else
10509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10510 for as_dir in $PATH
10511 do
10512   IFS=$as_save_IFS
10513   test -z "$as_dir" && as_dir=.
10514     for ac_exec_ext in '' $ac_executable_extensions; do
10515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10516     ac_cv_prog_AR="${ncn_progname}"
10517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10518     break 2
10519   fi
10520 done
10521   done
10522 IFS=$as_save_IFS
10523
10524 fi
10525 fi
10526 AR=$ac_cv_prog_AR
10527 if test -n "$AR"; then
10528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10529 $as_echo "$AR" >&6; }
10530 else
10531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532 $as_echo "no" >&6; }
10533 fi
10534
10535
10536   done
10537 fi
10538
10539 for ncn_progname in ar; do
10540   if test -n "$ncn_tool_prefix"; then
10541     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10542 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544 $as_echo_n "checking for $ac_word... " >&6; }
10545 if ${ac_cv_prog_AR+:} false; then :
10546   $as_echo_n "(cached) " >&6
10547 else
10548   if test -n "$AR"; then
10549   ac_cv_prog_AR="$AR" # Let the user override the test.
10550 else
10551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552 for as_dir in $PATH
10553 do
10554   IFS=$as_save_IFS
10555   test -z "$as_dir" && as_dir=.
10556     for ac_exec_ext in '' $ac_executable_extensions; do
10557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10558     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10560     break 2
10561   fi
10562 done
10563   done
10564 IFS=$as_save_IFS
10565
10566 fi
10567 fi
10568 AR=$ac_cv_prog_AR
10569 if test -n "$AR"; then
10570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10571 $as_echo "$AR" >&6; }
10572 else
10573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574 $as_echo "no" >&6; }
10575 fi
10576
10577
10578   fi
10579   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10580     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10581 set dummy ${ncn_progname}; ac_word=$2
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583 $as_echo_n "checking for $ac_word... " >&6; }
10584 if ${ac_cv_prog_AR+:} false; then :
10585   $as_echo_n "(cached) " >&6
10586 else
10587   if test -n "$AR"; then
10588   ac_cv_prog_AR="$AR" # Let the user override the test.
10589 else
10590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591 for as_dir in $PATH
10592 do
10593   IFS=$as_save_IFS
10594   test -z "$as_dir" && as_dir=.
10595     for ac_exec_ext in '' $ac_executable_extensions; do
10596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10597     ac_cv_prog_AR="${ncn_progname}"
10598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10599     break 2
10600   fi
10601 done
10602   done
10603 IFS=$as_save_IFS
10604
10605 fi
10606 fi
10607 AR=$ac_cv_prog_AR
10608 if test -n "$AR"; then
10609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10610 $as_echo "$AR" >&6; }
10611 else
10612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613 $as_echo "no" >&6; }
10614 fi
10615
10616
10617   fi
10618   test -n "$ac_cv_prog_AR" && break
10619 done
10620
10621 if test -z "$ac_cv_prog_AR" ; then
10622   set dummy ar
10623   if test $build = $host ; then
10624     AR="$2"
10625   else
10626     AR="${ncn_tool_prefix}$2"
10627   fi
10628 fi
10629
10630
10631
10632 if test -n "$AS"; then
10633   ac_cv_prog_AS=$AS
10634 elif test -n "$ac_cv_prog_AS"; then
10635   AS=$ac_cv_prog_AS
10636 fi
10637
10638 if test -n "$ac_cv_prog_AS"; then
10639   for ncn_progname in as; do
10640     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10641 set dummy ${ncn_progname}; ac_word=$2
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10643 $as_echo_n "checking for $ac_word... " >&6; }
10644 if ${ac_cv_prog_AS+:} false; then :
10645   $as_echo_n "(cached) " >&6
10646 else
10647   if test -n "$AS"; then
10648   ac_cv_prog_AS="$AS" # Let the user override the test.
10649 else
10650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10651 for as_dir in $PATH
10652 do
10653   IFS=$as_save_IFS
10654   test -z "$as_dir" && as_dir=.
10655     for ac_exec_ext in '' $ac_executable_extensions; do
10656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10657     ac_cv_prog_AS="${ncn_progname}"
10658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10659     break 2
10660   fi
10661 done
10662   done
10663 IFS=$as_save_IFS
10664
10665 fi
10666 fi
10667 AS=$ac_cv_prog_AS
10668 if test -n "$AS"; then
10669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10670 $as_echo "$AS" >&6; }
10671 else
10672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10673 $as_echo "no" >&6; }
10674 fi
10675
10676
10677   done
10678 fi
10679
10680 for ncn_progname in as; do
10681   if test -n "$ncn_tool_prefix"; then
10682     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10683 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10685 $as_echo_n "checking for $ac_word... " >&6; }
10686 if ${ac_cv_prog_AS+:} false; then :
10687   $as_echo_n "(cached) " >&6
10688 else
10689   if test -n "$AS"; then
10690   ac_cv_prog_AS="$AS" # Let the user override the test.
10691 else
10692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693 for as_dir in $PATH
10694 do
10695   IFS=$as_save_IFS
10696   test -z "$as_dir" && as_dir=.
10697     for ac_exec_ext in '' $ac_executable_extensions; do
10698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10699     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10701     break 2
10702   fi
10703 done
10704   done
10705 IFS=$as_save_IFS
10706
10707 fi
10708 fi
10709 AS=$ac_cv_prog_AS
10710 if test -n "$AS"; then
10711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10712 $as_echo "$AS" >&6; }
10713 else
10714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715 $as_echo "no" >&6; }
10716 fi
10717
10718
10719   fi
10720   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10721     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10722 set dummy ${ncn_progname}; ac_word=$2
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10724 $as_echo_n "checking for $ac_word... " >&6; }
10725 if ${ac_cv_prog_AS+:} false; then :
10726   $as_echo_n "(cached) " >&6
10727 else
10728   if test -n "$AS"; then
10729   ac_cv_prog_AS="$AS" # Let the user override the test.
10730 else
10731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10732 for as_dir in $PATH
10733 do
10734   IFS=$as_save_IFS
10735   test -z "$as_dir" && as_dir=.
10736     for ac_exec_ext in '' $ac_executable_extensions; do
10737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10738     ac_cv_prog_AS="${ncn_progname}"
10739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10740     break 2
10741   fi
10742 done
10743   done
10744 IFS=$as_save_IFS
10745
10746 fi
10747 fi
10748 AS=$ac_cv_prog_AS
10749 if test -n "$AS"; then
10750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10751 $as_echo "$AS" >&6; }
10752 else
10753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10754 $as_echo "no" >&6; }
10755 fi
10756
10757
10758   fi
10759   test -n "$ac_cv_prog_AS" && break
10760 done
10761
10762 if test -z "$ac_cv_prog_AS" ; then
10763   set dummy as
10764   if test $build = $host ; then
10765     AS="$2"
10766   else
10767     AS="${ncn_tool_prefix}$2"
10768   fi
10769 fi
10770
10771
10772
10773 if test -n "$DLLTOOL"; then
10774   ac_cv_prog_DLLTOOL=$DLLTOOL
10775 elif test -n "$ac_cv_prog_DLLTOOL"; then
10776   DLLTOOL=$ac_cv_prog_DLLTOOL
10777 fi
10778
10779 if test -n "$ac_cv_prog_DLLTOOL"; then
10780   for ncn_progname in dlltool; do
10781     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10782 set dummy ${ncn_progname}; ac_word=$2
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10784 $as_echo_n "checking for $ac_word... " >&6; }
10785 if ${ac_cv_prog_DLLTOOL+:} false; then :
10786   $as_echo_n "(cached) " >&6
10787 else
10788   if test -n "$DLLTOOL"; then
10789   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10790 else
10791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792 for as_dir in $PATH
10793 do
10794   IFS=$as_save_IFS
10795   test -z "$as_dir" && as_dir=.
10796     for ac_exec_ext in '' $ac_executable_extensions; do
10797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10798     ac_cv_prog_DLLTOOL="${ncn_progname}"
10799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10800     break 2
10801   fi
10802 done
10803   done
10804 IFS=$as_save_IFS
10805
10806 fi
10807 fi
10808 DLLTOOL=$ac_cv_prog_DLLTOOL
10809 if test -n "$DLLTOOL"; then
10810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10811 $as_echo "$DLLTOOL" >&6; }
10812 else
10813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; }
10815 fi
10816
10817
10818   done
10819 fi
10820
10821 for ncn_progname in dlltool; do
10822   if test -n "$ncn_tool_prefix"; then
10823     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10824 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826 $as_echo_n "checking for $ac_word... " >&6; }
10827 if ${ac_cv_prog_DLLTOOL+:} false; then :
10828   $as_echo_n "(cached) " >&6
10829 else
10830   if test -n "$DLLTOOL"; then
10831   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10832 else
10833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834 for as_dir in $PATH
10835 do
10836   IFS=$as_save_IFS
10837   test -z "$as_dir" && as_dir=.
10838     for ac_exec_ext in '' $ac_executable_extensions; do
10839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10840     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
10841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10842     break 2
10843   fi
10844 done
10845   done
10846 IFS=$as_save_IFS
10847
10848 fi
10849 fi
10850 DLLTOOL=$ac_cv_prog_DLLTOOL
10851 if test -n "$DLLTOOL"; then
10852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10853 $as_echo "$DLLTOOL" >&6; }
10854 else
10855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856 $as_echo "no" >&6; }
10857 fi
10858
10859
10860   fi
10861   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10862     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10863 set dummy ${ncn_progname}; ac_word=$2
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10865 $as_echo_n "checking for $ac_word... " >&6; }
10866 if ${ac_cv_prog_DLLTOOL+:} false; then :
10867   $as_echo_n "(cached) " >&6
10868 else
10869   if test -n "$DLLTOOL"; then
10870   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10871 else
10872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873 for as_dir in $PATH
10874 do
10875   IFS=$as_save_IFS
10876   test -z "$as_dir" && as_dir=.
10877     for ac_exec_ext in '' $ac_executable_extensions; do
10878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10879     ac_cv_prog_DLLTOOL="${ncn_progname}"
10880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10881     break 2
10882   fi
10883 done
10884   done
10885 IFS=$as_save_IFS
10886
10887 fi
10888 fi
10889 DLLTOOL=$ac_cv_prog_DLLTOOL
10890 if test -n "$DLLTOOL"; then
10891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10892 $as_echo "$DLLTOOL" >&6; }
10893 else
10894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895 $as_echo "no" >&6; }
10896 fi
10897
10898
10899   fi
10900   test -n "$ac_cv_prog_DLLTOOL" && break
10901 done
10902
10903 if test -z "$ac_cv_prog_DLLTOOL" ; then
10904   set dummy dlltool
10905   if test $build = $host ; then
10906     DLLTOOL="$2"
10907   else
10908     DLLTOOL="${ncn_tool_prefix}$2"
10909   fi
10910 fi
10911
10912
10913
10914 if test -n "$DSYMUTIL"; then
10915   ac_cv_prog_DSYMUTIL=$DSYMUTIL
10916 elif test -n "$ac_cv_prog_DSYMUTIL"; then
10917   DSYMUTIL=$ac_cv_prog_DSYMUTIL
10918 fi
10919
10920 if test -n "$ac_cv_prog_DSYMUTIL"; then
10921   for ncn_progname in dsymutil; do
10922     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10923 set dummy ${ncn_progname}; ac_word=$2
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925 $as_echo_n "checking for $ac_word... " >&6; }
10926 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10927   $as_echo_n "(cached) " >&6
10928 else
10929   if test -n "$DSYMUTIL"; then
10930   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10931 else
10932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933 for as_dir in $PATH
10934 do
10935   IFS=$as_save_IFS
10936   test -z "$as_dir" && as_dir=.
10937     for ac_exec_ext in '' $ac_executable_extensions; do
10938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10939     ac_cv_prog_DSYMUTIL="${ncn_progname}"
10940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10941     break 2
10942   fi
10943 done
10944   done
10945 IFS=$as_save_IFS
10946
10947 fi
10948 fi
10949 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10950 if test -n "$DSYMUTIL"; then
10951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10952 $as_echo "$DSYMUTIL" >&6; }
10953 else
10954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955 $as_echo "no" >&6; }
10956 fi
10957
10958
10959   done
10960 fi
10961
10962 for ncn_progname in dsymutil; do
10963   if test -n "$ncn_tool_prefix"; then
10964     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10965 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967 $as_echo_n "checking for $ac_word... " >&6; }
10968 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10969   $as_echo_n "(cached) " >&6
10970 else
10971   if test -n "$DSYMUTIL"; then
10972   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10973 else
10974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975 for as_dir in $PATH
10976 do
10977   IFS=$as_save_IFS
10978   test -z "$as_dir" && as_dir=.
10979     for ac_exec_ext in '' $ac_executable_extensions; do
10980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10981     ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
10982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10983     break 2
10984   fi
10985 done
10986   done
10987 IFS=$as_save_IFS
10988
10989 fi
10990 fi
10991 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10992 if test -n "$DSYMUTIL"; then
10993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10994 $as_echo "$DSYMUTIL" >&6; }
10995 else
10996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997 $as_echo "no" >&6; }
10998 fi
10999
11000
11001   fi
11002   if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11003     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11004 set dummy ${ncn_progname}; ac_word=$2
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11006 $as_echo_n "checking for $ac_word... " >&6; }
11007 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11008   $as_echo_n "(cached) " >&6
11009 else
11010   if test -n "$DSYMUTIL"; then
11011   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11012 else
11013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11015 do
11016   IFS=$as_save_IFS
11017   test -z "$as_dir" && as_dir=.
11018     for ac_exec_ext in '' $ac_executable_extensions; do
11019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020     ac_cv_prog_DSYMUTIL="${ncn_progname}"
11021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11022     break 2
11023   fi
11024 done
11025   done
11026 IFS=$as_save_IFS
11027
11028 fi
11029 fi
11030 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11031 if test -n "$DSYMUTIL"; then
11032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11033 $as_echo "$DSYMUTIL" >&6; }
11034 else
11035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036 $as_echo "no" >&6; }
11037 fi
11038
11039
11040   fi
11041   test -n "$ac_cv_prog_DSYMUTIL" && break
11042 done
11043
11044 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11045   set dummy dsymutil
11046   if test $build = $host ; then
11047     DSYMUTIL="$2"
11048   else
11049     DSYMUTIL="${ncn_tool_prefix}$2"
11050   fi
11051 fi
11052
11053
11054
11055 if test -n "$LD"; then
11056   ac_cv_prog_LD=$LD
11057 elif test -n "$ac_cv_prog_LD"; then
11058   LD=$ac_cv_prog_LD
11059 fi
11060
11061 if test -n "$ac_cv_prog_LD"; then
11062   for ncn_progname in ld; do
11063     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11064 set dummy ${ncn_progname}; ac_word=$2
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11066 $as_echo_n "checking for $ac_word... " >&6; }
11067 if ${ac_cv_prog_LD+:} false; then :
11068   $as_echo_n "(cached) " >&6
11069 else
11070   if test -n "$LD"; then
11071   ac_cv_prog_LD="$LD" # Let the user override the test.
11072 else
11073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11074 for as_dir in $PATH
11075 do
11076   IFS=$as_save_IFS
11077   test -z "$as_dir" && as_dir=.
11078     for ac_exec_ext in '' $ac_executable_extensions; do
11079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11080     ac_cv_prog_LD="${ncn_progname}"
11081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11082     break 2
11083   fi
11084 done
11085   done
11086 IFS=$as_save_IFS
11087
11088 fi
11089 fi
11090 LD=$ac_cv_prog_LD
11091 if test -n "$LD"; then
11092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11093 $as_echo "$LD" >&6; }
11094 else
11095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11096 $as_echo "no" >&6; }
11097 fi
11098
11099
11100   done
11101 fi
11102
11103 for ncn_progname in ld; do
11104   if test -n "$ncn_tool_prefix"; then
11105     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11106 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 $as_echo_n "checking for $ac_word... " >&6; }
11109 if ${ac_cv_prog_LD+:} false; then :
11110   $as_echo_n "(cached) " >&6
11111 else
11112   if test -n "$LD"; then
11113   ac_cv_prog_LD="$LD" # Let the user override the test.
11114 else
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11117 do
11118   IFS=$as_save_IFS
11119   test -z "$as_dir" && as_dir=.
11120     for ac_exec_ext in '' $ac_executable_extensions; do
11121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11122     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124     break 2
11125   fi
11126 done
11127   done
11128 IFS=$as_save_IFS
11129
11130 fi
11131 fi
11132 LD=$ac_cv_prog_LD
11133 if test -n "$LD"; then
11134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11135 $as_echo "$LD" >&6; }
11136 else
11137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138 $as_echo "no" >&6; }
11139 fi
11140
11141
11142   fi
11143   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11144     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11145 set dummy ${ncn_progname}; ac_word=$2
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11147 $as_echo_n "checking for $ac_word... " >&6; }
11148 if ${ac_cv_prog_LD+:} false; then :
11149   $as_echo_n "(cached) " >&6
11150 else
11151   if test -n "$LD"; then
11152   ac_cv_prog_LD="$LD" # Let the user override the test.
11153 else
11154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11155 for as_dir in $PATH
11156 do
11157   IFS=$as_save_IFS
11158   test -z "$as_dir" && as_dir=.
11159     for ac_exec_ext in '' $ac_executable_extensions; do
11160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11161     ac_cv_prog_LD="${ncn_progname}"
11162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11163     break 2
11164   fi
11165 done
11166   done
11167 IFS=$as_save_IFS
11168
11169 fi
11170 fi
11171 LD=$ac_cv_prog_LD
11172 if test -n "$LD"; then
11173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11174 $as_echo "$LD" >&6; }
11175 else
11176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 $as_echo "no" >&6; }
11178 fi
11179
11180
11181   fi
11182   test -n "$ac_cv_prog_LD" && break
11183 done
11184
11185 if test -z "$ac_cv_prog_LD" ; then
11186   set dummy ld
11187   if test $build = $host ; then
11188     LD="$2"
11189   else
11190     LD="${ncn_tool_prefix}$2"
11191   fi
11192 fi
11193
11194
11195
11196 if test -n "$LIPO"; then
11197   ac_cv_prog_LIPO=$LIPO
11198 elif test -n "$ac_cv_prog_LIPO"; then
11199   LIPO=$ac_cv_prog_LIPO
11200 fi
11201
11202 if test -n "$ac_cv_prog_LIPO"; then
11203   for ncn_progname in lipo; do
11204     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11205 set dummy ${ncn_progname}; ac_word=$2
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207 $as_echo_n "checking for $ac_word... " >&6; }
11208 if ${ac_cv_prog_LIPO+:} false; then :
11209   $as_echo_n "(cached) " >&6
11210 else
11211   if test -n "$LIPO"; then
11212   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11213 else
11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215 for as_dir in $PATH
11216 do
11217   IFS=$as_save_IFS
11218   test -z "$as_dir" && as_dir=.
11219     for ac_exec_ext in '' $ac_executable_extensions; do
11220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11221     ac_cv_prog_LIPO="${ncn_progname}"
11222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11223     break 2
11224   fi
11225 done
11226   done
11227 IFS=$as_save_IFS
11228
11229 fi
11230 fi
11231 LIPO=$ac_cv_prog_LIPO
11232 if test -n "$LIPO"; then
11233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11234 $as_echo "$LIPO" >&6; }
11235 else
11236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237 $as_echo "no" >&6; }
11238 fi
11239
11240
11241   done
11242 fi
11243
11244 for ncn_progname in lipo; do
11245   if test -n "$ncn_tool_prefix"; then
11246     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11247 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11249 $as_echo_n "checking for $ac_word... " >&6; }
11250 if ${ac_cv_prog_LIPO+:} false; then :
11251   $as_echo_n "(cached) " >&6
11252 else
11253   if test -n "$LIPO"; then
11254   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11255 else
11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 for as_dir in $PATH
11258 do
11259   IFS=$as_save_IFS
11260   test -z "$as_dir" && as_dir=.
11261     for ac_exec_ext in '' $ac_executable_extensions; do
11262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11263     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11265     break 2
11266   fi
11267 done
11268   done
11269 IFS=$as_save_IFS
11270
11271 fi
11272 fi
11273 LIPO=$ac_cv_prog_LIPO
11274 if test -n "$LIPO"; then
11275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11276 $as_echo "$LIPO" >&6; }
11277 else
11278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11280 fi
11281
11282
11283   fi
11284   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11285     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11286 set dummy ${ncn_progname}; ac_word=$2
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288 $as_echo_n "checking for $ac_word... " >&6; }
11289 if ${ac_cv_prog_LIPO+:} false; then :
11290   $as_echo_n "(cached) " >&6
11291 else
11292   if test -n "$LIPO"; then
11293   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11294 else
11295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296 for as_dir in $PATH
11297 do
11298   IFS=$as_save_IFS
11299   test -z "$as_dir" && as_dir=.
11300     for ac_exec_ext in '' $ac_executable_extensions; do
11301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11302     ac_cv_prog_LIPO="${ncn_progname}"
11303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11304     break 2
11305   fi
11306 done
11307   done
11308 IFS=$as_save_IFS
11309
11310 fi
11311 fi
11312 LIPO=$ac_cv_prog_LIPO
11313 if test -n "$LIPO"; then
11314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11315 $as_echo "$LIPO" >&6; }
11316 else
11317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318 $as_echo "no" >&6; }
11319 fi
11320
11321
11322   fi
11323   test -n "$ac_cv_prog_LIPO" && break
11324 done
11325
11326 if test -z "$ac_cv_prog_LIPO" ; then
11327   set dummy lipo
11328   if test $build = $host ; then
11329     LIPO="$2"
11330   else
11331     LIPO="${ncn_tool_prefix}$2"
11332   fi
11333 fi
11334
11335
11336
11337 if test -n "$NM"; then
11338   ac_cv_prog_NM=$NM
11339 elif test -n "$ac_cv_prog_NM"; then
11340   NM=$ac_cv_prog_NM
11341 fi
11342
11343 if test -n "$ac_cv_prog_NM"; then
11344   for ncn_progname in nm; do
11345     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11346 set dummy ${ncn_progname}; ac_word=$2
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11348 $as_echo_n "checking for $ac_word... " >&6; }
11349 if ${ac_cv_prog_NM+:} false; then :
11350   $as_echo_n "(cached) " >&6
11351 else
11352   if test -n "$NM"; then
11353   ac_cv_prog_NM="$NM" # Let the user override the test.
11354 else
11355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11356 for as_dir in $PATH
11357 do
11358   IFS=$as_save_IFS
11359   test -z "$as_dir" && as_dir=.
11360     for ac_exec_ext in '' $ac_executable_extensions; do
11361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11362     ac_cv_prog_NM="${ncn_progname}"
11363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11364     break 2
11365   fi
11366 done
11367   done
11368 IFS=$as_save_IFS
11369
11370 fi
11371 fi
11372 NM=$ac_cv_prog_NM
11373 if test -n "$NM"; then
11374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11375 $as_echo "$NM" >&6; }
11376 else
11377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378 $as_echo "no" >&6; }
11379 fi
11380
11381
11382   done
11383 fi
11384
11385 for ncn_progname in nm; do
11386   if test -n "$ncn_tool_prefix"; then
11387     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11388 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11390 $as_echo_n "checking for $ac_word... " >&6; }
11391 if ${ac_cv_prog_NM+:} false; then :
11392   $as_echo_n "(cached) " >&6
11393 else
11394   if test -n "$NM"; then
11395   ac_cv_prog_NM="$NM" # Let the user override the test.
11396 else
11397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398 for as_dir in $PATH
11399 do
11400   IFS=$as_save_IFS
11401   test -z "$as_dir" && as_dir=.
11402     for ac_exec_ext in '' $ac_executable_extensions; do
11403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11404     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11406     break 2
11407   fi
11408 done
11409   done
11410 IFS=$as_save_IFS
11411
11412 fi
11413 fi
11414 NM=$ac_cv_prog_NM
11415 if test -n "$NM"; then
11416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11417 $as_echo "$NM" >&6; }
11418 else
11419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420 $as_echo "no" >&6; }
11421 fi
11422
11423
11424   fi
11425   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11426     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11427 set dummy ${ncn_progname}; ac_word=$2
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11429 $as_echo_n "checking for $ac_word... " >&6; }
11430 if ${ac_cv_prog_NM+:} false; then :
11431   $as_echo_n "(cached) " >&6
11432 else
11433   if test -n "$NM"; then
11434   ac_cv_prog_NM="$NM" # Let the user override the test.
11435 else
11436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437 for as_dir in $PATH
11438 do
11439   IFS=$as_save_IFS
11440   test -z "$as_dir" && as_dir=.
11441     for ac_exec_ext in '' $ac_executable_extensions; do
11442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11443     ac_cv_prog_NM="${ncn_progname}"
11444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11445     break 2
11446   fi
11447 done
11448   done
11449 IFS=$as_save_IFS
11450
11451 fi
11452 fi
11453 NM=$ac_cv_prog_NM
11454 if test -n "$NM"; then
11455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11456 $as_echo "$NM" >&6; }
11457 else
11458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; }
11460 fi
11461
11462
11463   fi
11464   test -n "$ac_cv_prog_NM" && break
11465 done
11466
11467 if test -z "$ac_cv_prog_NM" ; then
11468   set dummy nm
11469   if test $build = $host ; then
11470     NM="$2"
11471   else
11472     NM="${ncn_tool_prefix}$2"
11473   fi
11474 fi
11475
11476
11477
11478 if test -n "$RANLIB"; then
11479   ac_cv_prog_RANLIB=$RANLIB
11480 elif test -n "$ac_cv_prog_RANLIB"; then
11481   RANLIB=$ac_cv_prog_RANLIB
11482 fi
11483
11484 if test -n "$ac_cv_prog_RANLIB"; then
11485   for ncn_progname in ranlib; do
11486     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11487 set dummy ${ncn_progname}; ac_word=$2
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11489 $as_echo_n "checking for $ac_word... " >&6; }
11490 if ${ac_cv_prog_RANLIB+:} false; then :
11491   $as_echo_n "(cached) " >&6
11492 else
11493   if test -n "$RANLIB"; then
11494   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11495 else
11496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497 for as_dir in $PATH
11498 do
11499   IFS=$as_save_IFS
11500   test -z "$as_dir" && as_dir=.
11501     for ac_exec_ext in '' $ac_executable_extensions; do
11502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11503     ac_cv_prog_RANLIB="${ncn_progname}"
11504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11505     break 2
11506   fi
11507 done
11508   done
11509 IFS=$as_save_IFS
11510
11511 fi
11512 fi
11513 RANLIB=$ac_cv_prog_RANLIB
11514 if test -n "$RANLIB"; then
11515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11516 $as_echo "$RANLIB" >&6; }
11517 else
11518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519 $as_echo "no" >&6; }
11520 fi
11521
11522
11523   done
11524 fi
11525
11526 for ncn_progname in ranlib; do
11527   if test -n "$ncn_tool_prefix"; then
11528     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11529 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11531 $as_echo_n "checking for $ac_word... " >&6; }
11532 if ${ac_cv_prog_RANLIB+:} false; then :
11533   $as_echo_n "(cached) " >&6
11534 else
11535   if test -n "$RANLIB"; then
11536   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11537 else
11538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539 for as_dir in $PATH
11540 do
11541   IFS=$as_save_IFS
11542   test -z "$as_dir" && as_dir=.
11543     for ac_exec_ext in '' $ac_executable_extensions; do
11544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11545     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11547     break 2
11548   fi
11549 done
11550   done
11551 IFS=$as_save_IFS
11552
11553 fi
11554 fi
11555 RANLIB=$ac_cv_prog_RANLIB
11556 if test -n "$RANLIB"; then
11557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11558 $as_echo "$RANLIB" >&6; }
11559 else
11560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561 $as_echo "no" >&6; }
11562 fi
11563
11564
11565   fi
11566   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11567     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11568 set dummy ${ncn_progname}; ac_word=$2
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11570 $as_echo_n "checking for $ac_word... " >&6; }
11571 if ${ac_cv_prog_RANLIB+:} false; then :
11572   $as_echo_n "(cached) " >&6
11573 else
11574   if test -n "$RANLIB"; then
11575   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11576 else
11577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578 for as_dir in $PATH
11579 do
11580   IFS=$as_save_IFS
11581   test -z "$as_dir" && as_dir=.
11582     for ac_exec_ext in '' $ac_executable_extensions; do
11583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11584     ac_cv_prog_RANLIB="${ncn_progname}"
11585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11586     break 2
11587   fi
11588 done
11589   done
11590 IFS=$as_save_IFS
11591
11592 fi
11593 fi
11594 RANLIB=$ac_cv_prog_RANLIB
11595 if test -n "$RANLIB"; then
11596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11597 $as_echo "$RANLIB" >&6; }
11598 else
11599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600 $as_echo "no" >&6; }
11601 fi
11602
11603
11604   fi
11605   test -n "$ac_cv_prog_RANLIB" && break
11606 done
11607
11608 if test -z "$ac_cv_prog_RANLIB" ; then
11609   RANLIB="true"
11610 fi
11611
11612
11613
11614 if test -n "$STRIP"; then
11615   ac_cv_prog_STRIP=$STRIP
11616 elif test -n "$ac_cv_prog_STRIP"; then
11617   STRIP=$ac_cv_prog_STRIP
11618 fi
11619
11620 if test -n "$ac_cv_prog_STRIP"; then
11621   for ncn_progname in strip; do
11622     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11623 set dummy ${ncn_progname}; ac_word=$2
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625 $as_echo_n "checking for $ac_word... " >&6; }
11626 if ${ac_cv_prog_STRIP+:} false; then :
11627   $as_echo_n "(cached) " >&6
11628 else
11629   if test -n "$STRIP"; then
11630   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11631 else
11632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
11634 do
11635   IFS=$as_save_IFS
11636   test -z "$as_dir" && as_dir=.
11637     for ac_exec_ext in '' $ac_executable_extensions; do
11638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11639     ac_cv_prog_STRIP="${ncn_progname}"
11640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11641     break 2
11642   fi
11643 done
11644   done
11645 IFS=$as_save_IFS
11646
11647 fi
11648 fi
11649 STRIP=$ac_cv_prog_STRIP
11650 if test -n "$STRIP"; then
11651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11652 $as_echo "$STRIP" >&6; }
11653 else
11654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11656 fi
11657
11658
11659   done
11660 fi
11661
11662 for ncn_progname in strip; do
11663   if test -n "$ncn_tool_prefix"; then
11664     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11665 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11667 $as_echo_n "checking for $ac_word... " >&6; }
11668 if ${ac_cv_prog_STRIP+:} false; then :
11669   $as_echo_n "(cached) " >&6
11670 else
11671   if test -n "$STRIP"; then
11672   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11673 else
11674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675 for as_dir in $PATH
11676 do
11677   IFS=$as_save_IFS
11678   test -z "$as_dir" && as_dir=.
11679     for ac_exec_ext in '' $ac_executable_extensions; do
11680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11681     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11683     break 2
11684   fi
11685 done
11686   done
11687 IFS=$as_save_IFS
11688
11689 fi
11690 fi
11691 STRIP=$ac_cv_prog_STRIP
11692 if test -n "$STRIP"; then
11693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11694 $as_echo "$STRIP" >&6; }
11695 else
11696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 $as_echo "no" >&6; }
11698 fi
11699
11700
11701   fi
11702   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11703     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11704 set dummy ${ncn_progname}; ac_word=$2
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11706 $as_echo_n "checking for $ac_word... " >&6; }
11707 if ${ac_cv_prog_STRIP+:} false; then :
11708   $as_echo_n "(cached) " >&6
11709 else
11710   if test -n "$STRIP"; then
11711   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11712 else
11713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714 for as_dir in $PATH
11715 do
11716   IFS=$as_save_IFS
11717   test -z "$as_dir" && as_dir=.
11718     for ac_exec_ext in '' $ac_executable_extensions; do
11719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11720     ac_cv_prog_STRIP="${ncn_progname}"
11721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11722     break 2
11723   fi
11724 done
11725   done
11726 IFS=$as_save_IFS
11727
11728 fi
11729 fi
11730 STRIP=$ac_cv_prog_STRIP
11731 if test -n "$STRIP"; then
11732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11733 $as_echo "$STRIP" >&6; }
11734 else
11735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736 $as_echo "no" >&6; }
11737 fi
11738
11739
11740   fi
11741   test -n "$ac_cv_prog_STRIP" && break
11742 done
11743
11744 if test -z "$ac_cv_prog_STRIP" ; then
11745   STRIP="true"
11746 fi
11747
11748
11749
11750 if test -n "$WINDRES"; then
11751   ac_cv_prog_WINDRES=$WINDRES
11752 elif test -n "$ac_cv_prog_WINDRES"; then
11753   WINDRES=$ac_cv_prog_WINDRES
11754 fi
11755
11756 if test -n "$ac_cv_prog_WINDRES"; then
11757   for ncn_progname in windres; do
11758     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11759 set dummy ${ncn_progname}; ac_word=$2
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11761 $as_echo_n "checking for $ac_word... " >&6; }
11762 if ${ac_cv_prog_WINDRES+:} false; then :
11763   $as_echo_n "(cached) " >&6
11764 else
11765   if test -n "$WINDRES"; then
11766   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11767 else
11768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11769 for as_dir in $PATH
11770 do
11771   IFS=$as_save_IFS
11772   test -z "$as_dir" && as_dir=.
11773     for ac_exec_ext in '' $ac_executable_extensions; do
11774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11775     ac_cv_prog_WINDRES="${ncn_progname}"
11776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11777     break 2
11778   fi
11779 done
11780   done
11781 IFS=$as_save_IFS
11782
11783 fi
11784 fi
11785 WINDRES=$ac_cv_prog_WINDRES
11786 if test -n "$WINDRES"; then
11787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11788 $as_echo "$WINDRES" >&6; }
11789 else
11790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791 $as_echo "no" >&6; }
11792 fi
11793
11794
11795   done
11796 fi
11797
11798 for ncn_progname in windres; do
11799   if test -n "$ncn_tool_prefix"; then
11800     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11801 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803 $as_echo_n "checking for $ac_word... " >&6; }
11804 if ${ac_cv_prog_WINDRES+:} false; then :
11805   $as_echo_n "(cached) " >&6
11806 else
11807   if test -n "$WINDRES"; then
11808   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11809 else
11810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811 for as_dir in $PATH
11812 do
11813   IFS=$as_save_IFS
11814   test -z "$as_dir" && as_dir=.
11815     for ac_exec_ext in '' $ac_executable_extensions; do
11816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11817     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11819     break 2
11820   fi
11821 done
11822   done
11823 IFS=$as_save_IFS
11824
11825 fi
11826 fi
11827 WINDRES=$ac_cv_prog_WINDRES
11828 if test -n "$WINDRES"; then
11829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11830 $as_echo "$WINDRES" >&6; }
11831 else
11832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833 $as_echo "no" >&6; }
11834 fi
11835
11836
11837   fi
11838   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11839     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11840 set dummy ${ncn_progname}; ac_word=$2
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11842 $as_echo_n "checking for $ac_word... " >&6; }
11843 if ${ac_cv_prog_WINDRES+:} false; then :
11844   $as_echo_n "(cached) " >&6
11845 else
11846   if test -n "$WINDRES"; then
11847   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11848 else
11849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH
11851 do
11852   IFS=$as_save_IFS
11853   test -z "$as_dir" && as_dir=.
11854     for ac_exec_ext in '' $ac_executable_extensions; do
11855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11856     ac_cv_prog_WINDRES="${ncn_progname}"
11857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11858     break 2
11859   fi
11860 done
11861   done
11862 IFS=$as_save_IFS
11863
11864 fi
11865 fi
11866 WINDRES=$ac_cv_prog_WINDRES
11867 if test -n "$WINDRES"; then
11868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11869 $as_echo "$WINDRES" >&6; }
11870 else
11871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11873 fi
11874
11875
11876   fi
11877   test -n "$ac_cv_prog_WINDRES" && break
11878 done
11879
11880 if test -z "$ac_cv_prog_WINDRES" ; then
11881   set dummy windres
11882   if test $build = $host ; then
11883     WINDRES="$2"
11884   else
11885     WINDRES="${ncn_tool_prefix}$2"
11886   fi
11887 fi
11888
11889
11890
11891 if test -n "$WINDMC"; then
11892   ac_cv_prog_WINDMC=$WINDMC
11893 elif test -n "$ac_cv_prog_WINDMC"; then
11894   WINDMC=$ac_cv_prog_WINDMC
11895 fi
11896
11897 if test -n "$ac_cv_prog_WINDMC"; then
11898   for ncn_progname in windmc; do
11899     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11900 set dummy ${ncn_progname}; ac_word=$2
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902 $as_echo_n "checking for $ac_word... " >&6; }
11903 if ${ac_cv_prog_WINDMC+:} false; then :
11904   $as_echo_n "(cached) " >&6
11905 else
11906   if test -n "$WINDMC"; then
11907   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11908 else
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH
11911 do
11912   IFS=$as_save_IFS
11913   test -z "$as_dir" && as_dir=.
11914     for ac_exec_ext in '' $ac_executable_extensions; do
11915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11916     ac_cv_prog_WINDMC="${ncn_progname}"
11917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11918     break 2
11919   fi
11920 done
11921   done
11922 IFS=$as_save_IFS
11923
11924 fi
11925 fi
11926 WINDMC=$ac_cv_prog_WINDMC
11927 if test -n "$WINDMC"; then
11928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11929 $as_echo "$WINDMC" >&6; }
11930 else
11931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932 $as_echo "no" >&6; }
11933 fi
11934
11935
11936   done
11937 fi
11938
11939 for ncn_progname in windmc; do
11940   if test -n "$ncn_tool_prefix"; then
11941     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11942 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944 $as_echo_n "checking for $ac_word... " >&6; }
11945 if ${ac_cv_prog_WINDMC+:} false; then :
11946   $as_echo_n "(cached) " >&6
11947 else
11948   if test -n "$WINDMC"; then
11949   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11950 else
11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in $PATH
11953 do
11954   IFS=$as_save_IFS
11955   test -z "$as_dir" && as_dir=.
11956     for ac_exec_ext in '' $ac_executable_extensions; do
11957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11958     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
11959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960     break 2
11961   fi
11962 done
11963   done
11964 IFS=$as_save_IFS
11965
11966 fi
11967 fi
11968 WINDMC=$ac_cv_prog_WINDMC
11969 if test -n "$WINDMC"; then
11970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11971 $as_echo "$WINDMC" >&6; }
11972 else
11973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974 $as_echo "no" >&6; }
11975 fi
11976
11977
11978   fi
11979   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
11980     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11981 set dummy ${ncn_progname}; ac_word=$2
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11983 $as_echo_n "checking for $ac_word... " >&6; }
11984 if ${ac_cv_prog_WINDMC+:} false; then :
11985   $as_echo_n "(cached) " >&6
11986 else
11987   if test -n "$WINDMC"; then
11988   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11989 else
11990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991 for as_dir in $PATH
11992 do
11993   IFS=$as_save_IFS
11994   test -z "$as_dir" && as_dir=.
11995     for ac_exec_ext in '' $ac_executable_extensions; do
11996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11997     ac_cv_prog_WINDMC="${ncn_progname}"
11998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11999     break 2
12000   fi
12001 done
12002   done
12003 IFS=$as_save_IFS
12004
12005 fi
12006 fi
12007 WINDMC=$ac_cv_prog_WINDMC
12008 if test -n "$WINDMC"; then
12009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12010 $as_echo "$WINDMC" >&6; }
12011 else
12012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12014 fi
12015
12016
12017   fi
12018   test -n "$ac_cv_prog_WINDMC" && break
12019 done
12020
12021 if test -z "$ac_cv_prog_WINDMC" ; then
12022   set dummy windmc
12023   if test $build = $host ; then
12024     WINDMC="$2"
12025   else
12026     WINDMC="${ncn_tool_prefix}$2"
12027   fi
12028 fi
12029
12030
12031
12032 if test -n "$OBJCOPY"; then
12033   ac_cv_prog_OBJCOPY=$OBJCOPY
12034 elif test -n "$ac_cv_prog_OBJCOPY"; then
12035   OBJCOPY=$ac_cv_prog_OBJCOPY
12036 fi
12037
12038 if test -n "$ac_cv_prog_OBJCOPY"; then
12039   for ncn_progname in objcopy; do
12040     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12041 set dummy ${ncn_progname}; ac_word=$2
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12043 $as_echo_n "checking for $ac_word... " >&6; }
12044 if ${ac_cv_prog_OBJCOPY+:} false; then :
12045   $as_echo_n "(cached) " >&6
12046 else
12047   if test -n "$OBJCOPY"; then
12048   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12049 else
12050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051 for as_dir in $PATH
12052 do
12053   IFS=$as_save_IFS
12054   test -z "$as_dir" && as_dir=.
12055     for ac_exec_ext in '' $ac_executable_extensions; do
12056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12057     ac_cv_prog_OBJCOPY="${ncn_progname}"
12058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12059     break 2
12060   fi
12061 done
12062   done
12063 IFS=$as_save_IFS
12064
12065 fi
12066 fi
12067 OBJCOPY=$ac_cv_prog_OBJCOPY
12068 if test -n "$OBJCOPY"; then
12069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12070 $as_echo "$OBJCOPY" >&6; }
12071 else
12072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073 $as_echo "no" >&6; }
12074 fi
12075
12076
12077   done
12078 fi
12079
12080 for ncn_progname in objcopy; do
12081   if test -n "$ncn_tool_prefix"; then
12082     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12083 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12085 $as_echo_n "checking for $ac_word... " >&6; }
12086 if ${ac_cv_prog_OBJCOPY+:} false; then :
12087   $as_echo_n "(cached) " >&6
12088 else
12089   if test -n "$OBJCOPY"; then
12090   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12091 else
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in $PATH
12094 do
12095   IFS=$as_save_IFS
12096   test -z "$as_dir" && as_dir=.
12097     for ac_exec_ext in '' $ac_executable_extensions; do
12098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12099     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12101     break 2
12102   fi
12103 done
12104   done
12105 IFS=$as_save_IFS
12106
12107 fi
12108 fi
12109 OBJCOPY=$ac_cv_prog_OBJCOPY
12110 if test -n "$OBJCOPY"; then
12111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12112 $as_echo "$OBJCOPY" >&6; }
12113 else
12114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115 $as_echo "no" >&6; }
12116 fi
12117
12118
12119   fi
12120   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12121     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12122 set dummy ${ncn_progname}; ac_word=$2
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124 $as_echo_n "checking for $ac_word... " >&6; }
12125 if ${ac_cv_prog_OBJCOPY+:} false; then :
12126   $as_echo_n "(cached) " >&6
12127 else
12128   if test -n "$OBJCOPY"; then
12129   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12130 else
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH
12133 do
12134   IFS=$as_save_IFS
12135   test -z "$as_dir" && as_dir=.
12136     for ac_exec_ext in '' $ac_executable_extensions; do
12137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12138     ac_cv_prog_OBJCOPY="${ncn_progname}"
12139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12140     break 2
12141   fi
12142 done
12143   done
12144 IFS=$as_save_IFS
12145
12146 fi
12147 fi
12148 OBJCOPY=$ac_cv_prog_OBJCOPY
12149 if test -n "$OBJCOPY"; then
12150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12151 $as_echo "$OBJCOPY" >&6; }
12152 else
12153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12155 fi
12156
12157
12158   fi
12159   test -n "$ac_cv_prog_OBJCOPY" && break
12160 done
12161
12162 if test -z "$ac_cv_prog_OBJCOPY" ; then
12163   set dummy objcopy
12164   if test $build = $host ; then
12165     OBJCOPY="$2"
12166   else
12167     OBJCOPY="${ncn_tool_prefix}$2"
12168   fi
12169 fi
12170
12171
12172
12173 if test -n "$OBJDUMP"; then
12174   ac_cv_prog_OBJDUMP=$OBJDUMP
12175 elif test -n "$ac_cv_prog_OBJDUMP"; then
12176   OBJDUMP=$ac_cv_prog_OBJDUMP
12177 fi
12178
12179 if test -n "$ac_cv_prog_OBJDUMP"; then
12180   for ncn_progname in objdump; do
12181     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12182 set dummy ${ncn_progname}; ac_word=$2
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12184 $as_echo_n "checking for $ac_word... " >&6; }
12185 if ${ac_cv_prog_OBJDUMP+:} false; then :
12186   $as_echo_n "(cached) " >&6
12187 else
12188   if test -n "$OBJDUMP"; then
12189   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12190 else
12191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192 for as_dir in $PATH
12193 do
12194   IFS=$as_save_IFS
12195   test -z "$as_dir" && as_dir=.
12196     for ac_exec_ext in '' $ac_executable_extensions; do
12197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12198     ac_cv_prog_OBJDUMP="${ncn_progname}"
12199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12200     break 2
12201   fi
12202 done
12203   done
12204 IFS=$as_save_IFS
12205
12206 fi
12207 fi
12208 OBJDUMP=$ac_cv_prog_OBJDUMP
12209 if test -n "$OBJDUMP"; then
12210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12211 $as_echo "$OBJDUMP" >&6; }
12212 else
12213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12214 $as_echo "no" >&6; }
12215 fi
12216
12217
12218   done
12219 fi
12220
12221 for ncn_progname in objdump; do
12222   if test -n "$ncn_tool_prefix"; then
12223     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12224 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12226 $as_echo_n "checking for $ac_word... " >&6; }
12227 if ${ac_cv_prog_OBJDUMP+:} false; then :
12228   $as_echo_n "(cached) " >&6
12229 else
12230   if test -n "$OBJDUMP"; then
12231   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12232 else
12233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234 for as_dir in $PATH
12235 do
12236   IFS=$as_save_IFS
12237   test -z "$as_dir" && as_dir=.
12238     for ac_exec_ext in '' $ac_executable_extensions; do
12239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12240     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12242     break 2
12243   fi
12244 done
12245   done
12246 IFS=$as_save_IFS
12247
12248 fi
12249 fi
12250 OBJDUMP=$ac_cv_prog_OBJDUMP
12251 if test -n "$OBJDUMP"; then
12252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12253 $as_echo "$OBJDUMP" >&6; }
12254 else
12255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256 $as_echo "no" >&6; }
12257 fi
12258
12259
12260   fi
12261   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12262     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12263 set dummy ${ncn_progname}; ac_word=$2
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12265 $as_echo_n "checking for $ac_word... " >&6; }
12266 if ${ac_cv_prog_OBJDUMP+:} false; then :
12267   $as_echo_n "(cached) " >&6
12268 else
12269   if test -n "$OBJDUMP"; then
12270   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12271 else
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273 for as_dir in $PATH
12274 do
12275   IFS=$as_save_IFS
12276   test -z "$as_dir" && as_dir=.
12277     for ac_exec_ext in '' $ac_executable_extensions; do
12278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12279     ac_cv_prog_OBJDUMP="${ncn_progname}"
12280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12281     break 2
12282   fi
12283 done
12284   done
12285 IFS=$as_save_IFS
12286
12287 fi
12288 fi
12289 OBJDUMP=$ac_cv_prog_OBJDUMP
12290 if test -n "$OBJDUMP"; then
12291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12292 $as_echo "$OBJDUMP" >&6; }
12293 else
12294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12296 fi
12297
12298
12299   fi
12300   test -n "$ac_cv_prog_OBJDUMP" && break
12301 done
12302
12303 if test -z "$ac_cv_prog_OBJDUMP" ; then
12304   set dummy objdump
12305   if test $build = $host ; then
12306     OBJDUMP="$2"
12307   else
12308     OBJDUMP="${ncn_tool_prefix}$2"
12309   fi
12310 fi
12311
12312
12313
12314 if test -n "$OTOOL"; then
12315   ac_cv_prog_OTOOL=$OTOOL
12316 elif test -n "$ac_cv_prog_OTOOL"; then
12317   OTOOL=$ac_cv_prog_OTOOL
12318 fi
12319
12320 if test -n "$ac_cv_prog_OTOOL"; then
12321   for ncn_progname in otool; do
12322     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12323 set dummy ${ncn_progname}; ac_word=$2
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12325 $as_echo_n "checking for $ac_word... " >&6; }
12326 if ${ac_cv_prog_OTOOL+:} false; then :
12327   $as_echo_n "(cached) " >&6
12328 else
12329   if test -n "$OTOOL"; then
12330   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12331 else
12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333 for as_dir in $PATH
12334 do
12335   IFS=$as_save_IFS
12336   test -z "$as_dir" && as_dir=.
12337     for ac_exec_ext in '' $ac_executable_extensions; do
12338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12339     ac_cv_prog_OTOOL="${ncn_progname}"
12340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341     break 2
12342   fi
12343 done
12344   done
12345 IFS=$as_save_IFS
12346
12347 fi
12348 fi
12349 OTOOL=$ac_cv_prog_OTOOL
12350 if test -n "$OTOOL"; then
12351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12352 $as_echo "$OTOOL" >&6; }
12353 else
12354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355 $as_echo "no" >&6; }
12356 fi
12357
12358
12359   done
12360 fi
12361
12362 for ncn_progname in otool; do
12363   if test -n "$ncn_tool_prefix"; then
12364     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12365 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367 $as_echo_n "checking for $ac_word... " >&6; }
12368 if ${ac_cv_prog_OTOOL+:} false; then :
12369   $as_echo_n "(cached) " >&6
12370 else
12371   if test -n "$OTOOL"; then
12372   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12373 else
12374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375 for as_dir in $PATH
12376 do
12377   IFS=$as_save_IFS
12378   test -z "$as_dir" && as_dir=.
12379     for ac_exec_ext in '' $ac_executable_extensions; do
12380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12381     ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12383     break 2
12384   fi
12385 done
12386   done
12387 IFS=$as_save_IFS
12388
12389 fi
12390 fi
12391 OTOOL=$ac_cv_prog_OTOOL
12392 if test -n "$OTOOL"; then
12393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12394 $as_echo "$OTOOL" >&6; }
12395 else
12396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12398 fi
12399
12400
12401   fi
12402   if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12403     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12404 set dummy ${ncn_progname}; ac_word=$2
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406 $as_echo_n "checking for $ac_word... " >&6; }
12407 if ${ac_cv_prog_OTOOL+:} false; then :
12408   $as_echo_n "(cached) " >&6
12409 else
12410   if test -n "$OTOOL"; then
12411   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12412 else
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in $PATH
12415 do
12416   IFS=$as_save_IFS
12417   test -z "$as_dir" && as_dir=.
12418     for ac_exec_ext in '' $ac_executable_extensions; do
12419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12420     ac_cv_prog_OTOOL="${ncn_progname}"
12421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12422     break 2
12423   fi
12424 done
12425   done
12426 IFS=$as_save_IFS
12427
12428 fi
12429 fi
12430 OTOOL=$ac_cv_prog_OTOOL
12431 if test -n "$OTOOL"; then
12432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12433 $as_echo "$OTOOL" >&6; }
12434 else
12435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436 $as_echo "no" >&6; }
12437 fi
12438
12439
12440   fi
12441   test -n "$ac_cv_prog_OTOOL" && break
12442 done
12443
12444 if test -z "$ac_cv_prog_OTOOL" ; then
12445   set dummy otool
12446   if test $build = $host ; then
12447     OTOOL="$2"
12448   else
12449     OTOOL="${ncn_tool_prefix}$2"
12450   fi
12451 fi
12452
12453
12454
12455 if test -n "$READELF"; then
12456   ac_cv_prog_READELF=$READELF
12457 elif test -n "$ac_cv_prog_READELF"; then
12458   READELF=$ac_cv_prog_READELF
12459 fi
12460
12461 if test -n "$ac_cv_prog_READELF"; then
12462   for ncn_progname in readelf; do
12463     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12464 set dummy ${ncn_progname}; ac_word=$2
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12466 $as_echo_n "checking for $ac_word... " >&6; }
12467 if ${ac_cv_prog_READELF+:} false; then :
12468   $as_echo_n "(cached) " >&6
12469 else
12470   if test -n "$READELF"; then
12471   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12472 else
12473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12474 for as_dir in $PATH
12475 do
12476   IFS=$as_save_IFS
12477   test -z "$as_dir" && as_dir=.
12478     for ac_exec_ext in '' $ac_executable_extensions; do
12479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12480     ac_cv_prog_READELF="${ncn_progname}"
12481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12482     break 2
12483   fi
12484 done
12485   done
12486 IFS=$as_save_IFS
12487
12488 fi
12489 fi
12490 READELF=$ac_cv_prog_READELF
12491 if test -n "$READELF"; then
12492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12493 $as_echo "$READELF" >&6; }
12494 else
12495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496 $as_echo "no" >&6; }
12497 fi
12498
12499
12500   done
12501 fi
12502
12503 for ncn_progname in readelf; do
12504   if test -n "$ncn_tool_prefix"; then
12505     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12506 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12508 $as_echo_n "checking for $ac_word... " >&6; }
12509 if ${ac_cv_prog_READELF+:} false; then :
12510   $as_echo_n "(cached) " >&6
12511 else
12512   if test -n "$READELF"; then
12513   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12514 else
12515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12516 for as_dir in $PATH
12517 do
12518   IFS=$as_save_IFS
12519   test -z "$as_dir" && as_dir=.
12520     for ac_exec_ext in '' $ac_executable_extensions; do
12521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12522     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12524     break 2
12525   fi
12526 done
12527   done
12528 IFS=$as_save_IFS
12529
12530 fi
12531 fi
12532 READELF=$ac_cv_prog_READELF
12533 if test -n "$READELF"; then
12534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12535 $as_echo "$READELF" >&6; }
12536 else
12537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12539 fi
12540
12541
12542   fi
12543   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12544     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12545 set dummy ${ncn_progname}; ac_word=$2
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12547 $as_echo_n "checking for $ac_word... " >&6; }
12548 if ${ac_cv_prog_READELF+:} false; then :
12549   $as_echo_n "(cached) " >&6
12550 else
12551   if test -n "$READELF"; then
12552   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12553 else
12554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12555 for as_dir in $PATH
12556 do
12557   IFS=$as_save_IFS
12558   test -z "$as_dir" && as_dir=.
12559     for ac_exec_ext in '' $ac_executable_extensions; do
12560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12561     ac_cv_prog_READELF="${ncn_progname}"
12562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12563     break 2
12564   fi
12565 done
12566   done
12567 IFS=$as_save_IFS
12568
12569 fi
12570 fi
12571 READELF=$ac_cv_prog_READELF
12572 if test -n "$READELF"; then
12573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12574 $as_echo "$READELF" >&6; }
12575 else
12576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577 $as_echo "no" >&6; }
12578 fi
12579
12580
12581   fi
12582   test -n "$ac_cv_prog_READELF" && break
12583 done
12584
12585 if test -z "$ac_cv_prog_READELF" ; then
12586   set dummy readelf
12587   if test $build = $host ; then
12588     READELF="$2"
12589   else
12590     READELF="${ncn_tool_prefix}$2"
12591   fi
12592 fi
12593
12594
12595
12596
12597
12598
12599 # Target tools.
12600
12601 # Check whether --with-build-time-tools was given.
12602 if test "${with_build_time_tools+set}" = set; then :
12603   withval=$with_build_time_tools; case x"$withval" in
12604      x/*) ;;
12605      *)
12606        with_build_time_tools=
12607        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12608 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12609        ;;
12610    esac
12611 else
12612   with_build_time_tools=
12613 fi
12614
12615
12616
12617
12618 if test -n "$CC_FOR_TARGET"; then
12619   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12620 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12621   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12622 fi
12623
12624 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12625   for ncn_progname in cc gcc; do
12626     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12627 set dummy ${ncn_progname}; ac_word=$2
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629 $as_echo_n "checking for $ac_word... " >&6; }
12630 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12631   $as_echo_n "(cached) " >&6
12632 else
12633   if test -n "$CC_FOR_TARGET"; then
12634   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12635 else
12636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637 for as_dir in $PATH
12638 do
12639   IFS=$as_save_IFS
12640   test -z "$as_dir" && as_dir=.
12641     for ac_exec_ext in '' $ac_executable_extensions; do
12642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12643     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12645     break 2
12646   fi
12647 done
12648   done
12649 IFS=$as_save_IFS
12650
12651 fi
12652 fi
12653 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12654 if test -n "$CC_FOR_TARGET"; then
12655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12656 $as_echo "$CC_FOR_TARGET" >&6; }
12657 else
12658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 $as_echo "no" >&6; }
12660 fi
12661
12662
12663   done
12664 fi
12665
12666 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12667   for ncn_progname in cc gcc; do
12668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12669 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12670     if test -x $with_build_time_tools/${ncn_progname}; then
12671       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12672       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12673 $as_echo "yes" >&6; }
12674       break
12675     else
12676       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12678     fi
12679   done
12680 fi
12681
12682 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12683   for ncn_progname in cc gcc; do
12684     if test -n "$ncn_target_tool_prefix"; then
12685       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12686 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 $as_echo_n "checking for $ac_word... " >&6; }
12689 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12690   $as_echo_n "(cached) " >&6
12691 else
12692   if test -n "$CC_FOR_TARGET"; then
12693   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12694 else
12695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696 for as_dir in $PATH
12697 do
12698   IFS=$as_save_IFS
12699   test -z "$as_dir" && as_dir=.
12700     for ac_exec_ext in '' $ac_executable_extensions; do
12701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12702     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12704     break 2
12705   fi
12706 done
12707   done
12708 IFS=$as_save_IFS
12709
12710 fi
12711 fi
12712 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12713 if test -n "$CC_FOR_TARGET"; then
12714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12715 $as_echo "$CC_FOR_TARGET" >&6; }
12716 else
12717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12719 fi
12720
12721
12722     fi
12723     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12724       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12725 set dummy ${ncn_progname}; ac_word=$2
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727 $as_echo_n "checking for $ac_word... " >&6; }
12728 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12729   $as_echo_n "(cached) " >&6
12730 else
12731   if test -n "$CC_FOR_TARGET"; then
12732   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12733 else
12734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735 for as_dir in $PATH
12736 do
12737   IFS=$as_save_IFS
12738   test -z "$as_dir" && as_dir=.
12739     for ac_exec_ext in '' $ac_executable_extensions; do
12740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12741     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12743     break 2
12744   fi
12745 done
12746   done
12747 IFS=$as_save_IFS
12748
12749 fi
12750 fi
12751 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12752 if test -n "$CC_FOR_TARGET"; then
12753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12754 $as_echo "$CC_FOR_TARGET" >&6; }
12755 else
12756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757 $as_echo "no" >&6; }
12758 fi
12759
12760
12761     fi
12762     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12763   done
12764 fi
12765
12766 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12767   set dummy cc gcc
12768   if test $build = $target ; then
12769     CC_FOR_TARGET="$2"
12770   else
12771     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12772   fi
12773 else
12774   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12775 fi
12776
12777
12778
12779 if test -n "$CXX_FOR_TARGET"; then
12780   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12781 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12782   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12783 fi
12784
12785 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12786   for ncn_progname in c++ g++ cxx gxx; do
12787     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12788 set dummy ${ncn_progname}; ac_word=$2
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12790 $as_echo_n "checking for $ac_word... " >&6; }
12791 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12792   $as_echo_n "(cached) " >&6
12793 else
12794   if test -n "$CXX_FOR_TARGET"; then
12795   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12796 else
12797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12798 for as_dir in $PATH
12799 do
12800   IFS=$as_save_IFS
12801   test -z "$as_dir" && as_dir=.
12802     for ac_exec_ext in '' $ac_executable_extensions; do
12803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12804     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12806     break 2
12807   fi
12808 done
12809   done
12810 IFS=$as_save_IFS
12811
12812 fi
12813 fi
12814 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12815 if test -n "$CXX_FOR_TARGET"; then
12816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12817 $as_echo "$CXX_FOR_TARGET" >&6; }
12818 else
12819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820 $as_echo "no" >&6; }
12821 fi
12822
12823
12824   done
12825 fi
12826
12827 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
12828   for ncn_progname in c++ g++ cxx gxx; do
12829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12830 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12831     if test -x $with_build_time_tools/${ncn_progname}; then
12832       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12833       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12834 $as_echo "yes" >&6; }
12835       break
12836     else
12837       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12839     fi
12840   done
12841 fi
12842
12843 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12844   for ncn_progname in c++ g++ cxx gxx; do
12845     if test -n "$ncn_target_tool_prefix"; then
12846       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12847 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12849 $as_echo_n "checking for $ac_word... " >&6; }
12850 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12851   $as_echo_n "(cached) " >&6
12852 else
12853   if test -n "$CXX_FOR_TARGET"; then
12854   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12855 else
12856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857 for as_dir in $PATH
12858 do
12859   IFS=$as_save_IFS
12860   test -z "$as_dir" && as_dir=.
12861     for ac_exec_ext in '' $ac_executable_extensions; do
12862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12863     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12865     break 2
12866   fi
12867 done
12868   done
12869 IFS=$as_save_IFS
12870
12871 fi
12872 fi
12873 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12874 if test -n "$CXX_FOR_TARGET"; then
12875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12876 $as_echo "$CXX_FOR_TARGET" >&6; }
12877 else
12878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879 $as_echo "no" >&6; }
12880 fi
12881
12882
12883     fi
12884     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
12885       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12886 set dummy ${ncn_progname}; ac_word=$2
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12888 $as_echo_n "checking for $ac_word... " >&6; }
12889 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12890   $as_echo_n "(cached) " >&6
12891 else
12892   if test -n "$CXX_FOR_TARGET"; then
12893   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12894 else
12895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896 for as_dir in $PATH
12897 do
12898   IFS=$as_save_IFS
12899   test -z "$as_dir" && as_dir=.
12900     for ac_exec_ext in '' $ac_executable_extensions; do
12901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12902     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12904     break 2
12905   fi
12906 done
12907   done
12908 IFS=$as_save_IFS
12909
12910 fi
12911 fi
12912 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12913 if test -n "$CXX_FOR_TARGET"; then
12914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12915 $as_echo "$CXX_FOR_TARGET" >&6; }
12916 else
12917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918 $as_echo "no" >&6; }
12919 fi
12920
12921
12922     fi
12923     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12924   done
12925 fi
12926
12927 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12928   set dummy c++ g++ cxx gxx
12929   if test $build = $target ; then
12930     CXX_FOR_TARGET="$2"
12931   else
12932     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
12933   fi
12934 else
12935   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
12936 fi
12937
12938
12939
12940 if test -n "$GCC_FOR_TARGET"; then
12941   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12942 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12943   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12944 fi
12945
12946 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12947   for ncn_progname in gcc; do
12948     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12949 set dummy ${ncn_progname}; ac_word=$2
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12951 $as_echo_n "checking for $ac_word... " >&6; }
12952 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12953   $as_echo_n "(cached) " >&6
12954 else
12955   if test -n "$GCC_FOR_TARGET"; then
12956   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12957 else
12958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12959 for as_dir in $PATH
12960 do
12961   IFS=$as_save_IFS
12962   test -z "$as_dir" && as_dir=.
12963     for ac_exec_ext in '' $ac_executable_extensions; do
12964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12965     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12967     break 2
12968   fi
12969 done
12970   done
12971 IFS=$as_save_IFS
12972
12973 fi
12974 fi
12975 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12976 if test -n "$GCC_FOR_TARGET"; then
12977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12978 $as_echo "$GCC_FOR_TARGET" >&6; }
12979 else
12980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12981 $as_echo "no" >&6; }
12982 fi
12983
12984
12985   done
12986 fi
12987
12988 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12989   for ncn_progname in gcc; do
12990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12991 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12992     if test -x $with_build_time_tools/${ncn_progname}; then
12993       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12994       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12995 $as_echo "yes" >&6; }
12996       break
12997     else
12998       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999 $as_echo "no" >&6; }
13000     fi
13001   done
13002 fi
13003
13004 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13005   for ncn_progname in gcc; do
13006     if test -n "$ncn_target_tool_prefix"; then
13007       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13008 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13010 $as_echo_n "checking for $ac_word... " >&6; }
13011 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13012   $as_echo_n "(cached) " >&6
13013 else
13014   if test -n "$GCC_FOR_TARGET"; then
13015   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13016 else
13017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018 for as_dir in $PATH
13019 do
13020   IFS=$as_save_IFS
13021   test -z "$as_dir" && as_dir=.
13022     for ac_exec_ext in '' $ac_executable_extensions; do
13023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13024     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13026     break 2
13027   fi
13028 done
13029   done
13030 IFS=$as_save_IFS
13031
13032 fi
13033 fi
13034 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13035 if test -n "$GCC_FOR_TARGET"; then
13036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13037 $as_echo "$GCC_FOR_TARGET" >&6; }
13038 else
13039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040 $as_echo "no" >&6; }
13041 fi
13042
13043
13044     fi
13045     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13046       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13047 set dummy ${ncn_progname}; ac_word=$2
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13049 $as_echo_n "checking for $ac_word... " >&6; }
13050 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13051   $as_echo_n "(cached) " >&6
13052 else
13053   if test -n "$GCC_FOR_TARGET"; then
13054   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13055 else
13056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057 for as_dir in $PATH
13058 do
13059   IFS=$as_save_IFS
13060   test -z "$as_dir" && as_dir=.
13061     for ac_exec_ext in '' $ac_executable_extensions; do
13062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13063     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13065     break 2
13066   fi
13067 done
13068   done
13069 IFS=$as_save_IFS
13070
13071 fi
13072 fi
13073 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13074 if test -n "$GCC_FOR_TARGET"; then
13075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13076 $as_echo "$GCC_FOR_TARGET" >&6; }
13077 else
13078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079 $as_echo "no" >&6; }
13080 fi
13081
13082
13083     fi
13084     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13085   done
13086 fi
13087
13088 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13089   GCC_FOR_TARGET="${CC_FOR_TARGET}"
13090 else
13091   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13092 fi
13093
13094
13095
13096 if test -n "$GFORTRAN_FOR_TARGET"; then
13097   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13098 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13099   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13100 fi
13101
13102 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13103   for ncn_progname in gfortran; do
13104     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13105 set dummy ${ncn_progname}; ac_word=$2
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13107 $as_echo_n "checking for $ac_word... " >&6; }
13108 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13109   $as_echo_n "(cached) " >&6
13110 else
13111   if test -n "$GFORTRAN_FOR_TARGET"; then
13112   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13113 else
13114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13115 for as_dir in $PATH
13116 do
13117   IFS=$as_save_IFS
13118   test -z "$as_dir" && as_dir=.
13119     for ac_exec_ext in '' $ac_executable_extensions; do
13120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13121     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13123     break 2
13124   fi
13125 done
13126   done
13127 IFS=$as_save_IFS
13128
13129 fi
13130 fi
13131 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13132 if test -n "$GFORTRAN_FOR_TARGET"; then
13133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13134 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13135 else
13136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13138 fi
13139
13140
13141   done
13142 fi
13143
13144 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13145   for ncn_progname in gfortran; do
13146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13147 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13148     if test -x $with_build_time_tools/${ncn_progname}; then
13149       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13150       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13151 $as_echo "yes" >&6; }
13152       break
13153     else
13154       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155 $as_echo "no" >&6; }
13156     fi
13157   done
13158 fi
13159
13160 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13161   for ncn_progname in gfortran; do
13162     if test -n "$ncn_target_tool_prefix"; then
13163       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13164 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13166 $as_echo_n "checking for $ac_word... " >&6; }
13167 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13168   $as_echo_n "(cached) " >&6
13169 else
13170   if test -n "$GFORTRAN_FOR_TARGET"; then
13171   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13172 else
13173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174 for as_dir in $PATH
13175 do
13176   IFS=$as_save_IFS
13177   test -z "$as_dir" && as_dir=.
13178     for ac_exec_ext in '' $ac_executable_extensions; do
13179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13180     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13182     break 2
13183   fi
13184 done
13185   done
13186 IFS=$as_save_IFS
13187
13188 fi
13189 fi
13190 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13191 if test -n "$GFORTRAN_FOR_TARGET"; then
13192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13193 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13194 else
13195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13196 $as_echo "no" >&6; }
13197 fi
13198
13199
13200     fi
13201     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13202       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13203 set dummy ${ncn_progname}; ac_word=$2
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205 $as_echo_n "checking for $ac_word... " >&6; }
13206 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13207   $as_echo_n "(cached) " >&6
13208 else
13209   if test -n "$GFORTRAN_FOR_TARGET"; then
13210   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13211 else
13212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13213 for as_dir in $PATH
13214 do
13215   IFS=$as_save_IFS
13216   test -z "$as_dir" && as_dir=.
13217     for ac_exec_ext in '' $ac_executable_extensions; do
13218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13219     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13221     break 2
13222   fi
13223 done
13224   done
13225 IFS=$as_save_IFS
13226
13227 fi
13228 fi
13229 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13230 if test -n "$GFORTRAN_FOR_TARGET"; then
13231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13232 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13233 else
13234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13235 $as_echo "no" >&6; }
13236 fi
13237
13238
13239     fi
13240     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13241   done
13242 fi
13243
13244 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13245   set dummy gfortran
13246   if test $build = $target ; then
13247     GFORTRAN_FOR_TARGET="$2"
13248   else
13249     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13250   fi
13251 else
13252   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13253 fi
13254
13255
13256
13257 if test -n "$GOC_FOR_TARGET"; then
13258   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13259 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13260   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13261 fi
13262
13263 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13264   for ncn_progname in gccgo; do
13265     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13266 set dummy ${ncn_progname}; ac_word=$2
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13268 $as_echo_n "checking for $ac_word... " >&6; }
13269 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13270   $as_echo_n "(cached) " >&6
13271 else
13272   if test -n "$GOC_FOR_TARGET"; then
13273   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13274 else
13275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13276 for as_dir in $PATH
13277 do
13278   IFS=$as_save_IFS
13279   test -z "$as_dir" && as_dir=.
13280     for ac_exec_ext in '' $ac_executable_extensions; do
13281   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13282     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13284     break 2
13285   fi
13286 done
13287   done
13288 IFS=$as_save_IFS
13289
13290 fi
13291 fi
13292 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13293 if test -n "$GOC_FOR_TARGET"; then
13294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13295 $as_echo "$GOC_FOR_TARGET" >&6; }
13296 else
13297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 $as_echo "no" >&6; }
13299 fi
13300
13301
13302   done
13303 fi
13304
13305 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13306   for ncn_progname in gccgo; do
13307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13308 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13309     if test -x $with_build_time_tools/${ncn_progname}; then
13310       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13312 $as_echo "yes" >&6; }
13313       break
13314     else
13315       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13316 $as_echo "no" >&6; }
13317     fi
13318   done
13319 fi
13320
13321 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13322   for ncn_progname in gccgo; do
13323     if test -n "$ncn_target_tool_prefix"; then
13324       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13325 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13327 $as_echo_n "checking for $ac_word... " >&6; }
13328 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13329   $as_echo_n "(cached) " >&6
13330 else
13331   if test -n "$GOC_FOR_TARGET"; then
13332   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13333 else
13334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13335 for as_dir in $PATH
13336 do
13337   IFS=$as_save_IFS
13338   test -z "$as_dir" && as_dir=.
13339     for ac_exec_ext in '' $ac_executable_extensions; do
13340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13341     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13343     break 2
13344   fi
13345 done
13346   done
13347 IFS=$as_save_IFS
13348
13349 fi
13350 fi
13351 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13352 if test -n "$GOC_FOR_TARGET"; then
13353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13354 $as_echo "$GOC_FOR_TARGET" >&6; }
13355 else
13356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13357 $as_echo "no" >&6; }
13358 fi
13359
13360
13361     fi
13362     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13363       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13364 set dummy ${ncn_progname}; ac_word=$2
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13366 $as_echo_n "checking for $ac_word... " >&6; }
13367 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13368   $as_echo_n "(cached) " >&6
13369 else
13370   if test -n "$GOC_FOR_TARGET"; then
13371   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13372 else
13373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374 for as_dir in $PATH
13375 do
13376   IFS=$as_save_IFS
13377   test -z "$as_dir" && as_dir=.
13378     for ac_exec_ext in '' $ac_executable_extensions; do
13379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13380     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13382     break 2
13383   fi
13384 done
13385   done
13386 IFS=$as_save_IFS
13387
13388 fi
13389 fi
13390 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13391 if test -n "$GOC_FOR_TARGET"; then
13392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13393 $as_echo "$GOC_FOR_TARGET" >&6; }
13394 else
13395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396 $as_echo "no" >&6; }
13397 fi
13398
13399
13400     fi
13401     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13402   done
13403 fi
13404
13405 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13406   set dummy gccgo
13407   if test $build = $target ; then
13408     GOC_FOR_TARGET="$2"
13409   else
13410     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13411   fi
13412 else
13413   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13414 fi
13415
13416
13417
13418 if test -n "$GDC_FOR_TARGET"; then
13419   ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13420 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13421   GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13422 fi
13423
13424 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13425   for ncn_progname in gdc; do
13426     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13427 set dummy ${ncn_progname}; ac_word=$2
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13429 $as_echo_n "checking for $ac_word... " >&6; }
13430 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13431   $as_echo_n "(cached) " >&6
13432 else
13433   if test -n "$GDC_FOR_TARGET"; then
13434   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13435 else
13436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13437 for as_dir in $PATH
13438 do
13439   IFS=$as_save_IFS
13440   test -z "$as_dir" && as_dir=.
13441     for ac_exec_ext in '' $ac_executable_extensions; do
13442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13443     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13445     break 2
13446   fi
13447 done
13448   done
13449 IFS=$as_save_IFS
13450
13451 fi
13452 fi
13453 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13454 if test -n "$GDC_FOR_TARGET"; then
13455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13456 $as_echo "$GDC_FOR_TARGET" >&6; }
13457 else
13458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13459 $as_echo "no" >&6; }
13460 fi
13461
13462
13463   done
13464 fi
13465
13466 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13467   for ncn_progname in gdc; do
13468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13469 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13470     if test -x $with_build_time_tools/${ncn_progname}; then
13471       ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13472       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13473 $as_echo "yes" >&6; }
13474       break
13475     else
13476       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 $as_echo "no" >&6; }
13478     fi
13479   done
13480 fi
13481
13482 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13483   for ncn_progname in gdc; do
13484     if test -n "$ncn_target_tool_prefix"; then
13485       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13486 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488 $as_echo_n "checking for $ac_word... " >&6; }
13489 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13490   $as_echo_n "(cached) " >&6
13491 else
13492   if test -n "$GDC_FOR_TARGET"; then
13493   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13494 else
13495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13496 for as_dir in $PATH
13497 do
13498   IFS=$as_save_IFS
13499   test -z "$as_dir" && as_dir=.
13500     for ac_exec_ext in '' $ac_executable_extensions; do
13501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13502     ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13504     break 2
13505   fi
13506 done
13507   done
13508 IFS=$as_save_IFS
13509
13510 fi
13511 fi
13512 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13513 if test -n "$GDC_FOR_TARGET"; then
13514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13515 $as_echo "$GDC_FOR_TARGET" >&6; }
13516 else
13517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518 $as_echo "no" >&6; }
13519 fi
13520
13521
13522     fi
13523     if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13524       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13525 set dummy ${ncn_progname}; ac_word=$2
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527 $as_echo_n "checking for $ac_word... " >&6; }
13528 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13529   $as_echo_n "(cached) " >&6
13530 else
13531   if test -n "$GDC_FOR_TARGET"; then
13532   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13533 else
13534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535 for as_dir in $PATH
13536 do
13537   IFS=$as_save_IFS
13538   test -z "$as_dir" && as_dir=.
13539     for ac_exec_ext in '' $ac_executable_extensions; do
13540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13541     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13543     break 2
13544   fi
13545 done
13546   done
13547 IFS=$as_save_IFS
13548
13549 fi
13550 fi
13551 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13552 if test -n "$GDC_FOR_TARGET"; then
13553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13554 $as_echo "$GDC_FOR_TARGET" >&6; }
13555 else
13556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13557 $as_echo "no" >&6; }
13558 fi
13559
13560
13561     fi
13562     test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13563   done
13564 fi
13565
13566 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13567   set dummy gdc
13568   if test $build = $target ; then
13569     GDC_FOR_TARGET="$2"
13570   else
13571     GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13572   fi
13573 else
13574   GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13575 fi
13576
13577
13578
13579 cat > conftest.c << \EOF
13580 #ifdef __GNUC__
13581   gcc_yay;
13582 #endif
13583 EOF
13584 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13585   have_gcc_for_target=yes
13586 else
13587   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13588   have_gcc_for_target=no
13589 fi
13590 rm conftest.c
13591
13592
13593
13594
13595 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13596   if test -n "$with_build_time_tools"; then
13597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13598 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13599     if test -x $with_build_time_tools/ar; then
13600       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13601       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13602       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13603 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13604     else
13605       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13606 $as_echo "no" >&6; }
13607     fi
13608   elif test $build != $host && test $have_gcc_for_target = yes; then
13609     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13610     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13611     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13612   fi
13613 fi
13614 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13615   # Extract the first word of "ar", so it can be a program name with args.
13616 set dummy ar; ac_word=$2
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13618 $as_echo_n "checking for $ac_word... " >&6; }
13619 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13620   $as_echo_n "(cached) " >&6
13621 else
13622   case $AR_FOR_TARGET in
13623   [\\/]* | ?:[\\/]*)
13624   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13625   ;;
13626   *)
13627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $gcc_cv_tool_dirs
13629 do
13630   IFS=$as_save_IFS
13631   test -z "$as_dir" && as_dir=.
13632     for ac_exec_ext in '' $ac_executable_extensions; do
13633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13634     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13636     break 2
13637   fi
13638 done
13639   done
13640 IFS=$as_save_IFS
13641
13642   ;;
13643 esac
13644 fi
13645 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13646 if test -n "$AR_FOR_TARGET"; then
13647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13648 $as_echo "$AR_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 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13657
13658
13659 if test -n "$AR_FOR_TARGET"; then
13660   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13661 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13662   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13663 fi
13664
13665 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13666   for ncn_progname in ar; do
13667     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13668 set dummy ${ncn_progname}; ac_word=$2
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13670 $as_echo_n "checking for $ac_word... " >&6; }
13671 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13672   $as_echo_n "(cached) " >&6
13673 else
13674   if test -n "$AR_FOR_TARGET"; then
13675   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13676 else
13677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13678 for as_dir in $PATH
13679 do
13680   IFS=$as_save_IFS
13681   test -z "$as_dir" && as_dir=.
13682     for ac_exec_ext in '' $ac_executable_extensions; do
13683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13684     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13686     break 2
13687   fi
13688 done
13689   done
13690 IFS=$as_save_IFS
13691
13692 fi
13693 fi
13694 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13695 if test -n "$AR_FOR_TARGET"; then
13696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13697 $as_echo "$AR_FOR_TARGET" >&6; }
13698 else
13699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13700 $as_echo "no" >&6; }
13701 fi
13702
13703
13704   done
13705 fi
13706
13707 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13708   for ncn_progname in ar; do
13709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13710 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13711     if test -x $with_build_time_tools/${ncn_progname}; then
13712       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13713       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13714 $as_echo "yes" >&6; }
13715       break
13716     else
13717       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13718 $as_echo "no" >&6; }
13719     fi
13720   done
13721 fi
13722
13723 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13724   for ncn_progname in ar; do
13725     if test -n "$ncn_target_tool_prefix"; then
13726       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13727 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13729 $as_echo_n "checking for $ac_word... " >&6; }
13730 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13731   $as_echo_n "(cached) " >&6
13732 else
13733   if test -n "$AR_FOR_TARGET"; then
13734   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13735 else
13736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13737 for as_dir in $PATH
13738 do
13739   IFS=$as_save_IFS
13740   test -z "$as_dir" && as_dir=.
13741     for ac_exec_ext in '' $ac_executable_extensions; do
13742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13743     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13745     break 2
13746   fi
13747 done
13748   done
13749 IFS=$as_save_IFS
13750
13751 fi
13752 fi
13753 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13754 if test -n "$AR_FOR_TARGET"; then
13755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13756 $as_echo "$AR_FOR_TARGET" >&6; }
13757 else
13758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13759 $as_echo "no" >&6; }
13760 fi
13761
13762
13763     fi
13764     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13765       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13766 set dummy ${ncn_progname}; ac_word=$2
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13768 $as_echo_n "checking for $ac_word... " >&6; }
13769 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13770   $as_echo_n "(cached) " >&6
13771 else
13772   if test -n "$AR_FOR_TARGET"; then
13773   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13774 else
13775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13776 for as_dir in $PATH
13777 do
13778   IFS=$as_save_IFS
13779   test -z "$as_dir" && as_dir=.
13780     for ac_exec_ext in '' $ac_executable_extensions; do
13781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13782     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13784     break 2
13785   fi
13786 done
13787   done
13788 IFS=$as_save_IFS
13789
13790 fi
13791 fi
13792 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13793 if test -n "$AR_FOR_TARGET"; then
13794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13795 $as_echo "$AR_FOR_TARGET" >&6; }
13796 else
13797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13798 $as_echo "no" >&6; }
13799 fi
13800
13801
13802     fi
13803     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13804   done
13805 fi
13806
13807 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13808   set dummy ar
13809   if test $build = $target ; then
13810     AR_FOR_TARGET="$2"
13811   else
13812     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
13813   fi
13814 else
13815   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
13816 fi
13817
13818 else
13819   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13820 fi
13821
13822
13823
13824
13825 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13826   if test -n "$with_build_time_tools"; then
13827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
13828 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
13829     if test -x $with_build_time_tools/as; then
13830       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13831       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13832       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
13833 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
13834     else
13835       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836 $as_echo "no" >&6; }
13837     fi
13838   elif test $build != $host && test $have_gcc_for_target = yes; then
13839     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
13840     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13841     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13842   fi
13843 fi
13844 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13845   # Extract the first word of "as", so it can be a program name with args.
13846 set dummy as; ac_word=$2
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13848 $as_echo_n "checking for $ac_word... " >&6; }
13849 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
13850   $as_echo_n "(cached) " >&6
13851 else
13852   case $AS_FOR_TARGET in
13853   [\\/]* | ?:[\\/]*)
13854   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
13855   ;;
13856   *)
13857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13858 for as_dir in $gcc_cv_tool_dirs
13859 do
13860   IFS=$as_save_IFS
13861   test -z "$as_dir" && as_dir=.
13862     for ac_exec_ext in '' $ac_executable_extensions; do
13863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13864     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13866     break 2
13867   fi
13868 done
13869   done
13870 IFS=$as_save_IFS
13871
13872   ;;
13873 esac
13874 fi
13875 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13876 if test -n "$AS_FOR_TARGET"; then
13877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13878 $as_echo "$AS_FOR_TARGET" >&6; }
13879 else
13880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13881 $as_echo "no" >&6; }
13882 fi
13883
13884
13885 fi
13886 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13887
13888
13889 if test -n "$AS_FOR_TARGET"; then
13890   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
13891 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13892   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13893 fi
13894
13895 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13896   for ncn_progname in as; do
13897     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13898 set dummy ${ncn_progname}; ac_word=$2
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13900 $as_echo_n "checking for $ac_word... " >&6; }
13901 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13902   $as_echo_n "(cached) " >&6
13903 else
13904   if test -n "$AS_FOR_TARGET"; then
13905   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13906 else
13907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13908 for as_dir in $PATH
13909 do
13910   IFS=$as_save_IFS
13911   test -z "$as_dir" && as_dir=.
13912     for ac_exec_ext in '' $ac_executable_extensions; do
13913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13914     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13916     break 2
13917   fi
13918 done
13919   done
13920 IFS=$as_save_IFS
13921
13922 fi
13923 fi
13924 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13925 if test -n "$AS_FOR_TARGET"; then
13926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13927 $as_echo "$AS_FOR_TARGET" >&6; }
13928 else
13929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13930 $as_echo "no" >&6; }
13931 fi
13932
13933
13934   done
13935 fi
13936
13937 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
13938   for ncn_progname in as; do
13939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13940 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13941     if test -x $with_build_time_tools/${ncn_progname}; then
13942       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13943       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13944 $as_echo "yes" >&6; }
13945       break
13946     else
13947       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13948 $as_echo "no" >&6; }
13949     fi
13950   done
13951 fi
13952
13953 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
13954   for ncn_progname in as; do
13955     if test -n "$ncn_target_tool_prefix"; then
13956       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13957 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13959 $as_echo_n "checking for $ac_word... " >&6; }
13960 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13961   $as_echo_n "(cached) " >&6
13962 else
13963   if test -n "$AS_FOR_TARGET"; then
13964   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13965 else
13966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967 for as_dir in $PATH
13968 do
13969   IFS=$as_save_IFS
13970   test -z "$as_dir" && as_dir=.
13971     for ac_exec_ext in '' $ac_executable_extensions; do
13972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13973     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13975     break 2
13976   fi
13977 done
13978   done
13979 IFS=$as_save_IFS
13980
13981 fi
13982 fi
13983 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13984 if test -n "$AS_FOR_TARGET"; then
13985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13986 $as_echo "$AS_FOR_TARGET" >&6; }
13987 else
13988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13989 $as_echo "no" >&6; }
13990 fi
13991
13992
13993     fi
13994     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
13995       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13996 set dummy ${ncn_progname}; ac_word=$2
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13998 $as_echo_n "checking for $ac_word... " >&6; }
13999 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14000   $as_echo_n "(cached) " >&6
14001 else
14002   if test -n "$AS_FOR_TARGET"; then
14003   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14004 else
14005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14006 for as_dir in $PATH
14007 do
14008   IFS=$as_save_IFS
14009   test -z "$as_dir" && as_dir=.
14010     for ac_exec_ext in '' $ac_executable_extensions; do
14011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14012     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14014     break 2
14015   fi
14016 done
14017   done
14018 IFS=$as_save_IFS
14019
14020 fi
14021 fi
14022 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14023 if test -n "$AS_FOR_TARGET"; then
14024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14025 $as_echo "$AS_FOR_TARGET" >&6; }
14026 else
14027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14028 $as_echo "no" >&6; }
14029 fi
14030
14031
14032     fi
14033     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14034   done
14035 fi
14036
14037 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14038   set dummy as
14039   if test $build = $target ; then
14040     AS_FOR_TARGET="$2"
14041   else
14042     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14043   fi
14044 else
14045   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14046 fi
14047
14048 else
14049   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14050 fi
14051
14052
14053
14054
14055 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14056   if test -n "$with_build_time_tools"; then
14057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14058 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14059     if test -x $with_build_time_tools/dlltool; then
14060       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14061       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14062       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14063 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14064     else
14065       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14066 $as_echo "no" >&6; }
14067     fi
14068   elif test $build != $host && test $have_gcc_for_target = yes; then
14069     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14070     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14071     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14072   fi
14073 fi
14074 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14075   # Extract the first word of "dlltool", so it can be a program name with args.
14076 set dummy dlltool; ac_word=$2
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14078 $as_echo_n "checking for $ac_word... " >&6; }
14079 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14080   $as_echo_n "(cached) " >&6
14081 else
14082   case $DLLTOOL_FOR_TARGET in
14083   [\\/]* | ?:[\\/]*)
14084   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14085   ;;
14086   *)
14087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088 for as_dir in $gcc_cv_tool_dirs
14089 do
14090   IFS=$as_save_IFS
14091   test -z "$as_dir" && as_dir=.
14092     for ac_exec_ext in '' $ac_executable_extensions; do
14093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14094     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14096     break 2
14097   fi
14098 done
14099   done
14100 IFS=$as_save_IFS
14101
14102   ;;
14103 esac
14104 fi
14105 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14106 if test -n "$DLLTOOL_FOR_TARGET"; then
14107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14108 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14109 else
14110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14111 $as_echo "no" >&6; }
14112 fi
14113
14114
14115 fi
14116 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14117
14118
14119 if test -n "$DLLTOOL_FOR_TARGET"; then
14120   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14121 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14122   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14123 fi
14124
14125 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14126   for ncn_progname in dlltool; do
14127     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14128 set dummy ${ncn_progname}; ac_word=$2
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14130 $as_echo_n "checking for $ac_word... " >&6; }
14131 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14132   $as_echo_n "(cached) " >&6
14133 else
14134   if test -n "$DLLTOOL_FOR_TARGET"; then
14135   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14136 else
14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138 for as_dir in $PATH
14139 do
14140   IFS=$as_save_IFS
14141   test -z "$as_dir" && as_dir=.
14142     for ac_exec_ext in '' $ac_executable_extensions; do
14143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14144     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14146     break 2
14147   fi
14148 done
14149   done
14150 IFS=$as_save_IFS
14151
14152 fi
14153 fi
14154 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14155 if test -n "$DLLTOOL_FOR_TARGET"; then
14156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14157 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14158 else
14159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14160 $as_echo "no" >&6; }
14161 fi
14162
14163
14164   done
14165 fi
14166
14167 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14168   for ncn_progname in dlltool; do
14169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14170 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14171     if test -x $with_build_time_tools/${ncn_progname}; then
14172       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14173       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14174 $as_echo "yes" >&6; }
14175       break
14176     else
14177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14178 $as_echo "no" >&6; }
14179     fi
14180   done
14181 fi
14182
14183 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14184   for ncn_progname in dlltool; do
14185     if test -n "$ncn_target_tool_prefix"; then
14186       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14187 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14189 $as_echo_n "checking for $ac_word... " >&6; }
14190 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14191   $as_echo_n "(cached) " >&6
14192 else
14193   if test -n "$DLLTOOL_FOR_TARGET"; then
14194   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14195 else
14196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14197 for as_dir in $PATH
14198 do
14199   IFS=$as_save_IFS
14200   test -z "$as_dir" && as_dir=.
14201     for ac_exec_ext in '' $ac_executable_extensions; do
14202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14203     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14205     break 2
14206   fi
14207 done
14208   done
14209 IFS=$as_save_IFS
14210
14211 fi
14212 fi
14213 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14214 if test -n "$DLLTOOL_FOR_TARGET"; then
14215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14216 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14217 else
14218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14219 $as_echo "no" >&6; }
14220 fi
14221
14222
14223     fi
14224     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14225       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14226 set dummy ${ncn_progname}; ac_word=$2
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14228 $as_echo_n "checking for $ac_word... " >&6; }
14229 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14230   $as_echo_n "(cached) " >&6
14231 else
14232   if test -n "$DLLTOOL_FOR_TARGET"; then
14233   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14234 else
14235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236 for as_dir in $PATH
14237 do
14238   IFS=$as_save_IFS
14239   test -z "$as_dir" && as_dir=.
14240     for ac_exec_ext in '' $ac_executable_extensions; do
14241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14242     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14244     break 2
14245   fi
14246 done
14247   done
14248 IFS=$as_save_IFS
14249
14250 fi
14251 fi
14252 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14253 if test -n "$DLLTOOL_FOR_TARGET"; then
14254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14255 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14256 else
14257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14258 $as_echo "no" >&6; }
14259 fi
14260
14261
14262     fi
14263     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14264   done
14265 fi
14266
14267 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14268   set dummy dlltool
14269   if test $build = $target ; then
14270     DLLTOOL_FOR_TARGET="$2"
14271   else
14272     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14273   fi
14274 else
14275   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14276 fi
14277
14278 else
14279   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14280 fi
14281
14282
14283
14284
14285 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14286   if test -n "$with_build_time_tools"; then
14287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14288 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14289     if test -x $with_build_time_tools/dsymutil; then
14290       DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14291       ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14292       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14293 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14294     else
14295       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14296 $as_echo "no" >&6; }
14297     fi
14298   elif test $build != $host && test $have_gcc_for_target = yes; then
14299     DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14300     test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14301     test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14302   fi
14303 fi
14304 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14305   # Extract the first word of "dsymutil", so it can be a program name with args.
14306 set dummy dsymutil; ac_word=$2
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14308 $as_echo_n "checking for $ac_word... " >&6; }
14309 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14310   $as_echo_n "(cached) " >&6
14311 else
14312   case $DSYMUTIL_FOR_TARGET in
14313   [\\/]* | ?:[\\/]*)
14314   ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14315   ;;
14316   *)
14317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14318 for as_dir in $gcc_cv_tool_dirs
14319 do
14320   IFS=$as_save_IFS
14321   test -z "$as_dir" && as_dir=.
14322     for ac_exec_ext in '' $ac_executable_extensions; do
14323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14324     ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14326     break 2
14327   fi
14328 done
14329   done
14330 IFS=$as_save_IFS
14331
14332   ;;
14333 esac
14334 fi
14335 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14336 if test -n "$DSYMUTIL_FOR_TARGET"; then
14337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14338 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14339 else
14340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14341 $as_echo "no" >&6; }
14342 fi
14343
14344
14345 fi
14346 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14347
14348
14349 if test -n "$DSYMUTIL_FOR_TARGET"; then
14350   ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14351 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14352   DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14353 fi
14354
14355 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14356   for ncn_progname in dsymutil; do
14357     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14358 set dummy ${ncn_progname}; ac_word=$2
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14360 $as_echo_n "checking for $ac_word... " >&6; }
14361 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14362   $as_echo_n "(cached) " >&6
14363 else
14364   if test -n "$DSYMUTIL_FOR_TARGET"; then
14365   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14366 else
14367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14368 for as_dir in $PATH
14369 do
14370   IFS=$as_save_IFS
14371   test -z "$as_dir" && as_dir=.
14372     for ac_exec_ext in '' $ac_executable_extensions; do
14373   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14374     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14376     break 2
14377   fi
14378 done
14379   done
14380 IFS=$as_save_IFS
14381
14382 fi
14383 fi
14384 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14385 if test -n "$DSYMUTIL_FOR_TARGET"; then
14386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14387 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14388 else
14389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14390 $as_echo "no" >&6; }
14391 fi
14392
14393
14394   done
14395 fi
14396
14397 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14398   for ncn_progname in dsymutil; do
14399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14400 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14401     if test -x $with_build_time_tools/${ncn_progname}; then
14402       ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14403       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14404 $as_echo "yes" >&6; }
14405       break
14406     else
14407       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14408 $as_echo "no" >&6; }
14409     fi
14410   done
14411 fi
14412
14413 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14414   for ncn_progname in dsymutil; do
14415     if test -n "$ncn_target_tool_prefix"; then
14416       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14417 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14419 $as_echo_n "checking for $ac_word... " >&6; }
14420 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14421   $as_echo_n "(cached) " >&6
14422 else
14423   if test -n "$DSYMUTIL_FOR_TARGET"; then
14424   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14425 else
14426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14427 for as_dir in $PATH
14428 do
14429   IFS=$as_save_IFS
14430   test -z "$as_dir" && as_dir=.
14431     for ac_exec_ext in '' $ac_executable_extensions; do
14432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14433     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14435     break 2
14436   fi
14437 done
14438   done
14439 IFS=$as_save_IFS
14440
14441 fi
14442 fi
14443 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14444 if test -n "$DSYMUTIL_FOR_TARGET"; then
14445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14446 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14447 else
14448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14449 $as_echo "no" >&6; }
14450 fi
14451
14452
14453     fi
14454     if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14455       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14456 set dummy ${ncn_progname}; ac_word=$2
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14458 $as_echo_n "checking for $ac_word... " >&6; }
14459 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14460   $as_echo_n "(cached) " >&6
14461 else
14462   if test -n "$DSYMUTIL_FOR_TARGET"; then
14463   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14464 else
14465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14466 for as_dir in $PATH
14467 do
14468   IFS=$as_save_IFS
14469   test -z "$as_dir" && as_dir=.
14470     for ac_exec_ext in '' $ac_executable_extensions; do
14471   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14472     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14474     break 2
14475   fi
14476 done
14477   done
14478 IFS=$as_save_IFS
14479
14480 fi
14481 fi
14482 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14483 if test -n "$DSYMUTIL_FOR_TARGET"; then
14484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14485 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14486 else
14487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14488 $as_echo "no" >&6; }
14489 fi
14490
14491
14492     fi
14493     test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14494   done
14495 fi
14496
14497 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14498   set dummy dsymutil
14499   if test $build = $target ; then
14500     DSYMUTIL_FOR_TARGET="$2"
14501   else
14502     DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14503   fi
14504 else
14505   DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14506 fi
14507
14508 else
14509   DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14510 fi
14511
14512
14513
14514
14515 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14516   if test -n "$with_build_time_tools"; then
14517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14518 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14519     if test -x $with_build_time_tools/ld; then
14520       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14521       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14522       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14523 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14524     else
14525       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14526 $as_echo "no" >&6; }
14527     fi
14528   elif test $build != $host && test $have_gcc_for_target = yes; then
14529     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14530     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14531     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14532   fi
14533 fi
14534 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14535   # Extract the first word of "ld", so it can be a program name with args.
14536 set dummy ld; ac_word=$2
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14538 $as_echo_n "checking for $ac_word... " >&6; }
14539 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14540   $as_echo_n "(cached) " >&6
14541 else
14542   case $LD_FOR_TARGET in
14543   [\\/]* | ?:[\\/]*)
14544   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14545   ;;
14546   *)
14547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14548 for as_dir in $gcc_cv_tool_dirs
14549 do
14550   IFS=$as_save_IFS
14551   test -z "$as_dir" && as_dir=.
14552     for ac_exec_ext in '' $ac_executable_extensions; do
14553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14554     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14556     break 2
14557   fi
14558 done
14559   done
14560 IFS=$as_save_IFS
14561
14562   ;;
14563 esac
14564 fi
14565 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14566 if test -n "$LD_FOR_TARGET"; then
14567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14568 $as_echo "$LD_FOR_TARGET" >&6; }
14569 else
14570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14571 $as_echo "no" >&6; }
14572 fi
14573
14574
14575 fi
14576 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14577
14578
14579 if test -n "$LD_FOR_TARGET"; then
14580   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14581 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14582   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14583 fi
14584
14585 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14586   for ncn_progname in ld; do
14587     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14588 set dummy ${ncn_progname}; ac_word=$2
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14590 $as_echo_n "checking for $ac_word... " >&6; }
14591 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14592   $as_echo_n "(cached) " >&6
14593 else
14594   if test -n "$LD_FOR_TARGET"; then
14595   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14596 else
14597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14598 for as_dir in $PATH
14599 do
14600   IFS=$as_save_IFS
14601   test -z "$as_dir" && as_dir=.
14602     for ac_exec_ext in '' $ac_executable_extensions; do
14603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14604     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14606     break 2
14607   fi
14608 done
14609   done
14610 IFS=$as_save_IFS
14611
14612 fi
14613 fi
14614 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14615 if test -n "$LD_FOR_TARGET"; then
14616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14617 $as_echo "$LD_FOR_TARGET" >&6; }
14618 else
14619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14620 $as_echo "no" >&6; }
14621 fi
14622
14623
14624   done
14625 fi
14626
14627 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14628   for ncn_progname in ld; do
14629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14630 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14631     if test -x $with_build_time_tools/${ncn_progname}; then
14632       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14633       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14634 $as_echo "yes" >&6; }
14635       break
14636     else
14637       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14638 $as_echo "no" >&6; }
14639     fi
14640   done
14641 fi
14642
14643 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14644   for ncn_progname in ld; do
14645     if test -n "$ncn_target_tool_prefix"; then
14646       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14647 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14649 $as_echo_n "checking for $ac_word... " >&6; }
14650 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14651   $as_echo_n "(cached) " >&6
14652 else
14653   if test -n "$LD_FOR_TARGET"; then
14654   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14655 else
14656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14657 for as_dir in $PATH
14658 do
14659   IFS=$as_save_IFS
14660   test -z "$as_dir" && as_dir=.
14661     for ac_exec_ext in '' $ac_executable_extensions; do
14662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14663     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14665     break 2
14666   fi
14667 done
14668   done
14669 IFS=$as_save_IFS
14670
14671 fi
14672 fi
14673 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14674 if test -n "$LD_FOR_TARGET"; then
14675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14676 $as_echo "$LD_FOR_TARGET" >&6; }
14677 else
14678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14679 $as_echo "no" >&6; }
14680 fi
14681
14682
14683     fi
14684     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14685       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14686 set dummy ${ncn_progname}; ac_word=$2
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14688 $as_echo_n "checking for $ac_word... " >&6; }
14689 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14690   $as_echo_n "(cached) " >&6
14691 else
14692   if test -n "$LD_FOR_TARGET"; then
14693   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14694 else
14695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14696 for as_dir in $PATH
14697 do
14698   IFS=$as_save_IFS
14699   test -z "$as_dir" && as_dir=.
14700     for ac_exec_ext in '' $ac_executable_extensions; do
14701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14702     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14704     break 2
14705   fi
14706 done
14707   done
14708 IFS=$as_save_IFS
14709
14710 fi
14711 fi
14712 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14713 if test -n "$LD_FOR_TARGET"; then
14714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14715 $as_echo "$LD_FOR_TARGET" >&6; }
14716 else
14717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14718 $as_echo "no" >&6; }
14719 fi
14720
14721
14722     fi
14723     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14724   done
14725 fi
14726
14727 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14728   set dummy ld
14729   if test $build = $target ; then
14730     LD_FOR_TARGET="$2"
14731   else
14732     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14733   fi
14734 else
14735   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14736 fi
14737
14738 else
14739   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14740 fi
14741
14742
14743
14744
14745 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14746   if test -n "$with_build_time_tools"; then
14747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14748 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14749     if test -x $with_build_time_tools/lipo; then
14750       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14751       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14752       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14753 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14754     else
14755       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14756 $as_echo "no" >&6; }
14757     fi
14758   elif test $build != $host && test $have_gcc_for_target = yes; then
14759     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14760     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14761     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14762   fi
14763 fi
14764 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14765   # Extract the first word of "lipo", so it can be a program name with args.
14766 set dummy lipo; ac_word=$2
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14768 $as_echo_n "checking for $ac_word... " >&6; }
14769 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14770   $as_echo_n "(cached) " >&6
14771 else
14772   case $LIPO_FOR_TARGET in
14773   [\\/]* | ?:[\\/]*)
14774   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14775   ;;
14776   *)
14777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14778 for as_dir in $gcc_cv_tool_dirs
14779 do
14780   IFS=$as_save_IFS
14781   test -z "$as_dir" && as_dir=.
14782     for ac_exec_ext in '' $ac_executable_extensions; do
14783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14784     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14786     break 2
14787   fi
14788 done
14789   done
14790 IFS=$as_save_IFS
14791
14792   ;;
14793 esac
14794 fi
14795 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14796 if test -n "$LIPO_FOR_TARGET"; then
14797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14798 $as_echo "$LIPO_FOR_TARGET" >&6; }
14799 else
14800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14801 $as_echo "no" >&6; }
14802 fi
14803
14804
14805 fi
14806 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14807
14808
14809 if test -n "$LIPO_FOR_TARGET"; then
14810   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14811 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14812   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14813 fi
14814
14815 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14816   for ncn_progname in lipo; do
14817     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14818 set dummy ${ncn_progname}; ac_word=$2
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14820 $as_echo_n "checking for $ac_word... " >&6; }
14821 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14822   $as_echo_n "(cached) " >&6
14823 else
14824   if test -n "$LIPO_FOR_TARGET"; then
14825   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14826 else
14827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14828 for as_dir in $PATH
14829 do
14830   IFS=$as_save_IFS
14831   test -z "$as_dir" && as_dir=.
14832     for ac_exec_ext in '' $ac_executable_extensions; do
14833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14834     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14836     break 2
14837   fi
14838 done
14839   done
14840 IFS=$as_save_IFS
14841
14842 fi
14843 fi
14844 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14845 if test -n "$LIPO_FOR_TARGET"; then
14846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14847 $as_echo "$LIPO_FOR_TARGET" >&6; }
14848 else
14849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14850 $as_echo "no" >&6; }
14851 fi
14852
14853
14854   done
14855 fi
14856
14857 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
14858   for ncn_progname in lipo; do
14859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14860 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14861     if test -x $with_build_time_tools/${ncn_progname}; then
14862       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14863       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14864 $as_echo "yes" >&6; }
14865       break
14866     else
14867       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14868 $as_echo "no" >&6; }
14869     fi
14870   done
14871 fi
14872
14873 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
14874   for ncn_progname in lipo; do
14875     if test -n "$ncn_target_tool_prefix"; then
14876       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14877 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14879 $as_echo_n "checking for $ac_word... " >&6; }
14880 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14881   $as_echo_n "(cached) " >&6
14882 else
14883   if test -n "$LIPO_FOR_TARGET"; then
14884   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14885 else
14886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14887 for as_dir in $PATH
14888 do
14889   IFS=$as_save_IFS
14890   test -z "$as_dir" && as_dir=.
14891     for ac_exec_ext in '' $ac_executable_extensions; do
14892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14893     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14895     break 2
14896   fi
14897 done
14898   done
14899 IFS=$as_save_IFS
14900
14901 fi
14902 fi
14903 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14904 if test -n "$LIPO_FOR_TARGET"; then
14905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14906 $as_echo "$LIPO_FOR_TARGET" >&6; }
14907 else
14908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14909 $as_echo "no" >&6; }
14910 fi
14911
14912
14913     fi
14914     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
14915       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14916 set dummy ${ncn_progname}; ac_word=$2
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14918 $as_echo_n "checking for $ac_word... " >&6; }
14919 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14920   $as_echo_n "(cached) " >&6
14921 else
14922   if test -n "$LIPO_FOR_TARGET"; then
14923   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14924 else
14925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14926 for as_dir in $PATH
14927 do
14928   IFS=$as_save_IFS
14929   test -z "$as_dir" && as_dir=.
14930     for ac_exec_ext in '' $ac_executable_extensions; do
14931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14932     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14934     break 2
14935   fi
14936 done
14937   done
14938 IFS=$as_save_IFS
14939
14940 fi
14941 fi
14942 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14943 if test -n "$LIPO_FOR_TARGET"; then
14944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14945 $as_echo "$LIPO_FOR_TARGET" >&6; }
14946 else
14947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14948 $as_echo "no" >&6; }
14949 fi
14950
14951
14952     fi
14953     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
14954   done
14955 fi
14956
14957 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
14958   set dummy lipo
14959   if test $build = $target ; then
14960     LIPO_FOR_TARGET="$2"
14961   else
14962     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
14963   fi
14964 else
14965   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
14966 fi
14967
14968 else
14969   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14970 fi
14971
14972
14973
14974
14975 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14976   if test -n "$with_build_time_tools"; then
14977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
14978 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
14979     if test -x $with_build_time_tools/nm; then
14980       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
14981       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14982       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
14983 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
14984     else
14985       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14986 $as_echo "no" >&6; }
14987     fi
14988   elif test $build != $host && test $have_gcc_for_target = yes; then
14989     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
14990     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
14991     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14992   fi
14993 fi
14994 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14995   # Extract the first word of "nm", so it can be a program name with args.
14996 set dummy nm; ac_word=$2
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14998 $as_echo_n "checking for $ac_word... " >&6; }
14999 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15000   $as_echo_n "(cached) " >&6
15001 else
15002   case $NM_FOR_TARGET in
15003   [\\/]* | ?:[\\/]*)
15004   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15005   ;;
15006   *)
15007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15008 for as_dir in $gcc_cv_tool_dirs
15009 do
15010   IFS=$as_save_IFS
15011   test -z "$as_dir" && as_dir=.
15012     for ac_exec_ext in '' $ac_executable_extensions; do
15013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15014     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15016     break 2
15017   fi
15018 done
15019   done
15020 IFS=$as_save_IFS
15021
15022   ;;
15023 esac
15024 fi
15025 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15026 if test -n "$NM_FOR_TARGET"; then
15027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15028 $as_echo "$NM_FOR_TARGET" >&6; }
15029 else
15030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15031 $as_echo "no" >&6; }
15032 fi
15033
15034
15035 fi
15036 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15037
15038
15039 if test -n "$NM_FOR_TARGET"; then
15040   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15041 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15042   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15043 fi
15044
15045 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15046   for ncn_progname in nm; do
15047     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15048 set dummy ${ncn_progname}; ac_word=$2
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15050 $as_echo_n "checking for $ac_word... " >&6; }
15051 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15052   $as_echo_n "(cached) " >&6
15053 else
15054   if test -n "$NM_FOR_TARGET"; then
15055   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15056 else
15057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15058 for as_dir in $PATH
15059 do
15060   IFS=$as_save_IFS
15061   test -z "$as_dir" && as_dir=.
15062     for ac_exec_ext in '' $ac_executable_extensions; do
15063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15064     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15066     break 2
15067   fi
15068 done
15069   done
15070 IFS=$as_save_IFS
15071
15072 fi
15073 fi
15074 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15075 if test -n "$NM_FOR_TARGET"; then
15076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15077 $as_echo "$NM_FOR_TARGET" >&6; }
15078 else
15079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15080 $as_echo "no" >&6; }
15081 fi
15082
15083
15084   done
15085 fi
15086
15087 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15088   for ncn_progname in nm; do
15089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15090 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15091     if test -x $with_build_time_tools/${ncn_progname}; then
15092       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15093       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15094 $as_echo "yes" >&6; }
15095       break
15096     else
15097       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15098 $as_echo "no" >&6; }
15099     fi
15100   done
15101 fi
15102
15103 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15104   for ncn_progname in nm; do
15105     if test -n "$ncn_target_tool_prefix"; then
15106       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15107 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15109 $as_echo_n "checking for $ac_word... " >&6; }
15110 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15111   $as_echo_n "(cached) " >&6
15112 else
15113   if test -n "$NM_FOR_TARGET"; then
15114   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15115 else
15116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15117 for as_dir in $PATH
15118 do
15119   IFS=$as_save_IFS
15120   test -z "$as_dir" && as_dir=.
15121     for ac_exec_ext in '' $ac_executable_extensions; do
15122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15123     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15125     break 2
15126   fi
15127 done
15128   done
15129 IFS=$as_save_IFS
15130
15131 fi
15132 fi
15133 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15134 if test -n "$NM_FOR_TARGET"; then
15135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15136 $as_echo "$NM_FOR_TARGET" >&6; }
15137 else
15138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15139 $as_echo "no" >&6; }
15140 fi
15141
15142
15143     fi
15144     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15145       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15146 set dummy ${ncn_progname}; ac_word=$2
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15148 $as_echo_n "checking for $ac_word... " >&6; }
15149 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15150   $as_echo_n "(cached) " >&6
15151 else
15152   if test -n "$NM_FOR_TARGET"; then
15153   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15154 else
15155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15156 for as_dir in $PATH
15157 do
15158   IFS=$as_save_IFS
15159   test -z "$as_dir" && as_dir=.
15160     for ac_exec_ext in '' $ac_executable_extensions; do
15161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15162     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15164     break 2
15165   fi
15166 done
15167   done
15168 IFS=$as_save_IFS
15169
15170 fi
15171 fi
15172 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15173 if test -n "$NM_FOR_TARGET"; then
15174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15175 $as_echo "$NM_FOR_TARGET" >&6; }
15176 else
15177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15178 $as_echo "no" >&6; }
15179 fi
15180
15181
15182     fi
15183     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15184   done
15185 fi
15186
15187 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15188   set dummy nm
15189   if test $build = $target ; then
15190     NM_FOR_TARGET="$2"
15191   else
15192     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15193   fi
15194 else
15195   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15196 fi
15197
15198 else
15199   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15200 fi
15201
15202
15203
15204
15205 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15206   if test -n "$with_build_time_tools"; then
15207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15208 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15209     if test -x $with_build_time_tools/objcopy; then
15210       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15211       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15212       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15213 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15214     else
15215       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15216 $as_echo "no" >&6; }
15217     fi
15218   elif test $build != $host && test $have_gcc_for_target = yes; then
15219     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15220     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15221     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15222   fi
15223 fi
15224 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15225   # Extract the first word of "objcopy", so it can be a program name with args.
15226 set dummy objcopy; ac_word=$2
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15228 $as_echo_n "checking for $ac_word... " >&6; }
15229 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15230   $as_echo_n "(cached) " >&6
15231 else
15232   case $OBJCOPY_FOR_TARGET in
15233   [\\/]* | ?:[\\/]*)
15234   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15235   ;;
15236   *)
15237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15238 for as_dir in $gcc_cv_tool_dirs
15239 do
15240   IFS=$as_save_IFS
15241   test -z "$as_dir" && as_dir=.
15242     for ac_exec_ext in '' $ac_executable_extensions; do
15243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15244     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15246     break 2
15247   fi
15248 done
15249   done
15250 IFS=$as_save_IFS
15251
15252   ;;
15253 esac
15254 fi
15255 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15256 if test -n "$OBJCOPY_FOR_TARGET"; then
15257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15258 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15259 else
15260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15261 $as_echo "no" >&6; }
15262 fi
15263
15264
15265 fi
15266 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15267
15268
15269 if test -n "$OBJCOPY_FOR_TARGET"; then
15270   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15271 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15272   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15273 fi
15274
15275 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15276   for ncn_progname in objcopy; do
15277     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15278 set dummy ${ncn_progname}; ac_word=$2
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15280 $as_echo_n "checking for $ac_word... " >&6; }
15281 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15282   $as_echo_n "(cached) " >&6
15283 else
15284   if test -n "$OBJCOPY_FOR_TARGET"; then
15285   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15286 else
15287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15288 for as_dir in $PATH
15289 do
15290   IFS=$as_save_IFS
15291   test -z "$as_dir" && as_dir=.
15292     for ac_exec_ext in '' $ac_executable_extensions; do
15293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15294     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15296     break 2
15297   fi
15298 done
15299   done
15300 IFS=$as_save_IFS
15301
15302 fi
15303 fi
15304 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15305 if test -n "$OBJCOPY_FOR_TARGET"; then
15306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15307 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15308 else
15309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15310 $as_echo "no" >&6; }
15311 fi
15312
15313
15314   done
15315 fi
15316
15317 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15318   for ncn_progname in objcopy; do
15319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15320 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15321     if test -x $with_build_time_tools/${ncn_progname}; then
15322       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15323       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15324 $as_echo "yes" >&6; }
15325       break
15326     else
15327       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15328 $as_echo "no" >&6; }
15329     fi
15330   done
15331 fi
15332
15333 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15334   for ncn_progname in objcopy; do
15335     if test -n "$ncn_target_tool_prefix"; then
15336       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15337 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15339 $as_echo_n "checking for $ac_word... " >&6; }
15340 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15341   $as_echo_n "(cached) " >&6
15342 else
15343   if test -n "$OBJCOPY_FOR_TARGET"; then
15344   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15345 else
15346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15347 for as_dir in $PATH
15348 do
15349   IFS=$as_save_IFS
15350   test -z "$as_dir" && as_dir=.
15351     for ac_exec_ext in '' $ac_executable_extensions; do
15352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15353     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15355     break 2
15356   fi
15357 done
15358   done
15359 IFS=$as_save_IFS
15360
15361 fi
15362 fi
15363 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15364 if test -n "$OBJCOPY_FOR_TARGET"; then
15365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15366 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15367 else
15368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15369 $as_echo "no" >&6; }
15370 fi
15371
15372
15373     fi
15374     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15375       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15376 set dummy ${ncn_progname}; ac_word=$2
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15378 $as_echo_n "checking for $ac_word... " >&6; }
15379 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15380   $as_echo_n "(cached) " >&6
15381 else
15382   if test -n "$OBJCOPY_FOR_TARGET"; then
15383   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15384 else
15385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15386 for as_dir in $PATH
15387 do
15388   IFS=$as_save_IFS
15389   test -z "$as_dir" && as_dir=.
15390     for ac_exec_ext in '' $ac_executable_extensions; do
15391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15392     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15394     break 2
15395   fi
15396 done
15397   done
15398 IFS=$as_save_IFS
15399
15400 fi
15401 fi
15402 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15403 if test -n "$OBJCOPY_FOR_TARGET"; then
15404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15405 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15406 else
15407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15408 $as_echo "no" >&6; }
15409 fi
15410
15411
15412     fi
15413     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15414   done
15415 fi
15416
15417 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15418   set dummy objcopy
15419   if test $build = $target ; then
15420     OBJCOPY_FOR_TARGET="$2"
15421   else
15422     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15423   fi
15424 else
15425   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15426 fi
15427
15428 else
15429   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15430 fi
15431
15432
15433
15434
15435 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15436   if test -n "$with_build_time_tools"; then
15437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15438 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15439     if test -x $with_build_time_tools/objdump; then
15440       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15441       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15442       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15443 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15444     else
15445       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15446 $as_echo "no" >&6; }
15447     fi
15448   elif test $build != $host && test $have_gcc_for_target = yes; then
15449     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15450     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15451     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15452   fi
15453 fi
15454 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15455   # Extract the first word of "objdump", so it can be a program name with args.
15456 set dummy objdump; ac_word=$2
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15458 $as_echo_n "checking for $ac_word... " >&6; }
15459 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15460   $as_echo_n "(cached) " >&6
15461 else
15462   case $OBJDUMP_FOR_TARGET in
15463   [\\/]* | ?:[\\/]*)
15464   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15465   ;;
15466   *)
15467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15468 for as_dir in $gcc_cv_tool_dirs
15469 do
15470   IFS=$as_save_IFS
15471   test -z "$as_dir" && as_dir=.
15472     for ac_exec_ext in '' $ac_executable_extensions; do
15473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15474     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15476     break 2
15477   fi
15478 done
15479   done
15480 IFS=$as_save_IFS
15481
15482   ;;
15483 esac
15484 fi
15485 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15486 if test -n "$OBJDUMP_FOR_TARGET"; then
15487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15488 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15489 else
15490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15491 $as_echo "no" >&6; }
15492 fi
15493
15494
15495 fi
15496 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15497
15498
15499 if test -n "$OBJDUMP_FOR_TARGET"; then
15500   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15501 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15502   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15503 fi
15504
15505 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15506   for ncn_progname in objdump; do
15507     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15508 set dummy ${ncn_progname}; ac_word=$2
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15510 $as_echo_n "checking for $ac_word... " >&6; }
15511 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15512   $as_echo_n "(cached) " >&6
15513 else
15514   if test -n "$OBJDUMP_FOR_TARGET"; then
15515   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15516 else
15517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15518 for as_dir in $PATH
15519 do
15520   IFS=$as_save_IFS
15521   test -z "$as_dir" && as_dir=.
15522     for ac_exec_ext in '' $ac_executable_extensions; do
15523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15524     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15526     break 2
15527   fi
15528 done
15529   done
15530 IFS=$as_save_IFS
15531
15532 fi
15533 fi
15534 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15535 if test -n "$OBJDUMP_FOR_TARGET"; then
15536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15537 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15538 else
15539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15540 $as_echo "no" >&6; }
15541 fi
15542
15543
15544   done
15545 fi
15546
15547 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15548   for ncn_progname in objdump; do
15549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15550 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15551     if test -x $with_build_time_tools/${ncn_progname}; then
15552       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15553       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15554 $as_echo "yes" >&6; }
15555       break
15556     else
15557       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15558 $as_echo "no" >&6; }
15559     fi
15560   done
15561 fi
15562
15563 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15564   for ncn_progname in objdump; do
15565     if test -n "$ncn_target_tool_prefix"; then
15566       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15567 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15569 $as_echo_n "checking for $ac_word... " >&6; }
15570 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15571   $as_echo_n "(cached) " >&6
15572 else
15573   if test -n "$OBJDUMP_FOR_TARGET"; then
15574   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15575 else
15576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15577 for as_dir in $PATH
15578 do
15579   IFS=$as_save_IFS
15580   test -z "$as_dir" && as_dir=.
15581     for ac_exec_ext in '' $ac_executable_extensions; do
15582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15583     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15585     break 2
15586   fi
15587 done
15588   done
15589 IFS=$as_save_IFS
15590
15591 fi
15592 fi
15593 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15594 if test -n "$OBJDUMP_FOR_TARGET"; then
15595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15596 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15597 else
15598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15599 $as_echo "no" >&6; }
15600 fi
15601
15602
15603     fi
15604     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15605       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15606 set dummy ${ncn_progname}; ac_word=$2
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15608 $as_echo_n "checking for $ac_word... " >&6; }
15609 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15610   $as_echo_n "(cached) " >&6
15611 else
15612   if test -n "$OBJDUMP_FOR_TARGET"; then
15613   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15614 else
15615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15616 for as_dir in $PATH
15617 do
15618   IFS=$as_save_IFS
15619   test -z "$as_dir" && as_dir=.
15620     for ac_exec_ext in '' $ac_executable_extensions; do
15621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15622     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15624     break 2
15625   fi
15626 done
15627   done
15628 IFS=$as_save_IFS
15629
15630 fi
15631 fi
15632 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15633 if test -n "$OBJDUMP_FOR_TARGET"; then
15634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15635 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15636 else
15637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15638 $as_echo "no" >&6; }
15639 fi
15640
15641
15642     fi
15643     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15644   done
15645 fi
15646
15647 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15648   set dummy objdump
15649   if test $build = $target ; then
15650     OBJDUMP_FOR_TARGET="$2"
15651   else
15652     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15653   fi
15654 else
15655   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15656 fi
15657
15658 else
15659   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15660 fi
15661
15662
15663
15664
15665 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15666   if test -n "$with_build_time_tools"; then
15667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15668 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15669     if test -x $with_build_time_tools/otool; then
15670       OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15671       ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15672       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15673 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15674     else
15675       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15676 $as_echo "no" >&6; }
15677     fi
15678   elif test $build != $host && test $have_gcc_for_target = yes; then
15679     OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15680     test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15681     test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15682   fi
15683 fi
15684 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15685   # Extract the first word of "otool", so it can be a program name with args.
15686 set dummy otool; ac_word=$2
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15688 $as_echo_n "checking for $ac_word... " >&6; }
15689 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15690   $as_echo_n "(cached) " >&6
15691 else
15692   case $OTOOL_FOR_TARGET in
15693   [\\/]* | ?:[\\/]*)
15694   ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15695   ;;
15696   *)
15697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15698 for as_dir in $gcc_cv_tool_dirs
15699 do
15700   IFS=$as_save_IFS
15701   test -z "$as_dir" && as_dir=.
15702     for ac_exec_ext in '' $ac_executable_extensions; do
15703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15704     ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15706     break 2
15707   fi
15708 done
15709   done
15710 IFS=$as_save_IFS
15711
15712   ;;
15713 esac
15714 fi
15715 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15716 if test -n "$OTOOL_FOR_TARGET"; then
15717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15718 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15719 else
15720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15721 $as_echo "no" >&6; }
15722 fi
15723
15724
15725 fi
15726 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15727
15728
15729 if test -n "$OTOOL_FOR_TARGET"; then
15730   ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15731 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15732   OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15733 fi
15734
15735 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15736   for ncn_progname in otool; do
15737     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15738 set dummy ${ncn_progname}; ac_word=$2
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15740 $as_echo_n "checking for $ac_word... " >&6; }
15741 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15742   $as_echo_n "(cached) " >&6
15743 else
15744   if test -n "$OTOOL_FOR_TARGET"; then
15745   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15746 else
15747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15748 for as_dir in $PATH
15749 do
15750   IFS=$as_save_IFS
15751   test -z "$as_dir" && as_dir=.
15752     for ac_exec_ext in '' $ac_executable_extensions; do
15753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15754     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15756     break 2
15757   fi
15758 done
15759   done
15760 IFS=$as_save_IFS
15761
15762 fi
15763 fi
15764 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15765 if test -n "$OTOOL_FOR_TARGET"; then
15766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15767 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15768 else
15769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15770 $as_echo "no" >&6; }
15771 fi
15772
15773
15774   done
15775 fi
15776
15777 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15778   for ncn_progname in otool; do
15779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15780 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15781     if test -x $with_build_time_tools/${ncn_progname}; then
15782       ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15783       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15784 $as_echo "yes" >&6; }
15785       break
15786     else
15787       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15788 $as_echo "no" >&6; }
15789     fi
15790   done
15791 fi
15792
15793 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15794   for ncn_progname in otool; do
15795     if test -n "$ncn_target_tool_prefix"; then
15796       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15797 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15799 $as_echo_n "checking for $ac_word... " >&6; }
15800 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15801   $as_echo_n "(cached) " >&6
15802 else
15803   if test -n "$OTOOL_FOR_TARGET"; then
15804   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15805 else
15806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15807 for as_dir in $PATH
15808 do
15809   IFS=$as_save_IFS
15810   test -z "$as_dir" && as_dir=.
15811     for ac_exec_ext in '' $ac_executable_extensions; do
15812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15813     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15815     break 2
15816   fi
15817 done
15818   done
15819 IFS=$as_save_IFS
15820
15821 fi
15822 fi
15823 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15824 if test -n "$OTOOL_FOR_TARGET"; then
15825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15826 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15827 else
15828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15829 $as_echo "no" >&6; }
15830 fi
15831
15832
15833     fi
15834     if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15835       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15836 set dummy ${ncn_progname}; ac_word=$2
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15838 $as_echo_n "checking for $ac_word... " >&6; }
15839 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15840   $as_echo_n "(cached) " >&6
15841 else
15842   if test -n "$OTOOL_FOR_TARGET"; then
15843   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15844 else
15845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15846 for as_dir in $PATH
15847 do
15848   IFS=$as_save_IFS
15849   test -z "$as_dir" && as_dir=.
15850     for ac_exec_ext in '' $ac_executable_extensions; do
15851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15852     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15854     break 2
15855   fi
15856 done
15857   done
15858 IFS=$as_save_IFS
15859
15860 fi
15861 fi
15862 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15863 if test -n "$OTOOL_FOR_TARGET"; then
15864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15865 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15866 else
15867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15868 $as_echo "no" >&6; }
15869 fi
15870
15871
15872     fi
15873     test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
15874   done
15875 fi
15876
15877 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
15878   set dummy otool
15879   if test $build = $target ; then
15880     OTOOL_FOR_TARGET="$2"
15881   else
15882     OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15883   fi
15884 else
15885   OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
15886 fi
15887
15888 else
15889   OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15890 fi
15891
15892
15893
15894
15895 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15896   if test -n "$with_build_time_tools"; then
15897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
15898 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
15899     if test -x $with_build_time_tools/ranlib; then
15900       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
15901       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15902       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
15903 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
15904     else
15905       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15906 $as_echo "no" >&6; }
15907     fi
15908   elif test $build != $host && test $have_gcc_for_target = yes; then
15909     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
15910     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
15911     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15912   fi
15913 fi
15914 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15915   # Extract the first word of "ranlib", so it can be a program name with args.
15916 set dummy ranlib; ac_word=$2
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15918 $as_echo_n "checking for $ac_word... " >&6; }
15919 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
15920   $as_echo_n "(cached) " >&6
15921 else
15922   case $RANLIB_FOR_TARGET in
15923   [\\/]* | ?:[\\/]*)
15924   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
15925   ;;
15926   *)
15927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15928 for as_dir in $gcc_cv_tool_dirs
15929 do
15930   IFS=$as_save_IFS
15931   test -z "$as_dir" && as_dir=.
15932     for ac_exec_ext in '' $ac_executable_extensions; do
15933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15934     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15936     break 2
15937   fi
15938 done
15939   done
15940 IFS=$as_save_IFS
15941
15942   ;;
15943 esac
15944 fi
15945 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15946 if test -n "$RANLIB_FOR_TARGET"; then
15947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15948 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15949 else
15950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15951 $as_echo "no" >&6; }
15952 fi
15953
15954
15955 fi
15956 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15957
15958
15959 if test -n "$RANLIB_FOR_TARGET"; then
15960   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15961 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15962   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15963 fi
15964
15965 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15966   for ncn_progname in ranlib; do
15967     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15968 set dummy ${ncn_progname}; ac_word=$2
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15970 $as_echo_n "checking for $ac_word... " >&6; }
15971 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15972   $as_echo_n "(cached) " >&6
15973 else
15974   if test -n "$RANLIB_FOR_TARGET"; then
15975   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15976 else
15977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15978 for as_dir in $PATH
15979 do
15980   IFS=$as_save_IFS
15981   test -z "$as_dir" && as_dir=.
15982     for ac_exec_ext in '' $ac_executable_extensions; do
15983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15984     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15986     break 2
15987   fi
15988 done
15989   done
15990 IFS=$as_save_IFS
15991
15992 fi
15993 fi
15994 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15995 if test -n "$RANLIB_FOR_TARGET"; then
15996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15997 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15998 else
15999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16000 $as_echo "no" >&6; }
16001 fi
16002
16003
16004   done
16005 fi
16006
16007 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16008   for ncn_progname in ranlib; do
16009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16010 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16011     if test -x $with_build_time_tools/${ncn_progname}; then
16012       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16013       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16014 $as_echo "yes" >&6; }
16015       break
16016     else
16017       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16018 $as_echo "no" >&6; }
16019     fi
16020   done
16021 fi
16022
16023 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16024   for ncn_progname in ranlib; do
16025     if test -n "$ncn_target_tool_prefix"; then
16026       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16027 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16029 $as_echo_n "checking for $ac_word... " >&6; }
16030 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16031   $as_echo_n "(cached) " >&6
16032 else
16033   if test -n "$RANLIB_FOR_TARGET"; then
16034   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16035 else
16036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16037 for as_dir in $PATH
16038 do
16039   IFS=$as_save_IFS
16040   test -z "$as_dir" && as_dir=.
16041     for ac_exec_ext in '' $ac_executable_extensions; do
16042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16043     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16045     break 2
16046   fi
16047 done
16048   done
16049 IFS=$as_save_IFS
16050
16051 fi
16052 fi
16053 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16054 if test -n "$RANLIB_FOR_TARGET"; then
16055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16056 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16057 else
16058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16059 $as_echo "no" >&6; }
16060 fi
16061
16062
16063     fi
16064     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16065       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16066 set dummy ${ncn_progname}; ac_word=$2
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16068 $as_echo_n "checking for $ac_word... " >&6; }
16069 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16070   $as_echo_n "(cached) " >&6
16071 else
16072   if test -n "$RANLIB_FOR_TARGET"; then
16073   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16074 else
16075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16076 for as_dir in $PATH
16077 do
16078   IFS=$as_save_IFS
16079   test -z "$as_dir" && as_dir=.
16080     for ac_exec_ext in '' $ac_executable_extensions; do
16081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16082     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16084     break 2
16085   fi
16086 done
16087   done
16088 IFS=$as_save_IFS
16089
16090 fi
16091 fi
16092 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16093 if test -n "$RANLIB_FOR_TARGET"; then
16094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16095 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16096 else
16097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16098 $as_echo "no" >&6; }
16099 fi
16100
16101
16102     fi
16103     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16104   done
16105 fi
16106
16107 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16108   set dummy ranlib
16109   if test $build = $target ; then
16110     RANLIB_FOR_TARGET="$2"
16111   else
16112     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16113   fi
16114 else
16115   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16116 fi
16117
16118 else
16119   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16120 fi
16121
16122
16123
16124
16125 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16126   if test -n "$with_build_time_tools"; then
16127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16128 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16129     if test -x $with_build_time_tools/readelf; then
16130       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16131       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16132       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16133 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16134     else
16135       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16136 $as_echo "no" >&6; }
16137     fi
16138   elif test $build != $host && test $have_gcc_for_target = yes; then
16139     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16140     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16141     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16142   fi
16143 fi
16144 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16145   # Extract the first word of "readelf", so it can be a program name with args.
16146 set dummy readelf; ac_word=$2
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16148 $as_echo_n "checking for $ac_word... " >&6; }
16149 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16150   $as_echo_n "(cached) " >&6
16151 else
16152   case $READELF_FOR_TARGET in
16153   [\\/]* | ?:[\\/]*)
16154   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16155   ;;
16156   *)
16157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16158 for as_dir in $gcc_cv_tool_dirs
16159 do
16160   IFS=$as_save_IFS
16161   test -z "$as_dir" && as_dir=.
16162     for ac_exec_ext in '' $ac_executable_extensions; do
16163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16164     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16166     break 2
16167   fi
16168 done
16169   done
16170 IFS=$as_save_IFS
16171
16172   ;;
16173 esac
16174 fi
16175 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16176 if test -n "$READELF_FOR_TARGET"; then
16177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16178 $as_echo "$READELF_FOR_TARGET" >&6; }
16179 else
16180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16181 $as_echo "no" >&6; }
16182 fi
16183
16184
16185 fi
16186 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16187
16188
16189 if test -n "$READELF_FOR_TARGET"; then
16190   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16191 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16192   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16193 fi
16194
16195 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16196   for ncn_progname in readelf; do
16197     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16198 set dummy ${ncn_progname}; ac_word=$2
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16200 $as_echo_n "checking for $ac_word... " >&6; }
16201 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16202   $as_echo_n "(cached) " >&6
16203 else
16204   if test -n "$READELF_FOR_TARGET"; then
16205   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16206 else
16207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16208 for as_dir in $PATH
16209 do
16210   IFS=$as_save_IFS
16211   test -z "$as_dir" && as_dir=.
16212     for ac_exec_ext in '' $ac_executable_extensions; do
16213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16214     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16216     break 2
16217   fi
16218 done
16219   done
16220 IFS=$as_save_IFS
16221
16222 fi
16223 fi
16224 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16225 if test -n "$READELF_FOR_TARGET"; then
16226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16227 $as_echo "$READELF_FOR_TARGET" >&6; }
16228 else
16229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16230 $as_echo "no" >&6; }
16231 fi
16232
16233
16234   done
16235 fi
16236
16237 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16238   for ncn_progname in readelf; do
16239     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16240 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16241     if test -x $with_build_time_tools/${ncn_progname}; then
16242       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16243       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16244 $as_echo "yes" >&6; }
16245       break
16246     else
16247       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16248 $as_echo "no" >&6; }
16249     fi
16250   done
16251 fi
16252
16253 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16254   for ncn_progname in readelf; do
16255     if test -n "$ncn_target_tool_prefix"; then
16256       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16257 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16259 $as_echo_n "checking for $ac_word... " >&6; }
16260 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16261   $as_echo_n "(cached) " >&6
16262 else
16263   if test -n "$READELF_FOR_TARGET"; then
16264   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16265 else
16266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16267 for as_dir in $PATH
16268 do
16269   IFS=$as_save_IFS
16270   test -z "$as_dir" && as_dir=.
16271     for ac_exec_ext in '' $ac_executable_extensions; do
16272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16273     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16275     break 2
16276   fi
16277 done
16278   done
16279 IFS=$as_save_IFS
16280
16281 fi
16282 fi
16283 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16284 if test -n "$READELF_FOR_TARGET"; then
16285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16286 $as_echo "$READELF_FOR_TARGET" >&6; }
16287 else
16288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16289 $as_echo "no" >&6; }
16290 fi
16291
16292
16293     fi
16294     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16295       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16296 set dummy ${ncn_progname}; ac_word=$2
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16298 $as_echo_n "checking for $ac_word... " >&6; }
16299 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16300   $as_echo_n "(cached) " >&6
16301 else
16302   if test -n "$READELF_FOR_TARGET"; then
16303   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16304 else
16305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16306 for as_dir in $PATH
16307 do
16308   IFS=$as_save_IFS
16309   test -z "$as_dir" && as_dir=.
16310     for ac_exec_ext in '' $ac_executable_extensions; do
16311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16312     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16314     break 2
16315   fi
16316 done
16317   done
16318 IFS=$as_save_IFS
16319
16320 fi
16321 fi
16322 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16323 if test -n "$READELF_FOR_TARGET"; then
16324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16325 $as_echo "$READELF_FOR_TARGET" >&6; }
16326 else
16327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16328 $as_echo "no" >&6; }
16329 fi
16330
16331
16332     fi
16333     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16334   done
16335 fi
16336
16337 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16338   set dummy readelf
16339   if test $build = $target ; then
16340     READELF_FOR_TARGET="$2"
16341   else
16342     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16343   fi
16344 else
16345   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16346 fi
16347
16348 else
16349   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16350 fi
16351
16352
16353
16354
16355 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16356   if test -n "$with_build_time_tools"; then
16357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16358 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16359     if test -x $with_build_time_tools/strip; then
16360       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16361       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16362       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16363 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16364     else
16365       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16366 $as_echo "no" >&6; }
16367     fi
16368   elif test $build != $host && test $have_gcc_for_target = yes; then
16369     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16370     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16371     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16372   fi
16373 fi
16374 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16375   # Extract the first word of "strip", so it can be a program name with args.
16376 set dummy strip; ac_word=$2
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16378 $as_echo_n "checking for $ac_word... " >&6; }
16379 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16380   $as_echo_n "(cached) " >&6
16381 else
16382   case $STRIP_FOR_TARGET in
16383   [\\/]* | ?:[\\/]*)
16384   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16385   ;;
16386   *)
16387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16388 for as_dir in $gcc_cv_tool_dirs
16389 do
16390   IFS=$as_save_IFS
16391   test -z "$as_dir" && as_dir=.
16392     for ac_exec_ext in '' $ac_executable_extensions; do
16393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16394     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16396     break 2
16397   fi
16398 done
16399   done
16400 IFS=$as_save_IFS
16401
16402   ;;
16403 esac
16404 fi
16405 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16406 if test -n "$STRIP_FOR_TARGET"; then
16407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16408 $as_echo "$STRIP_FOR_TARGET" >&6; }
16409 else
16410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16411 $as_echo "no" >&6; }
16412 fi
16413
16414
16415 fi
16416 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16417
16418
16419 if test -n "$STRIP_FOR_TARGET"; then
16420   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16421 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16422   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16423 fi
16424
16425 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16426   for ncn_progname in strip; do
16427     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16428 set dummy ${ncn_progname}; ac_word=$2
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16430 $as_echo_n "checking for $ac_word... " >&6; }
16431 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16432   $as_echo_n "(cached) " >&6
16433 else
16434   if test -n "$STRIP_FOR_TARGET"; then
16435   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16436 else
16437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16438 for as_dir in $PATH
16439 do
16440   IFS=$as_save_IFS
16441   test -z "$as_dir" && as_dir=.
16442     for ac_exec_ext in '' $ac_executable_extensions; do
16443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16444     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16446     break 2
16447   fi
16448 done
16449   done
16450 IFS=$as_save_IFS
16451
16452 fi
16453 fi
16454 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16455 if test -n "$STRIP_FOR_TARGET"; then
16456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16457 $as_echo "$STRIP_FOR_TARGET" >&6; }
16458 else
16459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16460 $as_echo "no" >&6; }
16461 fi
16462
16463
16464   done
16465 fi
16466
16467 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16468   for ncn_progname in strip; do
16469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16470 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16471     if test -x $with_build_time_tools/${ncn_progname}; then
16472       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16473       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16474 $as_echo "yes" >&6; }
16475       break
16476     else
16477       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16478 $as_echo "no" >&6; }
16479     fi
16480   done
16481 fi
16482
16483 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16484   for ncn_progname in strip; do
16485     if test -n "$ncn_target_tool_prefix"; then
16486       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16487 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16489 $as_echo_n "checking for $ac_word... " >&6; }
16490 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16491   $as_echo_n "(cached) " >&6
16492 else
16493   if test -n "$STRIP_FOR_TARGET"; then
16494   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16495 else
16496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16497 for as_dir in $PATH
16498 do
16499   IFS=$as_save_IFS
16500   test -z "$as_dir" && as_dir=.
16501     for ac_exec_ext in '' $ac_executable_extensions; do
16502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16503     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16505     break 2
16506   fi
16507 done
16508   done
16509 IFS=$as_save_IFS
16510
16511 fi
16512 fi
16513 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16514 if test -n "$STRIP_FOR_TARGET"; then
16515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16516 $as_echo "$STRIP_FOR_TARGET" >&6; }
16517 else
16518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16519 $as_echo "no" >&6; }
16520 fi
16521
16522
16523     fi
16524     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16525       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16526 set dummy ${ncn_progname}; ac_word=$2
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16528 $as_echo_n "checking for $ac_word... " >&6; }
16529 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16530   $as_echo_n "(cached) " >&6
16531 else
16532   if test -n "$STRIP_FOR_TARGET"; then
16533   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16534 else
16535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16536 for as_dir in $PATH
16537 do
16538   IFS=$as_save_IFS
16539   test -z "$as_dir" && as_dir=.
16540     for ac_exec_ext in '' $ac_executable_extensions; do
16541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16542     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16544     break 2
16545   fi
16546 done
16547   done
16548 IFS=$as_save_IFS
16549
16550 fi
16551 fi
16552 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16553 if test -n "$STRIP_FOR_TARGET"; then
16554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16555 $as_echo "$STRIP_FOR_TARGET" >&6; }
16556 else
16557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16558 $as_echo "no" >&6; }
16559 fi
16560
16561
16562     fi
16563     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16564   done
16565 fi
16566
16567 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16568   set dummy strip
16569   if test $build = $target ; then
16570     STRIP_FOR_TARGET="$2"
16571   else
16572     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16573   fi
16574 else
16575   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16576 fi
16577
16578 else
16579   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16580 fi
16581
16582
16583
16584
16585 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16586   if test -n "$with_build_time_tools"; then
16587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16588 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16589     if test -x $with_build_time_tools/windres; then
16590       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16591       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16592       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16593 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16594     else
16595       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16596 $as_echo "no" >&6; }
16597     fi
16598   elif test $build != $host && test $have_gcc_for_target = yes; then
16599     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16600     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16601     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16602   fi
16603 fi
16604 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16605   # Extract the first word of "windres", so it can be a program name with args.
16606 set dummy windres; ac_word=$2
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16608 $as_echo_n "checking for $ac_word... " >&6; }
16609 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16610   $as_echo_n "(cached) " >&6
16611 else
16612   case $WINDRES_FOR_TARGET in
16613   [\\/]* | ?:[\\/]*)
16614   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16615   ;;
16616   *)
16617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16618 for as_dir in $gcc_cv_tool_dirs
16619 do
16620   IFS=$as_save_IFS
16621   test -z "$as_dir" && as_dir=.
16622     for ac_exec_ext in '' $ac_executable_extensions; do
16623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16624     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16626     break 2
16627   fi
16628 done
16629   done
16630 IFS=$as_save_IFS
16631
16632   ;;
16633 esac
16634 fi
16635 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16636 if test -n "$WINDRES_FOR_TARGET"; then
16637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16638 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16639 else
16640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16641 $as_echo "no" >&6; }
16642 fi
16643
16644
16645 fi
16646 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16647
16648
16649 if test -n "$WINDRES_FOR_TARGET"; then
16650   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16651 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16652   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16653 fi
16654
16655 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16656   for ncn_progname in windres; do
16657     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16658 set dummy ${ncn_progname}; ac_word=$2
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16660 $as_echo_n "checking for $ac_word... " >&6; }
16661 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16662   $as_echo_n "(cached) " >&6
16663 else
16664   if test -n "$WINDRES_FOR_TARGET"; then
16665   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16666 else
16667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16668 for as_dir in $PATH
16669 do
16670   IFS=$as_save_IFS
16671   test -z "$as_dir" && as_dir=.
16672     for ac_exec_ext in '' $ac_executable_extensions; do
16673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16674     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16676     break 2
16677   fi
16678 done
16679   done
16680 IFS=$as_save_IFS
16681
16682 fi
16683 fi
16684 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16685 if test -n "$WINDRES_FOR_TARGET"; then
16686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16687 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16688 else
16689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16690 $as_echo "no" >&6; }
16691 fi
16692
16693
16694   done
16695 fi
16696
16697 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16698   for ncn_progname in windres; do
16699     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16700 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16701     if test -x $with_build_time_tools/${ncn_progname}; then
16702       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16703       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16704 $as_echo "yes" >&6; }
16705       break
16706     else
16707       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16708 $as_echo "no" >&6; }
16709     fi
16710   done
16711 fi
16712
16713 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16714   for ncn_progname in windres; do
16715     if test -n "$ncn_target_tool_prefix"; then
16716       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16717 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16719 $as_echo_n "checking for $ac_word... " >&6; }
16720 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16721   $as_echo_n "(cached) " >&6
16722 else
16723   if test -n "$WINDRES_FOR_TARGET"; then
16724   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16725 else
16726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16727 for as_dir in $PATH
16728 do
16729   IFS=$as_save_IFS
16730   test -z "$as_dir" && as_dir=.
16731     for ac_exec_ext in '' $ac_executable_extensions; do
16732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16733     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16735     break 2
16736   fi
16737 done
16738   done
16739 IFS=$as_save_IFS
16740
16741 fi
16742 fi
16743 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16744 if test -n "$WINDRES_FOR_TARGET"; then
16745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16746 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16747 else
16748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16749 $as_echo "no" >&6; }
16750 fi
16751
16752
16753     fi
16754     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16755       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16756 set dummy ${ncn_progname}; ac_word=$2
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16758 $as_echo_n "checking for $ac_word... " >&6; }
16759 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16760   $as_echo_n "(cached) " >&6
16761 else
16762   if test -n "$WINDRES_FOR_TARGET"; then
16763   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16764 else
16765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16766 for as_dir in $PATH
16767 do
16768   IFS=$as_save_IFS
16769   test -z "$as_dir" && as_dir=.
16770     for ac_exec_ext in '' $ac_executable_extensions; do
16771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16772     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16774     break 2
16775   fi
16776 done
16777   done
16778 IFS=$as_save_IFS
16779
16780 fi
16781 fi
16782 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16783 if test -n "$WINDRES_FOR_TARGET"; then
16784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16785 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16786 else
16787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16788 $as_echo "no" >&6; }
16789 fi
16790
16791
16792     fi
16793     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16794   done
16795 fi
16796
16797 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16798   set dummy windres
16799   if test $build = $target ; then
16800     WINDRES_FOR_TARGET="$2"
16801   else
16802     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
16803   fi
16804 else
16805   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
16806 fi
16807
16808 else
16809   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16810 fi
16811
16812
16813
16814
16815 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16816   if test -n "$with_build_time_tools"; then
16817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
16818 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
16819     if test -x $with_build_time_tools/windmc; then
16820       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16821       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16822       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16823 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
16824     else
16825       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16826 $as_echo "no" >&6; }
16827     fi
16828   elif test $build != $host && test $have_gcc_for_target = yes; then
16829     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
16830     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16831     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16832   fi
16833 fi
16834 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16835   # Extract the first word of "windmc", so it can be a program name with args.
16836 set dummy windmc; ac_word=$2
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16838 $as_echo_n "checking for $ac_word... " >&6; }
16839 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
16840   $as_echo_n "(cached) " >&6
16841 else
16842   case $WINDMC_FOR_TARGET in
16843   [\\/]* | ?:[\\/]*)
16844   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16845   ;;
16846   *)
16847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16848 for as_dir in $gcc_cv_tool_dirs
16849 do
16850   IFS=$as_save_IFS
16851   test -z "$as_dir" && as_dir=.
16852     for ac_exec_ext in '' $ac_executable_extensions; do
16853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16854     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16856     break 2
16857   fi
16858 done
16859   done
16860 IFS=$as_save_IFS
16861
16862   ;;
16863 esac
16864 fi
16865 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16866 if test -n "$WINDMC_FOR_TARGET"; then
16867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16868 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16869 else
16870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16871 $as_echo "no" >&6; }
16872 fi
16873
16874
16875 fi
16876 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16877
16878
16879 if test -n "$WINDMC_FOR_TARGET"; then
16880   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16881 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16882   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16883 fi
16884
16885 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16886   for ncn_progname in windmc; do
16887     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16888 set dummy ${ncn_progname}; ac_word=$2
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16890 $as_echo_n "checking for $ac_word... " >&6; }
16891 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16892   $as_echo_n "(cached) " >&6
16893 else
16894   if test -n "$WINDMC_FOR_TARGET"; then
16895   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16896 else
16897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16898 for as_dir in $PATH
16899 do
16900   IFS=$as_save_IFS
16901   test -z "$as_dir" && as_dir=.
16902     for ac_exec_ext in '' $ac_executable_extensions; do
16903   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16904     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16906     break 2
16907   fi
16908 done
16909   done
16910 IFS=$as_save_IFS
16911
16912 fi
16913 fi
16914 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16915 if test -n "$WINDMC_FOR_TARGET"; then
16916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16917 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16918 else
16919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16920 $as_echo "no" >&6; }
16921 fi
16922
16923
16924   done
16925 fi
16926
16927 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
16928   for ncn_progname in windmc; do
16929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16930 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16931     if test -x $with_build_time_tools/${ncn_progname}; then
16932       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16933       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16934 $as_echo "yes" >&6; }
16935       break
16936     else
16937       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16938 $as_echo "no" >&6; }
16939     fi
16940   done
16941 fi
16942
16943 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16944   for ncn_progname in windmc; do
16945     if test -n "$ncn_target_tool_prefix"; then
16946       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16947 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16949 $as_echo_n "checking for $ac_word... " >&6; }
16950 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16951   $as_echo_n "(cached) " >&6
16952 else
16953   if test -n "$WINDMC_FOR_TARGET"; then
16954   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16955 else
16956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16957 for as_dir in $PATH
16958 do
16959   IFS=$as_save_IFS
16960   test -z "$as_dir" && as_dir=.
16961     for ac_exec_ext in '' $ac_executable_extensions; do
16962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16963     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16965     break 2
16966   fi
16967 done
16968   done
16969 IFS=$as_save_IFS
16970
16971 fi
16972 fi
16973 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16974 if test -n "$WINDMC_FOR_TARGET"; then
16975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16976 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16977 else
16978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16979 $as_echo "no" >&6; }
16980 fi
16981
16982
16983     fi
16984     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
16985       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16986 set dummy ${ncn_progname}; ac_word=$2
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16988 $as_echo_n "checking for $ac_word... " >&6; }
16989 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16990   $as_echo_n "(cached) " >&6
16991 else
16992   if test -n "$WINDMC_FOR_TARGET"; then
16993   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16994 else
16995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16996 for as_dir in $PATH
16997 do
16998   IFS=$as_save_IFS
16999   test -z "$as_dir" && as_dir=.
17000     for ac_exec_ext in '' $ac_executable_extensions; do
17001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17002     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17004     break 2
17005   fi
17006 done
17007   done
17008 IFS=$as_save_IFS
17009
17010 fi
17011 fi
17012 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17013 if test -n "$WINDMC_FOR_TARGET"; then
17014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17015 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17016 else
17017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17018 $as_echo "no" >&6; }
17019 fi
17020
17021
17022     fi
17023     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17024   done
17025 fi
17026
17027 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17028   set dummy windmc
17029   if test $build = $target ; then
17030     WINDMC_FOR_TARGET="$2"
17031   else
17032     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17033   fi
17034 else
17035   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17036 fi
17037
17038 else
17039   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17040 fi
17041
17042
17043 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17044
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17046 $as_echo_n "checking where to find the target ar... " >&6; }
17047 if test "x${build}" != "x${host}" ; then
17048   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17049     # We already found the complete path
17050     ac_dir=`dirname $AR_FOR_TARGET`
17051     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17052 $as_echo "pre-installed in $ac_dir" >&6; }
17053   else
17054     # Canadian cross, just use what we found
17055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17056 $as_echo "pre-installed" >&6; }
17057   fi
17058 else
17059   ok=yes
17060   case " ${configdirs} " in
17061     *" binutils "*) ;;
17062     *) ok=no ;;
17063   esac
17064
17065   if test $ok = yes; then
17066     # An in-tree tool is available and we can use it
17067     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17069 $as_echo "just compiled" >&6; }
17070   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17071     # We already found the complete path
17072     ac_dir=`dirname $AR_FOR_TARGET`
17073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17074 $as_echo "pre-installed in $ac_dir" >&6; }
17075   elif test "x$target" = "x$host"; then
17076     # We can use an host tool
17077     AR_FOR_TARGET='$(AR)'
17078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17079 $as_echo "host tool" >&6; }
17080   else
17081     # We need a cross tool
17082     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17083 $as_echo "pre-installed" >&6; }
17084   fi
17085 fi
17086
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17088 $as_echo_n "checking where to find the target as... " >&6; }
17089 if test "x${build}" != "x${host}" ; then
17090   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17091     # We already found the complete path
17092     ac_dir=`dirname $AS_FOR_TARGET`
17093     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17094 $as_echo "pre-installed in $ac_dir" >&6; }
17095   else
17096     # Canadian cross, just use what we found
17097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17098 $as_echo "pre-installed" >&6; }
17099   fi
17100 else
17101   ok=yes
17102   case " ${configdirs} " in
17103     *" gas "*) ;;
17104     *) ok=no ;;
17105   esac
17106
17107   if test $ok = yes; then
17108     # An in-tree tool is available and we can use it
17109     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17110     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17111 $as_echo "just compiled" >&6; }
17112   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17113     # We already found the complete path
17114     ac_dir=`dirname $AS_FOR_TARGET`
17115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17116 $as_echo "pre-installed in $ac_dir" >&6; }
17117   elif test "x$target" = "x$host"; then
17118     # We can use an host tool
17119     AS_FOR_TARGET='$(AS)'
17120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17121 $as_echo "host tool" >&6; }
17122   else
17123     # We need a cross tool
17124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17125 $as_echo "pre-installed" >&6; }
17126   fi
17127 fi
17128
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17130 $as_echo_n "checking where to find the target cc... " >&6; }
17131 if test "x${build}" != "x${host}" ; then
17132   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17133     # We already found the complete path
17134     ac_dir=`dirname $CC_FOR_TARGET`
17135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17136 $as_echo "pre-installed in $ac_dir" >&6; }
17137   else
17138     # Canadian cross, just use what we found
17139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17140 $as_echo "pre-installed" >&6; }
17141   fi
17142 else
17143   ok=yes
17144   case " ${configdirs} " in
17145     *" gcc "*) ;;
17146     *) ok=no ;;
17147   esac
17148
17149   if test $ok = yes; then
17150     # An in-tree tool is available and we can use it
17151     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17153 $as_echo "just compiled" >&6; }
17154   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17155     # We already found the complete path
17156     ac_dir=`dirname $CC_FOR_TARGET`
17157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17158 $as_echo "pre-installed in $ac_dir" >&6; }
17159   elif test "x$target" = "x$host"; then
17160     # We can use an host tool
17161     CC_FOR_TARGET='$(CC)'
17162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17163 $as_echo "host tool" >&6; }
17164   else
17165     # We need a cross tool
17166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17167 $as_echo "pre-installed" >&6; }
17168   fi
17169 fi
17170
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17172 $as_echo_n "checking where to find the target c++... " >&6; }
17173 if test "x${build}" != "x${host}" ; then
17174   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17175     # We already found the complete path
17176     ac_dir=`dirname $CXX_FOR_TARGET`
17177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17178 $as_echo "pre-installed in $ac_dir" >&6; }
17179   else
17180     # Canadian cross, just use what we found
17181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17182 $as_echo "pre-installed" >&6; }
17183   fi
17184 else
17185   ok=yes
17186   case " ${configdirs} " in
17187     *" gcc "*) ;;
17188     *) ok=no ;;
17189   esac
17190   case ,${enable_languages}, in
17191     *,c++,*) ;;
17192     *) ok=no ;;
17193   esac
17194   if test $ok = yes; then
17195     # An in-tree tool is available and we can use it
17196     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'
17197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17198 $as_echo "just compiled" >&6; }
17199   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17200     # We already found the complete path
17201     ac_dir=`dirname $CXX_FOR_TARGET`
17202     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17203 $as_echo "pre-installed in $ac_dir" >&6; }
17204   elif test "x$target" = "x$host"; then
17205     # We can use an host tool
17206     CXX_FOR_TARGET='$(CXX)'
17207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17208 $as_echo "host tool" >&6; }
17209   else
17210     # We need a cross tool
17211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17212 $as_echo "pre-installed" >&6; }
17213   fi
17214 fi
17215
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17217 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17218 if test "x${build}" != "x${host}" ; then
17219   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17220     # We already found the complete path
17221     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17222     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17223 $as_echo "pre-installed in $ac_dir" >&6; }
17224   else
17225     # Canadian cross, just use what we found
17226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17227 $as_echo "pre-installed" >&6; }
17228   fi
17229 else
17230   ok=yes
17231   case " ${configdirs} " in
17232     *" gcc "*) ;;
17233     *) ok=no ;;
17234   esac
17235   case ,${enable_languages}, in
17236     *,c++,*) ;;
17237     *) ok=no ;;
17238   esac
17239   if test $ok = yes; then
17240     # An in-tree tool is available and we can use it
17241     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'
17242     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17243 $as_echo "just compiled" >&6; }
17244   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17245     # We already found the complete path
17246     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17247     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17248 $as_echo "pre-installed in $ac_dir" >&6; }
17249   elif test "x$target" = "x$host"; then
17250     # We can use an host tool
17251     RAW_CXX_FOR_TARGET='$(CXX)'
17252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17253 $as_echo "host tool" >&6; }
17254   else
17255     # We need a cross tool
17256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17257 $as_echo "pre-installed" >&6; }
17258   fi
17259 fi
17260
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17262 $as_echo_n "checking where to find the target dlltool... " >&6; }
17263 if test "x${build}" != "x${host}" ; then
17264   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17265     # We already found the complete path
17266     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17268 $as_echo "pre-installed in $ac_dir" >&6; }
17269   else
17270     # Canadian cross, just use what we found
17271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17272 $as_echo "pre-installed" >&6; }
17273   fi
17274 else
17275   ok=yes
17276   case " ${configdirs} " in
17277     *" binutils "*) ;;
17278     *) ok=no ;;
17279   esac
17280
17281   if test $ok = yes; then
17282     # An in-tree tool is available and we can use it
17283     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17285 $as_echo "just compiled" >&6; }
17286   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17287     # We already found the complete path
17288     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17290 $as_echo "pre-installed in $ac_dir" >&6; }
17291   elif test "x$target" = "x$host"; then
17292     # We can use an host tool
17293     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17295 $as_echo "host tool" >&6; }
17296   else
17297     # We need a cross tool
17298     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17299 $as_echo "pre-installed" >&6; }
17300   fi
17301 fi
17302
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17304 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17305 if test "x${build}" != "x${host}" ; then
17306   if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17307     # We already found the complete path
17308     ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17310 $as_echo "pre-installed in $ac_dir" >&6; }
17311   else
17312     # Canadian cross, just use what we found
17313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17314 $as_echo "pre-installed" >&6; }
17315   fi
17316 else
17317   if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17318     # We already found the complete path
17319     ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17321 $as_echo "pre-installed in $ac_dir" >&6; }
17322   elif test "x$target" = "x$host"; then
17323     # We can use an host tool
17324     DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17325     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17326 $as_echo "host tool" >&6; }
17327   else
17328     # We need a cross tool
17329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17330 $as_echo "pre-installed" >&6; }
17331   fi
17332 fi
17333
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17335 $as_echo_n "checking where to find the target gcc... " >&6; }
17336 if test "x${build}" != "x${host}" ; then
17337   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17338     # We already found the complete path
17339     ac_dir=`dirname $GCC_FOR_TARGET`
17340     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17341 $as_echo "pre-installed in $ac_dir" >&6; }
17342   else
17343     # Canadian cross, just use what we found
17344     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17345 $as_echo "pre-installed" >&6; }
17346   fi
17347 else
17348   ok=yes
17349   case " ${configdirs} " in
17350     *" gcc "*) ;;
17351     *) ok=no ;;
17352   esac
17353
17354   if test $ok = yes; then
17355     # An in-tree tool is available and we can use it
17356     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17357     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17358 $as_echo "just compiled" >&6; }
17359   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17360     # We already found the complete path
17361     ac_dir=`dirname $GCC_FOR_TARGET`
17362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17363 $as_echo "pre-installed in $ac_dir" >&6; }
17364   elif test "x$target" = "x$host"; then
17365     # We can use an host tool
17366     GCC_FOR_TARGET='$()'
17367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17368 $as_echo "host tool" >&6; }
17369   else
17370     # We need a cross tool
17371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17372 $as_echo "pre-installed" >&6; }
17373   fi
17374 fi
17375
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17377 $as_echo_n "checking where to find the target gfortran... " >&6; }
17378 if test "x${build}" != "x${host}" ; then
17379   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17380     # We already found the complete path
17381     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17382     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17383 $as_echo "pre-installed in $ac_dir" >&6; }
17384   else
17385     # Canadian cross, just use what we found
17386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17387 $as_echo "pre-installed" >&6; }
17388   fi
17389 else
17390   ok=yes
17391   case " ${configdirs} " in
17392     *" gcc "*) ;;
17393     *) ok=no ;;
17394   esac
17395   case ,${enable_languages}, in
17396     *,fortran,*) ;;
17397     *) ok=no ;;
17398   esac
17399   if test $ok = yes; then
17400     # An in-tree tool is available and we can use it
17401     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17403 $as_echo "just compiled" >&6; }
17404   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17405     # We already found the complete path
17406     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17408 $as_echo "pre-installed in $ac_dir" >&6; }
17409   elif test "x$target" = "x$host"; then
17410     # We can use an host tool
17411     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17413 $as_echo "host tool" >&6; }
17414   else
17415     # We need a cross tool
17416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17417 $as_echo "pre-installed" >&6; }
17418   fi
17419 fi
17420
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17422 $as_echo_n "checking where to find the target gccgo... " >&6; }
17423 if test "x${build}" != "x${host}" ; then
17424   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17425     # We already found the complete path
17426     ac_dir=`dirname $GOC_FOR_TARGET`
17427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17428 $as_echo "pre-installed in $ac_dir" >&6; }
17429   else
17430     # Canadian cross, just use what we found
17431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17432 $as_echo "pre-installed" >&6; }
17433   fi
17434 else
17435   ok=yes
17436   case " ${configdirs} " in
17437     *" gcc "*) ;;
17438     *) ok=no ;;
17439   esac
17440   case ,${enable_languages}, in
17441     *,go,*) ;;
17442     *) ok=no ;;
17443   esac
17444   if test $ok = yes; then
17445     # An in-tree tool is available and we can use it
17446     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17448 $as_echo "just compiled" >&6; }
17449   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17450     # We already found the complete path
17451     ac_dir=`dirname $GOC_FOR_TARGET`
17452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17453 $as_echo "pre-installed in $ac_dir" >&6; }
17454   elif test "x$target" = "x$host"; then
17455     # We can use an host tool
17456     GOC_FOR_TARGET='$(GOC)'
17457     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17458 $as_echo "host tool" >&6; }
17459   else
17460     # We need a cross tool
17461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17462 $as_echo "pre-installed" >&6; }
17463   fi
17464 fi
17465
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17467 $as_echo_n "checking where to find the target gdc... " >&6; }
17468 if test "x${build}" != "x${host}" ; then
17469   if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17470     # We already found the complete path
17471     ac_dir=`dirname $GDC_FOR_TARGET`
17472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17473 $as_echo "pre-installed in $ac_dir" >&6; }
17474   else
17475     # Canadian cross, just use what we found
17476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17477 $as_echo "pre-installed" >&6; }
17478   fi
17479 else
17480   ok=yes
17481   case " ${configdirs} " in
17482     *" gcc "*) ;;
17483     *) ok=no ;;
17484   esac
17485   case ,${enable_languages}, in
17486     *,d,*) ;;
17487     *) ok=no ;;
17488   esac
17489   if test $ok = yes; then
17490     # An in-tree tool is available and we can use it
17491     GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17493 $as_echo "just compiled" >&6; }
17494   elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17495     # We already found the complete path
17496     ac_dir=`dirname $GDC_FOR_TARGET`
17497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17498 $as_echo "pre-installed in $ac_dir" >&6; }
17499   elif test "x$target" = "x$host"; then
17500     # We can use an host tool
17501     GDC_FOR_TARGET='$(GDC)'
17502     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17503 $as_echo "host tool" >&6; }
17504   else
17505     # We need a cross tool
17506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17507 $as_echo "pre-installed" >&6; }
17508   fi
17509 fi
17510
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17512 $as_echo_n "checking where to find the target ld... " >&6; }
17513 if test "x${build}" != "x${host}" ; then
17514   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17515     # We already found the complete path
17516     ac_dir=`dirname $LD_FOR_TARGET`
17517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17518 $as_echo "pre-installed in $ac_dir" >&6; }
17519   else
17520     # Canadian cross, just use what we found
17521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17522 $as_echo "pre-installed" >&6; }
17523   fi
17524 else
17525   ok=yes
17526   case " ${configdirs} " in
17527     *" ld "*) ;;
17528     *) ok=no ;;
17529   esac
17530
17531   if test $ok = yes; then
17532     # An in-tree tool is available and we can use it
17533     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17535 $as_echo "just compiled" >&6; }
17536   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17537     # We already found the complete path
17538     ac_dir=`dirname $LD_FOR_TARGET`
17539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17540 $as_echo "pre-installed in $ac_dir" >&6; }
17541   elif test "x$target" = "x$host"; then
17542     # We can use an host tool
17543     LD_FOR_TARGET='$(LD)'
17544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17545 $as_echo "host tool" >&6; }
17546   else
17547     # We need a cross tool
17548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17549 $as_echo "pre-installed" >&6; }
17550   fi
17551 fi
17552
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17554 $as_echo_n "checking where to find the target lipo... " >&6; }
17555 if test "x${build}" != "x${host}" ; then
17556   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17557     # We already found the complete path
17558     ac_dir=`dirname $LIPO_FOR_TARGET`
17559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17560 $as_echo "pre-installed in $ac_dir" >&6; }
17561   else
17562     # Canadian cross, just use what we found
17563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17564 $as_echo "pre-installed" >&6; }
17565   fi
17566 else
17567   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17568     # We already found the complete path
17569     ac_dir=`dirname $LIPO_FOR_TARGET`
17570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17571 $as_echo "pre-installed in $ac_dir" >&6; }
17572   elif test "x$target" = "x$host"; then
17573     # We can use an host tool
17574     LIPO_FOR_TARGET='$(LIPO)'
17575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17576 $as_echo "host tool" >&6; }
17577   else
17578     # We need a cross tool
17579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17580 $as_echo "pre-installed" >&6; }
17581   fi
17582 fi
17583
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17585 $as_echo_n "checking where to find the target nm... " >&6; }
17586 if test "x${build}" != "x${host}" ; then
17587   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17588     # We already found the complete path
17589     ac_dir=`dirname $NM_FOR_TARGET`
17590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17591 $as_echo "pre-installed in $ac_dir" >&6; }
17592   else
17593     # Canadian cross, just use what we found
17594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17595 $as_echo "pre-installed" >&6; }
17596   fi
17597 else
17598   ok=yes
17599   case " ${configdirs} " in
17600     *" binutils "*) ;;
17601     *) ok=no ;;
17602   esac
17603
17604   if test $ok = yes; then
17605     # An in-tree tool is available and we can use it
17606     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17608 $as_echo "just compiled" >&6; }
17609   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17610     # We already found the complete path
17611     ac_dir=`dirname $NM_FOR_TARGET`
17612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17613 $as_echo "pre-installed in $ac_dir" >&6; }
17614   elif test "x$target" = "x$host"; then
17615     # We can use an host tool
17616     NM_FOR_TARGET='$(NM)'
17617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17618 $as_echo "host tool" >&6; }
17619   else
17620     # We need a cross tool
17621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17622 $as_echo "pre-installed" >&6; }
17623   fi
17624 fi
17625
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17627 $as_echo_n "checking where to find the target objcopy... " >&6; }
17628 if test "x${build}" != "x${host}" ; then
17629   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17630     # We already found the complete path
17631     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17633 $as_echo "pre-installed in $ac_dir" >&6; }
17634   else
17635     # Canadian cross, just use what we found
17636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17637 $as_echo "pre-installed" >&6; }
17638   fi
17639 else
17640   ok=yes
17641   case " ${configdirs} " in
17642     *" binutils "*) ;;
17643     *) ok=no ;;
17644   esac
17645
17646   if test $ok = yes; then
17647     # An in-tree tool is available and we can use it
17648     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17649     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17650 $as_echo "just compiled" >&6; }
17651   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17652     # We already found the complete path
17653     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17655 $as_echo "pre-installed in $ac_dir" >&6; }
17656   elif test "x$target" = "x$host"; then
17657     # We can use an host tool
17658     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17660 $as_echo "host tool" >&6; }
17661   else
17662     # We need a cross tool
17663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17664 $as_echo "pre-installed" >&6; }
17665   fi
17666 fi
17667
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17669 $as_echo_n "checking where to find the target objdump... " >&6; }
17670 if test "x${build}" != "x${host}" ; then
17671   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17672     # We already found the complete path
17673     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17675 $as_echo "pre-installed in $ac_dir" >&6; }
17676   else
17677     # Canadian cross, just use what we found
17678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17679 $as_echo "pre-installed" >&6; }
17680   fi
17681 else
17682   ok=yes
17683   case " ${configdirs} " in
17684     *" binutils "*) ;;
17685     *) ok=no ;;
17686   esac
17687
17688   if test $ok = yes; then
17689     # An in-tree tool is available and we can use it
17690     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17692 $as_echo "just compiled" >&6; }
17693   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17694     # We already found the complete path
17695     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17697 $as_echo "pre-installed in $ac_dir" >&6; }
17698   elif test "x$target" = "x$host"; then
17699     # We can use an host tool
17700     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17702 $as_echo "host tool" >&6; }
17703   else
17704     # We need a cross tool
17705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17706 $as_echo "pre-installed" >&6; }
17707   fi
17708 fi
17709
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17711 $as_echo_n "checking where to find the target otool... " >&6; }
17712 if test "x${build}" != "x${host}" ; then
17713   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17714     # We already found the complete path
17715     ac_dir=`dirname $OTOOL_FOR_TARGET`
17716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17717 $as_echo "pre-installed in $ac_dir" >&6; }
17718   else
17719     # Canadian cross, just use what we found
17720     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17721 $as_echo "pre-installed" >&6; }
17722   fi
17723 else
17724   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17725     # We already found the complete path
17726     ac_dir=`dirname $OTOOL_FOR_TARGET`
17727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17728 $as_echo "pre-installed in $ac_dir" >&6; }
17729   elif test "x$target" = "x$host"; then
17730     # We can use an host tool
17731     OTOOL_FOR_TARGET='$(OTOOL)'
17732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17733 $as_echo "host tool" >&6; }
17734   else
17735     # We need a cross tool
17736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17737 $as_echo "pre-installed" >&6; }
17738   fi
17739 fi
17740
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17742 $as_echo_n "checking where to find the target ranlib... " >&6; }
17743 if test "x${build}" != "x${host}" ; then
17744   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17745     # We already found the complete path
17746     ac_dir=`dirname $RANLIB_FOR_TARGET`
17747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17748 $as_echo "pre-installed in $ac_dir" >&6; }
17749   else
17750     # Canadian cross, just use what we found
17751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17752 $as_echo "pre-installed" >&6; }
17753   fi
17754 else
17755   ok=yes
17756   case " ${configdirs} " in
17757     *" binutils "*) ;;
17758     *) ok=no ;;
17759   esac
17760
17761   if test $ok = yes; then
17762     # An in-tree tool is available and we can use it
17763     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17765 $as_echo "just compiled" >&6; }
17766   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17767     # We already found the complete path
17768     ac_dir=`dirname $RANLIB_FOR_TARGET`
17769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17770 $as_echo "pre-installed in $ac_dir" >&6; }
17771   elif test "x$target" = "x$host"; then
17772     # We can use an host tool
17773     RANLIB_FOR_TARGET='$(RANLIB)'
17774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17775 $as_echo "host tool" >&6; }
17776   else
17777     # We need a cross tool
17778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17779 $as_echo "pre-installed" >&6; }
17780   fi
17781 fi
17782
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17784 $as_echo_n "checking where to find the target readelf... " >&6; }
17785 if test "x${build}" != "x${host}" ; then
17786   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17787     # We already found the complete path
17788     ac_dir=`dirname $READELF_FOR_TARGET`
17789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17790 $as_echo "pre-installed in $ac_dir" >&6; }
17791   else
17792     # Canadian cross, just use what we found
17793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17794 $as_echo "pre-installed" >&6; }
17795   fi
17796 else
17797   ok=yes
17798   case " ${configdirs} " in
17799     *" binutils "*) ;;
17800     *) ok=no ;;
17801   esac
17802
17803   if test $ok = yes; then
17804     # An in-tree tool is available and we can use it
17805     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17807 $as_echo "just compiled" >&6; }
17808   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17809     # We already found the complete path
17810     ac_dir=`dirname $READELF_FOR_TARGET`
17811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17812 $as_echo "pre-installed in $ac_dir" >&6; }
17813   elif test "x$target" = "x$host"; then
17814     # We can use an host tool
17815     READELF_FOR_TARGET='$(READELF)'
17816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17817 $as_echo "host tool" >&6; }
17818   else
17819     # We need a cross tool
17820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17821 $as_echo "pre-installed" >&6; }
17822   fi
17823 fi
17824
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
17826 $as_echo_n "checking where to find the target strip... " >&6; }
17827 if test "x${build}" != "x${host}" ; then
17828   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17829     # We already found the complete path
17830     ac_dir=`dirname $STRIP_FOR_TARGET`
17831     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17832 $as_echo "pre-installed in $ac_dir" >&6; }
17833   else
17834     # Canadian cross, just use what we found
17835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17836 $as_echo "pre-installed" >&6; }
17837   fi
17838 else
17839   ok=yes
17840   case " ${configdirs} " in
17841     *" binutils "*) ;;
17842     *) ok=no ;;
17843   esac
17844
17845   if test $ok = yes; then
17846     # An in-tree tool is available and we can use it
17847     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
17848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17849 $as_echo "just compiled" >&6; }
17850   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17851     # We already found the complete path
17852     ac_dir=`dirname $STRIP_FOR_TARGET`
17853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17854 $as_echo "pre-installed in $ac_dir" >&6; }
17855   elif test "x$target" = "x$host"; then
17856     # We can use an host tool
17857     STRIP_FOR_TARGET='$(STRIP)'
17858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17859 $as_echo "host tool" >&6; }
17860   else
17861     # We need a cross tool
17862     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17863 $as_echo "pre-installed" >&6; }
17864   fi
17865 fi
17866
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
17868 $as_echo_n "checking where to find the target windres... " >&6; }
17869 if test "x${build}" != "x${host}" ; then
17870   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17871     # We already found the complete path
17872     ac_dir=`dirname $WINDRES_FOR_TARGET`
17873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17874 $as_echo "pre-installed in $ac_dir" >&6; }
17875   else
17876     # Canadian cross, just use what we found
17877     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17878 $as_echo "pre-installed" >&6; }
17879   fi
17880 else
17881   ok=yes
17882   case " ${configdirs} " in
17883     *" binutils "*) ;;
17884     *) ok=no ;;
17885   esac
17886
17887   if test $ok = yes; then
17888     # An in-tree tool is available and we can use it
17889     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
17890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17891 $as_echo "just compiled" >&6; }
17892   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17893     # We already found the complete path
17894     ac_dir=`dirname $WINDRES_FOR_TARGET`
17895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17896 $as_echo "pre-installed in $ac_dir" >&6; }
17897   elif test "x$target" = "x$host"; then
17898     # We can use an host tool
17899     WINDRES_FOR_TARGET='$(WINDRES)'
17900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17901 $as_echo "host tool" >&6; }
17902   else
17903     # We need a cross tool
17904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17905 $as_echo "pre-installed" >&6; }
17906   fi
17907 fi
17908
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
17910 $as_echo_n "checking where to find the target windmc... " >&6; }
17911 if test "x${build}" != "x${host}" ; then
17912   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17913     # We already found the complete path
17914     ac_dir=`dirname $WINDMC_FOR_TARGET`
17915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17916 $as_echo "pre-installed in $ac_dir" >&6; }
17917   else
17918     # Canadian cross, just use what we found
17919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17920 $as_echo "pre-installed" >&6; }
17921   fi
17922 else
17923   ok=yes
17924   case " ${configdirs} " in
17925     *" binutils "*) ;;
17926     *) ok=no ;;
17927   esac
17928
17929   if test $ok = yes; then
17930     # An in-tree tool is available and we can use it
17931     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
17932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17933 $as_echo "just compiled" >&6; }
17934   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17935     # We already found the complete path
17936     ac_dir=`dirname $WINDMC_FOR_TARGET`
17937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17938 $as_echo "pre-installed in $ac_dir" >&6; }
17939   elif test "x$target" = "x$host"; then
17940     # We can use an host tool
17941     WINDMC_FOR_TARGET='$(WINDMC)'
17942     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17943 $as_echo "host tool" >&6; }
17944   else
17945     # We need a cross tool
17946     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17947 $as_echo "pre-installed" >&6; }
17948   fi
17949 fi
17950
17951
17952
17953
17954
17955 # Certain tools may need extra flags.
17956 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
17957 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
17958 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
17959
17960 # When building target libraries, except in a Canadian cross, we use
17961 # the same toolchain as the compiler we just built.
17962 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
17963 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
17964 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
17965 if test $host = $build; then
17966   case " $configdirs " in
17967     *" gcc "*)
17968       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
17969       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
17970       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
17971       ;;
17972   esac
17973 fi
17974
17975
17976
17977
17978
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17980 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17981 # Check whether --enable-maintainer-mode was given.
17982 if test "${enable_maintainer_mode+set}" = set; then :
17983   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
17984 else
17985   USE_MAINTAINER_MODE=no
17986 fi
17987
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17989 $as_echo "$USE_MAINTAINER_MODE" >&6; }
17990
17991
17992 if test "$USE_MAINTAINER_MODE" = yes; then
17993   MAINTAINER_MODE_TRUE=
17994   MAINTAINER_MODE_FALSE='#'
17995 else
17996   MAINTAINER_MODE_TRUE='#'
17997   MAINTAINER_MODE_FALSE=
17998 fi
17999 MAINT=$MAINTAINER_MODE_TRUE
18000
18001 # ---------------------
18002 # GCC bootstrap support
18003 # ---------------------
18004
18005 # Stage specific cflags for build.
18006 stage1_cflags="-g"
18007 case $build in
18008   vax-*-*)
18009     case ${GCC} in
18010       yes) stage1_cflags="-g -Wa,-J" ;;
18011       *) stage1_cflags="-g -J" ;;
18012     esac ;;
18013 esac
18014
18015
18016
18017 # Enable --enable-checking in stage1 of the compiler.
18018 # Check whether --enable-stage1-checking was given.
18019 if test "${enable_stage1_checking+set}" = set; then :
18020   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18021 else
18022   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18023   # For --disable-checking or implicit --enable-checking=release, avoid
18024   # setting --enable-checking=gc in the default stage1 checking for LTO
18025   # bootstraps.  See PR62077.
18026   case $BUILD_CONFIG in
18027     *lto*)
18028       stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18029     *)
18030       stage1_checking=--enable-checking=yes,types;;
18031   esac
18032   if test "x$enable_checking" = x && \
18033      test -d ${srcdir}/gcc && \
18034      test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18035     stage1_checking=--enable-checking=yes,types,extra
18036   fi
18037 else
18038   stage1_checking=--enable-checking=$enable_checking,types
18039 fi
18040 fi
18041
18042
18043
18044 # Enable -Werror in bootstrap stage2 and later.
18045 # Check whether --enable-werror was given.
18046 if test "${enable_werror+set}" = set; then :
18047   enableval=$enable_werror;
18048 case ${enable_werror} in
18049   yes) stage2_werror_flag="--enable-werror-always" ;;
18050   *) stage2_werror_flag="" ;;
18051 esac
18052
18053 else
18054
18055 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18056   case $BUILD_CONFIG in
18057   bootstrap-debug)
18058       stage2_werror_flag="--enable-werror-always" ;;
18059   "")
18060       stage2_werror_flag="--enable-werror-always" ;;
18061   esac
18062 fi
18063
18064 fi
18065
18066
18067
18068
18069 # Specify what files to not compare during bootstrap.
18070
18071 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18072 case "$target" in
18073   hppa*64*-*-hpux*) ;;
18074   hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18075   powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18076 esac
18077
18078
18079 ac_config_files="$ac_config_files Makefile"
18080
18081 cat >confcache <<\_ACEOF
18082 # This file is a shell script that caches the results of configure
18083 # tests run on this system so they can be shared between configure
18084 # scripts and configure runs, see configure's option --config-cache.
18085 # It is not useful on other systems.  If it contains results you don't
18086 # want to keep, you may remove or edit it.
18087 #
18088 # config.status only pays attention to the cache file if you give it
18089 # the --recheck option to rerun configure.
18090 #
18091 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18092 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18093 # following values.
18094
18095 _ACEOF
18096
18097 # The following way of writing the cache mishandles newlines in values,
18098 # but we know of no workaround that is simple, portable, and efficient.
18099 # So, we kill variables containing newlines.
18100 # Ultrix sh set writes to stderr and can't be redirected directly,
18101 # and sets the high bit in the cache file unless we assign to the vars.
18102 (
18103   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18104     eval ac_val=\$$ac_var
18105     case $ac_val in #(
18106     *${as_nl}*)
18107       case $ac_var in #(
18108       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18109 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18110       esac
18111       case $ac_var in #(
18112       _ | IFS | as_nl) ;; #(
18113       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18114       *) { eval $ac_var=; unset $ac_var;} ;;
18115       esac ;;
18116     esac
18117   done
18118
18119   (set) 2>&1 |
18120     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18121     *${as_nl}ac_space=\ *)
18122       # `set' does not quote correctly, so add quotes: double-quote
18123       # substitution turns \\\\ into \\, and sed turns \\ into \.
18124       sed -n \
18125         "s/'/'\\\\''/g;
18126           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18127       ;; #(
18128     *)
18129       # `set' quotes correctly as required by POSIX, so do not add quotes.
18130       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18131       ;;
18132     esac |
18133     sort
18134 ) |
18135   sed '
18136      /^ac_cv_env_/b end
18137      t clear
18138      :clear
18139      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18140      t end
18141      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18142      :end' >>confcache
18143 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18144   if test -w "$cache_file"; then
18145     if test "x$cache_file" != "x/dev/null"; then
18146       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18147 $as_echo "$as_me: updating cache $cache_file" >&6;}
18148       if test ! -f "$cache_file" || test -h "$cache_file"; then
18149         cat confcache >"$cache_file"
18150       else
18151         case $cache_file in #(
18152         */* | ?:*)
18153           mv -f confcache "$cache_file"$$ &&
18154           mv -f "$cache_file"$$ "$cache_file" ;; #(
18155         *)
18156           mv -f confcache "$cache_file" ;;
18157         esac
18158       fi
18159     fi
18160   else
18161     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18162 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18163   fi
18164 fi
18165 rm -f confcache
18166
18167 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18168 # Let make expand exec_prefix.
18169 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18170
18171 # Transform confdefs.h into DEFS.
18172 # Protect against shell expansion while executing Makefile rules.
18173 # Protect against Makefile macro expansion.
18174 #
18175 # If the first sed substitution is executed (which looks for macros that
18176 # take arguments), then branch to the quote section.  Otherwise,
18177 # look for a macro that doesn't take arguments.
18178 ac_script='
18179 :mline
18180 /\\$/{
18181  N
18182  s,\\\n,,
18183  b mline
18184 }
18185 t clear
18186 :clear
18187 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
18188 t quote
18189 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
18190 t quote
18191 b any
18192 :quote
18193 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18194 s/\[/\\&/g
18195 s/\]/\\&/g
18196 s/\$/$$/g
18197 H
18198 :any
18199 ${
18200         g
18201         s/^\n//
18202         s/\n/ /g
18203         p
18204 }
18205 '
18206 DEFS=`sed -n "$ac_script" confdefs.h`
18207
18208
18209 ac_libobjs=
18210 ac_ltlibobjs=
18211 U=
18212 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18213   # 1. Remove the extension, and $U if already installed.
18214   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18215   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18216   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18217   #    will be set to the directory where LIBOBJS objects are built.
18218   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18219   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18220 done
18221 LIBOBJS=$ac_libobjs
18222
18223 LTLIBOBJS=$ac_ltlibobjs
18224
18225
18226
18227 : "${CONFIG_STATUS=./config.status}"
18228 ac_write_fail=0
18229 ac_clean_files_save=$ac_clean_files
18230 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18232 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18233 as_write_fail=0
18234 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18235 #! $SHELL
18236 # Generated by $as_me.
18237 # Run this file to recreate the current configuration.
18238 # Compiler output produced by configure, useful for debugging
18239 # configure, is in config.log if it exists.
18240
18241 debug=false
18242 ac_cs_recheck=false
18243 ac_cs_silent=false
18244
18245 SHELL=\${CONFIG_SHELL-$SHELL}
18246 export SHELL
18247 _ASEOF
18248 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18249 ## -------------------- ##
18250 ## M4sh Initialization. ##
18251 ## -------------------- ##
18252
18253 # Be more Bourne compatible
18254 DUALCASE=1; export DUALCASE # for MKS sh
18255 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18256   emulate sh
18257   NULLCMD=:
18258   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18259   # is contrary to our usage.  Disable this feature.
18260   alias -g '${1+"$@"}'='"$@"'
18261   setopt NO_GLOB_SUBST
18262 else
18263   case `(set -o) 2>/dev/null` in #(
18264   *posix*) :
18265     set -o posix ;; #(
18266   *) :
18267      ;;
18268 esac
18269 fi
18270
18271
18272 as_nl='
18273 '
18274 export as_nl
18275 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18276 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18277 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18278 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18279 # Prefer a ksh shell builtin over an external printf program on Solaris,
18280 # but without wasting forks for bash or zsh.
18281 if test -z "$BASH_VERSION$ZSH_VERSION" \
18282     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18283   as_echo='print -r --'
18284   as_echo_n='print -rn --'
18285 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18286   as_echo='printf %s\n'
18287   as_echo_n='printf %s'
18288 else
18289   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18290     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18291     as_echo_n='/usr/ucb/echo -n'
18292   else
18293     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18294     as_echo_n_body='eval
18295       arg=$1;
18296       case $arg in #(
18297       *"$as_nl"*)
18298         expr "X$arg" : "X\\(.*\\)$as_nl";
18299         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18300       esac;
18301       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18302     '
18303     export as_echo_n_body
18304     as_echo_n='sh -c $as_echo_n_body as_echo'
18305   fi
18306   export as_echo_body
18307   as_echo='sh -c $as_echo_body as_echo'
18308 fi
18309
18310 # The user is always right.
18311 if test "${PATH_SEPARATOR+set}" != set; then
18312   PATH_SEPARATOR=:
18313   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18314     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18315       PATH_SEPARATOR=';'
18316   }
18317 fi
18318
18319
18320 # IFS
18321 # We need space, tab and new line, in precisely that order.  Quoting is
18322 # there to prevent editors from complaining about space-tab.
18323 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18324 # splitting by setting IFS to empty value.)
18325 IFS=" ""        $as_nl"
18326
18327 # Find who we are.  Look in the path if we contain no directory separator.
18328 as_myself=
18329 case $0 in #((
18330   *[\\/]* ) as_myself=$0 ;;
18331   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18332 for as_dir in $PATH
18333 do
18334   IFS=$as_save_IFS
18335   test -z "$as_dir" && as_dir=.
18336     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18337   done
18338 IFS=$as_save_IFS
18339
18340      ;;
18341 esac
18342 # We did not find ourselves, most probably we were run as `sh COMMAND'
18343 # in which case we are not to be found in the path.
18344 if test "x$as_myself" = x; then
18345   as_myself=$0
18346 fi
18347 if test ! -f "$as_myself"; then
18348   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18349   exit 1
18350 fi
18351
18352 # Unset variables that we do not need and which cause bugs (e.g. in
18353 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18354 # suppresses any "Segmentation fault" message there.  '((' could
18355 # trigger a bug in pdksh 5.2.14.
18356 for as_var in BASH_ENV ENV MAIL MAILPATH
18357 do eval test x\${$as_var+set} = xset \
18358   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18359 done
18360 PS1='$ '
18361 PS2='> '
18362 PS4='+ '
18363
18364 # NLS nuisances.
18365 LC_ALL=C
18366 export LC_ALL
18367 LANGUAGE=C
18368 export LANGUAGE
18369
18370 # CDPATH.
18371 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18372
18373
18374 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18375 # ----------------------------------------
18376 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18377 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18378 # script with STATUS, using 1 if that was 0.
18379 as_fn_error ()
18380 {
18381   as_status=$1; test $as_status -eq 0 && as_status=1
18382   if test "$4"; then
18383     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18384     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18385   fi
18386   $as_echo "$as_me: error: $2" >&2
18387   as_fn_exit $as_status
18388 } # as_fn_error
18389
18390
18391 # as_fn_set_status STATUS
18392 # -----------------------
18393 # Set $? to STATUS, without forking.
18394 as_fn_set_status ()
18395 {
18396   return $1
18397 } # as_fn_set_status
18398
18399 # as_fn_exit STATUS
18400 # -----------------
18401 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18402 as_fn_exit ()
18403 {
18404   set +e
18405   as_fn_set_status $1
18406   exit $1
18407 } # as_fn_exit
18408
18409 # as_fn_unset VAR
18410 # ---------------
18411 # Portably unset VAR.
18412 as_fn_unset ()
18413 {
18414   { eval $1=; unset $1;}
18415 }
18416 as_unset=as_fn_unset
18417 # as_fn_append VAR VALUE
18418 # ----------------------
18419 # Append the text in VALUE to the end of the definition contained in VAR. Take
18420 # advantage of any shell optimizations that allow amortized linear growth over
18421 # repeated appends, instead of the typical quadratic growth present in naive
18422 # implementations.
18423 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18424   eval 'as_fn_append ()
18425   {
18426     eval $1+=\$2
18427   }'
18428 else
18429   as_fn_append ()
18430   {
18431     eval $1=\$$1\$2
18432   }
18433 fi # as_fn_append
18434
18435 # as_fn_arith ARG...
18436 # ------------------
18437 # Perform arithmetic evaluation on the ARGs, and store the result in the
18438 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18439 # must be portable across $(()) and expr.
18440 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18441   eval 'as_fn_arith ()
18442   {
18443     as_val=$(( $* ))
18444   }'
18445 else
18446   as_fn_arith ()
18447   {
18448     as_val=`expr "$@" || test $? -eq 1`
18449   }
18450 fi # as_fn_arith
18451
18452
18453 if expr a : '\(a\)' >/dev/null 2>&1 &&
18454    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18455   as_expr=expr
18456 else
18457   as_expr=false
18458 fi
18459
18460 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18461   as_basename=basename
18462 else
18463   as_basename=false
18464 fi
18465
18466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18467   as_dirname=dirname
18468 else
18469   as_dirname=false
18470 fi
18471
18472 as_me=`$as_basename -- "$0" ||
18473 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18474          X"$0" : 'X\(//\)$' \| \
18475          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18476 $as_echo X/"$0" |
18477     sed '/^.*\/\([^/][^/]*\)\/*$/{
18478             s//\1/
18479             q
18480           }
18481           /^X\/\(\/\/\)$/{
18482             s//\1/
18483             q
18484           }
18485           /^X\/\(\/\).*/{
18486             s//\1/
18487             q
18488           }
18489           s/.*/./; q'`
18490
18491 # Avoid depending upon Character Ranges.
18492 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18493 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18494 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18495 as_cr_digits='0123456789'
18496 as_cr_alnum=$as_cr_Letters$as_cr_digits
18497
18498 ECHO_C= ECHO_N= ECHO_T=
18499 case `echo -n x` in #(((((
18500 -n*)
18501   case `echo 'xy\c'` in
18502   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18503   xy)  ECHO_C='\c';;
18504   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18505        ECHO_T=' ';;
18506   esac;;
18507 *)
18508   ECHO_N='-n';;
18509 esac
18510
18511 rm -f conf$$ conf$$.exe conf$$.file
18512 if test -d conf$$.dir; then
18513   rm -f conf$$.dir/conf$$.file
18514 else
18515   rm -f conf$$.dir
18516   mkdir conf$$.dir 2>/dev/null
18517 fi
18518 if (echo >conf$$.file) 2>/dev/null; then
18519   if ln -s conf$$.file conf$$ 2>/dev/null; then
18520     as_ln_s='ln -s'
18521     # ... but there are two gotchas:
18522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18524     # In both cases, we have to default to `cp -pR'.
18525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18526       as_ln_s='cp -pR'
18527   elif ln conf$$.file conf$$ 2>/dev/null; then
18528     as_ln_s=ln
18529   else
18530     as_ln_s='cp -pR'
18531   fi
18532 else
18533   as_ln_s='cp -pR'
18534 fi
18535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18536 rmdir conf$$.dir 2>/dev/null
18537
18538
18539 # as_fn_mkdir_p
18540 # -------------
18541 # Create "$as_dir" as a directory, including parents if necessary.
18542 as_fn_mkdir_p ()
18543 {
18544
18545   case $as_dir in #(
18546   -*) as_dir=./$as_dir;;
18547   esac
18548   test -d "$as_dir" || eval $as_mkdir_p || {
18549     as_dirs=
18550     while :; do
18551       case $as_dir in #(
18552       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18553       *) as_qdir=$as_dir;;
18554       esac
18555       as_dirs="'$as_qdir' $as_dirs"
18556       as_dir=`$as_dirname -- "$as_dir" ||
18557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18558          X"$as_dir" : 'X\(//\)[^/]' \| \
18559          X"$as_dir" : 'X\(//\)$' \| \
18560          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18561 $as_echo X"$as_dir" |
18562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18563             s//\1/
18564             q
18565           }
18566           /^X\(\/\/\)[^/].*/{
18567             s//\1/
18568             q
18569           }
18570           /^X\(\/\/\)$/{
18571             s//\1/
18572             q
18573           }
18574           /^X\(\/\).*/{
18575             s//\1/
18576             q
18577           }
18578           s/.*/./; q'`
18579       test -d "$as_dir" && break
18580     done
18581     test -z "$as_dirs" || eval "mkdir $as_dirs"
18582   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18583
18584
18585 } # as_fn_mkdir_p
18586 if mkdir -p . 2>/dev/null; then
18587   as_mkdir_p='mkdir -p "$as_dir"'
18588 else
18589   test -d ./-p && rmdir ./-p
18590   as_mkdir_p=false
18591 fi
18592
18593
18594 # as_fn_executable_p FILE
18595 # -----------------------
18596 # Test if FILE is an executable regular file.
18597 as_fn_executable_p ()
18598 {
18599   test -f "$1" && test -x "$1"
18600 } # as_fn_executable_p
18601 as_test_x='test -x'
18602 as_executable_p=as_fn_executable_p
18603
18604 # Sed expression to map a string onto a valid CPP name.
18605 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18606
18607 # Sed expression to map a string onto a valid variable name.
18608 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18609
18610
18611 exec 6>&1
18612 ## ----------------------------------- ##
18613 ## Main body of $CONFIG_STATUS script. ##
18614 ## ----------------------------------- ##
18615 _ASEOF
18616 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18617
18618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18619 # Save the log message, to keep $0 and so on meaningful, and to
18620 # report actual input values of CONFIG_FILES etc. instead of their
18621 # values after options handling.
18622 ac_log="
18623 This file was extended by $as_me, which was
18624 generated by GNU Autoconf 2.69.  Invocation command line was
18625
18626   CONFIG_FILES    = $CONFIG_FILES
18627   CONFIG_HEADERS  = $CONFIG_HEADERS
18628   CONFIG_LINKS    = $CONFIG_LINKS
18629   CONFIG_COMMANDS = $CONFIG_COMMANDS
18630   $ $0 $@
18631
18632 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18633 "
18634
18635 _ACEOF
18636
18637 case $ac_config_files in *"
18638 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18639 esac
18640
18641
18642
18643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18644 # Files that config.status was made for.
18645 config_files="$ac_config_files"
18646
18647 _ACEOF
18648
18649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18650 ac_cs_usage="\
18651 \`$as_me' instantiates files and other configuration actions
18652 from templates according to the current configuration.  Unless the files
18653 and actions are specified as TAGs, all are instantiated by default.
18654
18655 Usage: $0 [OPTION]... [TAG]...
18656
18657   -h, --help       print this help, then exit
18658   -V, --version    print version number and configuration settings, then exit
18659       --config     print configuration, then exit
18660   -q, --quiet, --silent
18661                    do not print progress messages
18662   -d, --debug      don't remove temporary files
18663       --recheck    update $as_me by reconfiguring in the same conditions
18664       --file=FILE[:TEMPLATE]
18665                    instantiate the configuration file FILE
18666
18667 Configuration files:
18668 $config_files
18669
18670 Report bugs to the package provider."
18671
18672 _ACEOF
18673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18674 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18675 ac_cs_version="\\
18676 config.status
18677 configured by $0, generated by GNU Autoconf 2.69,
18678   with options \\"\$ac_cs_config\\"
18679
18680 Copyright (C) 2012 Free Software Foundation, Inc.
18681 This config.status script is free software; the Free Software Foundation
18682 gives unlimited permission to copy, distribute and modify it."
18683
18684 ac_pwd='$ac_pwd'
18685 srcdir='$srcdir'
18686 INSTALL='$INSTALL'
18687 AWK='$AWK'
18688 test -n "\$AWK" || AWK=awk
18689 _ACEOF
18690
18691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18692 # The default lists apply if the user does not specify any file.
18693 ac_need_defaults=:
18694 while test $# != 0
18695 do
18696   case $1 in
18697   --*=?*)
18698     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18699     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18700     ac_shift=:
18701     ;;
18702   --*=)
18703     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18704     ac_optarg=
18705     ac_shift=:
18706     ;;
18707   *)
18708     ac_option=$1
18709     ac_optarg=$2
18710     ac_shift=shift
18711     ;;
18712   esac
18713
18714   case $ac_option in
18715   # Handling of the options.
18716   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18717     ac_cs_recheck=: ;;
18718   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18719     $as_echo "$ac_cs_version"; exit ;;
18720   --config | --confi | --conf | --con | --co | --c )
18721     $as_echo "$ac_cs_config"; exit ;;
18722   --debug | --debu | --deb | --de | --d | -d )
18723     debug=: ;;
18724   --file | --fil | --fi | --f )
18725     $ac_shift
18726     case $ac_optarg in
18727     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18728     '') as_fn_error $? "missing file argument" ;;
18729     esac
18730     as_fn_append CONFIG_FILES " '$ac_optarg'"
18731     ac_need_defaults=false;;
18732   --he | --h |  --help | --hel | -h )
18733     $as_echo "$ac_cs_usage"; exit ;;
18734   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18735   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18736     ac_cs_silent=: ;;
18737
18738   # This is an error.
18739   -*) as_fn_error $? "unrecognized option: \`$1'
18740 Try \`$0 --help' for more information." ;;
18741
18742   *) as_fn_append ac_config_targets " $1"
18743      ac_need_defaults=false ;;
18744
18745   esac
18746   shift
18747 done
18748
18749 ac_configure_extra_args=
18750
18751 if $ac_cs_silent; then
18752   exec 6>/dev/null
18753   ac_configure_extra_args="$ac_configure_extra_args --silent"
18754 fi
18755
18756 _ACEOF
18757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18758 if \$ac_cs_recheck; then
18759   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18760   shift
18761   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18762   CONFIG_SHELL='$SHELL'
18763   export CONFIG_SHELL
18764   exec "\$@"
18765 fi
18766
18767 _ACEOF
18768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18769 exec 5>>config.log
18770 {
18771   echo
18772   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18773 ## Running $as_me. ##
18774 _ASBOX
18775   $as_echo "$ac_log"
18776 } >&5
18777
18778 _ACEOF
18779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18780 #
18781 # INIT-COMMANDS
18782 #
18783 extrasub_build="$extrasub_build"
18784    extrasub_host="$extrasub_host"
18785    extrasub_target="$extrasub_target"
18786
18787 _ACEOF
18788
18789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18790
18791 # Handling of arguments.
18792 for ac_config_target in $ac_config_targets
18793 do
18794   case $ac_config_target in
18795     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18796
18797   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18798   esac
18799 done
18800
18801
18802 # If the user did not use the arguments to specify the items to instantiate,
18803 # then the envvar interface is used.  Set only those that are not.
18804 # We use the long form for the default assignment because of an extremely
18805 # bizarre bug on SunOS 4.1.3.
18806 if $ac_need_defaults; then
18807   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18808 fi
18809
18810 # Have a temporary directory for convenience.  Make it in the build tree
18811 # simply because there is no reason against having it here, and in addition,
18812 # creating and moving files from /tmp can sometimes cause problems.
18813 # Hook for its removal unless debugging.
18814 # Note that there is a small window in which the directory will not be cleaned:
18815 # after its creation but before its name has been assigned to `$tmp'.
18816 $debug ||
18817 {
18818   tmp= ac_tmp=
18819   trap 'exit_status=$?
18820   : "${ac_tmp:=$tmp}"
18821   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18822 ' 0
18823   trap 'as_fn_exit 1' 1 2 13 15
18824 }
18825 # Create a (secure) tmp directory for tmp files.
18826
18827 {
18828   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18829   test -d "$tmp"
18830 }  ||
18831 {
18832   tmp=./conf$$-$RANDOM
18833   (umask 077 && mkdir "$tmp")
18834 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18835 ac_tmp=$tmp
18836
18837 # Set up the scripts for CONFIG_FILES section.
18838 # No need to generate them if there are no CONFIG_FILES.
18839 # This happens for instance with `./config.status config.h'.
18840 if test -n "$CONFIG_FILES"; then
18841
18842 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18843   ac_cs_awk_getline=:
18844   ac_cs_awk_pipe_init=
18845   ac_cs_awk_read_file='
18846       while ((getline aline < (F[key])) > 0)
18847         print(aline)
18848       close(F[key])'
18849   ac_cs_awk_pipe_fini=
18850 else
18851   ac_cs_awk_getline=false
18852   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18853   ac_cs_awk_read_file='
18854       print "|#_!!_#|"
18855       print "cat " F[key] " &&"
18856       '$ac_cs_awk_pipe_init
18857   # The final `:' finishes the AND list.
18858   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18859 fi
18860 ac_cr=`echo X | tr X '\015'`
18861 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18862 # But we know of no other shell where ac_cr would be empty at this
18863 # point, so we can use a bashism as a fallback.
18864 if test "x$ac_cr" = x; then
18865   eval ac_cr=\$\'\\r\'
18866 fi
18867 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18868 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18869   ac_cs_awk_cr='\\r'
18870 else
18871   ac_cs_awk_cr=$ac_cr
18872 fi
18873
18874 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18875 _ACEOF
18876
18877 # Create commands to substitute file output variables.
18878 {
18879   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18880   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18881   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18882   echo "_ACAWK" &&
18883   echo "_ACEOF"
18884 } >conf$$files.sh &&
18885 . ./conf$$files.sh ||
18886   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18887 rm -f conf$$files.sh
18888
18889 {
18890   echo "cat >conf$$subs.awk <<_ACEOF" &&
18891   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18892   echo "_ACEOF"
18893 } >conf$$subs.sh ||
18894   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18895 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18896 ac_delim='%!_!# '
18897 for ac_last_try in false false false false false :; do
18898   . ./conf$$subs.sh ||
18899     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18900
18901   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18902   if test $ac_delim_n = $ac_delim_num; then
18903     break
18904   elif $ac_last_try; then
18905     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18906   else
18907     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18908   fi
18909 done
18910 rm -f conf$$subs.sh
18911
18912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18913 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18914 _ACEOF
18915 sed -n '
18916 h
18917 s/^/S["/; s/!.*/"]=/
18918 p
18919 g
18920 s/^[^!]*!//
18921 :repl
18922 t repl
18923 s/'"$ac_delim"'$//
18924 t delim
18925 :nl
18926 h
18927 s/\(.\{148\}\)..*/\1/
18928 t more1
18929 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18930 p
18931 n
18932 b repl
18933 :more1
18934 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18935 p
18936 g
18937 s/.\{148\}//
18938 t nl
18939 :delim
18940 h
18941 s/\(.\{148\}\)..*/\1/
18942 t more2
18943 s/["\\]/\\&/g; s/^/"/; s/$/"/
18944 p
18945 b
18946 :more2
18947 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18948 p
18949 g
18950 s/.\{148\}//
18951 t delim
18952 ' <conf$$subs.awk | sed '
18953 /^[^""]/{
18954   N
18955   s/\n//
18956 }
18957 ' >>$CONFIG_STATUS || ac_write_fail=1
18958 rm -f conf$$subs.awk
18959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18960 _ACAWK
18961 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18962   for (key in S) S_is_set[key] = 1
18963   FS = "\a"
18964   \$ac_cs_awk_pipe_init
18965 }
18966 {
18967   line = $ 0
18968   nfields = split(line, field, "@")
18969   substed = 0
18970   len = length(field[1])
18971   for (i = 2; i < nfields; i++) {
18972     key = field[i]
18973     keylen = length(key)
18974     if (S_is_set[key]) {
18975       value = S[key]
18976       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18977       len += length(value) + length(field[++i])
18978       substed = 1
18979     } else
18980       len += 1 + keylen
18981   }
18982   if (nfields == 3 && !substed) {
18983     key = field[2]
18984     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
18985       \$ac_cs_awk_read_file
18986       next
18987     }
18988   }
18989   print line
18990 }
18991 \$ac_cs_awk_pipe_fini
18992 _ACAWK
18993 _ACEOF
18994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18995 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18996   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18997 else
18998   cat
18999 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19000   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19001 _ACEOF
19002
19003 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19004 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19005 # trailing colons and then remove the whole line if VPATH becomes empty
19006 # (actually we leave an empty line to preserve line numbers).
19007 if test "x$srcdir" = x.; then
19008   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19009 h
19010 s///
19011 s/^/:/
19012 s/[      ]*$/:/
19013 s/:\$(srcdir):/:/g
19014 s/:\${srcdir}:/:/g
19015 s/:@srcdir@:/:/g
19016 s/^:*//
19017 s/:*$//
19018 x
19019 s/\(=[   ]*\).*/\1/
19020 G
19021 s/\n//
19022 s/^[^=]*=[       ]*$//
19023 }'
19024 fi
19025
19026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19027 fi # test -n "$CONFIG_FILES"
19028
19029
19030 eval set X "  :F $CONFIG_FILES      "
19031 shift
19032 for ac_tag
19033 do
19034   case $ac_tag in
19035   :[FHLC]) ac_mode=$ac_tag; continue;;
19036   esac
19037   case $ac_mode$ac_tag in
19038   :[FHL]*:*);;
19039   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19040   :[FH]-) ac_tag=-:-;;
19041   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19042   esac
19043   ac_save_IFS=$IFS
19044   IFS=:
19045   set x $ac_tag
19046   IFS=$ac_save_IFS
19047   shift
19048   ac_file=$1
19049   shift
19050
19051   case $ac_mode in
19052   :L) ac_source=$1;;
19053   :[FH])
19054     ac_file_inputs=
19055     for ac_f
19056     do
19057       case $ac_f in
19058       -) ac_f="$ac_tmp/stdin";;
19059       *) # Look for the file first in the build tree, then in the source tree
19060          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19061          # because $ac_f cannot contain `:'.
19062          test -f "$ac_f" ||
19063            case $ac_f in
19064            [\\/$]*) false;;
19065            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19066            esac ||
19067            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19068       esac
19069       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19070       as_fn_append ac_file_inputs " '$ac_f'"
19071     done
19072
19073     # Let's still pretend it is `configure' which instantiates (i.e., don't
19074     # use $as_me), people would be surprised to read:
19075     #    /* config.h.  Generated by config.status.  */
19076     configure_input='Generated from '`
19077           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19078         `' by configure.'
19079     if test x"$ac_file" != x-; then
19080       configure_input="$ac_file.  $configure_input"
19081       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19082 $as_echo "$as_me: creating $ac_file" >&6;}
19083     fi
19084     # Neutralize special characters interpreted by sed in replacement strings.
19085     case $configure_input in #(
19086     *\&* | *\|* | *\\* )
19087        ac_sed_conf_input=`$as_echo "$configure_input" |
19088        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19089     *) ac_sed_conf_input=$configure_input;;
19090     esac
19091
19092     case $ac_tag in
19093     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19094       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19095     esac
19096     ;;
19097   esac
19098
19099   ac_dir=`$as_dirname -- "$ac_file" ||
19100 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19101          X"$ac_file" : 'X\(//\)[^/]' \| \
19102          X"$ac_file" : 'X\(//\)$' \| \
19103          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19104 $as_echo X"$ac_file" |
19105     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19106             s//\1/
19107             q
19108           }
19109           /^X\(\/\/\)[^/].*/{
19110             s//\1/
19111             q
19112           }
19113           /^X\(\/\/\)$/{
19114             s//\1/
19115             q
19116           }
19117           /^X\(\/\).*/{
19118             s//\1/
19119             q
19120           }
19121           s/.*/./; q'`
19122   as_dir="$ac_dir"; as_fn_mkdir_p
19123   ac_builddir=.
19124
19125 case "$ac_dir" in
19126 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19127 *)
19128   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19129   # A ".." for each directory in $ac_dir_suffix.
19130   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19131   case $ac_top_builddir_sub in
19132   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19133   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19134   esac ;;
19135 esac
19136 ac_abs_top_builddir=$ac_pwd
19137 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19138 # for backward compatibility:
19139 ac_top_builddir=$ac_top_build_prefix
19140
19141 case $srcdir in
19142   .)  # We are building in place.
19143     ac_srcdir=.
19144     ac_top_srcdir=$ac_top_builddir_sub
19145     ac_abs_top_srcdir=$ac_pwd ;;
19146   [\\/]* | ?:[\\/]* )  # Absolute name.
19147     ac_srcdir=$srcdir$ac_dir_suffix;
19148     ac_top_srcdir=$srcdir
19149     ac_abs_top_srcdir=$srcdir ;;
19150   *) # Relative name.
19151     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19152     ac_top_srcdir=$ac_top_build_prefix$srcdir
19153     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19154 esac
19155 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19156
19157
19158   case $ac_mode in
19159   :F)
19160   #
19161   # CONFIG_FILE
19162   #
19163
19164   case $INSTALL in
19165   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19166   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19167   esac
19168 _ACEOF
19169
19170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19171 # If the template does not know about datarootdir, expand it.
19172 # FIXME: This hack should be removed a few years after 2.60.
19173 ac_datarootdir_hack=; ac_datarootdir_seen=
19174 ac_sed_dataroot='
19175 /datarootdir/ {
19176   p
19177   q
19178 }
19179 /@datadir@/p
19180 /@docdir@/p
19181 /@infodir@/p
19182 /@localedir@/p
19183 /@mandir@/p'
19184 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19185 *datarootdir*) ac_datarootdir_seen=yes;;
19186 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19187   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19188 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19189 _ACEOF
19190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19191   ac_datarootdir_hack='
19192   s&@datadir@&$datadir&g
19193   s&@docdir@&$docdir&g
19194   s&@infodir@&$infodir&g
19195   s&@localedir@&$localedir&g
19196   s&@mandir@&$mandir&g
19197   s&\\\${datarootdir}&$datarootdir&g' ;;
19198 esac
19199 _ACEOF
19200
19201 # Neutralize VPATH when `$srcdir' = `.'.
19202 # Shell code in configure.ac might set extrasub.
19203 # FIXME: do we really want to maintain this feature?
19204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19205 ac_sed_extra="$ac_vpsub
19206 $extrasub
19207 _ACEOF
19208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19209 :t
19210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19211 s|@configure_input@|$ac_sed_conf_input|;t t
19212 s&@top_builddir@&$ac_top_builddir_sub&;t t
19213 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19214 s&@srcdir@&$ac_srcdir&;t t
19215 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19216 s&@top_srcdir@&$ac_top_srcdir&;t t
19217 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19218 s&@builddir@&$ac_builddir&;t t
19219 s&@abs_builddir@&$ac_abs_builddir&;t t
19220 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19221 s&@INSTALL@&$ac_INSTALL&;t t
19222 $ac_datarootdir_hack
19223 "
19224 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19225 if $ac_cs_awk_getline; then
19226   $AWK -f "$ac_tmp/subs.awk"
19227 else
19228   $AWK -f "$ac_tmp/subs.awk" | $SHELL
19229 fi \
19230   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19231
19232 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19233   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19234   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19235       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19236   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19237 which seems to be undefined.  Please make sure it is defined" >&5
19238 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19239 which seems to be undefined.  Please make sure it is defined" >&2;}
19240
19241   rm -f "$ac_tmp/stdin"
19242   case $ac_file in
19243   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19244   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19245   esac \
19246   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19247  ;;
19248
19249
19250
19251   esac
19252
19253
19254   case $ac_file$ac_mode in
19255     "Makefile":F) sed "$extrasub_build" Makefile |
19256    sed "$extrasub_host" |
19257    sed "$extrasub_target" > mf$$
19258    mv -f mf$$ Makefile ;;
19259
19260   esac
19261 done # for ac_tag
19262
19263
19264 as_fn_exit 0
19265 _ACEOF
19266 ac_clean_files=$ac_clean_files_save
19267
19268 test $ac_write_fail = 0 ||
19269   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19270
19271
19272 # configure is writing to config.log, and then calls config.status.
19273 # config.status does its own redirection, appending to config.log.
19274 # Unfortunately, on DOS this fails, as config.log is still kept open
19275 # by configure, so config.status won't be able to write to it; its
19276 # output is simply discarded.  So we exec the FD to /dev/null,
19277 # effectively closing config.log, so it can be properly (re)opened and
19278 # appended to by config.status.  When coming back to configure, we
19279 # need to make the FD available again.
19280 if test "$no_create" != yes; then
19281   ac_cs_success=:
19282   ac_config_status_args=
19283   test "$silent" = yes &&
19284     ac_config_status_args="$ac_config_status_args --quiet"
19285   exec 5>/dev/null
19286   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19287   exec 5>>config.log
19288   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19289   # would make configure fail if this is the last instruction.
19290   $ac_cs_success || as_fn_exit 1
19291 fi
19292 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19293   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19294 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19295 fi
19296