configure: Support building D front-end on *-*-darwin*
[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 DLLTOOL_FOR_TARGET
613 AS_FOR_TARGET
614 AR_FOR_TARGET
615 GDC_FOR_TARGET
616 GOC_FOR_TARGET
617 GFORTRAN_FOR_TARGET
618 GCC_FOR_TARGET
619 CXX_FOR_TARGET
620 CC_FOR_TARGET
621 READELF
622 OTOOL
623 OBJDUMP
624 OBJCOPY
625 WINDMC
626 WINDRES
627 STRIP
628 RANLIB
629 NM
630 LIPO
631 LD
632 DLLTOOL
633 AS
634 AR
635 RUNTEST
636 EXPECT
637 MAKEINFO
638 FLEX
639 LEX
640 M4
641 BISON
642 YACC
643 WINDRES_FOR_BUILD
644 WINDMC_FOR_BUILD
645 RANLIB_FOR_BUILD
646 NM_FOR_BUILD
647 LD_FOR_BUILD
648 LDFLAGS_FOR_BUILD
649 GDC_FOR_BUILD
650 GOC_FOR_BUILD
651 GFORTRAN_FOR_BUILD
652 DLLTOOL_FOR_BUILD
653 CXX_FOR_BUILD
654 CXXFLAGS_FOR_BUILD
655 CFLAGS_FOR_BUILD
656 CC_FOR_BUILD
657 AS_FOR_BUILD
658 AR_FOR_BUILD
659 target_configdirs
660 configdirs
661 build_configdirs
662 INSTALL_GDB_TK
663 GDB_TK
664 CONFIGURE_GDB_TK
665 build_tooldir
666 tooldir
667 GCC_SHLIB_SUBDIR
668 RPATH_ENVVAR
669 target_configargs
670 host_configargs
671 build_configargs
672 BUILD_CONFIG
673 LDFLAGS_FOR_TARGET
674 CXXFLAGS_FOR_TARGET
675 CFLAGS_FOR_TARGET
676 DEBUG_PREFIX_CFLAGS_FOR_TARGET
677 SYSROOT_CFLAGS_FOR_TARGET
678 get_gcc_base_ver
679 extra_host_zlib_configure_flags
680 extra_host_libiberty_configure_flags
681 stage1_languages
682 host_shared
683 extra_linker_plugin_flags
684 extra_linker_plugin_configure_flags
685 islinc
686 isllibs
687 poststage1_ldflags
688 poststage1_libs
689 stage1_ldflags
690 stage1_libs
691 extra_isl_gmp_configure_flags
692 extra_mpc_mpfr_configure_flags
693 extra_mpc_gmp_configure_flags
694 extra_mpfr_configure_flags
695 gmpinc
696 gmplibs
697 HAVE_CXX11_FOR_BUILD
698 HAVE_CXX11
699 do_compare
700 GNATMAKE
701 GNATBIND
702 ac_ct_CXX
703 CXXFLAGS
704 CXX
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 extra_liboffloadmic_configure_flags
713 target_subdir
714 host_subdir
715 build_subdir
716 build_libsubdir
717 AWK
718 SED
719 LN_S
720 LN
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 target_os
725 target_vendor
726 target_cpu
727 target
728 host_os
729 host_vendor
730 host_cpu
731 host
732 target_noncanonical
733 host_noncanonical
734 build_noncanonical
735 build_os
736 build_vendor
737 build_cpu
738 build
739 TOPLEVEL_CONFIGURE_ARGUMENTS
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL'
778 ac_subst_files='serialization_dependencies
779 host_makefile_frag
780 target_makefile_frag
781 alphaieee_frag
782 ospace_frag'
783 ac_user_opts='
784 enable_option_checking
785 with_build_libsubdir
786 with_system_zlib
787 enable_as_accelerator_for
788 enable_offload_targets
789 enable_gold
790 enable_ld
791 enable_compressed_debug_sections
792 enable_libquadmath
793 enable_libquadmath_support
794 enable_libada
795 enable_libssp
796 enable_libstdcxx
797 enable_liboffloadmic
798 enable_bootstrap
799 with_mpc
800 with_mpc_include
801 with_mpc_lib
802 with_mpfr_dir
803 with_mpfr
804 with_mpfr_include
805 with_mpfr_lib
806 with_gmp_dir
807 with_gmp
808 with_gmp_include
809 with_gmp_lib
810 with_stage1_libs
811 with_static_standard_libraries
812 with_stage1_ldflags
813 with_boot_libs
814 with_boot_ldflags
815 with_isl
816 with_isl_include
817 with_isl_lib
818 enable_isl_version_check
819 enable_lto
820 enable_linker_plugin_configure_flags
821 enable_linker_plugin_flags
822 enable_host_shared
823 enable_stage1_languages
824 enable_objc_gc
825 with_target_bdw_gc
826 with_target_bdw_gc_include
827 with_target_bdw_gc_lib
828 with_gcc_major_version_only
829 with_build_sysroot
830 with_debug_prefix_map
831 with_build_config
832 enable_vtable_verify
833 enable_serial_configure
834 with_build_time_tools
835 enable_maintainer_mode
836 enable_stage1_checking
837 enable_werror
838 '
839       ac_precious_vars='build_alias
840 host_alias
841 target_alias
842 CC
843 CFLAGS
844 LDFLAGS
845 LIBS
846 CPPFLAGS
847 CXX
848 CXXFLAGS
849 CCC
850 build_configargs
851 host_configargs
852 target_configargs
853 AR
854 AS
855 DLLTOOL
856 LD
857 LIPO
858 NM
859 RANLIB
860 STRIP
861 WINDRES
862 WINDMC
863 OBJCOPY
864 OBJDUMP
865 OTOOL
866 READELF
867 CC_FOR_TARGET
868 CXX_FOR_TARGET
869 GCC_FOR_TARGET
870 GFORTRAN_FOR_TARGET
871 GOC_FOR_TARGET
872 GDC_FOR_TARGET
873 AR_FOR_TARGET
874 AS_FOR_TARGET
875 DLLTOOL_FOR_TARGET
876 LD_FOR_TARGET
877 LIPO_FOR_TARGET
878 NM_FOR_TARGET
879 OBJCOPY_FOR_TARGET
880 OBJDUMP_FOR_TARGET
881 OTOOL_FOR_TARGET
882 RANLIB_FOR_TARGET
883 READELF_FOR_TARGET
884 STRIP_FOR_TARGET
885 WINDRES_FOR_TARGET
886 WINDMC_FOR_TARGET'
887
888
889 # Initialize some variables set by options.
890 ac_init_help=
891 ac_init_version=false
892 ac_unrecognized_opts=
893 ac_unrecognized_sep=
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
896 cache_file=/dev/null
897 exec_prefix=NONE
898 no_create=
899 no_recursion=
900 prefix=NONE
901 program_prefix=NONE
902 program_suffix=NONE
903 program_transform_name=s,x,x,
904 silent=
905 site=
906 srcdir=
907 verbose=
908 x_includes=NONE
909 x_libraries=NONE
910
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE}'
928 infodir='${datarootdir}/info'
929 htmldir='${docdir}'
930 dvidir='${docdir}'
931 pdfdir='${docdir}'
932 psdir='${docdir}'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
936
937 ac_prev=
938 ac_dashdash=
939 for ac_option
940 do
941   # If the previous option needs an argument, assign it.
942   if test -n "$ac_prev"; then
943     eval $ac_prev=\$ac_option
944     ac_prev=
945     continue
946   fi
947
948   case $ac_option in
949   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950   *=)   ac_optarg= ;;
951   *)    ac_optarg=yes ;;
952   esac
953
954   # Accept the important Cygnus configure options, so we can diagnose typos.
955
956   case $ac_dashdash$ac_option in
957   --)
958     ac_dashdash=yes ;;
959
960   -bindir | --bindir | --bindi | --bind | --bin | --bi)
961     ac_prev=bindir ;;
962   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963     bindir=$ac_optarg ;;
964
965   -build | --build | --buil | --bui | --bu)
966     ac_prev=build_alias ;;
967   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968     build_alias=$ac_optarg ;;
969
970   -cache-file | --cache-file | --cache-fil | --cache-fi \
971   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972     ac_prev=cache_file ;;
973   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975     cache_file=$ac_optarg ;;
976
977   --config-cache | -C)
978     cache_file=config.cache ;;
979
980   -datadir | --datadir | --datadi | --datad)
981     ac_prev=datadir ;;
982   -datadir=* | --datadir=* | --datadi=* | --datad=*)
983     datadir=$ac_optarg ;;
984
985   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986   | --dataroo | --dataro | --datar)
987     ac_prev=datarootdir ;;
988   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990     datarootdir=$ac_optarg ;;
991
992   -disable-* | --disable-*)
993     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994     # Reject names that are not valid shell variable names.
995     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996       as_fn_error $? "invalid feature name: $ac_useropt"
997     ac_useropt_orig=$ac_useropt
998     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999     case $ac_user_opts in
1000       *"
1001 "enable_$ac_useropt"
1002 "*) ;;
1003       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004          ac_unrecognized_sep=', ';;
1005     esac
1006     eval enable_$ac_useropt=no ;;
1007
1008   -docdir | --docdir | --docdi | --doc | --do)
1009     ac_prev=docdir ;;
1010   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011     docdir=$ac_optarg ;;
1012
1013   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014     ac_prev=dvidir ;;
1015   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016     dvidir=$ac_optarg ;;
1017
1018   -enable-* | --enable-*)
1019     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020     # Reject names that are not valid shell variable names.
1021     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022       as_fn_error $? "invalid feature name: $ac_useropt"
1023     ac_useropt_orig=$ac_useropt
1024     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025     case $ac_user_opts in
1026       *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030          ac_unrecognized_sep=', ';;
1031     esac
1032     eval enable_$ac_useropt=\$ac_optarg ;;
1033
1034   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036   | --exec | --exe | --ex)
1037     ac_prev=exec_prefix ;;
1038   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040   | --exec=* | --exe=* | --ex=*)
1041     exec_prefix=$ac_optarg ;;
1042
1043   -gas | --gas | --ga | --g)
1044     # Obsolete; use --with-gas.
1045     with_gas=yes ;;
1046
1047   -help | --help | --hel | --he | -h)
1048     ac_init_help=long ;;
1049   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050     ac_init_help=recursive ;;
1051   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052     ac_init_help=short ;;
1053
1054   -host | --host | --hos | --ho)
1055     ac_prev=host_alias ;;
1056   -host=* | --host=* | --hos=* | --ho=*)
1057     host_alias=$ac_optarg ;;
1058
1059   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060     ac_prev=htmldir ;;
1061   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062   | --ht=*)
1063     htmldir=$ac_optarg ;;
1064
1065   -includedir | --includedir | --includedi | --included | --include \
1066   | --includ | --inclu | --incl | --inc)
1067     ac_prev=includedir ;;
1068   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069   | --includ=* | --inclu=* | --incl=* | --inc=*)
1070     includedir=$ac_optarg ;;
1071
1072   -infodir | --infodir | --infodi | --infod | --info | --inf)
1073     ac_prev=infodir ;;
1074   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075     infodir=$ac_optarg ;;
1076
1077   -libdir | --libdir | --libdi | --libd)
1078     ac_prev=libdir ;;
1079   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080     libdir=$ac_optarg ;;
1081
1082   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083   | --libexe | --libex | --libe)
1084     ac_prev=libexecdir ;;
1085   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086   | --libexe=* | --libex=* | --libe=*)
1087     libexecdir=$ac_optarg ;;
1088
1089   -localedir | --localedir | --localedi | --localed | --locale)
1090     ac_prev=localedir ;;
1091   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092     localedir=$ac_optarg ;;
1093
1094   -localstatedir | --localstatedir | --localstatedi | --localstated \
1095   | --localstate | --localstat | --localsta | --localst | --locals)
1096     ac_prev=localstatedir ;;
1097   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099     localstatedir=$ac_optarg ;;
1100
1101   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102     ac_prev=mandir ;;
1103   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104     mandir=$ac_optarg ;;
1105
1106   -nfp | --nfp | --nf)
1107     # Obsolete; use --without-fp.
1108     with_fp=no ;;
1109
1110   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111   | --no-cr | --no-c | -n)
1112     no_create=yes ;;
1113
1114   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116     no_recursion=yes ;;
1117
1118   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120   | --oldin | --oldi | --old | --ol | --o)
1121     ac_prev=oldincludedir ;;
1122   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125     oldincludedir=$ac_optarg ;;
1126
1127   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128     ac_prev=prefix ;;
1129   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130     prefix=$ac_optarg ;;
1131
1132   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133   | --program-pre | --program-pr | --program-p)
1134     ac_prev=program_prefix ;;
1135   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137     program_prefix=$ac_optarg ;;
1138
1139   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140   | --program-suf | --program-su | --program-s)
1141     ac_prev=program_suffix ;;
1142   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144     program_suffix=$ac_optarg ;;
1145
1146   -program-transform-name | --program-transform-name \
1147   | --program-transform-nam | --program-transform-na \
1148   | --program-transform-n | --program-transform- \
1149   | --program-transform | --program-transfor \
1150   | --program-transfo | --program-transf \
1151   | --program-trans | --program-tran \
1152   | --progr-tra | --program-tr | --program-t)
1153     ac_prev=program_transform_name ;;
1154   -program-transform-name=* | --program-transform-name=* \
1155   | --program-transform-nam=* | --program-transform-na=* \
1156   | --program-transform-n=* | --program-transform-=* \
1157   | --program-transform=* | --program-transfor=* \
1158   | --program-transfo=* | --program-transf=* \
1159   | --program-trans=* | --program-tran=* \
1160   | --progr-tra=* | --program-tr=* | --program-t=*)
1161     program_transform_name=$ac_optarg ;;
1162
1163   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164     ac_prev=pdfdir ;;
1165   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166     pdfdir=$ac_optarg ;;
1167
1168   -psdir | --psdir | --psdi | --psd | --ps)
1169     ac_prev=psdir ;;
1170   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171     psdir=$ac_optarg ;;
1172
1173   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174   | -silent | --silent | --silen | --sile | --sil)
1175     silent=yes ;;
1176
1177   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178     ac_prev=sbindir ;;
1179   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180   | --sbi=* | --sb=*)
1181     sbindir=$ac_optarg ;;
1182
1183   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185   | --sharedst | --shareds | --shared | --share | --shar \
1186   | --sha | --sh)
1187     ac_prev=sharedstatedir ;;
1188   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191   | --sha=* | --sh=*)
1192     sharedstatedir=$ac_optarg ;;
1193
1194   -site | --site | --sit)
1195     ac_prev=site ;;
1196   -site=* | --site=* | --sit=*)
1197     site=$ac_optarg ;;
1198
1199   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200     ac_prev=srcdir ;;
1201   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202     srcdir=$ac_optarg ;;
1203
1204   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205   | --syscon | --sysco | --sysc | --sys | --sy)
1206     ac_prev=sysconfdir ;;
1207   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209     sysconfdir=$ac_optarg ;;
1210
1211   -target | --target | --targe | --targ | --tar | --ta | --t)
1212     ac_prev=target_alias ;;
1213   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214     target_alias=$ac_optarg ;;
1215
1216   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217     verbose=yes ;;
1218
1219   -version | --version | --versio | --versi | --vers | -V)
1220     ac_init_version=: ;;
1221
1222   -with-* | --with-*)
1223     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224     # Reject names that are not valid shell variable names.
1225     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226       as_fn_error $? "invalid package name: $ac_useropt"
1227     ac_useropt_orig=$ac_useropt
1228     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229     case $ac_user_opts in
1230       *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234          ac_unrecognized_sep=', ';;
1235     esac
1236     eval with_$ac_useropt=\$ac_optarg ;;
1237
1238   -without-* | --without-*)
1239     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240     # Reject names that are not valid shell variable names.
1241     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242       as_fn_error $? "invalid package name: $ac_useropt"
1243     ac_useropt_orig=$ac_useropt
1244     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245     case $ac_user_opts in
1246       *"
1247 "with_$ac_useropt"
1248 "*) ;;
1249       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250          ac_unrecognized_sep=', ';;
1251     esac
1252     eval with_$ac_useropt=no ;;
1253
1254   --x)
1255     # Obsolete; use --with-x.
1256     with_x=yes ;;
1257
1258   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259   | --x-incl | --x-inc | --x-in | --x-i)
1260     ac_prev=x_includes ;;
1261   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263     x_includes=$ac_optarg ;;
1264
1265   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267     ac_prev=x_libraries ;;
1268   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270     x_libraries=$ac_optarg ;;
1271
1272   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1273 Try \`$0 --help' for more information"
1274     ;;
1275
1276   *=*)
1277     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278     # Reject names that are not valid shell variable names.
1279     case $ac_envvar in #(
1280       '' | [0-9]* | *[!_$as_cr_alnum]* )
1281       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1282     esac
1283     eval $ac_envvar=\$ac_optarg
1284     export $ac_envvar ;;
1285
1286   *)
1287     # FIXME: should be removed in autoconf 3.0.
1288     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1292     ;;
1293
1294   esac
1295 done
1296
1297 if test -n "$ac_prev"; then
1298   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299   as_fn_error $? "missing argument to $ac_option"
1300 fi
1301
1302 if test -n "$ac_unrecognized_opts"; then
1303   case $enable_option_checking in
1304     no) ;;
1305     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1306     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307   esac
1308 fi
1309
1310 # Check all directory arguments for consistency.
1311 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312                 datadir sysconfdir sharedstatedir localstatedir includedir \
1313                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314                 libdir localedir mandir
1315 do
1316   eval ac_val=\$$ac_var
1317   # Remove trailing slashes.
1318   case $ac_val in
1319     */ )
1320       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321       eval $ac_var=\$ac_val;;
1322   esac
1323   # Be sure to have absolute directory names.
1324   case $ac_val in
1325     [\\/$]* | ?:[\\/]* )  continue;;
1326     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327   esac
1328   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1329 done
1330
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1337
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340   if test "x$build_alias" = x; then
1341     cross_compiling=maybe
1342   elif test "x$build_alias" != "x$host_alias"; then
1343     cross_compiling=yes
1344   fi
1345 fi
1346
1347 ac_tool_prefix=
1348 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349
1350 test "$silent" = yes && exec 6>/dev/null
1351
1352
1353 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354 ac_ls_di=`ls -di .` &&
1355 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1356   as_fn_error $? "working directory cannot be determined"
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358   as_fn_error $? "pwd does not report name of working directory"
1359
1360
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363   ac_srcdir_defaulted=yes
1364   # Try the directory containing this script, then the parent directory.
1365   ac_confdir=`$as_dirname -- "$as_myself" ||
1366 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367          X"$as_myself" : 'X\(//\)[^/]' \| \
1368          X"$as_myself" : 'X\(//\)$' \| \
1369          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370 $as_echo X"$as_myself" |
1371     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372             s//\1/
1373             q
1374           }
1375           /^X\(\/\/\)[^/].*/{
1376             s//\1/
1377             q
1378           }
1379           /^X\(\/\/\)$/{
1380             s//\1/
1381             q
1382           }
1383           /^X\(\/\).*/{
1384             s//\1/
1385             q
1386           }
1387           s/.*/./; q'`
1388   srcdir=$ac_confdir
1389   if test ! -r "$srcdir/$ac_unique_file"; then
1390     srcdir=..
1391   fi
1392 else
1393   ac_srcdir_defaulted=no
1394 fi
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1398 fi
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 ac_abs_confdir=`(
1401         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1402         pwd)`
1403 # When building in place, set srcdir=.
1404 if test "$ac_abs_confdir" = "$ac_pwd"; then
1405   srcdir=.
1406 fi
1407 # Remove unnecessary trailing slashes from srcdir.
1408 # Double slashes in file names in object file debugging info
1409 # mess up M-x gdb in Emacs.
1410 case $srcdir in
1411 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 esac
1413 case $srcdir in
1414   *" "*)
1415     as_fn_error $? "path to source, $srcdir, contains spaces"
1416     ;;
1417 esac
1418 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1419
1420 for ac_var in $ac_precious_vars; do
1421   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422   eval ac_env_${ac_var}_value=\$${ac_var}
1423   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425 done
1426
1427 #
1428 # Report the --help message.
1429 #
1430 if test "$ac_init_help" = "long"; then
1431   # Omit some internal or obsolete options to make the list less imposing.
1432   # This message is too long to be a string in the A/UX 3.1 sh.
1433   cat <<_ACEOF
1434 \`configure' configures this package to adapt to many kinds of systems.
1435
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1437
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE.  See below for descriptions of some of the useful variables.
1440
1441 Defaults for the options are specified in brackets.
1442
1443 Configuration:
1444   -h, --help              display this help and exit
1445       --help=short        display options specific to this package
1446       --help=recursive    display the short help of all the included packages
1447   -V, --version           display version information and exit
1448   -q, --quiet, --silent   do not print \`checking ...' messages
1449       --cache-file=FILE   cache test results in FILE [disabled]
1450   -C, --config-cache      alias for \`--cache-file=config.cache'
1451   -n, --no-create         do not create output files
1452       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1453
1454 Installation directories:
1455   --prefix=PREFIX         install architecture-independent files in PREFIX
1456                           [$ac_default_prefix]
1457   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1458                           [PREFIX]
1459
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1464
1465 For better control, use the options below.
1466
1467 Fine tuning of the installation directories:
1468   --bindir=DIR            user executables [EPREFIX/bin]
1469   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1470   --libexecdir=DIR        program executables [EPREFIX/libexec]
1471   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1472   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1473   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1474   --libdir=DIR            object code libraries [EPREFIX/lib]
1475   --includedir=DIR        C header files [PREFIX/include]
1476   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1477   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1478   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1479   --infodir=DIR           info documentation [DATAROOTDIR/info]
1480   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1481   --mandir=DIR            man documentation [DATAROOTDIR/man]
1482   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1483   --htmldir=DIR           html documentation [DOCDIR]
1484   --dvidir=DIR            dvi documentation [DOCDIR]
1485   --pdfdir=DIR            pdf documentation [DOCDIR]
1486   --psdir=DIR             ps documentation [DOCDIR]
1487 _ACEOF
1488
1489   cat <<\_ACEOF
1490
1491 Program names:
1492   --program-prefix=PREFIX            prepend PREFIX to installed program names
1493   --program-suffix=SUFFIX            append SUFFIX to installed program names
1494   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1495
1496 System types:
1497   --build=BUILD     configure for building on BUILD [guessed]
1498   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1499   --target=TARGET   configure for building compilers for TARGET [HOST]
1500 _ACEOF
1501 fi
1502
1503 if test -n "$ac_init_help"; then
1504
1505   cat <<\_ACEOF
1506
1507 Optional Features:
1508   --disable-option-checking  ignore unrecognized --enable/--with options
1509   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1510   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1511   --enable-as-accelerator-for=ARG
1512                           build as offload target compiler. Specify offload
1513                           host triple by ARG
1514   --enable-offload-targets=LIST
1515                           enable offloading to devices from comma-separated
1516                           LIST of TARGET[=DIR]. Use optional path to find
1517                           offload target compiler during the build
1518   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1519   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1520   --enable-compressed-debug-sections={all,gas,gold,ld,none}
1521                           Enable compressed debug sections for gas, gold or ld
1522                           by default
1523   --disable-libquadmath   do not build libquadmath directory
1524   --disable-libquadmath-support
1525                           disable libquadmath support for Fortran
1526   --enable-libada         build libada directory
1527   --enable-libssp         build libssp directory
1528   --disable-libstdcxx     do not build libstdc++-v3 directory
1529   --enable-liboffloadmic=ARG
1530                           build liboffloadmic [ARG={no,host,target}]
1531   --enable-bootstrap      enable bootstrapping [yes if native build]
1532   --disable-isl-version-check
1533                           disable check for isl version
1534   --enable-lto            enable link time optimization support
1535   --enable-linker-plugin-configure-flags=FLAGS
1536                           additional flags for configuring linker plugins
1537                           [none]
1538   --enable-linker-plugin-flags=FLAGS
1539                           additional flags for configuring and building linker
1540                           plugins [none]
1541   --enable-host-shared    build host code as shared libraries
1542   --enable-stage1-languages[=all]
1543                           choose additional languages to build during stage1.
1544                           Mostly useful for compiler development
1545   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1546                           Objective-C runtime
1547   --enable-vtable-verify  Enable vtable verification feature
1548   --enable-serial-[{host,target,build}-]configure
1549                           force sequential configuration of sub-packages for
1550                           the host, target or build machine, or all
1551                           sub-packages
1552   --enable-maintainer-mode
1553                           enable make rules and dependencies not useful (and
1554                           sometimes confusing) to the casual installer
1555   --enable-stage1-checking[=all]
1556                           choose additional checking for stage1 of the
1557                           compiler
1558   --enable-werror         enable -Werror in bootstrap stage2 and later
1559
1560 Optional Packages:
1561   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1562   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1563   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1564   --with-system-zlib      use installed libz
1565   --with-mpc=PATH         specify prefix directory for installed MPC package.
1566                           Equivalent to --with-mpc-include=PATH/include plus
1567                           --with-mpc-lib=PATH/lib
1568   --with-mpc-include=PATH specify directory for installed MPC include files
1569   --with-mpc-lib=PATH     specify directory for the installed MPC library
1570   --with-mpfr-dir=PATH    this option has been REMOVED
1571   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1572                           Equivalent to --with-mpfr-include=PATH/include plus
1573                           --with-mpfr-lib=PATH/lib
1574   --with-mpfr-include=PATH
1575                           specify directory for installed MPFR include files
1576   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1577   --with-gmp-dir=PATH     this option has been REMOVED
1578   --with-gmp=PATH         specify prefix directory for the installed GMP
1579                           package. Equivalent to
1580                           --with-gmp-include=PATH/include plus
1581                           --with-gmp-lib=PATH/lib
1582   --with-gmp-include=PATH specify directory for installed GMP include files
1583   --with-gmp-lib=PATH     specify directory for the installed GMP library
1584   --with-stage1-libs=LIBS libraries for stage1
1585   --with-static-standard-libraries
1586                           use -static-libstdc++ and -static-libgcc
1587                           (default=auto)
1588   --with-stage1-ldflags=FLAGS
1589                           linker flags for stage1
1590   --with-boot-libs=LIBS   libraries for stage2 and later
1591   --with-boot-ldflags=FLAGS
1592                           linker flags for stage2 and later
1593   --with-isl=PATH         Specify prefix directory for the installed isl
1594                           package. Equivalent to
1595                           --with-isl-include=PATH/include plus
1596                           --with-isl-lib=PATH/lib
1597   --with-isl-include=PATH Specify directory for installed isl include files
1598   --with-isl-lib=PATH     Specify the directory for the installed isl library
1599   --with-target-bdw-gc=PATHLIST
1600                           specify prefix directory for installed bdw-gc
1601                           package. Equivalent to
1602                           --with-target-bdw-gc-include=PATH/include plus
1603                           --with-target-bdw-gc-lib=PATH/lib
1604   --with-target-bdw-gc-include=PATHLIST
1605                           specify directories for installed bdw-gc include
1606                           files
1607   --with-target-bdw-gc-lib=PATHLIST
1608                           specify directories for installed bdw-gc library
1609   --with-gcc-major-version-only
1610                           use only GCC major number in filesystem paths
1611   --with-build-sysroot=SYSROOT
1612                           use sysroot as the system root during the build
1613   --with-debug-prefix-map='A=B C=D ...'
1614                           map A to B, C to D ... in debug information
1615   --with-build-config='NAME NAME2...'
1616                           use config/NAME.mk build configuration
1617   --with-build-time-tools=PATH
1618                           use given path to find target tools during the build
1619
1620 Some influential environment variables:
1621   CC          C compiler command
1622   CFLAGS      C compiler flags
1623   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1624               nonstandard directory <lib dir>
1625   LIBS        libraries to pass to the linker, e.g. -l<library>
1626   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1627               you have headers in a nonstandard directory <include dir>
1628   CXX         C++ compiler command
1629   CXXFLAGS    C++ compiler flags
1630   build_configargs
1631               additional configure arguments for build directories
1632   host_configargs
1633               additional configure arguments for host directories
1634   target_configargs
1635               additional configure arguments for target directories
1636   AR          AR for the host
1637   AS          AS for the host
1638   DLLTOOL     DLLTOOL for the host
1639   LD          LD for the host
1640   LIPO        LIPO for the host
1641   NM          NM for the host
1642   RANLIB      RANLIB for the host
1643   STRIP       STRIP for the host
1644   WINDRES     WINDRES for the host
1645   WINDMC      WINDMC for the host
1646   OBJCOPY     OBJCOPY for the host
1647   OBJDUMP     OBJDUMP for the host
1648   OTOOL       OTOOL for the host
1649   READELF     READELF for the host
1650   CC_FOR_TARGET
1651               CC for the target
1652   CXX_FOR_TARGET
1653               CXX for the target
1654   GCC_FOR_TARGET
1655               GCC for the target
1656   GFORTRAN_FOR_TARGET
1657               GFORTRAN for the target
1658   GOC_FOR_TARGET
1659               GOC for the target
1660   GDC_FOR_TARGET
1661               GDC for the target
1662   AR_FOR_TARGET
1663               AR for the target
1664   AS_FOR_TARGET
1665               AS for the target
1666   DLLTOOL_FOR_TARGET
1667               DLLTOOL for the target
1668   LD_FOR_TARGET
1669               LD for the target
1670   LIPO_FOR_TARGET
1671               LIPO for the target
1672   NM_FOR_TARGET
1673               NM for the target
1674   OBJCOPY_FOR_TARGET
1675               OBJCOPY for the target
1676   OBJDUMP_FOR_TARGET
1677               OBJDUMP for the target
1678   OTOOL_FOR_TARGET
1679               OTOOL for the target
1680   RANLIB_FOR_TARGET
1681               RANLIB for the target
1682   READELF_FOR_TARGET
1683               READELF for the target
1684   STRIP_FOR_TARGET
1685               STRIP for the target
1686   WINDRES_FOR_TARGET
1687               WINDRES for the target
1688   WINDMC_FOR_TARGET
1689               WINDMC for the target
1690
1691 Use these variables to override the choices made by `configure' or to help
1692 it to find libraries and programs with nonstandard names/locations.
1693
1694 Report bugs to the package provider.
1695 _ACEOF
1696 ac_status=$?
1697 fi
1698
1699 if test "$ac_init_help" = "recursive"; then
1700   # If there are subdirs, report their specific --help.
1701   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1702     test -d "$ac_dir" ||
1703       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1704       continue
1705     ac_builddir=.
1706
1707 case "$ac_dir" in
1708 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709 *)
1710   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1711   # A ".." for each directory in $ac_dir_suffix.
1712   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1713   case $ac_top_builddir_sub in
1714   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1716   esac ;;
1717 esac
1718 ac_abs_top_builddir=$ac_pwd
1719 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1720 # for backward compatibility:
1721 ac_top_builddir=$ac_top_build_prefix
1722
1723 case $srcdir in
1724   .)  # We are building in place.
1725     ac_srcdir=.
1726     ac_top_srcdir=$ac_top_builddir_sub
1727     ac_abs_top_srcdir=$ac_pwd ;;
1728   [\\/]* | ?:[\\/]* )  # Absolute name.
1729     ac_srcdir=$srcdir$ac_dir_suffix;
1730     ac_top_srcdir=$srcdir
1731     ac_abs_top_srcdir=$srcdir ;;
1732   *) # Relative name.
1733     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1734     ac_top_srcdir=$ac_top_build_prefix$srcdir
1735     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1736 esac
1737 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1738
1739     cd "$ac_dir" || { ac_status=$?; continue; }
1740     # Check for guested configure.
1741     if test -f "$ac_srcdir/configure.gnu"; then
1742       echo &&
1743       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1744     elif test -f "$ac_srcdir/configure"; then
1745       echo &&
1746       $SHELL "$ac_srcdir/configure" --help=recursive
1747     else
1748       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1749     fi || ac_status=$?
1750     cd "$ac_pwd" || { ac_status=$?; break; }
1751   done
1752 fi
1753
1754 test -n "$ac_init_help" && exit $ac_status
1755 if $ac_init_version; then
1756   cat <<\_ACEOF
1757 configure
1758 generated by GNU Autoconf 2.69
1759
1760 Copyright (C) 2012 Free Software Foundation, Inc.
1761 This configure script is free software; the Free Software Foundation
1762 gives unlimited permission to copy, distribute and modify it.
1763 _ACEOF
1764   exit
1765 fi
1766
1767 ## ------------------------ ##
1768 ## Autoconf initialization. ##
1769 ## ------------------------ ##
1770
1771 # ac_fn_c_try_compile LINENO
1772 # --------------------------
1773 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_compile ()
1775 {
1776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777   rm -f conftest.$ac_objext
1778   if { { ac_try="$ac_compile"
1779 case "(($ac_try" in
1780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781   *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785   (eval "$ac_compile") 2>conftest.err
1786   ac_status=$?
1787   if test -s conftest.err; then
1788     grep -v '^ *+' conftest.err >conftest.er1
1789     cat conftest.er1 >&5
1790     mv -f conftest.er1 conftest.err
1791   fi
1792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793   test $ac_status = 0; } && {
1794          test -z "$ac_c_werror_flag" ||
1795          test ! -s conftest.err
1796        } && test -s conftest.$ac_objext; then :
1797   ac_retval=0
1798 else
1799   $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1801
1802         ac_retval=1
1803 fi
1804   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805   as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_compile
1808
1809 # ac_fn_cxx_try_compile LINENO
1810 # ----------------------------
1811 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_cxx_try_compile ()
1813 {
1814   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815   rm -f conftest.$ac_objext
1816   if { { ac_try="$ac_compile"
1817 case "(($ac_try" in
1818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819   *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823   (eval "$ac_compile") 2>conftest.err
1824   ac_status=$?
1825   if test -s conftest.err; then
1826     grep -v '^ *+' conftest.err >conftest.er1
1827     cat conftest.er1 >&5
1828     mv -f conftest.er1 conftest.err
1829   fi
1830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831   test $ac_status = 0; } && {
1832          test -z "$ac_cxx_werror_flag" ||
1833          test ! -s conftest.err
1834        } && test -s conftest.$ac_objext; then :
1835   ac_retval=0
1836 else
1837   $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1839
1840         ac_retval=1
1841 fi
1842   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843   as_fn_set_status $ac_retval
1844
1845 } # ac_fn_cxx_try_compile
1846
1847 # ac_fn_cxx_try_link LINENO
1848 # -------------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_cxx_try_link ()
1851 {
1852   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853   rm -f conftest.$ac_objext conftest$ac_exeext
1854   if { { ac_try="$ac_link"
1855 case "(($ac_try" in
1856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857   *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861   (eval "$ac_link") 2>conftest.err
1862   ac_status=$?
1863   if test -s conftest.err; then
1864     grep -v '^ *+' conftest.err >conftest.er1
1865     cat conftest.er1 >&5
1866     mv -f conftest.er1 conftest.err
1867   fi
1868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869   test $ac_status = 0; } && {
1870          test -z "$ac_cxx_werror_flag" ||
1871          test ! -s conftest.err
1872        } && test -s conftest$ac_exeext && {
1873          test "$cross_compiling" = yes ||
1874          test -x conftest$ac_exeext
1875        }; then :
1876   ac_retval=0
1877 else
1878   $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881         ac_retval=1
1882 fi
1883   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1884   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1885   # interfere with the next link command; also delete a directory that is
1886   # left behind by Apple's compiler.  We do this before executing the actions.
1887   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889   as_fn_set_status $ac_retval
1890
1891 } # ac_fn_cxx_try_link
1892
1893 # ac_fn_c_try_link LINENO
1894 # -----------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_c_try_link ()
1897 {
1898   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899   rm -f conftest.$ac_objext conftest$ac_exeext
1900   if { { ac_try="$ac_link"
1901 case "(($ac_try" in
1902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903   *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907   (eval "$ac_link") 2>conftest.err
1908   ac_status=$?
1909   if test -s conftest.err; then
1910     grep -v '^ *+' conftest.err >conftest.er1
1911     cat conftest.er1 >&5
1912     mv -f conftest.er1 conftest.err
1913   fi
1914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915   test $ac_status = 0; } && {
1916          test -z "$ac_c_werror_flag" ||
1917          test ! -s conftest.err
1918        } && test -s conftest$ac_exeext && {
1919          test "$cross_compiling" = yes ||
1920          test -x conftest$ac_exeext
1921        }; then :
1922   ac_retval=0
1923 else
1924   $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1926
1927         ac_retval=1
1928 fi
1929   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931   # interfere with the next link command; also delete a directory that is
1932   # left behind by Apple's compiler.  We do this before executing the actions.
1933   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935   as_fn_set_status $ac_retval
1936
1937 } # ac_fn_c_try_link
1938 cat >config.log <<_ACEOF
1939 This file contains any messages produced by compilers while
1940 running configure, to aid debugging if configure makes a mistake.
1941
1942 It was created by $as_me, which was
1943 generated by GNU Autoconf 2.69.  Invocation command line was
1944
1945   $ $0 $@
1946
1947 _ACEOF
1948 exec 5>>config.log
1949 {
1950 cat <<_ASUNAME
1951 ## --------- ##
1952 ## Platform. ##
1953 ## --------- ##
1954
1955 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1956 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1957 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1958 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1959 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1960
1961 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1962 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1963
1964 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1965 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1966 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1967 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1968 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1969 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1970 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1971
1972 _ASUNAME
1973
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1976 do
1977   IFS=$as_save_IFS
1978   test -z "$as_dir" && as_dir=.
1979     $as_echo "PATH: $as_dir"
1980   done
1981 IFS=$as_save_IFS
1982
1983 } >&5
1984
1985 cat >&5 <<_ACEOF
1986
1987
1988 ## ----------- ##
1989 ## Core tests. ##
1990 ## ----------- ##
1991
1992 _ACEOF
1993
1994
1995 # Keep a trace of the command line.
1996 # Strip out --no-create and --no-recursion so they do not pile up.
1997 # Strip out --silent because we don't want to record it for future runs.
1998 # Also quote any args containing shell meta-characters.
1999 # Make two passes to allow for proper duplicate-argument suppression.
2000 ac_configure_args=
2001 ac_configure_args0=
2002 ac_configure_args1=
2003 ac_must_keep_next=false
2004 for ac_pass in 1 2
2005 do
2006   for ac_arg
2007   do
2008     case $ac_arg in
2009     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2010     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2011     | -silent | --silent | --silen | --sile | --sil)
2012       continue ;;
2013     *\'*)
2014       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2015     esac
2016     case $ac_pass in
2017     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2018     2)
2019       as_fn_append ac_configure_args1 " '$ac_arg'"
2020       if test $ac_must_keep_next = true; then
2021         ac_must_keep_next=false # Got value, back to normal.
2022       else
2023         case $ac_arg in
2024           *=* | --config-cache | -C | -disable-* | --disable-* \
2025           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2026           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2027           | -with-* | --with-* | -without-* | --without-* | --x)
2028             case "$ac_configure_args0 " in
2029               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2030             esac
2031             ;;
2032           -* ) ac_must_keep_next=true ;;
2033         esac
2034       fi
2035       as_fn_append ac_configure_args " '$ac_arg'"
2036       ;;
2037     esac
2038   done
2039 done
2040 { ac_configure_args0=; unset ac_configure_args0;}
2041 { ac_configure_args1=; unset ac_configure_args1;}
2042
2043 # When interrupted or exit'd, cleanup temporary files, and complete
2044 # config.log.  We remove comments because anyway the quotes in there
2045 # would cause problems or look ugly.
2046 # WARNING: Use '\'' to represent an apostrophe within the trap.
2047 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2048 trap 'exit_status=$?
2049   # Save into config.log some information that might help in debugging.
2050   {
2051     echo
2052
2053     $as_echo "## ---------------- ##
2054 ## Cache variables. ##
2055 ## ---------------- ##"
2056     echo
2057     # The following way of writing the cache mishandles newlines in values,
2058 (
2059   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2060     eval ac_val=\$$ac_var
2061     case $ac_val in #(
2062     *${as_nl}*)
2063       case $ac_var in #(
2064       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2065 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2066       esac
2067       case $ac_var in #(
2068       _ | IFS | as_nl) ;; #(
2069       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2070       *) { eval $ac_var=; unset $ac_var;} ;;
2071       esac ;;
2072     esac
2073   done
2074   (set) 2>&1 |
2075     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2076     *${as_nl}ac_space=\ *)
2077       sed -n \
2078         "s/'\''/'\''\\\\'\'''\''/g;
2079           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2080       ;; #(
2081     *)
2082       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2083       ;;
2084     esac |
2085     sort
2086 )
2087     echo
2088
2089     $as_echo "## ----------------- ##
2090 ## Output variables. ##
2091 ## ----------------- ##"
2092     echo
2093     for ac_var in $ac_subst_vars
2094     do
2095       eval ac_val=\$$ac_var
2096       case $ac_val in
2097       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098       esac
2099       $as_echo "$ac_var='\''$ac_val'\''"
2100     done | sort
2101     echo
2102
2103     if test -n "$ac_subst_files"; then
2104       $as_echo "## ------------------- ##
2105 ## File substitutions. ##
2106 ## ------------------- ##"
2107       echo
2108       for ac_var in $ac_subst_files
2109       do
2110         eval ac_val=\$$ac_var
2111         case $ac_val in
2112         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113         esac
2114         $as_echo "$ac_var='\''$ac_val'\''"
2115       done | sort
2116       echo
2117     fi
2118
2119     if test -s confdefs.h; then
2120       $as_echo "## ----------- ##
2121 ## confdefs.h. ##
2122 ## ----------- ##"
2123       echo
2124       cat confdefs.h
2125       echo
2126     fi
2127     test "$ac_signal" != 0 &&
2128       $as_echo "$as_me: caught signal $ac_signal"
2129     $as_echo "$as_me: exit $exit_status"
2130   } >&5
2131   rm -f core *.core core.conftest.* &&
2132     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2133     exit $exit_status
2134 ' 0
2135 for ac_signal in 1 2 13 15; do
2136   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2137 done
2138 ac_signal=0
2139
2140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2141 rm -f -r conftest* confdefs.h
2142
2143 $as_echo "/* confdefs.h */" > confdefs.h
2144
2145 # Predefined preprocessor variables.
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_NAME "$PACKAGE_NAME"
2149 _ACEOF
2150
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2153 _ACEOF
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2157 _ACEOF
2158
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_STRING "$PACKAGE_STRING"
2161 _ACEOF
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2165 _ACEOF
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_URL "$PACKAGE_URL"
2169 _ACEOF
2170
2171
2172 # Let the site file select an alternate cache file if it wants to.
2173 # Prefer an explicitly selected file to automatically selected ones.
2174 ac_site_file1=NONE
2175 ac_site_file2=NONE
2176 if test -n "$CONFIG_SITE"; then
2177   # We do not want a PATH search for config.site.
2178   case $CONFIG_SITE in #((
2179     -*)  ac_site_file1=./$CONFIG_SITE;;
2180     */*) ac_site_file1=$CONFIG_SITE;;
2181     *)   ac_site_file1=./$CONFIG_SITE;;
2182   esac
2183 elif test "x$prefix" != xNONE; then
2184   ac_site_file1=$prefix/share/config.site
2185   ac_site_file2=$prefix/etc/config.site
2186 else
2187   ac_site_file1=$ac_default_prefix/share/config.site
2188   ac_site_file2=$ac_default_prefix/etc/config.site
2189 fi
2190 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2191 do
2192   test "x$ac_site_file" = xNONE && continue
2193   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2194     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2195 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2196     sed 's/^/| /' "$ac_site_file" >&5
2197     . "$ac_site_file" \
2198       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2200 as_fn_error $? "failed to load site script $ac_site_file
2201 See \`config.log' for more details" "$LINENO" 5; }
2202   fi
2203 done
2204
2205 if test -r "$cache_file"; then
2206   # Some versions of bash will fail to source /dev/null (special files
2207   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2208   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2209     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2210 $as_echo "$as_me: loading cache $cache_file" >&6;}
2211     case $cache_file in
2212       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2213       *)                      . "./$cache_file";;
2214     esac
2215   fi
2216 else
2217   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2218 $as_echo "$as_me: creating cache $cache_file" >&6;}
2219   >$cache_file
2220 fi
2221
2222 # Check that the precious variables saved in the cache have kept the same
2223 # value.
2224 ac_cache_corrupted=false
2225 for ac_var in $ac_precious_vars; do
2226   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2227   eval ac_new_set=\$ac_env_${ac_var}_set
2228   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2229   eval ac_new_val=\$ac_env_${ac_var}_value
2230   case $ac_old_set,$ac_new_set in
2231     set,)
2232       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2233 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2234       ac_cache_corrupted=: ;;
2235     ,set)
2236       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2237 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2238       ac_cache_corrupted=: ;;
2239     ,);;
2240     *)
2241       if test "x$ac_old_val" != "x$ac_new_val"; then
2242         # differences in whitespace do not lead to failure.
2243         ac_old_val_w=`echo x $ac_old_val`
2244         ac_new_val_w=`echo x $ac_new_val`
2245         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2246           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2247 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2248           ac_cache_corrupted=:
2249         else
2250           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2251 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2252           eval $ac_var=\$ac_old_val
2253         fi
2254         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2255 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2256         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2257 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2258       fi;;
2259   esac
2260   # Pass precious variables to config.status.
2261   if test "$ac_new_set" = set; then
2262     case $ac_new_val in
2263     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2264     *) ac_arg=$ac_var=$ac_new_val ;;
2265     esac
2266     case " $ac_configure_args " in
2267       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2268       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2269     esac
2270   fi
2271 done
2272 if $ac_cache_corrupted; then
2273   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2275   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2276 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2277   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2278 fi
2279 ## -------------------- ##
2280 ## Main body of script. ##
2281 ## -------------------- ##
2282
2283 ac_ext=c
2284 ac_cpp='$CPP $CPPFLAGS'
2285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288
2289
2290
2291
2292
2293
2294
2295
2296 progname=$0
2297 # if PWD already has a value, it is probably wrong.
2298 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2299
2300 # Export original configure arguments for use by sub-configures.
2301 # Quote arguments with shell meta charatcers.
2302 TOPLEVEL_CONFIGURE_ARGUMENTS=
2303 set -- "$progname" "$@"
2304 for ac_arg
2305 do
2306   case "$ac_arg" in
2307   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2308     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2309     # if the argument is of the form -foo=baz, quote the baz part only
2310     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2311   *) ;;
2312   esac
2313   # Add the quoted argument to the list.
2314   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2315 done
2316 if test "$silent" = yes; then
2317   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2318 fi
2319 # Remove the initial space we just introduced and, as these will be
2320 # expanded by make, quote '$'.
2321 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2322
2323
2324 # Find the build, host, and target systems.
2325 ac_aux_dir=
2326 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2327   if test -f "$ac_dir/install-sh"; then
2328     ac_aux_dir=$ac_dir
2329     ac_install_sh="$ac_aux_dir/install-sh -c"
2330     break
2331   elif test -f "$ac_dir/install.sh"; then
2332     ac_aux_dir=$ac_dir
2333     ac_install_sh="$ac_aux_dir/install.sh -c"
2334     break
2335   elif test -f "$ac_dir/shtool"; then
2336     ac_aux_dir=$ac_dir
2337     ac_install_sh="$ac_aux_dir/shtool install -c"
2338     break
2339   fi
2340 done
2341 if test -z "$ac_aux_dir"; then
2342   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2343 fi
2344
2345 # These three variables are undocumented and unsupported,
2346 # and are intended to be withdrawn in a future Autoconf release.
2347 # They can cause serious problems if a builder's source tree is in a directory
2348 # whose full name contains unusual characters.
2349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2351 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2352
2353
2354 # Make sure we can run config.sub.
2355 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2356   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2357
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2359 $as_echo_n "checking build system type... " >&6; }
2360 if ${ac_cv_build+:} false; then :
2361   $as_echo_n "(cached) " >&6
2362 else
2363   ac_build_alias=$build_alias
2364 test "x$ac_build_alias" = x &&
2365   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2366 test "x$ac_build_alias" = x &&
2367   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2368 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2369   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2370
2371 fi
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2373 $as_echo "$ac_cv_build" >&6; }
2374 case $ac_cv_build in
2375 *-*-*) ;;
2376 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2377 esac
2378 build=$ac_cv_build
2379 ac_save_IFS=$IFS; IFS='-'
2380 set x $ac_cv_build
2381 shift
2382 build_cpu=$1
2383 build_vendor=$2
2384 shift; shift
2385 # Remember, the first character of IFS is used to create $*,
2386 # except with old shells:
2387 build_os=$*
2388 IFS=$ac_save_IFS
2389 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2390
2391
2392  case ${build_alias} in
2393   "") build_noncanonical=${build} ;;
2394   *) build_noncanonical=${build_alias} ;;
2395 esac
2396
2397
2398
2399  case ${host_alias} in
2400   "") host_noncanonical=${build_noncanonical} ;;
2401   *) host_noncanonical=${host_alias} ;;
2402 esac
2403
2404
2405
2406  case ${target_alias} in
2407   "") target_noncanonical=${host_noncanonical} ;;
2408   *) target_noncanonical=${target_alias} ;;
2409 esac
2410
2411
2412
2413
2414 test "$host_noncanonical" = "$target_noncanonical" &&
2415   test "$program_prefix$program_suffix$program_transform_name" = \
2416     NONENONEs,x,x, &&
2417   program_transform_name=s,y,y,
2418
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2420 $as_echo_n "checking host system type... " >&6; }
2421 if ${ac_cv_host+:} false; then :
2422   $as_echo_n "(cached) " >&6
2423 else
2424   if test "x$host_alias" = x; then
2425   ac_cv_host=$ac_cv_build
2426 else
2427   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2428     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2429 fi
2430
2431 fi
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2433 $as_echo "$ac_cv_host" >&6; }
2434 case $ac_cv_host in
2435 *-*-*) ;;
2436 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2437 esac
2438 host=$ac_cv_host
2439 ac_save_IFS=$IFS; IFS='-'
2440 set x $ac_cv_host
2441 shift
2442 host_cpu=$1
2443 host_vendor=$2
2444 shift; shift
2445 # Remember, the first character of IFS is used to create $*,
2446 # except with old shells:
2447 host_os=$*
2448 IFS=$ac_save_IFS
2449 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2450
2451
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2453 $as_echo_n "checking target system type... " >&6; }
2454 if ${ac_cv_target+:} false; then :
2455   $as_echo_n "(cached) " >&6
2456 else
2457   if test "x$target_alias" = x; then
2458   ac_cv_target=$ac_cv_host
2459 else
2460   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2461     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2462 fi
2463
2464 fi
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2466 $as_echo "$ac_cv_target" >&6; }
2467 case $ac_cv_target in
2468 *-*-*) ;;
2469 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2470 esac
2471 target=$ac_cv_target
2472 ac_save_IFS=$IFS; IFS='-'
2473 set x $ac_cv_target
2474 shift
2475 target_cpu=$1
2476 target_vendor=$2
2477 shift; shift
2478 # Remember, the first character of IFS is used to create $*,
2479 # except with old shells:
2480 target_os=$*
2481 IFS=$ac_save_IFS
2482 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2483
2484
2485 # The aliases save the names the user supplied, while $host etc.
2486 # will get canonicalized.
2487 test -n "$target_alias" &&
2488   test "$program_prefix$program_suffix$program_transform_name" = \
2489     NONENONEs,x,x, &&
2490   program_prefix=${target_alias}-
2491
2492 test "$program_prefix" != NONE &&
2493   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2494 # Use a double $ so make ignores it.
2495 test "$program_suffix" != NONE &&
2496   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2497 # Double any \ or $.
2498 # By default was `s,x,x', remove it if useless.
2499 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2500 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2501
2502
2503
2504 # Get 'install' or 'install-sh' and its variants.
2505 # Find a good install program.  We prefer a C program (faster),
2506 # so one script is as good as another.  But avoid the broken or
2507 # incompatible versions:
2508 # SysV /etc/install, /usr/sbin/install
2509 # SunOS /usr/etc/install
2510 # IRIX /sbin/install
2511 # AIX /bin/install
2512 # AmigaOS /C/install, which installs bootblocks on floppy discs
2513 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2514 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2515 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2516 # OS/2's system install, which has a completely different semantic
2517 # ./install, which can be erroneously created by make from ./install.sh.
2518 # Reject install programs that cannot install multiple files.
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2520 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2521 if test -z "$INSTALL"; then
2522 if ${ac_cv_path_install+:} false; then :
2523   $as_echo_n "(cached) " >&6
2524 else
2525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528   IFS=$as_save_IFS
2529   test -z "$as_dir" && as_dir=.
2530     # Account for people who put trailing slashes in PATH elements.
2531 case $as_dir/ in #((
2532   ./ | .// | /[cC]/* | \
2533   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2534   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2535   /usr/ucb/* ) ;;
2536   *)
2537     # OSF1 and SCO ODT 3.0 have their own names for install.
2538     # Don't use installbsd from OSF since it installs stuff as root
2539     # by default.
2540     for ac_prog in ginstall scoinst install; do
2541       for ac_exec_ext in '' $ac_executable_extensions; do
2542         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2543           if test $ac_prog = install &&
2544             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2545             # AIX install.  It has an incompatible calling convention.
2546             :
2547           elif test $ac_prog = install &&
2548             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2549             # program-specific install script used by HP pwplus--don't use.
2550             :
2551           else
2552             rm -rf conftest.one conftest.two conftest.dir
2553             echo one > conftest.one
2554             echo two > conftest.two
2555             mkdir conftest.dir
2556             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2557               test -s conftest.one && test -s conftest.two &&
2558               test -s conftest.dir/conftest.one &&
2559               test -s conftest.dir/conftest.two
2560             then
2561               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2562               break 3
2563             fi
2564           fi
2565         fi
2566       done
2567     done
2568     ;;
2569 esac
2570
2571   done
2572 IFS=$as_save_IFS
2573
2574 rm -rf conftest.one conftest.two conftest.dir
2575
2576 fi
2577   if test "${ac_cv_path_install+set}" = set; then
2578     INSTALL=$ac_cv_path_install
2579   else
2580     # As a last resort, use the slow shell script.  Don't cache a
2581     # value for INSTALL within a source directory, because that will
2582     # break other packages using the cache if that directory is
2583     # removed, or if the value is a relative name.
2584     INSTALL=$ac_install_sh
2585   fi
2586 fi
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2588 $as_echo "$INSTALL" >&6; }
2589
2590 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2591 # It thinks the first close brace ends the variable substitution.
2592 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2593
2594 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2595
2596 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2597
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2599 $as_echo_n "checking whether ln works... " >&6; }
2600 if ${acx_cv_prog_LN+:} false; then :
2601   $as_echo_n "(cached) " >&6
2602 else
2603   rm -f conftestdata_t
2604 echo >conftestdata_f
2605 if ln conftestdata_f conftestdata_t 2>/dev/null
2606 then
2607   acx_cv_prog_LN=ln
2608 else
2609   acx_cv_prog_LN=no
2610 fi
2611 rm -f conftestdata_f conftestdata_t
2612
2613 fi
2614 if test $acx_cv_prog_LN = no; then
2615   LN="cp"
2616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2617 $as_echo "no, using $LN" >&6; }
2618 else
2619   LN="$acx_cv_prog_LN"
2620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2621 $as_echo "yes" >&6; }
2622 fi
2623
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2625 $as_echo_n "checking whether ln -s works... " >&6; }
2626 LN_S=$as_ln_s
2627 if test "$LN_S" = "ln -s"; then
2628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2629 $as_echo "yes" >&6; }
2630 else
2631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2632 $as_echo "no, using $LN_S" >&6; }
2633 fi
2634
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2636 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2637 if ${ac_cv_path_SED+:} false; then :
2638   $as_echo_n "(cached) " >&6
2639 else
2640             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2641      for ac_i in 1 2 3 4 5 6 7; do
2642        ac_script="$ac_script$as_nl$ac_script"
2643      done
2644      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2645      { ac_script=; unset ac_script;}
2646      if test -z "$SED"; then
2647   ac_path_SED_found=false
2648   # Loop through the user's path and test for each of PROGNAME-LIST
2649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652   IFS=$as_save_IFS
2653   test -z "$as_dir" && as_dir=.
2654     for ac_prog in sed gsed; do
2655     for ac_exec_ext in '' $ac_executable_extensions; do
2656       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2657       as_fn_executable_p "$ac_path_SED" || continue
2658 # Check for GNU ac_path_SED and select it if it is found.
2659   # Check for GNU $ac_path_SED
2660 case `"$ac_path_SED" --version 2>&1` in
2661 *GNU*)
2662   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2663 *)
2664   ac_count=0
2665   $as_echo_n 0123456789 >"conftest.in"
2666   while :
2667   do
2668     cat "conftest.in" "conftest.in" >"conftest.tmp"
2669     mv "conftest.tmp" "conftest.in"
2670     cp "conftest.in" "conftest.nl"
2671     $as_echo '' >> "conftest.nl"
2672     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2673     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2674     as_fn_arith $ac_count + 1 && ac_count=$as_val
2675     if test $ac_count -gt ${ac_path_SED_max-0}; then
2676       # Best one so far, save it but keep looking for a better one
2677       ac_cv_path_SED="$ac_path_SED"
2678       ac_path_SED_max=$ac_count
2679     fi
2680     # 10*(2^10) chars as input seems more than enough
2681     test $ac_count -gt 10 && break
2682   done
2683   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2684 esac
2685
2686       $ac_path_SED_found && break 3
2687     done
2688   done
2689   done
2690 IFS=$as_save_IFS
2691   if test -z "$ac_cv_path_SED"; then
2692     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2693   fi
2694 else
2695   ac_cv_path_SED=$SED
2696 fi
2697
2698 fi
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2700 $as_echo "$ac_cv_path_SED" >&6; }
2701  SED="$ac_cv_path_SED"
2702   rm -f conftest.sed
2703
2704 for ac_prog in gawk mawk nawk awk
2705 do
2706   # Extract the first word of "$ac_prog", so it can be a program name with args.
2707 set dummy $ac_prog; ac_word=$2
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709 $as_echo_n "checking for $ac_word... " >&6; }
2710 if ${ac_cv_prog_AWK+:} false; then :
2711   $as_echo_n "(cached) " >&6
2712 else
2713   if test -n "$AWK"; then
2714   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2715 else
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2718 do
2719   IFS=$as_save_IFS
2720   test -z "$as_dir" && as_dir=.
2721     for ac_exec_ext in '' $ac_executable_extensions; do
2722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2723     ac_cv_prog_AWK="$ac_prog"
2724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725     break 2
2726   fi
2727 done
2728   done
2729 IFS=$as_save_IFS
2730
2731 fi
2732 fi
2733 AWK=$ac_cv_prog_AWK
2734 if test -n "$AWK"; then
2735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2736 $as_echo "$AWK" >&6; }
2737 else
2738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739 $as_echo "no" >&6; }
2740 fi
2741
2742
2743   test -n "$AWK" && break
2744 done
2745
2746
2747 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2748
2749 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2750 # a relative path.
2751 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2752   INSTALL="${srcpwd}/install-sh -c"
2753 fi
2754
2755 # Set srcdir to "." if that's what it is.
2756 # This is important for multilib support.
2757 pwd=`${PWDCMD-pwd}`
2758 if test "${pwd}" = "${srcpwd}" ; then
2759   srcdir=.
2760 fi
2761
2762 topsrcdir=$srcpwd
2763
2764 extra_host_args=
2765
2766 ### To add a new directory to the tree, first choose whether it is a target
2767 ### or a host dependent tool.  Then put it into the appropriate list
2768 ### (library or tools, host or target), doing a dependency sort.
2769
2770 # Subdirs will be configured in the order listed in build_configdirs,
2771 # configdirs, or target_configdirs; see the serialization section below.
2772
2773 # Dependency sorting is only needed when *configuration* must be done in
2774 # a particular order.  In all cases a dependency should be specified in
2775 # the Makefile, whether or not it's implicitly specified here.
2776
2777 # Double entries in build_configdirs, configdirs, or target_configdirs may
2778 # cause circular dependencies and break everything horribly.
2779
2780 # these library is used by various programs built for the build
2781 # environment
2782 #
2783 build_libs="build-libiberty build-libcpp"
2784
2785 # these tools are built for the build environment
2786 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2787
2788 # these libraries are used by various programs built for the host environment
2789 #f
2790 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2791
2792 # these tools are built for the host environment
2793 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2794 # know that we are building the simulator.
2795 # binutils, gas and ld appear in that order because it makes sense to run
2796 # "make check" in that particular order.
2797 # If --enable-gold is used, "gold" may replace "ld".
2798 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"
2799
2800 # these libraries are built for the target environment, and are built after
2801 # the host libraries and the host tools (which may be a cross compiler)
2802 # Note that libiberty is not a target library.
2803 target_libraries="target-libgcc \
2804                 target-libbacktrace \
2805                 target-libgloss \
2806                 target-newlib \
2807                 target-libgomp \
2808                 target-liboffloadmic \
2809                 target-libhsail-rt \
2810                 target-libatomic \
2811                 target-libitm \
2812                 target-libstdc++-v3 \
2813                 target-libsanitizer \
2814                 target-libvtv \
2815                 target-libssp \
2816                 target-libquadmath \
2817                 target-libgfortran \
2818                 target-libffi \
2819                 target-libobjc \
2820                 target-libada \
2821                 target-libgo \
2822                 target-libphobos \
2823                 target-zlib"
2824
2825 # these tools are built using the target libraries, and are intended to
2826 # run only in the target environment
2827 #
2828 # note: any program that *uses* libraries that are in the "target_libraries"
2829 # list belongs in this list.
2830 #
2831 target_tools="target-rda"
2832
2833 ################################################################################
2834
2835 ## All tools belong in one of the four categories, and are assigned above
2836 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2837 ## is important because configure will choke if they ever get through.
2838 ## ${configdirs} is directories we build using the host tools.
2839 ## ${target_configdirs} is directories we build using the target tools.
2840 configdirs=`echo ${host_libs} ${host_tools}`
2841 target_configdirs=`echo ${target_libraries} ${target_tools}`
2842 build_configdirs=`echo ${build_libs} ${build_tools}`
2843
2844
2845
2846 ################################################################################
2847
2848 srcname="gnu development package"
2849
2850 # This gets set non-empty for some net releases of packages.
2851 appdirs=""
2852
2853 # Define is_cross_compiler to save on calls to 'test'.
2854 is_cross_compiler=
2855 if test x"${host}" = x"${target}" ; then
2856   is_cross_compiler=no
2857 else
2858   is_cross_compiler=yes
2859 fi
2860
2861 # Find the build and target subdir names.
2862
2863 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2864 # have matching libraries, they should use host libraries: Makefile.tpl
2865 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2866 # However, they still use the build modules, because the corresponding
2867 # host modules (e.g. bison) are only built for the host when bootstrap
2868 # finishes. So:
2869 # - build_subdir is where we find build modules, and never changes.
2870 # - build_libsubdir is where we find build libraries, and can be overridden.
2871
2872 # Prefix 'build-' so this never conflicts with target_subdir.
2873 build_subdir="build-${build_noncanonical}"
2874
2875 # Check whether --with-build-libsubdir was given.
2876 if test "${with_build_libsubdir+set}" = set; then :
2877   withval=$with_build_libsubdir; build_libsubdir="$withval"
2878 else
2879   build_libsubdir="$build_subdir"
2880 fi
2881
2882 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2883 if ( test $srcdir = . && test -d gcc ) \
2884    || test -d $srcdir/../host-${host_noncanonical}; then
2885   host_subdir="host-${host_noncanonical}"
2886 else
2887   host_subdir=.
2888 fi
2889 # No prefix.
2890 target_subdir=${target_noncanonical}
2891
2892 # Be sure to cover against remnants of an in-tree build.
2893 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2894   as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2895 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2896 fi
2897
2898 # Skipdirs are removed silently.
2899 skipdirs=
2900 # Noconfigdirs are removed loudly.
2901 noconfigdirs=""
2902
2903 use_gnu_ld=
2904 # Make sure we don't let GNU ld be added if we didn't want it.
2905 if test x$with_gnu_ld = xno ; then
2906   use_gnu_ld=no
2907   noconfigdirs="$noconfigdirs ld gold"
2908 fi
2909
2910 use_gnu_as=
2911 # Make sure we don't let GNU as be added if we didn't want it.
2912 if test x$with_gnu_as = xno ; then
2913   use_gnu_as=no
2914   noconfigdirs="$noconfigdirs gas"
2915 fi
2916
2917 use_included_zlib=
2918
2919 # Check whether --with-system-zlib was given.
2920 if test "${with_system_zlib+set}" = set; then :
2921   withval=$with_system_zlib;
2922 fi
2923
2924 # Make sure we don't let ZLIB be added if we didn't want it.
2925 if test x$with_system_zlib = xyes ; then
2926   use_included_zlib=no
2927   noconfigdirs="$noconfigdirs zlib"
2928 fi
2929
2930 # some tools are so dependent upon X11 that if we're not building with X,
2931 # it's not even worth trying to configure, much less build, that tool.
2932
2933 case ${with_x} in
2934   yes | "") ;; # the default value for this tree is that X11 is available
2935   no)
2936     skipdirs="${skipdirs} tk itcl libgui"
2937     # We won't be able to build gdbtk without X.
2938     enable_gdbtk=no
2939     ;;
2940   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2941 esac
2942
2943 # Some are only suitable for cross toolchains.
2944 # Remove these if host=target.
2945 cross_only="target-libgloss target-newlib target-opcodes"
2946
2947 case $is_cross_compiler in
2948   no) skipdirs="${skipdirs} ${cross_only}" ;;
2949 esac
2950
2951 # If both --with-headers and --with-libs are specified, default to
2952 # --without-newlib.
2953 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2954    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2955   if test x"${with_newlib}" = x ; then
2956     with_newlib=no
2957   fi
2958 fi
2959
2960 # Recognize --with-newlib/--without-newlib.
2961 case ${with_newlib} in
2962   no) skipdirs="${skipdirs} target-newlib" ;;
2963   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2964 esac
2965
2966 # Check whether --enable-as-accelerator-for was given.
2967 if test "${enable_as_accelerator_for+set}" = set; then :
2968   enableval=$enable_as_accelerator_for;
2969 fi
2970
2971
2972 # Check whether --enable-offload-targets was given.
2973 if test "${enable_offload_targets+set}" = set; then :
2974   enableval=$enable_offload_targets;
2975   if test x"$enable_offload_targets" = x; then
2976     as_fn_error $? "no offload targets specified" "$LINENO" 5
2977   fi
2978
2979 else
2980   enable_offload_targets=
2981 fi
2982
2983
2984 # Handle --enable-gold, --enable-ld.
2985 # --disable-gold [--enable-ld]
2986 #     Build only ld.  Default option.
2987 # --enable-gold [--enable-ld]
2988 #     Build both gold and ld.  Install gold as "ld.gold", install ld
2989 #     as "ld.bfd" and "ld".
2990 # --enable-gold=default [--enable-ld]
2991 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2992 #     install ld as "ld.bfd".
2993 # --enable-gold[=default] --disable-ld
2994 #     Build only gold, which is then installed as both "ld.gold" and "ld".
2995 # --enable-gold --enable-ld=default
2996 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2997 #     and ld.bfd).
2998 #     In other words, ld is default
2999 # --enable-gold=default --enable-ld=default
3000 #     Error.
3001
3002 default_ld=
3003 # Check whether --enable-gold was given.
3004 if test "${enable_gold+set}" = set; then :
3005   enableval=$enable_gold; ENABLE_GOLD=$enableval
3006 else
3007   ENABLE_GOLD=no
3008 fi
3009
3010 case "${ENABLE_GOLD}" in
3011   yes|default)
3012     # Check for ELF target.
3013     is_elf=no
3014     case "${target}" in
3015       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3016       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3017       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3018       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3019         case "${target}" in
3020           *-*-linux*aout* | *-*-linux*oldld*)
3021             ;;
3022           *)
3023             is_elf=yes
3024             ;;
3025         esac
3026     esac
3027
3028     if test "$is_elf" = "yes"; then
3029       # Check for target supported by gold.
3030       case "${target}" in
3031         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3032         | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3033           configdirs="$configdirs gold"
3034           if test x${ENABLE_GOLD} = xdefault; then
3035             default_ld=gold
3036           fi
3037           ENABLE_GOLD=yes
3038           ;;
3039       esac
3040     fi
3041     ;;
3042   no)
3043     ;;
3044   *)
3045     as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3046     ;;
3047 esac
3048
3049 # Check whether --enable-ld was given.
3050 if test "${enable_ld+set}" = set; then :
3051   enableval=$enable_ld; ENABLE_LD=$enableval
3052 else
3053   ENABLE_LD=yes
3054 fi
3055
3056
3057 case "${ENABLE_LD}" in
3058   default)
3059     if test x${default_ld} != x; then
3060       as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3061     fi
3062     ;;
3063   yes)
3064     ;;
3065   no)
3066     if test x${ENABLE_GOLD} != xyes; then
3067       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3068 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3069     fi
3070     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3071     ;;
3072   *)
3073     as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3074     ;;
3075 esac
3076
3077 # PR gas/19109
3078 # Decide the default method for compressing debug sections.
3079 # Provide a configure time option to override our default.
3080 # Check whether --enable-compressed_debug_sections was given.
3081 if test "${enable_compressed_debug_sections+set}" = set; then :
3082   enableval=$enable_compressed_debug_sections;
3083   if test x"$enable_compressed_debug_sections" = xyes; then
3084     as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3085   fi
3086
3087 else
3088   enable_compressed_debug_sections=
3089 fi
3090
3091
3092 # Configure extra directories which are host specific
3093
3094 case "${host}" in
3095   *-cygwin*)
3096     configdirs="$configdirs libtermcap" ;;
3097 esac
3098
3099 # A target can indicate whether a language isn't supported for some reason.
3100 # Only spaces may be used in this macro; not newlines or tabs.
3101 unsupported_languages=
3102
3103 # Remove more programs from consideration, based on the host or
3104 # target this usually means that a port of the program doesn't
3105 # exist yet.
3106
3107 case "${host}" in
3108   i[3456789]86-*-msdosdjgpp*)
3109     noconfigdirs="$noconfigdirs tcl tk itcl"
3110     ;;
3111 esac
3112
3113
3114 # Check whether --enable-libquadmath was given.
3115 if test "${enable_libquadmath+set}" = set; then :
3116   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3117 else
3118   ENABLE_LIBQUADMATH=yes
3119 fi
3120
3121 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3122   noconfigdirs="$noconfigdirs target-libquadmath"
3123 fi
3124
3125
3126 # Check whether --enable-libquadmath-support was given.
3127 if test "${enable_libquadmath_support+set}" = set; then :
3128   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3129 else
3130   ENABLE_LIBQUADMATH_SUPPORT=yes
3131 fi
3132
3133 enable_libquadmath_support=
3134 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3135   enable_libquadmath_support=no
3136 fi
3137
3138
3139 # Check whether --enable-libada was given.
3140 if test "${enable_libada+set}" = set; then :
3141   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3142 else
3143   ENABLE_LIBADA=yes
3144 fi
3145
3146 if test "${ENABLE_LIBADA}" != "yes" ; then
3147   noconfigdirs="$noconfigdirs gnattools"
3148 fi
3149
3150 # Check whether --enable-libssp was given.
3151 if test "${enable_libssp+set}" = set; then :
3152   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3153 else
3154   ENABLE_LIBSSP=yes
3155 fi
3156
3157
3158 # Check whether --enable-libstdcxx was given.
3159 if test "${enable_libstdcxx+set}" = set; then :
3160   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3161 else
3162   ENABLE_LIBSTDCXX=default
3163 fi
3164
3165 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3166   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3167 fi
3168
3169 # If this is accelerator compiler and its target is intelmic we enable
3170 # target liboffloadmic by default.  If this is compiler with offloading
3171 # for intelmic we enable host liboffloadmic by default.  Otherwise
3172 # liboffloadmic is disabled by default.
3173 # Check whether --enable-liboffloadmic was given.
3174 if test "${enable_liboffloadmic+set}" = set; then :
3175   enableval=$enable_liboffloadmic; case "$enableval" in
3176   no | host | target)
3177     enable_liboffloadmic=$enableval ;;
3178   *)
3179     as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3180 esac
3181 else
3182   if test x"$enable_as_accelerator_for" != x; then
3183   case "${target}" in
3184     *-intelmic-* | *-intelmicemul-*)
3185       enable_liboffloadmic=target
3186       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3187       ;;
3188     *)
3189       enable_liboffloadmic=no
3190       ;;
3191   esac
3192 else
3193   case "${enable_offload_targets}" in
3194     *-intelmic-* | *-intelmicemul-*)
3195       enable_liboffloadmic=host
3196       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3197       ;;
3198     *)
3199       enable_liboffloadmic=no
3200       ;;
3201     esac
3202 fi
3203 fi
3204
3205
3206
3207 # Enable libgomp by default on hosted POSIX systems, and a few others.
3208 if test x$enable_libgomp = x ; then
3209     case "${target}" in
3210     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3211         ;;
3212     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3213         ;;
3214     *-*-solaris2* | *-*-hpux11*)
3215         ;;
3216     *-*-darwin* | *-*-aix*)
3217         ;;
3218     nvptx*-*-* | amdgcn*-*-*)
3219         ;;
3220     *)
3221         noconfigdirs="$noconfigdirs target-libgomp"
3222         ;;
3223     esac
3224 fi
3225
3226 # Disable libatomic on unsupported systems.
3227 if test -d ${srcdir}/libatomic; then
3228     if test x$enable_libatomic = x; then
3229         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3230 $as_echo_n "checking for libatomic support... " >&6; }
3231         if (srcdir=${srcdir}/libatomic; \
3232                 . ${srcdir}/configure.tgt; \
3233                 test -n "$UNSUPPORTED")
3234         then
3235             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237             noconfigdirs="$noconfigdirs target-libatomic"
3238         else
3239             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240 $as_echo "yes" >&6; }
3241         fi
3242     fi
3243 fi
3244
3245 # Disable liboffloadmic on unsupported systems.
3246 if test -d ${srcdir}/liboffloadmic; then
3247     if test x$enable_liboffloadmic != xno; then
3248         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3249 $as_echo_n "checking for liboffloadmic support... " >&6; }
3250         if (srcdir=${srcdir}/liboffloadmic; \
3251                 . ${srcdir}/configure.tgt; \
3252                 test -n "$UNSUPPORTED")
3253         then
3254             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256             noconfigdirs="$noconfigdirs target-liboffloadmic"
3257         else
3258             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259 $as_echo "yes" >&6; }
3260         fi
3261     fi
3262 fi
3263
3264 # Disable libitm on unsupported systems.
3265 if test -d ${srcdir}/libitm; then
3266     if test x$enable_libitm = x; then
3267         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3268 $as_echo_n "checking for libitm support... " >&6; }
3269         if (srcdir=${srcdir}/libitm; \
3270                 . ${srcdir}/configure.tgt; \
3271                 test -n "$UNSUPPORTED")
3272         then
3273             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275             noconfigdirs="$noconfigdirs target-libitm"
3276         else
3277             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3278 $as_echo "yes" >&6; }
3279         fi
3280     fi
3281 fi
3282
3283 # Disable libsanitizer on unsupported systems.
3284 if test -d ${srcdir}/libsanitizer; then
3285     if test x$enable_libsanitizer = x; then
3286         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3287 $as_echo_n "checking for libsanitizer support... " >&6; }
3288         if (srcdir=${srcdir}/libsanitizer; \
3289                 . ${srcdir}/configure.tgt; \
3290                 test -n "$UNSUPPORTED")
3291         then
3292             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294             noconfigdirs="$noconfigdirs target-libsanitizer"
3295         else
3296             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3298         fi
3299     fi
3300 fi
3301
3302 # Disable libvtv on unsupported systems.
3303 if test -d ${srcdir}/libvtv; then
3304     if test x$enable_libvtv = x; then
3305         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3306 $as_echo_n "checking for libvtv support... " >&6; }
3307         if (srcdir=${srcdir}/libvtv; \
3308                 . ${srcdir}/configure.tgt; \
3309                 test "$VTV_SUPPORTED" != "yes")
3310         then
3311             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313             noconfigdirs="$noconfigdirs target-libvtv"
3314         else
3315             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3317         fi
3318     fi
3319 fi
3320
3321
3322 # Disable libhsail-rt on unsupported systems.
3323 if test -d ${srcdir}/libhsail-rt; then
3324     if test x$enable_libhsail_rt = x; then
3325         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3326 $as_echo_n "checking for libhsail-rt support... " >&6; }
3327         if (srcdir=${srcdir}/libhsail-rt; \
3328                 . ${srcdir}/configure.tgt; \
3329                 test -n "$UNSUPPORTED")
3330         then
3331             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333             unsupported_languages="$unsupported_languages brig"
3334             # This implicitly disables also target-libhsail-rt as it won't
3335             # get added to the build without BRIG FE.
3336         else
3337             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3338 $as_echo "yes" >&6; }
3339         fi
3340     fi
3341 fi
3342
3343
3344 # Disable libquadmath for some systems.
3345 case "${target}" in
3346   avr-*-*)
3347     noconfigdirs="$noconfigdirs target-libquadmath"
3348     ;;
3349   # libquadmath is unused on AIX and libquadmath build process use of
3350   # LD_LIBRARY_PATH can break AIX bootstrap.
3351   powerpc-*-aix* | rs6000-*-aix*)
3352     noconfigdirs="$noconfigdirs target-libquadmath"
3353     ;;
3354 esac
3355
3356 # Disable libssp for some systems.
3357 case "${target}" in
3358   avr-*-*)
3359     # No hosted I/O support.
3360     noconfigdirs="$noconfigdirs target-libssp"
3361     ;;
3362   bpf-*-*)
3363     noconfigdirs="$noconfigdirs target-libssp"
3364     ;;
3365   powerpc-*-aix* | rs6000-*-aix*)
3366     noconfigdirs="$noconfigdirs target-libssp"
3367     ;;
3368   pru-*-*)
3369     # No hosted I/O support.
3370     noconfigdirs="$noconfigdirs target-libssp"
3371     ;;
3372   rl78-*-*)
3373     # libssp uses a misaligned load to trigger a fault, but the RL78
3374     # doesn't fault for those - instead, it gives a build-time error
3375     # for explicit misaligned loads.
3376     noconfigdirs="$noconfigdirs target-libssp"
3377     ;;
3378   visium-*-*)
3379     # No hosted I/O support.
3380     noconfigdirs="$noconfigdirs target-libssp"
3381     ;;
3382 esac
3383
3384 # Disable libstdc++-v3 for some systems.
3385 # Allow user to override this if they pass --enable-libstdc++-v3
3386 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3387   case "${target}" in
3388     *-*-vxworks*)
3389       # VxWorks uses the Dinkumware C++ library.
3390       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3391       ;;
3392     amdgcn*-*-*)
3393       # Not ported/fails to build when using newlib.
3394       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3395       ;;
3396     arm*-wince-pe*)
3397       # the C++ libraries don't build on top of CE's C libraries
3398       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3399       ;;
3400     avr-*-*)
3401       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3402       ;;
3403     bpf-*-*)
3404       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3405       ;;
3406     ft32-*-*)
3407       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3408       ;;
3409   esac
3410 fi
3411
3412 # Disable C++ on systems where it is known to not work.
3413 # For testing, you can override this with --enable-languages=c++.
3414 case ,${enable_languages}, in
3415   *,c++,*)
3416     ;;
3417   *)
3418       case "${target}" in
3419         bpf-*-*)
3420           unsupported_languages="$unsupported_languages c++"
3421           ;;
3422       esac
3423       ;;
3424 esac
3425
3426 # Disable Objc on systems where it is known to not work.
3427 # For testing, you can override this with --enable-languages=objc.
3428 case ,${enable_languages}, in
3429   *,objc,*)
3430     ;;
3431   *)
3432       case "${target}" in
3433         bpf-*-*)
3434           unsupported_languages="$unsupported_languages objc"
3435           ;;
3436       esac
3437       ;;
3438 esac
3439
3440 # Disable D on systems where it is known to not work.
3441 # For testing, you can override this with --enable-languages=d.
3442 case ,${enable_languages}, in
3443   *,d,*)
3444     ;;
3445   *)
3446     case "${target}" in
3447       bpf-*-*)
3448         unsupported_languages="$unsupported_languages d"
3449         ;;
3450     esac
3451     ;;
3452 esac
3453
3454 # Disable libphobos on unsupported systems.
3455 # For testing, you can override this with --enable-libphobos.
3456 if test -d ${srcdir}/libphobos; then
3457     if test x$enable_libphobos = x; then
3458         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3459 $as_echo_n "checking for libphobos support... " >&6; }
3460         if (srcdir=${srcdir}/libphobos; \
3461                 . ${srcdir}/configure.tgt; \
3462                 test "$LIBPHOBOS_SUPPORTED" != "yes")
3463         then
3464             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3466             noconfigdirs="$noconfigdirs target-libphobos"
3467         else
3468             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3469 $as_echo "yes" >&6; }
3470         fi
3471     fi
3472 fi
3473
3474 # Disable Fortran for some systems.
3475 case "${target}" in
3476   mmix-*-*)
3477     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3478     unsupported_languages="$unsupported_languages fortran"
3479     ;;
3480   bpf-*-*)
3481     unsupported_languages="$unsupported_languages fortran"
3482     ;;
3483 esac
3484
3485 # Disable libffi for some systems.
3486 case "${target}" in
3487   powerpc-*-darwin*)
3488     ;;
3489   i[3456789]86-*-darwin*)
3490     ;;
3491   x86_64-*-darwin[912]*)
3492     ;;
3493   *-*-darwin*)
3494     noconfigdirs="$noconfigdirs target-libffi"
3495     ;;
3496   *-*-netware*)
3497     noconfigdirs="$noconfigdirs target-libffi"
3498     ;;
3499   *-*-phoenix*)
3500     noconfigdirs="$noconfigdirs target-libffi"
3501     ;;
3502   *-*-rtems*)
3503     noconfigdirs="$noconfigdirs target-libffi"
3504     ;;
3505   *-*-tpf*)
3506     noconfigdirs="$noconfigdirs target-libffi"
3507     ;;
3508   *-*-uclinux*)
3509     noconfigdirs="$noconfigdirs target-libffi"
3510     ;;
3511   *-*-vxworks*)
3512     noconfigdirs="$noconfigdirs target-libffi"
3513     ;;
3514   aarch64*-*-freebsd*)
3515     noconfigdirs="$noconfigdirs target-libffi"
3516     ;;
3517   alpha*-*-*vms*)
3518     noconfigdirs="$noconfigdirs target-libffi"
3519     ;;
3520   arm*-*-freebsd*)
3521     noconfigdirs="$noconfigdirs target-libffi"
3522     ;;
3523   arm-wince-pe)
3524     noconfigdirs="$noconfigdirs target-libffi"
3525     ;;
3526   arm*-*-symbianelf*)
3527     noconfigdirs="$noconfigdirs target-libffi"
3528     ;;
3529   bpf-*-*)
3530     noconfigdirs="$noconfigdirs target-libffi"
3531     ;;
3532   cris-*-* | crisv32-*-*)
3533     case "${target}" in
3534       *-*-linux*)
3535         ;;
3536       *) # See PR46792 regarding target-libffi.
3537         noconfigdirs="$noconfigdirs target-libffi";;
3538     esac
3539     ;;
3540   hppa*64*-*-hpux*)
3541     noconfigdirs="$noconfigdirs target-libffi"
3542     ;;
3543   hppa*-hp-hpux11*)
3544     ;;
3545   hppa*-*-hpux*)
3546     noconfigdirs="$noconfigdirs target-libffi"
3547     ;;
3548   ia64*-*-*vms*)
3549     noconfigdirs="$noconfigdirs target-libffi"
3550     ;;
3551   i[3456789]86-w64-mingw*)
3552     noconfigdirs="$noconfigdirs target-libffi"
3553     ;;
3554   i[3456789]86-*-mingw*)
3555     noconfigdirs="$noconfigdirs target-libffi"
3556     ;;
3557   x86_64-*-mingw*)
3558     noconfigdirs="$noconfigdirs target-libffi"
3559     ;;
3560   mmix-*-*)
3561     noconfigdirs="$noconfigdirs target-libffi"
3562     ;;
3563   powerpc-*-aix*)
3564     ;;
3565   rs6000-*-aix*)
3566     ;;
3567   ft32-*-*)
3568     noconfigdirs="$noconfigdirs target-libffi"
3569     ;;
3570   *-*-lynxos*)
3571     noconfigdirs="$noconfigdirs target-libffi"
3572     ;;
3573 esac
3574
3575 # Disable the go frontend on systems where it is known to not work. Please keep
3576 # this in sync with contrib/config-list.mk.
3577 case "${target}" in
3578 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3579     unsupported_languages="$unsupported_languages go"
3580     ;;
3581 esac
3582
3583 # Only allow gdbserver on some systems.
3584 if test -d ${srcdir}/gdbserver; then
3585     if test x$enable_gdbserver = x; then
3586         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3587 $as_echo_n "checking for gdbserver support... " >&6; }
3588         if (srcdir=${srcdir}/gdbserver; \
3589                 . ${srcdir}/configure.srv; \
3590                 test -n "$UNSUPPORTED")
3591         then
3592             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3594             noconfigdirs="$noconfigdirs gdbserver"
3595         else
3596             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3597 $as_echo "yes" >&6; }
3598         fi
3599     fi
3600 fi
3601
3602 # Disable libgo for some systems where it is known to not work.
3603 # For testing, you can easily override this with --enable-libgo.
3604 if test x$enable_libgo = x; then
3605     case "${target}" in
3606     *-*-darwin*)
3607         # PR 46986
3608         noconfigdirs="$noconfigdirs target-libgo"
3609         ;;
3610     *-*-cygwin* | *-*-mingw*)
3611         noconfigdirs="$noconfigdirs target-libgo"
3612         ;;
3613     bpf-*-*)
3614         noconfigdirs="$noconfigdirs target-libgo"
3615         ;;
3616     esac
3617 fi
3618
3619 # Default libgloss CPU subdirectory.
3620 libgloss_dir="$target_cpu"
3621
3622 case "${target}" in
3623   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3624     libgloss_dir=wince
3625     ;;
3626   aarch64*-*-* )
3627     libgloss_dir=aarch64
3628     ;;
3629   arm*-*-*)
3630     libgloss_dir=arm
3631     ;;
3632   cris-*-* | crisv32-*-*)
3633     libgloss_dir=cris
3634     ;;
3635   hppa*-*-*)
3636     libgloss_dir=pa
3637     ;;
3638   i[3456789]86-*-*)
3639     libgloss_dir=i386
3640     ;;
3641   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3642     libgloss_dir=m68hc11
3643     ;;
3644   m68*-*-* | fido-*-*)
3645     libgloss_dir=m68k
3646     ;;
3647   mips*-*-*)
3648     libgloss_dir=mips
3649     ;;
3650   powerpc*-*-*)
3651     libgloss_dir=rs6000
3652     ;;
3653   pru-*-*)
3654     libgloss_dir=pru
3655     ;;
3656   sparc*-*-*)
3657     libgloss_dir=sparc
3658     ;;
3659 esac
3660
3661 # Disable newlib and libgloss for various target OSes.
3662 case "${target}" in
3663   alpha*-dec-osf*)
3664     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665     ;;
3666   i[3456789]86-*-linux*)
3667     # This section makes it possible to build newlib natively on linux.
3668     # If we are using a cross compiler then don't configure newlib.
3669     if test x${is_cross_compiler} != xno ; then
3670       noconfigdirs="$noconfigdirs target-newlib"
3671     fi
3672     noconfigdirs="$noconfigdirs target-libgloss"
3673     # If we are not using a cross compiler, do configure newlib.
3674     # Note however, that newlib will only be configured in this situation
3675     # if the --with-newlib option has been given, because otherwise
3676     # 'target-newlib' will appear in skipdirs.
3677     ;;
3678   i[3456789]86-*-rdos*)
3679     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3680     ;;
3681   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3682     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3683     ;;
3684   sparc-*-sunos4*)
3685     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3686     ;;
3687   bpf-*-*)
3688     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689     ;;
3690   *-*-aix*)
3691     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692     ;;
3693   *-*-beos*)
3694     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695     ;;
3696   *-*-chorusos)
3697     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698     ;;
3699   *-*-dragonfly*)
3700     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701     ;;
3702   *-*-freebsd*)
3703     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704     ;;
3705   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3706     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3707     ;;
3708   *-*-lynxos*)
3709     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710     ;;
3711   *-*-mingw*)
3712     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713     ;;
3714   *-*-netbsd*)
3715     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3716     ;;
3717   *-*-netware*)
3718     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719     ;;
3720   *-*-tpf*)
3721     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722     ;;
3723   *-*-uclinux*)
3724     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725     ;;
3726   *-*-vxworks*)
3727     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728     ;;
3729 esac
3730
3731 case "${target}" in
3732   *-*-chorusos)
3733     ;;
3734   aarch64-*-darwin*)
3735     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3736     noconfigdirs="$noconfigdirs sim target-rda"
3737     ;;
3738   amdgcn*-*-*)
3739     ;;
3740   arm-*-darwin*)
3741     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3742     noconfigdirs="$noconfigdirs sim target-rda"
3743     ;;
3744   powerpc-*-darwin*)
3745     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3746     noconfigdirs="$noconfigdirs sim target-rda"
3747     ;;
3748   i[3456789]86-*-darwin*)
3749     noconfigdirs="$noconfigdirs ld gprof"
3750     noconfigdirs="$noconfigdirs sim target-rda"
3751     ;;
3752   x86_64-*-darwin[912]*)
3753     noconfigdirs="$noconfigdirs ld gas gprof"
3754     noconfigdirs="$noconfigdirs sim target-rda"
3755     ;;
3756   *-*-darwin*)
3757     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3758     noconfigdirs="$noconfigdirs sim target-rda"
3759     ;;
3760   *-*-dragonfly*)
3761     ;;
3762   *-*-freebsd*)
3763     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3764         && ! test -d ${srcdir}/gmp \
3765         && test -f /usr/local/include/gmp.h; then
3766       with_gmp=/usr/local
3767     fi
3768     ;;
3769   *-*-kaos*)
3770     # Remove unsupported stuff on all kaOS configurations.
3771     noconfigdirs="$noconfigdirs target-libgloss"
3772     ;;
3773   *-*-netbsd*)
3774     ;;
3775   *-*-netware*)
3776     ;;
3777   *-*-phoenix*)
3778     noconfigdirs="$noconfigdirs target-libgloss"
3779     ;;
3780   *-*-rtems*)
3781     noconfigdirs="$noconfigdirs target-libgloss"
3782     ;;
3783     # The tpf target doesn't support gdb yet.
3784   *-*-tpf*)
3785     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3786     ;;
3787   *-*-uclinux*)
3788     noconfigdirs="$noconfigdirs target-rda"
3789     ;;
3790   *-*-vxworks*)
3791     ;;
3792   alpha*-dec-osf*)
3793     # ld works, but does not support shared libraries.
3794     # gas doesn't generate exception information.
3795     noconfigdirs="$noconfigdirs gas ld"
3796     ;;
3797   alpha*-*-*vms*)
3798     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3799     ;;
3800   alpha*-*-*)
3801     # newlib is not 64 bit ready
3802     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3803     ;;
3804   bpf-*-*)
3805     noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3806     ;;
3807   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3808     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3809     ;;
3810   arc*-*-*)
3811     noconfigdirs="$noconfigdirs sim"
3812     ;;
3813   arm-*-pe*)
3814     noconfigdirs="$noconfigdirs target-libgloss"
3815     ;;
3816   arm-*-riscix*)
3817     noconfigdirs="$noconfigdirs ld target-libgloss"
3818     ;;
3819   avr-*-*)
3820     if test x${with_avrlibc} != xno; then
3821       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3822     fi
3823     ;;
3824   c4x-*-* | tic4x-*-*)
3825     noconfigdirs="$noconfigdirs target-libgloss"
3826     ;;
3827   tic54x-*-*)
3828     noconfigdirs="$noconfigdirs target-libgloss gdb"
3829     ;;
3830   d10v-*-*)
3831     noconfigdirs="$noconfigdirs target-libgloss"
3832     ;;
3833   d30v-*-*)
3834     noconfigdirs="$noconfigdirs gdb"
3835     ;;
3836   fr30-*-elf*)
3837     noconfigdirs="$noconfigdirs gdb"
3838     ;;
3839   ft32-*-*)
3840     noconfigdirs="$noconfigdirs target-rda gprof"
3841     ;;
3842   moxie-*-*)
3843     noconfigdirs="$noconfigdirs"
3844     ;;
3845   h8300*-*-*)
3846     noconfigdirs="$noconfigdirs target-libgloss"
3847     ;;
3848   h8500-*-*)
3849     noconfigdirs="$noconfigdirs target-libgloss"
3850     ;;
3851   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3852     ;;
3853   hppa*64*-*-hpux*)
3854     noconfigdirs="$noconfigdirs gdb"
3855     ;;
3856   hppa*-*-hpux11*)
3857     noconfigdirs="$noconfigdirs gdb ld"
3858     ;;
3859   hppa*64*-*-linux*)
3860     ;;
3861   hppa*-*-linux*)
3862     ;;
3863   hppa*-*-*elf* | \
3864   hppa*-*-lites* | \
3865   hppa*-*-openbsd* | \
3866   hppa*64*-*-*)
3867     ;;
3868   hppa*-*-pro*)
3869     ;;
3870   hppa*-*-*)
3871     noconfigdirs="$noconfigdirs ld"
3872     ;;
3873   i960-*-*)
3874     noconfigdirs="$noconfigdirs gdb"
3875     ;;
3876   ia64*-*-elf*)
3877     # No gdb support yet.
3878     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3879     ;;
3880   ia64*-**-hpux*)
3881     # No ld support yet.
3882     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3883     ;;
3884   ia64*-*-*vms*)
3885     # No ld support yet.
3886     noconfigdirs="$noconfigdirs libgui itcl ld"
3887     ;;
3888   i[3456789]86-w64-mingw*)
3889     ;;
3890   i[3456789]86-*-mingw*)
3891     target_configdirs="$target_configdirs target-winsup"
3892     ;;
3893   *-*-cygwin*)
3894     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3895     noconfigdirs="$noconfigdirs target-libgloss"
3896     # always build newlib if winsup directory is present.
3897     if test -d "$srcdir/winsup/cygwin"; then
3898       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3899     elif test -d "$srcdir/newlib"; then
3900       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3901     fi
3902     ;;
3903   i[3456789]86-*-pe)
3904     noconfigdirs="$noconfigdirs target-libgloss"
3905     ;;
3906   i[3456789]86-*-sco3.2v5*)
3907     # The linker does not yet know about weak symbols in COFF,
3908     # and is not configured to handle mixed ELF and COFF.
3909     noconfigdirs="$noconfigdirs ld target-libgloss"
3910     ;;
3911   i[3456789]86-*-sco*)
3912     noconfigdirs="$noconfigdirs gprof target-libgloss"
3913     ;;
3914   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3915     noconfigdirs="$noconfigdirs target-libgloss"
3916     ;;
3917   i[3456789]86-*-sysv4*)
3918     noconfigdirs="$noconfigdirs target-libgloss"
3919     ;;
3920   i[3456789]86-*-beos*)
3921     noconfigdirs="$noconfigdirs gdb"
3922     ;;
3923   i[3456789]86-*-rdos*)
3924     noconfigdirs="$noconfigdirs gdb"
3925     ;;
3926   mmix-*-*)
3927     noconfigdirs="$noconfigdirs gdb"
3928     ;;
3929   mt-*-*)
3930     noconfigdirs="$noconfigdirs sim"
3931     ;;
3932   nfp-*-*)
3933     noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3934     noconfigdirs="$noconfigdirs $target_libraries"
3935     ;;
3936   pdp11-*-*)
3937     noconfigdirs="$noconfigdirs gdb gprof"
3938     ;;
3939   powerpc-*-aix*)
3940     # copied from rs6000-*-* entry
3941     noconfigdirs="$noconfigdirs gprof"
3942     ;;
3943   powerpc*-*-winnt* | powerpc*-*-pe*)
3944     target_configdirs="$target_configdirs target-winsup"
3945     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3946     # always build newlib.
3947     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3948     ;;
3949     # This is temporary until we can link against shared libraries
3950   powerpcle-*-solaris*)
3951     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3952     ;;
3953   powerpc-*-beos*)
3954     noconfigdirs="$noconfigdirs gdb"
3955     ;;
3956   rs6000-*-lynxos*)
3957     noconfigdirs="$noconfigdirs gprof"
3958     ;;
3959   rs6000-*-aix*)
3960     noconfigdirs="$noconfigdirs gprof"
3961     ;;
3962   rs6000-*-*)
3963     noconfigdirs="$noconfigdirs gprof"
3964     ;;
3965   m68k-apollo-*)
3966     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3967     ;;
3968   microblaze*)
3969     noconfigdirs="$noconfigdirs gprof"
3970     ;;
3971   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3972     if test x$with_newlib = xyes; then
3973       noconfigdirs="$noconfigdirs gprof"
3974     fi
3975     ;;
3976   mips*-*-irix5*)
3977     noconfigdirs="$noconfigdirs gprof target-libgloss"
3978     ;;
3979   mips*-*-irix6*)
3980     noconfigdirs="$noconfigdirs gprof target-libgloss"
3981     ;;
3982   mips*-*-bsd*)
3983     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3984     ;;
3985   mips*-*-linux*)
3986     ;;
3987   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3988   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3989     noconfigdirs="$noconfigdirs ld gas gprof"
3990     ;;
3991   mips*-*-*)
3992     noconfigdirs="$noconfigdirs gprof"
3993     ;;
3994   nvptx*-*-*)
3995     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3996     ;;
3997   sh-*-*)
3998     case "${target}" in
3999       sh*-*-elf)
4000          ;;
4001       *)
4002          noconfigdirs="$noconfigdirs target-libgloss" ;;
4003     esac
4004     ;;
4005   sparc-*-sunos4*)
4006     if test x${is_cross_compiler} = xno ; then
4007            use_gnu_ld=no
4008     fi
4009     ;;
4010   tic6x-*-*)
4011     noconfigdirs="$noconfigdirs sim"
4012     ;;
4013   tilepro*-*-* | tilegx*-*-*)
4014     noconfigdirs="$noconfigdirs sim"
4015     ;;
4016   v810-*-*)
4017     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4018     ;;
4019   vax-*-*)
4020     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4021     ;;
4022   wasm32-*-*)
4023     noconfigdirs="$noconfigdirs ld"
4024     ;;
4025 esac
4026
4027 # If we aren't building newlib, then don't build libgloss, since libgloss
4028 # depends upon some newlib header files.
4029 case "${noconfigdirs}" in
4030   *target-libgloss*) ;;
4031   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4032 esac
4033
4034 # Work in distributions that contain no compiler tools, like Autoconf.
4035 host_makefile_frag=/dev/null
4036 if test -d ${srcdir}/config ; then
4037 case "${host}" in
4038   i[3456789]86-*-msdosdjgpp*)
4039     host_makefile_frag="config/mh-djgpp"
4040     ;;
4041   *-cygwin*)
4042
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4044 $as_echo_n "checking to see if cat works as expected... " >&6; }
4045 echo a >cygwin-cat-check
4046 if test `cat cygwin-cat-check` = a ; then
4047   rm cygwin-cat-check
4048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4049 $as_echo "yes" >&6; }
4050 else
4051   rm cygwin-cat-check
4052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4054   as_fn_error $? "The cat command does not ignore carriage return characters.
4055   Please either mount the build directory in binary mode or run the following
4056   commands before running any configure script:
4057 set -o igncr
4058 export SHELLOPTS
4059   " "$LINENO" 5
4060 fi
4061
4062     host_makefile_frag="config/mh-cygwin"
4063     ;;
4064   *-mingw*)
4065     host_makefile_frag="config/mh-mingw"
4066     ;;
4067   alpha*-linux*)
4068     host_makefile_frag="config/mh-alpha-linux"
4069     ;;
4070   hppa*-hp-hpux10*)
4071     host_makefile_frag="config/mh-pa-hpux10"
4072     ;;
4073   hppa*-hp-hpux*)
4074     host_makefile_frag="config/mh-pa"
4075     ;;
4076   hppa*-*)
4077     host_makefile_frag="config/mh-pa"
4078     ;;
4079   *-*-darwin*)
4080     host_makefile_frag="config/mh-darwin"
4081     ;;
4082   powerpc-*-aix*)
4083     host_makefile_frag="config/mh-ppc-aix"
4084     ;;
4085   rs6000-*-aix*)
4086     host_makefile_frag="config/mh-ppc-aix"
4087     ;;
4088 esac
4089 fi
4090
4091 if test "${build}" != "${host}" ; then
4092   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4093   AS_FOR_BUILD=${AS_FOR_BUILD-as}
4094   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4095   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4096   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4097   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4098   GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4099   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4100   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4101   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4102   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4103   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4104   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4105 else
4106   AR_FOR_BUILD="\$(AR)"
4107   AS_FOR_BUILD="\$(AS)"
4108   CC_FOR_BUILD="\$(CC)"
4109   CXX_FOR_BUILD="\$(CXX)"
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 ac_ext=cpp
4911 ac_cpp='$CXXCPP $CPPFLAGS'
4912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4915 if test -z "$CXX"; then
4916   if test -n "$CCC"; then
4917     CXX=$CCC
4918   else
4919     if test -n "$ac_tool_prefix"; then
4920   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4921   do
4922     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if ${ac_cv_prog_CXX+:} false; then :
4927   $as_echo_n "(cached) " >&6
4928 else
4929   if test -n "$CXX"; then
4930   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935   IFS=$as_save_IFS
4936   test -z "$as_dir" && as_dir=.
4937     for ac_exec_ext in '' $ac_executable_extensions; do
4938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4939     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941     break 2
4942   fi
4943 done
4944   done
4945 IFS=$as_save_IFS
4946
4947 fi
4948 fi
4949 CXX=$ac_cv_prog_CXX
4950 if test -n "$CXX"; then
4951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4952 $as_echo "$CXX" >&6; }
4953 else
4954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4956 fi
4957
4958
4959     test -n "$CXX" && break
4960   done
4961 fi
4962 if test -z "$CXX"; then
4963   ac_ct_CXX=$CXX
4964   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4965 do
4966   # Extract the first word of "$ac_prog", so it can be a program name with args.
4967 set dummy $ac_prog; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4971   $as_echo_n "(cached) " >&6
4972 else
4973   if test -n "$ac_ct_CXX"; then
4974   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979   IFS=$as_save_IFS
4980   test -z "$as_dir" && as_dir=.
4981     for ac_exec_ext in '' $ac_executable_extensions; do
4982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983     ac_cv_prog_ac_ct_CXX="$ac_prog"
4984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985     break 2
4986   fi
4987 done
4988   done
4989 IFS=$as_save_IFS
4990
4991 fi
4992 fi
4993 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4994 if test -n "$ac_ct_CXX"; then
4995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4996 $as_echo "$ac_ct_CXX" >&6; }
4997 else
4998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5000 fi
5001
5002
5003   test -n "$ac_ct_CXX" && break
5004 done
5005
5006   if test "x$ac_ct_CXX" = x; then
5007     CXX="g++"
5008   else
5009     case $cross_compiling:$ac_tool_warned in
5010 yes:)
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5013 ac_tool_warned=yes ;;
5014 esac
5015     CXX=$ac_ct_CXX
5016   fi
5017 fi
5018
5019   fi
5020 fi
5021 # Provide some information about the compiler.
5022 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5023 set X $ac_compile
5024 ac_compiler=$2
5025 for ac_option in --version -v -V -qversion; do
5026   { { ac_try="$ac_compiler $ac_option >&5"
5027 case "(($ac_try" in
5028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029   *) ac_try_echo=$ac_try;;
5030 esac
5031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5032 $as_echo "$ac_try_echo"; } >&5
5033   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5034   ac_status=$?
5035   if test -s conftest.err; then
5036     sed '10a\
5037 ... rest of stderr output deleted ...
5038          10q' conftest.err >conftest.er1
5039     cat conftest.er1 >&5
5040   fi
5041   rm -f conftest.er1 conftest.err
5042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5043   test $ac_status = 0; }
5044 done
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5047 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5048 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5049   $as_echo_n "(cached) " >&6
5050 else
5051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h.  */
5053
5054 int
5055 main ()
5056 {
5057 #ifndef __GNUC__
5058        choke me
5059 #endif
5060
5061   ;
5062   return 0;
5063 }
5064 _ACEOF
5065 if ac_fn_cxx_try_compile "$LINENO"; then :
5066   ac_compiler_gnu=yes
5067 else
5068   ac_compiler_gnu=no
5069 fi
5070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5072
5073 fi
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5075 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5076 if test $ac_compiler_gnu = yes; then
5077   GXX=yes
5078 else
5079   GXX=
5080 fi
5081 ac_test_CXXFLAGS=${CXXFLAGS+set}
5082 ac_save_CXXFLAGS=$CXXFLAGS
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5084 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5085 if ${ac_cv_prog_cxx_g+:} false; then :
5086   $as_echo_n "(cached) " >&6
5087 else
5088   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5089    ac_cxx_werror_flag=yes
5090    ac_cv_prog_cxx_g=no
5091    CXXFLAGS="-g"
5092    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h.  */
5094
5095 int
5096 main ()
5097 {
5098
5099   ;
5100   return 0;
5101 }
5102 _ACEOF
5103 if ac_fn_cxx_try_compile "$LINENO"; then :
5104   ac_cv_prog_cxx_g=yes
5105 else
5106   CXXFLAGS=""
5107       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108 /* end confdefs.h.  */
5109
5110 int
5111 main ()
5112 {
5113
5114   ;
5115   return 0;
5116 }
5117 _ACEOF
5118 if ac_fn_cxx_try_compile "$LINENO"; then :
5119
5120 else
5121   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5122          CXXFLAGS="-g"
5123          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h.  */
5125
5126 int
5127 main ()
5128 {
5129
5130   ;
5131   return 0;
5132 }
5133 _ACEOF
5134 if ac_fn_cxx_try_compile "$LINENO"; then :
5135   ac_cv_prog_cxx_g=yes
5136 fi
5137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138 fi
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 fi
5141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5143 fi
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5145 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5146 if test "$ac_test_CXXFLAGS" = set; then
5147   CXXFLAGS=$ac_save_CXXFLAGS
5148 elif test $ac_cv_prog_cxx_g = yes; then
5149   if test "$GXX" = yes; then
5150     CXXFLAGS="-g -O2"
5151   else
5152     CXXFLAGS="-g"
5153   fi
5154 else
5155   if test "$GXX" = yes; then
5156     CXXFLAGS="-O2"
5157   else
5158     CXXFLAGS=
5159   fi
5160 fi
5161 ac_ext=c
5162 ac_cpp='$CPP $CPPFLAGS'
5163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5166
5167
5168 # We must set the default linker to the linker used by gcc for the correct
5169 # operation of libtool.  If LD is not defined and we are using gcc, try to
5170 # set the LD default to the ld used by gcc.
5171 if test -z "$LD"; then
5172   if test "$GCC" = yes; then
5173     case $build in
5174     *-*-mingw*)
5175       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5176     *)
5177       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5178     esac
5179     case $gcc_prog_ld in
5180     # Accept absolute paths.
5181     [\\/]* | [A-Za-z]:[\\/]*)
5182       LD="$gcc_prog_ld" ;;
5183     esac
5184   fi
5185 fi
5186
5187 # Check whether -static-libstdc++ -static-libgcc is supported.
5188 have_static_libs=no
5189 if test "$GCC" = yes; then
5190   saved_LDFLAGS="$LDFLAGS"
5191
5192   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5194 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5195   ac_ext=cpp
5196 ac_cpp='$CXXCPP $CPPFLAGS'
5197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5200
5201
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h.  */
5204
5205 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5206 #error -static-libstdc++ not implemented
5207 #endif
5208 int main() {}
5209 _ACEOF
5210 if ac_fn_cxx_try_link "$LINENO"; then :
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5212 $as_echo "yes" >&6; }; have_static_libs=yes
5213 else
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5216 fi
5217 rm -f core conftest.err conftest.$ac_objext \
5218     conftest$ac_exeext conftest.$ac_ext
5219   ac_ext=c
5220 ac_cpp='$CPP $CPPFLAGS'
5221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5224
5225
5226   LDFLAGS="$saved_LDFLAGS"
5227 fi
5228
5229
5230
5231
5232 if test -n "$ac_tool_prefix"; then
5233   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5234 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236 $as_echo_n "checking for $ac_word... " >&6; }
5237 if ${ac_cv_prog_GNATBIND+:} false; then :
5238   $as_echo_n "(cached) " >&6
5239 else
5240   if test -n "$GNATBIND"; then
5241   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5242 else
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246   IFS=$as_save_IFS
5247   test -z "$as_dir" && as_dir=.
5248     for ac_exec_ext in '' $ac_executable_extensions; do
5249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252     break 2
5253   fi
5254 done
5255   done
5256 IFS=$as_save_IFS
5257
5258 fi
5259 fi
5260 GNATBIND=$ac_cv_prog_GNATBIND
5261 if test -n "$GNATBIND"; then
5262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5263 $as_echo "$GNATBIND" >&6; }
5264 else
5265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 $as_echo "no" >&6; }
5267 fi
5268
5269
5270 fi
5271 if test -z "$ac_cv_prog_GNATBIND"; then
5272   ac_ct_GNATBIND=$GNATBIND
5273   # Extract the first word of "gnatbind", so it can be a program name with args.
5274 set dummy gnatbind; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5278   $as_echo_n "(cached) " >&6
5279 else
5280   if test -n "$ac_ct_GNATBIND"; then
5281   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5282 else
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5285 do
5286   IFS=$as_save_IFS
5287   test -z "$as_dir" && as_dir=.
5288     for ac_exec_ext in '' $ac_executable_extensions; do
5289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5290     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292     break 2
5293   fi
5294 done
5295   done
5296 IFS=$as_save_IFS
5297
5298 fi
5299 fi
5300 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5301 if test -n "$ac_ct_GNATBIND"; then
5302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5303 $as_echo "$ac_ct_GNATBIND" >&6; }
5304 else
5305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5307 fi
5308
5309   if test "x$ac_ct_GNATBIND" = x; then
5310     GNATBIND="no"
5311   else
5312     case $cross_compiling:$ac_tool_warned in
5313 yes:)
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5316 ac_tool_warned=yes ;;
5317 esac
5318     GNATBIND=$ac_ct_GNATBIND
5319   fi
5320 else
5321   GNATBIND="$ac_cv_prog_GNATBIND"
5322 fi
5323
5324 if test -n "$ac_tool_prefix"; then
5325   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5326 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if ${ac_cv_prog_GNATMAKE+:} false; then :
5330   $as_echo_n "(cached) " >&6
5331 else
5332   if test -n "$GNATMAKE"; then
5333   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5337 do
5338   IFS=$as_save_IFS
5339   test -z "$as_dir" && as_dir=.
5340     for ac_exec_ext in '' $ac_executable_extensions; do
5341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344     break 2
5345   fi
5346 done
5347   done
5348 IFS=$as_save_IFS
5349
5350 fi
5351 fi
5352 GNATMAKE=$ac_cv_prog_GNATMAKE
5353 if test -n "$GNATMAKE"; then
5354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5355 $as_echo "$GNATMAKE" >&6; }
5356 else
5357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5359 fi
5360
5361
5362 fi
5363 if test -z "$ac_cv_prog_GNATMAKE"; then
5364   ac_ct_GNATMAKE=$GNATMAKE
5365   # Extract the first word of "gnatmake", so it can be a program name with args.
5366 set dummy gnatmake; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5370   $as_echo_n "(cached) " >&6
5371 else
5372   if test -n "$ac_ct_GNATMAKE"; then
5373   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5377 do
5378   IFS=$as_save_IFS
5379   test -z "$as_dir" && as_dir=.
5380     for ac_exec_ext in '' $ac_executable_extensions; do
5381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384     break 2
5385   fi
5386 done
5387   done
5388 IFS=$as_save_IFS
5389
5390 fi
5391 fi
5392 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5393 if test -n "$ac_ct_GNATMAKE"; then
5394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5395 $as_echo "$ac_ct_GNATMAKE" >&6; }
5396 else
5397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5399 fi
5400
5401   if test "x$ac_ct_GNATMAKE" = x; then
5402     GNATMAKE="no"
5403   else
5404     case $cross_compiling:$ac_tool_warned in
5405 yes:)
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5408 ac_tool_warned=yes ;;
5409 esac
5410     GNATMAKE=$ac_ct_GNATMAKE
5411   fi
5412 else
5413   GNATMAKE="$ac_cv_prog_GNATMAKE"
5414 fi
5415
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5417 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5418 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5419   $as_echo_n "(cached) " >&6
5420 else
5421   cat >conftest.adb <<EOF
5422 procedure conftest is begin null; end conftest;
5423 EOF
5424 acx_cv_cc_gcc_supports_ada=no
5425 # There is a bug in old released versions of GCC which causes the
5426 # driver to exit successfully when the appropriate language module
5427 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5428 # Therefore we must check for the error message as well as an
5429 # unsuccessful exit.
5430 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5431 # given a .adb file, but produce no object file.  So we must check
5432 # if an object file was really produced to guard against this.
5433 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5434 if test x"$errors" = x && test -f conftest.$ac_objext; then
5435   acx_cv_cc_gcc_supports_ada=yes
5436 fi
5437 rm -f conftest.*
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5440 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5441
5442 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5443   have_gnat=yes
5444 else
5445   have_gnat=no
5446 fi
5447
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5449 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5450 if ${gcc_cv_prog_cmp_skip+:} false; then :
5451   $as_echo_n "(cached) " >&6
5452 else
5453    echo abfoo >t1
5454   echo cdfoo >t2
5455   gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5456   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5457     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5458       :
5459     else
5460       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5461     fi
5462   fi
5463   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5464     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5465       :
5466     else
5467       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5468     fi
5469   fi
5470   rm t1 t2
5471
5472 fi
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5474 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5475 do_compare="$gcc_cv_prog_cmp_skip"
5476
5477
5478
5479 # Check whether --enable-bootstrap was given.
5480 if test "${enable_bootstrap+set}" = set; then :
5481   enableval=$enable_bootstrap;
5482 else
5483   enable_bootstrap=default
5484 fi
5485
5486
5487 # Issue errors and warnings for invalid/strange bootstrap combinations.
5488 if test -r $srcdir/gcc/configure; then
5489   have_compiler=yes
5490 else
5491   have_compiler=no
5492 fi
5493
5494 case "$have_compiler:$host:$target:$enable_bootstrap" in
5495   *:*:*:no) ;;
5496
5497   # Default behavior.  Enable bootstrap if we have a compiler
5498   # and we are in a native configuration.
5499   yes:$build:$build:default)
5500     enable_bootstrap=yes ;;
5501
5502   *:*:*:default)
5503     enable_bootstrap=no ;;
5504
5505   # We have a compiler and we are in a native configuration, bootstrap is ok
5506   yes:$build:$build:yes)
5507     ;;
5508
5509   # Other configurations, but we have a compiler.  Assume the user knows
5510   # what he's doing.
5511   yes:*:*:yes)
5512     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5513 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5514     ;;
5515
5516   # No compiler: if they passed --enable-bootstrap explicitly, fail
5517   no:*:*:yes)
5518     as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5519
5520   # Fail if wrong command line
5521   *)
5522     as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5523     ;;
5524 esac
5525
5526 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5527 # C++11 compiler can still start the bootstrap.  Otherwise, if building GCC,
5528 # require C++11 (or higher).
5529 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5530   CXX="$CXX -std=c++11"
5531 elif test "$have_compiler" = yes; then
5532     ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
5533   ac_ext=cpp
5534 ac_cpp='$CXXCPP $CPPFLAGS'
5535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5538   ac_success=no
5539
5540       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5541 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5542 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5543   $as_echo_n "(cached) " >&6
5544 else
5545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h.  */
5547
5548
5549 // If the compiler admits that it is not ready for C++11, why torture it?
5550 // Hopefully, this will speed up the test.
5551
5552 #ifndef __cplusplus
5553
5554 #error "This is not a C++ compiler"
5555
5556 #elif __cplusplus < 201103L
5557
5558 #error "This is not a C++11 compiler"
5559
5560 #else
5561
5562 namespace cxx11
5563 {
5564
5565   namespace test_static_assert
5566   {
5567
5568     template <typename T>
5569     struct check
5570     {
5571       static_assert(sizeof(int) <= sizeof(T), "not big enough");
5572     };
5573
5574   }
5575
5576   namespace test_final_override
5577   {
5578
5579     struct Base
5580     {
5581       virtual ~Base() {}
5582       virtual void f() {}
5583     };
5584
5585     struct Derived : public Base
5586     {
5587       virtual ~Derived() override {}
5588       virtual void f() override {}
5589     };
5590
5591   }
5592
5593   namespace test_double_right_angle_brackets
5594   {
5595
5596     template < typename T >
5597     struct check {};
5598
5599     typedef check<void> single_type;
5600     typedef check<check<void>> double_type;
5601     typedef check<check<check<void>>> triple_type;
5602     typedef check<check<check<check<void>>>> quadruple_type;
5603
5604   }
5605
5606   namespace test_decltype
5607   {
5608
5609     int
5610     f()
5611     {
5612       int a = 1;
5613       decltype(a) b = 2;
5614       return a + b;
5615     }
5616
5617   }
5618
5619   namespace test_type_deduction
5620   {
5621
5622     template < typename T1, typename T2 >
5623     struct is_same
5624     {
5625       static const bool value = false;
5626     };
5627
5628     template < typename T >
5629     struct is_same<T, T>
5630     {
5631       static const bool value = true;
5632     };
5633
5634     template < typename T1, typename T2 >
5635     auto
5636     add(T1 a1, T2 a2) -> decltype(a1 + a2)
5637     {
5638       return a1 + a2;
5639     }
5640
5641     int
5642     test(const int c, volatile int v)
5643     {
5644       static_assert(is_same<int, decltype(0)>::value == true, "");
5645       static_assert(is_same<int, decltype(c)>::value == false, "");
5646       static_assert(is_same<int, decltype(v)>::value == false, "");
5647       auto ac = c;
5648       auto av = v;
5649       auto sumi = ac + av + 'x';
5650       auto sumf = ac + av + 1.0;
5651       static_assert(is_same<int, decltype(ac)>::value == true, "");
5652       static_assert(is_same<int, decltype(av)>::value == true, "");
5653       static_assert(is_same<int, decltype(sumi)>::value == true, "");
5654       static_assert(is_same<int, decltype(sumf)>::value == false, "");
5655       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5656       return (sumf > 0.0) ? sumi : add(c, v);
5657     }
5658
5659   }
5660
5661   namespace test_noexcept
5662   {
5663
5664     int f() { return 0; }
5665     int g() noexcept { return 0; }
5666
5667     static_assert(noexcept(f()) == false, "");
5668     static_assert(noexcept(g()) == true, "");
5669
5670   }
5671
5672   namespace test_constexpr
5673   {
5674
5675     template < typename CharT >
5676     unsigned long constexpr
5677     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5678     {
5679       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5680     }
5681
5682     template < typename CharT >
5683     unsigned long constexpr
5684     strlen_c(const CharT *const s) noexcept
5685     {
5686       return strlen_c_r(s, 0UL);
5687     }
5688
5689     static_assert(strlen_c("") == 0UL, "");
5690     static_assert(strlen_c("1") == 1UL, "");
5691     static_assert(strlen_c("example") == 7UL, "");
5692     static_assert(strlen_c("another\0example") == 7UL, "");
5693
5694   }
5695
5696   namespace test_rvalue_references
5697   {
5698
5699     template < int N >
5700     struct answer
5701     {
5702       static constexpr int value = N;
5703     };
5704
5705     answer<1> f(int&)       { return answer<1>(); }
5706     answer<2> f(const int&) { return answer<2>(); }
5707     answer<3> f(int&&)      { return answer<3>(); }
5708
5709     void
5710     test()
5711     {
5712       int i = 0;
5713       const int c = 0;
5714       static_assert(decltype(f(i))::value == 1, "");
5715       static_assert(decltype(f(c))::value == 2, "");
5716       static_assert(decltype(f(0))::value == 3, "");
5717     }
5718
5719   }
5720
5721   namespace test_uniform_initialization
5722   {
5723
5724     struct test
5725     {
5726       static const int zero {};
5727       static const int one {1};
5728     };
5729
5730     static_assert(test::zero == 0, "");
5731     static_assert(test::one == 1, "");
5732
5733   }
5734
5735   namespace test_lambdas
5736   {
5737
5738     void
5739     test1()
5740     {
5741       auto lambda1 = [](){};
5742       auto lambda2 = lambda1;
5743       lambda1();
5744       lambda2();
5745     }
5746
5747     int
5748     test2()
5749     {
5750       auto a = [](int i, int j){ return i + j; }(1, 2);
5751       auto b = []() -> int { return '0'; }();
5752       auto c = [=](){ return a + b; }();
5753       auto d = [&](){ return c; }();
5754       auto e = [a, &b](int x) mutable {
5755         const auto identity = [](int y){ return y; };
5756         for (auto i = 0; i < a; ++i)
5757           a += b--;
5758         return x + identity(a + b);
5759       }(0);
5760       return a + b + c + d + e;
5761     }
5762
5763     int
5764     test3()
5765     {
5766       const auto nullary = [](){ return 0; };
5767       const auto unary = [](int x){ return x; };
5768       using nullary_t = decltype(nullary);
5769       using unary_t = decltype(unary);
5770       const auto higher1st = [](nullary_t f){ return f(); };
5771       const auto higher2nd = [unary](nullary_t f1){
5772         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5773       };
5774       return higher1st(nullary) + higher2nd(nullary)(unary);
5775     }
5776
5777   }
5778
5779   namespace test_variadic_templates
5780   {
5781
5782     template <int...>
5783     struct sum;
5784
5785     template <int N0, int... N1toN>
5786     struct sum<N0, N1toN...>
5787     {
5788       static constexpr auto value = N0 + sum<N1toN...>::value;
5789     };
5790
5791     template <>
5792     struct sum<>
5793     {
5794       static constexpr auto value = 0;
5795     };
5796
5797     static_assert(sum<>::value == 0, "");
5798     static_assert(sum<1>::value == 1, "");
5799     static_assert(sum<23>::value == 23, "");
5800     static_assert(sum<1, 2>::value == 3, "");
5801     static_assert(sum<5, 5, 11>::value == 21, "");
5802     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5803
5804   }
5805
5806   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5807   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5808   // because of this.
5809   namespace test_template_alias_sfinae
5810   {
5811
5812     struct foo {};
5813
5814     template<typename T>
5815     using member = typename T::member_type;
5816
5817     template<typename T>
5818     void func(...) {}
5819
5820     template<typename T>
5821     void func(member<T>*) {}
5822
5823     void test();
5824
5825     void test() { func<foo>(0); }
5826
5827   }
5828
5829 }  // namespace cxx11
5830
5831 #endif  // __cplusplus >= 201103L
5832
5833
5834
5835 _ACEOF
5836 if ac_fn_cxx_try_compile "$LINENO"; then :
5837   ax_cv_cxx_compile_cxx11=yes
5838 else
5839   ax_cv_cxx_compile_cxx11=no
5840 fi
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 fi
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5844 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5845     if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5846       ac_success=yes
5847     fi
5848
5849     if test x$ac_success = xno; then
5850     for alternative in ${ax_cxx_compile_alternatives}; do
5851       switch="-std=gnu++${alternative}"
5852       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5853       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5854 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5855 if eval \${$cachevar+:} false; then :
5856   $as_echo_n "(cached) " >&6
5857 else
5858   ac_save_CXX="$CXX"
5859          CXX="$CXX $switch"
5860          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h.  */
5862
5863
5864 // If the compiler admits that it is not ready for C++11, why torture it?
5865 // Hopefully, this will speed up the test.
5866
5867 #ifndef __cplusplus
5868
5869 #error "This is not a C++ compiler"
5870
5871 #elif __cplusplus < 201103L
5872
5873 #error "This is not a C++11 compiler"
5874
5875 #else
5876
5877 namespace cxx11
5878 {
5879
5880   namespace test_static_assert
5881   {
5882
5883     template <typename T>
5884     struct check
5885     {
5886       static_assert(sizeof(int) <= sizeof(T), "not big enough");
5887     };
5888
5889   }
5890
5891   namespace test_final_override
5892   {
5893
5894     struct Base
5895     {
5896       virtual ~Base() {}
5897       virtual void f() {}
5898     };
5899
5900     struct Derived : public Base
5901     {
5902       virtual ~Derived() override {}
5903       virtual void f() override {}
5904     };
5905
5906   }
5907
5908   namespace test_double_right_angle_brackets
5909   {
5910
5911     template < typename T >
5912     struct check {};
5913
5914     typedef check<void> single_type;
5915     typedef check<check<void>> double_type;
5916     typedef check<check<check<void>>> triple_type;
5917     typedef check<check<check<check<void>>>> quadruple_type;
5918
5919   }
5920
5921   namespace test_decltype
5922   {
5923
5924     int
5925     f()
5926     {
5927       int a = 1;
5928       decltype(a) b = 2;
5929       return a + b;
5930     }
5931
5932   }
5933
5934   namespace test_type_deduction
5935   {
5936
5937     template < typename T1, typename T2 >
5938     struct is_same
5939     {
5940       static const bool value = false;
5941     };
5942
5943     template < typename T >
5944     struct is_same<T, T>
5945     {
5946       static const bool value = true;
5947     };
5948
5949     template < typename T1, typename T2 >
5950     auto
5951     add(T1 a1, T2 a2) -> decltype(a1 + a2)
5952     {
5953       return a1 + a2;
5954     }
5955
5956     int
5957     test(const int c, volatile int v)
5958     {
5959       static_assert(is_same<int, decltype(0)>::value == true, "");
5960       static_assert(is_same<int, decltype(c)>::value == false, "");
5961       static_assert(is_same<int, decltype(v)>::value == false, "");
5962       auto ac = c;
5963       auto av = v;
5964       auto sumi = ac + av + 'x';
5965       auto sumf = ac + av + 1.0;
5966       static_assert(is_same<int, decltype(ac)>::value == true, "");
5967       static_assert(is_same<int, decltype(av)>::value == true, "");
5968       static_assert(is_same<int, decltype(sumi)>::value == true, "");
5969       static_assert(is_same<int, decltype(sumf)>::value == false, "");
5970       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5971       return (sumf > 0.0) ? sumi : add(c, v);
5972     }
5973
5974   }
5975
5976   namespace test_noexcept
5977   {
5978
5979     int f() { return 0; }
5980     int g() noexcept { return 0; }
5981
5982     static_assert(noexcept(f()) == false, "");
5983     static_assert(noexcept(g()) == true, "");
5984
5985   }
5986
5987   namespace test_constexpr
5988   {
5989
5990     template < typename CharT >
5991     unsigned long constexpr
5992     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5993     {
5994       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5995     }
5996
5997     template < typename CharT >
5998     unsigned long constexpr
5999     strlen_c(const CharT *const s) noexcept
6000     {
6001       return strlen_c_r(s, 0UL);
6002     }
6003
6004     static_assert(strlen_c("") == 0UL, "");
6005     static_assert(strlen_c("1") == 1UL, "");
6006     static_assert(strlen_c("example") == 7UL, "");
6007     static_assert(strlen_c("another\0example") == 7UL, "");
6008
6009   }
6010
6011   namespace test_rvalue_references
6012   {
6013
6014     template < int N >
6015     struct answer
6016     {
6017       static constexpr int value = N;
6018     };
6019
6020     answer<1> f(int&)       { return answer<1>(); }
6021     answer<2> f(const int&) { return answer<2>(); }
6022     answer<3> f(int&&)      { return answer<3>(); }
6023
6024     void
6025     test()
6026     {
6027       int i = 0;
6028       const int c = 0;
6029       static_assert(decltype(f(i))::value == 1, "");
6030       static_assert(decltype(f(c))::value == 2, "");
6031       static_assert(decltype(f(0))::value == 3, "");
6032     }
6033
6034   }
6035
6036   namespace test_uniform_initialization
6037   {
6038
6039     struct test
6040     {
6041       static const int zero {};
6042       static const int one {1};
6043     };
6044
6045     static_assert(test::zero == 0, "");
6046     static_assert(test::one == 1, "");
6047
6048   }
6049
6050   namespace test_lambdas
6051   {
6052
6053     void
6054     test1()
6055     {
6056       auto lambda1 = [](){};
6057       auto lambda2 = lambda1;
6058       lambda1();
6059       lambda2();
6060     }
6061
6062     int
6063     test2()
6064     {
6065       auto a = [](int i, int j){ return i + j; }(1, 2);
6066       auto b = []() -> int { return '0'; }();
6067       auto c = [=](){ return a + b; }();
6068       auto d = [&](){ return c; }();
6069       auto e = [a, &b](int x) mutable {
6070         const auto identity = [](int y){ return y; };
6071         for (auto i = 0; i < a; ++i)
6072           a += b--;
6073         return x + identity(a + b);
6074       }(0);
6075       return a + b + c + d + e;
6076     }
6077
6078     int
6079     test3()
6080     {
6081       const auto nullary = [](){ return 0; };
6082       const auto unary = [](int x){ return x; };
6083       using nullary_t = decltype(nullary);
6084       using unary_t = decltype(unary);
6085       const auto higher1st = [](nullary_t f){ return f(); };
6086       const auto higher2nd = [unary](nullary_t f1){
6087         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6088       };
6089       return higher1st(nullary) + higher2nd(nullary)(unary);
6090     }
6091
6092   }
6093
6094   namespace test_variadic_templates
6095   {
6096
6097     template <int...>
6098     struct sum;
6099
6100     template <int N0, int... N1toN>
6101     struct sum<N0, N1toN...>
6102     {
6103       static constexpr auto value = N0 + sum<N1toN...>::value;
6104     };
6105
6106     template <>
6107     struct sum<>
6108     {
6109       static constexpr auto value = 0;
6110     };
6111
6112     static_assert(sum<>::value == 0, "");
6113     static_assert(sum<1>::value == 1, "");
6114     static_assert(sum<23>::value == 23, "");
6115     static_assert(sum<1, 2>::value == 3, "");
6116     static_assert(sum<5, 5, 11>::value == 21, "");
6117     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6118
6119   }
6120
6121   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6122   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6123   // because of this.
6124   namespace test_template_alias_sfinae
6125   {
6126
6127     struct foo {};
6128
6129     template<typename T>
6130     using member = typename T::member_type;
6131
6132     template<typename T>
6133     void func(...) {}
6134
6135     template<typename T>
6136     void func(member<T>*) {}
6137
6138     void test();
6139
6140     void test() { func<foo>(0); }
6141
6142   }
6143
6144 }  // namespace cxx11
6145
6146 #endif  // __cplusplus >= 201103L
6147
6148
6149
6150 _ACEOF
6151 if ac_fn_cxx_try_compile "$LINENO"; then :
6152   eval $cachevar=yes
6153 else
6154   eval $cachevar=no
6155 fi
6156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157          CXX="$ac_save_CXX"
6158 fi
6159 eval ac_res=\$$cachevar
6160                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6161 $as_echo "$ac_res" >&6; }
6162       if eval test x\$$cachevar = xyes; then
6163         CXX="$CXX $switch"
6164         if test -n "$CXXCPP" ; then
6165           CXXCPP="$CXXCPP $switch"
6166         fi
6167         ac_success=yes
6168         break
6169       fi
6170     done
6171   fi
6172
6173     if test x$ac_success = xno; then
6174                 for alternative in ${ax_cxx_compile_alternatives}; do
6175       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6176         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6177         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6178 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6179 if eval \${$cachevar+:} false; then :
6180   $as_echo_n "(cached) " >&6
6181 else
6182   ac_save_CXX="$CXX"
6183            CXX="$CXX $switch"
6184            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h.  */
6186
6187
6188 // If the compiler admits that it is not ready for C++11, why torture it?
6189 // Hopefully, this will speed up the test.
6190
6191 #ifndef __cplusplus
6192
6193 #error "This is not a C++ compiler"
6194
6195 #elif __cplusplus < 201103L
6196
6197 #error "This is not a C++11 compiler"
6198
6199 #else
6200
6201 namespace cxx11
6202 {
6203
6204   namespace test_static_assert
6205   {
6206
6207     template <typename T>
6208     struct check
6209     {
6210       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6211     };
6212
6213   }
6214
6215   namespace test_final_override
6216   {
6217
6218     struct Base
6219     {
6220       virtual ~Base() {}
6221       virtual void f() {}
6222     };
6223
6224     struct Derived : public Base
6225     {
6226       virtual ~Derived() override {}
6227       virtual void f() override {}
6228     };
6229
6230   }
6231
6232   namespace test_double_right_angle_brackets
6233   {
6234
6235     template < typename T >
6236     struct check {};
6237
6238     typedef check<void> single_type;
6239     typedef check<check<void>> double_type;
6240     typedef check<check<check<void>>> triple_type;
6241     typedef check<check<check<check<void>>>> quadruple_type;
6242
6243   }
6244
6245   namespace test_decltype
6246   {
6247
6248     int
6249     f()
6250     {
6251       int a = 1;
6252       decltype(a) b = 2;
6253       return a + b;
6254     }
6255
6256   }
6257
6258   namespace test_type_deduction
6259   {
6260
6261     template < typename T1, typename T2 >
6262     struct is_same
6263     {
6264       static const bool value = false;
6265     };
6266
6267     template < typename T >
6268     struct is_same<T, T>
6269     {
6270       static const bool value = true;
6271     };
6272
6273     template < typename T1, typename T2 >
6274     auto
6275     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6276     {
6277       return a1 + a2;
6278     }
6279
6280     int
6281     test(const int c, volatile int v)
6282     {
6283       static_assert(is_same<int, decltype(0)>::value == true, "");
6284       static_assert(is_same<int, decltype(c)>::value == false, "");
6285       static_assert(is_same<int, decltype(v)>::value == false, "");
6286       auto ac = c;
6287       auto av = v;
6288       auto sumi = ac + av + 'x';
6289       auto sumf = ac + av + 1.0;
6290       static_assert(is_same<int, decltype(ac)>::value == true, "");
6291       static_assert(is_same<int, decltype(av)>::value == true, "");
6292       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6293       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6294       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6295       return (sumf > 0.0) ? sumi : add(c, v);
6296     }
6297
6298   }
6299
6300   namespace test_noexcept
6301   {
6302
6303     int f() { return 0; }
6304     int g() noexcept { return 0; }
6305
6306     static_assert(noexcept(f()) == false, "");
6307     static_assert(noexcept(g()) == true, "");
6308
6309   }
6310
6311   namespace test_constexpr
6312   {
6313
6314     template < typename CharT >
6315     unsigned long constexpr
6316     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6317     {
6318       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6319     }
6320
6321     template < typename CharT >
6322     unsigned long constexpr
6323     strlen_c(const CharT *const s) noexcept
6324     {
6325       return strlen_c_r(s, 0UL);
6326     }
6327
6328     static_assert(strlen_c("") == 0UL, "");
6329     static_assert(strlen_c("1") == 1UL, "");
6330     static_assert(strlen_c("example") == 7UL, "");
6331     static_assert(strlen_c("another\0example") == 7UL, "");
6332
6333   }
6334
6335   namespace test_rvalue_references
6336   {
6337
6338     template < int N >
6339     struct answer
6340     {
6341       static constexpr int value = N;
6342     };
6343
6344     answer<1> f(int&)       { return answer<1>(); }
6345     answer<2> f(const int&) { return answer<2>(); }
6346     answer<3> f(int&&)      { return answer<3>(); }
6347
6348     void
6349     test()
6350     {
6351       int i = 0;
6352       const int c = 0;
6353       static_assert(decltype(f(i))::value == 1, "");
6354       static_assert(decltype(f(c))::value == 2, "");
6355       static_assert(decltype(f(0))::value == 3, "");
6356     }
6357
6358   }
6359
6360   namespace test_uniform_initialization
6361   {
6362
6363     struct test
6364     {
6365       static const int zero {};
6366       static const int one {1};
6367     };
6368
6369     static_assert(test::zero == 0, "");
6370     static_assert(test::one == 1, "");
6371
6372   }
6373
6374   namespace test_lambdas
6375   {
6376
6377     void
6378     test1()
6379     {
6380       auto lambda1 = [](){};
6381       auto lambda2 = lambda1;
6382       lambda1();
6383       lambda2();
6384     }
6385
6386     int
6387     test2()
6388     {
6389       auto a = [](int i, int j){ return i + j; }(1, 2);
6390       auto b = []() -> int { return '0'; }();
6391       auto c = [=](){ return a + b; }();
6392       auto d = [&](){ return c; }();
6393       auto e = [a, &b](int x) mutable {
6394         const auto identity = [](int y){ return y; };
6395         for (auto i = 0; i < a; ++i)
6396           a += b--;
6397         return x + identity(a + b);
6398       }(0);
6399       return a + b + c + d + e;
6400     }
6401
6402     int
6403     test3()
6404     {
6405       const auto nullary = [](){ return 0; };
6406       const auto unary = [](int x){ return x; };
6407       using nullary_t = decltype(nullary);
6408       using unary_t = decltype(unary);
6409       const auto higher1st = [](nullary_t f){ return f(); };
6410       const auto higher2nd = [unary](nullary_t f1){
6411         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6412       };
6413       return higher1st(nullary) + higher2nd(nullary)(unary);
6414     }
6415
6416   }
6417
6418   namespace test_variadic_templates
6419   {
6420
6421     template <int...>
6422     struct sum;
6423
6424     template <int N0, int... N1toN>
6425     struct sum<N0, N1toN...>
6426     {
6427       static constexpr auto value = N0 + sum<N1toN...>::value;
6428     };
6429
6430     template <>
6431     struct sum<>
6432     {
6433       static constexpr auto value = 0;
6434     };
6435
6436     static_assert(sum<>::value == 0, "");
6437     static_assert(sum<1>::value == 1, "");
6438     static_assert(sum<23>::value == 23, "");
6439     static_assert(sum<1, 2>::value == 3, "");
6440     static_assert(sum<5, 5, 11>::value == 21, "");
6441     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6442
6443   }
6444
6445   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6446   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6447   // because of this.
6448   namespace test_template_alias_sfinae
6449   {
6450
6451     struct foo {};
6452
6453     template<typename T>
6454     using member = typename T::member_type;
6455
6456     template<typename T>
6457     void func(...) {}
6458
6459     template<typename T>
6460     void func(member<T>*) {}
6461
6462     void test();
6463
6464     void test() { func<foo>(0); }
6465
6466   }
6467
6468 }  // namespace cxx11
6469
6470 #endif  // __cplusplus >= 201103L
6471
6472
6473
6474 _ACEOF
6475 if ac_fn_cxx_try_compile "$LINENO"; then :
6476   eval $cachevar=yes
6477 else
6478   eval $cachevar=no
6479 fi
6480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481            CXX="$ac_save_CXX"
6482 fi
6483 eval ac_res=\$$cachevar
6484                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6485 $as_echo "$ac_res" >&6; }
6486         if eval test x\$$cachevar = xyes; then
6487           CXX="$CXX $switch"
6488           if test -n "$CXXCPP" ; then
6489             CXXCPP="$CXXCPP $switch"
6490           fi
6491           ac_success=yes
6492           break
6493         fi
6494       done
6495       if test x$ac_success = xyes; then
6496         break
6497       fi
6498     done
6499   fi
6500
6501   ac_ext=c
6502 ac_cpp='$CPP $CPPFLAGS'
6503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6506
6507   if test x$ax_cxx_compile_cxx11_required = xtrue; then
6508     if test x$ac_success = xno; then
6509       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6510     fi
6511   fi
6512   if test x$ac_success = xno; then
6513     HAVE_CXX11=0
6514     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6515 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6516   else
6517     HAVE_CXX11=1
6518
6519 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6520
6521   fi
6522
6523
6524
6525   if test "${build}" != "${host}"; then
6526       ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
6527   ac_ext=cpp
6528 ac_cpp='$CXXCPP $CPPFLAGS'
6529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6532   ac_success=no
6533       ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6534     ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6535     ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6536     CXX="$CXX_FOR_BUILD"
6537     CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6538     CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6539       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6540 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6541 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6542   $as_echo_n "(cached) " >&6
6543 else
6544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h.  */
6546
6547
6548 // If the compiler admits that it is not ready for C++11, why torture it?
6549 // Hopefully, this will speed up the test.
6550
6551 #ifndef __cplusplus
6552
6553 #error "This is not a C++ compiler"
6554
6555 #elif __cplusplus < 201103L
6556
6557 #error "This is not a C++11 compiler"
6558
6559 #else
6560
6561 namespace cxx11
6562 {
6563
6564   namespace test_static_assert
6565   {
6566
6567     template <typename T>
6568     struct check
6569     {
6570       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6571     };
6572
6573   }
6574
6575   namespace test_final_override
6576   {
6577
6578     struct Base
6579     {
6580       virtual ~Base() {}
6581       virtual void f() {}
6582     };
6583
6584     struct Derived : public Base
6585     {
6586       virtual ~Derived() override {}
6587       virtual void f() override {}
6588     };
6589
6590   }
6591
6592   namespace test_double_right_angle_brackets
6593   {
6594
6595     template < typename T >
6596     struct check {};
6597
6598     typedef check<void> single_type;
6599     typedef check<check<void>> double_type;
6600     typedef check<check<check<void>>> triple_type;
6601     typedef check<check<check<check<void>>>> quadruple_type;
6602
6603   }
6604
6605   namespace test_decltype
6606   {
6607
6608     int
6609     f()
6610     {
6611       int a = 1;
6612       decltype(a) b = 2;
6613       return a + b;
6614     }
6615
6616   }
6617
6618   namespace test_type_deduction
6619   {
6620
6621     template < typename T1, typename T2 >
6622     struct is_same
6623     {
6624       static const bool value = false;
6625     };
6626
6627     template < typename T >
6628     struct is_same<T, T>
6629     {
6630       static const bool value = true;
6631     };
6632
6633     template < typename T1, typename T2 >
6634     auto
6635     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6636     {
6637       return a1 + a2;
6638     }
6639
6640     int
6641     test(const int c, volatile int v)
6642     {
6643       static_assert(is_same<int, decltype(0)>::value == true, "");
6644       static_assert(is_same<int, decltype(c)>::value == false, "");
6645       static_assert(is_same<int, decltype(v)>::value == false, "");
6646       auto ac = c;
6647       auto av = v;
6648       auto sumi = ac + av + 'x';
6649       auto sumf = ac + av + 1.0;
6650       static_assert(is_same<int, decltype(ac)>::value == true, "");
6651       static_assert(is_same<int, decltype(av)>::value == true, "");
6652       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6653       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6654       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6655       return (sumf > 0.0) ? sumi : add(c, v);
6656     }
6657
6658   }
6659
6660   namespace test_noexcept
6661   {
6662
6663     int f() { return 0; }
6664     int g() noexcept { return 0; }
6665
6666     static_assert(noexcept(f()) == false, "");
6667     static_assert(noexcept(g()) == true, "");
6668
6669   }
6670
6671   namespace test_constexpr
6672   {
6673
6674     template < typename CharT >
6675     unsigned long constexpr
6676     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6677     {
6678       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6679     }
6680
6681     template < typename CharT >
6682     unsigned long constexpr
6683     strlen_c(const CharT *const s) noexcept
6684     {
6685       return strlen_c_r(s, 0UL);
6686     }
6687
6688     static_assert(strlen_c("") == 0UL, "");
6689     static_assert(strlen_c("1") == 1UL, "");
6690     static_assert(strlen_c("example") == 7UL, "");
6691     static_assert(strlen_c("another\0example") == 7UL, "");
6692
6693   }
6694
6695   namespace test_rvalue_references
6696   {
6697
6698     template < int N >
6699     struct answer
6700     {
6701       static constexpr int value = N;
6702     };
6703
6704     answer<1> f(int&)       { return answer<1>(); }
6705     answer<2> f(const int&) { return answer<2>(); }
6706     answer<3> f(int&&)      { return answer<3>(); }
6707
6708     void
6709     test()
6710     {
6711       int i = 0;
6712       const int c = 0;
6713       static_assert(decltype(f(i))::value == 1, "");
6714       static_assert(decltype(f(c))::value == 2, "");
6715       static_assert(decltype(f(0))::value == 3, "");
6716     }
6717
6718   }
6719
6720   namespace test_uniform_initialization
6721   {
6722
6723     struct test
6724     {
6725       static const int zero {};
6726       static const int one {1};
6727     };
6728
6729     static_assert(test::zero == 0, "");
6730     static_assert(test::one == 1, "");
6731
6732   }
6733
6734   namespace test_lambdas
6735   {
6736
6737     void
6738     test1()
6739     {
6740       auto lambda1 = [](){};
6741       auto lambda2 = lambda1;
6742       lambda1();
6743       lambda2();
6744     }
6745
6746     int
6747     test2()
6748     {
6749       auto a = [](int i, int j){ return i + j; }(1, 2);
6750       auto b = []() -> int { return '0'; }();
6751       auto c = [=](){ return a + b; }();
6752       auto d = [&](){ return c; }();
6753       auto e = [a, &b](int x) mutable {
6754         const auto identity = [](int y){ return y; };
6755         for (auto i = 0; i < a; ++i)
6756           a += b--;
6757         return x + identity(a + b);
6758       }(0);
6759       return a + b + c + d + e;
6760     }
6761
6762     int
6763     test3()
6764     {
6765       const auto nullary = [](){ return 0; };
6766       const auto unary = [](int x){ return x; };
6767       using nullary_t = decltype(nullary);
6768       using unary_t = decltype(unary);
6769       const auto higher1st = [](nullary_t f){ return f(); };
6770       const auto higher2nd = [unary](nullary_t f1){
6771         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6772       };
6773       return higher1st(nullary) + higher2nd(nullary)(unary);
6774     }
6775
6776   }
6777
6778   namespace test_variadic_templates
6779   {
6780
6781     template <int...>
6782     struct sum;
6783
6784     template <int N0, int... N1toN>
6785     struct sum<N0, N1toN...>
6786     {
6787       static constexpr auto value = N0 + sum<N1toN...>::value;
6788     };
6789
6790     template <>
6791     struct sum<>
6792     {
6793       static constexpr auto value = 0;
6794     };
6795
6796     static_assert(sum<>::value == 0, "");
6797     static_assert(sum<1>::value == 1, "");
6798     static_assert(sum<23>::value == 23, "");
6799     static_assert(sum<1, 2>::value == 3, "");
6800     static_assert(sum<5, 5, 11>::value == 21, "");
6801     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6802
6803   }
6804
6805   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6806   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6807   // because of this.
6808   namespace test_template_alias_sfinae
6809   {
6810
6811     struct foo {};
6812
6813     template<typename T>
6814     using member = typename T::member_type;
6815
6816     template<typename T>
6817     void func(...) {}
6818
6819     template<typename T>
6820     void func(member<T>*) {}
6821
6822     void test();
6823
6824     void test() { func<foo>(0); }
6825
6826   }
6827
6828 }  // namespace cxx11
6829
6830 #endif  // __cplusplus >= 201103L
6831
6832
6833
6834 _ACEOF
6835 if ac_fn_cxx_try_compile "$LINENO"; then :
6836   ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
6837 else
6838   ax_cv_cxx_compile_cxx11_FOR_BUILD=no
6839 fi
6840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6841 fi
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
6843 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
6844     if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
6845       ac_success=yes
6846     fi
6847
6848     if test x$ac_success = xno; then
6849     for alternative in ${ax_cxx_compile_alternatives}; do
6850       switch="-std=gnu++${alternative}"
6851       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
6852       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6853 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6854 if eval \${$cachevar+:} false; then :
6855   $as_echo_n "(cached) " >&6
6856 else
6857   ac_save_CXX="$CXX"
6858          CXX="$CXX $switch"
6859          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h.  */
6861
6862
6863 // If the compiler admits that it is not ready for C++11, why torture it?
6864 // Hopefully, this will speed up the test.
6865
6866 #ifndef __cplusplus
6867
6868 #error "This is not a C++ compiler"
6869
6870 #elif __cplusplus < 201103L
6871
6872 #error "This is not a C++11 compiler"
6873
6874 #else
6875
6876 namespace cxx11
6877 {
6878
6879   namespace test_static_assert
6880   {
6881
6882     template <typename T>
6883     struct check
6884     {
6885       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6886     };
6887
6888   }
6889
6890   namespace test_final_override
6891   {
6892
6893     struct Base
6894     {
6895       virtual ~Base() {}
6896       virtual void f() {}
6897     };
6898
6899     struct Derived : public Base
6900     {
6901       virtual ~Derived() override {}
6902       virtual void f() override {}
6903     };
6904
6905   }
6906
6907   namespace test_double_right_angle_brackets
6908   {
6909
6910     template < typename T >
6911     struct check {};
6912
6913     typedef check<void> single_type;
6914     typedef check<check<void>> double_type;
6915     typedef check<check<check<void>>> triple_type;
6916     typedef check<check<check<check<void>>>> quadruple_type;
6917
6918   }
6919
6920   namespace test_decltype
6921   {
6922
6923     int
6924     f()
6925     {
6926       int a = 1;
6927       decltype(a) b = 2;
6928       return a + b;
6929     }
6930
6931   }
6932
6933   namespace test_type_deduction
6934   {
6935
6936     template < typename T1, typename T2 >
6937     struct is_same
6938     {
6939       static const bool value = false;
6940     };
6941
6942     template < typename T >
6943     struct is_same<T, T>
6944     {
6945       static const bool value = true;
6946     };
6947
6948     template < typename T1, typename T2 >
6949     auto
6950     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6951     {
6952       return a1 + a2;
6953     }
6954
6955     int
6956     test(const int c, volatile int v)
6957     {
6958       static_assert(is_same<int, decltype(0)>::value == true, "");
6959       static_assert(is_same<int, decltype(c)>::value == false, "");
6960       static_assert(is_same<int, decltype(v)>::value == false, "");
6961       auto ac = c;
6962       auto av = v;
6963       auto sumi = ac + av + 'x';
6964       auto sumf = ac + av + 1.0;
6965       static_assert(is_same<int, decltype(ac)>::value == true, "");
6966       static_assert(is_same<int, decltype(av)>::value == true, "");
6967       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6968       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6969       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6970       return (sumf > 0.0) ? sumi : add(c, v);
6971     }
6972
6973   }
6974
6975   namespace test_noexcept
6976   {
6977
6978     int f() { return 0; }
6979     int g() noexcept { return 0; }
6980
6981     static_assert(noexcept(f()) == false, "");
6982     static_assert(noexcept(g()) == true, "");
6983
6984   }
6985
6986   namespace test_constexpr
6987   {
6988
6989     template < typename CharT >
6990     unsigned long constexpr
6991     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6992     {
6993       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6994     }
6995
6996     template < typename CharT >
6997     unsigned long constexpr
6998     strlen_c(const CharT *const s) noexcept
6999     {
7000       return strlen_c_r(s, 0UL);
7001     }
7002
7003     static_assert(strlen_c("") == 0UL, "");
7004     static_assert(strlen_c("1") == 1UL, "");
7005     static_assert(strlen_c("example") == 7UL, "");
7006     static_assert(strlen_c("another\0example") == 7UL, "");
7007
7008   }
7009
7010   namespace test_rvalue_references
7011   {
7012
7013     template < int N >
7014     struct answer
7015     {
7016       static constexpr int value = N;
7017     };
7018
7019     answer<1> f(int&)       { return answer<1>(); }
7020     answer<2> f(const int&) { return answer<2>(); }
7021     answer<3> f(int&&)      { return answer<3>(); }
7022
7023     void
7024     test()
7025     {
7026       int i = 0;
7027       const int c = 0;
7028       static_assert(decltype(f(i))::value == 1, "");
7029       static_assert(decltype(f(c))::value == 2, "");
7030       static_assert(decltype(f(0))::value == 3, "");
7031     }
7032
7033   }
7034
7035   namespace test_uniform_initialization
7036   {
7037
7038     struct test
7039     {
7040       static const int zero {};
7041       static const int one {1};
7042     };
7043
7044     static_assert(test::zero == 0, "");
7045     static_assert(test::one == 1, "");
7046
7047   }
7048
7049   namespace test_lambdas
7050   {
7051
7052     void
7053     test1()
7054     {
7055       auto lambda1 = [](){};
7056       auto lambda2 = lambda1;
7057       lambda1();
7058       lambda2();
7059     }
7060
7061     int
7062     test2()
7063     {
7064       auto a = [](int i, int j){ return i + j; }(1, 2);
7065       auto b = []() -> int { return '0'; }();
7066       auto c = [=](){ return a + b; }();
7067       auto d = [&](){ return c; }();
7068       auto e = [a, &b](int x) mutable {
7069         const auto identity = [](int y){ return y; };
7070         for (auto i = 0; i < a; ++i)
7071           a += b--;
7072         return x + identity(a + b);
7073       }(0);
7074       return a + b + c + d + e;
7075     }
7076
7077     int
7078     test3()
7079     {
7080       const auto nullary = [](){ return 0; };
7081       const auto unary = [](int x){ return x; };
7082       using nullary_t = decltype(nullary);
7083       using unary_t = decltype(unary);
7084       const auto higher1st = [](nullary_t f){ return f(); };
7085       const auto higher2nd = [unary](nullary_t f1){
7086         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7087       };
7088       return higher1st(nullary) + higher2nd(nullary)(unary);
7089     }
7090
7091   }
7092
7093   namespace test_variadic_templates
7094   {
7095
7096     template <int...>
7097     struct sum;
7098
7099     template <int N0, int... N1toN>
7100     struct sum<N0, N1toN...>
7101     {
7102       static constexpr auto value = N0 + sum<N1toN...>::value;
7103     };
7104
7105     template <>
7106     struct sum<>
7107     {
7108       static constexpr auto value = 0;
7109     };
7110
7111     static_assert(sum<>::value == 0, "");
7112     static_assert(sum<1>::value == 1, "");
7113     static_assert(sum<23>::value == 23, "");
7114     static_assert(sum<1, 2>::value == 3, "");
7115     static_assert(sum<5, 5, 11>::value == 21, "");
7116     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7117
7118   }
7119
7120   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7121   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7122   // because of this.
7123   namespace test_template_alias_sfinae
7124   {
7125
7126     struct foo {};
7127
7128     template<typename T>
7129     using member = typename T::member_type;
7130
7131     template<typename T>
7132     void func(...) {}
7133
7134     template<typename T>
7135     void func(member<T>*) {}
7136
7137     void test();
7138
7139     void test() { func<foo>(0); }
7140
7141   }
7142
7143 }  // namespace cxx11
7144
7145 #endif  // __cplusplus >= 201103L
7146
7147
7148
7149 _ACEOF
7150 if ac_fn_cxx_try_compile "$LINENO"; then :
7151   eval $cachevar=yes
7152 else
7153   eval $cachevar=no
7154 fi
7155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7156          CXX="$ac_save_CXX"
7157 fi
7158 eval ac_res=\$$cachevar
7159                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7160 $as_echo "$ac_res" >&6; }
7161       if eval test x\$$cachevar = xyes; then
7162         CXX="$CXX $switch"
7163         if test -n "$CXXCPP" ; then
7164           CXXCPP="$CXXCPP $switch"
7165         fi
7166         ac_success=yes
7167         break
7168       fi
7169     done
7170   fi
7171
7172     if test x$ac_success = xno; then
7173                 for alternative in ${ax_cxx_compile_alternatives}; do
7174       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7175         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7176         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7177 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7178 if eval \${$cachevar+:} false; then :
7179   $as_echo_n "(cached) " >&6
7180 else
7181   ac_save_CXX="$CXX"
7182            CXX="$CXX $switch"
7183            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h.  */
7185
7186
7187 // If the compiler admits that it is not ready for C++11, why torture it?
7188 // Hopefully, this will speed up the test.
7189
7190 #ifndef __cplusplus
7191
7192 #error "This is not a C++ compiler"
7193
7194 #elif __cplusplus < 201103L
7195
7196 #error "This is not a C++11 compiler"
7197
7198 #else
7199
7200 namespace cxx11
7201 {
7202
7203   namespace test_static_assert
7204   {
7205
7206     template <typename T>
7207     struct check
7208     {
7209       static_assert(sizeof(int) <= sizeof(T), "not big enough");
7210     };
7211
7212   }
7213
7214   namespace test_final_override
7215   {
7216
7217     struct Base
7218     {
7219       virtual ~Base() {}
7220       virtual void f() {}
7221     };
7222
7223     struct Derived : public Base
7224     {
7225       virtual ~Derived() override {}
7226       virtual void f() override {}
7227     };
7228
7229   }
7230
7231   namespace test_double_right_angle_brackets
7232   {
7233
7234     template < typename T >
7235     struct check {};
7236
7237     typedef check<void> single_type;
7238     typedef check<check<void>> double_type;
7239     typedef check<check<check<void>>> triple_type;
7240     typedef check<check<check<check<void>>>> quadruple_type;
7241
7242   }
7243
7244   namespace test_decltype
7245   {
7246
7247     int
7248     f()
7249     {
7250       int a = 1;
7251       decltype(a) b = 2;
7252       return a + b;
7253     }
7254
7255   }
7256
7257   namespace test_type_deduction
7258   {
7259
7260     template < typename T1, typename T2 >
7261     struct is_same
7262     {
7263       static const bool value = false;
7264     };
7265
7266     template < typename T >
7267     struct is_same<T, T>
7268     {
7269       static const bool value = true;
7270     };
7271
7272     template < typename T1, typename T2 >
7273     auto
7274     add(T1 a1, T2 a2) -> decltype(a1 + a2)
7275     {
7276       return a1 + a2;
7277     }
7278
7279     int
7280     test(const int c, volatile int v)
7281     {
7282       static_assert(is_same<int, decltype(0)>::value == true, "");
7283       static_assert(is_same<int, decltype(c)>::value == false, "");
7284       static_assert(is_same<int, decltype(v)>::value == false, "");
7285       auto ac = c;
7286       auto av = v;
7287       auto sumi = ac + av + 'x';
7288       auto sumf = ac + av + 1.0;
7289       static_assert(is_same<int, decltype(ac)>::value == true, "");
7290       static_assert(is_same<int, decltype(av)>::value == true, "");
7291       static_assert(is_same<int, decltype(sumi)>::value == true, "");
7292       static_assert(is_same<int, decltype(sumf)>::value == false, "");
7293       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7294       return (sumf > 0.0) ? sumi : add(c, v);
7295     }
7296
7297   }
7298
7299   namespace test_noexcept
7300   {
7301
7302     int f() { return 0; }
7303     int g() noexcept { return 0; }
7304
7305     static_assert(noexcept(f()) == false, "");
7306     static_assert(noexcept(g()) == true, "");
7307
7308   }
7309
7310   namespace test_constexpr
7311   {
7312
7313     template < typename CharT >
7314     unsigned long constexpr
7315     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7316     {
7317       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7318     }
7319
7320     template < typename CharT >
7321     unsigned long constexpr
7322     strlen_c(const CharT *const s) noexcept
7323     {
7324       return strlen_c_r(s, 0UL);
7325     }
7326
7327     static_assert(strlen_c("") == 0UL, "");
7328     static_assert(strlen_c("1") == 1UL, "");
7329     static_assert(strlen_c("example") == 7UL, "");
7330     static_assert(strlen_c("another\0example") == 7UL, "");
7331
7332   }
7333
7334   namespace test_rvalue_references
7335   {
7336
7337     template < int N >
7338     struct answer
7339     {
7340       static constexpr int value = N;
7341     };
7342
7343     answer<1> f(int&)       { return answer<1>(); }
7344     answer<2> f(const int&) { return answer<2>(); }
7345     answer<3> f(int&&)      { return answer<3>(); }
7346
7347     void
7348     test()
7349     {
7350       int i = 0;
7351       const int c = 0;
7352       static_assert(decltype(f(i))::value == 1, "");
7353       static_assert(decltype(f(c))::value == 2, "");
7354       static_assert(decltype(f(0))::value == 3, "");
7355     }
7356
7357   }
7358
7359   namespace test_uniform_initialization
7360   {
7361
7362     struct test
7363     {
7364       static const int zero {};
7365       static const int one {1};
7366     };
7367
7368     static_assert(test::zero == 0, "");
7369     static_assert(test::one == 1, "");
7370
7371   }
7372
7373   namespace test_lambdas
7374   {
7375
7376     void
7377     test1()
7378     {
7379       auto lambda1 = [](){};
7380       auto lambda2 = lambda1;
7381       lambda1();
7382       lambda2();
7383     }
7384
7385     int
7386     test2()
7387     {
7388       auto a = [](int i, int j){ return i + j; }(1, 2);
7389       auto b = []() -> int { return '0'; }();
7390       auto c = [=](){ return a + b; }();
7391       auto d = [&](){ return c; }();
7392       auto e = [a, &b](int x) mutable {
7393         const auto identity = [](int y){ return y; };
7394         for (auto i = 0; i < a; ++i)
7395           a += b--;
7396         return x + identity(a + b);
7397       }(0);
7398       return a + b + c + d + e;
7399     }
7400
7401     int
7402     test3()
7403     {
7404       const auto nullary = [](){ return 0; };
7405       const auto unary = [](int x){ return x; };
7406       using nullary_t = decltype(nullary);
7407       using unary_t = decltype(unary);
7408       const auto higher1st = [](nullary_t f){ return f(); };
7409       const auto higher2nd = [unary](nullary_t f1){
7410         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7411       };
7412       return higher1st(nullary) + higher2nd(nullary)(unary);
7413     }
7414
7415   }
7416
7417   namespace test_variadic_templates
7418   {
7419
7420     template <int...>
7421     struct sum;
7422
7423     template <int N0, int... N1toN>
7424     struct sum<N0, N1toN...>
7425     {
7426       static constexpr auto value = N0 + sum<N1toN...>::value;
7427     };
7428
7429     template <>
7430     struct sum<>
7431     {
7432       static constexpr auto value = 0;
7433     };
7434
7435     static_assert(sum<>::value == 0, "");
7436     static_assert(sum<1>::value == 1, "");
7437     static_assert(sum<23>::value == 23, "");
7438     static_assert(sum<1, 2>::value == 3, "");
7439     static_assert(sum<5, 5, 11>::value == 21, "");
7440     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7441
7442   }
7443
7444   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7445   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7446   // because of this.
7447   namespace test_template_alias_sfinae
7448   {
7449
7450     struct foo {};
7451
7452     template<typename T>
7453     using member = typename T::member_type;
7454
7455     template<typename T>
7456     void func(...) {}
7457
7458     template<typename T>
7459     void func(member<T>*) {}
7460
7461     void test();
7462
7463     void test() { func<foo>(0); }
7464
7465   }
7466
7467 }  // namespace cxx11
7468
7469 #endif  // __cplusplus >= 201103L
7470
7471
7472
7473 _ACEOF
7474 if ac_fn_cxx_try_compile "$LINENO"; then :
7475   eval $cachevar=yes
7476 else
7477   eval $cachevar=no
7478 fi
7479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7480            CXX="$ac_save_CXX"
7481 fi
7482 eval ac_res=\$$cachevar
7483                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7484 $as_echo "$ac_res" >&6; }
7485         if eval test x\$$cachevar = xyes; then
7486           CXX="$CXX $switch"
7487           if test -n "$CXXCPP" ; then
7488             CXXCPP="$CXXCPP $switch"
7489           fi
7490           ac_success=yes
7491           break
7492         fi
7493       done
7494       if test x$ac_success = xyes; then
7495         break
7496       fi
7497     done
7498   fi
7499       CXX_FOR_BUILD="$CXX"
7500     CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7501     CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7502     CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7503     CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7504     CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7505   ac_ext=c
7506 ac_cpp='$CPP $CPPFLAGS'
7507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7510
7511   if test x$ax_cxx_compile_cxx11_required = xtrue; then
7512     if test x$ac_success = xno; then
7513       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7514     fi
7515   fi
7516   if test x$ac_success = xno; then
7517     HAVE_CXX11_FOR_BUILD=0
7518     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7519 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7520   else
7521     HAVE_CXX11_FOR_BUILD=1
7522
7523 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7524
7525   fi
7526
7527
7528   fi
7529 fi
7530
7531 # Used for setting $lt_cv_objdir
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7533 $as_echo_n "checking for objdir... " >&6; }
7534 if ${lt_cv_objdir+:} false; then :
7535   $as_echo_n "(cached) " >&6
7536 else
7537   rm -f .libs 2>/dev/null
7538 mkdir .libs 2>/dev/null
7539 if test -d .libs; then
7540   lt_cv_objdir=.libs
7541 else
7542   # MS-DOS does not allow filenames that begin with a dot.
7543   lt_cv_objdir=_libs
7544 fi
7545 rmdir .libs 2>/dev/null
7546 fi
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7548 $as_echo "$lt_cv_objdir" >&6; }
7549 objdir=$lt_cv_objdir
7550
7551
7552
7553
7554
7555 cat >>confdefs.h <<_ACEOF
7556 #define LT_OBJDIR "$lt_cv_objdir/"
7557 _ACEOF
7558
7559
7560
7561 # Check for GMP, MPFR and MPC
7562 gmplibs="-lmpc -lmpfr -lgmp"
7563 gmpinc=
7564 have_gmp=no
7565
7566 # Specify a location for mpc
7567 # check for this first so it ends up on the link line before mpfr.
7568
7569 # Check whether --with-mpc was given.
7570 if test "${with_mpc+set}" = set; then :
7571   withval=$with_mpc;
7572 fi
7573
7574
7575 # Check whether --with-mpc-include was given.
7576 if test "${with_mpc_include+set}" = set; then :
7577   withval=$with_mpc_include;
7578 fi
7579
7580
7581 # Check whether --with-mpc-lib was given.
7582 if test "${with_mpc_lib+set}" = set; then :
7583   withval=$with_mpc_lib;
7584 fi
7585
7586
7587 if test "x$with_mpc" != x; then
7588   gmplibs="-L$with_mpc/lib $gmplibs"
7589   gmpinc="-I$with_mpc/include $gmpinc"
7590 fi
7591 if test "x$with_mpc_include" != x; then
7592   gmpinc="-I$with_mpc_include $gmpinc"
7593 fi
7594 if test "x$with_mpc_lib" != x; then
7595   gmplibs="-L$with_mpc_lib $gmplibs"
7596 fi
7597 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7598   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7599   gmpinc='-I$$s/mpc/src '"$gmpinc"
7600   # Do not test the mpc version.  Assume that it is sufficient, since
7601   # it is in the source tree, and the library has not been built yet
7602   # but it would be included on the link line in the version check below
7603   # hence making the test fail.
7604   have_gmp=yes
7605 fi
7606
7607 # Specify a location for mpfr
7608 # check for this first so it ends up on the link line before gmp.
7609
7610 # Check whether --with-mpfr-dir was given.
7611 if test "${with_mpfr_dir+set}" = set; then :
7612   withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
7613 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7614 fi
7615
7616
7617
7618 # Check whether --with-mpfr was given.
7619 if test "${with_mpfr+set}" = set; then :
7620   withval=$with_mpfr;
7621 fi
7622
7623
7624 # Check whether --with-mpfr-include was given.
7625 if test "${with_mpfr_include+set}" = set; then :
7626   withval=$with_mpfr_include;
7627 fi
7628
7629
7630 # Check whether --with-mpfr-lib was given.
7631 if test "${with_mpfr_lib+set}" = set; then :
7632   withval=$with_mpfr_lib;
7633 fi
7634
7635
7636 if test "x$with_mpfr" != x; then
7637   gmplibs="-L$with_mpfr/lib $gmplibs"
7638   gmpinc="-I$with_mpfr/include $gmpinc"
7639 fi
7640 if test "x$with_mpfr_include" != x; then
7641   gmpinc="-I$with_mpfr_include $gmpinc"
7642 fi
7643 if test "x$with_mpfr_lib" != x; then
7644   gmplibs="-L$with_mpfr_lib $gmplibs"
7645 fi
7646 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7647   # MPFR v3.1.0 moved the sources into a src sub-directory.
7648   if ! test -d ${srcdir}/mpfr/src; then
7649     as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7650   fi
7651   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7652   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7653   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7654   # Do not test the mpfr version.  Assume that it is sufficient, since
7655   # it is in the source tree, and the library has not been built yet
7656   # but it would be included on the link line in the version check below
7657   # hence making the test fail.
7658   have_gmp=yes
7659 fi
7660
7661 # Specify a location for gmp
7662
7663 # Check whether --with-gmp-dir was given.
7664 if test "${with_gmp_dir+set}" = set; then :
7665   withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
7666 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7667 fi
7668
7669
7670
7671 # Check whether --with-gmp was given.
7672 if test "${with_gmp+set}" = set; then :
7673   withval=$with_gmp;
7674 fi
7675
7676
7677 # Check whether --with-gmp-include was given.
7678 if test "${with_gmp_include+set}" = set; then :
7679   withval=$with_gmp_include;
7680 fi
7681
7682
7683 # Check whether --with-gmp-lib was given.
7684 if test "${with_gmp_lib+set}" = set; then :
7685   withval=$with_gmp_lib;
7686 fi
7687
7688
7689
7690 if test "x$with_gmp" != x; then
7691   gmplibs="-L$with_gmp/lib $gmplibs"
7692   gmpinc="-I$with_gmp/include $gmpinc"
7693 fi
7694 if test "x$with_gmp_include" != x; then
7695   gmpinc="-I$with_gmp_include $gmpinc"
7696 fi
7697 if test "x$with_gmp_lib" != x; then
7698   gmplibs="-L$with_gmp_lib $gmplibs"
7699 fi
7700 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
7701   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
7702   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
7703   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7704   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7705   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
7706   # Do not test the gmp version.  Assume that it is sufficient, since
7707   # it is in the source tree, and the library has not been built yet
7708   # but it would be included on the link line in the version check below
7709   # hence making the test fail.
7710   have_gmp=yes
7711 fi
7712
7713 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
7714   have_gmp=yes
7715   saved_CFLAGS="$CFLAGS"
7716   CFLAGS="$CFLAGS $gmpinc"
7717   # Check for the recommended and required versions of GMP.
7718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
7719 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
7720
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h.  */
7723 #include "gmp.h"
7724 int
7725 main ()
7726 {
7727
7728   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7729   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7730   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
7731   choke me
7732   #endif
7733
7734   ;
7735   return 0;
7736 }
7737 _ACEOF
7738 if ac_fn_c_try_compile "$LINENO"; then :
7739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h.  */
7741 #include <gmp.h>
7742 int
7743 main ()
7744 {
7745
7746   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7747   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7748   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
7749   choke me
7750   #endif
7751
7752   ;
7753   return 0;
7754 }
7755 _ACEOF
7756 if ac_fn_c_try_compile "$LINENO"; then :
7757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7758 $as_echo "yes" >&6; }
7759 else
7760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7761 $as_echo "buggy but acceptable" >&6; }
7762 fi
7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764 else
7765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }; have_gmp=no
7767 fi
7768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7769
7770   # If we have GMP, check the MPFR version.
7771   if test x"$have_gmp" = xyes; then
7772     # Check for the recommended and required versions of MPFR.
7773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
7774 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
7775     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h.  */
7777 #include <gmp.h>
7778     #include <mpfr.h>
7779 int
7780 main ()
7781 {
7782
7783     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
7784     choke me
7785     #endif
7786
7787   ;
7788   return 0;
7789 }
7790 _ACEOF
7791 if ac_fn_c_try_compile "$LINENO"; then :
7792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793 /* end confdefs.h.  */
7794 #include <gmp.h>
7795     #include <mpfr.h>
7796 int
7797 main ()
7798 {
7799
7800     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
7801     choke me
7802     #endif
7803
7804   ;
7805   return 0;
7806 }
7807 _ACEOF
7808 if ac_fn_c_try_compile "$LINENO"; then :
7809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7810 $as_echo "yes" >&6; }
7811 else
7812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7813 $as_echo "buggy but acceptable" >&6; }
7814 fi
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 else
7817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }; have_gmp=no
7819 fi
7820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821   fi
7822
7823   # Check for the MPC header version.
7824   if test x"$have_gmp" = xyes ; then
7825     # Check for the recommended and required versions of MPC.
7826     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
7827 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
7828     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h.  */
7830 #include <mpc.h>
7831 int
7832 main ()
7833 {
7834
7835     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
7836     choke me
7837     #endif
7838
7839   ;
7840   return 0;
7841 }
7842 _ACEOF
7843 if ac_fn_c_try_compile "$LINENO"; then :
7844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h.  */
7846 #include <mpc.h>
7847 int
7848 main ()
7849 {
7850
7851     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
7852     choke me
7853     #endif
7854
7855   ;
7856   return 0;
7857 }
7858 _ACEOF
7859 if ac_fn_c_try_compile "$LINENO"; then :
7860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7861 $as_echo "yes" >&6; }
7862 else
7863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7864 $as_echo "buggy but acceptable" >&6; }
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 else
7868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }; have_gmp=no
7870 fi
7871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872   fi
7873
7874   # Now check the MPFR library.
7875   if test x"$have_gmp" = xyes; then
7876     saved_LIBS="$LIBS"
7877     LIBS="$LIBS $gmplibs"
7878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
7879 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
7880     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7881 /* end confdefs.h.  */
7882 #include <mpc.h>
7883 int
7884 main ()
7885 {
7886
7887     mpfr_t n;
7888     mpfr_t x;
7889     mpc_t c;
7890     int t;
7891     mpfr_init (n);
7892     mpfr_init (x);
7893     mpfr_atan2 (n, n, x, MPFR_RNDN);
7894     mpfr_erfc (n, x, MPFR_RNDN);
7895     mpfr_subnormalize (x, t, MPFR_RNDN);
7896     mpfr_clear(n);
7897     mpfr_clear(x);
7898     mpc_init2 (c, 53);
7899     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
7900     mpc_cosh (c, c, MPC_RNDNN);
7901     mpc_pow (c, c, c, MPC_RNDNN);
7902     mpc_acosh (c, c, MPC_RNDNN);
7903     mpc_clear (c);
7904
7905   ;
7906   return 0;
7907 }
7908 _ACEOF
7909 if ac_fn_c_try_link "$LINENO"; then :
7910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7911 $as_echo "yes" >&6; }
7912 else
7913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }; have_gmp=no
7915 fi
7916 rm -f core conftest.err conftest.$ac_objext \
7917     conftest$ac_exeext conftest.$ac_ext
7918     LIBS="$saved_LIBS"
7919   fi
7920
7921   CFLAGS="$saved_CFLAGS"
7922
7923 # The library versions listed in the error message below should match
7924 # the HARD-minimums enforced above.
7925   if test x$have_gmp != xyes; then
7926     as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
7927 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
7928 their locations.  Source code for these libraries can be found at
7929 their respective hosting sites as well as at
7930 https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
7931 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
7932 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
7933 make sure that you have installed both the libraries and the header
7934 files.  They may be located in separate packages." "$LINENO" 5
7935   fi
7936 fi
7937
7938 # Flags needed for both GMP, MPFR and/or MPC.
7939
7940
7941
7942
7943
7944
7945
7946 # Libraries to use for stage1 or when not bootstrapping.
7947
7948 # Check whether --with-stage1-libs was given.
7949 if test "${with_stage1_libs+set}" = set; then :
7950   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
7951    stage1_libs=
7952  else
7953    stage1_libs=$withval
7954  fi
7955 else
7956   stage1_libs=
7957 fi
7958
7959
7960
7961 # Whether or not to use -static-libstdc++ and -static-libgcc.  The
7962 # default is yes if gcc is being built; no otherwise.  The reason for
7963 # this default is that gdb is sometimes linked against GNU Source
7964 # Highlight, which is a shared library that uses C++ exceptions.  In
7965 # this case, -static-libstdc++ will cause crashes.
7966
7967 # Check whether --with-static-standard-libraries was given.
7968 if test "${with_static_standard_libraries+set}" = set; then :
7969   withval=$with_static_standard_libraries;
7970 else
7971   with_static_standard_libraries=auto
7972 fi
7973
7974 if test "$with_static_standard_libraries" = auto; then
7975   with_static_standard_libraries=$have_compiler
7976 fi
7977
7978 # Linker flags to use for stage1 or when not bootstrapping.
7979
7980 # Check whether --with-stage1-ldflags was given.
7981 if test "${with_stage1_ldflags+set}" = set; then :
7982   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
7983    stage1_ldflags=
7984  else
7985    stage1_ldflags=$withval
7986  fi
7987 else
7988   stage1_ldflags=
7989  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
7990  # if supported.  But if the user explicitly specified the libraries to use,
7991  # trust that they are doing what they want.
7992  if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
7993      -a "$have_static_libs" = yes; then
7994    stage1_ldflags="-static-libstdc++ -static-libgcc"
7995  fi
7996 fi
7997
7998
7999
8000 # Libraries to use for stage2 and later builds.
8001
8002 # Check whether --with-boot-libs was given.
8003 if test "${with_boot_libs+set}" = set; then :
8004   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8005    poststage1_libs=
8006  else
8007    poststage1_libs=$withval
8008  fi
8009 else
8010   poststage1_libs=
8011 fi
8012
8013
8014
8015 # Linker flags to use for stage2 and later builds.
8016
8017 # Check whether --with-boot-ldflags was given.
8018 if test "${with_boot_ldflags+set}" = set; then :
8019   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8020    poststage1_ldflags=
8021  else
8022    poststage1_ldflags=$withval
8023  fi
8024 else
8025   poststage1_ldflags=
8026  # In stages 2 and 3, default to linking libstdc++ and libgcc
8027  # statically.  But if the user explicitly specified the libraries to
8028  # use, trust that they are doing what they want.
8029  if test "$poststage1_libs" = ""; then
8030    poststage1_ldflags="-static-libstdc++ -static-libgcc"
8031  fi
8032 fi
8033
8034
8035
8036 # GCC GRAPHITE dependency isl.
8037 # Basic setup is inlined here, actual checks are in config/isl.m4
8038
8039
8040 # Check whether --with-isl was given.
8041 if test "${with_isl+set}" = set; then :
8042   withval=$with_isl;
8043 fi
8044
8045
8046 # Treat --without-isl as a request to disable
8047 # GRAPHITE support and skip all following checks.
8048 if test "x$with_isl" != "xno"; then
8049   # Check for isl
8050
8051
8052 # Check whether --with-isl-include was given.
8053 if test "${with_isl_include+set}" = set; then :
8054   withval=$with_isl_include;
8055 fi
8056
8057
8058 # Check whether --with-isl-lib was given.
8059 if test "${with_isl_lib+set}" = set; then :
8060   withval=$with_isl_lib;
8061 fi
8062
8063
8064   # Check whether --enable-isl-version-check was given.
8065 if test "${enable_isl_version_check+set}" = set; then :
8066   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8067 else
8068   ENABLE_ISL_CHECK=yes
8069 fi
8070
8071
8072   # Initialize isllibs and islinc.
8073   case $with_isl in
8074     no)
8075       isllibs=
8076       islinc=
8077       ;;
8078     "" | yes)
8079       ;;
8080     *)
8081       isllibs="-L$with_isl/lib"
8082       islinc="-I$with_isl/include"
8083       ;;
8084   esac
8085   if test "x${with_isl_include}" != x ; then
8086     islinc="-I$with_isl_include"
8087   fi
8088   if test "x${with_isl_lib}" != x; then
8089     isllibs="-L$with_isl_lib"
8090   fi
8091         if test "x${islinc}" = x && test "x${isllibs}" = x \
8092      && test -d ${srcdir}/isl; then
8093     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8094     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8095     ENABLE_ISL_CHECK=no
8096     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8097 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8098   fi
8099
8100   isllibs="${isllibs} -lisl"
8101
8102
8103
8104   if test "${ENABLE_ISL_CHECK}" = yes ; then
8105     _isl_saved_CFLAGS=$CFLAGS
8106     _isl_saved_LDFLAGS=$LDFLAGS
8107     _isl_saved_LIBS=$LIBS
8108
8109     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8110     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8111     LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8112
8113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8114 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8115     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116 /* end confdefs.h.  */
8117 #include <isl/schedule.h>
8118 int
8119 main ()
8120 {
8121 isl_options_set_schedule_serialize_sccs (NULL, 0);
8122   ;
8123   return 0;
8124 }
8125 _ACEOF
8126 if ac_fn_c_try_link "$LINENO"; then :
8127   gcc_cv_isl=yes
8128 else
8129   gcc_cv_isl=no
8130 fi
8131 rm -f core conftest.err conftest.$ac_objext \
8132     conftest$ac_exeext conftest.$ac_ext
8133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8134 $as_echo "$gcc_cv_isl" >&6; }
8135
8136     if test "${gcc_cv_isl}" = no ; then
8137       { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8138 $as_echo "required isl version is 0.15 or later" >&6; }
8139     fi
8140
8141     CFLAGS=$_isl_saved_CFLAGS
8142     LDFLAGS=$_isl_saved_LDFLAGS
8143     LIBS=$_isl_saved_LIBS
8144   fi
8145
8146
8147
8148
8149
8150
8151   if test "x${with_isl}" = xno; then
8152     graphite_requested=no
8153   elif test "x${with_isl}" != x \
8154     || test "x${with_isl_include}" != x \
8155     || test "x${with_isl_lib}" != x ; then
8156     graphite_requested=yes
8157   else
8158     graphite_requested=no
8159   fi
8160
8161
8162
8163   if test "${gcc_cv_isl}" = no ; then
8164     isllibs=
8165     islinc=
8166   fi
8167
8168   if test "${graphite_requested}" = yes \
8169     && test "x${isllibs}" = x \
8170     && test "x${islinc}" = x ; then
8171
8172     as_fn_error $? "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
8173   fi
8174
8175
8176 fi
8177
8178 # If the isl check failed, disable builds of in-tree variant of isl
8179 if test "x$with_isl" = xno ||
8180    test "x$gcc_cv_isl" = xno; then
8181   noconfigdirs="$noconfigdirs isl"
8182   islinc=
8183 fi
8184
8185
8186
8187
8188 # Check for LTO support.
8189 # Check whether --enable-lto was given.
8190 if test "${enable_lto+set}" = set; then :
8191   enableval=$enable_lto; enable_lto=$enableval
8192 else
8193   enable_lto=yes; default_enable_lto=yes
8194 fi
8195
8196
8197
8198
8199
8200 target_elf=no
8201 case $target in
8202   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8203   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8204   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8205   nvptx-*-none)
8206     target_elf=no
8207     ;;
8208   *)
8209     target_elf=yes
8210     ;;
8211 esac
8212
8213 if test $target_elf = yes; then :
8214   # ELF platforms build the lto-plugin always.
8215   build_lto_plugin=yes
8216
8217 else
8218   if test x"$default_enable_lto" = x"yes" ; then
8219     case $target in
8220       *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8221       # On other non-ELF platforms, LTO has yet to be validated.
8222       *) enable_lto=no ;;
8223     esac
8224   else
8225   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8226   # It would also be nice to check the binutils support, but we don't
8227   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
8228   # warn during gcc/ subconfigure; unless you're bootstrapping with
8229   # -flto it won't be needed until after installation anyway.
8230     case $target in
8231       *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8232       *) if test x"$enable_lto" = x"yes"; then
8233         as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8234         fi
8235       ;;
8236     esac
8237   fi
8238   # Among non-ELF, only Windows platforms support the lto-plugin so far.
8239   # Build it unless LTO was explicitly disabled.
8240   case $target in
8241     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8242     *) ;;
8243   esac
8244
8245 fi
8246
8247
8248 # Check whether --enable-linker-plugin-configure-flags was given.
8249 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8250   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8251 else
8252   extra_linker_plugin_configure_flags=
8253 fi
8254
8255
8256 # Check whether --enable-linker-plugin-flags was given.
8257 if test "${enable_linker_plugin_flags+set}" = set; then :
8258   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8259 else
8260   extra_linker_plugin_flags=
8261 fi
8262
8263
8264
8265 # Enable --enable-host-shared.
8266 # Checked early to determine whether jit is an 'all' language
8267 # Check whether --enable-host-shared was given.
8268 if test "${enable_host_shared+set}" = set; then :
8269   enableval=$enable_host_shared; host_shared=$enableval
8270 else
8271   host_shared=no
8272 fi
8273
8274
8275
8276 # By default, C and C++ are the only stage 1 languages.
8277 stage1_languages=,c,
8278
8279 # Target libraries that we bootstrap.
8280 bootstrap_target_libs=,target-libgcc,
8281
8282 # Figure out what language subdirectories are present.
8283 # Look if the user specified --enable-languages="..."; if not, use
8284 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8285 # go away some day.
8286 # NB:  embedded tabs in this IF block -- do not untabify
8287 if test -d ${srcdir}/gcc; then
8288   if test x"${enable_languages+set}" != xset; then
8289     if test x"${LANGUAGES+set}" = xset; then
8290       enable_languages="${LANGUAGES}"
8291         echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8292     else
8293       enable_languages=default
8294     fi
8295   else
8296     if test x"${enable_languages}" = x ||
8297        test x"${enable_languages}" = xyes;
8298        then
8299       echo configure.ac: --enable-languages needs at least one language argument 1>&2
8300       exit 1
8301     fi
8302   fi
8303   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
8304
8305   # 'f95' is the old name for the 'fortran' language. We issue a warning
8306   # and make the substitution.
8307   case ,${enable_languages}, in
8308     *,f95,*)
8309       echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8310       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8311       ;;
8312   esac
8313
8314   # If bootstrapping, C++ must be enabled.
8315   case ",$enable_languages,:$enable_bootstrap" in
8316     *,c++,*:*) ;;
8317     *:yes)
8318       if test -f ${srcdir}/gcc/cp/config-lang.in; then
8319         enable_languages="${enable_languages},c++"
8320       else
8321         as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8322       fi
8323       ;;
8324   esac
8325
8326   # First scan to see if an enabled language requires some other language.
8327   # We assume that a given config-lang.in will list all the language
8328   # front ends it requires, even if some are required indirectly.
8329   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8330     case ${lang_frag} in
8331       ..) ;;
8332       # The odd quoting in the next line works around
8333       # an apparent bug in bash 1.12 on linux.
8334       ${srcdir}/gcc/[*]/config-lang.in) ;;
8335       *)
8336         # From the config-lang.in, get $language, $lang_requires, and
8337         # $lang_requires_boot_languages.
8338         language=
8339         lang_requires=
8340         lang_requires_boot_languages=
8341         # set srcdir during sourcing lang_frag to the gcc dir.
8342         # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8343         # polutes this shell
8344         saved_srcdir=${srcdir}
8345         srcdir=${srcdir}/gcc . ${lang_frag}
8346         srcdir=${saved_srcdir}
8347         for other in ${lang_requires} ${lang_requires_boot_languages}; do
8348           case ,${enable_languages}, in
8349             *,$other,*) ;;
8350             *,default,*) ;;
8351             *,all,*) ;;
8352             *,$language,*)
8353               echo " \`$other' language required by \`$language'; enabling" 1>&2
8354               enable_languages="${enable_languages},${other}"
8355               ;;
8356           esac
8357         done
8358         for other in ${lang_requires_boot_languages} ; do
8359           if test "$other" != "c"; then
8360             case ,${enable_stage1_languages}, in
8361               *,$other,*) ;;
8362               *,default,*) ;;
8363               *,all,*) ;;
8364               *)
8365                 case ,${enable_languages}, in
8366                   *,$language,*)
8367                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8368                     enable_stage1_languages="$enable_stage1_languages,${other}"
8369                     ;;
8370                 esac
8371                 ;;
8372             esac
8373           fi
8374         done
8375         ;;
8376     esac
8377   done
8378
8379   new_enable_languages=,c,
8380
8381   # If LTO is enabled, add the LTO front end.
8382   if test "$enable_lto" = "yes" ; then
8383     case ,${enable_languages}, in
8384       *,lto,*) ;;
8385       *) enable_languages="${enable_languages},lto" ;;
8386     esac
8387     if test "${build_lto_plugin}" = "yes" ; then
8388       configdirs="$configdirs lto-plugin"
8389     fi
8390   fi
8391
8392   # If we're building an offloading compiler, add the LTO front end.
8393   if test x"$enable_as_accelerator_for" != x ; then
8394     case ,${enable_languages}, in
8395       *,lto,*) ;;
8396       *) enable_languages="${enable_languages},lto" ;;
8397     esac
8398   fi
8399
8400   missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8401   potential_languages=,c,
8402
8403   enabled_target_libs=
8404   disabled_target_libs=
8405
8406   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8407     case ${lang_frag} in
8408       ..) ;;
8409       # The odd quoting in the next line works around
8410       # an apparent bug in bash 1.12 on linux.
8411       ${srcdir}/gcc/[*]/config-lang.in) ;;
8412       *)
8413         # From the config-lang.in, get $language, $target_libs,
8414         # $lang_dirs, $boot_language, and $build_by_default
8415         language=
8416         target_libs=
8417         lang_dirs=
8418         subdir_requires=
8419         boot_language=no
8420         build_by_default=yes
8421         # set srcdir during sourcing.  See above about save & restore
8422         saved_srcdir=${srcdir}
8423         srcdir=${srcdir}/gcc . ${lang_frag}
8424         srcdir=${saved_srcdir}
8425         if test x${language} = x; then
8426           echo "${lang_frag} doesn't set \$language." 1>&2
8427           exit 1
8428         fi
8429
8430         if test "$language" = "c++"; then
8431           boot_language=yes
8432         fi
8433
8434         add_this_lang=no
8435         # C is always enabled, so no need to add it again
8436         if test "$language" != "c"; then
8437           case ,${enable_languages}, in
8438             *,${language},*)
8439               # Language was explicitly selected; include it
8440               add_this_lang=yes
8441               ;;
8442             *,all,*)
8443               # All languages are enabled
8444               add_this_lang=all
8445               ;;
8446             *,default,*)
8447               # 'default' was selected, select it if it is a default language
8448               add_this_lang=${build_by_default}
8449               ;;
8450           esac
8451         fi
8452
8453         # Disable languages that need other directories if these aren't available.
8454         for i in $subdir_requires; do
8455           test -f "$srcdir/gcc/$i/config-lang.in" && continue
8456           case ${add_this_lang} in
8457             yes)
8458               # Specifically requested language; tell them.
8459               as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8460               ;;
8461             all)
8462               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8463 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8464               add_this_lang=unsupported
8465               ;;
8466             *)
8467               # Silently disable.
8468               add_this_lang=unsupported
8469               ;;
8470           esac
8471         done
8472
8473         # Disable Ada if no preexisting GNAT is available.
8474         case ${add_this_lang}:${language}:${have_gnat} in
8475           yes:ada:no)
8476             # Specifically requested language; tell them.
8477             as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8478             ;;
8479           all:ada:no)
8480             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8481 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8482             add_this_lang=unsupported
8483             ;;
8484           *:ada:no)
8485             # Silently disable.
8486             add_this_lang=unsupported
8487             ;;
8488         esac
8489
8490         # Disable jit if -enable-host-shared not specified
8491         # but not if building for Mingw. All code in Windows
8492         # is position independent code (PIC).
8493         case $target in
8494           *mingw*) ;;
8495           *)
8496           case ${add_this_lang}:${language}:${host_shared} in
8497             yes:jit:no)
8498                    # PR jit/64780: explicitly specify --enable-host-shared
8499             as_fn_error $? "
8500 Enabling language \"jit\" requires --enable-host-shared.
8501
8502 --enable-host-shared typically slows the rest of the compiler down by
8503 a few %, so you must explicitly enable it.
8504
8505 If you want to build both the jit and the regular compiler, it is often
8506 best to do this via two separate configure/builds, in separate
8507 directories, to avoid imposing the performance cost of
8508 --enable-host-shared on the regular compiler." "$LINENO" 5
8509                     ;;
8510             all:jit:no)
8511               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8512 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8513               add_this_lang=unsupported
8514               ;;
8515             *:jit:no)
8516               # Silently disable.
8517               add_this_lang=unsupported
8518               ;;
8519                 esac
8520           ;;
8521         esac
8522
8523         # Disable a language that is unsupported by the target.
8524         case "${add_this_lang}: $unsupported_languages " in
8525           no:*) ;;
8526           unsupported:*) ;;
8527           *:*" $language "*)
8528             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8529 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8530             add_this_lang=unsupported
8531             ;;
8532         esac
8533
8534         case $add_this_lang in
8535           unsupported)
8536             # Remove language-dependent dirs.
8537             disabled_target_libs="$disabled_target_libs $target_libs"
8538             noconfigdirs="$noconfigdirs $lang_dirs"
8539             ;;
8540           no)
8541             # Remove language-dependent dirs; still show language as supported.
8542             disabled_target_libs="$disabled_target_libs $target_libs"
8543             noconfigdirs="$noconfigdirs $lang_dirs"
8544             potential_languages="${potential_languages}${language},"
8545             ;;
8546           all|yes)
8547             new_enable_languages="${new_enable_languages}${language},"
8548             potential_languages="${potential_languages}${language},"
8549             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8550             enabled_target_libs="$enabled_target_libs $target_libs"
8551             case "${boot_language}:,$enable_stage1_languages," in
8552               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8553                 # Add to (comma-separated) list of stage 1 languages.
8554                 case ",$stage1_languages," in
8555                   *,$language,* | ,yes, | ,all,) ;;
8556                   *) stage1_languages="${stage1_languages}${language}," ;;
8557                 esac
8558                 # We need to bootstrap any supporting libraries.
8559                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
8560                 ;;
8561             esac
8562             ;;
8563         esac
8564         ;;
8565     esac
8566   done
8567
8568   # Add target libraries which are only needed for disabled languages
8569   # to noconfigdirs.
8570   if test -n "$disabled_target_libs"; then
8571     for dir in $disabled_target_libs; do
8572       case " $enabled_target_libs " in
8573       *" ${dir} "*) ;;
8574       *) noconfigdirs="$noconfigdirs $dir" ;;
8575       esac
8576     done
8577   fi
8578
8579   # Check whether --enable-stage1-languages was given.
8580 if test "${enable_stage1_languages+set}" = set; then :
8581   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8582     ,no,|,,)
8583       # Set it to something that will have no effect in the loop below
8584       enable_stage1_languages=c ;;
8585     ,yes,)
8586       enable_stage1_languages=`echo $new_enable_languages | \
8587         sed -e "s/^,//" -e "s/,$//" ` ;;
8588     *,all,*)
8589       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8590         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8591   esac
8592
8593   # Add "good" languages from enable_stage1_languages to stage1_languages,
8594   # while "bad" languages go in missing_languages.  Leave no duplicates.
8595   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8596     case $potential_languages in
8597       *,$i,*)
8598         case $stage1_languages in
8599           *,$i,*) ;;
8600           *) stage1_languages="$stage1_languages$i," ;;
8601         esac ;;
8602       *)
8603         case $missing_languages in
8604           *,$i,*) ;;
8605           *) missing_languages="$missing_languages$i," ;;
8606         esac ;;
8607      esac
8608   done
8609 fi
8610
8611
8612   # Remove leading/trailing commas that were added for simplicity
8613   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8614   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8615   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8616   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8617
8618   if test "x$missing_languages" != x; then
8619     as_fn_error $? "
8620 The following requested languages could not be built: ${missing_languages}
8621 Supported languages are: ${potential_languages}" "$LINENO" 5
8622   fi
8623   if test "x$new_enable_languages" != "x$enable_languages"; then
8624     echo The following languages will be built: ${new_enable_languages}
8625     enable_languages="$new_enable_languages"
8626   fi
8627
8628
8629   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8630 fi
8631
8632 # Handle --disable-<component> generically.
8633 for dir in $configdirs $build_configdirs $target_configdirs ; do
8634   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8635   varname=`echo $dirname | sed -e s/+/_/g`
8636   if eval test x\${enable_${varname}} "=" xno ; then
8637     noconfigdirs="$noconfigdirs $dir"
8638   fi
8639 done
8640
8641 # Check for Boehm's garbage collector
8642 # Check whether --enable-objc-gc was given.
8643 if test "${enable_objc_gc+set}" = set; then :
8644   enableval=$enable_objc_gc;
8645 fi
8646
8647
8648 # Check whether --with-target-bdw-gc was given.
8649 if test "${with_target_bdw_gc+set}" = set; then :
8650   withval=$with_target_bdw_gc;
8651 fi
8652
8653
8654 # Check whether --with-target-bdw-gc-include was given.
8655 if test "${with_target_bdw_gc_include+set}" = set; then :
8656   withval=$with_target_bdw_gc_include;
8657 fi
8658
8659
8660 # Check whether --with-target-bdw-gc-lib was given.
8661 if test "${with_target_bdw_gc_lib+set}" = set; then :
8662   withval=$with_target_bdw_gc_lib;
8663 fi
8664
8665
8666 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8668 $as_echo_n "checking for bdw garbage collector... " >&6; }
8669   if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
8670         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8671 $as_echo "using bdw-gc in default locations" >&6; }
8672   else
8673         if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
8674       as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
8675     elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
8676       as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
8677     else
8678       { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8679 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8680     fi
8681   fi
8682 esac
8683
8684 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8685 case ,${enable_languages}, in
8686   *,c++,*)
8687     # Disable libitm, libsanitizer if we're not building libstdc++
8688     case "${noconfigdirs}" in
8689       *target-libstdc++-v3*)
8690         noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
8691         ;;
8692       *) ;;
8693     esac
8694     ;;
8695   *)
8696     noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
8697     ;;
8698 esac
8699
8700 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8701 # $build_configdirs and $target_configdirs.
8702 # If we have the source for $noconfigdirs entries, add them to $notsupp.
8703
8704 notsupp=""
8705 for dir in . $skipdirs $noconfigdirs ; do
8706   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8707   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8708     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
8709     if test -r $srcdir/$dirname/configure ; then
8710       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8711         true
8712       else
8713         notsupp="$notsupp $dir"
8714       fi
8715     fi
8716   fi
8717   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8718     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
8719     if test -r $srcdir/$dirname/configure ; then
8720       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8721         true
8722       else
8723         notsupp="$notsupp $dir"
8724       fi
8725     fi
8726   fi
8727   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8728     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
8729     if test -r $srcdir/$dirname/configure ; then
8730       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8731         true
8732       else
8733         notsupp="$notsupp $dir"
8734       fi
8735     fi
8736   fi
8737 done
8738
8739 # Quietly strip out all directories which aren't configurable in this tree.
8740 # This relies on all configurable subdirectories being autoconfiscated, which
8741 # is now the case.
8742 build_configdirs_all="$build_configdirs"
8743 build_configdirs=
8744 for i in ${build_configdirs_all} ; do
8745   j=`echo $i | sed -e s/build-//g`
8746   if test -f ${srcdir}/$j/configure ; then
8747     build_configdirs="${build_configdirs} $i"
8748   fi
8749 done
8750
8751 configdirs_all="$configdirs"
8752 configdirs=
8753 for i in ${configdirs_all} ; do
8754   if test -f ${srcdir}/$i/configure ; then
8755     configdirs="${configdirs} $i"
8756   fi
8757 done
8758
8759 target_configdirs_all="$target_configdirs"
8760 target_configdirs=
8761 for i in ${target_configdirs_all} ; do
8762   j=`echo $i | sed -e s/target-//g`
8763   if test -f ${srcdir}/$j/configure ; then
8764     target_configdirs="${target_configdirs} $i"
8765   fi
8766 done
8767
8768 # libiberty-linker-plugin is special: it doesn't have its own source directory,
8769 # so we have to add it after the preceding checks.
8770 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
8771 then
8772   case " $configdirs " in
8773     *" libiberty "*)
8774       # If we can build libiberty, we can also build libiberty-linker-plugin.
8775       configdirs="$configdirs libiberty-linker-plugin"
8776       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
8777         --with-libiberty=../libiberty-linker-plugin";;
8778     *)
8779       as_fn_error $? "libiberty missing" "$LINENO" 5;;
8780   esac
8781 fi
8782
8783 # Sometimes we have special requirements for the host libiberty.
8784 extra_host_libiberty_configure_flags=
8785 extra_host_zlib_configure_flags=
8786 case " $configdirs " in
8787   *" lto-plugin "* | *" libcc1 "*)
8788     # When these are to be built as shared libraries, the same applies to
8789     # libiberty.
8790     extra_host_libiberty_configure_flags=--enable-shared
8791     ;;
8792   *" bfd "*)
8793     # When bfd is to be built as a shared library, the same applies to
8794     # zlib.
8795     if test "$enable_shared" = "yes"; then
8796       extra_host_zlib_configure_flags=--enable-host-shared
8797     fi
8798     ;;
8799 esac
8800
8801
8802
8803 # Produce a warning message for the subdirs we can't configure.
8804 # This isn't especially interesting in the Cygnus tree, but in the individual
8805 # FSF releases, it's important to let people know when their machine isn't
8806 # supported by the one or two programs in a package.
8807
8808 if test -n "${notsupp}" && test -z "${norecursion}" ; then
8809   # If $appdirs is non-empty, at least one of those directories must still
8810   # be configured, or we error out.  (E.g., if the gas release supports a
8811   # specified target in some subdirs but not the gas subdir, we shouldn't
8812   # pretend that all is well.)
8813   if test -n "$appdirs" ; then
8814     for dir in $appdirs ; do
8815       if test -r $dir/Makefile.in ; then
8816         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8817           appdirs=""
8818           break
8819         fi
8820         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
8821           appdirs=""
8822           break
8823         fi
8824       fi
8825     done
8826     if test -n "$appdirs" ; then
8827       echo "*** This configuration is not supported by this package." 1>&2
8828       exit 1
8829     fi
8830   fi
8831   # Okay, some application will build, or we don't care to check.  Still
8832   # notify of subdirs not getting built.
8833   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
8834   echo "    ${notsupp}" 1>&2
8835   echo "    (Any other directories should still work fine.)" 1>&2
8836 fi
8837
8838 case "$host" in
8839   *msdosdjgpp*)
8840     enable_gdbtk=no ;;
8841 esac
8842
8843 # To find our prefix, in gcc_cv_tool_prefix.
8844
8845 # The user is always right.
8846 if test "${PATH_SEPARATOR+set}" != set; then
8847   echo "#! /bin/sh" >conf$$.sh
8848   echo  "exit 0"   >>conf$$.sh
8849   chmod +x conf$$.sh
8850   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8851     PATH_SEPARATOR=';'
8852   else
8853     PATH_SEPARATOR=:
8854   fi
8855   rm -f conf$$.sh
8856 fi
8857
8858
8859   get_gcc_base_ver="cat"
8860
8861 # Check whether --with-gcc-major-version-only was given.
8862 if test "${with_gcc_major_version_only+set}" = set; then :
8863   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
8864         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
8865       fi
8866
8867 fi
8868
8869
8870
8871
8872
8873
8874 if test "x$exec_prefix" = xNONE; then
8875         if test "x$prefix" = xNONE; then
8876                 gcc_cv_tool_prefix=$ac_default_prefix
8877         else
8878                 gcc_cv_tool_prefix=$prefix
8879         fi
8880 else
8881         gcc_cv_tool_prefix=$exec_prefix
8882 fi
8883
8884 # If there is no compiler in the tree, use the PATH only.  In any
8885 # case, if there is no compiler in the tree nobody should use
8886 # AS_FOR_TARGET and LD_FOR_TARGET.
8887 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
8888     if test x$with_gcc_major_version_only = xyes ; then
8889                 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
8890             else
8891         gcc_version=`cat $srcdir/gcc/BASE-VER`
8892     fi
8893     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
8894     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
8895     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
8896     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
8897     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
8898     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
8899 else
8900     gcc_cv_tool_dirs=
8901 fi
8902
8903 if test x$build = x$target && test -n "$md_exec_prefix"; then
8904         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
8905 fi
8906
8907
8908
8909 copy_dirs=
8910
8911
8912 # Check whether --with-build-sysroot was given.
8913 if test "${with_build_sysroot+set}" = set; then :
8914   withval=$with_build_sysroot; if test x"$withval" != x ; then
8915      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
8916    fi
8917 else
8918   SYSROOT_CFLAGS_FOR_TARGET=
8919 fi
8920
8921
8922
8923
8924 # Check whether --with-debug-prefix-map was given.
8925 if test "${with_debug_prefix_map+set}" = set; then :
8926   withval=$with_debug_prefix_map; if test x"$withval" != x; then
8927      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
8928      for debug_map in $withval; do
8929        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
8930      done
8931    fi
8932 else
8933   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
8934 fi
8935
8936
8937
8938 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
8939 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
8940 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
8941 # We want to ensure that TARGET libraries (which we know are built with
8942 # gcc) are built with "-O2 -g", so include those options when setting
8943 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
8944 if test "x$CFLAGS_FOR_TARGET" = x; then
8945   if test "x${is_cross_compiler}" = xyes; then
8946     CFLAGS_FOR_TARGET="-g -O2"
8947   else
8948     CFLAGS_FOR_TARGET=$CFLAGS
8949     case " $CFLAGS " in
8950       *" -O2 "*) ;;
8951       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
8952     esac
8953     case " $CFLAGS " in
8954       *" -g "* | *" -g3 "*) ;;
8955       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
8956     esac
8957   fi
8958 fi
8959
8960
8961 if test "x$CXXFLAGS_FOR_TARGET" = x; then
8962   if test "x${is_cross_compiler}" = xyes; then
8963     CXXFLAGS_FOR_TARGET="-g -O2"
8964   else
8965     CXXFLAGS_FOR_TARGET=$CXXFLAGS
8966     case " $CXXFLAGS " in
8967       *" -O2 "*) ;;
8968       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
8969     esac
8970     case " $CXXFLAGS " in
8971       *" -g "* | *" -g3 "*) ;;
8972       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
8973     esac
8974   fi
8975 fi
8976
8977
8978
8979
8980 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
8981 # the named directory are copied to $(tooldir)/sys-include.
8982 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
8983   if test x${is_cross_compiler} = xno ; then
8984     echo 1>&2 '***' --with-headers is only supported when cross compiling
8985     exit 1
8986   fi
8987   if test x"${with_headers}" != xyes ; then
8988     x=${gcc_cv_tool_prefix}
8989     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
8990   fi
8991 fi
8992
8993 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
8994 # the name directories are copied to $(tooldir)/lib.  Multiple directories
8995 # are permitted.
8996 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
8997   if test x${is_cross_compiler} = xno ; then
8998     echo 1>&2 '***' --with-libs is only supported when cross compiling
8999     exit 1
9000   fi
9001   if test x"${with_libs}" != xyes ; then
9002     # Copy the libraries in reverse order, so that files in the first named
9003     # library override files in subsequent libraries.
9004     x=${gcc_cv_tool_prefix}
9005     for l in ${with_libs}; do
9006       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9007     done
9008   fi
9009 fi
9010
9011 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9012 #
9013 # This is done by determining whether or not the appropriate directory
9014 # is available, and by checking whether or not specific configurations
9015 # have requested that this magic not happen.
9016 #
9017 # The command line options always override the explicit settings in
9018 # configure.ac, and the settings in configure.ac override this magic.
9019 #
9020 # If the default for a toolchain is to use GNU as and ld, and you don't
9021 # want to do that, then you should use the --without-gnu-as and
9022 # --without-gnu-ld options for the configure script.  Similarly, if
9023 # the default is to use the included zlib and you don't want to do that,
9024 # you should use the --with-system-zlib option for the configure script.
9025
9026 if test x${use_gnu_as} = x &&
9027    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9028   with_gnu_as=yes
9029   extra_host_args="$extra_host_args --with-gnu-as"
9030 fi
9031
9032 if test x${use_gnu_ld} = x &&
9033    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9034   with_gnu_ld=yes
9035   extra_host_args="$extra_host_args --with-gnu-ld"
9036 fi
9037
9038 if test x${use_included_zlib} = x &&
9039    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9040   :
9041 else
9042   with_system_zlib=yes
9043   extra_host_args="$extra_host_args --with-system-zlib"
9044 fi
9045
9046 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9047 # can detect this case.
9048
9049 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9050   with_newlib=yes
9051   extra_host_args="$extra_host_args --with-newlib"
9052 fi
9053
9054 # Handle ${copy_dirs}
9055 set fnord ${copy_dirs}
9056 shift
9057 while test $# != 0 ; do
9058   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9059     :
9060   else
9061     echo Copying $1 to $2
9062
9063     # Use the install script to create the directory and all required
9064     # parent directories.
9065     if test -d $2 ; then
9066       :
9067     else
9068       echo >config.temp
9069       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9070     fi
9071
9072     # Copy the directory, assuming we have tar.
9073     # FIXME: Should we use B in the second tar?  Not all systems support it.
9074     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9075
9076     # It is the responsibility of the user to correctly adjust all
9077     # symlinks.  If somebody can figure out how to handle them correctly
9078     # here, feel free to add the code.
9079
9080     echo $1 > $2/COPIED
9081   fi
9082   shift; shift
9083 done
9084
9085 # Determine a target-dependent exec_prefix that the installed
9086 # gcc will search in.  Keep this list sorted by triplet, with
9087 # the *-*-osname triplets last.
9088 md_exec_prefix=
9089 case "${target}" in
9090   i[34567]86-pc-msdosdjgpp*)
9091     md_exec_prefix=/dev/env/DJDIR/bin
9092     ;;
9093   *-*-hpux* | \
9094   *-*-nto-qnx* | \
9095   *-*-solaris2*)
9096     md_exec_prefix=/usr/ccs/bin
9097     ;;
9098 esac
9099
9100 extra_arflags_for_target=
9101 extra_nmflags_for_target=
9102 extra_ranlibflags_for_target=
9103 target_makefile_frag=/dev/null
9104 case "${target}" in
9105   spu-*-*)
9106     target_makefile_frag="config/mt-spu"
9107     ;;
9108   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9109     target_makefile_frag="config/mt-sde"
9110     ;;
9111   mipsisa*-*-elfoabi*)
9112     target_makefile_frag="config/mt-mips-elfoabi"
9113     ;;
9114   mips*-*-*linux* | mips*-*-gnu*)
9115     target_makefile_frag="config/mt-mips-gnu"
9116     ;;
9117   nios2-*-elf*)
9118     target_makefile_frag="config/mt-nios2-elf"
9119     ;;
9120   *-*-linux-android*)
9121     target_makefile_frag="config/mt-android"
9122     ;;
9123   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9124     target_makefile_frag="config/mt-gnu"
9125     ;;
9126   *-*-aix4.[3456789]* | *-*-aix[56789].*)
9127     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9128     # commands to handle both 32-bit and 64-bit objects.  These flags are
9129     # harmless if we're using GNU nm or ar.
9130     extra_arflags_for_target=" -X32_64"
9131     extra_nmflags_for_target=" -B -X32_64"
9132     ;;
9133 esac
9134
9135 alphaieee_frag=/dev/null
9136 case $target in
9137   alpha*-*-*)
9138     # This just makes sure to use the -mieee option to build target libs.
9139     # This should probably be set individually by each library.
9140     alphaieee_frag="config/mt-alphaieee"
9141     ;;
9142 esac
9143
9144 # If --enable-target-optspace always use -Os instead of -O2 to build
9145 # the target libraries, similarly if it is not specified, use -Os
9146 # on selected platforms.
9147 ospace_frag=/dev/null
9148 case "${enable_target_optspace}:${target}" in
9149   yes:*)
9150     ospace_frag="config/mt-ospace"
9151     ;;
9152   :d30v-*)
9153     ospace_frag="config/mt-d30v"
9154     ;;
9155   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9156     ospace_frag="config/mt-ospace"
9157     ;;
9158   no:* | :*)
9159     ;;
9160   *)
9161     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9162     ;;
9163 esac
9164
9165 # Some systems (e.g., one of the i386-aix systems the gas testers are
9166 # using) don't handle "\$" correctly, so don't use it here.
9167 tooldir='${exec_prefix}'/${target_noncanonical}
9168 build_tooldir=${tooldir}
9169
9170 # Create a .gdbinit file which runs the one in srcdir
9171 # and tells GDB to look there for source files.
9172
9173 if test -r ${srcdir}/.gdbinit ; then
9174   case ${srcdir} in
9175     .) ;;
9176     *) cat > ./.gdbinit <<EOF
9177 # ${NO_EDIT}
9178 dir ${srcdir}
9179 dir .
9180 source ${srcdir}/.gdbinit
9181 EOF
9182     ;;
9183   esac
9184 fi
9185
9186 # Make sure that the compiler is able to generate an executable.  If it
9187 # can't, we are probably in trouble.  We don't care whether we can run the
9188 # executable--we might be using a cross compiler--we only care whether it
9189 # can be created.  At this point the main configure script has set CC.
9190 we_are_ok=no
9191 echo "int main () { return 0; }" > conftest.c
9192 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9193 if test $? = 0 ; then
9194   if test -s conftest || test -s conftest.exe ; then
9195     we_are_ok=yes
9196   fi
9197 fi
9198 case $we_are_ok in
9199   no)
9200     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9201     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9202     rm -f conftest*
9203     exit 1
9204     ;;
9205 esac
9206 rm -f conftest*
9207
9208 # Decide which environment variable is used to find dynamic libraries.
9209 case "${host}" in
9210   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9211   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9212   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9213   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9214 esac
9215
9216 # On systems where the dynamic library environment variable is PATH,
9217 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9218 # built executables to PATH.
9219 if test "$RPATH_ENVVAR" = PATH; then
9220   GCC_SHLIB_SUBDIR=/shlib
9221 else
9222   GCC_SHLIB_SUBDIR=
9223 fi
9224
9225 # Adjust the toplevel makefile according to whether bootstrap was selected.
9226 case $enable_bootstrap in
9227   yes)
9228     bootstrap_suffix=bootstrap
9229     BUILD_CONFIG=bootstrap-debug
9230     ;;
9231   no)
9232     bootstrap_suffix=no-bootstrap
9233     BUILD_CONFIG=
9234     ;;
9235 esac
9236
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9238 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9239
9240
9241 # Check whether --with-build-config was given.
9242 if test "${with_build_config+set}" = set; then :
9243   withval=$with_build_config; case $with_build_config in
9244    yes) with_build_config= ;;
9245    no) with_build_config= BUILD_CONFIG= ;;
9246    esac
9247 fi
9248
9249
9250 if test "x${with_build_config}" != x; then
9251   BUILD_CONFIG=$with_build_config
9252 else
9253   case $BUILD_CONFIG in
9254   bootstrap-debug)
9255     if echo "int f (void) { return 0; }" > conftest.c &&
9256        ${CC} -c conftest.c &&
9257        mv conftest.o conftest.o.g0 &&
9258        ${CC} -c -g conftest.c &&
9259        mv conftest.o conftest.o.g &&
9260        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9261       :
9262     else
9263       BUILD_CONFIG=
9264     fi
9265     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9266     ;;
9267   esac
9268 fi
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9270 $as_echo "$BUILD_CONFIG" >&6; }
9271
9272
9273 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9275 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9276 # Check whether --enable-vtable-verify was given.
9277 if test "${enable_vtable_verify+set}" = set; then :
9278   enableval=$enable_vtable_verify; case "$enableval" in
9279  yes) enable_vtable_verify=yes ;;
9280  no)  enable_vtable_verify=no ;;
9281  *)   enable_vtable_verify=no;;
9282  esac
9283 else
9284   enable_vtable_verify=no
9285 fi
9286
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9288 $as_echo "$enable_vtable_verify" >&6; }
9289
9290 # Record target_configdirs and the configure arguments for target and
9291 # build configuration in Makefile.
9292 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9293 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9294 bootstrap_fixincludes=no
9295
9296 # If we are building libgomp, bootstrap it.
9297 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9298   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9299 fi
9300
9301 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9302 # or bootstrap-ubsan, bootstrap it.
9303 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9304   case "$BUILD_CONFIG" in
9305     *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9306       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9307       bootstrap_fixincludes=yes
9308       ;;
9309   esac
9310 fi
9311
9312 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9313 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9314    test "$enable_vtable_verify" != no; then
9315   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9316 fi
9317
9318 # Determine whether gdb needs tk/tcl or not.
9319 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9320 # and in that case we want gdb to be built without tk.  Ugh!
9321 # In fact I believe gdb is the *only* package directly dependent on tk,
9322 # so we should be able to put the 'maybe's in unconditionally and
9323 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
9324 # 100% sure that that's safe though.
9325
9326 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9327 case "$enable_gdbtk" in
9328   no)
9329     GDB_TK="" ;;
9330   yes)
9331     GDB_TK="${gdb_tk}" ;;
9332   *)
9333     # Only add the dependency on gdbtk when GDBtk is part of the gdb
9334     # distro.  Eventually someone will fix this and move Insight, nee
9335     # gdbtk to a separate directory.
9336     if test -d ${srcdir}/gdb/gdbtk ; then
9337       GDB_TK="${gdb_tk}"
9338     else
9339       GDB_TK=""
9340     fi
9341     ;;
9342 esac
9343 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9344 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9345
9346 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9347 # else does, only include them if one of these is built.  The Makefile
9348 # provides the ordering, so it's enough here to add to the list.
9349 case " ${configdirs} " in
9350   *\ gdb\ *)
9351     configdirs="${configdirs} gnulib gdbsupport"
9352     ;;
9353   *\ gdbserver\ *)
9354     configdirs="${configdirs} gnulib gdbsupport"
9355     ;;
9356 esac
9357
9358 # Strip out unwanted targets.
9359
9360 # While at that, we remove Makefiles if we were started for recursive
9361 # configuration, so that the top-level Makefile reconfigures them,
9362 # like we used to do when configure itself was recursive.
9363
9364 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
9365 # but now we're fixing up the Makefile ourselves with the additional
9366 # commands passed to AC_CONFIG_FILES.  Use separate variables
9367 # extrasub-{build,host,target} not because there is any reason to split
9368 # the substitutions up that way, but only to remain below the limit of
9369 # 99 commands in a script, for HP-UX sed.
9370
9371 # Do not nest @if/@endif or @unless/@endunless pairs, because
9372 # configure will not warn you at all.
9373
9374 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9375   yes:yes:*\ gold\ *:*,c++,*) ;;
9376   yes:yes:*\ gold\ *:*)
9377     as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9378     ;;
9379 esac
9380
9381 extrasub_build=
9382 for module in ${build_configdirs} ; do
9383   if test -z "${no_recursion}" \
9384      && test -f ${build_subdir}/${module}/Makefile; then
9385     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9386     rm -f ${build_subdir}/${module}/Makefile
9387   fi
9388   extrasub_build="$extrasub_build
9389 /^@if build-$module\$/d
9390 /^@endif build-$module\$/d
9391 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9392 /^@if build-$module-$bootstrap_suffix\$/d
9393 /^@endif build-$module-$bootstrap_suffix\$/d
9394 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9395 done
9396 extrasub_host=
9397 for module in ${configdirs} ; do
9398   if test -z "${no_recursion}"; then
9399     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9400       if test -f ${file}; then
9401         echo 1>&2 "*** removing ${file} to force reconfigure"
9402         rm -f ${file}
9403       fi
9404     done
9405   fi
9406   case ${module},${bootstrap_fixincludes} in
9407     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9408     *) host_bootstrap_suffix=$bootstrap_suffix ;;
9409   esac
9410   extrasub_host="$extrasub_host
9411 /^@if $module\$/d
9412 /^@endif $module\$/d
9413 /^@unless $module\$/,/^@endunless $module\$/d
9414 /^@if $module-$host_bootstrap_suffix\$/d
9415 /^@endif $module-$host_bootstrap_suffix\$/d
9416 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9417 done
9418 extrasub_target=
9419 for module in ${target_configdirs} ; do
9420   if test -z "${no_recursion}" \
9421      && test -f ${target_subdir}/${module}/Makefile; then
9422     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9423     rm -f ${target_subdir}/${module}/Makefile
9424   fi
9425
9426   # We only bootstrap target libraries listed in bootstrap_target_libs.
9427   case $bootstrap_target_libs in
9428     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9429     *) target_bootstrap_suffix=no-bootstrap ;;
9430   esac
9431
9432   extrasub_target="$extrasub_target
9433 /^@if target-$module\$/d
9434 /^@endif target-$module\$/d
9435 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9436 /^@if target-$module-$target_bootstrap_suffix\$/d
9437 /^@endif target-$module-$target_bootstrap_suffix\$/d
9438 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9439 done
9440
9441 # Do the final fixup along with target modules.
9442 extrasub_target="$extrasub_target
9443 /^@if /,/^@endif /d
9444 /^@unless /d
9445 /^@endunless /d"
9446
9447 # Create the serialization dependencies.  This uses a temporary file.
9448
9449 # Check whether --enable-serial-configure was given.
9450 if test "${enable_serial_configure+set}" = set; then :
9451   enableval=$enable_serial_configure;
9452 fi
9453
9454
9455 case ${enable_serial_configure} in
9456   yes)
9457     enable_serial_build_configure=yes
9458     enable_serial_host_configure=yes
9459     enable_serial_target_configure=yes
9460     ;;
9461 esac
9462
9463 # These force 'configure's to be done one at a time, to avoid problems
9464 # with contention over a shared config.cache.
9465 rm -f serdep.tmp
9466 echo '# serdep.tmp' > serdep.tmp
9467 olditem=
9468 test "x${enable_serial_build_configure}" = xyes &&
9469 for item in ${build_configdirs} ; do
9470   case ${olditem} in
9471     "") ;;
9472     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9473   esac
9474   olditem=${item}
9475 done
9476 olditem=
9477 test "x${enable_serial_host_configure}" = xyes &&
9478 for item in ${configdirs} ; do
9479   case ${olditem} in
9480     "") ;;
9481     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9482   esac
9483   olditem=${item}
9484 done
9485 olditem=
9486 test "x${enable_serial_target_configure}" = xyes &&
9487 for item in ${target_configdirs} ; do
9488   case ${olditem} in
9489     "") ;;
9490     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9491   esac
9492   olditem=${item}
9493 done
9494 serialization_dependencies=serdep.tmp
9495
9496
9497 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
9498 # target, nonopt, and variable assignments.  These are the ones we
9499 # might not want to pass down to subconfigures.  The exception being
9500 # --cache-file=/dev/null, which is used to turn off the use of cache
9501 # files altogether, and which should be passed on to subconfigures.
9502 # Also strip program-prefix, program-suffix, and program-transform-name,
9503 # so that we can pass down a consistent program-transform-name.
9504 baseargs=
9505 tbaseargs=
9506 keep_next=no
9507 skip_next=no
9508 eval "set -- $ac_configure_args"
9509 for ac_arg
9510 do
9511   if test X"$skip_next" = X"yes"; then
9512     skip_next=no
9513     continue
9514   fi
9515   if test X"$keep_next" = X"yes"; then
9516     case $ac_arg in
9517       *\'*)
9518         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9519     esac
9520     baseargs="$baseargs '$ac_arg'"
9521     tbaseargs="$tbaseargs '$ac_arg'"
9522     keep_next=no
9523     continue
9524   fi
9525
9526   # Handle separated arguments.  Based on the logic generated by
9527   # autoconf 2.59.
9528   case $ac_arg in
9529     *=* | --config-cache | -C | -disable-* | --disable-* \
9530       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9531       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9532       | -with-* | --with-* | -without-* | --without-* | --x)
9533       separate_arg=no
9534       ;;
9535     -*)
9536       separate_arg=yes
9537       ;;
9538     *)
9539       separate_arg=no
9540       ;;
9541   esac
9542
9543   skip_targ=no
9544   case $ac_arg in
9545
9546   --with-* | --without-*)
9547     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9548
9549     case $libopt in
9550     *[-_]include)
9551       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9552       ;;
9553     *[-_]lib)
9554       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9555       ;;
9556     *)
9557       lib=$libopt
9558       ;;
9559     esac
9560
9561
9562     case $lib in
9563     mpc | mpfr | gmp | isl)
9564       # If we're processing --with-$lib, --with-$lib-include or
9565       # --with-$lib-lib, for one of the libs above, and target is
9566       # different from host, don't pass the current argument to any
9567       # target library's configure.
9568       if test x$is_cross_compiler = xyes; then
9569         skip_targ=yes
9570       fi
9571       ;;
9572     esac
9573     ;;
9574   esac
9575
9576   case "$ac_arg" in
9577     --cache-file=/dev/null | \
9578     -cache-file=/dev/null )
9579       # Handled here to avoid the test to skip args below.
9580       baseargs="$baseargs '$ac_arg'"
9581       tbaseargs="$tbaseargs '$ac_arg'"
9582       # Assert: $separate_arg should always be no.
9583       keep_next=$separate_arg
9584       ;;
9585     --no*)
9586       continue
9587       ;;
9588     --c* | \
9589     --sr* | \
9590     --ho* | \
9591     --bu* | \
9592     --t* | \
9593     --program-* | \
9594     -cache_file* | \
9595     -srcdir* | \
9596     -host* | \
9597     -build* | \
9598     -target* | \
9599     -program-prefix* | \
9600     -program-suffix* | \
9601     -program-transform-name* )
9602       skip_next=$separate_arg
9603       continue
9604       ;;
9605     -*)
9606       # An option.  Add it.
9607       case $ac_arg in
9608         *\'*)
9609           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9610       esac
9611       baseargs="$baseargs '$ac_arg'"
9612       if test X"$skip_targ" = Xno; then
9613         tbaseargs="$tbaseargs '$ac_arg'"
9614       fi
9615       keep_next=$separate_arg
9616       ;;
9617     *)
9618       # Either a variable assignment, or a nonopt (triplet).  Don't
9619       # pass it down; let the Makefile handle this.
9620       continue
9621       ;;
9622   esac
9623 done
9624 # Remove the initial space we just introduced and, as these will be
9625 # expanded by make, quote '$'.
9626 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9627
9628 # Add in --program-transform-name, after --program-prefix and
9629 # --program-suffix have been applied to it.  Autoconf has already
9630 # doubled dollar signs and backslashes in program_transform_name; we want
9631 # the backslashes un-doubled, and then the entire thing wrapped in single
9632 # quotes, because this will be expanded first by make and then by the shell.
9633 # Also, because we want to override the logic in subdir configure scripts to
9634 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9635 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9636 ${program_transform_name}
9637 EOF_SED
9638 gcc_transform_name=`cat conftestsed.out`
9639 rm -f conftestsed.out
9640 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
9641 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9642 if test "$silent" = yes; then
9643   baseargs="$baseargs --silent"
9644   tbaseargs="$tbaseargs --silent"
9645 fi
9646 baseargs="$baseargs --disable-option-checking"
9647 tbaseargs="$tbaseargs --disable-option-checking"
9648
9649 # Record and document user additions to sub configure arguments.
9650
9651
9652
9653
9654 # For the build-side libraries, we just need to pretend we're native,
9655 # and not use the same cache file.  Multilibs are neither needed nor
9656 # desired.  We can't even use the same cache file for all build-side
9657 # libraries, as they're compiled differently; some with C, some with
9658 # C++ or with different feature-enabling options.
9659 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
9660
9661 # For host modules, accept cache file option, or specification as blank.
9662 case "${cache_file}" in
9663 "") # empty
9664   cache_file_option="" ;;
9665 /* | [A-Za-z]:[\\/]* ) # absolute path
9666   cache_file_option="--cache-file=${cache_file}" ;;
9667 *) # relative path
9668   cache_file_option="--cache-file=../${cache_file}" ;;
9669 esac
9670
9671 # Host dirs don't like to share a cache file either, horribly enough.
9672 # This seems to be due to autoconf 2.5x stupidity.
9673 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
9674
9675 target_configargs="$target_configargs ${tbaseargs}"
9676
9677 # Passing a --with-cross-host argument lets the target libraries know
9678 # whether they are being built with a cross-compiler or being built
9679 # native.  However, it would be better to use other mechanisms to make the
9680 # sorts of decisions they want to make on this basis.  Please consider
9681 # this option to be deprecated.  FIXME.
9682 if test x${is_cross_compiler} = xyes ; then
9683   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
9684 fi
9685
9686 # Special user-friendly check for native x86_64-linux build, if
9687 # multilib is not explicitly enabled.
9688 case "$target:$have_compiler:$host:$target:$enable_multilib" in
9689   x86_64-*linux*:yes:$build:$build:)
9690     # Make sure we have a development environment that handles 32-bit
9691     dev64=no
9692     echo "int main () { return 0; }" > conftest.c
9693     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9694     if test $? = 0 ; then
9695       if test -s conftest || test -s conftest.exe ; then
9696         dev64=yes
9697       fi
9698     fi
9699     rm -f conftest*
9700     if test x${dev64} != xyes ; then
9701       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
9702     fi
9703     ;;
9704 esac
9705
9706 # Default to --enable-multilib.
9707 if test x${enable_multilib} = x ; then
9708   target_configargs="--enable-multilib ${target_configargs}"
9709 fi
9710
9711 # Pass --with-newlib if appropriate.  Note that target_configdirs has
9712 # changed from the earlier setting of with_newlib.
9713 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
9714   target_configargs="--with-newlib ${target_configargs}"
9715 fi
9716
9717 # Different target subdirs use different values of certain variables
9718 # (notably CXX).  Worse, multilibs use *lots* of different values.
9719 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9720 # it doesn't automatically accept command-line overrides of them.
9721 # This means it's not safe for target subdirs to share a cache file,
9722 # which is disgusting, but there you have it.  Hopefully this can be
9723 # fixed in future.  It's still worthwhile to use a cache file for each
9724 # directory.  I think.
9725
9726 # Pass the appropriate --build, --host, --target and --cache-file arguments.
9727 # We need to pass --target, as newer autoconf's requires consistency
9728 # for target_alias and gcc doesn't manage it consistently.
9729 target_configargs="--cache-file=./config.cache ${target_configargs}"
9730
9731 FLAGS_FOR_TARGET=
9732 case " $target_configdirs " in
9733  *" newlib "*)
9734   case " $target_configargs " in
9735   *" --with-newlib "*)
9736    case "$target" in
9737     *-cygwin*)
9738       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
9739       ;;
9740    esac
9741
9742    # If we're not building GCC, don't discard standard headers.
9743    if test -d ${srcdir}/gcc; then
9744      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
9745
9746      if test "${build}" != "${host}"; then
9747        # On Canadian crosses, CC_FOR_TARGET will have already been set
9748        # by `configure', so we won't have an opportunity to add -Bgcc/
9749        # to it.  This is right: we don't want to search that directory
9750        # for binaries, but we want the header files in there, so add
9751        # them explicitly.
9752        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
9753
9754        # Someone might think of using the pre-installed headers on
9755        # Canadian crosses, in case the installed compiler is not fully
9756        # compatible with the compiler being built.  In this case, it
9757        # would be better to flag an error than risking having
9758        # incompatible object files being constructed.  We can't
9759        # guarantee that an error will be flagged, but let's hope the
9760        # compiler will do it, when presented with incompatible header
9761        # files.
9762      fi
9763    fi
9764
9765    case "${target}-${is_cross_compiler}" in
9766    i[3456789]86-*-linux*-no)
9767       # Here host == target, so we don't need to build gcc,
9768       # so we don't want to discard standard headers.
9769       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9770       ;;
9771    *)
9772       # If we're building newlib, use its generic headers last, but search
9773       # for any libc-related directories first (so make it the last -B
9774       # switch).
9775       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
9776
9777       # If we're building libgloss, find the startup file, simulator library
9778       # and linker script.
9779       case " $target_configdirs " in
9780         *" libgloss "*)
9781         # Look for startup file, simulator library and maybe linker script.
9782         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
9783         # Look for libnosys.a in case the target needs it.
9784         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
9785         # Most targets have the linker script in the source directory.
9786         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
9787         ;;
9788       esac
9789       ;;
9790    esac
9791    ;;
9792   esac
9793   ;;
9794 esac
9795
9796 case "$target" in
9797   x86_64-*mingw* | *-w64-mingw*)
9798   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
9799   # however, use a symlink named 'mingw' in ${prefix} .
9800     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
9801     ;;
9802   *-mingw*)
9803   # MinGW can't be handled as Cygwin above since it does not use newlib.
9804     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'
9805     ;;
9806 esac
9807
9808 # Allow the user to override the flags for
9809 # our build compiler if desired.
9810 if test x"${build}" = x"${host}" ; then
9811   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
9812   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
9813   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
9814 fi
9815
9816 # On Canadian crosses, we'll be searching the right directories for
9817 # the previously-installed cross compiler, so don't bother to add
9818 # flags for directories within the install tree of the compiler
9819 # being built; programs in there won't even run.
9820 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
9821   # Search for pre-installed headers if nothing else fits.
9822   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
9823 fi
9824
9825 if test "x${use_gnu_ld}" = x &&
9826    echo " ${configdirs} " | grep " ld " > /dev/null ; then
9827   # Arrange for us to find uninstalled linker scripts.
9828   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
9829 fi
9830
9831 # Search for other target-specific linker scripts and such.
9832 case "${target}" in
9833   mep*)
9834     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
9835     ;;
9836 esac
9837
9838 # Makefile fragments.
9839 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
9840 do
9841   eval fragval=\$$frag
9842   if test $fragval != /dev/null; then
9843     eval $frag=${srcdir}/$fragval
9844   fi
9845 done
9846
9847
9848
9849
9850
9851 # Miscellanea: directories, flags, etc.
9852
9853
9854
9855
9856
9857
9858
9859
9860 # Build module lists & subconfigure args.
9861
9862
9863
9864 # Host module lists & subconfigure args.
9865
9866
9867
9868
9869 # Target module lists & subconfigure args.
9870
9871
9872
9873 # Build tools.
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891 # Generate default definitions for YACC, M4, LEX and other programs that run
9892 # on the build machine.  These are used if the Makefile can't locate these
9893 # programs in objdir.
9894 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
9895
9896 for ac_prog in 'bison -y' byacc yacc
9897 do
9898   # Extract the first word of "$ac_prog", so it can be a program name with args.
9899 set dummy $ac_prog; ac_word=$2
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9901 $as_echo_n "checking for $ac_word... " >&6; }
9902 if ${ac_cv_prog_YACC+:} false; then :
9903   $as_echo_n "(cached) " >&6
9904 else
9905   if test -n "$YACC"; then
9906   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9907 else
9908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909 for as_dir in $PATH
9910 do
9911   IFS=$as_save_IFS
9912   test -z "$as_dir" && as_dir=.
9913     for ac_exec_ext in '' $ac_executable_extensions; do
9914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9915     ac_cv_prog_YACC="$ac_prog"
9916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9917     break 2
9918   fi
9919 done
9920   done
9921 IFS=$as_save_IFS
9922
9923 fi
9924 fi
9925 YACC=$ac_cv_prog_YACC
9926 if test -n "$YACC"; then
9927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
9928 $as_echo "$YACC" >&6; }
9929 else
9930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9931 $as_echo "no" >&6; }
9932 fi
9933
9934
9935   test -n "$YACC" && break
9936 done
9937 test -n "$YACC" || YACC="$MISSING bison -y"
9938
9939 case " $build_configdirs " in
9940   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
9941 esac
9942
9943 for ac_prog in bison
9944 do
9945   # Extract the first word of "$ac_prog", so it can be a program name with args.
9946 set dummy $ac_prog; ac_word=$2
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9948 $as_echo_n "checking for $ac_word... " >&6; }
9949 if ${ac_cv_prog_BISON+:} false; then :
9950   $as_echo_n "(cached) " >&6
9951 else
9952   if test -n "$BISON"; then
9953   ac_cv_prog_BISON="$BISON" # Let the user override the test.
9954 else
9955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956 for as_dir in $PATH
9957 do
9958   IFS=$as_save_IFS
9959   test -z "$as_dir" && as_dir=.
9960     for ac_exec_ext in '' $ac_executable_extensions; do
9961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9962     ac_cv_prog_BISON="$ac_prog"
9963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9964     break 2
9965   fi
9966 done
9967   done
9968 IFS=$as_save_IFS
9969
9970 fi
9971 fi
9972 BISON=$ac_cv_prog_BISON
9973 if test -n "$BISON"; then
9974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9975 $as_echo "$BISON" >&6; }
9976 else
9977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9978 $as_echo "no" >&6; }
9979 fi
9980
9981
9982   test -n "$BISON" && break
9983 done
9984 test -n "$BISON" || BISON="$MISSING bison"
9985
9986 case " $build_configdirs " in
9987   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
9988 esac
9989
9990 for ac_prog in gm4 gnum4 m4
9991 do
9992   # Extract the first word of "$ac_prog", so it can be a program name with args.
9993 set dummy $ac_prog; ac_word=$2
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995 $as_echo_n "checking for $ac_word... " >&6; }
9996 if ${ac_cv_prog_M4+:} false; then :
9997   $as_echo_n "(cached) " >&6
9998 else
9999   if test -n "$M4"; then
10000   ac_cv_prog_M4="$M4" # Let the user override the test.
10001 else
10002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003 for as_dir in $PATH
10004 do
10005   IFS=$as_save_IFS
10006   test -z "$as_dir" && as_dir=.
10007     for ac_exec_ext in '' $ac_executable_extensions; do
10008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10009     ac_cv_prog_M4="$ac_prog"
10010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10011     break 2
10012   fi
10013 done
10014   done
10015 IFS=$as_save_IFS
10016
10017 fi
10018 fi
10019 M4=$ac_cv_prog_M4
10020 if test -n "$M4"; then
10021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10022 $as_echo "$M4" >&6; }
10023 else
10024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025 $as_echo "no" >&6; }
10026 fi
10027
10028
10029   test -n "$M4" && break
10030 done
10031 test -n "$M4" || M4="$MISSING m4"
10032
10033 case " $build_configdirs " in
10034   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10035 esac
10036
10037 for ac_prog in flex lex
10038 do
10039   # Extract the first word of "$ac_prog", so it can be a program name with args.
10040 set dummy $ac_prog; ac_word=$2
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10042 $as_echo_n "checking for $ac_word... " >&6; }
10043 if ${ac_cv_prog_LEX+:} false; then :
10044   $as_echo_n "(cached) " >&6
10045 else
10046   if test -n "$LEX"; then
10047   ac_cv_prog_LEX="$LEX" # Let the user override the test.
10048 else
10049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050 for as_dir in $PATH
10051 do
10052   IFS=$as_save_IFS
10053   test -z "$as_dir" && as_dir=.
10054     for ac_exec_ext in '' $ac_executable_extensions; do
10055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10056     ac_cv_prog_LEX="$ac_prog"
10057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10058     break 2
10059   fi
10060 done
10061   done
10062 IFS=$as_save_IFS
10063
10064 fi
10065 fi
10066 LEX=$ac_cv_prog_LEX
10067 if test -n "$LEX"; then
10068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10069 $as_echo "$LEX" >&6; }
10070 else
10071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072 $as_echo "no" >&6; }
10073 fi
10074
10075
10076   test -n "$LEX" && break
10077 done
10078 test -n "$LEX" || LEX="$MISSING flex"
10079
10080 case " $build_configdirs " in
10081   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10082   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10083 esac
10084
10085 for ac_prog in flex
10086 do
10087   # Extract the first word of "$ac_prog", so it can be a program name with args.
10088 set dummy $ac_prog; ac_word=$2
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090 $as_echo_n "checking for $ac_word... " >&6; }
10091 if ${ac_cv_prog_FLEX+:} false; then :
10092   $as_echo_n "(cached) " >&6
10093 else
10094   if test -n "$FLEX"; then
10095   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10096 else
10097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $PATH
10099 do
10100   IFS=$as_save_IFS
10101   test -z "$as_dir" && as_dir=.
10102     for ac_exec_ext in '' $ac_executable_extensions; do
10103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10104     ac_cv_prog_FLEX="$ac_prog"
10105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10106     break 2
10107   fi
10108 done
10109   done
10110 IFS=$as_save_IFS
10111
10112 fi
10113 fi
10114 FLEX=$ac_cv_prog_FLEX
10115 if test -n "$FLEX"; then
10116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10117 $as_echo "$FLEX" >&6; }
10118 else
10119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120 $as_echo "no" >&6; }
10121 fi
10122
10123
10124   test -n "$FLEX" && break
10125 done
10126 test -n "$FLEX" || FLEX="$MISSING flex"
10127
10128 case " $build_configdirs " in
10129   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10130 esac
10131
10132 for ac_prog in makeinfo
10133 do
10134   # Extract the first word of "$ac_prog", so it can be a program name with args.
10135 set dummy $ac_prog; ac_word=$2
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10137 $as_echo_n "checking for $ac_word... " >&6; }
10138 if ${ac_cv_prog_MAKEINFO+:} false; then :
10139   $as_echo_n "(cached) " >&6
10140 else
10141   if test -n "$MAKEINFO"; then
10142   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10143 else
10144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145 for as_dir in $PATH
10146 do
10147   IFS=$as_save_IFS
10148   test -z "$as_dir" && as_dir=.
10149     for ac_exec_ext in '' $ac_executable_extensions; do
10150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10151     ac_cv_prog_MAKEINFO="$ac_prog"
10152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10153     break 2
10154   fi
10155 done
10156   done
10157 IFS=$as_save_IFS
10158
10159 fi
10160 fi
10161 MAKEINFO=$ac_cv_prog_MAKEINFO
10162 if test -n "$MAKEINFO"; then
10163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10164 $as_echo "$MAKEINFO" >&6; }
10165 else
10166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10168 fi
10169
10170
10171   test -n "$MAKEINFO" && break
10172 done
10173 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10174
10175 case " $build_configdirs " in
10176   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10177   *)
10178
10179     # For an installed makeinfo, we require it to be from texinfo 4.7 or
10180     # higher, else we use the "missing" dummy.
10181     if ${MAKEINFO} --version \
10182        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10183       :
10184     else
10185       MAKEINFO="$MISSING makeinfo"
10186     fi
10187     ;;
10188
10189 esac
10190
10191 # FIXME: expect and dejagnu may become build tools?
10192
10193 for ac_prog in expect
10194 do
10195   # Extract the first word of "$ac_prog", so it can be a program name with args.
10196 set dummy $ac_prog; ac_word=$2
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10198 $as_echo_n "checking for $ac_word... " >&6; }
10199 if ${ac_cv_prog_EXPECT+:} false; then :
10200   $as_echo_n "(cached) " >&6
10201 else
10202   if test -n "$EXPECT"; then
10203   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10204 else
10205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10206 for as_dir in $PATH
10207 do
10208   IFS=$as_save_IFS
10209   test -z "$as_dir" && as_dir=.
10210     for ac_exec_ext in '' $ac_executable_extensions; do
10211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10212     ac_cv_prog_EXPECT="$ac_prog"
10213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10214     break 2
10215   fi
10216 done
10217   done
10218 IFS=$as_save_IFS
10219
10220 fi
10221 fi
10222 EXPECT=$ac_cv_prog_EXPECT
10223 if test -n "$EXPECT"; then
10224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10225 $as_echo "$EXPECT" >&6; }
10226 else
10227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10228 $as_echo "no" >&6; }
10229 fi
10230
10231
10232   test -n "$EXPECT" && break
10233 done
10234 test -n "$EXPECT" || EXPECT="expect"
10235
10236 case " $configdirs " in
10237   *" expect "*)
10238     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10239     ;;
10240 esac
10241
10242 for ac_prog in runtest
10243 do
10244   # Extract the first word of "$ac_prog", so it can be a program name with args.
10245 set dummy $ac_prog; ac_word=$2
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247 $as_echo_n "checking for $ac_word... " >&6; }
10248 if ${ac_cv_prog_RUNTEST+:} false; then :
10249   $as_echo_n "(cached) " >&6
10250 else
10251   if test -n "$RUNTEST"; then
10252   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10253 else
10254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255 for as_dir in $PATH
10256 do
10257   IFS=$as_save_IFS
10258   test -z "$as_dir" && as_dir=.
10259     for ac_exec_ext in '' $ac_executable_extensions; do
10260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10261     ac_cv_prog_RUNTEST="$ac_prog"
10262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10263     break 2
10264   fi
10265 done
10266   done
10267 IFS=$as_save_IFS
10268
10269 fi
10270 fi
10271 RUNTEST=$ac_cv_prog_RUNTEST
10272 if test -n "$RUNTEST"; then
10273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10274 $as_echo "$RUNTEST" >&6; }
10275 else
10276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277 $as_echo "no" >&6; }
10278 fi
10279
10280
10281   test -n "$RUNTEST" && break
10282 done
10283 test -n "$RUNTEST" || RUNTEST="runtest"
10284
10285 case " $configdirs " in
10286   *" dejagnu "*)
10287     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10288     ;;
10289 esac
10290
10291
10292 # Host tools.
10293 ncn_tool_prefix=
10294 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10295 ncn_target_tool_prefix=
10296 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10297
10298
10299
10300 if test -n "$AR"; then
10301   ac_cv_prog_AR=$AR
10302 elif test -n "$ac_cv_prog_AR"; then
10303   AR=$ac_cv_prog_AR
10304 fi
10305
10306 if test -n "$ac_cv_prog_AR"; then
10307   for ncn_progname in ar; do
10308     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10309 set dummy ${ncn_progname}; ac_word=$2
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10311 $as_echo_n "checking for $ac_word... " >&6; }
10312 if ${ac_cv_prog_AR+:} false; then :
10313   $as_echo_n "(cached) " >&6
10314 else
10315   if test -n "$AR"; then
10316   ac_cv_prog_AR="$AR" # Let the user override the test.
10317 else
10318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10319 for as_dir in $PATH
10320 do
10321   IFS=$as_save_IFS
10322   test -z "$as_dir" && as_dir=.
10323     for ac_exec_ext in '' $ac_executable_extensions; do
10324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10325     ac_cv_prog_AR="${ncn_progname}"
10326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10327     break 2
10328   fi
10329 done
10330   done
10331 IFS=$as_save_IFS
10332
10333 fi
10334 fi
10335 AR=$ac_cv_prog_AR
10336 if test -n "$AR"; then
10337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10338 $as_echo "$AR" >&6; }
10339 else
10340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341 $as_echo "no" >&6; }
10342 fi
10343
10344
10345   done
10346 fi
10347
10348 for ncn_progname in ar; do
10349   if test -n "$ncn_tool_prefix"; then
10350     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10351 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353 $as_echo_n "checking for $ac_word... " >&6; }
10354 if ${ac_cv_prog_AR+:} false; then :
10355   $as_echo_n "(cached) " >&6
10356 else
10357   if test -n "$AR"; then
10358   ac_cv_prog_AR="$AR" # Let the user override the test.
10359 else
10360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in $PATH
10362 do
10363   IFS=$as_save_IFS
10364   test -z "$as_dir" && as_dir=.
10365     for ac_exec_ext in '' $ac_executable_extensions; do
10366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10367     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10369     break 2
10370   fi
10371 done
10372   done
10373 IFS=$as_save_IFS
10374
10375 fi
10376 fi
10377 AR=$ac_cv_prog_AR
10378 if test -n "$AR"; then
10379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10380 $as_echo "$AR" >&6; }
10381 else
10382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10384 fi
10385
10386
10387   fi
10388   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10389     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10390 set dummy ${ncn_progname}; ac_word=$2
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10392 $as_echo_n "checking for $ac_word... " >&6; }
10393 if ${ac_cv_prog_AR+:} false; then :
10394   $as_echo_n "(cached) " >&6
10395 else
10396   if test -n "$AR"; then
10397   ac_cv_prog_AR="$AR" # Let the user override the test.
10398 else
10399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10400 for as_dir in $PATH
10401 do
10402   IFS=$as_save_IFS
10403   test -z "$as_dir" && as_dir=.
10404     for ac_exec_ext in '' $ac_executable_extensions; do
10405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10406     ac_cv_prog_AR="${ncn_progname}"
10407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10408     break 2
10409   fi
10410 done
10411   done
10412 IFS=$as_save_IFS
10413
10414 fi
10415 fi
10416 AR=$ac_cv_prog_AR
10417 if test -n "$AR"; then
10418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10419 $as_echo "$AR" >&6; }
10420 else
10421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10422 $as_echo "no" >&6; }
10423 fi
10424
10425
10426   fi
10427   test -n "$ac_cv_prog_AR" && break
10428 done
10429
10430 if test -z "$ac_cv_prog_AR" ; then
10431   set dummy ar
10432   if test $build = $host ; then
10433     AR="$2"
10434   else
10435     AR="${ncn_tool_prefix}$2"
10436   fi
10437 fi
10438
10439
10440
10441 if test -n "$AS"; then
10442   ac_cv_prog_AS=$AS
10443 elif test -n "$ac_cv_prog_AS"; then
10444   AS=$ac_cv_prog_AS
10445 fi
10446
10447 if test -n "$ac_cv_prog_AS"; then
10448   for ncn_progname in as; do
10449     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10450 set dummy ${ncn_progname}; ac_word=$2
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10452 $as_echo_n "checking for $ac_word... " >&6; }
10453 if ${ac_cv_prog_AS+:} false; then :
10454   $as_echo_n "(cached) " >&6
10455 else
10456   if test -n "$AS"; then
10457   ac_cv_prog_AS="$AS" # Let the user override the test.
10458 else
10459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10460 for as_dir in $PATH
10461 do
10462   IFS=$as_save_IFS
10463   test -z "$as_dir" && as_dir=.
10464     for ac_exec_ext in '' $ac_executable_extensions; do
10465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10466     ac_cv_prog_AS="${ncn_progname}"
10467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10468     break 2
10469   fi
10470 done
10471   done
10472 IFS=$as_save_IFS
10473
10474 fi
10475 fi
10476 AS=$ac_cv_prog_AS
10477 if test -n "$AS"; then
10478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10479 $as_echo "$AS" >&6; }
10480 else
10481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10482 $as_echo "no" >&6; }
10483 fi
10484
10485
10486   done
10487 fi
10488
10489 for ncn_progname in as; do
10490   if test -n "$ncn_tool_prefix"; then
10491     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10492 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10494 $as_echo_n "checking for $ac_word... " >&6; }
10495 if ${ac_cv_prog_AS+:} false; then :
10496   $as_echo_n "(cached) " >&6
10497 else
10498   if test -n "$AS"; then
10499   ac_cv_prog_AS="$AS" # Let the user override the test.
10500 else
10501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502 for as_dir in $PATH
10503 do
10504   IFS=$as_save_IFS
10505   test -z "$as_dir" && as_dir=.
10506     for ac_exec_ext in '' $ac_executable_extensions; do
10507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10508     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10510     break 2
10511   fi
10512 done
10513   done
10514 IFS=$as_save_IFS
10515
10516 fi
10517 fi
10518 AS=$ac_cv_prog_AS
10519 if test -n "$AS"; then
10520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10521 $as_echo "$AS" >&6; }
10522 else
10523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524 $as_echo "no" >&6; }
10525 fi
10526
10527
10528   fi
10529   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10530     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10531 set dummy ${ncn_progname}; ac_word=$2
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10533 $as_echo_n "checking for $ac_word... " >&6; }
10534 if ${ac_cv_prog_AS+:} false; then :
10535   $as_echo_n "(cached) " >&6
10536 else
10537   if test -n "$AS"; then
10538   ac_cv_prog_AS="$AS" # Let the user override the test.
10539 else
10540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10541 for as_dir in $PATH
10542 do
10543   IFS=$as_save_IFS
10544   test -z "$as_dir" && as_dir=.
10545     for ac_exec_ext in '' $ac_executable_extensions; do
10546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10547     ac_cv_prog_AS="${ncn_progname}"
10548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10549     break 2
10550   fi
10551 done
10552   done
10553 IFS=$as_save_IFS
10554
10555 fi
10556 fi
10557 AS=$ac_cv_prog_AS
10558 if test -n "$AS"; then
10559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10560 $as_echo "$AS" >&6; }
10561 else
10562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10564 fi
10565
10566
10567   fi
10568   test -n "$ac_cv_prog_AS" && break
10569 done
10570
10571 if test -z "$ac_cv_prog_AS" ; then
10572   set dummy as
10573   if test $build = $host ; then
10574     AS="$2"
10575   else
10576     AS="${ncn_tool_prefix}$2"
10577   fi
10578 fi
10579
10580
10581
10582 if test -n "$DLLTOOL"; then
10583   ac_cv_prog_DLLTOOL=$DLLTOOL
10584 elif test -n "$ac_cv_prog_DLLTOOL"; then
10585   DLLTOOL=$ac_cv_prog_DLLTOOL
10586 fi
10587
10588 if test -n "$ac_cv_prog_DLLTOOL"; then
10589   for ncn_progname in dlltool; do
10590     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10591 set dummy ${ncn_progname}; ac_word=$2
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10593 $as_echo_n "checking for $ac_word... " >&6; }
10594 if ${ac_cv_prog_DLLTOOL+:} false; then :
10595   $as_echo_n "(cached) " >&6
10596 else
10597   if test -n "$DLLTOOL"; then
10598   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10599 else
10600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601 for as_dir in $PATH
10602 do
10603   IFS=$as_save_IFS
10604   test -z "$as_dir" && as_dir=.
10605     for ac_exec_ext in '' $ac_executable_extensions; do
10606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10607     ac_cv_prog_DLLTOOL="${ncn_progname}"
10608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10609     break 2
10610   fi
10611 done
10612   done
10613 IFS=$as_save_IFS
10614
10615 fi
10616 fi
10617 DLLTOOL=$ac_cv_prog_DLLTOOL
10618 if test -n "$DLLTOOL"; then
10619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10620 $as_echo "$DLLTOOL" >&6; }
10621 else
10622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623 $as_echo "no" >&6; }
10624 fi
10625
10626
10627   done
10628 fi
10629
10630 for ncn_progname in dlltool; do
10631   if test -n "$ncn_tool_prefix"; then
10632     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10633 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10635 $as_echo_n "checking for $ac_word... " >&6; }
10636 if ${ac_cv_prog_DLLTOOL+:} false; then :
10637   $as_echo_n "(cached) " >&6
10638 else
10639   if test -n "$DLLTOOL"; then
10640   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10641 else
10642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643 for as_dir in $PATH
10644 do
10645   IFS=$as_save_IFS
10646   test -z "$as_dir" && as_dir=.
10647     for ac_exec_ext in '' $ac_executable_extensions; do
10648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10649     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
10650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10651     break 2
10652   fi
10653 done
10654   done
10655 IFS=$as_save_IFS
10656
10657 fi
10658 fi
10659 DLLTOOL=$ac_cv_prog_DLLTOOL
10660 if test -n "$DLLTOOL"; then
10661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10662 $as_echo "$DLLTOOL" >&6; }
10663 else
10664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665 $as_echo "no" >&6; }
10666 fi
10667
10668
10669   fi
10670   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10671     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10672 set dummy ${ncn_progname}; ac_word=$2
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10674 $as_echo_n "checking for $ac_word... " >&6; }
10675 if ${ac_cv_prog_DLLTOOL+:} false; then :
10676   $as_echo_n "(cached) " >&6
10677 else
10678   if test -n "$DLLTOOL"; then
10679   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10680 else
10681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10682 for as_dir in $PATH
10683 do
10684   IFS=$as_save_IFS
10685   test -z "$as_dir" && as_dir=.
10686     for ac_exec_ext in '' $ac_executable_extensions; do
10687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10688     ac_cv_prog_DLLTOOL="${ncn_progname}"
10689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10690     break 2
10691   fi
10692 done
10693   done
10694 IFS=$as_save_IFS
10695
10696 fi
10697 fi
10698 DLLTOOL=$ac_cv_prog_DLLTOOL
10699 if test -n "$DLLTOOL"; then
10700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10701 $as_echo "$DLLTOOL" >&6; }
10702 else
10703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10704 $as_echo "no" >&6; }
10705 fi
10706
10707
10708   fi
10709   test -n "$ac_cv_prog_DLLTOOL" && break
10710 done
10711
10712 if test -z "$ac_cv_prog_DLLTOOL" ; then
10713   set dummy dlltool
10714   if test $build = $host ; then
10715     DLLTOOL="$2"
10716   else
10717     DLLTOOL="${ncn_tool_prefix}$2"
10718   fi
10719 fi
10720
10721
10722
10723 if test -n "$LD"; then
10724   ac_cv_prog_LD=$LD
10725 elif test -n "$ac_cv_prog_LD"; then
10726   LD=$ac_cv_prog_LD
10727 fi
10728
10729 if test -n "$ac_cv_prog_LD"; then
10730   for ncn_progname in ld; do
10731     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10732 set dummy ${ncn_progname}; ac_word=$2
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10734 $as_echo_n "checking for $ac_word... " >&6; }
10735 if ${ac_cv_prog_LD+:} false; then :
10736   $as_echo_n "(cached) " >&6
10737 else
10738   if test -n "$LD"; then
10739   ac_cv_prog_LD="$LD" # Let the user override the test.
10740 else
10741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10742 for as_dir in $PATH
10743 do
10744   IFS=$as_save_IFS
10745   test -z "$as_dir" && as_dir=.
10746     for ac_exec_ext in '' $ac_executable_extensions; do
10747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10748     ac_cv_prog_LD="${ncn_progname}"
10749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10750     break 2
10751   fi
10752 done
10753   done
10754 IFS=$as_save_IFS
10755
10756 fi
10757 fi
10758 LD=$ac_cv_prog_LD
10759 if test -n "$LD"; then
10760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10761 $as_echo "$LD" >&6; }
10762 else
10763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764 $as_echo "no" >&6; }
10765 fi
10766
10767
10768   done
10769 fi
10770
10771 for ncn_progname in ld; do
10772   if test -n "$ncn_tool_prefix"; then
10773     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10774 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10776 $as_echo_n "checking for $ac_word... " >&6; }
10777 if ${ac_cv_prog_LD+:} false; then :
10778   $as_echo_n "(cached) " >&6
10779 else
10780   if test -n "$LD"; then
10781   ac_cv_prog_LD="$LD" # Let the user override the test.
10782 else
10783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10784 for as_dir in $PATH
10785 do
10786   IFS=$as_save_IFS
10787   test -z "$as_dir" && as_dir=.
10788     for ac_exec_ext in '' $ac_executable_extensions; do
10789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10790     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
10791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10792     break 2
10793   fi
10794 done
10795   done
10796 IFS=$as_save_IFS
10797
10798 fi
10799 fi
10800 LD=$ac_cv_prog_LD
10801 if test -n "$LD"; then
10802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10803 $as_echo "$LD" >&6; }
10804 else
10805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10806 $as_echo "no" >&6; }
10807 fi
10808
10809
10810   fi
10811   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
10812     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10813 set dummy ${ncn_progname}; ac_word=$2
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10815 $as_echo_n "checking for $ac_word... " >&6; }
10816 if ${ac_cv_prog_LD+:} false; then :
10817   $as_echo_n "(cached) " >&6
10818 else
10819   if test -n "$LD"; then
10820   ac_cv_prog_LD="$LD" # Let the user override the test.
10821 else
10822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823 for as_dir in $PATH
10824 do
10825   IFS=$as_save_IFS
10826   test -z "$as_dir" && as_dir=.
10827     for ac_exec_ext in '' $ac_executable_extensions; do
10828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10829     ac_cv_prog_LD="${ncn_progname}"
10830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10831     break 2
10832   fi
10833 done
10834   done
10835 IFS=$as_save_IFS
10836
10837 fi
10838 fi
10839 LD=$ac_cv_prog_LD
10840 if test -n "$LD"; then
10841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10842 $as_echo "$LD" >&6; }
10843 else
10844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845 $as_echo "no" >&6; }
10846 fi
10847
10848
10849   fi
10850   test -n "$ac_cv_prog_LD" && break
10851 done
10852
10853 if test -z "$ac_cv_prog_LD" ; then
10854   set dummy ld
10855   if test $build = $host ; then
10856     LD="$2"
10857   else
10858     LD="${ncn_tool_prefix}$2"
10859   fi
10860 fi
10861
10862
10863
10864 if test -n "$LIPO"; then
10865   ac_cv_prog_LIPO=$LIPO
10866 elif test -n "$ac_cv_prog_LIPO"; then
10867   LIPO=$ac_cv_prog_LIPO
10868 fi
10869
10870 if test -n "$ac_cv_prog_LIPO"; then
10871   for ncn_progname in lipo; do
10872     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10873 set dummy ${ncn_progname}; ac_word=$2
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10875 $as_echo_n "checking for $ac_word... " >&6; }
10876 if ${ac_cv_prog_LIPO+:} false; then :
10877   $as_echo_n "(cached) " >&6
10878 else
10879   if test -n "$LIPO"; then
10880   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10881 else
10882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883 for as_dir in $PATH
10884 do
10885   IFS=$as_save_IFS
10886   test -z "$as_dir" && as_dir=.
10887     for ac_exec_ext in '' $ac_executable_extensions; do
10888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10889     ac_cv_prog_LIPO="${ncn_progname}"
10890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10891     break 2
10892   fi
10893 done
10894   done
10895 IFS=$as_save_IFS
10896
10897 fi
10898 fi
10899 LIPO=$ac_cv_prog_LIPO
10900 if test -n "$LIPO"; then
10901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10902 $as_echo "$LIPO" >&6; }
10903 else
10904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10906 fi
10907
10908
10909   done
10910 fi
10911
10912 for ncn_progname in lipo; do
10913   if test -n "$ncn_tool_prefix"; then
10914     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10915 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10917 $as_echo_n "checking for $ac_word... " >&6; }
10918 if ${ac_cv_prog_LIPO+:} false; then :
10919   $as_echo_n "(cached) " >&6
10920 else
10921   if test -n "$LIPO"; then
10922   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10923 else
10924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10925 for as_dir in $PATH
10926 do
10927   IFS=$as_save_IFS
10928   test -z "$as_dir" && as_dir=.
10929     for ac_exec_ext in '' $ac_executable_extensions; do
10930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10931     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
10932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10933     break 2
10934   fi
10935 done
10936   done
10937 IFS=$as_save_IFS
10938
10939 fi
10940 fi
10941 LIPO=$ac_cv_prog_LIPO
10942 if test -n "$LIPO"; then
10943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10944 $as_echo "$LIPO" >&6; }
10945 else
10946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10947 $as_echo "no" >&6; }
10948 fi
10949
10950
10951   fi
10952   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
10953     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10954 set dummy ${ncn_progname}; ac_word=$2
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10956 $as_echo_n "checking for $ac_word... " >&6; }
10957 if ${ac_cv_prog_LIPO+:} false; then :
10958   $as_echo_n "(cached) " >&6
10959 else
10960   if test -n "$LIPO"; then
10961   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10962 else
10963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10964 for as_dir in $PATH
10965 do
10966   IFS=$as_save_IFS
10967   test -z "$as_dir" && as_dir=.
10968     for ac_exec_ext in '' $ac_executable_extensions; do
10969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10970     ac_cv_prog_LIPO="${ncn_progname}"
10971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10972     break 2
10973   fi
10974 done
10975   done
10976 IFS=$as_save_IFS
10977
10978 fi
10979 fi
10980 LIPO=$ac_cv_prog_LIPO
10981 if test -n "$LIPO"; then
10982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10983 $as_echo "$LIPO" >&6; }
10984 else
10985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986 $as_echo "no" >&6; }
10987 fi
10988
10989
10990   fi
10991   test -n "$ac_cv_prog_LIPO" && break
10992 done
10993
10994 if test -z "$ac_cv_prog_LIPO" ; then
10995   set dummy lipo
10996   if test $build = $host ; then
10997     LIPO="$2"
10998   else
10999     LIPO="${ncn_tool_prefix}$2"
11000   fi
11001 fi
11002
11003
11004
11005 if test -n "$NM"; then
11006   ac_cv_prog_NM=$NM
11007 elif test -n "$ac_cv_prog_NM"; then
11008   NM=$ac_cv_prog_NM
11009 fi
11010
11011 if test -n "$ac_cv_prog_NM"; then
11012   for ncn_progname in nm; do
11013     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11014 set dummy ${ncn_progname}; ac_word=$2
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11016 $as_echo_n "checking for $ac_word... " >&6; }
11017 if ${ac_cv_prog_NM+:} false; then :
11018   $as_echo_n "(cached) " >&6
11019 else
11020   if test -n "$NM"; then
11021   ac_cv_prog_NM="$NM" # Let the user override the test.
11022 else
11023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024 for as_dir in $PATH
11025 do
11026   IFS=$as_save_IFS
11027   test -z "$as_dir" && as_dir=.
11028     for ac_exec_ext in '' $ac_executable_extensions; do
11029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11030     ac_cv_prog_NM="${ncn_progname}"
11031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11032     break 2
11033   fi
11034 done
11035   done
11036 IFS=$as_save_IFS
11037
11038 fi
11039 fi
11040 NM=$ac_cv_prog_NM
11041 if test -n "$NM"; then
11042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11043 $as_echo "$NM" >&6; }
11044 else
11045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11046 $as_echo "no" >&6; }
11047 fi
11048
11049
11050   done
11051 fi
11052
11053 for ncn_progname in nm; do
11054   if test -n "$ncn_tool_prefix"; then
11055     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11056 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11058 $as_echo_n "checking for $ac_word... " >&6; }
11059 if ${ac_cv_prog_NM+:} false; then :
11060   $as_echo_n "(cached) " >&6
11061 else
11062   if test -n "$NM"; then
11063   ac_cv_prog_NM="$NM" # Let the user override the test.
11064 else
11065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066 for as_dir in $PATH
11067 do
11068   IFS=$as_save_IFS
11069   test -z "$as_dir" && as_dir=.
11070     for ac_exec_ext in '' $ac_executable_extensions; do
11071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11072     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11074     break 2
11075   fi
11076 done
11077   done
11078 IFS=$as_save_IFS
11079
11080 fi
11081 fi
11082 NM=$ac_cv_prog_NM
11083 if test -n "$NM"; then
11084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11085 $as_echo "$NM" >&6; }
11086 else
11087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11088 $as_echo "no" >&6; }
11089 fi
11090
11091
11092   fi
11093   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11094     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11095 set dummy ${ncn_progname}; ac_word=$2
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11097 $as_echo_n "checking for $ac_word... " >&6; }
11098 if ${ac_cv_prog_NM+:} false; then :
11099   $as_echo_n "(cached) " >&6
11100 else
11101   if test -n "$NM"; then
11102   ac_cv_prog_NM="$NM" # Let the user override the test.
11103 else
11104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105 for as_dir in $PATH
11106 do
11107   IFS=$as_save_IFS
11108   test -z "$as_dir" && as_dir=.
11109     for ac_exec_ext in '' $ac_executable_extensions; do
11110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11111     ac_cv_prog_NM="${ncn_progname}"
11112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11113     break 2
11114   fi
11115 done
11116   done
11117 IFS=$as_save_IFS
11118
11119 fi
11120 fi
11121 NM=$ac_cv_prog_NM
11122 if test -n "$NM"; then
11123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11124 $as_echo "$NM" >&6; }
11125 else
11126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127 $as_echo "no" >&6; }
11128 fi
11129
11130
11131   fi
11132   test -n "$ac_cv_prog_NM" && break
11133 done
11134
11135 if test -z "$ac_cv_prog_NM" ; then
11136   set dummy nm
11137   if test $build = $host ; then
11138     NM="$2"
11139   else
11140     NM="${ncn_tool_prefix}$2"
11141   fi
11142 fi
11143
11144
11145
11146 if test -n "$RANLIB"; then
11147   ac_cv_prog_RANLIB=$RANLIB
11148 elif test -n "$ac_cv_prog_RANLIB"; then
11149   RANLIB=$ac_cv_prog_RANLIB
11150 fi
11151
11152 if test -n "$ac_cv_prog_RANLIB"; then
11153   for ncn_progname in ranlib; do
11154     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11155 set dummy ${ncn_progname}; ac_word=$2
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11157 $as_echo_n "checking for $ac_word... " >&6; }
11158 if ${ac_cv_prog_RANLIB+:} false; then :
11159   $as_echo_n "(cached) " >&6
11160 else
11161   if test -n "$RANLIB"; then
11162   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11163 else
11164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165 for as_dir in $PATH
11166 do
11167   IFS=$as_save_IFS
11168   test -z "$as_dir" && as_dir=.
11169     for ac_exec_ext in '' $ac_executable_extensions; do
11170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11171     ac_cv_prog_RANLIB="${ncn_progname}"
11172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11173     break 2
11174   fi
11175 done
11176   done
11177 IFS=$as_save_IFS
11178
11179 fi
11180 fi
11181 RANLIB=$ac_cv_prog_RANLIB
11182 if test -n "$RANLIB"; then
11183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11184 $as_echo "$RANLIB" >&6; }
11185 else
11186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187 $as_echo "no" >&6; }
11188 fi
11189
11190
11191   done
11192 fi
11193
11194 for ncn_progname in ranlib; do
11195   if test -n "$ncn_tool_prefix"; then
11196     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11197 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11199 $as_echo_n "checking for $ac_word... " >&6; }
11200 if ${ac_cv_prog_RANLIB+:} false; then :
11201   $as_echo_n "(cached) " >&6
11202 else
11203   if test -n "$RANLIB"; then
11204   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11205 else
11206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11207 for as_dir in $PATH
11208 do
11209   IFS=$as_save_IFS
11210   test -z "$as_dir" && as_dir=.
11211     for ac_exec_ext in '' $ac_executable_extensions; do
11212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11213     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11215     break 2
11216   fi
11217 done
11218   done
11219 IFS=$as_save_IFS
11220
11221 fi
11222 fi
11223 RANLIB=$ac_cv_prog_RANLIB
11224 if test -n "$RANLIB"; then
11225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11226 $as_echo "$RANLIB" >&6; }
11227 else
11228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11230 fi
11231
11232
11233   fi
11234   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11235     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11236 set dummy ${ncn_progname}; ac_word=$2
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11238 $as_echo_n "checking for $ac_word... " >&6; }
11239 if ${ac_cv_prog_RANLIB+:} false; then :
11240   $as_echo_n "(cached) " >&6
11241 else
11242   if test -n "$RANLIB"; then
11243   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11244 else
11245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11246 for as_dir in $PATH
11247 do
11248   IFS=$as_save_IFS
11249   test -z "$as_dir" && as_dir=.
11250     for ac_exec_ext in '' $ac_executable_extensions; do
11251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11252     ac_cv_prog_RANLIB="${ncn_progname}"
11253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11254     break 2
11255   fi
11256 done
11257   done
11258 IFS=$as_save_IFS
11259
11260 fi
11261 fi
11262 RANLIB=$ac_cv_prog_RANLIB
11263 if test -n "$RANLIB"; then
11264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11265 $as_echo "$RANLIB" >&6; }
11266 else
11267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268 $as_echo "no" >&6; }
11269 fi
11270
11271
11272   fi
11273   test -n "$ac_cv_prog_RANLIB" && break
11274 done
11275
11276 if test -z "$ac_cv_prog_RANLIB" ; then
11277   RANLIB="true"
11278 fi
11279
11280
11281
11282 if test -n "$STRIP"; then
11283   ac_cv_prog_STRIP=$STRIP
11284 elif test -n "$ac_cv_prog_STRIP"; then
11285   STRIP=$ac_cv_prog_STRIP
11286 fi
11287
11288 if test -n "$ac_cv_prog_STRIP"; then
11289   for ncn_progname in strip; do
11290     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11291 set dummy ${ncn_progname}; ac_word=$2
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293 $as_echo_n "checking for $ac_word... " >&6; }
11294 if ${ac_cv_prog_STRIP+:} false; then :
11295   $as_echo_n "(cached) " >&6
11296 else
11297   if test -n "$STRIP"; then
11298   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11299 else
11300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301 for as_dir in $PATH
11302 do
11303   IFS=$as_save_IFS
11304   test -z "$as_dir" && as_dir=.
11305     for ac_exec_ext in '' $ac_executable_extensions; do
11306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11307     ac_cv_prog_STRIP="${ncn_progname}"
11308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11309     break 2
11310   fi
11311 done
11312   done
11313 IFS=$as_save_IFS
11314
11315 fi
11316 fi
11317 STRIP=$ac_cv_prog_STRIP
11318 if test -n "$STRIP"; then
11319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11320 $as_echo "$STRIP" >&6; }
11321 else
11322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11324 fi
11325
11326
11327   done
11328 fi
11329
11330 for ncn_progname in strip; do
11331   if test -n "$ncn_tool_prefix"; then
11332     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11333 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11335 $as_echo_n "checking for $ac_word... " >&6; }
11336 if ${ac_cv_prog_STRIP+:} false; then :
11337   $as_echo_n "(cached) " >&6
11338 else
11339   if test -n "$STRIP"; then
11340   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11341 else
11342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in $PATH
11344 do
11345   IFS=$as_save_IFS
11346   test -z "$as_dir" && as_dir=.
11347     for ac_exec_ext in '' $ac_executable_extensions; do
11348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11349     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11351     break 2
11352   fi
11353 done
11354   done
11355 IFS=$as_save_IFS
11356
11357 fi
11358 fi
11359 STRIP=$ac_cv_prog_STRIP
11360 if test -n "$STRIP"; then
11361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11362 $as_echo "$STRIP" >&6; }
11363 else
11364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11366 fi
11367
11368
11369   fi
11370   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11371     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11372 set dummy ${ncn_progname}; ac_word=$2
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11374 $as_echo_n "checking for $ac_word... " >&6; }
11375 if ${ac_cv_prog_STRIP+:} false; then :
11376   $as_echo_n "(cached) " >&6
11377 else
11378   if test -n "$STRIP"; then
11379   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11380 else
11381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382 for as_dir in $PATH
11383 do
11384   IFS=$as_save_IFS
11385   test -z "$as_dir" && as_dir=.
11386     for ac_exec_ext in '' $ac_executable_extensions; do
11387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11388     ac_cv_prog_STRIP="${ncn_progname}"
11389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11390     break 2
11391   fi
11392 done
11393   done
11394 IFS=$as_save_IFS
11395
11396 fi
11397 fi
11398 STRIP=$ac_cv_prog_STRIP
11399 if test -n "$STRIP"; then
11400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11401 $as_echo "$STRIP" >&6; }
11402 else
11403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11405 fi
11406
11407
11408   fi
11409   test -n "$ac_cv_prog_STRIP" && break
11410 done
11411
11412 if test -z "$ac_cv_prog_STRIP" ; then
11413   STRIP="true"
11414 fi
11415
11416
11417
11418 if test -n "$WINDRES"; then
11419   ac_cv_prog_WINDRES=$WINDRES
11420 elif test -n "$ac_cv_prog_WINDRES"; then
11421   WINDRES=$ac_cv_prog_WINDRES
11422 fi
11423
11424 if test -n "$ac_cv_prog_WINDRES"; then
11425   for ncn_progname in windres; do
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_WINDRES+:} false; then :
11431   $as_echo_n "(cached) " >&6
11432 else
11433   if test -n "$WINDRES"; then
11434   ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${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 WINDRES=$ac_cv_prog_WINDRES
11454 if test -n "$WINDRES"; then
11455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11456 $as_echo "$WINDRES" >&6; }
11457 else
11458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; }
11460 fi
11461
11462
11463   done
11464 fi
11465
11466 for ncn_progname in windres; do
11467   if test -n "$ncn_tool_prefix"; then
11468     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11469 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11471 $as_echo_n "checking for $ac_word... " >&6; }
11472 if ${ac_cv_prog_WINDRES+:} false; then :
11473   $as_echo_n "(cached) " >&6
11474 else
11475   if test -n "$WINDRES"; then
11476   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11477 else
11478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479 for as_dir in $PATH
11480 do
11481   IFS=$as_save_IFS
11482   test -z "$as_dir" && as_dir=.
11483     for ac_exec_ext in '' $ac_executable_extensions; do
11484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11485     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11487     break 2
11488   fi
11489 done
11490   done
11491 IFS=$as_save_IFS
11492
11493 fi
11494 fi
11495 WINDRES=$ac_cv_prog_WINDRES
11496 if test -n "$WINDRES"; then
11497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11498 $as_echo "$WINDRES" >&6; }
11499 else
11500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501 $as_echo "no" >&6; }
11502 fi
11503
11504
11505   fi
11506   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11507     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11508 set dummy ${ncn_progname}; ac_word=$2
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11510 $as_echo_n "checking for $ac_word... " >&6; }
11511 if ${ac_cv_prog_WINDRES+:} false; then :
11512   $as_echo_n "(cached) " >&6
11513 else
11514   if test -n "$WINDRES"; then
11515   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11516 else
11517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518 for as_dir in $PATH
11519 do
11520   IFS=$as_save_IFS
11521   test -z "$as_dir" && as_dir=.
11522     for ac_exec_ext in '' $ac_executable_extensions; do
11523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11524     ac_cv_prog_WINDRES="${ncn_progname}"
11525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11526     break 2
11527   fi
11528 done
11529   done
11530 IFS=$as_save_IFS
11531
11532 fi
11533 fi
11534 WINDRES=$ac_cv_prog_WINDRES
11535 if test -n "$WINDRES"; then
11536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11537 $as_echo "$WINDRES" >&6; }
11538 else
11539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540 $as_echo "no" >&6; }
11541 fi
11542
11543
11544   fi
11545   test -n "$ac_cv_prog_WINDRES" && break
11546 done
11547
11548 if test -z "$ac_cv_prog_WINDRES" ; then
11549   set dummy windres
11550   if test $build = $host ; then
11551     WINDRES="$2"
11552   else
11553     WINDRES="${ncn_tool_prefix}$2"
11554   fi
11555 fi
11556
11557
11558
11559 if test -n "$WINDMC"; then
11560   ac_cv_prog_WINDMC=$WINDMC
11561 elif test -n "$ac_cv_prog_WINDMC"; then
11562   WINDMC=$ac_cv_prog_WINDMC
11563 fi
11564
11565 if test -n "$ac_cv_prog_WINDMC"; then
11566   for ncn_progname in windmc; do
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_WINDMC+:} false; then :
11572   $as_echo_n "(cached) " >&6
11573 else
11574   if test -n "$WINDMC"; then
11575   ac_cv_prog_WINDMC="$WINDMC" # 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_WINDMC="${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 WINDMC=$ac_cv_prog_WINDMC
11595 if test -n "$WINDMC"; then
11596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11597 $as_echo "$WINDMC" >&6; }
11598 else
11599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600 $as_echo "no" >&6; }
11601 fi
11602
11603
11604   done
11605 fi
11606
11607 for ncn_progname in windmc; do
11608   if test -n "$ncn_tool_prefix"; then
11609     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11610 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11612 $as_echo_n "checking for $ac_word... " >&6; }
11613 if ${ac_cv_prog_WINDMC+:} false; then :
11614   $as_echo_n "(cached) " >&6
11615 else
11616   if test -n "$WINDMC"; then
11617   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11618 else
11619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620 for as_dir in $PATH
11621 do
11622   IFS=$as_save_IFS
11623   test -z "$as_dir" && as_dir=.
11624     for ac_exec_ext in '' $ac_executable_extensions; do
11625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11626     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
11627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11628     break 2
11629   fi
11630 done
11631   done
11632 IFS=$as_save_IFS
11633
11634 fi
11635 fi
11636 WINDMC=$ac_cv_prog_WINDMC
11637 if test -n "$WINDMC"; then
11638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11639 $as_echo "$WINDMC" >&6; }
11640 else
11641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11643 fi
11644
11645
11646   fi
11647   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
11648     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11649 set dummy ${ncn_progname}; ac_word=$2
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11651 $as_echo_n "checking for $ac_word... " >&6; }
11652 if ${ac_cv_prog_WINDMC+:} false; then :
11653   $as_echo_n "(cached) " >&6
11654 else
11655   if test -n "$WINDMC"; then
11656   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11657 else
11658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11659 for as_dir in $PATH
11660 do
11661   IFS=$as_save_IFS
11662   test -z "$as_dir" && as_dir=.
11663     for ac_exec_ext in '' $ac_executable_extensions; do
11664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11665     ac_cv_prog_WINDMC="${ncn_progname}"
11666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11667     break 2
11668   fi
11669 done
11670   done
11671 IFS=$as_save_IFS
11672
11673 fi
11674 fi
11675 WINDMC=$ac_cv_prog_WINDMC
11676 if test -n "$WINDMC"; then
11677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11678 $as_echo "$WINDMC" >&6; }
11679 else
11680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681 $as_echo "no" >&6; }
11682 fi
11683
11684
11685   fi
11686   test -n "$ac_cv_prog_WINDMC" && break
11687 done
11688
11689 if test -z "$ac_cv_prog_WINDMC" ; then
11690   set dummy windmc
11691   if test $build = $host ; then
11692     WINDMC="$2"
11693   else
11694     WINDMC="${ncn_tool_prefix}$2"
11695   fi
11696 fi
11697
11698
11699
11700 if test -n "$OBJCOPY"; then
11701   ac_cv_prog_OBJCOPY=$OBJCOPY
11702 elif test -n "$ac_cv_prog_OBJCOPY"; then
11703   OBJCOPY=$ac_cv_prog_OBJCOPY
11704 fi
11705
11706 if test -n "$ac_cv_prog_OBJCOPY"; then
11707   for ncn_progname in objcopy; do
11708     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11709 set dummy ${ncn_progname}; ac_word=$2
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11711 $as_echo_n "checking for $ac_word... " >&6; }
11712 if ${ac_cv_prog_OBJCOPY+:} false; then :
11713   $as_echo_n "(cached) " >&6
11714 else
11715   if test -n "$OBJCOPY"; then
11716   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11717 else
11718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11719 for as_dir in $PATH
11720 do
11721   IFS=$as_save_IFS
11722   test -z "$as_dir" && as_dir=.
11723     for ac_exec_ext in '' $ac_executable_extensions; do
11724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11725     ac_cv_prog_OBJCOPY="${ncn_progname}"
11726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11727     break 2
11728   fi
11729 done
11730   done
11731 IFS=$as_save_IFS
11732
11733 fi
11734 fi
11735 OBJCOPY=$ac_cv_prog_OBJCOPY
11736 if test -n "$OBJCOPY"; then
11737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11738 $as_echo "$OBJCOPY" >&6; }
11739 else
11740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741 $as_echo "no" >&6; }
11742 fi
11743
11744
11745   done
11746 fi
11747
11748 for ncn_progname in objcopy; do
11749   if test -n "$ncn_tool_prefix"; then
11750     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11751 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11753 $as_echo_n "checking for $ac_word... " >&6; }
11754 if ${ac_cv_prog_OBJCOPY+:} false; then :
11755   $as_echo_n "(cached) " >&6
11756 else
11757   if test -n "$OBJCOPY"; then
11758   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11759 else
11760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761 for as_dir in $PATH
11762 do
11763   IFS=$as_save_IFS
11764   test -z "$as_dir" && as_dir=.
11765     for ac_exec_ext in '' $ac_executable_extensions; do
11766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11767     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
11768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11769     break 2
11770   fi
11771 done
11772   done
11773 IFS=$as_save_IFS
11774
11775 fi
11776 fi
11777 OBJCOPY=$ac_cv_prog_OBJCOPY
11778 if test -n "$OBJCOPY"; then
11779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11780 $as_echo "$OBJCOPY" >&6; }
11781 else
11782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783 $as_echo "no" >&6; }
11784 fi
11785
11786
11787   fi
11788   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
11789     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11790 set dummy ${ncn_progname}; ac_word=$2
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11792 $as_echo_n "checking for $ac_word... " >&6; }
11793 if ${ac_cv_prog_OBJCOPY+:} false; then :
11794   $as_echo_n "(cached) " >&6
11795 else
11796   if test -n "$OBJCOPY"; then
11797   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11798 else
11799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11800 for as_dir in $PATH
11801 do
11802   IFS=$as_save_IFS
11803   test -z "$as_dir" && as_dir=.
11804     for ac_exec_ext in '' $ac_executable_extensions; do
11805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11806     ac_cv_prog_OBJCOPY="${ncn_progname}"
11807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11808     break 2
11809   fi
11810 done
11811   done
11812 IFS=$as_save_IFS
11813
11814 fi
11815 fi
11816 OBJCOPY=$ac_cv_prog_OBJCOPY
11817 if test -n "$OBJCOPY"; then
11818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11819 $as_echo "$OBJCOPY" >&6; }
11820 else
11821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822 $as_echo "no" >&6; }
11823 fi
11824
11825
11826   fi
11827   test -n "$ac_cv_prog_OBJCOPY" && break
11828 done
11829
11830 if test -z "$ac_cv_prog_OBJCOPY" ; then
11831   set dummy objcopy
11832   if test $build = $host ; then
11833     OBJCOPY="$2"
11834   else
11835     OBJCOPY="${ncn_tool_prefix}$2"
11836   fi
11837 fi
11838
11839
11840
11841 if test -n "$OBJDUMP"; then
11842   ac_cv_prog_OBJDUMP=$OBJDUMP
11843 elif test -n "$ac_cv_prog_OBJDUMP"; then
11844   OBJDUMP=$ac_cv_prog_OBJDUMP
11845 fi
11846
11847 if test -n "$ac_cv_prog_OBJDUMP"; then
11848   for ncn_progname in objdump; do
11849     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11850 set dummy ${ncn_progname}; ac_word=$2
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11852 $as_echo_n "checking for $ac_word... " >&6; }
11853 if ${ac_cv_prog_OBJDUMP+:} false; then :
11854   $as_echo_n "(cached) " >&6
11855 else
11856   if test -n "$OBJDUMP"; then
11857   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11858 else
11859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11860 for as_dir in $PATH
11861 do
11862   IFS=$as_save_IFS
11863   test -z "$as_dir" && as_dir=.
11864     for ac_exec_ext in '' $ac_executable_extensions; do
11865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11866     ac_cv_prog_OBJDUMP="${ncn_progname}"
11867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11868     break 2
11869   fi
11870 done
11871   done
11872 IFS=$as_save_IFS
11873
11874 fi
11875 fi
11876 OBJDUMP=$ac_cv_prog_OBJDUMP
11877 if test -n "$OBJDUMP"; then
11878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11879 $as_echo "$OBJDUMP" >&6; }
11880 else
11881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882 $as_echo "no" >&6; }
11883 fi
11884
11885
11886   done
11887 fi
11888
11889 for ncn_progname in objdump; do
11890   if test -n "$ncn_tool_prefix"; then
11891     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11892 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11894 $as_echo_n "checking for $ac_word... " >&6; }
11895 if ${ac_cv_prog_OBJDUMP+:} false; then :
11896   $as_echo_n "(cached) " >&6
11897 else
11898   if test -n "$OBJDUMP"; then
11899   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11900 else
11901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902 for as_dir in $PATH
11903 do
11904   IFS=$as_save_IFS
11905   test -z "$as_dir" && as_dir=.
11906     for ac_exec_ext in '' $ac_executable_extensions; do
11907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11908     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
11909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11910     break 2
11911   fi
11912 done
11913   done
11914 IFS=$as_save_IFS
11915
11916 fi
11917 fi
11918 OBJDUMP=$ac_cv_prog_OBJDUMP
11919 if test -n "$OBJDUMP"; then
11920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11921 $as_echo "$OBJDUMP" >&6; }
11922 else
11923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924 $as_echo "no" >&6; }
11925 fi
11926
11927
11928   fi
11929   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
11930     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11931 set dummy ${ncn_progname}; ac_word=$2
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11933 $as_echo_n "checking for $ac_word... " >&6; }
11934 if ${ac_cv_prog_OBJDUMP+:} false; then :
11935   $as_echo_n "(cached) " >&6
11936 else
11937   if test -n "$OBJDUMP"; then
11938   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11939 else
11940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11941 for as_dir in $PATH
11942 do
11943   IFS=$as_save_IFS
11944   test -z "$as_dir" && as_dir=.
11945     for ac_exec_ext in '' $ac_executable_extensions; do
11946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11947     ac_cv_prog_OBJDUMP="${ncn_progname}"
11948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11949     break 2
11950   fi
11951 done
11952   done
11953 IFS=$as_save_IFS
11954
11955 fi
11956 fi
11957 OBJDUMP=$ac_cv_prog_OBJDUMP
11958 if test -n "$OBJDUMP"; then
11959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11960 $as_echo "$OBJDUMP" >&6; }
11961 else
11962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963 $as_echo "no" >&6; }
11964 fi
11965
11966
11967   fi
11968   test -n "$ac_cv_prog_OBJDUMP" && break
11969 done
11970
11971 if test -z "$ac_cv_prog_OBJDUMP" ; then
11972   set dummy objdump
11973   if test $build = $host ; then
11974     OBJDUMP="$2"
11975   else
11976     OBJDUMP="${ncn_tool_prefix}$2"
11977   fi
11978 fi
11979
11980
11981
11982 if test -n "$OTOOL"; then
11983   ac_cv_prog_OTOOL=$OTOOL
11984 elif test -n "$ac_cv_prog_OTOOL"; then
11985   OTOOL=$ac_cv_prog_OTOOL
11986 fi
11987
11988 if test -n "$ac_cv_prog_OTOOL"; then
11989   for ncn_progname in otool; do
11990     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11991 set dummy ${ncn_progname}; ac_word=$2
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11993 $as_echo_n "checking for $ac_word... " >&6; }
11994 if ${ac_cv_prog_OTOOL+:} false; then :
11995   $as_echo_n "(cached) " >&6
11996 else
11997   if test -n "$OTOOL"; then
11998   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11999 else
12000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001 for as_dir in $PATH
12002 do
12003   IFS=$as_save_IFS
12004   test -z "$as_dir" && as_dir=.
12005     for ac_exec_ext in '' $ac_executable_extensions; do
12006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12007     ac_cv_prog_OTOOL="${ncn_progname}"
12008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12009     break 2
12010   fi
12011 done
12012   done
12013 IFS=$as_save_IFS
12014
12015 fi
12016 fi
12017 OTOOL=$ac_cv_prog_OTOOL
12018 if test -n "$OTOOL"; then
12019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12020 $as_echo "$OTOOL" >&6; }
12021 else
12022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12023 $as_echo "no" >&6; }
12024 fi
12025
12026
12027   done
12028 fi
12029
12030 for ncn_progname in otool; do
12031   if test -n "$ncn_tool_prefix"; then
12032     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12033 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12035 $as_echo_n "checking for $ac_word... " >&6; }
12036 if ${ac_cv_prog_OTOOL+:} false; then :
12037   $as_echo_n "(cached) " >&6
12038 else
12039   if test -n "$OTOOL"; then
12040   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12041 else
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $PATH
12044 do
12045   IFS=$as_save_IFS
12046   test -z "$as_dir" && as_dir=.
12047     for ac_exec_ext in '' $ac_executable_extensions; do
12048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12049     ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12051     break 2
12052   fi
12053 done
12054   done
12055 IFS=$as_save_IFS
12056
12057 fi
12058 fi
12059 OTOOL=$ac_cv_prog_OTOOL
12060 if test -n "$OTOOL"; then
12061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12062 $as_echo "$OTOOL" >&6; }
12063 else
12064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12066 fi
12067
12068
12069   fi
12070   if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12071     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12072 set dummy ${ncn_progname}; ac_word=$2
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074 $as_echo_n "checking for $ac_word... " >&6; }
12075 if ${ac_cv_prog_OTOOL+:} false; then :
12076   $as_echo_n "(cached) " >&6
12077 else
12078   if test -n "$OTOOL"; then
12079   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12080 else
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12083 do
12084   IFS=$as_save_IFS
12085   test -z "$as_dir" && as_dir=.
12086     for ac_exec_ext in '' $ac_executable_extensions; do
12087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088     ac_cv_prog_OTOOL="${ncn_progname}"
12089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12090     break 2
12091   fi
12092 done
12093   done
12094 IFS=$as_save_IFS
12095
12096 fi
12097 fi
12098 OTOOL=$ac_cv_prog_OTOOL
12099 if test -n "$OTOOL"; then
12100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12101 $as_echo "$OTOOL" >&6; }
12102 else
12103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 $as_echo "no" >&6; }
12105 fi
12106
12107
12108   fi
12109   test -n "$ac_cv_prog_OTOOL" && break
12110 done
12111
12112 if test -z "$ac_cv_prog_OTOOL" ; then
12113   set dummy otool
12114   if test $build = $host ; then
12115     OTOOL="$2"
12116   else
12117     OTOOL="${ncn_tool_prefix}$2"
12118   fi
12119 fi
12120
12121
12122
12123 if test -n "$READELF"; then
12124   ac_cv_prog_READELF=$READELF
12125 elif test -n "$ac_cv_prog_READELF"; then
12126   READELF=$ac_cv_prog_READELF
12127 fi
12128
12129 if test -n "$ac_cv_prog_READELF"; then
12130   for ncn_progname in readelf; do
12131     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12132 set dummy ${ncn_progname}; ac_word=$2
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12134 $as_echo_n "checking for $ac_word... " >&6; }
12135 if ${ac_cv_prog_READELF+:} false; then :
12136   $as_echo_n "(cached) " >&6
12137 else
12138   if test -n "$READELF"; then
12139   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12140 else
12141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142 for as_dir in $PATH
12143 do
12144   IFS=$as_save_IFS
12145   test -z "$as_dir" && as_dir=.
12146     for ac_exec_ext in '' $ac_executable_extensions; do
12147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12148     ac_cv_prog_READELF="${ncn_progname}"
12149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12150     break 2
12151   fi
12152 done
12153   done
12154 IFS=$as_save_IFS
12155
12156 fi
12157 fi
12158 READELF=$ac_cv_prog_READELF
12159 if test -n "$READELF"; then
12160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12161 $as_echo "$READELF" >&6; }
12162 else
12163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164 $as_echo "no" >&6; }
12165 fi
12166
12167
12168   done
12169 fi
12170
12171 for ncn_progname in readelf; do
12172   if test -n "$ncn_tool_prefix"; then
12173     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12174 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12176 $as_echo_n "checking for $ac_word... " >&6; }
12177 if ${ac_cv_prog_READELF+:} false; then :
12178   $as_echo_n "(cached) " >&6
12179 else
12180   if test -n "$READELF"; then
12181   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12182 else
12183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184 for as_dir in $PATH
12185 do
12186   IFS=$as_save_IFS
12187   test -z "$as_dir" && as_dir=.
12188     for ac_exec_ext in '' $ac_executable_extensions; do
12189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12190     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12192     break 2
12193   fi
12194 done
12195   done
12196 IFS=$as_save_IFS
12197
12198 fi
12199 fi
12200 READELF=$ac_cv_prog_READELF
12201 if test -n "$READELF"; then
12202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12203 $as_echo "$READELF" >&6; }
12204 else
12205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206 $as_echo "no" >&6; }
12207 fi
12208
12209
12210   fi
12211   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12212     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12213 set dummy ${ncn_progname}; ac_word=$2
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12215 $as_echo_n "checking for $ac_word... " >&6; }
12216 if ${ac_cv_prog_READELF+:} false; then :
12217   $as_echo_n "(cached) " >&6
12218 else
12219   if test -n "$READELF"; then
12220   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12221 else
12222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12223 for as_dir in $PATH
12224 do
12225   IFS=$as_save_IFS
12226   test -z "$as_dir" && as_dir=.
12227     for ac_exec_ext in '' $ac_executable_extensions; do
12228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12229     ac_cv_prog_READELF="${ncn_progname}"
12230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12231     break 2
12232   fi
12233 done
12234   done
12235 IFS=$as_save_IFS
12236
12237 fi
12238 fi
12239 READELF=$ac_cv_prog_READELF
12240 if test -n "$READELF"; then
12241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12242 $as_echo "$READELF" >&6; }
12243 else
12244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245 $as_echo "no" >&6; }
12246 fi
12247
12248
12249   fi
12250   test -n "$ac_cv_prog_READELF" && break
12251 done
12252
12253 if test -z "$ac_cv_prog_READELF" ; then
12254   set dummy readelf
12255   if test $build = $host ; then
12256     READELF="$2"
12257   else
12258     READELF="${ncn_tool_prefix}$2"
12259   fi
12260 fi
12261
12262
12263
12264
12265
12266
12267 # Target tools.
12268
12269 # Check whether --with-build-time-tools was given.
12270 if test "${with_build_time_tools+set}" = set; then :
12271   withval=$with_build_time_tools; case x"$withval" in
12272      x/*) ;;
12273      *)
12274        with_build_time_tools=
12275        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12276 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12277        ;;
12278    esac
12279 else
12280   with_build_time_tools=
12281 fi
12282
12283
12284
12285
12286 if test -n "$CC_FOR_TARGET"; then
12287   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12288 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12289   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12290 fi
12291
12292 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12293   for ncn_progname in cc gcc; do
12294     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12295 set dummy ${ncn_progname}; ac_word=$2
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12297 $as_echo_n "checking for $ac_word... " >&6; }
12298 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12299   $as_echo_n "(cached) " >&6
12300 else
12301   if test -n "$CC_FOR_TARGET"; then
12302   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12303 else
12304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12305 for as_dir in $PATH
12306 do
12307   IFS=$as_save_IFS
12308   test -z "$as_dir" && as_dir=.
12309     for ac_exec_ext in '' $ac_executable_extensions; do
12310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12311     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12313     break 2
12314   fi
12315 done
12316   done
12317 IFS=$as_save_IFS
12318
12319 fi
12320 fi
12321 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12322 if test -n "$CC_FOR_TARGET"; then
12323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12324 $as_echo "$CC_FOR_TARGET" >&6; }
12325 else
12326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327 $as_echo "no" >&6; }
12328 fi
12329
12330
12331   done
12332 fi
12333
12334 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12335   for ncn_progname in cc gcc; do
12336     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12337 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12338     if test -x $with_build_time_tools/${ncn_progname}; then
12339       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12340       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12341 $as_echo "yes" >&6; }
12342       break
12343     else
12344       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345 $as_echo "no" >&6; }
12346     fi
12347   done
12348 fi
12349
12350 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12351   for ncn_progname in cc gcc; do
12352     if test -n "$ncn_target_tool_prefix"; then
12353       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12354 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12356 $as_echo_n "checking for $ac_word... " >&6; }
12357 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12358   $as_echo_n "(cached) " >&6
12359 else
12360   if test -n "$CC_FOR_TARGET"; then
12361   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12362 else
12363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12364 for as_dir in $PATH
12365 do
12366   IFS=$as_save_IFS
12367   test -z "$as_dir" && as_dir=.
12368     for ac_exec_ext in '' $ac_executable_extensions; do
12369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12370     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12372     break 2
12373   fi
12374 done
12375   done
12376 IFS=$as_save_IFS
12377
12378 fi
12379 fi
12380 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12381 if test -n "$CC_FOR_TARGET"; then
12382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12383 $as_echo "$CC_FOR_TARGET" >&6; }
12384 else
12385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386 $as_echo "no" >&6; }
12387 fi
12388
12389
12390     fi
12391     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12392       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12393 set dummy ${ncn_progname}; ac_word=$2
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12395 $as_echo_n "checking for $ac_word... " >&6; }
12396 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12397   $as_echo_n "(cached) " >&6
12398 else
12399   if test -n "$CC_FOR_TARGET"; then
12400   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12401 else
12402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12403 for as_dir in $PATH
12404 do
12405   IFS=$as_save_IFS
12406   test -z "$as_dir" && as_dir=.
12407     for ac_exec_ext in '' $ac_executable_extensions; do
12408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12409     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12411     break 2
12412   fi
12413 done
12414   done
12415 IFS=$as_save_IFS
12416
12417 fi
12418 fi
12419 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12420 if test -n "$CC_FOR_TARGET"; then
12421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12422 $as_echo "$CC_FOR_TARGET" >&6; }
12423 else
12424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425 $as_echo "no" >&6; }
12426 fi
12427
12428
12429     fi
12430     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12431   done
12432 fi
12433
12434 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12435   set dummy cc gcc
12436   if test $build = $target ; then
12437     CC_FOR_TARGET="$2"
12438   else
12439     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12440   fi
12441 else
12442   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12443 fi
12444
12445
12446
12447 if test -n "$CXX_FOR_TARGET"; then
12448   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12449 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12450   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12451 fi
12452
12453 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12454   for ncn_progname in c++ g++ cxx gxx; do
12455     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12456 set dummy ${ncn_progname}; ac_word=$2
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458 $as_echo_n "checking for $ac_word... " >&6; }
12459 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12460   $as_echo_n "(cached) " >&6
12461 else
12462   if test -n "$CXX_FOR_TARGET"; then
12463   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12464 else
12465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466 for as_dir in $PATH
12467 do
12468   IFS=$as_save_IFS
12469   test -z "$as_dir" && as_dir=.
12470     for ac_exec_ext in '' $ac_executable_extensions; do
12471   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12472     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12474     break 2
12475   fi
12476 done
12477   done
12478 IFS=$as_save_IFS
12479
12480 fi
12481 fi
12482 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12483 if test -n "$CXX_FOR_TARGET"; then
12484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12485 $as_echo "$CXX_FOR_TARGET" >&6; }
12486 else
12487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488 $as_echo "no" >&6; }
12489 fi
12490
12491
12492   done
12493 fi
12494
12495 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
12496   for ncn_progname in c++ g++ cxx gxx; do
12497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12498 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12499     if test -x $with_build_time_tools/${ncn_progname}; then
12500       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12501       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12502 $as_echo "yes" >&6; }
12503       break
12504     else
12505       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12507     fi
12508   done
12509 fi
12510
12511 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12512   for ncn_progname in c++ g++ cxx gxx; do
12513     if test -n "$ncn_target_tool_prefix"; then
12514       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12515 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12517 $as_echo_n "checking for $ac_word... " >&6; }
12518 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12519   $as_echo_n "(cached) " >&6
12520 else
12521   if test -n "$CXX_FOR_TARGET"; then
12522   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12523 else
12524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in $PATH
12526 do
12527   IFS=$as_save_IFS
12528   test -z "$as_dir" && as_dir=.
12529     for ac_exec_ext in '' $ac_executable_extensions; do
12530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12531     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12533     break 2
12534   fi
12535 done
12536   done
12537 IFS=$as_save_IFS
12538
12539 fi
12540 fi
12541 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12542 if test -n "$CXX_FOR_TARGET"; then
12543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12544 $as_echo "$CXX_FOR_TARGET" >&6; }
12545 else
12546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547 $as_echo "no" >&6; }
12548 fi
12549
12550
12551     fi
12552     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
12553       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12554 set dummy ${ncn_progname}; ac_word=$2
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12556 $as_echo_n "checking for $ac_word... " >&6; }
12557 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12558   $as_echo_n "(cached) " >&6
12559 else
12560   if test -n "$CXX_FOR_TARGET"; then
12561   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12562 else
12563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564 for as_dir in $PATH
12565 do
12566   IFS=$as_save_IFS
12567   test -z "$as_dir" && as_dir=.
12568     for ac_exec_ext in '' $ac_executable_extensions; do
12569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12570     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12572     break 2
12573   fi
12574 done
12575   done
12576 IFS=$as_save_IFS
12577
12578 fi
12579 fi
12580 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12581 if test -n "$CXX_FOR_TARGET"; then
12582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12583 $as_echo "$CXX_FOR_TARGET" >&6; }
12584 else
12585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586 $as_echo "no" >&6; }
12587 fi
12588
12589
12590     fi
12591     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12592   done
12593 fi
12594
12595 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12596   set dummy c++ g++ cxx gxx
12597   if test $build = $target ; then
12598     CXX_FOR_TARGET="$2"
12599   else
12600     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
12601   fi
12602 else
12603   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
12604 fi
12605
12606
12607
12608 if test -n "$GCC_FOR_TARGET"; then
12609   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12610 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12611   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12612 fi
12613
12614 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12615   for ncn_progname in gcc; do
12616     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12617 set dummy ${ncn_progname}; ac_word=$2
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12619 $as_echo_n "checking for $ac_word... " >&6; }
12620 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12621   $as_echo_n "(cached) " >&6
12622 else
12623   if test -n "$GCC_FOR_TARGET"; then
12624   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12625 else
12626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627 for as_dir in $PATH
12628 do
12629   IFS=$as_save_IFS
12630   test -z "$as_dir" && as_dir=.
12631     for ac_exec_ext in '' $ac_executable_extensions; do
12632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12633     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12635     break 2
12636   fi
12637 done
12638   done
12639 IFS=$as_save_IFS
12640
12641 fi
12642 fi
12643 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12644 if test -n "$GCC_FOR_TARGET"; then
12645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12646 $as_echo "$GCC_FOR_TARGET" >&6; }
12647 else
12648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12650 fi
12651
12652
12653   done
12654 fi
12655
12656 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12657   for ncn_progname in gcc; do
12658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12659 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12660     if test -x $with_build_time_tools/${ncn_progname}; then
12661       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12662       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12663 $as_echo "yes" >&6; }
12664       break
12665     else
12666       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667 $as_echo "no" >&6; }
12668     fi
12669   done
12670 fi
12671
12672 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
12673   for ncn_progname in gcc; do
12674     if test -n "$ncn_target_tool_prefix"; then
12675       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12676 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12678 $as_echo_n "checking for $ac_word... " >&6; }
12679 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12680   $as_echo_n "(cached) " >&6
12681 else
12682   if test -n "$GCC_FOR_TARGET"; then
12683   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12684 else
12685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686 for as_dir in $PATH
12687 do
12688   IFS=$as_save_IFS
12689   test -z "$as_dir" && as_dir=.
12690     for ac_exec_ext in '' $ac_executable_extensions; do
12691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12692     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12694     break 2
12695   fi
12696 done
12697   done
12698 IFS=$as_save_IFS
12699
12700 fi
12701 fi
12702 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12703 if test -n "$GCC_FOR_TARGET"; then
12704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12705 $as_echo "$GCC_FOR_TARGET" >&6; }
12706 else
12707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708 $as_echo "no" >&6; }
12709 fi
12710
12711
12712     fi
12713     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
12714       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12715 set dummy ${ncn_progname}; ac_word=$2
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12717 $as_echo_n "checking for $ac_word... " >&6; }
12718 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12719   $as_echo_n "(cached) " >&6
12720 else
12721   if test -n "$GCC_FOR_TARGET"; then
12722   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12723 else
12724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725 for as_dir in $PATH
12726 do
12727   IFS=$as_save_IFS
12728   test -z "$as_dir" && as_dir=.
12729     for ac_exec_ext in '' $ac_executable_extensions; do
12730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12731     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12733     break 2
12734   fi
12735 done
12736   done
12737 IFS=$as_save_IFS
12738
12739 fi
12740 fi
12741 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12742 if test -n "$GCC_FOR_TARGET"; then
12743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12744 $as_echo "$GCC_FOR_TARGET" >&6; }
12745 else
12746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747 $as_echo "no" >&6; }
12748 fi
12749
12750
12751     fi
12752     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
12753   done
12754 fi
12755
12756 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
12757   GCC_FOR_TARGET="${CC_FOR_TARGET}"
12758 else
12759   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
12760 fi
12761
12762
12763
12764 if test -n "$GFORTRAN_FOR_TARGET"; then
12765   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
12766 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12767   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12768 fi
12769
12770 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12771   for ncn_progname in gfortran; do
12772     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12773 set dummy ${ncn_progname}; ac_word=$2
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775 $as_echo_n "checking for $ac_word... " >&6; }
12776 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12777   $as_echo_n "(cached) " >&6
12778 else
12779   if test -n "$GFORTRAN_FOR_TARGET"; then
12780   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12781 else
12782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783 for as_dir in $PATH
12784 do
12785   IFS=$as_save_IFS
12786   test -z "$as_dir" && as_dir=.
12787     for ac_exec_ext in '' $ac_executable_extensions; do
12788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12789     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
12790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12791     break 2
12792   fi
12793 done
12794   done
12795 IFS=$as_save_IFS
12796
12797 fi
12798 fi
12799 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12800 if test -n "$GFORTRAN_FOR_TARGET"; then
12801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12802 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12803 else
12804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805 $as_echo "no" >&6; }
12806 fi
12807
12808
12809   done
12810 fi
12811
12812 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
12813   for ncn_progname in gfortran; do
12814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12815 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12816     if test -x $with_build_time_tools/${ncn_progname}; then
12817       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12818       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12819 $as_echo "yes" >&6; }
12820       break
12821     else
12822       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823 $as_echo "no" >&6; }
12824     fi
12825   done
12826 fi
12827
12828 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12829   for ncn_progname in gfortran; do
12830     if test -n "$ncn_target_tool_prefix"; then
12831       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12832 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834 $as_echo_n "checking for $ac_word... " >&6; }
12835 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12836   $as_echo_n "(cached) " >&6
12837 else
12838   if test -n "$GFORTRAN_FOR_TARGET"; then
12839   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12840 else
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH
12843 do
12844   IFS=$as_save_IFS
12845   test -z "$as_dir" && as_dir=.
12846     for ac_exec_ext in '' $ac_executable_extensions; do
12847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12848     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12850     break 2
12851   fi
12852 done
12853   done
12854 IFS=$as_save_IFS
12855
12856 fi
12857 fi
12858 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12859 if test -n "$GFORTRAN_FOR_TARGET"; then
12860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12861 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12862 else
12863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12865 fi
12866
12867
12868     fi
12869     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
12870       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12871 set dummy ${ncn_progname}; ac_word=$2
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873 $as_echo_n "checking for $ac_word... " >&6; }
12874 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12875   $as_echo_n "(cached) " >&6
12876 else
12877   if test -n "$GFORTRAN_FOR_TARGET"; then
12878   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12879 else
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12882 do
12883   IFS=$as_save_IFS
12884   test -z "$as_dir" && as_dir=.
12885     for ac_exec_ext in '' $ac_executable_extensions; do
12886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12887     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
12888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889     break 2
12890   fi
12891 done
12892   done
12893 IFS=$as_save_IFS
12894
12895 fi
12896 fi
12897 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12898 if test -n "$GFORTRAN_FOR_TARGET"; then
12899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12900 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12901 else
12902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12904 fi
12905
12906
12907     fi
12908     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
12909   done
12910 fi
12911
12912 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
12913   set dummy gfortran
12914   if test $build = $target ; then
12915     GFORTRAN_FOR_TARGET="$2"
12916   else
12917     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
12918   fi
12919 else
12920   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
12921 fi
12922
12923
12924
12925 if test -n "$GOC_FOR_TARGET"; then
12926   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
12927 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
12928   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
12929 fi
12930
12931 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
12932   for ncn_progname in gccgo; do
12933     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12934 set dummy ${ncn_progname}; ac_word=$2
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12936 $as_echo_n "checking for $ac_word... " >&6; }
12937 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
12938   $as_echo_n "(cached) " >&6
12939 else
12940   if test -n "$GOC_FOR_TARGET"; then
12941   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
12942 else
12943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12944 for as_dir in $PATH
12945 do
12946   IFS=$as_save_IFS
12947   test -z "$as_dir" && as_dir=.
12948     for ac_exec_ext in '' $ac_executable_extensions; do
12949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12950     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
12951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12952     break 2
12953   fi
12954 done
12955   done
12956 IFS=$as_save_IFS
12957
12958 fi
12959 fi
12960 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
12961 if test -n "$GOC_FOR_TARGET"; then
12962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
12963 $as_echo "$GOC_FOR_TARGET" >&6; }
12964 else
12965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12966 $as_echo "no" >&6; }
12967 fi
12968
12969
12970   done
12971 fi
12972
12973 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12974   for ncn_progname in gccgo; do
12975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12976 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12977     if test -x $with_build_time_tools/${ncn_progname}; then
12978       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12979       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12980 $as_echo "yes" >&6; }
12981       break
12982     else
12983       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12984 $as_echo "no" >&6; }
12985     fi
12986   done
12987 fi
12988
12989 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
12990   for ncn_progname in gccgo; do
12991     if test -n "$ncn_target_tool_prefix"; then
12992       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12993 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12995 $as_echo_n "checking for $ac_word... " >&6; }
12996 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
12997   $as_echo_n "(cached) " >&6
12998 else
12999   if test -n "$GOC_FOR_TARGET"; then
13000   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13001 else
13002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13003 for as_dir in $PATH
13004 do
13005   IFS=$as_save_IFS
13006   test -z "$as_dir" && as_dir=.
13007     for ac_exec_ext in '' $ac_executable_extensions; do
13008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13009     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13011     break 2
13012   fi
13013 done
13014   done
13015 IFS=$as_save_IFS
13016
13017 fi
13018 fi
13019 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13020 if test -n "$GOC_FOR_TARGET"; then
13021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13022 $as_echo "$GOC_FOR_TARGET" >&6; }
13023 else
13024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025 $as_echo "no" >&6; }
13026 fi
13027
13028
13029     fi
13030     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13031       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13032 set dummy ${ncn_progname}; ac_word=$2
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13034 $as_echo_n "checking for $ac_word... " >&6; }
13035 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13036   $as_echo_n "(cached) " >&6
13037 else
13038   if test -n "$GOC_FOR_TARGET"; then
13039   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13040 else
13041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042 for as_dir in $PATH
13043 do
13044   IFS=$as_save_IFS
13045   test -z "$as_dir" && as_dir=.
13046     for ac_exec_ext in '' $ac_executable_extensions; do
13047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13048     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13050     break 2
13051   fi
13052 done
13053   done
13054 IFS=$as_save_IFS
13055
13056 fi
13057 fi
13058 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13059 if test -n "$GOC_FOR_TARGET"; then
13060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13061 $as_echo "$GOC_FOR_TARGET" >&6; }
13062 else
13063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13064 $as_echo "no" >&6; }
13065 fi
13066
13067
13068     fi
13069     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13070   done
13071 fi
13072
13073 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13074   set dummy gccgo
13075   if test $build = $target ; then
13076     GOC_FOR_TARGET="$2"
13077   else
13078     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13079   fi
13080 else
13081   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13082 fi
13083
13084
13085
13086 if test -n "$GDC_FOR_TARGET"; then
13087   ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13088 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13089   GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13090 fi
13091
13092 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13093   for ncn_progname in gdc; do
13094     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13095 set dummy ${ncn_progname}; ac_word=$2
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13097 $as_echo_n "checking for $ac_word... " >&6; }
13098 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13099   $as_echo_n "(cached) " >&6
13100 else
13101   if test -n "$GDC_FOR_TARGET"; then
13102   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13103 else
13104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105 for as_dir in $PATH
13106 do
13107   IFS=$as_save_IFS
13108   test -z "$as_dir" && as_dir=.
13109     for ac_exec_ext in '' $ac_executable_extensions; do
13110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13111     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13113     break 2
13114   fi
13115 done
13116   done
13117 IFS=$as_save_IFS
13118
13119 fi
13120 fi
13121 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13122 if test -n "$GDC_FOR_TARGET"; then
13123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13124 $as_echo "$GDC_FOR_TARGET" >&6; }
13125 else
13126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13128 fi
13129
13130
13131   done
13132 fi
13133
13134 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13135   for ncn_progname in gdc; do
13136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13137 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13138     if test -x $with_build_time_tools/${ncn_progname}; then
13139       ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13140       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13141 $as_echo "yes" >&6; }
13142       break
13143     else
13144       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13145 $as_echo "no" >&6; }
13146     fi
13147   done
13148 fi
13149
13150 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13151   for ncn_progname in gdc; do
13152     if test -n "$ncn_target_tool_prefix"; then
13153       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13154 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13156 $as_echo_n "checking for $ac_word... " >&6; }
13157 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13158   $as_echo_n "(cached) " >&6
13159 else
13160   if test -n "$GDC_FOR_TARGET"; then
13161   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13162 else
13163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13164 for as_dir in $PATH
13165 do
13166   IFS=$as_save_IFS
13167   test -z "$as_dir" && as_dir=.
13168     for ac_exec_ext in '' $ac_executable_extensions; do
13169   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13170     ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13172     break 2
13173   fi
13174 done
13175   done
13176 IFS=$as_save_IFS
13177
13178 fi
13179 fi
13180 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13181 if test -n "$GDC_FOR_TARGET"; then
13182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13183 $as_echo "$GDC_FOR_TARGET" >&6; }
13184 else
13185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186 $as_echo "no" >&6; }
13187 fi
13188
13189
13190     fi
13191     if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13192       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13193 set dummy ${ncn_progname}; ac_word=$2
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13195 $as_echo_n "checking for $ac_word... " >&6; }
13196 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13197   $as_echo_n "(cached) " >&6
13198 else
13199   if test -n "$GDC_FOR_TARGET"; then
13200   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13201 else
13202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203 for as_dir in $PATH
13204 do
13205   IFS=$as_save_IFS
13206   test -z "$as_dir" && as_dir=.
13207     for ac_exec_ext in '' $ac_executable_extensions; do
13208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13209     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13211     break 2
13212   fi
13213 done
13214   done
13215 IFS=$as_save_IFS
13216
13217 fi
13218 fi
13219 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13220 if test -n "$GDC_FOR_TARGET"; then
13221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13222 $as_echo "$GDC_FOR_TARGET" >&6; }
13223 else
13224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225 $as_echo "no" >&6; }
13226 fi
13227
13228
13229     fi
13230     test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13231   done
13232 fi
13233
13234 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13235   set dummy gdc
13236   if test $build = $target ; then
13237     GDC_FOR_TARGET="$2"
13238   else
13239     GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13240   fi
13241 else
13242   GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13243 fi
13244
13245
13246
13247 cat > conftest.c << \EOF
13248 #ifdef __GNUC__
13249   gcc_yay;
13250 #endif
13251 EOF
13252 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13253   have_gcc_for_target=yes
13254 else
13255   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13256   have_gcc_for_target=no
13257 fi
13258 rm conftest.c
13259
13260
13261
13262
13263 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13264   if test -n "$with_build_time_tools"; then
13265     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13266 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13267     if test -x $with_build_time_tools/ar; then
13268       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13269       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13270       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13271 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13272     else
13273       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13274 $as_echo "no" >&6; }
13275     fi
13276   elif test $build != $host && test $have_gcc_for_target = yes; then
13277     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13278     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13279     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13280   fi
13281 fi
13282 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13283   # Extract the first word of "ar", so it can be a program name with args.
13284 set dummy ar; ac_word=$2
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13286 $as_echo_n "checking for $ac_word... " >&6; }
13287 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13288   $as_echo_n "(cached) " >&6
13289 else
13290   case $AR_FOR_TARGET in
13291   [\\/]* | ?:[\\/]*)
13292   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13293   ;;
13294   *)
13295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $gcc_cv_tool_dirs
13297 do
13298   IFS=$as_save_IFS
13299   test -z "$as_dir" && as_dir=.
13300     for ac_exec_ext in '' $ac_executable_extensions; do
13301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13302     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13304     break 2
13305   fi
13306 done
13307   done
13308 IFS=$as_save_IFS
13309
13310   ;;
13311 esac
13312 fi
13313 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13314 if test -n "$AR_FOR_TARGET"; then
13315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13316 $as_echo "$AR_FOR_TARGET" >&6; }
13317 else
13318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319 $as_echo "no" >&6; }
13320 fi
13321
13322
13323 fi
13324 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13325
13326
13327 if test -n "$AR_FOR_TARGET"; then
13328   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13329 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13330   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13331 fi
13332
13333 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13334   for ncn_progname in ar; do
13335     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13336 set dummy ${ncn_progname}; ac_word=$2
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13338 $as_echo_n "checking for $ac_word... " >&6; }
13339 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13340   $as_echo_n "(cached) " >&6
13341 else
13342   if test -n "$AR_FOR_TARGET"; then
13343   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13344 else
13345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13346 for as_dir in $PATH
13347 do
13348   IFS=$as_save_IFS
13349   test -z "$as_dir" && as_dir=.
13350     for ac_exec_ext in '' $ac_executable_extensions; do
13351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13352     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13354     break 2
13355   fi
13356 done
13357   done
13358 IFS=$as_save_IFS
13359
13360 fi
13361 fi
13362 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13363 if test -n "$AR_FOR_TARGET"; then
13364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13365 $as_echo "$AR_FOR_TARGET" >&6; }
13366 else
13367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368 $as_echo "no" >&6; }
13369 fi
13370
13371
13372   done
13373 fi
13374
13375 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13376   for ncn_progname in ar; do
13377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13378 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13379     if test -x $with_build_time_tools/${ncn_progname}; then
13380       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13381       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13382 $as_echo "yes" >&6; }
13383       break
13384     else
13385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13387     fi
13388   done
13389 fi
13390
13391 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13392   for ncn_progname in ar; do
13393     if test -n "$ncn_target_tool_prefix"; then
13394       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13395 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13397 $as_echo_n "checking for $ac_word... " >&6; }
13398 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13399   $as_echo_n "(cached) " >&6
13400 else
13401   if test -n "$AR_FOR_TARGET"; then
13402   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13403 else
13404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13405 for as_dir in $PATH
13406 do
13407   IFS=$as_save_IFS
13408   test -z "$as_dir" && as_dir=.
13409     for ac_exec_ext in '' $ac_executable_extensions; do
13410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13411     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13413     break 2
13414   fi
13415 done
13416   done
13417 IFS=$as_save_IFS
13418
13419 fi
13420 fi
13421 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13422 if test -n "$AR_FOR_TARGET"; then
13423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13424 $as_echo "$AR_FOR_TARGET" >&6; }
13425 else
13426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427 $as_echo "no" >&6; }
13428 fi
13429
13430
13431     fi
13432     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13433       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13434 set dummy ${ncn_progname}; ac_word=$2
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13436 $as_echo_n "checking for $ac_word... " >&6; }
13437 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13438   $as_echo_n "(cached) " >&6
13439 else
13440   if test -n "$AR_FOR_TARGET"; then
13441   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13442 else
13443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13444 for as_dir in $PATH
13445 do
13446   IFS=$as_save_IFS
13447   test -z "$as_dir" && as_dir=.
13448     for ac_exec_ext in '' $ac_executable_extensions; do
13449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13450     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13452     break 2
13453   fi
13454 done
13455   done
13456 IFS=$as_save_IFS
13457
13458 fi
13459 fi
13460 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13461 if test -n "$AR_FOR_TARGET"; then
13462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13463 $as_echo "$AR_FOR_TARGET" >&6; }
13464 else
13465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466 $as_echo "no" >&6; }
13467 fi
13468
13469
13470     fi
13471     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13472   done
13473 fi
13474
13475 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13476   set dummy ar
13477   if test $build = $target ; then
13478     AR_FOR_TARGET="$2"
13479   else
13480     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
13481   fi
13482 else
13483   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
13484 fi
13485
13486 else
13487   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13488 fi
13489
13490
13491
13492
13493 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13494   if test -n "$with_build_time_tools"; then
13495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
13496 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
13497     if test -x $with_build_time_tools/as; then
13498       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13499       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13500       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
13501 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
13502     else
13503       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504 $as_echo "no" >&6; }
13505     fi
13506   elif test $build != $host && test $have_gcc_for_target = yes; then
13507     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
13508     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13509     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13510   fi
13511 fi
13512 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13513   # Extract the first word of "as", so it can be a program name with args.
13514 set dummy as; ac_word=$2
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13516 $as_echo_n "checking for $ac_word... " >&6; }
13517 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
13518   $as_echo_n "(cached) " >&6
13519 else
13520   case $AS_FOR_TARGET in
13521   [\\/]* | ?:[\\/]*)
13522   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
13523   ;;
13524   *)
13525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $gcc_cv_tool_dirs
13527 do
13528   IFS=$as_save_IFS
13529   test -z "$as_dir" && as_dir=.
13530     for ac_exec_ext in '' $ac_executable_extensions; do
13531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13532     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13534     break 2
13535   fi
13536 done
13537   done
13538 IFS=$as_save_IFS
13539
13540   ;;
13541 esac
13542 fi
13543 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13544 if test -n "$AS_FOR_TARGET"; then
13545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13546 $as_echo "$AS_FOR_TARGET" >&6; }
13547 else
13548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13549 $as_echo "no" >&6; }
13550 fi
13551
13552
13553 fi
13554 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13555
13556
13557 if test -n "$AS_FOR_TARGET"; then
13558   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
13559 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13560   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13561 fi
13562
13563 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13564   for ncn_progname in as; do
13565     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13566 set dummy ${ncn_progname}; ac_word=$2
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13568 $as_echo_n "checking for $ac_word... " >&6; }
13569 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13570   $as_echo_n "(cached) " >&6
13571 else
13572   if test -n "$AS_FOR_TARGET"; then
13573   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13574 else
13575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13576 for as_dir in $PATH
13577 do
13578   IFS=$as_save_IFS
13579   test -z "$as_dir" && as_dir=.
13580     for ac_exec_ext in '' $ac_executable_extensions; do
13581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13582     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13584     break 2
13585   fi
13586 done
13587   done
13588 IFS=$as_save_IFS
13589
13590 fi
13591 fi
13592 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13593 if test -n "$AS_FOR_TARGET"; then
13594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13595 $as_echo "$AS_FOR_TARGET" >&6; }
13596 else
13597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13598 $as_echo "no" >&6; }
13599 fi
13600
13601
13602   done
13603 fi
13604
13605 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
13606   for ncn_progname in as; do
13607     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13608 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13609     if test -x $with_build_time_tools/${ncn_progname}; then
13610       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13611       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13612 $as_echo "yes" >&6; }
13613       break
13614     else
13615       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13616 $as_echo "no" >&6; }
13617     fi
13618   done
13619 fi
13620
13621 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
13622   for ncn_progname in as; do
13623     if test -n "$ncn_target_tool_prefix"; then
13624       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13625 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13627 $as_echo_n "checking for $ac_word... " >&6; }
13628 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13629   $as_echo_n "(cached) " >&6
13630 else
13631   if test -n "$AS_FOR_TARGET"; then
13632   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13633 else
13634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13635 for as_dir in $PATH
13636 do
13637   IFS=$as_save_IFS
13638   test -z "$as_dir" && as_dir=.
13639     for ac_exec_ext in '' $ac_executable_extensions; do
13640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13641     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13643     break 2
13644   fi
13645 done
13646   done
13647 IFS=$as_save_IFS
13648
13649 fi
13650 fi
13651 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13652 if test -n "$AS_FOR_TARGET"; then
13653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13654 $as_echo "$AS_FOR_TARGET" >&6; }
13655 else
13656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657 $as_echo "no" >&6; }
13658 fi
13659
13660
13661     fi
13662     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
13663       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13664 set dummy ${ncn_progname}; ac_word=$2
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13666 $as_echo_n "checking for $ac_word... " >&6; }
13667 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13668   $as_echo_n "(cached) " >&6
13669 else
13670   if test -n "$AS_FOR_TARGET"; then
13671   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13672 else
13673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674 for as_dir in $PATH
13675 do
13676   IFS=$as_save_IFS
13677   test -z "$as_dir" && as_dir=.
13678     for ac_exec_ext in '' $ac_executable_extensions; do
13679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13680     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13682     break 2
13683   fi
13684 done
13685   done
13686 IFS=$as_save_IFS
13687
13688 fi
13689 fi
13690 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13691 if test -n "$AS_FOR_TARGET"; then
13692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13693 $as_echo "$AS_FOR_TARGET" >&6; }
13694 else
13695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696 $as_echo "no" >&6; }
13697 fi
13698
13699
13700     fi
13701     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
13702   done
13703 fi
13704
13705 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
13706   set dummy as
13707   if test $build = $target ; then
13708     AS_FOR_TARGET="$2"
13709   else
13710     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
13711   fi
13712 else
13713   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
13714 fi
13715
13716 else
13717   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13718 fi
13719
13720
13721
13722
13723 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13724   if test -n "$with_build_time_tools"; then
13725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
13726 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
13727     if test -x $with_build_time_tools/dlltool; then
13728       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
13729       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13730       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
13731 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
13732     else
13733       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13734 $as_echo "no" >&6; }
13735     fi
13736   elif test $build != $host && test $have_gcc_for_target = yes; then
13737     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
13738     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
13739     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13740   fi
13741 fi
13742 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13743   # Extract the first word of "dlltool", so it can be a program name with args.
13744 set dummy dlltool; ac_word=$2
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13746 $as_echo_n "checking for $ac_word... " >&6; }
13747 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
13748   $as_echo_n "(cached) " >&6
13749 else
13750   case $DLLTOOL_FOR_TARGET in
13751   [\\/]* | ?:[\\/]*)
13752   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
13753   ;;
13754   *)
13755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13756 for as_dir in $gcc_cv_tool_dirs
13757 do
13758   IFS=$as_save_IFS
13759   test -z "$as_dir" && as_dir=.
13760     for ac_exec_ext in '' $ac_executable_extensions; do
13761   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13762     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13764     break 2
13765   fi
13766 done
13767   done
13768 IFS=$as_save_IFS
13769
13770   ;;
13771 esac
13772 fi
13773 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
13774 if test -n "$DLLTOOL_FOR_TARGET"; then
13775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13776 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13777 else
13778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13779 $as_echo "no" >&6; }
13780 fi
13781
13782
13783 fi
13784 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13785
13786
13787 if test -n "$DLLTOOL_FOR_TARGET"; then
13788   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13789 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13790   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13791 fi
13792
13793 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13794   for ncn_progname in dlltool; do
13795     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13796 set dummy ${ncn_progname}; ac_word=$2
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13798 $as_echo_n "checking for $ac_word... " >&6; }
13799 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
13800   $as_echo_n "(cached) " >&6
13801 else
13802   if test -n "$DLLTOOL_FOR_TARGET"; then
13803   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
13804 else
13805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13806 for as_dir in $PATH
13807 do
13808   IFS=$as_save_IFS
13809   test -z "$as_dir" && as_dir=.
13810     for ac_exec_ext in '' $ac_executable_extensions; do
13811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13812     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
13813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13814     break 2
13815   fi
13816 done
13817   done
13818 IFS=$as_save_IFS
13819
13820 fi
13821 fi
13822 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13823 if test -n "$DLLTOOL_FOR_TARGET"; then
13824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13825 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13826 else
13827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13828 $as_echo "no" >&6; }
13829 fi
13830
13831
13832   done
13833 fi
13834
13835 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
13836   for ncn_progname in dlltool; do
13837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13838 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13839     if test -x $with_build_time_tools/${ncn_progname}; then
13840       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13841       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13842 $as_echo "yes" >&6; }
13843       break
13844     else
13845       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846 $as_echo "no" >&6; }
13847     fi
13848   done
13849 fi
13850
13851 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13852   for ncn_progname in dlltool; do
13853     if test -n "$ncn_target_tool_prefix"; then
13854       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13855 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13857 $as_echo_n "checking for $ac_word... " >&6; }
13858 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
13859   $as_echo_n "(cached) " >&6
13860 else
13861   if test -n "$DLLTOOL_FOR_TARGET"; then
13862   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
13863 else
13864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13865 for as_dir in $PATH
13866 do
13867   IFS=$as_save_IFS
13868   test -z "$as_dir" && as_dir=.
13869     for ac_exec_ext in '' $ac_executable_extensions; do
13870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13871     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13873     break 2
13874   fi
13875 done
13876   done
13877 IFS=$as_save_IFS
13878
13879 fi
13880 fi
13881 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13882 if test -n "$DLLTOOL_FOR_TARGET"; then
13883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13884 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13885 else
13886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13887 $as_echo "no" >&6; }
13888 fi
13889
13890
13891     fi
13892     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
13893       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13894 set dummy ${ncn_progname}; ac_word=$2
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13896 $as_echo_n "checking for $ac_word... " >&6; }
13897 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
13898   $as_echo_n "(cached) " >&6
13899 else
13900   if test -n "$DLLTOOL_FOR_TARGET"; then
13901   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
13902 else
13903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13904 for as_dir in $PATH
13905 do
13906   IFS=$as_save_IFS
13907   test -z "$as_dir" && as_dir=.
13908     for ac_exec_ext in '' $ac_executable_extensions; do
13909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13910     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
13911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13912     break 2
13913   fi
13914 done
13915   done
13916 IFS=$as_save_IFS
13917
13918 fi
13919 fi
13920 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13921 if test -n "$DLLTOOL_FOR_TARGET"; then
13922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13923 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13924 else
13925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13926 $as_echo "no" >&6; }
13927 fi
13928
13929
13930     fi
13931     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
13932   done
13933 fi
13934
13935 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
13936   set dummy dlltool
13937   if test $build = $target ; then
13938     DLLTOOL_FOR_TARGET="$2"
13939   else
13940     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13941   fi
13942 else
13943   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
13944 fi
13945
13946 else
13947   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
13948 fi
13949
13950
13951
13952
13953 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
13954   if test -n "$with_build_time_tools"; then
13955     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
13956 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
13957     if test -x $with_build_time_tools/ld; then
13958       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
13959       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
13960       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
13961 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
13962     else
13963       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964 $as_echo "no" >&6; }
13965     fi
13966   elif test $build != $host && test $have_gcc_for_target = yes; then
13967     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
13968     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
13969     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
13970   fi
13971 fi
13972 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13973   # Extract the first word of "ld", so it can be a program name with args.
13974 set dummy ld; ac_word=$2
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13976 $as_echo_n "checking for $ac_word... " >&6; }
13977 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
13978   $as_echo_n "(cached) " >&6
13979 else
13980   case $LD_FOR_TARGET in
13981   [\\/]* | ?:[\\/]*)
13982   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
13983   ;;
13984   *)
13985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13986 for as_dir in $gcc_cv_tool_dirs
13987 do
13988   IFS=$as_save_IFS
13989   test -z "$as_dir" && as_dir=.
13990     for ac_exec_ext in '' $ac_executable_extensions; do
13991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13992     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13994     break 2
13995   fi
13996 done
13997   done
13998 IFS=$as_save_IFS
13999
14000   ;;
14001 esac
14002 fi
14003 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14004 if test -n "$LD_FOR_TARGET"; then
14005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14006 $as_echo "$LD_FOR_TARGET" >&6; }
14007 else
14008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009 $as_echo "no" >&6; }
14010 fi
14011
14012
14013 fi
14014 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14015
14016
14017 if test -n "$LD_FOR_TARGET"; then
14018   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14019 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14020   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14021 fi
14022
14023 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14024   for ncn_progname in ld; do
14025     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14026 set dummy ${ncn_progname}; ac_word=$2
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14028 $as_echo_n "checking for $ac_word... " >&6; }
14029 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14030   $as_echo_n "(cached) " >&6
14031 else
14032   if test -n "$LD_FOR_TARGET"; then
14033   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14034 else
14035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14036 for as_dir in $PATH
14037 do
14038   IFS=$as_save_IFS
14039   test -z "$as_dir" && as_dir=.
14040     for ac_exec_ext in '' $ac_executable_extensions; do
14041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14042     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14044     break 2
14045   fi
14046 done
14047   done
14048 IFS=$as_save_IFS
14049
14050 fi
14051 fi
14052 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14053 if test -n "$LD_FOR_TARGET"; then
14054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14055 $as_echo "$LD_FOR_TARGET" >&6; }
14056 else
14057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14058 $as_echo "no" >&6; }
14059 fi
14060
14061
14062   done
14063 fi
14064
14065 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14066   for ncn_progname in ld; do
14067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14068 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14069     if test -x $with_build_time_tools/${ncn_progname}; then
14070       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14071       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14072 $as_echo "yes" >&6; }
14073       break
14074     else
14075       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14076 $as_echo "no" >&6; }
14077     fi
14078   done
14079 fi
14080
14081 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14082   for ncn_progname in ld; do
14083     if test -n "$ncn_target_tool_prefix"; then
14084       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14085 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14087 $as_echo_n "checking for $ac_word... " >&6; }
14088 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14089   $as_echo_n "(cached) " >&6
14090 else
14091   if test -n "$LD_FOR_TARGET"; then
14092   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14093 else
14094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095 for as_dir in $PATH
14096 do
14097   IFS=$as_save_IFS
14098   test -z "$as_dir" && as_dir=.
14099     for ac_exec_ext in '' $ac_executable_extensions; do
14100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14101     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14103     break 2
14104   fi
14105 done
14106   done
14107 IFS=$as_save_IFS
14108
14109 fi
14110 fi
14111 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14112 if test -n "$LD_FOR_TARGET"; then
14113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14114 $as_echo "$LD_FOR_TARGET" >&6; }
14115 else
14116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14117 $as_echo "no" >&6; }
14118 fi
14119
14120
14121     fi
14122     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14123       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14124 set dummy ${ncn_progname}; ac_word=$2
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14126 $as_echo_n "checking for $ac_word... " >&6; }
14127 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14128   $as_echo_n "(cached) " >&6
14129 else
14130   if test -n "$LD_FOR_TARGET"; then
14131   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14132 else
14133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14134 for as_dir in $PATH
14135 do
14136   IFS=$as_save_IFS
14137   test -z "$as_dir" && as_dir=.
14138     for ac_exec_ext in '' $ac_executable_extensions; do
14139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14140     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14142     break 2
14143   fi
14144 done
14145   done
14146 IFS=$as_save_IFS
14147
14148 fi
14149 fi
14150 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14151 if test -n "$LD_FOR_TARGET"; then
14152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14153 $as_echo "$LD_FOR_TARGET" >&6; }
14154 else
14155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14156 $as_echo "no" >&6; }
14157 fi
14158
14159
14160     fi
14161     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14162   done
14163 fi
14164
14165 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14166   set dummy ld
14167   if test $build = $target ; then
14168     LD_FOR_TARGET="$2"
14169   else
14170     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14171   fi
14172 else
14173   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14174 fi
14175
14176 else
14177   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14178 fi
14179
14180
14181
14182
14183 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14184   if test -n "$with_build_time_tools"; then
14185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14186 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14187     if test -x $with_build_time_tools/lipo; then
14188       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14189       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14190       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14191 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14192     else
14193       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14194 $as_echo "no" >&6; }
14195     fi
14196   elif test $build != $host && test $have_gcc_for_target = yes; then
14197     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14198     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14199     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14200   fi
14201 fi
14202 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14203   # Extract the first word of "lipo", so it can be a program name with args.
14204 set dummy lipo; ac_word=$2
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14206 $as_echo_n "checking for $ac_word... " >&6; }
14207 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14208   $as_echo_n "(cached) " >&6
14209 else
14210   case $LIPO_FOR_TARGET in
14211   [\\/]* | ?:[\\/]*)
14212   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14213   ;;
14214   *)
14215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14216 for as_dir in $gcc_cv_tool_dirs
14217 do
14218   IFS=$as_save_IFS
14219   test -z "$as_dir" && as_dir=.
14220     for ac_exec_ext in '' $ac_executable_extensions; do
14221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14222     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14224     break 2
14225   fi
14226 done
14227   done
14228 IFS=$as_save_IFS
14229
14230   ;;
14231 esac
14232 fi
14233 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14234 if test -n "$LIPO_FOR_TARGET"; then
14235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14236 $as_echo "$LIPO_FOR_TARGET" >&6; }
14237 else
14238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14239 $as_echo "no" >&6; }
14240 fi
14241
14242
14243 fi
14244 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14245
14246
14247 if test -n "$LIPO_FOR_TARGET"; then
14248   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14249 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14250   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14251 fi
14252
14253 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14254   for ncn_progname in lipo; do
14255     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14256 set dummy ${ncn_progname}; ac_word=$2
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14258 $as_echo_n "checking for $ac_word... " >&6; }
14259 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14260   $as_echo_n "(cached) " >&6
14261 else
14262   if test -n "$LIPO_FOR_TARGET"; then
14263   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14264 else
14265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14266 for as_dir in $PATH
14267 do
14268   IFS=$as_save_IFS
14269   test -z "$as_dir" && as_dir=.
14270     for ac_exec_ext in '' $ac_executable_extensions; do
14271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14272     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14274     break 2
14275   fi
14276 done
14277   done
14278 IFS=$as_save_IFS
14279
14280 fi
14281 fi
14282 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14283 if test -n "$LIPO_FOR_TARGET"; then
14284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14285 $as_echo "$LIPO_FOR_TARGET" >&6; }
14286 else
14287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14288 $as_echo "no" >&6; }
14289 fi
14290
14291
14292   done
14293 fi
14294
14295 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
14296   for ncn_progname in lipo; do
14297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14298 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14299     if test -x $with_build_time_tools/${ncn_progname}; then
14300       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14301       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14302 $as_echo "yes" >&6; }
14303       break
14304     else
14305       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14306 $as_echo "no" >&6; }
14307     fi
14308   done
14309 fi
14310
14311 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
14312   for ncn_progname in lipo; do
14313     if test -n "$ncn_target_tool_prefix"; then
14314       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14315 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14317 $as_echo_n "checking for $ac_word... " >&6; }
14318 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14319   $as_echo_n "(cached) " >&6
14320 else
14321   if test -n "$LIPO_FOR_TARGET"; then
14322   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14323 else
14324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14325 for as_dir in $PATH
14326 do
14327   IFS=$as_save_IFS
14328   test -z "$as_dir" && as_dir=.
14329     for ac_exec_ext in '' $ac_executable_extensions; do
14330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14331     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14333     break 2
14334   fi
14335 done
14336   done
14337 IFS=$as_save_IFS
14338
14339 fi
14340 fi
14341 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14342 if test -n "$LIPO_FOR_TARGET"; then
14343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14344 $as_echo "$LIPO_FOR_TARGET" >&6; }
14345 else
14346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14347 $as_echo "no" >&6; }
14348 fi
14349
14350
14351     fi
14352     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
14353       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14354 set dummy ${ncn_progname}; ac_word=$2
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14356 $as_echo_n "checking for $ac_word... " >&6; }
14357 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14358   $as_echo_n "(cached) " >&6
14359 else
14360   if test -n "$LIPO_FOR_TARGET"; then
14361   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14362 else
14363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14364 for as_dir in $PATH
14365 do
14366   IFS=$as_save_IFS
14367   test -z "$as_dir" && as_dir=.
14368     for ac_exec_ext in '' $ac_executable_extensions; do
14369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14370     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14372     break 2
14373   fi
14374 done
14375   done
14376 IFS=$as_save_IFS
14377
14378 fi
14379 fi
14380 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14381 if test -n "$LIPO_FOR_TARGET"; then
14382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14383 $as_echo "$LIPO_FOR_TARGET" >&6; }
14384 else
14385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14386 $as_echo "no" >&6; }
14387 fi
14388
14389
14390     fi
14391     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
14392   done
14393 fi
14394
14395 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
14396   set dummy lipo
14397   if test $build = $target ; then
14398     LIPO_FOR_TARGET="$2"
14399   else
14400     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
14401   fi
14402 else
14403   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
14404 fi
14405
14406 else
14407   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14408 fi
14409
14410
14411
14412
14413 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14414   if test -n "$with_build_time_tools"; then
14415     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
14416 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
14417     if test -x $with_build_time_tools/nm; then
14418       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
14419       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14420       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
14421 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
14422     else
14423       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14424 $as_echo "no" >&6; }
14425     fi
14426   elif test $build != $host && test $have_gcc_for_target = yes; then
14427     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
14428     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
14429     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14430   fi
14431 fi
14432 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14433   # Extract the first word of "nm", so it can be a program name with args.
14434 set dummy nm; ac_word=$2
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14436 $as_echo_n "checking for $ac_word... " >&6; }
14437 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
14438   $as_echo_n "(cached) " >&6
14439 else
14440   case $NM_FOR_TARGET in
14441   [\\/]* | ?:[\\/]*)
14442   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
14443   ;;
14444   *)
14445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14446 for as_dir in $gcc_cv_tool_dirs
14447 do
14448   IFS=$as_save_IFS
14449   test -z "$as_dir" && as_dir=.
14450     for ac_exec_ext in '' $ac_executable_extensions; do
14451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14452     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14454     break 2
14455   fi
14456 done
14457   done
14458 IFS=$as_save_IFS
14459
14460   ;;
14461 esac
14462 fi
14463 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
14464 if test -n "$NM_FOR_TARGET"; then
14465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14466 $as_echo "$NM_FOR_TARGET" >&6; }
14467 else
14468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14469 $as_echo "no" >&6; }
14470 fi
14471
14472
14473 fi
14474 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14475
14476
14477 if test -n "$NM_FOR_TARGET"; then
14478   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
14479 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14480   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14481 fi
14482
14483 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14484   for ncn_progname in nm; do
14485     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14486 set dummy ${ncn_progname}; ac_word=$2
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14488 $as_echo_n "checking for $ac_word... " >&6; }
14489 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14490   $as_echo_n "(cached) " >&6
14491 else
14492   if test -n "$NM_FOR_TARGET"; then
14493   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14494 else
14495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14496 for as_dir in $PATH
14497 do
14498   IFS=$as_save_IFS
14499   test -z "$as_dir" && as_dir=.
14500     for ac_exec_ext in '' $ac_executable_extensions; do
14501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14502     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
14503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14504     break 2
14505   fi
14506 done
14507   done
14508 IFS=$as_save_IFS
14509
14510 fi
14511 fi
14512 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14513 if test -n "$NM_FOR_TARGET"; then
14514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14515 $as_echo "$NM_FOR_TARGET" >&6; }
14516 else
14517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14518 $as_echo "no" >&6; }
14519 fi
14520
14521
14522   done
14523 fi
14524
14525 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
14526   for ncn_progname in nm; do
14527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14528 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14529     if test -x $with_build_time_tools/${ncn_progname}; then
14530       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14531       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14532 $as_echo "yes" >&6; }
14533       break
14534     else
14535       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14536 $as_echo "no" >&6; }
14537     fi
14538   done
14539 fi
14540
14541 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
14542   for ncn_progname in nm; do
14543     if test -n "$ncn_target_tool_prefix"; then
14544       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14545 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14547 $as_echo_n "checking for $ac_word... " >&6; }
14548 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14549   $as_echo_n "(cached) " >&6
14550 else
14551   if test -n "$NM_FOR_TARGET"; then
14552   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14553 else
14554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14555 for as_dir in $PATH
14556 do
14557   IFS=$as_save_IFS
14558   test -z "$as_dir" && as_dir=.
14559     for ac_exec_ext in '' $ac_executable_extensions; do
14560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14561     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14563     break 2
14564   fi
14565 done
14566   done
14567 IFS=$as_save_IFS
14568
14569 fi
14570 fi
14571 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14572 if test -n "$NM_FOR_TARGET"; then
14573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14574 $as_echo "$NM_FOR_TARGET" >&6; }
14575 else
14576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14577 $as_echo "no" >&6; }
14578 fi
14579
14580
14581     fi
14582     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
14583       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14584 set dummy ${ncn_progname}; ac_word=$2
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14586 $as_echo_n "checking for $ac_word... " >&6; }
14587 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14588   $as_echo_n "(cached) " >&6
14589 else
14590   if test -n "$NM_FOR_TARGET"; then
14591   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14592 else
14593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14594 for as_dir in $PATH
14595 do
14596   IFS=$as_save_IFS
14597   test -z "$as_dir" && as_dir=.
14598     for ac_exec_ext in '' $ac_executable_extensions; do
14599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14600     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
14601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14602     break 2
14603   fi
14604 done
14605   done
14606 IFS=$as_save_IFS
14607
14608 fi
14609 fi
14610 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14611 if test -n "$NM_FOR_TARGET"; then
14612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14613 $as_echo "$NM_FOR_TARGET" >&6; }
14614 else
14615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14616 $as_echo "no" >&6; }
14617 fi
14618
14619
14620     fi
14621     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
14622   done
14623 fi
14624
14625 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
14626   set dummy nm
14627   if test $build = $target ; then
14628     NM_FOR_TARGET="$2"
14629   else
14630     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
14631   fi
14632 else
14633   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
14634 fi
14635
14636 else
14637   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
14638 fi
14639
14640
14641
14642
14643 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
14644   if test -n "$with_build_time_tools"; then
14645     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
14646 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
14647     if test -x $with_build_time_tools/objcopy; then
14648       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
14649       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14650       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
14651 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
14652     else
14653       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14654 $as_echo "no" >&6; }
14655     fi
14656   elif test $build != $host && test $have_gcc_for_target = yes; then
14657     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
14658     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
14659     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14660   fi
14661 fi
14662 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14663   # Extract the first word of "objcopy", so it can be a program name with args.
14664 set dummy objcopy; ac_word=$2
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14666 $as_echo_n "checking for $ac_word... " >&6; }
14667 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
14668   $as_echo_n "(cached) " >&6
14669 else
14670   case $OBJCOPY_FOR_TARGET in
14671   [\\/]* | ?:[\\/]*)
14672   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
14673   ;;
14674   *)
14675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14676 for as_dir in $gcc_cv_tool_dirs
14677 do
14678   IFS=$as_save_IFS
14679   test -z "$as_dir" && as_dir=.
14680     for ac_exec_ext in '' $ac_executable_extensions; do
14681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14682     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14684     break 2
14685   fi
14686 done
14687   done
14688 IFS=$as_save_IFS
14689
14690   ;;
14691 esac
14692 fi
14693 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
14694 if test -n "$OBJCOPY_FOR_TARGET"; then
14695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14696 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14697 else
14698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14699 $as_echo "no" >&6; }
14700 fi
14701
14702
14703 fi
14704 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
14705
14706
14707 if test -n "$OBJCOPY_FOR_TARGET"; then
14708   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14709 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14710   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14711 fi
14712
14713 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14714   for ncn_progname in objcopy; do
14715     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14716 set dummy ${ncn_progname}; ac_word=$2
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14718 $as_echo_n "checking for $ac_word... " >&6; }
14719 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14720   $as_echo_n "(cached) " >&6
14721 else
14722   if test -n "$OBJCOPY_FOR_TARGET"; then
14723   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14724 else
14725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14726 for as_dir in $PATH
14727 do
14728   IFS=$as_save_IFS
14729   test -z "$as_dir" && as_dir=.
14730     for ac_exec_ext in '' $ac_executable_extensions; do
14731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14732     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
14733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14734     break 2
14735   fi
14736 done
14737   done
14738 IFS=$as_save_IFS
14739
14740 fi
14741 fi
14742 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14743 if test -n "$OBJCOPY_FOR_TARGET"; then
14744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14745 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14746 else
14747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748 $as_echo "no" >&6; }
14749 fi
14750
14751
14752   done
14753 fi
14754
14755 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
14756   for ncn_progname in objcopy; do
14757     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14758 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14759     if test -x $with_build_time_tools/${ncn_progname}; then
14760       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14761       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14762 $as_echo "yes" >&6; }
14763       break
14764     else
14765       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14766 $as_echo "no" >&6; }
14767     fi
14768   done
14769 fi
14770
14771 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14772   for ncn_progname in objcopy; do
14773     if test -n "$ncn_target_tool_prefix"; then
14774       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14775 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14777 $as_echo_n "checking for $ac_word... " >&6; }
14778 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14779   $as_echo_n "(cached) " >&6
14780 else
14781   if test -n "$OBJCOPY_FOR_TARGET"; then
14782   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14783 else
14784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14785 for as_dir in $PATH
14786 do
14787   IFS=$as_save_IFS
14788   test -z "$as_dir" && as_dir=.
14789     for ac_exec_ext in '' $ac_executable_extensions; do
14790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14791     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14793     break 2
14794   fi
14795 done
14796   done
14797 IFS=$as_save_IFS
14798
14799 fi
14800 fi
14801 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14802 if test -n "$OBJCOPY_FOR_TARGET"; then
14803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14804 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14805 else
14806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14807 $as_echo "no" >&6; }
14808 fi
14809
14810
14811     fi
14812     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
14813       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14814 set dummy ${ncn_progname}; ac_word=$2
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14816 $as_echo_n "checking for $ac_word... " >&6; }
14817 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14818   $as_echo_n "(cached) " >&6
14819 else
14820   if test -n "$OBJCOPY_FOR_TARGET"; then
14821   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14822 else
14823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14824 for as_dir in $PATH
14825 do
14826   IFS=$as_save_IFS
14827   test -z "$as_dir" && as_dir=.
14828     for ac_exec_ext in '' $ac_executable_extensions; do
14829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14830     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
14831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14832     break 2
14833   fi
14834 done
14835   done
14836 IFS=$as_save_IFS
14837
14838 fi
14839 fi
14840 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14841 if test -n "$OBJCOPY_FOR_TARGET"; then
14842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14843 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14844 else
14845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14846 $as_echo "no" >&6; }
14847 fi
14848
14849
14850     fi
14851     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
14852   done
14853 fi
14854
14855 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
14856   set dummy objcopy
14857   if test $build = $target ; then
14858     OBJCOPY_FOR_TARGET="$2"
14859   else
14860     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
14861   fi
14862 else
14863   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
14864 fi
14865
14866 else
14867   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
14868 fi
14869
14870
14871
14872
14873 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
14874   if test -n "$with_build_time_tools"; then
14875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
14876 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
14877     if test -x $with_build_time_tools/objdump; then
14878       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
14879       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
14880       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
14881 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
14882     else
14883       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14884 $as_echo "no" >&6; }
14885     fi
14886   elif test $build != $host && test $have_gcc_for_target = yes; then
14887     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
14888     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
14889     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
14890   fi
14891 fi
14892 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14893   # Extract the first word of "objdump", so it can be a program name with args.
14894 set dummy objdump; ac_word=$2
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14896 $as_echo_n "checking for $ac_word... " >&6; }
14897 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
14898   $as_echo_n "(cached) " >&6
14899 else
14900   case $OBJDUMP_FOR_TARGET in
14901   [\\/]* | ?:[\\/]*)
14902   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
14903   ;;
14904   *)
14905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14906 for as_dir in $gcc_cv_tool_dirs
14907 do
14908   IFS=$as_save_IFS
14909   test -z "$as_dir" && as_dir=.
14910     for ac_exec_ext in '' $ac_executable_extensions; do
14911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14912     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14914     break 2
14915   fi
14916 done
14917   done
14918 IFS=$as_save_IFS
14919
14920   ;;
14921 esac
14922 fi
14923 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
14924 if test -n "$OBJDUMP_FOR_TARGET"; then
14925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
14926 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
14927 else
14928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14929 $as_echo "no" >&6; }
14930 fi
14931
14932
14933 fi
14934 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
14935
14936
14937 if test -n "$OBJDUMP_FOR_TARGET"; then
14938   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
14939 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
14940   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
14941 fi
14942
14943 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
14944   for ncn_progname in objdump; do
14945     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14946 set dummy ${ncn_progname}; ac_word=$2
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14948 $as_echo_n "checking for $ac_word... " >&6; }
14949 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
14950   $as_echo_n "(cached) " >&6
14951 else
14952   if test -n "$OBJDUMP_FOR_TARGET"; then
14953   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
14954 else
14955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14956 for as_dir in $PATH
14957 do
14958   IFS=$as_save_IFS
14959   test -z "$as_dir" && as_dir=.
14960     for ac_exec_ext in '' $ac_executable_extensions; do
14961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14962     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
14963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14964     break 2
14965   fi
14966 done
14967   done
14968 IFS=$as_save_IFS
14969
14970 fi
14971 fi
14972 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
14973 if test -n "$OBJDUMP_FOR_TARGET"; then
14974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
14975 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
14976 else
14977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14978 $as_echo "no" >&6; }
14979 fi
14980
14981
14982   done
14983 fi
14984
14985 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
14986   for ncn_progname in objdump; do
14987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14988 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14989     if test -x $with_build_time_tools/${ncn_progname}; then
14990       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14991       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14992 $as_echo "yes" >&6; }
14993       break
14994     else
14995       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14996 $as_echo "no" >&6; }
14997     fi
14998   done
14999 fi
15000
15001 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15002   for ncn_progname in objdump; do
15003     if test -n "$ncn_target_tool_prefix"; then
15004       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15005 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15007 $as_echo_n "checking for $ac_word... " >&6; }
15008 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15009   $as_echo_n "(cached) " >&6
15010 else
15011   if test -n "$OBJDUMP_FOR_TARGET"; then
15012   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15013 else
15014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15015 for as_dir in $PATH
15016 do
15017   IFS=$as_save_IFS
15018   test -z "$as_dir" && as_dir=.
15019     for ac_exec_ext in '' $ac_executable_extensions; do
15020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15021     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15023     break 2
15024   fi
15025 done
15026   done
15027 IFS=$as_save_IFS
15028
15029 fi
15030 fi
15031 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15032 if test -n "$OBJDUMP_FOR_TARGET"; then
15033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15034 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15035 else
15036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15037 $as_echo "no" >&6; }
15038 fi
15039
15040
15041     fi
15042     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15043       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15044 set dummy ${ncn_progname}; ac_word=$2
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15046 $as_echo_n "checking for $ac_word... " >&6; }
15047 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15048   $as_echo_n "(cached) " >&6
15049 else
15050   if test -n "$OBJDUMP_FOR_TARGET"; then
15051   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15052 else
15053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15054 for as_dir in $PATH
15055 do
15056   IFS=$as_save_IFS
15057   test -z "$as_dir" && as_dir=.
15058     for ac_exec_ext in '' $ac_executable_extensions; do
15059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15060     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15062     break 2
15063   fi
15064 done
15065   done
15066 IFS=$as_save_IFS
15067
15068 fi
15069 fi
15070 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15071 if test -n "$OBJDUMP_FOR_TARGET"; then
15072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15073 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15074 else
15075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15076 $as_echo "no" >&6; }
15077 fi
15078
15079
15080     fi
15081     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15082   done
15083 fi
15084
15085 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15086   set dummy objdump
15087   if test $build = $target ; then
15088     OBJDUMP_FOR_TARGET="$2"
15089   else
15090     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15091   fi
15092 else
15093   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15094 fi
15095
15096 else
15097   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15098 fi
15099
15100
15101
15102
15103 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15104   if test -n "$with_build_time_tools"; then
15105     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15106 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15107     if test -x $with_build_time_tools/otool; then
15108       OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15109       ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15110       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15111 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15112     else
15113       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15114 $as_echo "no" >&6; }
15115     fi
15116   elif test $build != $host && test $have_gcc_for_target = yes; then
15117     OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15118     test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15119     test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15120   fi
15121 fi
15122 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15123   # Extract the first word of "otool", so it can be a program name with args.
15124 set dummy otool; ac_word=$2
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15126 $as_echo_n "checking for $ac_word... " >&6; }
15127 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15128   $as_echo_n "(cached) " >&6
15129 else
15130   case $OTOOL_FOR_TARGET in
15131   [\\/]* | ?:[\\/]*)
15132   ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15133   ;;
15134   *)
15135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15136 for as_dir in $gcc_cv_tool_dirs
15137 do
15138   IFS=$as_save_IFS
15139   test -z "$as_dir" && as_dir=.
15140     for ac_exec_ext in '' $ac_executable_extensions; do
15141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15142     ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15144     break 2
15145   fi
15146 done
15147   done
15148 IFS=$as_save_IFS
15149
15150   ;;
15151 esac
15152 fi
15153 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15154 if test -n "$OTOOL_FOR_TARGET"; then
15155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15156 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15157 else
15158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15159 $as_echo "no" >&6; }
15160 fi
15161
15162
15163 fi
15164 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15165
15166
15167 if test -n "$OTOOL_FOR_TARGET"; then
15168   ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15169 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15170   OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15171 fi
15172
15173 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15174   for ncn_progname in otool; do
15175     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15176 set dummy ${ncn_progname}; ac_word=$2
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15178 $as_echo_n "checking for $ac_word... " >&6; }
15179 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15180   $as_echo_n "(cached) " >&6
15181 else
15182   if test -n "$OTOOL_FOR_TARGET"; then
15183   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15184 else
15185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15186 for as_dir in $PATH
15187 do
15188   IFS=$as_save_IFS
15189   test -z "$as_dir" && as_dir=.
15190     for ac_exec_ext in '' $ac_executable_extensions; do
15191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15192     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15194     break 2
15195   fi
15196 done
15197   done
15198 IFS=$as_save_IFS
15199
15200 fi
15201 fi
15202 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15203 if test -n "$OTOOL_FOR_TARGET"; then
15204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15205 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15206 else
15207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15208 $as_echo "no" >&6; }
15209 fi
15210
15211
15212   done
15213 fi
15214
15215 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15216   for ncn_progname in otool; do
15217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15218 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15219     if test -x $with_build_time_tools/${ncn_progname}; then
15220       ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15221       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15222 $as_echo "yes" >&6; }
15223       break
15224     else
15225       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15226 $as_echo "no" >&6; }
15227     fi
15228   done
15229 fi
15230
15231 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15232   for ncn_progname in otool; do
15233     if test -n "$ncn_target_tool_prefix"; then
15234       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15235 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15237 $as_echo_n "checking for $ac_word... " >&6; }
15238 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15239   $as_echo_n "(cached) " >&6
15240 else
15241   if test -n "$OTOOL_FOR_TARGET"; then
15242   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15243 else
15244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15245 for as_dir in $PATH
15246 do
15247   IFS=$as_save_IFS
15248   test -z "$as_dir" && as_dir=.
15249     for ac_exec_ext in '' $ac_executable_extensions; do
15250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15251     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15253     break 2
15254   fi
15255 done
15256   done
15257 IFS=$as_save_IFS
15258
15259 fi
15260 fi
15261 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15262 if test -n "$OTOOL_FOR_TARGET"; then
15263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15264 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15265 else
15266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15267 $as_echo "no" >&6; }
15268 fi
15269
15270
15271     fi
15272     if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15273       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15274 set dummy ${ncn_progname}; ac_word=$2
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15276 $as_echo_n "checking for $ac_word... " >&6; }
15277 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15278   $as_echo_n "(cached) " >&6
15279 else
15280   if test -n "$OTOOL_FOR_TARGET"; then
15281   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15282 else
15283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15284 for as_dir in $PATH
15285 do
15286   IFS=$as_save_IFS
15287   test -z "$as_dir" && as_dir=.
15288     for ac_exec_ext in '' $ac_executable_extensions; do
15289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15290     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15292     break 2
15293   fi
15294 done
15295   done
15296 IFS=$as_save_IFS
15297
15298 fi
15299 fi
15300 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15301 if test -n "$OTOOL_FOR_TARGET"; then
15302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15303 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15304 else
15305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15306 $as_echo "no" >&6; }
15307 fi
15308
15309
15310     fi
15311     test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
15312   done
15313 fi
15314
15315 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
15316   set dummy otool
15317   if test $build = $target ; then
15318     OTOOL_FOR_TARGET="$2"
15319   else
15320     OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15321   fi
15322 else
15323   OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
15324 fi
15325
15326 else
15327   OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15328 fi
15329
15330
15331
15332
15333 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15334   if test -n "$with_build_time_tools"; then
15335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
15336 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
15337     if test -x $with_build_time_tools/ranlib; then
15338       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
15339       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15340       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
15341 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
15342     else
15343       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15344 $as_echo "no" >&6; }
15345     fi
15346   elif test $build != $host && test $have_gcc_for_target = yes; then
15347     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
15348     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
15349     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15350   fi
15351 fi
15352 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15353   # Extract the first word of "ranlib", so it can be a program name with args.
15354 set dummy ranlib; ac_word=$2
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15356 $as_echo_n "checking for $ac_word... " >&6; }
15357 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
15358   $as_echo_n "(cached) " >&6
15359 else
15360   case $RANLIB_FOR_TARGET in
15361   [\\/]* | ?:[\\/]*)
15362   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
15363   ;;
15364   *)
15365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15366 for as_dir in $gcc_cv_tool_dirs
15367 do
15368   IFS=$as_save_IFS
15369   test -z "$as_dir" && as_dir=.
15370     for ac_exec_ext in '' $ac_executable_extensions; do
15371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15372     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15374     break 2
15375   fi
15376 done
15377   done
15378 IFS=$as_save_IFS
15379
15380   ;;
15381 esac
15382 fi
15383 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15384 if test -n "$RANLIB_FOR_TARGET"; then
15385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15386 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15387 else
15388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15389 $as_echo "no" >&6; }
15390 fi
15391
15392
15393 fi
15394 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15395
15396
15397 if test -n "$RANLIB_FOR_TARGET"; then
15398   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15399 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15400   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15401 fi
15402
15403 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15404   for ncn_progname in ranlib; do
15405     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15406 set dummy ${ncn_progname}; ac_word=$2
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15408 $as_echo_n "checking for $ac_word... " >&6; }
15409 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15410   $as_echo_n "(cached) " >&6
15411 else
15412   if test -n "$RANLIB_FOR_TARGET"; then
15413   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15414 else
15415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15416 for as_dir in $PATH
15417 do
15418   IFS=$as_save_IFS
15419   test -z "$as_dir" && as_dir=.
15420     for ac_exec_ext in '' $ac_executable_extensions; do
15421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15422     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15424     break 2
15425   fi
15426 done
15427   done
15428 IFS=$as_save_IFS
15429
15430 fi
15431 fi
15432 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15433 if test -n "$RANLIB_FOR_TARGET"; then
15434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15435 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15436 else
15437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15438 $as_echo "no" >&6; }
15439 fi
15440
15441
15442   done
15443 fi
15444
15445 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
15446   for ncn_progname in ranlib; do
15447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15448 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15449     if test -x $with_build_time_tools/${ncn_progname}; then
15450       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15451       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15452 $as_echo "yes" >&6; }
15453       break
15454     else
15455       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15456 $as_echo "no" >&6; }
15457     fi
15458   done
15459 fi
15460
15461 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15462   for ncn_progname in ranlib; do
15463     if test -n "$ncn_target_tool_prefix"; then
15464       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15465 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15467 $as_echo_n "checking for $ac_word... " >&6; }
15468 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15469   $as_echo_n "(cached) " >&6
15470 else
15471   if test -n "$RANLIB_FOR_TARGET"; then
15472   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15473 else
15474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15475 for as_dir in $PATH
15476 do
15477   IFS=$as_save_IFS
15478   test -z "$as_dir" && as_dir=.
15479     for ac_exec_ext in '' $ac_executable_extensions; do
15480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15481     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15483     break 2
15484   fi
15485 done
15486   done
15487 IFS=$as_save_IFS
15488
15489 fi
15490 fi
15491 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15492 if test -n "$RANLIB_FOR_TARGET"; then
15493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15494 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15495 else
15496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15497 $as_echo "no" >&6; }
15498 fi
15499
15500
15501     fi
15502     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
15503       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15504 set dummy ${ncn_progname}; ac_word=$2
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15506 $as_echo_n "checking for $ac_word... " >&6; }
15507 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15508   $as_echo_n "(cached) " >&6
15509 else
15510   if test -n "$RANLIB_FOR_TARGET"; then
15511   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15512 else
15513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15514 for as_dir in $PATH
15515 do
15516   IFS=$as_save_IFS
15517   test -z "$as_dir" && as_dir=.
15518     for ac_exec_ext in '' $ac_executable_extensions; do
15519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15520     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15522     break 2
15523   fi
15524 done
15525   done
15526 IFS=$as_save_IFS
15527
15528 fi
15529 fi
15530 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15531 if test -n "$RANLIB_FOR_TARGET"; then
15532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15533 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15534 else
15535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15536 $as_echo "no" >&6; }
15537 fi
15538
15539
15540     fi
15541     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
15542   done
15543 fi
15544
15545 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
15546   set dummy ranlib
15547   if test $build = $target ; then
15548     RANLIB_FOR_TARGET="$2"
15549   else
15550     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
15551   fi
15552 else
15553   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
15554 fi
15555
15556 else
15557   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15558 fi
15559
15560
15561
15562
15563 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15564   if test -n "$with_build_time_tools"; then
15565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
15566 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
15567     if test -x $with_build_time_tools/readelf; then
15568       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
15569       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15570       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
15571 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
15572     else
15573       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15574 $as_echo "no" >&6; }
15575     fi
15576   elif test $build != $host && test $have_gcc_for_target = yes; then
15577     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
15578     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
15579     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15580   fi
15581 fi
15582 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15583   # Extract the first word of "readelf", so it can be a program name with args.
15584 set dummy readelf; ac_word=$2
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15586 $as_echo_n "checking for $ac_word... " >&6; }
15587 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
15588   $as_echo_n "(cached) " >&6
15589 else
15590   case $READELF_FOR_TARGET in
15591   [\\/]* | ?:[\\/]*)
15592   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
15593   ;;
15594   *)
15595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15596 for as_dir in $gcc_cv_tool_dirs
15597 do
15598   IFS=$as_save_IFS
15599   test -z "$as_dir" && as_dir=.
15600     for ac_exec_ext in '' $ac_executable_extensions; do
15601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15602     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15604     break 2
15605   fi
15606 done
15607   done
15608 IFS=$as_save_IFS
15609
15610   ;;
15611 esac
15612 fi
15613 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
15614 if test -n "$READELF_FOR_TARGET"; then
15615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15616 $as_echo "$READELF_FOR_TARGET" >&6; }
15617 else
15618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15619 $as_echo "no" >&6; }
15620 fi
15621
15622
15623 fi
15624 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15625
15626
15627 if test -n "$READELF_FOR_TARGET"; then
15628   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
15629 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
15630   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15631 fi
15632
15633 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
15634   for ncn_progname in readelf; do
15635     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15636 set dummy ${ncn_progname}; ac_word=$2
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15638 $as_echo_n "checking for $ac_word... " >&6; }
15639 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15640   $as_echo_n "(cached) " >&6
15641 else
15642   if test -n "$READELF_FOR_TARGET"; then
15643   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15644 else
15645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15646 for as_dir in $PATH
15647 do
15648   IFS=$as_save_IFS
15649   test -z "$as_dir" && as_dir=.
15650     for ac_exec_ext in '' $ac_executable_extensions; do
15651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15652     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
15653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15654     break 2
15655   fi
15656 done
15657   done
15658 IFS=$as_save_IFS
15659
15660 fi
15661 fi
15662 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15663 if test -n "$READELF_FOR_TARGET"; then
15664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15665 $as_echo "$READELF_FOR_TARGET" >&6; }
15666 else
15667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15668 $as_echo "no" >&6; }
15669 fi
15670
15671
15672   done
15673 fi
15674
15675 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
15676   for ncn_progname in readelf; do
15677     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15678 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15679     if test -x $with_build_time_tools/${ncn_progname}; then
15680       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15681       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15682 $as_echo "yes" >&6; }
15683       break
15684     else
15685       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15686 $as_echo "no" >&6; }
15687     fi
15688   done
15689 fi
15690
15691 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
15692   for ncn_progname in readelf; do
15693     if test -n "$ncn_target_tool_prefix"; then
15694       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15695 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15697 $as_echo_n "checking for $ac_word... " >&6; }
15698 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15699   $as_echo_n "(cached) " >&6
15700 else
15701   if test -n "$READELF_FOR_TARGET"; then
15702   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15703 else
15704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15705 for as_dir in $PATH
15706 do
15707   IFS=$as_save_IFS
15708   test -z "$as_dir" && as_dir=.
15709     for ac_exec_ext in '' $ac_executable_extensions; do
15710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15711     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15713     break 2
15714   fi
15715 done
15716   done
15717 IFS=$as_save_IFS
15718
15719 fi
15720 fi
15721 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15722 if test -n "$READELF_FOR_TARGET"; then
15723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15724 $as_echo "$READELF_FOR_TARGET" >&6; }
15725 else
15726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15727 $as_echo "no" >&6; }
15728 fi
15729
15730
15731     fi
15732     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
15733       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15734 set dummy ${ncn_progname}; ac_word=$2
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15736 $as_echo_n "checking for $ac_word... " >&6; }
15737 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15738   $as_echo_n "(cached) " >&6
15739 else
15740   if test -n "$READELF_FOR_TARGET"; then
15741   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15742 else
15743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15744 for as_dir in $PATH
15745 do
15746   IFS=$as_save_IFS
15747   test -z "$as_dir" && as_dir=.
15748     for ac_exec_ext in '' $ac_executable_extensions; do
15749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15750     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
15751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15752     break 2
15753   fi
15754 done
15755   done
15756 IFS=$as_save_IFS
15757
15758 fi
15759 fi
15760 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15761 if test -n "$READELF_FOR_TARGET"; then
15762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15763 $as_echo "$READELF_FOR_TARGET" >&6; }
15764 else
15765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15766 $as_echo "no" >&6; }
15767 fi
15768
15769
15770     fi
15771     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
15772   done
15773 fi
15774
15775 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
15776   set dummy readelf
15777   if test $build = $target ; then
15778     READELF_FOR_TARGET="$2"
15779   else
15780     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
15781   fi
15782 else
15783   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
15784 fi
15785
15786 else
15787   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
15788 fi
15789
15790
15791
15792
15793 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
15794   if test -n "$with_build_time_tools"; then
15795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
15796 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
15797     if test -x $with_build_time_tools/strip; then
15798       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
15799       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
15800       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
15801 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
15802     else
15803       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15804 $as_echo "no" >&6; }
15805     fi
15806   elif test $build != $host && test $have_gcc_for_target = yes; then
15807     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
15808     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
15809     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
15810   fi
15811 fi
15812 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15813   # Extract the first word of "strip", so it can be a program name with args.
15814 set dummy strip; ac_word=$2
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15816 $as_echo_n "checking for $ac_word... " >&6; }
15817 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
15818   $as_echo_n "(cached) " >&6
15819 else
15820   case $STRIP_FOR_TARGET in
15821   [\\/]* | ?:[\\/]*)
15822   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
15823   ;;
15824   *)
15825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15826 for as_dir in $gcc_cv_tool_dirs
15827 do
15828   IFS=$as_save_IFS
15829   test -z "$as_dir" && as_dir=.
15830     for ac_exec_ext in '' $ac_executable_extensions; do
15831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15832     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15834     break 2
15835   fi
15836 done
15837   done
15838 IFS=$as_save_IFS
15839
15840   ;;
15841 esac
15842 fi
15843 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
15844 if test -n "$STRIP_FOR_TARGET"; then
15845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15846 $as_echo "$STRIP_FOR_TARGET" >&6; }
15847 else
15848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15849 $as_echo "no" >&6; }
15850 fi
15851
15852
15853 fi
15854 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
15855
15856
15857 if test -n "$STRIP_FOR_TARGET"; then
15858   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
15859 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
15860   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
15861 fi
15862
15863 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
15864   for ncn_progname in strip; do
15865     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15866 set dummy ${ncn_progname}; ac_word=$2
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15868 $as_echo_n "checking for $ac_word... " >&6; }
15869 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
15870   $as_echo_n "(cached) " >&6
15871 else
15872   if test -n "$STRIP_FOR_TARGET"; then
15873   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
15874 else
15875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15876 for as_dir in $PATH
15877 do
15878   IFS=$as_save_IFS
15879   test -z "$as_dir" && as_dir=.
15880     for ac_exec_ext in '' $ac_executable_extensions; do
15881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15882     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
15883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15884     break 2
15885   fi
15886 done
15887   done
15888 IFS=$as_save_IFS
15889
15890 fi
15891 fi
15892 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
15893 if test -n "$STRIP_FOR_TARGET"; then
15894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15895 $as_echo "$STRIP_FOR_TARGET" >&6; }
15896 else
15897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15898 $as_echo "no" >&6; }
15899 fi
15900
15901
15902   done
15903 fi
15904
15905 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15906   for ncn_progname in strip; do
15907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15908 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15909     if test -x $with_build_time_tools/${ncn_progname}; then
15910       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15912 $as_echo "yes" >&6; }
15913       break
15914     else
15915       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15916 $as_echo "no" >&6; }
15917     fi
15918   done
15919 fi
15920
15921 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
15922   for ncn_progname in strip; do
15923     if test -n "$ncn_target_tool_prefix"; then
15924       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15925 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15927 $as_echo_n "checking for $ac_word... " >&6; }
15928 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
15929   $as_echo_n "(cached) " >&6
15930 else
15931   if test -n "$STRIP_FOR_TARGET"; then
15932   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
15933 else
15934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15935 for as_dir in $PATH
15936 do
15937   IFS=$as_save_IFS
15938   test -z "$as_dir" && as_dir=.
15939     for ac_exec_ext in '' $ac_executable_extensions; do
15940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15941     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15943     break 2
15944   fi
15945 done
15946   done
15947 IFS=$as_save_IFS
15948
15949 fi
15950 fi
15951 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
15952 if test -n "$STRIP_FOR_TARGET"; then
15953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15954 $as_echo "$STRIP_FOR_TARGET" >&6; }
15955 else
15956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15957 $as_echo "no" >&6; }
15958 fi
15959
15960
15961     fi
15962     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
15963       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15964 set dummy ${ncn_progname}; ac_word=$2
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15966 $as_echo_n "checking for $ac_word... " >&6; }
15967 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
15968   $as_echo_n "(cached) " >&6
15969 else
15970   if test -n "$STRIP_FOR_TARGET"; then
15971   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
15972 else
15973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15974 for as_dir in $PATH
15975 do
15976   IFS=$as_save_IFS
15977   test -z "$as_dir" && as_dir=.
15978     for ac_exec_ext in '' $ac_executable_extensions; do
15979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15980     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
15981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15982     break 2
15983   fi
15984 done
15985   done
15986 IFS=$as_save_IFS
15987
15988 fi
15989 fi
15990 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
15991 if test -n "$STRIP_FOR_TARGET"; then
15992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15993 $as_echo "$STRIP_FOR_TARGET" >&6; }
15994 else
15995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15996 $as_echo "no" >&6; }
15997 fi
15998
15999
16000     fi
16001     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16002   done
16003 fi
16004
16005 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16006   set dummy strip
16007   if test $build = $target ; then
16008     STRIP_FOR_TARGET="$2"
16009   else
16010     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16011   fi
16012 else
16013   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16014 fi
16015
16016 else
16017   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16018 fi
16019
16020
16021
16022
16023 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16024   if test -n "$with_build_time_tools"; then
16025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16026 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16027     if test -x $with_build_time_tools/windres; then
16028       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16029       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16030       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16031 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16032     else
16033       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16034 $as_echo "no" >&6; }
16035     fi
16036   elif test $build != $host && test $have_gcc_for_target = yes; then
16037     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16038     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16039     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16040   fi
16041 fi
16042 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16043   # Extract the first word of "windres", so it can be a program name with args.
16044 set dummy windres; ac_word=$2
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16046 $as_echo_n "checking for $ac_word... " >&6; }
16047 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16048   $as_echo_n "(cached) " >&6
16049 else
16050   case $WINDRES_FOR_TARGET in
16051   [\\/]* | ?:[\\/]*)
16052   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16053   ;;
16054   *)
16055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16056 for as_dir in $gcc_cv_tool_dirs
16057 do
16058   IFS=$as_save_IFS
16059   test -z "$as_dir" && as_dir=.
16060     for ac_exec_ext in '' $ac_executable_extensions; do
16061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16062     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16064     break 2
16065   fi
16066 done
16067   done
16068 IFS=$as_save_IFS
16069
16070   ;;
16071 esac
16072 fi
16073 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16074 if test -n "$WINDRES_FOR_TARGET"; then
16075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16076 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16077 else
16078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16079 $as_echo "no" >&6; }
16080 fi
16081
16082
16083 fi
16084 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16085
16086
16087 if test -n "$WINDRES_FOR_TARGET"; then
16088   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16089 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16090   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16091 fi
16092
16093 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16094   for ncn_progname in windres; do
16095     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16096 set dummy ${ncn_progname}; ac_word=$2
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16098 $as_echo_n "checking for $ac_word... " >&6; }
16099 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16100   $as_echo_n "(cached) " >&6
16101 else
16102   if test -n "$WINDRES_FOR_TARGET"; then
16103   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16104 else
16105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16106 for as_dir in $PATH
16107 do
16108   IFS=$as_save_IFS
16109   test -z "$as_dir" && as_dir=.
16110     for ac_exec_ext in '' $ac_executable_extensions; do
16111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16112     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16114     break 2
16115   fi
16116 done
16117   done
16118 IFS=$as_save_IFS
16119
16120 fi
16121 fi
16122 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16123 if test -n "$WINDRES_FOR_TARGET"; then
16124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16125 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16126 else
16127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16128 $as_echo "no" >&6; }
16129 fi
16130
16131
16132   done
16133 fi
16134
16135 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16136   for ncn_progname in windres; do
16137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16138 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16139     if test -x $with_build_time_tools/${ncn_progname}; then
16140       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16141       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16142 $as_echo "yes" >&6; }
16143       break
16144     else
16145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16146 $as_echo "no" >&6; }
16147     fi
16148   done
16149 fi
16150
16151 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16152   for ncn_progname in windres; do
16153     if test -n "$ncn_target_tool_prefix"; then
16154       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16155 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16157 $as_echo_n "checking for $ac_word... " >&6; }
16158 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16159   $as_echo_n "(cached) " >&6
16160 else
16161   if test -n "$WINDRES_FOR_TARGET"; then
16162   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16163 else
16164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16165 for as_dir in $PATH
16166 do
16167   IFS=$as_save_IFS
16168   test -z "$as_dir" && as_dir=.
16169     for ac_exec_ext in '' $ac_executable_extensions; do
16170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16171     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16173     break 2
16174   fi
16175 done
16176   done
16177 IFS=$as_save_IFS
16178
16179 fi
16180 fi
16181 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16182 if test -n "$WINDRES_FOR_TARGET"; then
16183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16184 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16185 else
16186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16187 $as_echo "no" >&6; }
16188 fi
16189
16190
16191     fi
16192     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16193       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16194 set dummy ${ncn_progname}; ac_word=$2
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16196 $as_echo_n "checking for $ac_word... " >&6; }
16197 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16198   $as_echo_n "(cached) " >&6
16199 else
16200   if test -n "$WINDRES_FOR_TARGET"; then
16201   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16202 else
16203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16204 for as_dir in $PATH
16205 do
16206   IFS=$as_save_IFS
16207   test -z "$as_dir" && as_dir=.
16208     for ac_exec_ext in '' $ac_executable_extensions; do
16209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16210     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16212     break 2
16213   fi
16214 done
16215   done
16216 IFS=$as_save_IFS
16217
16218 fi
16219 fi
16220 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16221 if test -n "$WINDRES_FOR_TARGET"; then
16222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16223 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16224 else
16225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16226 $as_echo "no" >&6; }
16227 fi
16228
16229
16230     fi
16231     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16232   done
16233 fi
16234
16235 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16236   set dummy windres
16237   if test $build = $target ; then
16238     WINDRES_FOR_TARGET="$2"
16239   else
16240     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
16241   fi
16242 else
16243   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
16244 fi
16245
16246 else
16247   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16248 fi
16249
16250
16251
16252
16253 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16254   if test -n "$with_build_time_tools"; then
16255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
16256 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
16257     if test -x $with_build_time_tools/windmc; then
16258       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16259       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16260       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16261 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
16262     else
16263       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16264 $as_echo "no" >&6; }
16265     fi
16266   elif test $build != $host && test $have_gcc_for_target = yes; then
16267     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
16268     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16269     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16270   fi
16271 fi
16272 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16273   # Extract the first word of "windmc", so it can be a program name with args.
16274 set dummy windmc; ac_word=$2
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16276 $as_echo_n "checking for $ac_word... " >&6; }
16277 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
16278   $as_echo_n "(cached) " >&6
16279 else
16280   case $WINDMC_FOR_TARGET in
16281   [\\/]* | ?:[\\/]*)
16282   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16283   ;;
16284   *)
16285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16286 for as_dir in $gcc_cv_tool_dirs
16287 do
16288   IFS=$as_save_IFS
16289   test -z "$as_dir" && as_dir=.
16290     for ac_exec_ext in '' $ac_executable_extensions; do
16291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16292     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16294     break 2
16295   fi
16296 done
16297   done
16298 IFS=$as_save_IFS
16299
16300   ;;
16301 esac
16302 fi
16303 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16304 if test -n "$WINDMC_FOR_TARGET"; then
16305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16306 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16307 else
16308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16309 $as_echo "no" >&6; }
16310 fi
16311
16312
16313 fi
16314 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16315
16316
16317 if test -n "$WINDMC_FOR_TARGET"; then
16318   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16319 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16320   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16321 fi
16322
16323 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16324   for ncn_progname in windmc; do
16325     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16326 set dummy ${ncn_progname}; ac_word=$2
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16328 $as_echo_n "checking for $ac_word... " >&6; }
16329 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16330   $as_echo_n "(cached) " >&6
16331 else
16332   if test -n "$WINDMC_FOR_TARGET"; then
16333   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16334 else
16335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16336 for as_dir in $PATH
16337 do
16338   IFS=$as_save_IFS
16339   test -z "$as_dir" && as_dir=.
16340     for ac_exec_ext in '' $ac_executable_extensions; do
16341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16342     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16344     break 2
16345   fi
16346 done
16347   done
16348 IFS=$as_save_IFS
16349
16350 fi
16351 fi
16352 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16353 if test -n "$WINDMC_FOR_TARGET"; then
16354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16355 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16356 else
16357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16358 $as_echo "no" >&6; }
16359 fi
16360
16361
16362   done
16363 fi
16364
16365 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
16366   for ncn_progname in windmc; do
16367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16368 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16369     if test -x $with_build_time_tools/${ncn_progname}; then
16370       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16371       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16372 $as_echo "yes" >&6; }
16373       break
16374     else
16375       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16376 $as_echo "no" >&6; }
16377     fi
16378   done
16379 fi
16380
16381 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16382   for ncn_progname in windmc; do
16383     if test -n "$ncn_target_tool_prefix"; then
16384       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16385 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16387 $as_echo_n "checking for $ac_word... " >&6; }
16388 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16389   $as_echo_n "(cached) " >&6
16390 else
16391   if test -n "$WINDMC_FOR_TARGET"; then
16392   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16393 else
16394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16395 for as_dir in $PATH
16396 do
16397   IFS=$as_save_IFS
16398   test -z "$as_dir" && as_dir=.
16399     for ac_exec_ext in '' $ac_executable_extensions; do
16400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16401     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16403     break 2
16404   fi
16405 done
16406   done
16407 IFS=$as_save_IFS
16408
16409 fi
16410 fi
16411 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16412 if test -n "$WINDMC_FOR_TARGET"; then
16413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16414 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16415 else
16416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16417 $as_echo "no" >&6; }
16418 fi
16419
16420
16421     fi
16422     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
16423       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16424 set dummy ${ncn_progname}; ac_word=$2
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16426 $as_echo_n "checking for $ac_word... " >&6; }
16427 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16428   $as_echo_n "(cached) " >&6
16429 else
16430   if test -n "$WINDMC_FOR_TARGET"; then
16431   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16432 else
16433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16434 for as_dir in $PATH
16435 do
16436   IFS=$as_save_IFS
16437   test -z "$as_dir" && as_dir=.
16438     for ac_exec_ext in '' $ac_executable_extensions; do
16439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16440     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16442     break 2
16443   fi
16444 done
16445   done
16446 IFS=$as_save_IFS
16447
16448 fi
16449 fi
16450 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16451 if test -n "$WINDMC_FOR_TARGET"; then
16452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16453 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16454 else
16455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16456 $as_echo "no" >&6; }
16457 fi
16458
16459
16460     fi
16461     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
16462   done
16463 fi
16464
16465 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
16466   set dummy windmc
16467   if test $build = $target ; then
16468     WINDMC_FOR_TARGET="$2"
16469   else
16470     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
16471   fi
16472 else
16473   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
16474 fi
16475
16476 else
16477   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16478 fi
16479
16480
16481 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
16482
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
16484 $as_echo_n "checking where to find the target ar... " >&6; }
16485 if test "x${build}" != "x${host}" ; then
16486   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
16487     # We already found the complete path
16488     ac_dir=`dirname $AR_FOR_TARGET`
16489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16490 $as_echo "pre-installed in $ac_dir" >&6; }
16491   else
16492     # Canadian cross, just use what we found
16493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16494 $as_echo "pre-installed" >&6; }
16495   fi
16496 else
16497   ok=yes
16498   case " ${configdirs} " in
16499     *" binutils "*) ;;
16500     *) ok=no ;;
16501   esac
16502
16503   if test $ok = yes; then
16504     # An in-tree tool is available and we can use it
16505     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
16506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16507 $as_echo "just compiled" >&6; }
16508   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
16509     # We already found the complete path
16510     ac_dir=`dirname $AR_FOR_TARGET`
16511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16512 $as_echo "pre-installed in $ac_dir" >&6; }
16513   elif test "x$target" = "x$host"; then
16514     # We can use an host tool
16515     AR_FOR_TARGET='$(AR)'
16516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16517 $as_echo "host tool" >&6; }
16518   else
16519     # We need a cross tool
16520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16521 $as_echo "pre-installed" >&6; }
16522   fi
16523 fi
16524
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
16526 $as_echo_n "checking where to find the target as... " >&6; }
16527 if test "x${build}" != "x${host}" ; then
16528   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
16529     # We already found the complete path
16530     ac_dir=`dirname $AS_FOR_TARGET`
16531     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16532 $as_echo "pre-installed in $ac_dir" >&6; }
16533   else
16534     # Canadian cross, just use what we found
16535     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16536 $as_echo "pre-installed" >&6; }
16537   fi
16538 else
16539   ok=yes
16540   case " ${configdirs} " in
16541     *" gas "*) ;;
16542     *) ok=no ;;
16543   esac
16544
16545   if test $ok = yes; then
16546     # An in-tree tool is available and we can use it
16547     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
16548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16549 $as_echo "just compiled" >&6; }
16550   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
16551     # We already found the complete path
16552     ac_dir=`dirname $AS_FOR_TARGET`
16553     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16554 $as_echo "pre-installed in $ac_dir" >&6; }
16555   elif test "x$target" = "x$host"; then
16556     # We can use an host tool
16557     AS_FOR_TARGET='$(AS)'
16558     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16559 $as_echo "host tool" >&6; }
16560   else
16561     # We need a cross tool
16562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16563 $as_echo "pre-installed" >&6; }
16564   fi
16565 fi
16566
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
16568 $as_echo_n "checking where to find the target cc... " >&6; }
16569 if test "x${build}" != "x${host}" ; then
16570   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
16571     # We already found the complete path
16572     ac_dir=`dirname $CC_FOR_TARGET`
16573     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16574 $as_echo "pre-installed in $ac_dir" >&6; }
16575   else
16576     # Canadian cross, just use what we found
16577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16578 $as_echo "pre-installed" >&6; }
16579   fi
16580 else
16581   ok=yes
16582   case " ${configdirs} " in
16583     *" gcc "*) ;;
16584     *) ok=no ;;
16585   esac
16586
16587   if test $ok = yes; then
16588     # An in-tree tool is available and we can use it
16589     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
16590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16591 $as_echo "just compiled" >&6; }
16592   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
16593     # We already found the complete path
16594     ac_dir=`dirname $CC_FOR_TARGET`
16595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16596 $as_echo "pre-installed in $ac_dir" >&6; }
16597   elif test "x$target" = "x$host"; then
16598     # We can use an host tool
16599     CC_FOR_TARGET='$(CC)'
16600     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16601 $as_echo "host tool" >&6; }
16602   else
16603     # We need a cross tool
16604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16605 $as_echo "pre-installed" >&6; }
16606   fi
16607 fi
16608
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
16610 $as_echo_n "checking where to find the target c++... " >&6; }
16611 if test "x${build}" != "x${host}" ; then
16612   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
16613     # We already found the complete path
16614     ac_dir=`dirname $CXX_FOR_TARGET`
16615     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16616 $as_echo "pre-installed in $ac_dir" >&6; }
16617   else
16618     # Canadian cross, just use what we found
16619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16620 $as_echo "pre-installed" >&6; }
16621   fi
16622 else
16623   ok=yes
16624   case " ${configdirs} " in
16625     *" gcc "*) ;;
16626     *) ok=no ;;
16627   esac
16628   case ,${enable_languages}, in
16629     *,c++,*) ;;
16630     *) ok=no ;;
16631   esac
16632   if test $ok = yes; then
16633     # An in-tree tool is available and we can use it
16634     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'
16635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16636 $as_echo "just compiled" >&6; }
16637   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
16638     # We already found the complete path
16639     ac_dir=`dirname $CXX_FOR_TARGET`
16640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16641 $as_echo "pre-installed in $ac_dir" >&6; }
16642   elif test "x$target" = "x$host"; then
16643     # We can use an host tool
16644     CXX_FOR_TARGET='$(CXX)'
16645     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16646 $as_echo "host tool" >&6; }
16647   else
16648     # We need a cross tool
16649     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16650 $as_echo "pre-installed" >&6; }
16651   fi
16652 fi
16653
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
16655 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
16656 if test "x${build}" != "x${host}" ; then
16657   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
16658     # We already found the complete path
16659     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
16660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16661 $as_echo "pre-installed in $ac_dir" >&6; }
16662   else
16663     # Canadian cross, just use what we found
16664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16665 $as_echo "pre-installed" >&6; }
16666   fi
16667 else
16668   ok=yes
16669   case " ${configdirs} " in
16670     *" gcc "*) ;;
16671     *) ok=no ;;
16672   esac
16673   case ,${enable_languages}, in
16674     *,c++,*) ;;
16675     *) ok=no ;;
16676   esac
16677   if test $ok = yes; then
16678     # An in-tree tool is available and we can use it
16679     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'
16680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16681 $as_echo "just compiled" >&6; }
16682   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
16683     # We already found the complete path
16684     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
16685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16686 $as_echo "pre-installed in $ac_dir" >&6; }
16687   elif test "x$target" = "x$host"; then
16688     # We can use an host tool
16689     RAW_CXX_FOR_TARGET='$(CXX)'
16690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16691 $as_echo "host tool" >&6; }
16692   else
16693     # We need a cross tool
16694     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16695 $as_echo "pre-installed" >&6; }
16696   fi
16697 fi
16698
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
16700 $as_echo_n "checking where to find the target dlltool... " >&6; }
16701 if test "x${build}" != "x${host}" ; then
16702   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
16703     # We already found the complete path
16704     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
16705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16706 $as_echo "pre-installed in $ac_dir" >&6; }
16707   else
16708     # Canadian cross, just use what we found
16709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16710 $as_echo "pre-installed" >&6; }
16711   fi
16712 else
16713   ok=yes
16714   case " ${configdirs} " in
16715     *" binutils "*) ;;
16716     *) ok=no ;;
16717   esac
16718
16719   if test $ok = yes; then
16720     # An in-tree tool is available and we can use it
16721     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
16722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16723 $as_echo "just compiled" >&6; }
16724   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
16725     # We already found the complete path
16726     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
16727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16728 $as_echo "pre-installed in $ac_dir" >&6; }
16729   elif test "x$target" = "x$host"; then
16730     # We can use an host tool
16731     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
16732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16733 $as_echo "host tool" >&6; }
16734   else
16735     # We need a cross tool
16736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16737 $as_echo "pre-installed" >&6; }
16738   fi
16739 fi
16740
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
16742 $as_echo_n "checking where to find the target gcc... " >&6; }
16743 if test "x${build}" != "x${host}" ; then
16744   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
16745     # We already found the complete path
16746     ac_dir=`dirname $GCC_FOR_TARGET`
16747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16748 $as_echo "pre-installed in $ac_dir" >&6; }
16749   else
16750     # Canadian cross, just use what we found
16751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16752 $as_echo "pre-installed" >&6; }
16753   fi
16754 else
16755   ok=yes
16756   case " ${configdirs} " in
16757     *" gcc "*) ;;
16758     *) ok=no ;;
16759   esac
16760
16761   if test $ok = yes; then
16762     # An in-tree tool is available and we can use it
16763     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
16764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16765 $as_echo "just compiled" >&6; }
16766   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
16767     # We already found the complete path
16768     ac_dir=`dirname $GCC_FOR_TARGET`
16769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16770 $as_echo "pre-installed in $ac_dir" >&6; }
16771   elif test "x$target" = "x$host"; then
16772     # We can use an host tool
16773     GCC_FOR_TARGET='$()'
16774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16775 $as_echo "host tool" >&6; }
16776   else
16777     # We need a cross tool
16778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16779 $as_echo "pre-installed" >&6; }
16780   fi
16781 fi
16782
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
16784 $as_echo_n "checking where to find the target gfortran... " >&6; }
16785 if test "x${build}" != "x${host}" ; then
16786   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
16787     # We already found the complete path
16788     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
16789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16790 $as_echo "pre-installed in $ac_dir" >&6; }
16791   else
16792     # Canadian cross, just use what we found
16793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16794 $as_echo "pre-installed" >&6; }
16795   fi
16796 else
16797   ok=yes
16798   case " ${configdirs} " in
16799     *" gcc "*) ;;
16800     *) ok=no ;;
16801   esac
16802   case ,${enable_languages}, in
16803     *,fortran,*) ;;
16804     *) ok=no ;;
16805   esac
16806   if test $ok = yes; then
16807     # An in-tree tool is available and we can use it
16808     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
16809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16810 $as_echo "just compiled" >&6; }
16811   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
16812     # We already found the complete path
16813     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
16814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16815 $as_echo "pre-installed in $ac_dir" >&6; }
16816   elif test "x$target" = "x$host"; then
16817     # We can use an host tool
16818     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
16819     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16820 $as_echo "host tool" >&6; }
16821   else
16822     # We need a cross tool
16823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16824 $as_echo "pre-installed" >&6; }
16825   fi
16826 fi
16827
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
16829 $as_echo_n "checking where to find the target gccgo... " >&6; }
16830 if test "x${build}" != "x${host}" ; then
16831   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
16832     # We already found the complete path
16833     ac_dir=`dirname $GOC_FOR_TARGET`
16834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16835 $as_echo "pre-installed in $ac_dir" >&6; }
16836   else
16837     # Canadian cross, just use what we found
16838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16839 $as_echo "pre-installed" >&6; }
16840   fi
16841 else
16842   ok=yes
16843   case " ${configdirs} " in
16844     *" gcc "*) ;;
16845     *) ok=no ;;
16846   esac
16847   case ,${enable_languages}, in
16848     *,go,*) ;;
16849     *) ok=no ;;
16850   esac
16851   if test $ok = yes; then
16852     # An in-tree tool is available and we can use it
16853     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
16854     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16855 $as_echo "just compiled" >&6; }
16856   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
16857     # We already found the complete path
16858     ac_dir=`dirname $GOC_FOR_TARGET`
16859     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16860 $as_echo "pre-installed in $ac_dir" >&6; }
16861   elif test "x$target" = "x$host"; then
16862     # We can use an host tool
16863     GOC_FOR_TARGET='$(GOC)'
16864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16865 $as_echo "host tool" >&6; }
16866   else
16867     # We need a cross tool
16868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16869 $as_echo "pre-installed" >&6; }
16870   fi
16871 fi
16872
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
16874 $as_echo_n "checking where to find the target gdc... " >&6; }
16875 if test "x${build}" != "x${host}" ; then
16876   if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
16877     # We already found the complete path
16878     ac_dir=`dirname $GDC_FOR_TARGET`
16879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16880 $as_echo "pre-installed in $ac_dir" >&6; }
16881   else
16882     # Canadian cross, just use what we found
16883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16884 $as_echo "pre-installed" >&6; }
16885   fi
16886 else
16887   ok=yes
16888   case " ${configdirs} " in
16889     *" gcc "*) ;;
16890     *) ok=no ;;
16891   esac
16892   case ,${enable_languages}, in
16893     *,d,*) ;;
16894     *) ok=no ;;
16895   esac
16896   if test $ok = yes; then
16897     # An in-tree tool is available and we can use it
16898     GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
16899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16900 $as_echo "just compiled" >&6; }
16901   elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
16902     # We already found the complete path
16903     ac_dir=`dirname $GDC_FOR_TARGET`
16904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16905 $as_echo "pre-installed in $ac_dir" >&6; }
16906   elif test "x$target" = "x$host"; then
16907     # We can use an host tool
16908     GDC_FOR_TARGET='$(GDC)'
16909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16910 $as_echo "host tool" >&6; }
16911   else
16912     # We need a cross tool
16913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16914 $as_echo "pre-installed" >&6; }
16915   fi
16916 fi
16917
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
16919 $as_echo_n "checking where to find the target ld... " >&6; }
16920 if test "x${build}" != "x${host}" ; then
16921   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
16922     # We already found the complete path
16923     ac_dir=`dirname $LD_FOR_TARGET`
16924     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16925 $as_echo "pre-installed in $ac_dir" >&6; }
16926   else
16927     # Canadian cross, just use what we found
16928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16929 $as_echo "pre-installed" >&6; }
16930   fi
16931 else
16932   ok=yes
16933   case " ${configdirs} " in
16934     *" ld "*) ;;
16935     *) ok=no ;;
16936   esac
16937
16938   if test $ok = yes; then
16939     # An in-tree tool is available and we can use it
16940     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
16941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16942 $as_echo "just compiled" >&6; }
16943   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
16944     # We already found the complete path
16945     ac_dir=`dirname $LD_FOR_TARGET`
16946     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16947 $as_echo "pre-installed in $ac_dir" >&6; }
16948   elif test "x$target" = "x$host"; then
16949     # We can use an host tool
16950     LD_FOR_TARGET='$(LD)'
16951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16952 $as_echo "host tool" >&6; }
16953   else
16954     # We need a cross tool
16955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16956 $as_echo "pre-installed" >&6; }
16957   fi
16958 fi
16959
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
16961 $as_echo_n "checking where to find the target lipo... " >&6; }
16962 if test "x${build}" != "x${host}" ; then
16963   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
16964     # We already found the complete path
16965     ac_dir=`dirname $LIPO_FOR_TARGET`
16966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16967 $as_echo "pre-installed in $ac_dir" >&6; }
16968   else
16969     # Canadian cross, just use what we found
16970     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16971 $as_echo "pre-installed" >&6; }
16972   fi
16973 else
16974   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
16975     # We already found the complete path
16976     ac_dir=`dirname $LIPO_FOR_TARGET`
16977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16978 $as_echo "pre-installed in $ac_dir" >&6; }
16979   elif test "x$target" = "x$host"; then
16980     # We can use an host tool
16981     LIPO_FOR_TARGET='$(LIPO)'
16982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16983 $as_echo "host tool" >&6; }
16984   else
16985     # We need a cross tool
16986     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16987 $as_echo "pre-installed" >&6; }
16988   fi
16989 fi
16990
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
16992 $as_echo_n "checking where to find the target nm... " >&6; }
16993 if test "x${build}" != "x${host}" ; then
16994   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
16995     # We already found the complete path
16996     ac_dir=`dirname $NM_FOR_TARGET`
16997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16998 $as_echo "pre-installed in $ac_dir" >&6; }
16999   else
17000     # Canadian cross, just use what we found
17001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17002 $as_echo "pre-installed" >&6; }
17003   fi
17004 else
17005   ok=yes
17006   case " ${configdirs} " in
17007     *" binutils "*) ;;
17008     *) ok=no ;;
17009   esac
17010
17011   if test $ok = yes; then
17012     # An in-tree tool is available and we can use it
17013     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17015 $as_echo "just compiled" >&6; }
17016   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17017     # We already found the complete path
17018     ac_dir=`dirname $NM_FOR_TARGET`
17019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17020 $as_echo "pre-installed in $ac_dir" >&6; }
17021   elif test "x$target" = "x$host"; then
17022     # We can use an host tool
17023     NM_FOR_TARGET='$(NM)'
17024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17025 $as_echo "host tool" >&6; }
17026   else
17027     # We need a cross tool
17028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17029 $as_echo "pre-installed" >&6; }
17030   fi
17031 fi
17032
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17034 $as_echo_n "checking where to find the target objcopy... " >&6; }
17035 if test "x${build}" != "x${host}" ; then
17036   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17037     # We already found the complete path
17038     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17040 $as_echo "pre-installed in $ac_dir" >&6; }
17041   else
17042     # Canadian cross, just use what we found
17043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17044 $as_echo "pre-installed" >&6; }
17045   fi
17046 else
17047   ok=yes
17048   case " ${configdirs} " in
17049     *" binutils "*) ;;
17050     *) ok=no ;;
17051   esac
17052
17053   if test $ok = yes; then
17054     # An in-tree tool is available and we can use it
17055     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17057 $as_echo "just compiled" >&6; }
17058   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17059     # We already found the complete path
17060     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17062 $as_echo "pre-installed in $ac_dir" >&6; }
17063   elif test "x$target" = "x$host"; then
17064     # We can use an host tool
17065     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17067 $as_echo "host tool" >&6; }
17068   else
17069     # We need a cross tool
17070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17071 $as_echo "pre-installed" >&6; }
17072   fi
17073 fi
17074
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17076 $as_echo_n "checking where to find the target objdump... " >&6; }
17077 if test "x${build}" != "x${host}" ; then
17078   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17079     # We already found the complete path
17080     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17082 $as_echo "pre-installed in $ac_dir" >&6; }
17083   else
17084     # Canadian cross, just use what we found
17085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17086 $as_echo "pre-installed" >&6; }
17087   fi
17088 else
17089   ok=yes
17090   case " ${configdirs} " in
17091     *" binutils "*) ;;
17092     *) ok=no ;;
17093   esac
17094
17095   if test $ok = yes; then
17096     # An in-tree tool is available and we can use it
17097     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17099 $as_echo "just compiled" >&6; }
17100   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17101     # We already found the complete path
17102     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17103     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17104 $as_echo "pre-installed in $ac_dir" >&6; }
17105   elif test "x$target" = "x$host"; then
17106     # We can use an host tool
17107     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17109 $as_echo "host tool" >&6; }
17110   else
17111     # We need a cross tool
17112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17113 $as_echo "pre-installed" >&6; }
17114   fi
17115 fi
17116
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17118 $as_echo_n "checking where to find the target otool... " >&6; }
17119 if test "x${build}" != "x${host}" ; then
17120   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17121     # We already found the complete path
17122     ac_dir=`dirname $OTOOL_FOR_TARGET`
17123     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17124 $as_echo "pre-installed in $ac_dir" >&6; }
17125   else
17126     # Canadian cross, just use what we found
17127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17128 $as_echo "pre-installed" >&6; }
17129   fi
17130 else
17131   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17132     # We already found the complete path
17133     ac_dir=`dirname $OTOOL_FOR_TARGET`
17134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17135 $as_echo "pre-installed in $ac_dir" >&6; }
17136   elif test "x$target" = "x$host"; then
17137     # We can use an host tool
17138     OTOOL_FOR_TARGET='$(OTOOL)'
17139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17140 $as_echo "host tool" >&6; }
17141   else
17142     # We need a cross tool
17143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17144 $as_echo "pre-installed" >&6; }
17145   fi
17146 fi
17147
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17149 $as_echo_n "checking where to find the target ranlib... " >&6; }
17150 if test "x${build}" != "x${host}" ; then
17151   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17152     # We already found the complete path
17153     ac_dir=`dirname $RANLIB_FOR_TARGET`
17154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17155 $as_echo "pre-installed in $ac_dir" >&6; }
17156   else
17157     # Canadian cross, just use what we found
17158     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17159 $as_echo "pre-installed" >&6; }
17160   fi
17161 else
17162   ok=yes
17163   case " ${configdirs} " in
17164     *" binutils "*) ;;
17165     *) ok=no ;;
17166   esac
17167
17168   if test $ok = yes; then
17169     # An in-tree tool is available and we can use it
17170     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17172 $as_echo "just compiled" >&6; }
17173   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17174     # We already found the complete path
17175     ac_dir=`dirname $RANLIB_FOR_TARGET`
17176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17177 $as_echo "pre-installed in $ac_dir" >&6; }
17178   elif test "x$target" = "x$host"; then
17179     # We can use an host tool
17180     RANLIB_FOR_TARGET='$(RANLIB)'
17181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17182 $as_echo "host tool" >&6; }
17183   else
17184     # We need a cross tool
17185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17186 $as_echo "pre-installed" >&6; }
17187   fi
17188 fi
17189
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17191 $as_echo_n "checking where to find the target readelf... " >&6; }
17192 if test "x${build}" != "x${host}" ; then
17193   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17194     # We already found the complete path
17195     ac_dir=`dirname $READELF_FOR_TARGET`
17196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17197 $as_echo "pre-installed in $ac_dir" >&6; }
17198   else
17199     # Canadian cross, just use what we found
17200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17201 $as_echo "pre-installed" >&6; }
17202   fi
17203 else
17204   ok=yes
17205   case " ${configdirs} " in
17206     *" binutils "*) ;;
17207     *) ok=no ;;
17208   esac
17209
17210   if test $ok = yes; then
17211     # An in-tree tool is available and we can use it
17212     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17214 $as_echo "just compiled" >&6; }
17215   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17216     # We already found the complete path
17217     ac_dir=`dirname $READELF_FOR_TARGET`
17218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17219 $as_echo "pre-installed in $ac_dir" >&6; }
17220   elif test "x$target" = "x$host"; then
17221     # We can use an host tool
17222     READELF_FOR_TARGET='$(READELF)'
17223     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17224 $as_echo "host tool" >&6; }
17225   else
17226     # We need a cross tool
17227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17228 $as_echo "pre-installed" >&6; }
17229   fi
17230 fi
17231
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
17233 $as_echo_n "checking where to find the target strip... " >&6; }
17234 if test "x${build}" != "x${host}" ; then
17235   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17236     # We already found the complete path
17237     ac_dir=`dirname $STRIP_FOR_TARGET`
17238     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17239 $as_echo "pre-installed in $ac_dir" >&6; }
17240   else
17241     # Canadian cross, just use what we found
17242     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17243 $as_echo "pre-installed" >&6; }
17244   fi
17245 else
17246   ok=yes
17247   case " ${configdirs} " in
17248     *" binutils "*) ;;
17249     *) ok=no ;;
17250   esac
17251
17252   if test $ok = yes; then
17253     # An in-tree tool is available and we can use it
17254     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
17255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17256 $as_echo "just compiled" >&6; }
17257   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17258     # We already found the complete path
17259     ac_dir=`dirname $STRIP_FOR_TARGET`
17260     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17261 $as_echo "pre-installed in $ac_dir" >&6; }
17262   elif test "x$target" = "x$host"; then
17263     # We can use an host tool
17264     STRIP_FOR_TARGET='$(STRIP)'
17265     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17266 $as_echo "host tool" >&6; }
17267   else
17268     # We need a cross tool
17269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17270 $as_echo "pre-installed" >&6; }
17271   fi
17272 fi
17273
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
17275 $as_echo_n "checking where to find the target windres... " >&6; }
17276 if test "x${build}" != "x${host}" ; then
17277   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17278     # We already found the complete path
17279     ac_dir=`dirname $WINDRES_FOR_TARGET`
17280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17281 $as_echo "pre-installed in $ac_dir" >&6; }
17282   else
17283     # Canadian cross, just use what we found
17284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17285 $as_echo "pre-installed" >&6; }
17286   fi
17287 else
17288   ok=yes
17289   case " ${configdirs} " in
17290     *" binutils "*) ;;
17291     *) ok=no ;;
17292   esac
17293
17294   if test $ok = yes; then
17295     # An in-tree tool is available and we can use it
17296     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
17297     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17298 $as_echo "just compiled" >&6; }
17299   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17300     # We already found the complete path
17301     ac_dir=`dirname $WINDRES_FOR_TARGET`
17302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17303 $as_echo "pre-installed in $ac_dir" >&6; }
17304   elif test "x$target" = "x$host"; then
17305     # We can use an host tool
17306     WINDRES_FOR_TARGET='$(WINDRES)'
17307     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17308 $as_echo "host tool" >&6; }
17309   else
17310     # We need a cross tool
17311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17312 $as_echo "pre-installed" >&6; }
17313   fi
17314 fi
17315
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
17317 $as_echo_n "checking where to find the target windmc... " >&6; }
17318 if test "x${build}" != "x${host}" ; then
17319   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17320     # We already found the complete path
17321     ac_dir=`dirname $WINDMC_FOR_TARGET`
17322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17323 $as_echo "pre-installed in $ac_dir" >&6; }
17324   else
17325     # Canadian cross, just use what we found
17326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17327 $as_echo "pre-installed" >&6; }
17328   fi
17329 else
17330   ok=yes
17331   case " ${configdirs} " in
17332     *" binutils "*) ;;
17333     *) ok=no ;;
17334   esac
17335
17336   if test $ok = yes; then
17337     # An in-tree tool is available and we can use it
17338     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
17339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17340 $as_echo "just compiled" >&6; }
17341   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17342     # We already found the complete path
17343     ac_dir=`dirname $WINDMC_FOR_TARGET`
17344     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17345 $as_echo "pre-installed in $ac_dir" >&6; }
17346   elif test "x$target" = "x$host"; then
17347     # We can use an host tool
17348     WINDMC_FOR_TARGET='$(WINDMC)'
17349     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17350 $as_echo "host tool" >&6; }
17351   else
17352     # We need a cross tool
17353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17354 $as_echo "pre-installed" >&6; }
17355   fi
17356 fi
17357
17358
17359
17360
17361
17362 # Certain tools may need extra flags.
17363 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
17364 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
17365 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
17366
17367 # When building target libraries, except in a Canadian cross, we use
17368 # the same toolchain as the compiler we just built.
17369 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
17370 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
17371 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
17372 if test $host = $build; then
17373   case " $configdirs " in
17374     *" gcc "*)
17375       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
17376       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
17377       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
17378       ;;
17379   esac
17380 fi
17381
17382
17383
17384
17385
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17387 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17388 # Check whether --enable-maintainer-mode was given.
17389 if test "${enable_maintainer_mode+set}" = set; then :
17390   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
17391 else
17392   USE_MAINTAINER_MODE=no
17393 fi
17394
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17396 $as_echo "$USE_MAINTAINER_MODE" >&6; }
17397
17398
17399 if test "$USE_MAINTAINER_MODE" = yes; then
17400   MAINTAINER_MODE_TRUE=
17401   MAINTAINER_MODE_FALSE='#'
17402 else
17403   MAINTAINER_MODE_TRUE='#'
17404   MAINTAINER_MODE_FALSE=
17405 fi
17406 MAINT=$MAINTAINER_MODE_TRUE
17407
17408 # ---------------------
17409 # GCC bootstrap support
17410 # ---------------------
17411
17412 # Stage specific cflags for build.
17413 stage1_cflags="-g"
17414 case $build in
17415   vax-*-*)
17416     case ${GCC} in
17417       yes) stage1_cflags="-g -Wa,-J" ;;
17418       *) stage1_cflags="-g -J" ;;
17419     esac ;;
17420 esac
17421
17422
17423
17424 # Enable --enable-checking in stage1 of the compiler.
17425 # Check whether --enable-stage1-checking was given.
17426 if test "${enable_stage1_checking+set}" = set; then :
17427   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
17428 else
17429   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
17430   # For --disable-checking or implicit --enable-checking=release, avoid
17431   # setting --enable-checking=gc in the default stage1 checking for LTO
17432   # bootstraps.  See PR62077.
17433   case $BUILD_CONFIG in
17434     *lto*)
17435       stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
17436     *)
17437       stage1_checking=--enable-checking=yes,types;;
17438   esac
17439   if test "x$enable_checking" = x && \
17440      test -d ${srcdir}/gcc && \
17441      test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
17442     stage1_checking=--enable-checking=yes,types,extra
17443   fi
17444 else
17445   stage1_checking=--enable-checking=$enable_checking,types
17446 fi
17447 fi
17448
17449
17450
17451 # Enable -Werror in bootstrap stage2 and later.
17452 # Check whether --enable-werror was given.
17453 if test "${enable_werror+set}" = set; then :
17454   enableval=$enable_werror;
17455 case ${enable_werror} in
17456   yes) stage2_werror_flag="--enable-werror-always" ;;
17457   *) stage2_werror_flag="" ;;
17458 esac
17459
17460 else
17461
17462 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
17463   case $BUILD_CONFIG in
17464   bootstrap-debug)
17465       stage2_werror_flag="--enable-werror-always" ;;
17466   "")
17467       stage2_werror_flag="--enable-werror-always" ;;
17468   esac
17469 fi
17470
17471 fi
17472
17473
17474
17475
17476 # Specify what files to not compare during bootstrap.
17477
17478 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
17479 case "$target" in
17480   hppa*64*-*-hpux*) ;;
17481   hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
17482   powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
17483 esac
17484
17485
17486 ac_config_files="$ac_config_files Makefile"
17487
17488 cat >confcache <<\_ACEOF
17489 # This file is a shell script that caches the results of configure
17490 # tests run on this system so they can be shared between configure
17491 # scripts and configure runs, see configure's option --config-cache.
17492 # It is not useful on other systems.  If it contains results you don't
17493 # want to keep, you may remove or edit it.
17494 #
17495 # config.status only pays attention to the cache file if you give it
17496 # the --recheck option to rerun configure.
17497 #
17498 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17499 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17500 # following values.
17501
17502 _ACEOF
17503
17504 # The following way of writing the cache mishandles newlines in values,
17505 # but we know of no workaround that is simple, portable, and efficient.
17506 # So, we kill variables containing newlines.
17507 # Ultrix sh set writes to stderr and can't be redirected directly,
17508 # and sets the high bit in the cache file unless we assign to the vars.
17509 (
17510   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17511     eval ac_val=\$$ac_var
17512     case $ac_val in #(
17513     *${as_nl}*)
17514       case $ac_var in #(
17515       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17516 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17517       esac
17518       case $ac_var in #(
17519       _ | IFS | as_nl) ;; #(
17520       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17521       *) { eval $ac_var=; unset $ac_var;} ;;
17522       esac ;;
17523     esac
17524   done
17525
17526   (set) 2>&1 |
17527     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17528     *${as_nl}ac_space=\ *)
17529       # `set' does not quote correctly, so add quotes: double-quote
17530       # substitution turns \\\\ into \\, and sed turns \\ into \.
17531       sed -n \
17532         "s/'/'\\\\''/g;
17533           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17534       ;; #(
17535     *)
17536       # `set' quotes correctly as required by POSIX, so do not add quotes.
17537       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17538       ;;
17539     esac |
17540     sort
17541 ) |
17542   sed '
17543      /^ac_cv_env_/b end
17544      t clear
17545      :clear
17546      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17547      t end
17548      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17549      :end' >>confcache
17550 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17551   if test -w "$cache_file"; then
17552     if test "x$cache_file" != "x/dev/null"; then
17553       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17554 $as_echo "$as_me: updating cache $cache_file" >&6;}
17555       if test ! -f "$cache_file" || test -h "$cache_file"; then
17556         cat confcache >"$cache_file"
17557       else
17558         case $cache_file in #(
17559         */* | ?:*)
17560           mv -f confcache "$cache_file"$$ &&
17561           mv -f "$cache_file"$$ "$cache_file" ;; #(
17562         *)
17563           mv -f confcache "$cache_file" ;;
17564         esac
17565       fi
17566     fi
17567   else
17568     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17569 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17570   fi
17571 fi
17572 rm -f confcache
17573
17574 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17575 # Let make expand exec_prefix.
17576 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17577
17578 # Transform confdefs.h into DEFS.
17579 # Protect against shell expansion while executing Makefile rules.
17580 # Protect against Makefile macro expansion.
17581 #
17582 # If the first sed substitution is executed (which looks for macros that
17583 # take arguments), then branch to the quote section.  Otherwise,
17584 # look for a macro that doesn't take arguments.
17585 ac_script='
17586 :mline
17587 /\\$/{
17588  N
17589  s,\\\n,,
17590  b mline
17591 }
17592 t clear
17593 :clear
17594 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
17595 t quote
17596 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
17597 t quote
17598 b any
17599 :quote
17600 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17601 s/\[/\\&/g
17602 s/\]/\\&/g
17603 s/\$/$$/g
17604 H
17605 :any
17606 ${
17607         g
17608         s/^\n//
17609         s/\n/ /g
17610         p
17611 }
17612 '
17613 DEFS=`sed -n "$ac_script" confdefs.h`
17614
17615
17616 ac_libobjs=
17617 ac_ltlibobjs=
17618 U=
17619 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17620   # 1. Remove the extension, and $U if already installed.
17621   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17622   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17623   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17624   #    will be set to the directory where LIBOBJS objects are built.
17625   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17626   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17627 done
17628 LIBOBJS=$ac_libobjs
17629
17630 LTLIBOBJS=$ac_ltlibobjs
17631
17632
17633
17634 : "${CONFIG_STATUS=./config.status}"
17635 ac_write_fail=0
17636 ac_clean_files_save=$ac_clean_files
17637 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17639 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17640 as_write_fail=0
17641 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17642 #! $SHELL
17643 # Generated by $as_me.
17644 # Run this file to recreate the current configuration.
17645 # Compiler output produced by configure, useful for debugging
17646 # configure, is in config.log if it exists.
17647
17648 debug=false
17649 ac_cs_recheck=false
17650 ac_cs_silent=false
17651
17652 SHELL=\${CONFIG_SHELL-$SHELL}
17653 export SHELL
17654 _ASEOF
17655 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17656 ## -------------------- ##
17657 ## M4sh Initialization. ##
17658 ## -------------------- ##
17659
17660 # Be more Bourne compatible
17661 DUALCASE=1; export DUALCASE # for MKS sh
17662 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17663   emulate sh
17664   NULLCMD=:
17665   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17666   # is contrary to our usage.  Disable this feature.
17667   alias -g '${1+"$@"}'='"$@"'
17668   setopt NO_GLOB_SUBST
17669 else
17670   case `(set -o) 2>/dev/null` in #(
17671   *posix*) :
17672     set -o posix ;; #(
17673   *) :
17674      ;;
17675 esac
17676 fi
17677
17678
17679 as_nl='
17680 '
17681 export as_nl
17682 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17683 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17684 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17685 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17686 # Prefer a ksh shell builtin over an external printf program on Solaris,
17687 # but without wasting forks for bash or zsh.
17688 if test -z "$BASH_VERSION$ZSH_VERSION" \
17689     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17690   as_echo='print -r --'
17691   as_echo_n='print -rn --'
17692 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17693   as_echo='printf %s\n'
17694   as_echo_n='printf %s'
17695 else
17696   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17697     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17698     as_echo_n='/usr/ucb/echo -n'
17699   else
17700     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17701     as_echo_n_body='eval
17702       arg=$1;
17703       case $arg in #(
17704       *"$as_nl"*)
17705         expr "X$arg" : "X\\(.*\\)$as_nl";
17706         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17707       esac;
17708       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17709     '
17710     export as_echo_n_body
17711     as_echo_n='sh -c $as_echo_n_body as_echo'
17712   fi
17713   export as_echo_body
17714   as_echo='sh -c $as_echo_body as_echo'
17715 fi
17716
17717 # The user is always right.
17718 if test "${PATH_SEPARATOR+set}" != set; then
17719   PATH_SEPARATOR=:
17720   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17721     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17722       PATH_SEPARATOR=';'
17723   }
17724 fi
17725
17726
17727 # IFS
17728 # We need space, tab and new line, in precisely that order.  Quoting is
17729 # there to prevent editors from complaining about space-tab.
17730 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17731 # splitting by setting IFS to empty value.)
17732 IFS=" ""        $as_nl"
17733
17734 # Find who we are.  Look in the path if we contain no directory separator.
17735 as_myself=
17736 case $0 in #((
17737   *[\\/]* ) as_myself=$0 ;;
17738   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17739 for as_dir in $PATH
17740 do
17741   IFS=$as_save_IFS
17742   test -z "$as_dir" && as_dir=.
17743     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17744   done
17745 IFS=$as_save_IFS
17746
17747      ;;
17748 esac
17749 # We did not find ourselves, most probably we were run as `sh COMMAND'
17750 # in which case we are not to be found in the path.
17751 if test "x$as_myself" = x; then
17752   as_myself=$0
17753 fi
17754 if test ! -f "$as_myself"; then
17755   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17756   exit 1
17757 fi
17758
17759 # Unset variables that we do not need and which cause bugs (e.g. in
17760 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17761 # suppresses any "Segmentation fault" message there.  '((' could
17762 # trigger a bug in pdksh 5.2.14.
17763 for as_var in BASH_ENV ENV MAIL MAILPATH
17764 do eval test x\${$as_var+set} = xset \
17765   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17766 done
17767 PS1='$ '
17768 PS2='> '
17769 PS4='+ '
17770
17771 # NLS nuisances.
17772 LC_ALL=C
17773 export LC_ALL
17774 LANGUAGE=C
17775 export LANGUAGE
17776
17777 # CDPATH.
17778 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17779
17780
17781 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17782 # ----------------------------------------
17783 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17784 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17785 # script with STATUS, using 1 if that was 0.
17786 as_fn_error ()
17787 {
17788   as_status=$1; test $as_status -eq 0 && as_status=1
17789   if test "$4"; then
17790     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17791     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17792   fi
17793   $as_echo "$as_me: error: $2" >&2
17794   as_fn_exit $as_status
17795 } # as_fn_error
17796
17797
17798 # as_fn_set_status STATUS
17799 # -----------------------
17800 # Set $? to STATUS, without forking.
17801 as_fn_set_status ()
17802 {
17803   return $1
17804 } # as_fn_set_status
17805
17806 # as_fn_exit STATUS
17807 # -----------------
17808 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17809 as_fn_exit ()
17810 {
17811   set +e
17812   as_fn_set_status $1
17813   exit $1
17814 } # as_fn_exit
17815
17816 # as_fn_unset VAR
17817 # ---------------
17818 # Portably unset VAR.
17819 as_fn_unset ()
17820 {
17821   { eval $1=; unset $1;}
17822 }
17823 as_unset=as_fn_unset
17824 # as_fn_append VAR VALUE
17825 # ----------------------
17826 # Append the text in VALUE to the end of the definition contained in VAR. Take
17827 # advantage of any shell optimizations that allow amortized linear growth over
17828 # repeated appends, instead of the typical quadratic growth present in naive
17829 # implementations.
17830 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17831   eval 'as_fn_append ()
17832   {
17833     eval $1+=\$2
17834   }'
17835 else
17836   as_fn_append ()
17837   {
17838     eval $1=\$$1\$2
17839   }
17840 fi # as_fn_append
17841
17842 # as_fn_arith ARG...
17843 # ------------------
17844 # Perform arithmetic evaluation on the ARGs, and store the result in the
17845 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17846 # must be portable across $(()) and expr.
17847 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17848   eval 'as_fn_arith ()
17849   {
17850     as_val=$(( $* ))
17851   }'
17852 else
17853   as_fn_arith ()
17854   {
17855     as_val=`expr "$@" || test $? -eq 1`
17856   }
17857 fi # as_fn_arith
17858
17859
17860 if expr a : '\(a\)' >/dev/null 2>&1 &&
17861    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17862   as_expr=expr
17863 else
17864   as_expr=false
17865 fi
17866
17867 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17868   as_basename=basename
17869 else
17870   as_basename=false
17871 fi
17872
17873 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17874   as_dirname=dirname
17875 else
17876   as_dirname=false
17877 fi
17878
17879 as_me=`$as_basename -- "$0" ||
17880 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17881          X"$0" : 'X\(//\)$' \| \
17882          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17883 $as_echo X/"$0" |
17884     sed '/^.*\/\([^/][^/]*\)\/*$/{
17885             s//\1/
17886             q
17887           }
17888           /^X\/\(\/\/\)$/{
17889             s//\1/
17890             q
17891           }
17892           /^X\/\(\/\).*/{
17893             s//\1/
17894             q
17895           }
17896           s/.*/./; q'`
17897
17898 # Avoid depending upon Character Ranges.
17899 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17900 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17901 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17902 as_cr_digits='0123456789'
17903 as_cr_alnum=$as_cr_Letters$as_cr_digits
17904
17905 ECHO_C= ECHO_N= ECHO_T=
17906 case `echo -n x` in #(((((
17907 -n*)
17908   case `echo 'xy\c'` in
17909   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17910   xy)  ECHO_C='\c';;
17911   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17912        ECHO_T=' ';;
17913   esac;;
17914 *)
17915   ECHO_N='-n';;
17916 esac
17917
17918 rm -f conf$$ conf$$.exe conf$$.file
17919 if test -d conf$$.dir; then
17920   rm -f conf$$.dir/conf$$.file
17921 else
17922   rm -f conf$$.dir
17923   mkdir conf$$.dir 2>/dev/null
17924 fi
17925 if (echo >conf$$.file) 2>/dev/null; then
17926   if ln -s conf$$.file conf$$ 2>/dev/null; then
17927     as_ln_s='ln -s'
17928     # ... but there are two gotchas:
17929     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17930     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17931     # In both cases, we have to default to `cp -pR'.
17932     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17933       as_ln_s='cp -pR'
17934   elif ln conf$$.file conf$$ 2>/dev/null; then
17935     as_ln_s=ln
17936   else
17937     as_ln_s='cp -pR'
17938   fi
17939 else
17940   as_ln_s='cp -pR'
17941 fi
17942 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17943 rmdir conf$$.dir 2>/dev/null
17944
17945
17946 # as_fn_mkdir_p
17947 # -------------
17948 # Create "$as_dir" as a directory, including parents if necessary.
17949 as_fn_mkdir_p ()
17950 {
17951
17952   case $as_dir in #(
17953   -*) as_dir=./$as_dir;;
17954   esac
17955   test -d "$as_dir" || eval $as_mkdir_p || {
17956     as_dirs=
17957     while :; do
17958       case $as_dir in #(
17959       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17960       *) as_qdir=$as_dir;;
17961       esac
17962       as_dirs="'$as_qdir' $as_dirs"
17963       as_dir=`$as_dirname -- "$as_dir" ||
17964 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17965          X"$as_dir" : 'X\(//\)[^/]' \| \
17966          X"$as_dir" : 'X\(//\)$' \| \
17967          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17968 $as_echo X"$as_dir" |
17969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17970             s//\1/
17971             q
17972           }
17973           /^X\(\/\/\)[^/].*/{
17974             s//\1/
17975             q
17976           }
17977           /^X\(\/\/\)$/{
17978             s//\1/
17979             q
17980           }
17981           /^X\(\/\).*/{
17982             s//\1/
17983             q
17984           }
17985           s/.*/./; q'`
17986       test -d "$as_dir" && break
17987     done
17988     test -z "$as_dirs" || eval "mkdir $as_dirs"
17989   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17990
17991
17992 } # as_fn_mkdir_p
17993 if mkdir -p . 2>/dev/null; then
17994   as_mkdir_p='mkdir -p "$as_dir"'
17995 else
17996   test -d ./-p && rmdir ./-p
17997   as_mkdir_p=false
17998 fi
17999
18000
18001 # as_fn_executable_p FILE
18002 # -----------------------
18003 # Test if FILE is an executable regular file.
18004 as_fn_executable_p ()
18005 {
18006   test -f "$1" && test -x "$1"
18007 } # as_fn_executable_p
18008 as_test_x='test -x'
18009 as_executable_p=as_fn_executable_p
18010
18011 # Sed expression to map a string onto a valid CPP name.
18012 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18013
18014 # Sed expression to map a string onto a valid variable name.
18015 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18016
18017
18018 exec 6>&1
18019 ## ----------------------------------- ##
18020 ## Main body of $CONFIG_STATUS script. ##
18021 ## ----------------------------------- ##
18022 _ASEOF
18023 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18024
18025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18026 # Save the log message, to keep $0 and so on meaningful, and to
18027 # report actual input values of CONFIG_FILES etc. instead of their
18028 # values after options handling.
18029 ac_log="
18030 This file was extended by $as_me, which was
18031 generated by GNU Autoconf 2.69.  Invocation command line was
18032
18033   CONFIG_FILES    = $CONFIG_FILES
18034   CONFIG_HEADERS  = $CONFIG_HEADERS
18035   CONFIG_LINKS    = $CONFIG_LINKS
18036   CONFIG_COMMANDS = $CONFIG_COMMANDS
18037   $ $0 $@
18038
18039 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18040 "
18041
18042 _ACEOF
18043
18044 case $ac_config_files in *"
18045 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18046 esac
18047
18048
18049
18050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18051 # Files that config.status was made for.
18052 config_files="$ac_config_files"
18053
18054 _ACEOF
18055
18056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18057 ac_cs_usage="\
18058 \`$as_me' instantiates files and other configuration actions
18059 from templates according to the current configuration.  Unless the files
18060 and actions are specified as TAGs, all are instantiated by default.
18061
18062 Usage: $0 [OPTION]... [TAG]...
18063
18064   -h, --help       print this help, then exit
18065   -V, --version    print version number and configuration settings, then exit
18066       --config     print configuration, then exit
18067   -q, --quiet, --silent
18068                    do not print progress messages
18069   -d, --debug      don't remove temporary files
18070       --recheck    update $as_me by reconfiguring in the same conditions
18071       --file=FILE[:TEMPLATE]
18072                    instantiate the configuration file FILE
18073
18074 Configuration files:
18075 $config_files
18076
18077 Report bugs to the package provider."
18078
18079 _ACEOF
18080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18081 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18082 ac_cs_version="\\
18083 config.status
18084 configured by $0, generated by GNU Autoconf 2.69,
18085   with options \\"\$ac_cs_config\\"
18086
18087 Copyright (C) 2012 Free Software Foundation, Inc.
18088 This config.status script is free software; the Free Software Foundation
18089 gives unlimited permission to copy, distribute and modify it."
18090
18091 ac_pwd='$ac_pwd'
18092 srcdir='$srcdir'
18093 INSTALL='$INSTALL'
18094 AWK='$AWK'
18095 test -n "\$AWK" || AWK=awk
18096 _ACEOF
18097
18098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18099 # The default lists apply if the user does not specify any file.
18100 ac_need_defaults=:
18101 while test $# != 0
18102 do
18103   case $1 in
18104   --*=?*)
18105     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18106     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18107     ac_shift=:
18108     ;;
18109   --*=)
18110     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18111     ac_optarg=
18112     ac_shift=:
18113     ;;
18114   *)
18115     ac_option=$1
18116     ac_optarg=$2
18117     ac_shift=shift
18118     ;;
18119   esac
18120
18121   case $ac_option in
18122   # Handling of the options.
18123   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18124     ac_cs_recheck=: ;;
18125   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18126     $as_echo "$ac_cs_version"; exit ;;
18127   --config | --confi | --conf | --con | --co | --c )
18128     $as_echo "$ac_cs_config"; exit ;;
18129   --debug | --debu | --deb | --de | --d | -d )
18130     debug=: ;;
18131   --file | --fil | --fi | --f )
18132     $ac_shift
18133     case $ac_optarg in
18134     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18135     '') as_fn_error $? "missing file argument" ;;
18136     esac
18137     as_fn_append CONFIG_FILES " '$ac_optarg'"
18138     ac_need_defaults=false;;
18139   --he | --h |  --help | --hel | -h )
18140     $as_echo "$ac_cs_usage"; exit ;;
18141   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18142   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18143     ac_cs_silent=: ;;
18144
18145   # This is an error.
18146   -*) as_fn_error $? "unrecognized option: \`$1'
18147 Try \`$0 --help' for more information." ;;
18148
18149   *) as_fn_append ac_config_targets " $1"
18150      ac_need_defaults=false ;;
18151
18152   esac
18153   shift
18154 done
18155
18156 ac_configure_extra_args=
18157
18158 if $ac_cs_silent; then
18159   exec 6>/dev/null
18160   ac_configure_extra_args="$ac_configure_extra_args --silent"
18161 fi
18162
18163 _ACEOF
18164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18165 if \$ac_cs_recheck; then
18166   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18167   shift
18168   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18169   CONFIG_SHELL='$SHELL'
18170   export CONFIG_SHELL
18171   exec "\$@"
18172 fi
18173
18174 _ACEOF
18175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18176 exec 5>>config.log
18177 {
18178   echo
18179   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18180 ## Running $as_me. ##
18181 _ASBOX
18182   $as_echo "$ac_log"
18183 } >&5
18184
18185 _ACEOF
18186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18187 #
18188 # INIT-COMMANDS
18189 #
18190 extrasub_build="$extrasub_build"
18191    extrasub_host="$extrasub_host"
18192    extrasub_target="$extrasub_target"
18193
18194 _ACEOF
18195
18196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18197
18198 # Handling of arguments.
18199 for ac_config_target in $ac_config_targets
18200 do
18201   case $ac_config_target in
18202     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18203
18204   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18205   esac
18206 done
18207
18208
18209 # If the user did not use the arguments to specify the items to instantiate,
18210 # then the envvar interface is used.  Set only those that are not.
18211 # We use the long form for the default assignment because of an extremely
18212 # bizarre bug on SunOS 4.1.3.
18213 if $ac_need_defaults; then
18214   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18215 fi
18216
18217 # Have a temporary directory for convenience.  Make it in the build tree
18218 # simply because there is no reason against having it here, and in addition,
18219 # creating and moving files from /tmp can sometimes cause problems.
18220 # Hook for its removal unless debugging.
18221 # Note that there is a small window in which the directory will not be cleaned:
18222 # after its creation but before its name has been assigned to `$tmp'.
18223 $debug ||
18224 {
18225   tmp= ac_tmp=
18226   trap 'exit_status=$?
18227   : "${ac_tmp:=$tmp}"
18228   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18229 ' 0
18230   trap 'as_fn_exit 1' 1 2 13 15
18231 }
18232 # Create a (secure) tmp directory for tmp files.
18233
18234 {
18235   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18236   test -d "$tmp"
18237 }  ||
18238 {
18239   tmp=./conf$$-$RANDOM
18240   (umask 077 && mkdir "$tmp")
18241 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18242 ac_tmp=$tmp
18243
18244 # Set up the scripts for CONFIG_FILES section.
18245 # No need to generate them if there are no CONFIG_FILES.
18246 # This happens for instance with `./config.status config.h'.
18247 if test -n "$CONFIG_FILES"; then
18248
18249 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18250   ac_cs_awk_getline=:
18251   ac_cs_awk_pipe_init=
18252   ac_cs_awk_read_file='
18253       while ((getline aline < (F[key])) > 0)
18254         print(aline)
18255       close(F[key])'
18256   ac_cs_awk_pipe_fini=
18257 else
18258   ac_cs_awk_getline=false
18259   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18260   ac_cs_awk_read_file='
18261       print "|#_!!_#|"
18262       print "cat " F[key] " &&"
18263       '$ac_cs_awk_pipe_init
18264   # The final `:' finishes the AND list.
18265   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18266 fi
18267 ac_cr=`echo X | tr X '\015'`
18268 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18269 # But we know of no other shell where ac_cr would be empty at this
18270 # point, so we can use a bashism as a fallback.
18271 if test "x$ac_cr" = x; then
18272   eval ac_cr=\$\'\\r\'
18273 fi
18274 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18275 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18276   ac_cs_awk_cr='\\r'
18277 else
18278   ac_cs_awk_cr=$ac_cr
18279 fi
18280
18281 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18282 _ACEOF
18283
18284 # Create commands to substitute file output variables.
18285 {
18286   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18287   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18288   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18289   echo "_ACAWK" &&
18290   echo "_ACEOF"
18291 } >conf$$files.sh &&
18292 . ./conf$$files.sh ||
18293   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18294 rm -f conf$$files.sh
18295
18296 {
18297   echo "cat >conf$$subs.awk <<_ACEOF" &&
18298   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18299   echo "_ACEOF"
18300 } >conf$$subs.sh ||
18301   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18302 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18303 ac_delim='%!_!# '
18304 for ac_last_try in false false false false false :; do
18305   . ./conf$$subs.sh ||
18306     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18307
18308   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18309   if test $ac_delim_n = $ac_delim_num; then
18310     break
18311   elif $ac_last_try; then
18312     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18313   else
18314     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18315   fi
18316 done
18317 rm -f conf$$subs.sh
18318
18319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18320 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18321 _ACEOF
18322 sed -n '
18323 h
18324 s/^/S["/; s/!.*/"]=/
18325 p
18326 g
18327 s/^[^!]*!//
18328 :repl
18329 t repl
18330 s/'"$ac_delim"'$//
18331 t delim
18332 :nl
18333 h
18334 s/\(.\{148\}\)..*/\1/
18335 t more1
18336 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18337 p
18338 n
18339 b repl
18340 :more1
18341 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18342 p
18343 g
18344 s/.\{148\}//
18345 t nl
18346 :delim
18347 h
18348 s/\(.\{148\}\)..*/\1/
18349 t more2
18350 s/["\\]/\\&/g; s/^/"/; s/$/"/
18351 p
18352 b
18353 :more2
18354 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18355 p
18356 g
18357 s/.\{148\}//
18358 t delim
18359 ' <conf$$subs.awk | sed '
18360 /^[^""]/{
18361   N
18362   s/\n//
18363 }
18364 ' >>$CONFIG_STATUS || ac_write_fail=1
18365 rm -f conf$$subs.awk
18366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18367 _ACAWK
18368 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18369   for (key in S) S_is_set[key] = 1
18370   FS = "\a"
18371   \$ac_cs_awk_pipe_init
18372 }
18373 {
18374   line = $ 0
18375   nfields = split(line, field, "@")
18376   substed = 0
18377   len = length(field[1])
18378   for (i = 2; i < nfields; i++) {
18379     key = field[i]
18380     keylen = length(key)
18381     if (S_is_set[key]) {
18382       value = S[key]
18383       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18384       len += length(value) + length(field[++i])
18385       substed = 1
18386     } else
18387       len += 1 + keylen
18388   }
18389   if (nfields == 3 && !substed) {
18390     key = field[2]
18391     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
18392       \$ac_cs_awk_read_file
18393       next
18394     }
18395   }
18396   print line
18397 }
18398 \$ac_cs_awk_pipe_fini
18399 _ACAWK
18400 _ACEOF
18401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18402 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18403   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18404 else
18405   cat
18406 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18407   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18408 _ACEOF
18409
18410 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18411 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18412 # trailing colons and then remove the whole line if VPATH becomes empty
18413 # (actually we leave an empty line to preserve line numbers).
18414 if test "x$srcdir" = x.; then
18415   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18416 h
18417 s///
18418 s/^/:/
18419 s/[      ]*$/:/
18420 s/:\$(srcdir):/:/g
18421 s/:\${srcdir}:/:/g
18422 s/:@srcdir@:/:/g
18423 s/^:*//
18424 s/:*$//
18425 x
18426 s/\(=[   ]*\).*/\1/
18427 G
18428 s/\n//
18429 s/^[^=]*=[       ]*$//
18430 }'
18431 fi
18432
18433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18434 fi # test -n "$CONFIG_FILES"
18435
18436
18437 eval set X "  :F $CONFIG_FILES      "
18438 shift
18439 for ac_tag
18440 do
18441   case $ac_tag in
18442   :[FHLC]) ac_mode=$ac_tag; continue;;
18443   esac
18444   case $ac_mode$ac_tag in
18445   :[FHL]*:*);;
18446   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18447   :[FH]-) ac_tag=-:-;;
18448   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18449   esac
18450   ac_save_IFS=$IFS
18451   IFS=:
18452   set x $ac_tag
18453   IFS=$ac_save_IFS
18454   shift
18455   ac_file=$1
18456   shift
18457
18458   case $ac_mode in
18459   :L) ac_source=$1;;
18460   :[FH])
18461     ac_file_inputs=
18462     for ac_f
18463     do
18464       case $ac_f in
18465       -) ac_f="$ac_tmp/stdin";;
18466       *) # Look for the file first in the build tree, then in the source tree
18467          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18468          # because $ac_f cannot contain `:'.
18469          test -f "$ac_f" ||
18470            case $ac_f in
18471            [\\/$]*) false;;
18472            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18473            esac ||
18474            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18475       esac
18476       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18477       as_fn_append ac_file_inputs " '$ac_f'"
18478     done
18479
18480     # Let's still pretend it is `configure' which instantiates (i.e., don't
18481     # use $as_me), people would be surprised to read:
18482     #    /* config.h.  Generated by config.status.  */
18483     configure_input='Generated from '`
18484           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18485         `' by configure.'
18486     if test x"$ac_file" != x-; then
18487       configure_input="$ac_file.  $configure_input"
18488       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18489 $as_echo "$as_me: creating $ac_file" >&6;}
18490     fi
18491     # Neutralize special characters interpreted by sed in replacement strings.
18492     case $configure_input in #(
18493     *\&* | *\|* | *\\* )
18494        ac_sed_conf_input=`$as_echo "$configure_input" |
18495        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18496     *) ac_sed_conf_input=$configure_input;;
18497     esac
18498
18499     case $ac_tag in
18500     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18501       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18502     esac
18503     ;;
18504   esac
18505
18506   ac_dir=`$as_dirname -- "$ac_file" ||
18507 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18508          X"$ac_file" : 'X\(//\)[^/]' \| \
18509          X"$ac_file" : 'X\(//\)$' \| \
18510          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18511 $as_echo X"$ac_file" |
18512     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18513             s//\1/
18514             q
18515           }
18516           /^X\(\/\/\)[^/].*/{
18517             s//\1/
18518             q
18519           }
18520           /^X\(\/\/\)$/{
18521             s//\1/
18522             q
18523           }
18524           /^X\(\/\).*/{
18525             s//\1/
18526             q
18527           }
18528           s/.*/./; q'`
18529   as_dir="$ac_dir"; as_fn_mkdir_p
18530   ac_builddir=.
18531
18532 case "$ac_dir" in
18533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18534 *)
18535   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18536   # A ".." for each directory in $ac_dir_suffix.
18537   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18538   case $ac_top_builddir_sub in
18539   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18540   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18541   esac ;;
18542 esac
18543 ac_abs_top_builddir=$ac_pwd
18544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18545 # for backward compatibility:
18546 ac_top_builddir=$ac_top_build_prefix
18547
18548 case $srcdir in
18549   .)  # We are building in place.
18550     ac_srcdir=.
18551     ac_top_srcdir=$ac_top_builddir_sub
18552     ac_abs_top_srcdir=$ac_pwd ;;
18553   [\\/]* | ?:[\\/]* )  # Absolute name.
18554     ac_srcdir=$srcdir$ac_dir_suffix;
18555     ac_top_srcdir=$srcdir
18556     ac_abs_top_srcdir=$srcdir ;;
18557   *) # Relative name.
18558     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18559     ac_top_srcdir=$ac_top_build_prefix$srcdir
18560     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18561 esac
18562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18563
18564
18565   case $ac_mode in
18566   :F)
18567   #
18568   # CONFIG_FILE
18569   #
18570
18571   case $INSTALL in
18572   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18573   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18574   esac
18575 _ACEOF
18576
18577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18578 # If the template does not know about datarootdir, expand it.
18579 # FIXME: This hack should be removed a few years after 2.60.
18580 ac_datarootdir_hack=; ac_datarootdir_seen=
18581 ac_sed_dataroot='
18582 /datarootdir/ {
18583   p
18584   q
18585 }
18586 /@datadir@/p
18587 /@docdir@/p
18588 /@infodir@/p
18589 /@localedir@/p
18590 /@mandir@/p'
18591 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18592 *datarootdir*) ac_datarootdir_seen=yes;;
18593 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18594   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18595 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18596 _ACEOF
18597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18598   ac_datarootdir_hack='
18599   s&@datadir@&$datadir&g
18600   s&@docdir@&$docdir&g
18601   s&@infodir@&$infodir&g
18602   s&@localedir@&$localedir&g
18603   s&@mandir@&$mandir&g
18604   s&\\\${datarootdir}&$datarootdir&g' ;;
18605 esac
18606 _ACEOF
18607
18608 # Neutralize VPATH when `$srcdir' = `.'.
18609 # Shell code in configure.ac might set extrasub.
18610 # FIXME: do we really want to maintain this feature?
18611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18612 ac_sed_extra="$ac_vpsub
18613 $extrasub
18614 _ACEOF
18615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18616 :t
18617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18618 s|@configure_input@|$ac_sed_conf_input|;t t
18619 s&@top_builddir@&$ac_top_builddir_sub&;t t
18620 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18621 s&@srcdir@&$ac_srcdir&;t t
18622 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18623 s&@top_srcdir@&$ac_top_srcdir&;t t
18624 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18625 s&@builddir@&$ac_builddir&;t t
18626 s&@abs_builddir@&$ac_abs_builddir&;t t
18627 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18628 s&@INSTALL@&$ac_INSTALL&;t t
18629 $ac_datarootdir_hack
18630 "
18631 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18632 if $ac_cs_awk_getline; then
18633   $AWK -f "$ac_tmp/subs.awk"
18634 else
18635   $AWK -f "$ac_tmp/subs.awk" | $SHELL
18636 fi \
18637   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18638
18639 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18640   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18641   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18642       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18643   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18644 which seems to be undefined.  Please make sure it is defined" >&5
18645 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18646 which seems to be undefined.  Please make sure it is defined" >&2;}
18647
18648   rm -f "$ac_tmp/stdin"
18649   case $ac_file in
18650   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18651   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18652   esac \
18653   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18654  ;;
18655
18656
18657
18658   esac
18659
18660
18661   case $ac_file$ac_mode in
18662     "Makefile":F) sed "$extrasub_build" Makefile |
18663    sed "$extrasub_host" |
18664    sed "$extrasub_target" > mf$$
18665    mv -f mf$$ Makefile ;;
18666
18667   esac
18668 done # for ac_tag
18669
18670
18671 as_fn_exit 0
18672 _ACEOF
18673 ac_clean_files=$ac_clean_files_save
18674
18675 test $ac_write_fail = 0 ||
18676   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18677
18678
18679 # configure is writing to config.log, and then calls config.status.
18680 # config.status does its own redirection, appending to config.log.
18681 # Unfortunately, on DOS this fails, as config.log is still kept open
18682 # by configure, so config.status won't be able to write to it; its
18683 # output is simply discarded.  So we exec the FD to /dev/null,
18684 # effectively closing config.log, so it can be properly (re)opened and
18685 # appended to by config.status.  When coming back to configure, we
18686 # need to make the FD available again.
18687 if test "$no_create" != yes; then
18688   ac_cs_success=:
18689   ac_config_status_args=
18690   test "$silent" = yes &&
18691     ac_config_status_args="$ac_config_status_args --quiet"
18692   exec 5>/dev/null
18693   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18694   exec 5>>config.log
18695   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18696   # would make configure fail if this is the last instruction.
18697   $ac_cs_success || as_fn_exit 1
18698 fi
18699 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18700   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18701 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18702 fi
18703