Support print_cmdline in LSan.
[platform/upstream/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GM2_FOR_TARGET
617 GDC_FOR_TARGET
618 GOC_FOR_TARGET
619 GFORTRAN_FOR_TARGET
620 GCC_FOR_TARGET
621 CXX_FOR_TARGET
622 CC_FOR_TARGET
623 GDCFLAGS
624 READELF
625 OTOOL
626 OBJDUMP
627 OBJCOPY
628 WINDMC
629 WINDRES
630 STRIP
631 RANLIB
632 NM
633 LIPO
634 LD
635 DSYMUTIL
636 DLLTOOL
637 AS
638 AR
639 RUNTEST
640 EXPECT
641 MAKEINFO
642 FLEX
643 LEX
644 M4
645 BISON
646 YACC
647 WINDRES_FOR_BUILD
648 WINDMC_FOR_BUILD
649 RANLIB_FOR_BUILD
650 NM_FOR_BUILD
651 LD_FOR_BUILD
652 LDFLAGS_FOR_BUILD
653 GDC_FOR_BUILD
654 GOC_FOR_BUILD
655 GFORTRAN_FOR_BUILD
656 DSYMUTIL_FOR_BUILD
657 DLLTOOL_FOR_BUILD
658 CXX_FOR_BUILD
659 CXXFLAGS_FOR_BUILD
660 CPPFLAGS_FOR_BUILD
661 CPP_FOR_BUILD
662 CFLAGS_FOR_BUILD
663 CC_FOR_BUILD
664 AS_FOR_BUILD
665 AR_FOR_BUILD
666 target_configdirs
667 configdirs
668 build_configdirs
669 INSTALL_GDB_TK
670 GDB_TK
671 CONFIGURE_GDB_TK
672 build_tooldir
673 tooldir
674 GCC_SHLIB_SUBDIR
675 RPATH_ENVVAR
676 target_configargs
677 host_configargs
678 build_configargs
679 BUILD_CONFIG
680 LDFLAGS_FOR_TARGET
681 CXXFLAGS_FOR_TARGET
682 CFLAGS_FOR_TARGET
683 DEBUG_PREFIX_CFLAGS_FOR_TARGET
684 SYSROOT_CFLAGS_FOR_TARGET
685 get_gcc_base_ver
686 extra_host_zlib_configure_flags
687 extra_host_libiberty_configure_flags
688 stage1_languages
689 host_libs_picflag
690 host_shared
691 extra_linker_plugin_flags
692 extra_linker_plugin_configure_flags
693 islinc
694 isllibs
695 poststage1_ldflags
696 poststage1_libs
697 stage1_ldflags
698 stage1_libs
699 extra_isl_gmp_configure_flags
700 extra_mpc_mpfr_configure_flags
701 extra_mpc_gmp_configure_flags
702 extra_mpfr_configure_flags
703 gmpinc
704 gmplibs
705 PGO_BUILD_LTO_CFLAGS
706 PGO_BUILD_USE_CFLAGS
707 PGO_BUILD_GEN_CFLAGS
708 HAVE_CXX11_FOR_BUILD
709 HAVE_CXX11
710 do_compare
711 GDC
712 GNATMAKE
713 GNATBIND
714 ac_ct_CXX
715 CXXFLAGS
716 CXX
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 target_subdir
725 host_subdir
726 build_subdir
727 build_libsubdir
728 AWK
729 SED
730 LN_S
731 LN
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 target_os
736 target_vendor
737 target_cpu
738 target
739 host_os
740 host_vendor
741 host_cpu
742 host
743 target_noncanonical
744 host_noncanonical
745 build_noncanonical
746 build_os
747 build_vendor
748 build_cpu
749 build
750 TOPLEVEL_CONFIGURE_ARGUMENTS
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL'
789 ac_subst_files='serialization_dependencies
790 host_makefile_frag
791 target_makefile_frag
792 alphaieee_frag
793 ospace_frag'
794 ac_user_opts='
795 enable_option_checking
796 with_build_libsubdir
797 with_system_zlib
798 enable_as_accelerator_for
799 enable_offload_targets
800 enable_offload_defaulted
801 enable_gold
802 enable_ld
803 enable_compressed_debug_sections
804 enable_libquadmath
805 enable_libquadmath_support
806 enable_libada
807 enable_libgm2
808 enable_libssp
809 enable_libstdcxx
810 enable_bootstrap
811 enable_pgo_build
812 with_mpc
813 with_mpc_include
814 with_mpc_lib
815 with_mpfr
816 with_mpfr_include
817 with_mpfr_lib
818 with_gmp
819 with_gmp_include
820 with_gmp_lib
821 with_stage1_libs
822 with_static_standard_libraries
823 with_stage1_ldflags
824 with_boot_libs
825 with_boot_ldflags
826 with_isl
827 with_isl_include
828 with_isl_lib
829 enable_isl_version_check
830 enable_lto
831 enable_linker_plugin_configure_flags
832 enable_linker_plugin_flags
833 enable_host_shared
834 enable_stage1_languages
835 enable_objc_gc
836 with_target_bdw_gc
837 with_target_bdw_gc_include
838 with_target_bdw_gc_lib
839 with_gcc_major_version_only
840 with_build_sysroot
841 with_debug_prefix_map
842 with_build_config
843 enable_vtable_verify
844 enable_serial_configure
845 with_build_time_tools
846 enable_maintainer_mode
847 enable_stage1_checking
848 enable_werror
849 '
850       ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 CC
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
858 CXX
859 CXXFLAGS
860 CCC
861 build_configargs
862 host_configargs
863 target_configargs
864 AR
865 AS
866 DLLTOOL
867 DSYMUTIL
868 LD
869 LIPO
870 NM
871 RANLIB
872 STRIP
873 WINDRES
874 WINDMC
875 OBJCOPY
876 OBJDUMP
877 OTOOL
878 READELF
879 CC_FOR_TARGET
880 CXX_FOR_TARGET
881 GCC_FOR_TARGET
882 GFORTRAN_FOR_TARGET
883 GOC_FOR_TARGET
884 GDC_FOR_TARGET
885 GM2_FOR_TARGET
886 AR_FOR_TARGET
887 AS_FOR_TARGET
888 DLLTOOL_FOR_TARGET
889 DSYMUTIL_FOR_TARGET
890 LD_FOR_TARGET
891 LIPO_FOR_TARGET
892 NM_FOR_TARGET
893 OBJCOPY_FOR_TARGET
894 OBJDUMP_FOR_TARGET
895 OTOOL_FOR_TARGET
896 RANLIB_FOR_TARGET
897 READELF_FOR_TARGET
898 STRIP_FOR_TARGET
899 WINDRES_FOR_TARGET
900 WINDMC_FOR_TARGET'
901
902
903 # Initialize some variables set by options.
904 ac_init_help=
905 ac_init_version=false
906 ac_unrecognized_opts=
907 ac_unrecognized_sep=
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
910 cache_file=/dev/null
911 exec_prefix=NONE
912 no_create=
913 no_recursion=
914 prefix=NONE
915 program_prefix=NONE
916 program_suffix=NONE
917 program_transform_name=s,x,x,
918 silent=
919 site=
920 srcdir=
921 verbose=
922 x_includes=NONE
923 x_libraries=NONE
924
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 includedir='${prefix}/include'
940 oldincludedir='/usr/include'
941 docdir='${datarootdir}/doc/${PACKAGE}'
942 infodir='${datarootdir}/info'
943 htmldir='${docdir}'
944 dvidir='${docdir}'
945 pdfdir='${docdir}'
946 psdir='${docdir}'
947 libdir='${exec_prefix}/lib'
948 localedir='${datarootdir}/locale'
949 mandir='${datarootdir}/man'
950
951 ac_prev=
952 ac_dashdash=
953 for ac_option
954 do
955   # If the previous option needs an argument, assign it.
956   if test -n "$ac_prev"; then
957     eval $ac_prev=\$ac_option
958     ac_prev=
959     continue
960   fi
961
962   case $ac_option in
963   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964   *=)   ac_optarg= ;;
965   *)    ac_optarg=yes ;;
966   esac
967
968   # Accept the important Cygnus configure options, so we can diagnose typos.
969
970   case $ac_dashdash$ac_option in
971   --)
972     ac_dashdash=yes ;;
973
974   -bindir | --bindir | --bindi | --bind | --bin | --bi)
975     ac_prev=bindir ;;
976   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977     bindir=$ac_optarg ;;
978
979   -build | --build | --buil | --bui | --bu)
980     ac_prev=build_alias ;;
981   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982     build_alias=$ac_optarg ;;
983
984   -cache-file | --cache-file | --cache-fil | --cache-fi \
985   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986     ac_prev=cache_file ;;
987   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989     cache_file=$ac_optarg ;;
990
991   --config-cache | -C)
992     cache_file=config.cache ;;
993
994   -datadir | --datadir | --datadi | --datad)
995     ac_prev=datadir ;;
996   -datadir=* | --datadir=* | --datadi=* | --datad=*)
997     datadir=$ac_optarg ;;
998
999   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000   | --dataroo | --dataro | --datar)
1001     ac_prev=datarootdir ;;
1002   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004     datarootdir=$ac_optarg ;;
1005
1006   -disable-* | --disable-*)
1007     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008     # Reject names that are not valid shell variable names.
1009     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010       as_fn_error $? "invalid feature name: $ac_useropt"
1011     ac_useropt_orig=$ac_useropt
1012     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013     case $ac_user_opts in
1014       *"
1015 "enable_$ac_useropt"
1016 "*) ;;
1017       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018          ac_unrecognized_sep=', ';;
1019     esac
1020     eval enable_$ac_useropt=no ;;
1021
1022   -docdir | --docdir | --docdi | --doc | --do)
1023     ac_prev=docdir ;;
1024   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025     docdir=$ac_optarg ;;
1026
1027   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028     ac_prev=dvidir ;;
1029   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030     dvidir=$ac_optarg ;;
1031
1032   -enable-* | --enable-*)
1033     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034     # Reject names that are not valid shell variable names.
1035     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036       as_fn_error $? "invalid feature name: $ac_useropt"
1037     ac_useropt_orig=$ac_useropt
1038     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039     case $ac_user_opts in
1040       *"
1041 "enable_$ac_useropt"
1042 "*) ;;
1043       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044          ac_unrecognized_sep=', ';;
1045     esac
1046     eval enable_$ac_useropt=\$ac_optarg ;;
1047
1048   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050   | --exec | --exe | --ex)
1051     ac_prev=exec_prefix ;;
1052   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054   | --exec=* | --exe=* | --ex=*)
1055     exec_prefix=$ac_optarg ;;
1056
1057   -gas | --gas | --ga | --g)
1058     # Obsolete; use --with-gas.
1059     with_gas=yes ;;
1060
1061   -help | --help | --hel | --he | -h)
1062     ac_init_help=long ;;
1063   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064     ac_init_help=recursive ;;
1065   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066     ac_init_help=short ;;
1067
1068   -host | --host | --hos | --ho)
1069     ac_prev=host_alias ;;
1070   -host=* | --host=* | --hos=* | --ho=*)
1071     host_alias=$ac_optarg ;;
1072
1073   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074     ac_prev=htmldir ;;
1075   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076   | --ht=*)
1077     htmldir=$ac_optarg ;;
1078
1079   -includedir | --includedir | --includedi | --included | --include \
1080   | --includ | --inclu | --incl | --inc)
1081     ac_prev=includedir ;;
1082   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083   | --includ=* | --inclu=* | --incl=* | --inc=*)
1084     includedir=$ac_optarg ;;
1085
1086   -infodir | --infodir | --infodi | --infod | --info | --inf)
1087     ac_prev=infodir ;;
1088   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1089     infodir=$ac_optarg ;;
1090
1091   -libdir | --libdir | --libdi | --libd)
1092     ac_prev=libdir ;;
1093   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1094     libdir=$ac_optarg ;;
1095
1096   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097   | --libexe | --libex | --libe)
1098     ac_prev=libexecdir ;;
1099   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100   | --libexe=* | --libex=* | --libe=*)
1101     libexecdir=$ac_optarg ;;
1102
1103   -localedir | --localedir | --localedi | --localed | --locale)
1104     ac_prev=localedir ;;
1105   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106     localedir=$ac_optarg ;;
1107
1108   -localstatedir | --localstatedir | --localstatedi | --localstated \
1109   | --localstate | --localstat | --localsta | --localst | --locals)
1110     ac_prev=localstatedir ;;
1111   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1112   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1113     localstatedir=$ac_optarg ;;
1114
1115   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116     ac_prev=mandir ;;
1117   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1118     mandir=$ac_optarg ;;
1119
1120   -nfp | --nfp | --nf)
1121     # Obsolete; use --without-fp.
1122     with_fp=no ;;
1123
1124   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1125   | --no-cr | --no-c | -n)
1126     no_create=yes ;;
1127
1128   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130     no_recursion=yes ;;
1131
1132   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134   | --oldin | --oldi | --old | --ol | --o)
1135     ac_prev=oldincludedir ;;
1136   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1139     oldincludedir=$ac_optarg ;;
1140
1141   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142     ac_prev=prefix ;;
1143   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1144     prefix=$ac_optarg ;;
1145
1146   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147   | --program-pre | --program-pr | --program-p)
1148     ac_prev=program_prefix ;;
1149   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1151     program_prefix=$ac_optarg ;;
1152
1153   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154   | --program-suf | --program-su | --program-s)
1155     ac_prev=program_suffix ;;
1156   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1158     program_suffix=$ac_optarg ;;
1159
1160   -program-transform-name | --program-transform-name \
1161   | --program-transform-nam | --program-transform-na \
1162   | --program-transform-n | --program-transform- \
1163   | --program-transform | --program-transfor \
1164   | --program-transfo | --program-transf \
1165   | --program-trans | --program-tran \
1166   | --progr-tra | --program-tr | --program-t)
1167     ac_prev=program_transform_name ;;
1168   -program-transform-name=* | --program-transform-name=* \
1169   | --program-transform-nam=* | --program-transform-na=* \
1170   | --program-transform-n=* | --program-transform-=* \
1171   | --program-transform=* | --program-transfor=* \
1172   | --program-transfo=* | --program-transf=* \
1173   | --program-trans=* | --program-tran=* \
1174   | --progr-tra=* | --program-tr=* | --program-t=*)
1175     program_transform_name=$ac_optarg ;;
1176
1177   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178     ac_prev=pdfdir ;;
1179   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180     pdfdir=$ac_optarg ;;
1181
1182   -psdir | --psdir | --psdi | --psd | --ps)
1183     ac_prev=psdir ;;
1184   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185     psdir=$ac_optarg ;;
1186
1187   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188   | -silent | --silent | --silen | --sile | --sil)
1189     silent=yes ;;
1190
1191   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192     ac_prev=sbindir ;;
1193   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194   | --sbi=* | --sb=*)
1195     sbindir=$ac_optarg ;;
1196
1197   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199   | --sharedst | --shareds | --shared | --share | --shar \
1200   | --sha | --sh)
1201     ac_prev=sharedstatedir ;;
1202   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205   | --sha=* | --sh=*)
1206     sharedstatedir=$ac_optarg ;;
1207
1208   -site | --site | --sit)
1209     ac_prev=site ;;
1210   -site=* | --site=* | --sit=*)
1211     site=$ac_optarg ;;
1212
1213   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214     ac_prev=srcdir ;;
1215   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1216     srcdir=$ac_optarg ;;
1217
1218   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219   | --syscon | --sysco | --sysc | --sys | --sy)
1220     ac_prev=sysconfdir ;;
1221   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1223     sysconfdir=$ac_optarg ;;
1224
1225   -target | --target | --targe | --targ | --tar | --ta | --t)
1226     ac_prev=target_alias ;;
1227   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1228     target_alias=$ac_optarg ;;
1229
1230   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231     verbose=yes ;;
1232
1233   -version | --version | --versio | --versi | --vers | -V)
1234     ac_init_version=: ;;
1235
1236   -with-* | --with-*)
1237     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238     # Reject names that are not valid shell variable names.
1239     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240       as_fn_error $? "invalid package name: $ac_useropt"
1241     ac_useropt_orig=$ac_useropt
1242     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243     case $ac_user_opts in
1244       *"
1245 "with_$ac_useropt"
1246 "*) ;;
1247       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248          ac_unrecognized_sep=', ';;
1249     esac
1250     eval with_$ac_useropt=\$ac_optarg ;;
1251
1252   -without-* | --without-*)
1253     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1254     # Reject names that are not valid shell variable names.
1255     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256       as_fn_error $? "invalid package name: $ac_useropt"
1257     ac_useropt_orig=$ac_useropt
1258     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259     case $ac_user_opts in
1260       *"
1261 "with_$ac_useropt"
1262 "*) ;;
1263       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264          ac_unrecognized_sep=', ';;
1265     esac
1266     eval with_$ac_useropt=no ;;
1267
1268   --x)
1269     # Obsolete; use --with-x.
1270     with_x=yes ;;
1271
1272   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273   | --x-incl | --x-inc | --x-in | --x-i)
1274     ac_prev=x_includes ;;
1275   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277     x_includes=$ac_optarg ;;
1278
1279   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281     ac_prev=x_libraries ;;
1282   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284     x_libraries=$ac_optarg ;;
1285
1286   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1287 Try \`$0 --help' for more information"
1288     ;;
1289
1290   *=*)
1291     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292     # Reject names that are not valid shell variable names.
1293     case $ac_envvar in #(
1294       '' | [0-9]* | *[!_$as_cr_alnum]* )
1295       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1296     esac
1297     eval $ac_envvar=\$ac_optarg
1298     export $ac_envvar ;;
1299
1300   *)
1301     # FIXME: should be removed in autoconf 3.0.
1302     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1306     ;;
1307
1308   esac
1309 done
1310
1311 if test -n "$ac_prev"; then
1312   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313   as_fn_error $? "missing argument to $ac_option"
1314 fi
1315
1316 if test -n "$ac_unrecognized_opts"; then
1317   case $enable_option_checking in
1318     no) ;;
1319     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1320     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1321   esac
1322 fi
1323
1324 # Check all directory arguments for consistency.
1325 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326                 datadir sysconfdir sharedstatedir localstatedir includedir \
1327                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328                 libdir localedir mandir
1329 do
1330   eval ac_val=\$$ac_var
1331   # Remove trailing slashes.
1332   case $ac_val in
1333     */ )
1334       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335       eval $ac_var=\$ac_val;;
1336   esac
1337   # Be sure to have absolute directory names.
1338   case $ac_val in
1339     [\\/$]* | ?:[\\/]* )  continue;;
1340     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341   esac
1342   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1343 done
1344
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1348 build=$build_alias
1349 host=$host_alias
1350 target=$target_alias
1351
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x; then
1354   if test "x$build_alias" = x; then
1355     cross_compiling=maybe
1356   elif test "x$build_alias" != "x$host_alias"; then
1357     cross_compiling=yes
1358   fi
1359 fi
1360
1361 ac_tool_prefix=
1362 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
1364 test "$silent" = yes && exec 6>/dev/null
1365
1366
1367 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368 ac_ls_di=`ls -di .` &&
1369 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370   as_fn_error $? "working directory cannot be determined"
1371 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372   as_fn_error $? "pwd does not report name of working directory"
1373
1374
1375 # Find the source files, if location was not specified.
1376 if test -z "$srcdir"; then
1377   ac_srcdir_defaulted=yes
1378   # Try the directory containing this script, then the parent directory.
1379   ac_confdir=`$as_dirname -- "$as_myself" ||
1380 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381          X"$as_myself" : 'X\(//\)[^/]' \| \
1382          X"$as_myself" : 'X\(//\)$' \| \
1383          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384 $as_echo X"$as_myself" |
1385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386             s//\1/
1387             q
1388           }
1389           /^X\(\/\/\)[^/].*/{
1390             s//\1/
1391             q
1392           }
1393           /^X\(\/\/\)$/{
1394             s//\1/
1395             q
1396           }
1397           /^X\(\/\).*/{
1398             s//\1/
1399             q
1400           }
1401           s/.*/./; q'`
1402   srcdir=$ac_confdir
1403   if test ! -r "$srcdir/$ac_unique_file"; then
1404     srcdir=..
1405   fi
1406 else
1407   ac_srcdir_defaulted=no
1408 fi
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1412 fi
1413 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414 ac_abs_confdir=`(
1415         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1416         pwd)`
1417 # When building in place, set srcdir=.
1418 if test "$ac_abs_confdir" = "$ac_pwd"; then
1419   srcdir=.
1420 fi
1421 # Remove unnecessary trailing slashes from srcdir.
1422 # Double slashes in file names in object file debugging info
1423 # mess up M-x gdb in Emacs.
1424 case $srcdir in
1425 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426 esac
1427 case $srcdir in
1428   *" "*)
1429     as_fn_error $? "path to source, $srcdir, contains spaces"
1430     ;;
1431 esac
1432 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1433
1434 for ac_var in $ac_precious_vars; do
1435   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436   eval ac_env_${ac_var}_value=\$${ac_var}
1437   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439 done
1440
1441 #
1442 # Report the --help message.
1443 #
1444 if test "$ac_init_help" = "long"; then
1445   # Omit some internal or obsolete options to make the list less imposing.
1446   # This message is too long to be a string in the A/UX 3.1 sh.
1447   cat <<_ACEOF
1448 \`configure' configures this package to adapt to many kinds of systems.
1449
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1451
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE.  See below for descriptions of some of the useful variables.
1454
1455 Defaults for the options are specified in brackets.
1456
1457 Configuration:
1458   -h, --help              display this help and exit
1459       --help=short        display options specific to this package
1460       --help=recursive    display the short help of all the included packages
1461   -V, --version           display version information and exit
1462   -q, --quiet, --silent   do not print \`checking ...' messages
1463       --cache-file=FILE   cache test results in FILE [disabled]
1464   -C, --config-cache      alias for \`--cache-file=config.cache'
1465   -n, --no-create         do not create output files
1466       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1467
1468 Installation directories:
1469   --prefix=PREFIX         install architecture-independent files in PREFIX
1470                           [$ac_default_prefix]
1471   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1472                           [PREFIX]
1473
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1478
1479 For better control, use the options below.
1480
1481 Fine tuning of the installation directories:
1482   --bindir=DIR            user executables [EPREFIX/bin]
1483   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1484   --libexecdir=DIR        program executables [EPREFIX/libexec]
1485   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1486   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1487   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1488   --libdir=DIR            object code libraries [EPREFIX/lib]
1489   --includedir=DIR        C header files [PREFIX/include]
1490   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1491   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1492   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1493   --infodir=DIR           info documentation [DATAROOTDIR/info]
1494   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1495   --mandir=DIR            man documentation [DATAROOTDIR/man]
1496   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1497   --htmldir=DIR           html documentation [DOCDIR]
1498   --dvidir=DIR            dvi documentation [DOCDIR]
1499   --pdfdir=DIR            pdf documentation [DOCDIR]
1500   --psdir=DIR             ps documentation [DOCDIR]
1501 _ACEOF
1502
1503   cat <<\_ACEOF
1504
1505 Program names:
1506   --program-prefix=PREFIX            prepend PREFIX to installed program names
1507   --program-suffix=SUFFIX            append SUFFIX to installed program names
1508   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1509
1510 System types:
1511   --build=BUILD     configure for building on BUILD [guessed]
1512   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1513   --target=TARGET   configure for building compilers for TARGET [HOST]
1514 _ACEOF
1515 fi
1516
1517 if test -n "$ac_init_help"; then
1518
1519   cat <<\_ACEOF
1520
1521 Optional Features:
1522   --disable-option-checking  ignore unrecognized --enable/--with options
1523   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1524   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1525   --enable-as-accelerator-for=ARG
1526                           build as offload target compiler. Specify offload
1527                           host triple by ARG
1528   --enable-offload-targets=LIST
1529                           enable offloading to devices from comma-separated
1530                           LIST of TARGET[=DIR]. Use optional path to find
1531                           offload target compiler during the build
1532   --enable-offload-defaulted
1533                 If enabled, configured but not installed offload compilers and
1534                 libgomp plugins are silently ignored.  Useful for distribution
1535                 compilers where those are in separate optional packages.
1536
1537   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1538   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1539   --enable-compressed-debug-sections={all,gas,gold,ld,none}
1540                           Enable compressed debug sections for gas, gold or ld
1541                           by default
1542   --disable-libquadmath   do not build libquadmath directory
1543   --disable-libquadmath-support
1544                           disable libquadmath support for Fortran
1545   --enable-libada         build libada directory
1546   --enable-libgm2         build libgm2 directory
1547   --enable-libssp         build libssp directory
1548   --disable-libstdcxx     do not build libstdc++-v3 directory
1549   --enable-bootstrap      enable bootstrapping [yes if native build]
1550   --enable-pgo-build[=lto]
1551                           enable the PGO build
1552   --disable-isl-version-check
1553                           disable check for isl version
1554   --enable-lto            enable link time optimization support
1555   --enable-linker-plugin-configure-flags=FLAGS
1556                           additional flags for configuring linker plugins
1557                           [none]
1558   --enable-linker-plugin-flags=FLAGS
1559                           additional flags for configuring and building linker
1560                           plugins [none]
1561   --enable-host-shared    build host code as shared libraries
1562   --enable-stage1-languages[=all]
1563                           choose additional languages to build during stage1.
1564                           Mostly useful for compiler development
1565   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1566                           Objective-C runtime
1567   --enable-vtable-verify  Enable vtable verification feature
1568   --enable-serial-[{host,target,build}-]configure
1569                           force sequential configuration of sub-packages for
1570                           the host, target or build machine, or all
1571                           sub-packages
1572   --enable-maintainer-mode
1573                           enable make rules and dependencies not useful (and
1574                           sometimes confusing) to the casual installer
1575   --enable-stage1-checking[=all]
1576                           choose additional checking for stage1 of the
1577                           compiler
1578   --enable-werror         enable -Werror in bootstrap stage2 and later
1579
1580 Optional Packages:
1581   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1582   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1583   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1584   --with-system-zlib      use installed libz
1585   --with-mpc=PATH         specify prefix directory for installed MPC package.
1586                           Equivalent to --with-mpc-include=PATH/include plus
1587                           --with-mpc-lib=PATH/lib
1588   --with-mpc-include=PATH specify directory for installed MPC include files
1589   --with-mpc-lib=PATH     specify directory for the installed MPC library
1590   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1591                           Equivalent to --with-mpfr-include=PATH/include plus
1592                           --with-mpfr-lib=PATH/lib
1593   --with-mpfr-include=PATH
1594                           specify directory for installed MPFR include files
1595   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1596   --with-gmp=PATH         specify prefix directory for the installed GMP
1597                           package. Equivalent to
1598                           --with-gmp-include=PATH/include plus
1599                           --with-gmp-lib=PATH/lib
1600   --with-gmp-include=PATH specify directory for installed GMP include files
1601   --with-gmp-lib=PATH     specify directory for the installed GMP library
1602   --with-stage1-libs=LIBS libraries for stage1
1603   --with-static-standard-libraries
1604                           use -static-libstdc++ and -static-libgcc
1605                           (default=auto)
1606   --with-stage1-ldflags=FLAGS
1607                           linker flags for stage1
1608   --with-boot-libs=LIBS   libraries for stage2 and later
1609   --with-boot-ldflags=FLAGS
1610                           linker flags for stage2 and later
1611   --with-isl=PATH         Specify prefix directory for the installed isl
1612                           package. Equivalent to
1613                           --with-isl-include=PATH/include plus
1614                           --with-isl-lib=PATH/lib
1615   --with-isl-include=PATH Specify directory for installed isl include files
1616   --with-isl-lib=PATH     Specify the directory for the installed isl library
1617   --with-target-bdw-gc=PATHLIST
1618                           specify prefix directory for installed bdw-gc
1619                           package. Equivalent to
1620                           --with-target-bdw-gc-include=PATH/include plus
1621                           --with-target-bdw-gc-lib=PATH/lib
1622   --with-target-bdw-gc-include=PATHLIST
1623                           specify directories for installed bdw-gc include
1624                           files
1625   --with-target-bdw-gc-lib=PATHLIST
1626                           specify directories for installed bdw-gc library
1627   --with-gcc-major-version-only
1628                           use only GCC major number in filesystem paths
1629   --with-build-sysroot=SYSROOT
1630                           use sysroot as the system root during the build
1631   --with-debug-prefix-map='A=B C=D ...'
1632                           map A to B, C to D ... in debug information
1633   --with-build-config='NAME NAME2...'
1634                           use config/NAME.mk build configuration
1635   --with-build-time-tools=PATH
1636                           use given path to find target tools during the build
1637
1638 Some influential environment variables:
1639   CC          C compiler command
1640   CFLAGS      C compiler flags
1641   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1642               nonstandard directory <lib dir>
1643   LIBS        libraries to pass to the linker, e.g. -l<library>
1644   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1645               you have headers in a nonstandard directory <include dir>
1646   CXX         C++ compiler command
1647   CXXFLAGS    C++ compiler flags
1648   build_configargs
1649               additional configure arguments for build directories
1650   host_configargs
1651               additional configure arguments for host directories
1652   target_configargs
1653               additional configure arguments for target directories
1654   AR          AR for the host
1655   AS          AS for the host
1656   DLLTOOL     DLLTOOL for the host
1657   DSYMUTIL    DSYMUTIL for the host
1658   LD          LD for the host
1659   LIPO        LIPO for the host
1660   NM          NM for the host
1661   RANLIB      RANLIB for the host
1662   STRIP       STRIP for the host
1663   WINDRES     WINDRES for the host
1664   WINDMC      WINDMC for the host
1665   OBJCOPY     OBJCOPY for the host
1666   OBJDUMP     OBJDUMP for the host
1667   OTOOL       OTOOL for the host
1668   READELF     READELF for the host
1669   CC_FOR_TARGET
1670               CC for the target
1671   CXX_FOR_TARGET
1672               CXX for the target
1673   GCC_FOR_TARGET
1674               GCC for the target
1675   GFORTRAN_FOR_TARGET
1676               GFORTRAN for the target
1677   GOC_FOR_TARGET
1678               GOC for the target
1679   GDC_FOR_TARGET
1680               GDC for the target
1681   GM2_FOR_TARGET
1682               GM2 for the target
1683   AR_FOR_TARGET
1684               AR for the target
1685   AS_FOR_TARGET
1686               AS for the target
1687   DLLTOOL_FOR_TARGET
1688               DLLTOOL for the target
1689   DSYMUTIL_FOR_TARGET
1690               DSYMUTIL for the target
1691   LD_FOR_TARGET
1692               LD for the target
1693   LIPO_FOR_TARGET
1694               LIPO for the target
1695   NM_FOR_TARGET
1696               NM for the target
1697   OBJCOPY_FOR_TARGET
1698               OBJCOPY for the target
1699   OBJDUMP_FOR_TARGET
1700               OBJDUMP for the target
1701   OTOOL_FOR_TARGET
1702               OTOOL for the target
1703   RANLIB_FOR_TARGET
1704               RANLIB for the target
1705   READELF_FOR_TARGET
1706               READELF for the target
1707   STRIP_FOR_TARGET
1708               STRIP for the target
1709   WINDRES_FOR_TARGET
1710               WINDRES for the target
1711   WINDMC_FOR_TARGET
1712               WINDMC for the target
1713
1714 Use these variables to override the choices made by `configure' or to help
1715 it to find libraries and programs with nonstandard names/locations.
1716
1717 Report bugs to the package provider.
1718 _ACEOF
1719 ac_status=$?
1720 fi
1721
1722 if test "$ac_init_help" = "recursive"; then
1723   # If there are subdirs, report their specific --help.
1724   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1725     test -d "$ac_dir" ||
1726       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1727       continue
1728     ac_builddir=.
1729
1730 case "$ac_dir" in
1731 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732 *)
1733   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1734   # A ".." for each directory in $ac_dir_suffix.
1735   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1736   case $ac_top_builddir_sub in
1737   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1738   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1739   esac ;;
1740 esac
1741 ac_abs_top_builddir=$ac_pwd
1742 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1743 # for backward compatibility:
1744 ac_top_builddir=$ac_top_build_prefix
1745
1746 case $srcdir in
1747   .)  # We are building in place.
1748     ac_srcdir=.
1749     ac_top_srcdir=$ac_top_builddir_sub
1750     ac_abs_top_srcdir=$ac_pwd ;;
1751   [\\/]* | ?:[\\/]* )  # Absolute name.
1752     ac_srcdir=$srcdir$ac_dir_suffix;
1753     ac_top_srcdir=$srcdir
1754     ac_abs_top_srcdir=$srcdir ;;
1755   *) # Relative name.
1756     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1757     ac_top_srcdir=$ac_top_build_prefix$srcdir
1758     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1759 esac
1760 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1761
1762     cd "$ac_dir" || { ac_status=$?; continue; }
1763     # Check for guested configure.
1764     if test -f "$ac_srcdir/configure.gnu"; then
1765       echo &&
1766       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1767     elif test -f "$ac_srcdir/configure"; then
1768       echo &&
1769       $SHELL "$ac_srcdir/configure" --help=recursive
1770     else
1771       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1772     fi || ac_status=$?
1773     cd "$ac_pwd" || { ac_status=$?; break; }
1774   done
1775 fi
1776
1777 test -n "$ac_init_help" && exit $ac_status
1778 if $ac_init_version; then
1779   cat <<\_ACEOF
1780 configure
1781 generated by GNU Autoconf 2.69
1782
1783 Copyright (C) 2012 Free Software Foundation, Inc.
1784 This configure script is free software; the Free Software Foundation
1785 gives unlimited permission to copy, distribute and modify it.
1786 _ACEOF
1787   exit
1788 fi
1789
1790 ## ------------------------ ##
1791 ## Autoconf initialization. ##
1792 ## ------------------------ ##
1793
1794 # ac_fn_c_try_compile LINENO
1795 # --------------------------
1796 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_c_try_compile ()
1798 {
1799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800   rm -f conftest.$ac_objext
1801   if { { ac_try="$ac_compile"
1802 case "(($ac_try" in
1803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804   *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808   (eval "$ac_compile") 2>conftest.err
1809   ac_status=$?
1810   if test -s conftest.err; then
1811     grep -v '^ *+' conftest.err >conftest.er1
1812     cat conftest.er1 >&5
1813     mv -f conftest.er1 conftest.err
1814   fi
1815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816   test $ac_status = 0; } && {
1817          test -z "$ac_c_werror_flag" ||
1818          test ! -s conftest.err
1819        } && test -s conftest.$ac_objext; then :
1820   ac_retval=0
1821 else
1822   $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825         ac_retval=1
1826 fi
1827   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828   as_fn_set_status $ac_retval
1829
1830 } # ac_fn_c_try_compile
1831
1832 # ac_fn_cxx_try_compile LINENO
1833 # ----------------------------
1834 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_cxx_try_compile ()
1836 {
1837   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838   rm -f conftest.$ac_objext
1839   if { { ac_try="$ac_compile"
1840 case "(($ac_try" in
1841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842   *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846   (eval "$ac_compile") 2>conftest.err
1847   ac_status=$?
1848   if test -s conftest.err; then
1849     grep -v '^ *+' conftest.err >conftest.er1
1850     cat conftest.er1 >&5
1851     mv -f conftest.er1 conftest.err
1852   fi
1853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854   test $ac_status = 0; } && {
1855          test -z "$ac_cxx_werror_flag" ||
1856          test ! -s conftest.err
1857        } && test -s conftest.$ac_objext; then :
1858   ac_retval=0
1859 else
1860   $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863         ac_retval=1
1864 fi
1865   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866   as_fn_set_status $ac_retval
1867
1868 } # ac_fn_cxx_try_compile
1869
1870 # ac_fn_cxx_try_link LINENO
1871 # -------------------------
1872 # Try to link conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_cxx_try_link ()
1874 {
1875   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876   rm -f conftest.$ac_objext conftest$ac_exeext
1877   if { { ac_try="$ac_link"
1878 case "(($ac_try" in
1879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880   *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884   (eval "$ac_link") 2>conftest.err
1885   ac_status=$?
1886   if test -s conftest.err; then
1887     grep -v '^ *+' conftest.err >conftest.er1
1888     cat conftest.er1 >&5
1889     mv -f conftest.er1 conftest.err
1890   fi
1891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892   test $ac_status = 0; } && {
1893          test -z "$ac_cxx_werror_flag" ||
1894          test ! -s conftest.err
1895        } && test -s conftest$ac_exeext && {
1896          test "$cross_compiling" = yes ||
1897          test -x conftest$ac_exeext
1898        }; then :
1899   ac_retval=0
1900 else
1901   $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1903
1904         ac_retval=1
1905 fi
1906   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908   # interfere with the next link command; also delete a directory that is
1909   # left behind by Apple's compiler.  We do this before executing the actions.
1910   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912   as_fn_set_status $ac_retval
1913
1914 } # ac_fn_cxx_try_link
1915
1916 # ac_fn_c_try_link LINENO
1917 # -----------------------
1918 # Try to link conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_c_try_link ()
1920 {
1921   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922   rm -f conftest.$ac_objext conftest$ac_exeext
1923   if { { ac_try="$ac_link"
1924 case "(($ac_try" in
1925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926   *) ac_try_echo=$ac_try;;
1927 esac
1928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929 $as_echo "$ac_try_echo"; } >&5
1930   (eval "$ac_link") 2>conftest.err
1931   ac_status=$?
1932   if test -s conftest.err; then
1933     grep -v '^ *+' conftest.err >conftest.er1
1934     cat conftest.er1 >&5
1935     mv -f conftest.er1 conftest.err
1936   fi
1937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938   test $ac_status = 0; } && {
1939          test -z "$ac_c_werror_flag" ||
1940          test ! -s conftest.err
1941        } && test -s conftest$ac_exeext && {
1942          test "$cross_compiling" = yes ||
1943          test -x conftest$ac_exeext
1944        }; then :
1945   ac_retval=0
1946 else
1947   $as_echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949
1950         ac_retval=1
1951 fi
1952   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1953   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1954   # interfere with the next link command; also delete a directory that is
1955   # left behind by Apple's compiler.  We do this before executing the actions.
1956   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958   as_fn_set_status $ac_retval
1959
1960 } # ac_fn_c_try_link
1961 cat >config.log <<_ACEOF
1962 This file contains any messages produced by compilers while
1963 running configure, to aid debugging if configure makes a mistake.
1964
1965 It was created by $as_me, which was
1966 generated by GNU Autoconf 2.69.  Invocation command line was
1967
1968   $ $0 $@
1969
1970 _ACEOF
1971 exec 5>>config.log
1972 {
1973 cat <<_ASUNAME
1974 ## --------- ##
1975 ## Platform. ##
1976 ## --------- ##
1977
1978 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1979 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1980 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1981 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1982 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1983
1984 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1985 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1986
1987 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1988 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1989 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1990 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1991 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1992 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1993 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1994
1995 _ASUNAME
1996
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
1999 do
2000   IFS=$as_save_IFS
2001   test -z "$as_dir" && as_dir=.
2002     $as_echo "PATH: $as_dir"
2003   done
2004 IFS=$as_save_IFS
2005
2006 } >&5
2007
2008 cat >&5 <<_ACEOF
2009
2010
2011 ## ----------- ##
2012 ## Core tests. ##
2013 ## ----------- ##
2014
2015 _ACEOF
2016
2017
2018 # Keep a trace of the command line.
2019 # Strip out --no-create and --no-recursion so they do not pile up.
2020 # Strip out --silent because we don't want to record it for future runs.
2021 # Also quote any args containing shell meta-characters.
2022 # Make two passes to allow for proper duplicate-argument suppression.
2023 ac_configure_args=
2024 ac_configure_args0=
2025 ac_configure_args1=
2026 ac_must_keep_next=false
2027 for ac_pass in 1 2
2028 do
2029   for ac_arg
2030   do
2031     case $ac_arg in
2032     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2033     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2034     | -silent | --silent | --silen | --sile | --sil)
2035       continue ;;
2036     *\'*)
2037       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2038     esac
2039     case $ac_pass in
2040     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2041     2)
2042       as_fn_append ac_configure_args1 " '$ac_arg'"
2043       if test $ac_must_keep_next = true; then
2044         ac_must_keep_next=false # Got value, back to normal.
2045       else
2046         case $ac_arg in
2047           *=* | --config-cache | -C | -disable-* | --disable-* \
2048           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2049           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2050           | -with-* | --with-* | -without-* | --without-* | --x)
2051             case "$ac_configure_args0 " in
2052               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2053             esac
2054             ;;
2055           -* ) ac_must_keep_next=true ;;
2056         esac
2057       fi
2058       as_fn_append ac_configure_args " '$ac_arg'"
2059       ;;
2060     esac
2061   done
2062 done
2063 { ac_configure_args0=; unset ac_configure_args0;}
2064 { ac_configure_args1=; unset ac_configure_args1;}
2065
2066 # When interrupted or exit'd, cleanup temporary files, and complete
2067 # config.log.  We remove comments because anyway the quotes in there
2068 # would cause problems or look ugly.
2069 # WARNING: Use '\'' to represent an apostrophe within the trap.
2070 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2071 trap 'exit_status=$?
2072   # Save into config.log some information that might help in debugging.
2073   {
2074     echo
2075
2076     $as_echo "## ---------------- ##
2077 ## Cache variables. ##
2078 ## ---------------- ##"
2079     echo
2080     # The following way of writing the cache mishandles newlines in values,
2081 (
2082   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2083     eval ac_val=\$$ac_var
2084     case $ac_val in #(
2085     *${as_nl}*)
2086       case $ac_var in #(
2087       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2088 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2089       esac
2090       case $ac_var in #(
2091       _ | IFS | as_nl) ;; #(
2092       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2093       *) { eval $ac_var=; unset $ac_var;} ;;
2094       esac ;;
2095     esac
2096   done
2097   (set) 2>&1 |
2098     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2099     *${as_nl}ac_space=\ *)
2100       sed -n \
2101         "s/'\''/'\''\\\\'\'''\''/g;
2102           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2103       ;; #(
2104     *)
2105       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2106       ;;
2107     esac |
2108     sort
2109 )
2110     echo
2111
2112     $as_echo "## ----------------- ##
2113 ## Output variables. ##
2114 ## ----------------- ##"
2115     echo
2116     for ac_var in $ac_subst_vars
2117     do
2118       eval ac_val=\$$ac_var
2119       case $ac_val in
2120       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2121       esac
2122       $as_echo "$ac_var='\''$ac_val'\''"
2123     done | sort
2124     echo
2125
2126     if test -n "$ac_subst_files"; then
2127       $as_echo "## ------------------- ##
2128 ## File substitutions. ##
2129 ## ------------------- ##"
2130       echo
2131       for ac_var in $ac_subst_files
2132       do
2133         eval ac_val=\$$ac_var
2134         case $ac_val in
2135         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2136         esac
2137         $as_echo "$ac_var='\''$ac_val'\''"
2138       done | sort
2139       echo
2140     fi
2141
2142     if test -s confdefs.h; then
2143       $as_echo "## ----------- ##
2144 ## confdefs.h. ##
2145 ## ----------- ##"
2146       echo
2147       cat confdefs.h
2148       echo
2149     fi
2150     test "$ac_signal" != 0 &&
2151       $as_echo "$as_me: caught signal $ac_signal"
2152     $as_echo "$as_me: exit $exit_status"
2153   } >&5
2154   rm -f core *.core core.conftest.* &&
2155     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2156     exit $exit_status
2157 ' 0
2158 for ac_signal in 1 2 13 15; do
2159   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2160 done
2161 ac_signal=0
2162
2163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2164 rm -f -r conftest* confdefs.h
2165
2166 $as_echo "/* confdefs.h */" > confdefs.h
2167
2168 # Predefined preprocessor variables.
2169
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_NAME "$PACKAGE_NAME"
2172 _ACEOF
2173
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2176 _ACEOF
2177
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2180 _ACEOF
2181
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_STRING "$PACKAGE_STRING"
2184 _ACEOF
2185
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2188 _ACEOF
2189
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_URL "$PACKAGE_URL"
2192 _ACEOF
2193
2194
2195 # Let the site file select an alternate cache file if it wants to.
2196 # Prefer an explicitly selected file to automatically selected ones.
2197 ac_site_file1=NONE
2198 ac_site_file2=NONE
2199 if test -n "$CONFIG_SITE"; then
2200   # We do not want a PATH search for config.site.
2201   case $CONFIG_SITE in #((
2202     -*)  ac_site_file1=./$CONFIG_SITE;;
2203     */*) ac_site_file1=$CONFIG_SITE;;
2204     *)   ac_site_file1=./$CONFIG_SITE;;
2205   esac
2206 elif test "x$prefix" != xNONE; then
2207   ac_site_file1=$prefix/share/config.site
2208   ac_site_file2=$prefix/etc/config.site
2209 else
2210   ac_site_file1=$ac_default_prefix/share/config.site
2211   ac_site_file2=$ac_default_prefix/etc/config.site
2212 fi
2213 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2214 do
2215   test "x$ac_site_file" = xNONE && continue
2216   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2217     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2218 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2219     sed 's/^/| /' "$ac_site_file" >&5
2220     . "$ac_site_file" \
2221       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2223 as_fn_error $? "failed to load site script $ac_site_file
2224 See \`config.log' for more details" "$LINENO" 5; }
2225   fi
2226 done
2227
2228 if test -r "$cache_file"; then
2229   # Some versions of bash will fail to source /dev/null (special files
2230   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2231   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2232     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2233 $as_echo "$as_me: loading cache $cache_file" >&6;}
2234     case $cache_file in
2235       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2236       *)                      . "./$cache_file";;
2237     esac
2238   fi
2239 else
2240   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2241 $as_echo "$as_me: creating cache $cache_file" >&6;}
2242   >$cache_file
2243 fi
2244
2245 # Check that the precious variables saved in the cache have kept the same
2246 # value.
2247 ac_cache_corrupted=false
2248 for ac_var in $ac_precious_vars; do
2249   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2250   eval ac_new_set=\$ac_env_${ac_var}_set
2251   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2252   eval ac_new_val=\$ac_env_${ac_var}_value
2253   case $ac_old_set,$ac_new_set in
2254     set,)
2255       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2256 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2257       ac_cache_corrupted=: ;;
2258     ,set)
2259       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2260 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2261       ac_cache_corrupted=: ;;
2262     ,);;
2263     *)
2264       if test "x$ac_old_val" != "x$ac_new_val"; then
2265         # differences in whitespace do not lead to failure.
2266         ac_old_val_w=`echo x $ac_old_val`
2267         ac_new_val_w=`echo x $ac_new_val`
2268         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2269           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2270 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2271           ac_cache_corrupted=:
2272         else
2273           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2274 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2275           eval $ac_var=\$ac_old_val
2276         fi
2277         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2278 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2279         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2280 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2281       fi;;
2282   esac
2283   # Pass precious variables to config.status.
2284   if test "$ac_new_set" = set; then
2285     case $ac_new_val in
2286     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2287     *) ac_arg=$ac_var=$ac_new_val ;;
2288     esac
2289     case " $ac_configure_args " in
2290       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2291       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2292     esac
2293   fi
2294 done
2295 if $ac_cache_corrupted; then
2296   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2298   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2299 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2300   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2301 fi
2302 ## -------------------- ##
2303 ## Main body of script. ##
2304 ## -------------------- ##
2305
2306 ac_ext=c
2307 ac_cpp='$CPP $CPPFLAGS'
2308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2311
2312
2313
2314
2315
2316
2317
2318
2319 progname=$0
2320 # if PWD already has a value, it is probably wrong.
2321 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2322
2323 # Export original configure arguments for use by sub-configures.
2324 # Quote arguments with shell meta charatcers.
2325 TOPLEVEL_CONFIGURE_ARGUMENTS=
2326 set -- "$progname" "$@"
2327 for ac_arg
2328 do
2329   case "$ac_arg" in
2330   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2331     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2332     # if the argument is of the form -foo=baz, quote the baz part only
2333     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2334   *) ;;
2335   esac
2336   # Add the quoted argument to the list.
2337   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2338 done
2339 if test "$silent" = yes; then
2340   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2341 fi
2342 # Remove the initial space we just introduced and, as these will be
2343 # expanded by make, quote '$'.
2344 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2345
2346
2347 # Find the build, host, and target systems.
2348 ac_aux_dir=
2349 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2350   if test -f "$ac_dir/install-sh"; then
2351     ac_aux_dir=$ac_dir
2352     ac_install_sh="$ac_aux_dir/install-sh -c"
2353     break
2354   elif test -f "$ac_dir/install.sh"; then
2355     ac_aux_dir=$ac_dir
2356     ac_install_sh="$ac_aux_dir/install.sh -c"
2357     break
2358   elif test -f "$ac_dir/shtool"; then
2359     ac_aux_dir=$ac_dir
2360     ac_install_sh="$ac_aux_dir/shtool install -c"
2361     break
2362   fi
2363 done
2364 if test -z "$ac_aux_dir"; then
2365   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2366 fi
2367
2368 # These three variables are undocumented and unsupported,
2369 # and are intended to be withdrawn in a future Autoconf release.
2370 # They can cause serious problems if a builder's source tree is in a directory
2371 # whose full name contains unusual characters.
2372 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2373 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2374 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2375
2376
2377 # Make sure we can run config.sub.
2378 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2379   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2380
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2382 $as_echo_n "checking build system type... " >&6; }
2383 if ${ac_cv_build+:} false; then :
2384   $as_echo_n "(cached) " >&6
2385 else
2386   ac_build_alias=$build_alias
2387 test "x$ac_build_alias" = x &&
2388   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2389 test "x$ac_build_alias" = x &&
2390   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2391 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2392   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2393
2394 fi
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2396 $as_echo "$ac_cv_build" >&6; }
2397 case $ac_cv_build in
2398 *-*-*) ;;
2399 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2400 esac
2401 build=$ac_cv_build
2402 ac_save_IFS=$IFS; IFS='-'
2403 set x $ac_cv_build
2404 shift
2405 build_cpu=$1
2406 build_vendor=$2
2407 shift; shift
2408 # Remember, the first character of IFS is used to create $*,
2409 # except with old shells:
2410 build_os=$*
2411 IFS=$ac_save_IFS
2412 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2413
2414
2415  case ${build_alias} in
2416   "") build_noncanonical=${build} ;;
2417   *) build_noncanonical=${build_alias} ;;
2418 esac
2419
2420
2421
2422  case ${host_alias} in
2423   "") host_noncanonical=${build_noncanonical} ;;
2424   *) host_noncanonical=${host_alias} ;;
2425 esac
2426
2427
2428
2429  case ${target_alias} in
2430   "") target_noncanonical=${host_noncanonical} ;;
2431   *) target_noncanonical=${target_alias} ;;
2432 esac
2433
2434
2435
2436
2437 test "$host_noncanonical" = "$target_noncanonical" &&
2438   test "$program_prefix$program_suffix$program_transform_name" = \
2439     NONENONEs,x,x, &&
2440   program_transform_name=s,y,y,
2441
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2443 $as_echo_n "checking host system type... " >&6; }
2444 if ${ac_cv_host+:} false; then :
2445   $as_echo_n "(cached) " >&6
2446 else
2447   if test "x$host_alias" = x; then
2448   ac_cv_host=$ac_cv_build
2449 else
2450   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2451     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2452 fi
2453
2454 fi
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2456 $as_echo "$ac_cv_host" >&6; }
2457 case $ac_cv_host in
2458 *-*-*) ;;
2459 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2460 esac
2461 host=$ac_cv_host
2462 ac_save_IFS=$IFS; IFS='-'
2463 set x $ac_cv_host
2464 shift
2465 host_cpu=$1
2466 host_vendor=$2
2467 shift; shift
2468 # Remember, the first character of IFS is used to create $*,
2469 # except with old shells:
2470 host_os=$*
2471 IFS=$ac_save_IFS
2472 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2473
2474
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2476 $as_echo_n "checking target system type... " >&6; }
2477 if ${ac_cv_target+:} false; then :
2478   $as_echo_n "(cached) " >&6
2479 else
2480   if test "x$target_alias" = x; then
2481   ac_cv_target=$ac_cv_host
2482 else
2483   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2484     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2485 fi
2486
2487 fi
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2489 $as_echo "$ac_cv_target" >&6; }
2490 case $ac_cv_target in
2491 *-*-*) ;;
2492 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2493 esac
2494 target=$ac_cv_target
2495 ac_save_IFS=$IFS; IFS='-'
2496 set x $ac_cv_target
2497 shift
2498 target_cpu=$1
2499 target_vendor=$2
2500 shift; shift
2501 # Remember, the first character of IFS is used to create $*,
2502 # except with old shells:
2503 target_os=$*
2504 IFS=$ac_save_IFS
2505 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2506
2507
2508 # The aliases save the names the user supplied, while $host etc.
2509 # will get canonicalized.
2510 test -n "$target_alias" &&
2511   test "$program_prefix$program_suffix$program_transform_name" = \
2512     NONENONEs,x,x, &&
2513   program_prefix=${target_alias}-
2514
2515 test "$program_prefix" != NONE &&
2516   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2517 # Use a double $ so make ignores it.
2518 test "$program_suffix" != NONE &&
2519   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2520 # Double any \ or $.
2521 # By default was `s,x,x', remove it if useless.
2522 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2523 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2524
2525
2526
2527 # Get 'install' or 'install-sh' and its variants.
2528 # Find a good install program.  We prefer a C program (faster),
2529 # so one script is as good as another.  But avoid the broken or
2530 # incompatible versions:
2531 # SysV /etc/install, /usr/sbin/install
2532 # SunOS /usr/etc/install
2533 # IRIX /sbin/install
2534 # AIX /bin/install
2535 # AmigaOS /C/install, which installs bootblocks on floppy discs
2536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2539 # OS/2's system install, which has a completely different semantic
2540 # ./install, which can be erroneously created by make from ./install.sh.
2541 # Reject install programs that cannot install multiple files.
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2543 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2544 if test -z "$INSTALL"; then
2545 if ${ac_cv_path_install+:} false; then :
2546   $as_echo_n "(cached) " >&6
2547 else
2548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551   IFS=$as_save_IFS
2552   test -z "$as_dir" && as_dir=.
2553     # Account for people who put trailing slashes in PATH elements.
2554 case $as_dir/ in #((
2555   ./ | .// | /[cC]/* | \
2556   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2557   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2558   /usr/ucb/* ) ;;
2559   *)
2560     # OSF1 and SCO ODT 3.0 have their own names for install.
2561     # Don't use installbsd from OSF since it installs stuff as root
2562     # by default.
2563     for ac_prog in ginstall scoinst install; do
2564       for ac_exec_ext in '' $ac_executable_extensions; do
2565         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2566           if test $ac_prog = install &&
2567             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2568             # AIX install.  It has an incompatible calling convention.
2569             :
2570           elif test $ac_prog = install &&
2571             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2572             # program-specific install script used by HP pwplus--don't use.
2573             :
2574           else
2575             rm -rf conftest.one conftest.two conftest.dir
2576             echo one > conftest.one
2577             echo two > conftest.two
2578             mkdir conftest.dir
2579             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2580               test -s conftest.one && test -s conftest.two &&
2581               test -s conftest.dir/conftest.one &&
2582               test -s conftest.dir/conftest.two
2583             then
2584               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2585               break 3
2586             fi
2587           fi
2588         fi
2589       done
2590     done
2591     ;;
2592 esac
2593
2594   done
2595 IFS=$as_save_IFS
2596
2597 rm -rf conftest.one conftest.two conftest.dir
2598
2599 fi
2600   if test "${ac_cv_path_install+set}" = set; then
2601     INSTALL=$ac_cv_path_install
2602   else
2603     # As a last resort, use the slow shell script.  Don't cache a
2604     # value for INSTALL within a source directory, because that will
2605     # break other packages using the cache if that directory is
2606     # removed, or if the value is a relative name.
2607     INSTALL=$ac_install_sh
2608   fi
2609 fi
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2611 $as_echo "$INSTALL" >&6; }
2612
2613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2614 # It thinks the first close brace ends the variable substitution.
2615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2616
2617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2618
2619 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2620
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2622 $as_echo_n "checking whether ln works... " >&6; }
2623 if ${acx_cv_prog_LN+:} false; then :
2624   $as_echo_n "(cached) " >&6
2625 else
2626   rm -f conftestdata_t
2627 echo >conftestdata_f
2628 if ln conftestdata_f conftestdata_t 2>/dev/null
2629 then
2630   acx_cv_prog_LN=ln
2631 else
2632   acx_cv_prog_LN=no
2633 fi
2634 rm -f conftestdata_f conftestdata_t
2635
2636 fi
2637 if test $acx_cv_prog_LN = no; then
2638   LN="cp"
2639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2640 $as_echo "no, using $LN" >&6; }
2641 else
2642   LN="$acx_cv_prog_LN"
2643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2644 $as_echo "yes" >&6; }
2645 fi
2646
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2648 $as_echo_n "checking whether ln -s works... " >&6; }
2649 LN_S=$as_ln_s
2650 if test "$LN_S" = "ln -s"; then
2651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2652 $as_echo "yes" >&6; }
2653 else
2654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2655 $as_echo "no, using $LN_S" >&6; }
2656 fi
2657
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2659 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2660 if ${ac_cv_path_SED+:} false; then :
2661   $as_echo_n "(cached) " >&6
2662 else
2663             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2664      for ac_i in 1 2 3 4 5 6 7; do
2665        ac_script="$ac_script$as_nl$ac_script"
2666      done
2667      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2668      { ac_script=; unset ac_script;}
2669      if test -z "$SED"; then
2670   ac_path_SED_found=false
2671   # Loop through the user's path and test for each of PROGNAME-LIST
2672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675   IFS=$as_save_IFS
2676   test -z "$as_dir" && as_dir=.
2677     for ac_prog in sed gsed; do
2678     for ac_exec_ext in '' $ac_executable_extensions; do
2679       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2680       as_fn_executable_p "$ac_path_SED" || continue
2681 # Check for GNU ac_path_SED and select it if it is found.
2682   # Check for GNU $ac_path_SED
2683 case `"$ac_path_SED" --version 2>&1` in
2684 *GNU*)
2685   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2686 *)
2687   ac_count=0
2688   $as_echo_n 0123456789 >"conftest.in"
2689   while :
2690   do
2691     cat "conftest.in" "conftest.in" >"conftest.tmp"
2692     mv "conftest.tmp" "conftest.in"
2693     cp "conftest.in" "conftest.nl"
2694     $as_echo '' >> "conftest.nl"
2695     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2696     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2697     as_fn_arith $ac_count + 1 && ac_count=$as_val
2698     if test $ac_count -gt ${ac_path_SED_max-0}; then
2699       # Best one so far, save it but keep looking for a better one
2700       ac_cv_path_SED="$ac_path_SED"
2701       ac_path_SED_max=$ac_count
2702     fi
2703     # 10*(2^10) chars as input seems more than enough
2704     test $ac_count -gt 10 && break
2705   done
2706   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2707 esac
2708
2709       $ac_path_SED_found && break 3
2710     done
2711   done
2712   done
2713 IFS=$as_save_IFS
2714   if test -z "$ac_cv_path_SED"; then
2715     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2716   fi
2717 else
2718   ac_cv_path_SED=$SED
2719 fi
2720
2721 fi
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2723 $as_echo "$ac_cv_path_SED" >&6; }
2724  SED="$ac_cv_path_SED"
2725   rm -f conftest.sed
2726
2727 for ac_prog in gawk mawk nawk awk
2728 do
2729   # Extract the first word of "$ac_prog", so it can be a program name with args.
2730 set dummy $ac_prog; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if ${ac_cv_prog_AWK+:} false; then :
2734   $as_echo_n "(cached) " >&6
2735 else
2736   if test -n "$AWK"; then
2737   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2741 do
2742   IFS=$as_save_IFS
2743   test -z "$as_dir" && as_dir=.
2744     for ac_exec_ext in '' $ac_executable_extensions; do
2745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746     ac_cv_prog_AWK="$ac_prog"
2747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748     break 2
2749   fi
2750 done
2751   done
2752 IFS=$as_save_IFS
2753
2754 fi
2755 fi
2756 AWK=$ac_cv_prog_AWK
2757 if test -n "$AWK"; then
2758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2759 $as_echo "$AWK" >&6; }
2760 else
2761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2763 fi
2764
2765
2766   test -n "$AWK" && break
2767 done
2768
2769
2770 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2771
2772 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2773 # a relative path.
2774 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2775   INSTALL="${srcpwd}/install-sh -c"
2776 fi
2777
2778 # Set srcdir to "." if that's what it is.
2779 # This is important for multilib support.
2780 pwd=`${PWDCMD-pwd}`
2781 if test "${pwd}" = "${srcpwd}" ; then
2782   srcdir=.
2783 fi
2784
2785 topsrcdir=$srcpwd
2786
2787 extra_host_args=
2788
2789 ### To add a new directory to the tree, first choose whether it is a target
2790 ### or a host dependent tool.  Then put it into the appropriate list
2791 ### (library or tools, host or target), doing a dependency sort.
2792
2793 # Subdirs will be configured in the order listed in build_configdirs,
2794 # configdirs, or target_configdirs; see the serialization section below.
2795
2796 # Dependency sorting is only needed when *configuration* must be done in
2797 # a particular order.  In all cases a dependency should be specified in
2798 # the Makefile, whether or not it's implicitly specified here.
2799
2800 # Double entries in build_configdirs, configdirs, or target_configdirs may
2801 # cause circular dependencies and break everything horribly.
2802
2803 # these library is used by various programs built for the build
2804 # environment
2805 #
2806 build_libs="build-libiberty build-libcpp"
2807
2808 # these tools are built for the build environment
2809 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2810
2811 # these libraries are used by various programs built for the host environment
2812 #f
2813 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2814
2815 # these tools are built for the host environment
2816 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2817 # know that we are building the simulator.
2818 # binutils, gas and ld appear in that order because it makes sense to run
2819 # "make check" in that particular order.
2820 # If --enable-gold is used, "gold" may replace "ld".
2821 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 gm2tools gotools c++tools"
2822
2823 # these libraries are built for the target environment, and are built after
2824 # the host libraries and the host tools (which may be a cross compiler)
2825 # Note that libiberty is not a target library.
2826 target_libraries="target-libgcc \
2827                 target-libbacktrace \
2828                 target-libgloss \
2829                 target-newlib \
2830                 target-libgomp \
2831                 target-libatomic \
2832                 target-libitm \
2833                 target-libstdc++-v3 \
2834                 target-libsanitizer \
2835                 target-libvtv \
2836                 target-libssp \
2837                 target-libquadmath \
2838                 target-libgfortran \
2839                 target-libffi \
2840                 target-libobjc \
2841                 target-libada \
2842                 target-libgm2 \
2843                 target-libgo \
2844                 target-libphobos \
2845                 target-zlib"
2846
2847 # these tools are built using the target libraries, and are intended to
2848 # run only in the target environment
2849 #
2850 # note: any program that *uses* libraries that are in the "target_libraries"
2851 # list belongs in this list.
2852 #
2853 target_tools="target-rda"
2854
2855 ################################################################################
2856
2857 ## All tools belong in one of the four categories, and are assigned above
2858 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2859 ## is important because configure will choke if they ever get through.
2860 ## ${configdirs} is directories we build using the host tools.
2861 ## ${target_configdirs} is directories we build using the target tools.
2862 configdirs=`echo ${host_libs} ${host_tools}`
2863 target_configdirs=`echo ${target_libraries} ${target_tools}`
2864 build_configdirs=`echo ${build_libs} ${build_tools}`
2865
2866
2867
2868 ################################################################################
2869
2870 srcname="gnu development package"
2871
2872 # This gets set non-empty for some net releases of packages.
2873 appdirs=""
2874
2875 # Define is_cross_compiler to save on calls to 'test'.
2876 is_cross_compiler=
2877 if test x"${host}" = x"${target}" ; then
2878   is_cross_compiler=no
2879 else
2880   is_cross_compiler=yes
2881 fi
2882
2883 # Find the build and target subdir names.
2884
2885 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2886 # have matching libraries, they should use host libraries: Makefile.tpl
2887 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2888 # However, they still use the build modules, because the corresponding
2889 # host modules (e.g. bison) are only built for the host when bootstrap
2890 # finishes. So:
2891 # - build_subdir is where we find build modules, and never changes.
2892 # - build_libsubdir is where we find build libraries, and can be overridden.
2893
2894 # Prefix 'build-' so this never conflicts with target_subdir.
2895 build_subdir="build-${build_noncanonical}"
2896
2897 # Check whether --with-build-libsubdir was given.
2898 if test "${with_build_libsubdir+set}" = set; then :
2899   withval=$with_build_libsubdir; build_libsubdir="$withval"
2900 else
2901   build_libsubdir="$build_subdir"
2902 fi
2903
2904 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2905 if ( test $srcdir = . && test -d gcc ) \
2906    || test -d $srcdir/../host-${host_noncanonical}; then
2907   host_subdir="host-${host_noncanonical}"
2908 else
2909   host_subdir=.
2910 fi
2911 # No prefix.
2912 target_subdir=${target_noncanonical}
2913
2914 # Be sure to cover against remnants of an in-tree build.
2915 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2916   as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2917 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2918 fi
2919
2920 # Skipdirs are removed silently.
2921 skipdirs=
2922 # Noconfigdirs are removed loudly.
2923 noconfigdirs=""
2924
2925 use_gnu_ld=
2926 # Make sure we don't let GNU ld be added if we didn't want it.
2927 if test x$with_gnu_ld = xno ; then
2928   use_gnu_ld=no
2929   noconfigdirs="$noconfigdirs ld gold"
2930 fi
2931
2932 use_gnu_as=
2933 # Make sure we don't let GNU as be added if we didn't want it.
2934 if test x$with_gnu_as = xno ; then
2935   use_gnu_as=no
2936   noconfigdirs="$noconfigdirs gas"
2937 fi
2938
2939 use_included_zlib=
2940
2941 # Check whether --with-system-zlib was given.
2942 if test "${with_system_zlib+set}" = set; then :
2943   withval=$with_system_zlib;
2944 fi
2945
2946 # Make sure we don't let ZLIB be added if we didn't want it.
2947 if test x$with_system_zlib = xyes ; then
2948   use_included_zlib=no
2949   noconfigdirs="$noconfigdirs zlib"
2950 fi
2951
2952 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2953 # is provided.
2954 if test x$with_system_readline = xyes ; then
2955   noconfigdirs="$noconfigdirs readline"
2956 fi
2957
2958 # some tools are so dependent upon X11 that if we're not building with X,
2959 # it's not even worth trying to configure, much less build, that tool.
2960
2961 case ${with_x} in
2962   yes | "") ;; # the default value for this tree is that X11 is available
2963   no)
2964     skipdirs="${skipdirs} tk itcl libgui"
2965     # We won't be able to build gdbtk without X.
2966     enable_gdbtk=no
2967     ;;
2968   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2969 esac
2970
2971 # Some are only suitable for cross toolchains.
2972 # Remove these if host=target.
2973 cross_only="target-libgloss target-newlib target-opcodes"
2974
2975 case $is_cross_compiler in
2976   no) skipdirs="${skipdirs} ${cross_only}" ;;
2977 esac
2978
2979 # If both --with-headers and --with-libs are specified, default to
2980 # --without-newlib.
2981 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2982    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2983   if test x"${with_newlib}" = x ; then
2984     with_newlib=no
2985   fi
2986 fi
2987
2988 # Recognize --with-newlib/--without-newlib.
2989 case ${with_newlib} in
2990   no) skipdirs="${skipdirs} target-newlib" ;;
2991   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2992 esac
2993
2994 # Check whether --enable-as-accelerator-for was given.
2995 if test "${enable_as_accelerator_for+set}" = set; then :
2996   enableval=$enable_as_accelerator_for;
2997 fi
2998
2999
3000 # Check whether --enable-offload-targets was given.
3001 if test "${enable_offload_targets+set}" = set; then :
3002   enableval=$enable_offload_targets;
3003   if test x"$enable_offload_targets" = x; then
3004     as_fn_error $? "no offload targets specified" "$LINENO" 5
3005   fi
3006
3007 else
3008   enable_offload_targets=
3009 fi
3010
3011
3012 # Check whether --enable-offload-defaulted was given.
3013 if test "${enable_offload_defaulted+set}" = set; then :
3014   enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3015 else
3016   enable_offload_defaulted=
3017 fi
3018
3019
3020 # Handle --enable-gold, --enable-ld.
3021 # --disable-gold [--enable-ld]
3022 #     Build only ld.  Default option.
3023 # --enable-gold [--enable-ld]
3024 #     Build both gold and ld.  Install gold as "ld.gold", install ld
3025 #     as "ld.bfd" and "ld".
3026 # --enable-gold=default [--enable-ld]
3027 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
3028 #     install ld as "ld.bfd".
3029 # --enable-gold[=default] --disable-ld
3030 #     Build only gold, which is then installed as both "ld.gold" and "ld".
3031 # --enable-gold --enable-ld=default
3032 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
3033 #     and ld.bfd).
3034 #     In other words, ld is default
3035 # --enable-gold=default --enable-ld=default
3036 #     Error.
3037
3038 default_ld=
3039 # Check whether --enable-gold was given.
3040 if test "${enable_gold+set}" = set; then :
3041   enableval=$enable_gold; ENABLE_GOLD=$enableval
3042 else
3043   ENABLE_GOLD=no
3044 fi
3045
3046 case "${ENABLE_GOLD}" in
3047   yes|default)
3048     # Check for ELF target.
3049     is_elf=no
3050     case "${target}" in
3051       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3052       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3053       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3054       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3055         case "${target}" in
3056           *-*-linux*aout* | *-*-linux*oldld*)
3057             ;;
3058           *)
3059             is_elf=yes
3060             ;;
3061         esac
3062     esac
3063
3064     if test "$is_elf" = "yes"; then
3065       # Check for target supported by gold.
3066       case "${target}" in
3067         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3068         | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3069           configdirs="$configdirs gold"
3070           if test x${ENABLE_GOLD} = xdefault; then
3071             default_ld=gold
3072           fi
3073           ENABLE_GOLD=yes
3074           ;;
3075       esac
3076     fi
3077     ;;
3078   no)
3079     ;;
3080   *)
3081     as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3082     ;;
3083 esac
3084
3085 # Check whether --enable-ld was given.
3086 if test "${enable_ld+set}" = set; then :
3087   enableval=$enable_ld; ENABLE_LD=$enableval
3088 else
3089   ENABLE_LD=yes
3090 fi
3091
3092
3093 case "${ENABLE_LD}" in
3094   default)
3095     if test x${default_ld} != x; then
3096       as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3097     fi
3098     ;;
3099   yes)
3100     ;;
3101   no)
3102     if test x${ENABLE_GOLD} != xyes; then
3103       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3104 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3105     fi
3106     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3107     ;;
3108   *)
3109     as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3110     ;;
3111 esac
3112
3113 # PR gas/19109
3114 # Decide the default method for compressing debug sections.
3115 # Provide a configure time option to override our default.
3116 # Check whether --enable-compressed_debug_sections was given.
3117 if test "${enable_compressed_debug_sections+set}" = set; then :
3118   enableval=$enable_compressed_debug_sections;
3119   if test x"$enable_compressed_debug_sections" = xyes; then
3120     as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3121   fi
3122
3123 else
3124   enable_compressed_debug_sections=
3125 fi
3126
3127
3128 # Configure extra directories which are host specific
3129
3130 case "${host}" in
3131   *-cygwin*)
3132     configdirs="$configdirs libtermcap" ;;
3133 esac
3134
3135 # A target can indicate whether a language isn't supported for some reason.
3136 # Only spaces may be used in this macro; not newlines or tabs.
3137 unsupported_languages=
3138
3139 # Remove more programs from consideration, based on the host or
3140 # target this usually means that a port of the program doesn't
3141 # exist yet.
3142
3143 case "${host}" in
3144   i[3456789]86-*-msdosdjgpp*)
3145     noconfigdirs="$noconfigdirs tcl tk itcl"
3146     ;;
3147 esac
3148
3149
3150 # Check whether --enable-libquadmath was given.
3151 if test "${enable_libquadmath+set}" = set; then :
3152   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3153 else
3154   ENABLE_LIBQUADMATH=yes
3155 fi
3156
3157 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3158   noconfigdirs="$noconfigdirs target-libquadmath"
3159 fi
3160
3161
3162 # Check whether --enable-libquadmath-support was given.
3163 if test "${enable_libquadmath_support+set}" = set; then :
3164   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3165 else
3166   ENABLE_LIBQUADMATH_SUPPORT=yes
3167 fi
3168
3169 enable_libquadmath_support=
3170 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3171   enable_libquadmath_support=no
3172 fi
3173
3174
3175 # Check whether --enable-libada was given.
3176 if test "${enable_libada+set}" = set; then :
3177   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3178 else
3179   ENABLE_LIBADA=yes
3180 fi
3181
3182 if test "${ENABLE_LIBADA}" != "yes" ; then
3183   noconfigdirs="$noconfigdirs gnattools"
3184 fi
3185
3186 # Check whether --enable-libgm2 was given.
3187 if test "${enable_libgm2+set}" = set; then :
3188   enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3189 else
3190   ENABLE_LIBGM2=no
3191 fi
3192
3193 if test "${ENABLE_LIBGM2}" != "yes" ; then
3194   noconfigdirs="$noconfigdirs gm2tools"
3195 fi
3196
3197 # Check whether --enable-libssp was given.
3198 if test "${enable_libssp+set}" = set; then :
3199   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3200 else
3201   ENABLE_LIBSSP=yes
3202 fi
3203
3204
3205 # Check whether --enable-libstdcxx was given.
3206 if test "${enable_libstdcxx+set}" = set; then :
3207   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3208 else
3209   ENABLE_LIBSTDCXX=default
3210 fi
3211
3212 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3213   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3214 fi
3215
3216 # Enable libgomp by default on hosted POSIX systems, and a few others.
3217 if test x$enable_libgomp = x ; then
3218     case "${target}" in
3219     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3220         ;;
3221     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3222         ;;
3223     *-*-solaris2* | *-*-hpux11*)
3224         ;;
3225     *-*-darwin* | *-*-aix*)
3226         ;;
3227     nvptx*-*-* | amdgcn*-*-*)
3228         ;;
3229     *)
3230         noconfigdirs="$noconfigdirs target-libgomp"
3231         ;;
3232     esac
3233 fi
3234
3235 # Disable libatomic on unsupported systems.
3236 if test -d ${srcdir}/libatomic; then
3237     if test x$enable_libatomic = x; then
3238         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3239 $as_echo_n "checking for libatomic support... " >&6; }
3240         if (srcdir=${srcdir}/libatomic; \
3241                 . ${srcdir}/configure.tgt; \
3242                 test -n "$UNSUPPORTED")
3243         then
3244             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3246             noconfigdirs="$noconfigdirs target-libatomic"
3247         else
3248             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3249 $as_echo "yes" >&6; }
3250         fi
3251     fi
3252 fi
3253
3254 # Disable libitm on unsupported systems.
3255 if test -d ${srcdir}/libitm; then
3256     if test x$enable_libitm = x; then
3257         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3258 $as_echo_n "checking for libitm support... " >&6; }
3259         if (srcdir=${srcdir}/libitm; \
3260                 . ${srcdir}/configure.tgt; \
3261                 test -n "$UNSUPPORTED")
3262         then
3263             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265             noconfigdirs="$noconfigdirs target-libitm"
3266         else
3267             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268 $as_echo "yes" >&6; }
3269         fi
3270     fi
3271 fi
3272
3273 # Disable libsanitizer on unsupported systems.
3274 if test -d ${srcdir}/libsanitizer; then
3275     if test x$enable_libsanitizer = x; then
3276         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3277 $as_echo_n "checking for libsanitizer support... " >&6; }
3278         if (srcdir=${srcdir}/libsanitizer; \
3279                 . ${srcdir}/configure.tgt; \
3280                 test -n "$UNSUPPORTED")
3281         then
3282             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284             noconfigdirs="$noconfigdirs target-libsanitizer"
3285         else
3286             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287 $as_echo "yes" >&6; }
3288         fi
3289     fi
3290 fi
3291
3292 # Disable libvtv on unsupported systems.
3293 if test -d ${srcdir}/libvtv; then
3294     if test x$enable_libvtv = x; then
3295         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3296 $as_echo_n "checking for libvtv support... " >&6; }
3297         if (srcdir=${srcdir}/libvtv; \
3298                 . ${srcdir}/configure.tgt; \
3299                 test "$VTV_SUPPORTED" != "yes")
3300         then
3301             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3303             noconfigdirs="$noconfigdirs target-libvtv"
3304         else
3305             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3306 $as_echo "yes" >&6; }
3307         fi
3308     fi
3309 fi
3310
3311 # Disable libquadmath for some systems.
3312 case "${target}" in
3313   avr-*-*)
3314     noconfigdirs="$noconfigdirs target-libquadmath"
3315     ;;
3316   # libquadmath is unused on AIX and libquadmath build process use of
3317   # LD_LIBRARY_PATH can break AIX bootstrap.
3318   powerpc-*-aix* | rs6000-*-aix*)
3319     noconfigdirs="$noconfigdirs target-libquadmath"
3320     ;;
3321 esac
3322
3323 # Disable libssp for some systems.
3324 case "${target}" in
3325   avr-*-*)
3326     # No hosted I/O support.
3327     noconfigdirs="$noconfigdirs target-libssp"
3328     ;;
3329   bpf-*-*)
3330     noconfigdirs="$noconfigdirs target-libssp"
3331     ;;
3332   powerpc-*-aix* | rs6000-*-aix*)
3333     noconfigdirs="$noconfigdirs target-libssp"
3334     ;;
3335   pru-*-*)
3336     # No hosted I/O support.
3337     noconfigdirs="$noconfigdirs target-libssp"
3338     ;;
3339   rl78-*-*)
3340     # libssp uses a misaligned load to trigger a fault, but the RL78
3341     # doesn't fault for those - instead, it gives a build-time error
3342     # for explicit misaligned loads.
3343     noconfigdirs="$noconfigdirs target-libssp"
3344     ;;
3345   visium-*-*)
3346     # No hosted I/O support.
3347     noconfigdirs="$noconfigdirs target-libssp"
3348     ;;
3349 esac
3350
3351 # Disable libstdc++-v3 for some systems.
3352 # Allow user to override this if they pass --enable-libstdcxx
3353 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3354   case "${target}" in
3355     *-*-vxworks*)
3356       # VxWorks uses the Dinkumware C++ library.
3357       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3358       ;;
3359     amdgcn*-*-*)
3360       # Not ported/fails to build when using newlib.
3361       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3362       ;;
3363     arm*-wince-pe*)
3364       # the C++ libraries don't build on top of CE's C libraries
3365       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3366       ;;
3367     avr-*-*)
3368       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3369       ;;
3370     bpf-*-*)
3371       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3372       ;;
3373     ft32-*-*)
3374       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3375       ;;
3376   esac
3377 fi
3378
3379 # Disable C++ on systems where it is known to not work.
3380 # For testing, you can override this with --enable-languages=c++.
3381 case ,${enable_languages}, in
3382   *,c++,*)
3383     ;;
3384   *)
3385       case "${target}" in
3386         bpf-*-*)
3387           unsupported_languages="$unsupported_languages c++"
3388           ;;
3389       esac
3390       ;;
3391 esac
3392
3393 # Disable Objc on systems where it is known to not work.
3394 # For testing, you can override this with --enable-languages=objc.
3395 case ,${enable_languages}, in
3396   *,objc,*)
3397     ;;
3398   *)
3399       case "${target}" in
3400         bpf-*-*)
3401           unsupported_languages="$unsupported_languages objc"
3402           ;;
3403       esac
3404       ;;
3405 esac
3406
3407 # Disable D on systems where it is known to not work.
3408 # For testing, you can override this with --enable-languages=d.
3409 case ,${enable_languages}, in
3410   *,d,*)
3411     ;;
3412   *)
3413     case "${target}" in
3414       bpf-*-*)
3415         unsupported_languages="$unsupported_languages d"
3416         ;;
3417     esac
3418     ;;
3419 esac
3420
3421 # Disable libphobos on unsupported systems.
3422 # For testing, you can override this with --enable-libphobos.
3423 if test -d ${srcdir}/libphobos; then
3424     if test x$enable_libphobos = x; then
3425         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3426 $as_echo_n "checking for libphobos support... " >&6; }
3427         if (srcdir=${srcdir}/libphobos; \
3428                 . ${srcdir}/configure.tgt; \
3429                 test "$LIBPHOBOS_SUPPORTED" != "yes")
3430         then
3431             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 $as_echo "no" >&6; }
3433             noconfigdirs="$noconfigdirs target-libphobos"
3434         else
3435             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3436 $as_echo "yes" >&6; }
3437         fi
3438     fi
3439 fi
3440
3441 # Disable Fortran for some systems.
3442 case "${target}" in
3443   mmix-*-*)
3444     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3445     unsupported_languages="$unsupported_languages fortran"
3446     ;;
3447   bpf-*-*)
3448     unsupported_languages="$unsupported_languages fortran"
3449     ;;
3450 esac
3451
3452 # Disable libffi for some systems.
3453 case "${target}" in
3454   powerpc-*-darwin*)
3455     ;;
3456   i[3456789]86-*-darwin*)
3457     ;;
3458   x86_64-*-darwin[912]*)
3459     ;;
3460   *-*-darwin*)
3461     noconfigdirs="$noconfigdirs target-libffi"
3462     ;;
3463   *-*-netware*)
3464     noconfigdirs="$noconfigdirs target-libffi"
3465     ;;
3466   *-*-phoenix*)
3467     noconfigdirs="$noconfigdirs target-libffi"
3468     ;;
3469   *-*-rtems*)
3470     noconfigdirs="$noconfigdirs target-libffi"
3471     ;;
3472   *-*-tpf*)
3473     noconfigdirs="$noconfigdirs target-libffi"
3474     ;;
3475   *-*-uclinux*)
3476     noconfigdirs="$noconfigdirs target-libffi"
3477     ;;
3478   *-*-vxworks*)
3479     noconfigdirs="$noconfigdirs target-libffi"
3480     ;;
3481   aarch64*-*-freebsd*)
3482     noconfigdirs="$noconfigdirs target-libffi"
3483     ;;
3484   alpha*-*-*vms*)
3485     noconfigdirs="$noconfigdirs target-libffi"
3486     ;;
3487   arm*-*-freebsd*)
3488     noconfigdirs="$noconfigdirs target-libffi"
3489     ;;
3490   arm-wince-pe)
3491     noconfigdirs="$noconfigdirs target-libffi"
3492     ;;
3493   arm*-*-symbianelf*)
3494     noconfigdirs="$noconfigdirs target-libffi"
3495     ;;
3496   bpf-*-*)
3497     noconfigdirs="$noconfigdirs target-libffi"
3498     ;;
3499   cris-*-* | crisv32-*-*)
3500     case "${target}" in
3501       *-*-linux*)
3502         ;;
3503       *) # See PR46792 regarding target-libffi.
3504         noconfigdirs="$noconfigdirs target-libffi";;
3505     esac
3506     ;;
3507   hppa*64*-*-hpux*)
3508     noconfigdirs="$noconfigdirs target-libffi"
3509     ;;
3510   ia64*-*-*vms*)
3511     noconfigdirs="$noconfigdirs target-libffi"
3512     ;;
3513   i[3456789]86-w64-mingw*)
3514     noconfigdirs="$noconfigdirs target-libffi"
3515     ;;
3516   i[3456789]86-*-mingw*)
3517     noconfigdirs="$noconfigdirs target-libffi"
3518     ;;
3519   x86_64-*-mingw*)
3520     noconfigdirs="$noconfigdirs target-libffi"
3521     ;;
3522   mmix-*-*)
3523     noconfigdirs="$noconfigdirs target-libffi"
3524     ;;
3525   powerpc-*-aix*)
3526     ;;
3527   rs6000-*-aix*)
3528     ;;
3529   ft32-*-*)
3530     noconfigdirs="$noconfigdirs target-libffi"
3531     ;;
3532   *-*-lynxos*)
3533     noconfigdirs="$noconfigdirs target-libffi"
3534     ;;
3535 esac
3536
3537 # Disable the go frontend on systems where it is known to not work. Please keep
3538 # this in sync with contrib/config-list.mk.
3539 case "${target}" in
3540 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3541     unsupported_languages="$unsupported_languages go"
3542     ;;
3543 esac
3544
3545 # Only allow gdbserver on some systems.
3546 if test -d ${srcdir}/gdbserver; then
3547     if test x$enable_gdbserver = x; then
3548         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3549 $as_echo_n "checking for gdbserver support... " >&6; }
3550         if (srcdir=${srcdir}/gdbserver; \
3551                 . ${srcdir}/configure.srv; \
3552                 test -n "$UNSUPPORTED")
3553         then
3554             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3556             noconfigdirs="$noconfigdirs gdbserver"
3557         else
3558             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3559 $as_echo "yes" >&6; }
3560         fi
3561     fi
3562 fi
3563
3564 # Disable libgo for some systems where it is known to not work.
3565 # For testing, you can easily override this with --enable-libgo.
3566 if test x$enable_libgo = x; then
3567     case "${target}" in
3568     *-*-darwin*)
3569         # PR 46986
3570         noconfigdirs="$noconfigdirs target-libgo"
3571         ;;
3572     *-*-cygwin* | *-*-mingw*)
3573         noconfigdirs="$noconfigdirs target-libgo"
3574         ;;
3575     bpf-*-*)
3576         noconfigdirs="$noconfigdirs target-libgo"
3577         ;;
3578     esac
3579 fi
3580
3581 # Default libgloss CPU subdirectory.
3582 libgloss_dir="$target_cpu"
3583
3584 case "${target}" in
3585   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3586     libgloss_dir=wince
3587     ;;
3588   aarch64*-*-* )
3589     libgloss_dir=aarch64
3590     ;;
3591   arm*-*-*)
3592     libgloss_dir=arm
3593     ;;
3594   cris-*-* | crisv32-*-*)
3595     libgloss_dir=cris
3596     ;;
3597   hppa*-*-*)
3598     libgloss_dir=pa
3599     ;;
3600   i[3456789]86-*-*)
3601     libgloss_dir=i386
3602     ;;
3603   loongarch*-*-*)
3604     libgloss_dir=loongarch
3605     ;;
3606   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3607     libgloss_dir=m68hc11
3608     ;;
3609   m68*-*-* | fido-*-*)
3610     libgloss_dir=m68k
3611     ;;
3612   mips*-*-*)
3613     libgloss_dir=mips
3614     ;;
3615   powerpc*-*-*)
3616     libgloss_dir=rs6000
3617     ;;
3618   pru-*-*)
3619     libgloss_dir=pru
3620     ;;
3621   sparc*-*-*)
3622     libgloss_dir=sparc
3623     ;;
3624 esac
3625
3626 # Disable newlib and libgloss for various target OSes.
3627 case "${target}" in
3628   alpha*-dec-osf*)
3629     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3630     ;;
3631   i[3456789]86-*-linux*)
3632     # This section makes it possible to build newlib natively on linux.
3633     # If we are using a cross compiler then don't configure newlib.
3634     if test x${is_cross_compiler} != xno ; then
3635       noconfigdirs="$noconfigdirs target-newlib"
3636     fi
3637     noconfigdirs="$noconfigdirs target-libgloss"
3638     # If we are not using a cross compiler, do configure newlib.
3639     # Note however, that newlib will only be configured in this situation
3640     # if the --with-newlib option has been given, because otherwise
3641     # 'target-newlib' will appear in skipdirs.
3642     ;;
3643   i[3456789]86-*-rdos*)
3644     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3645     ;;
3646   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3647     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3648     ;;
3649   sparc-*-sunos4*)
3650     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651     ;;
3652   bpf-*-*)
3653     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3654     ;;
3655   *-*-aix*)
3656     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3657     ;;
3658   *-*-beos*)
3659     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3660     ;;
3661   *-*-chorusos)
3662     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3663     ;;
3664   *-*-dragonfly*)
3665     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3666     ;;
3667   *-*-freebsd*)
3668     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3669     ;;
3670   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3671     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672     ;;
3673   *-*-lynxos*)
3674     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3675     ;;
3676   *-*-mingw*)
3677     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678     ;;
3679   *-*-netbsd*)
3680     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3681     ;;
3682   *-*-netware*)
3683     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3684     ;;
3685   *-*-tpf*)
3686     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687     ;;
3688   *-*-uclinux*)
3689     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3690     ;;
3691   *-*-vxworks*)
3692     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693     ;;
3694 esac
3695
3696 case "${target}" in
3697   *-*-chorusos)
3698     ;;
3699   aarch64-*-darwin*)
3700     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3701     noconfigdirs="$noconfigdirs sim target-rda"
3702     ;;
3703   amdgcn*-*-*)
3704     ;;
3705   arm-*-darwin*)
3706     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3707     noconfigdirs="$noconfigdirs sim target-rda"
3708     ;;
3709   powerpc-*-darwin*)
3710     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3711     noconfigdirs="$noconfigdirs sim target-rda"
3712     ;;
3713   i[3456789]86-*-darwin*)
3714     noconfigdirs="$noconfigdirs ld gprof"
3715     noconfigdirs="$noconfigdirs sim target-rda"
3716     ;;
3717   x86_64-*-darwin[912]*)
3718     noconfigdirs="$noconfigdirs ld gas gprof"
3719     noconfigdirs="$noconfigdirs sim target-rda"
3720     ;;
3721   *-*-darwin*)
3722     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3723     noconfigdirs="$noconfigdirs sim target-rda"
3724     ;;
3725   *-*-dragonfly*)
3726     ;;
3727   *-*-freebsd*)
3728     if test "x$with_gmp" = x \
3729         && ! test -d ${srcdir}/gmp \
3730         && test -f /usr/local/include/gmp.h; then
3731       with_gmp=/usr/local
3732     fi
3733     ;;
3734   *-*-kaos*)
3735     # Remove unsupported stuff on all kaOS configurations.
3736     noconfigdirs="$noconfigdirs target-libgloss"
3737     ;;
3738   *-*-netbsd*)
3739     ;;
3740   *-*-netware*)
3741     ;;
3742   *-*-phoenix*)
3743     noconfigdirs="$noconfigdirs target-libgloss"
3744     ;;
3745   *-*-rtems*)
3746     noconfigdirs="$noconfigdirs target-libgloss"
3747     ;;
3748     # The tpf target doesn't support gdb yet.
3749   *-*-tpf*)
3750     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3751     ;;
3752   *-*-uclinux*)
3753     noconfigdirs="$noconfigdirs target-rda"
3754     ;;
3755   *-*-vxworks*)
3756     ;;
3757   alpha*-dec-osf*)
3758     # ld works, but does not support shared libraries.
3759     # gas doesn't generate exception information.
3760     noconfigdirs="$noconfigdirs gas ld"
3761     ;;
3762   alpha*-*-*vms*)
3763     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3764     ;;
3765   alpha*-*-*)
3766     # newlib is not 64 bit ready
3767     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3768     ;;
3769   bpf-*-*)
3770     noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3771     ;;
3772   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3773     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3774     ;;
3775   arc*-*-*)
3776     noconfigdirs="$noconfigdirs sim"
3777     ;;
3778   arm-*-pe*)
3779     noconfigdirs="$noconfigdirs target-libgloss"
3780     ;;
3781   arm-*-riscix*)
3782     noconfigdirs="$noconfigdirs ld target-libgloss"
3783     ;;
3784   avr-*-*)
3785     if test x${with_avrlibc} != xno; then
3786       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3787     fi
3788     ;;
3789   c4x-*-* | tic4x-*-*)
3790     noconfigdirs="$noconfigdirs target-libgloss"
3791     ;;
3792   tic54x-*-*)
3793     noconfigdirs="$noconfigdirs target-libgloss gdb"
3794     ;;
3795   d10v-*-*)
3796     noconfigdirs="$noconfigdirs target-libgloss"
3797     ;;
3798   d30v-*-*)
3799     noconfigdirs="$noconfigdirs gdb"
3800     ;;
3801   fr30-*-elf*)
3802     noconfigdirs="$noconfigdirs gdb"
3803     ;;
3804   ft32-*-*)
3805     noconfigdirs="$noconfigdirs target-rda gprof"
3806     ;;
3807   moxie-*-*)
3808     noconfigdirs="$noconfigdirs"
3809     ;;
3810   h8300*-*-*)
3811     noconfigdirs="$noconfigdirs target-libgloss"
3812     ;;
3813   h8500-*-*)
3814     noconfigdirs="$noconfigdirs target-libgloss"
3815     ;;
3816   hppa*64*-*-hpux*)
3817     noconfigdirs="$noconfigdirs gdb"
3818     ;;
3819   hppa*64*-*-linux*)
3820     ;;
3821   hppa*-*-linux*)
3822     ;;
3823   hppa*-*-*elf* | \
3824   hppa*-*-lites* | \
3825   hppa*-*-openbsd* | \
3826   hppa*64*-*-*)
3827     ;;
3828   hppa*-*-pro*)
3829     ;;
3830   hppa*-*-*)
3831     noconfigdirs="$noconfigdirs ld"
3832     ;;
3833   i960-*-*)
3834     noconfigdirs="$noconfigdirs gdb"
3835     ;;
3836   ia64*-*-elf*)
3837     # No gdb support yet.
3838     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3839     ;;
3840   ia64*-**-hpux*)
3841     # No ld support yet.
3842     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3843     ;;
3844   ia64*-*-*vms*)
3845     # No ld support yet.
3846     noconfigdirs="$noconfigdirs libgui itcl ld"
3847     ;;
3848   i[3456789]86-w64-mingw*)
3849     ;;
3850   i[3456789]86-*-mingw*)
3851     target_configdirs="$target_configdirs target-winsup"
3852     ;;
3853   *-*-cygwin*)
3854     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3855     noconfigdirs="$noconfigdirs target-libgloss"
3856     # always build newlib if winsup directory is present.
3857     if test -d "$srcdir/winsup/cygwin"; then
3858       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3859     elif test -d "$srcdir/newlib"; then
3860       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3861     fi
3862     ;;
3863   i[3456789]86-*-pe)
3864     noconfigdirs="$noconfigdirs target-libgloss"
3865     ;;
3866   i[3456789]86-*-sco3.2v5*)
3867     # The linker does not yet know about weak symbols in COFF,
3868     # and is not configured to handle mixed ELF and COFF.
3869     noconfigdirs="$noconfigdirs ld target-libgloss"
3870     ;;
3871   i[3456789]86-*-sco*)
3872     noconfigdirs="$noconfigdirs gprof target-libgloss"
3873     ;;
3874   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3875     noconfigdirs="$noconfigdirs target-libgloss"
3876     ;;
3877   i[3456789]86-*-sysv4*)
3878     noconfigdirs="$noconfigdirs target-libgloss"
3879     ;;
3880   i[3456789]86-*-beos*)
3881     noconfigdirs="$noconfigdirs gdb"
3882     ;;
3883   i[3456789]86-*-rdos*)
3884     noconfigdirs="$noconfigdirs gdb"
3885     ;;
3886   mmix-*-*)
3887     noconfigdirs="$noconfigdirs gdb"
3888     ;;
3889   mt-*-*)
3890     noconfigdirs="$noconfigdirs sim"
3891     ;;
3892   nfp-*-*)
3893     noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3894     noconfigdirs="$noconfigdirs $target_libraries"
3895     ;;
3896   pdp11-*-*)
3897     noconfigdirs="$noconfigdirs gdb gprof"
3898     ;;
3899   powerpc-*-aix*)
3900     # copied from rs6000-*-* entry
3901     noconfigdirs="$noconfigdirs gprof"
3902     ;;
3903   powerpc*-*-winnt* | powerpc*-*-pe*)
3904     target_configdirs="$target_configdirs target-winsup"
3905     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3906     # always build newlib.
3907     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3908     ;;
3909     # This is temporary until we can link against shared libraries
3910   powerpcle-*-solaris*)
3911     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3912     ;;
3913   powerpc-*-beos*)
3914     noconfigdirs="$noconfigdirs gdb"
3915     ;;
3916   rs6000-*-lynxos*)
3917     noconfigdirs="$noconfigdirs gprof"
3918     ;;
3919   rs6000-*-aix*)
3920     noconfigdirs="$noconfigdirs gprof"
3921     ;;
3922   rs6000-*-*)
3923     noconfigdirs="$noconfigdirs gprof"
3924     ;;
3925   m68k-apollo-*)
3926     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3927     ;;
3928   microblaze*)
3929     noconfigdirs="$noconfigdirs gprof"
3930     ;;
3931   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3932     if test x$with_newlib = xyes; then
3933       noconfigdirs="$noconfigdirs gprof"
3934     fi
3935     ;;
3936   mips*-*-irix5*)
3937     noconfigdirs="$noconfigdirs gprof target-libgloss"
3938     ;;
3939   mips*-*-irix6*)
3940     noconfigdirs="$noconfigdirs gprof target-libgloss"
3941     ;;
3942   mips*-*-bsd*)
3943     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3944     ;;
3945   mips*-*-linux*)
3946     ;;
3947   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3948   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3949     noconfigdirs="$noconfigdirs ld gas gprof"
3950     ;;
3951   mips*-*-*)
3952     noconfigdirs="$noconfigdirs gprof"
3953     ;;
3954   nvptx*-*-*)
3955     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3956     ;;
3957   sh-*-*)
3958     case "${target}" in
3959       sh*-*-elf)
3960          ;;
3961       *)
3962          noconfigdirs="$noconfigdirs target-libgloss" ;;
3963     esac
3964     ;;
3965   sparc-*-sunos4*)
3966     if test x${is_cross_compiler} = xno ; then
3967            use_gnu_ld=no
3968     fi
3969     ;;
3970   tic6x-*-*)
3971     noconfigdirs="$noconfigdirs sim"
3972     ;;
3973   v810-*-*)
3974     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3975     ;;
3976   vax-*-*)
3977     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3978     ;;
3979   wasm32-*-*)
3980     noconfigdirs="$noconfigdirs ld"
3981     ;;
3982   loongarch*-*-linux*)
3983     ;;
3984   loongarch*-*-*)
3985     noconfigdirs="$noconfigdirs gprof"
3986     ;;
3987 esac
3988
3989 # If we aren't building newlib, then don't build libgloss, since libgloss
3990 # depends upon some newlib header files.
3991 case "${noconfigdirs}" in
3992   *target-libgloss*) ;;
3993   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3994 esac
3995
3996 # Work in distributions that contain no compiler tools, like Autoconf.
3997 host_makefile_frag=/dev/null
3998 if test -d ${srcdir}/config ; then
3999 case "${host}" in
4000   i[3456789]86-*-msdosdjgpp*)
4001     host_makefile_frag="config/mh-djgpp"
4002     ;;
4003   *-cygwin*)
4004
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4006 $as_echo_n "checking to see if cat works as expected... " >&6; }
4007 echo a >cygwin-cat-check
4008 if test `cat cygwin-cat-check` = a ; then
4009   rm cygwin-cat-check
4010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4011 $as_echo "yes" >&6; }
4012 else
4013   rm cygwin-cat-check
4014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015 $as_echo "no" >&6; }
4016   as_fn_error $? "The cat command does not ignore carriage return characters.
4017   Please either mount the build directory in binary mode or run the following
4018   commands before running any configure script:
4019 set -o igncr
4020 export SHELLOPTS
4021   " "$LINENO" 5
4022 fi
4023
4024     host_makefile_frag="config/mh-cygwin"
4025     ;;
4026   *-mingw*)
4027     host_makefile_frag="config/mh-mingw"
4028     ;;
4029   alpha*-linux*)
4030     host_makefile_frag="config/mh-alpha-linux"
4031     ;;
4032   hppa*-hp-hpux*)
4033     host_makefile_frag="config/mh-pa"
4034     ;;
4035   hppa*-*)
4036     host_makefile_frag="config/mh-pa"
4037     ;;
4038   i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4039     host_makefile_frag="config/mh-darwin"
4040     ;;
4041   powerpc-*-aix*)
4042     host_makefile_frag="config/mh-ppc-aix"
4043     ;;
4044   rs6000-*-aix*)
4045     host_makefile_frag="config/mh-ppc-aix"
4046     ;;
4047 esac
4048 fi
4049
4050 if test "${build}" != "${host}" ; then
4051   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4052   AS_FOR_BUILD=${AS_FOR_BUILD-as}
4053   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4054   CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4055   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4056   DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4057   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4058   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4059   GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4060   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4061   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4062   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4063   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4064   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4065   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4066 else
4067   AR_FOR_BUILD="\$(AR)"
4068   AS_FOR_BUILD="\$(AS)"
4069   CC_FOR_BUILD="\$(CC)"
4070   CXX_FOR_BUILD="\$(CXX)"
4071   DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4072   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4073   GOC_FOR_BUILD="\$(GOC)"
4074   GDC_FOR_BUILD="\$(GDC)"
4075   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4076   LD_FOR_BUILD="\$(LD)"
4077   NM_FOR_BUILD="\$(NM)"
4078   RANLIB_FOR_BUILD="\$(RANLIB)"
4079   WINDRES_FOR_BUILD="\$(WINDRES)"
4080   WINDMC_FOR_BUILD="\$(WINDMC)"
4081 fi
4082
4083 ac_ext=c
4084 ac_cpp='$CPP $CPPFLAGS'
4085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4088 if test -n "$ac_tool_prefix"; then
4089   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4090 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if ${ac_cv_prog_CC+:} false; then :
4094   $as_echo_n "(cached) " >&6
4095 else
4096   if test -n "$CC"; then
4097   ac_cv_prog_CC="$CC" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4101 do
4102   IFS=$as_save_IFS
4103   test -z "$as_dir" && as_dir=.
4104     for ac_exec_ext in '' $ac_executable_extensions; do
4105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108     break 2
4109   fi
4110 done
4111   done
4112 IFS=$as_save_IFS
4113
4114 fi
4115 fi
4116 CC=$ac_cv_prog_CC
4117 if test -n "$CC"; then
4118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4119 $as_echo "$CC" >&6; }
4120 else
4121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4123 fi
4124
4125
4126 fi
4127 if test -z "$ac_cv_prog_CC"; then
4128   ac_ct_CC=$CC
4129   # Extract the first word of "gcc", so it can be a program name with args.
4130 set dummy gcc; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4134   $as_echo_n "(cached) " >&6
4135 else
4136   if test -n "$ac_ct_CC"; then
4137   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4141 do
4142   IFS=$as_save_IFS
4143   test -z "$as_dir" && as_dir=.
4144     for ac_exec_ext in '' $ac_executable_extensions; do
4145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146     ac_cv_prog_ac_ct_CC="gcc"
4147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148     break 2
4149   fi
4150 done
4151   done
4152 IFS=$as_save_IFS
4153
4154 fi
4155 fi
4156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4157 if test -n "$ac_ct_CC"; then
4158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4159 $as_echo "$ac_ct_CC" >&6; }
4160 else
4161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 $as_echo "no" >&6; }
4163 fi
4164
4165   if test "x$ac_ct_CC" = x; then
4166     CC=""
4167   else
4168     case $cross_compiling:$ac_tool_warned in
4169 yes:)
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4172 ac_tool_warned=yes ;;
4173 esac
4174     CC=$ac_ct_CC
4175   fi
4176 else
4177   CC="$ac_cv_prog_CC"
4178 fi
4179
4180 if test -z "$CC"; then
4181           if test -n "$ac_tool_prefix"; then
4182     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4183 set dummy ${ac_tool_prefix}cc; ac_word=$2
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185 $as_echo_n "checking for $ac_word... " >&6; }
4186 if ${ac_cv_prog_CC+:} false; then :
4187   $as_echo_n "(cached) " >&6
4188 else
4189   if test -n "$CC"; then
4190   ac_cv_prog_CC="$CC" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4194 do
4195   IFS=$as_save_IFS
4196   test -z "$as_dir" && as_dir=.
4197     for ac_exec_ext in '' $ac_executable_extensions; do
4198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4199     ac_cv_prog_CC="${ac_tool_prefix}cc"
4200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201     break 2
4202   fi
4203 done
4204   done
4205 IFS=$as_save_IFS
4206
4207 fi
4208 fi
4209 CC=$ac_cv_prog_CC
4210 if test -n "$CC"; then
4211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4212 $as_echo "$CC" >&6; }
4213 else
4214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4216 fi
4217
4218
4219   fi
4220 fi
4221 if test -z "$CC"; then
4222   # Extract the first word of "cc", so it can be a program name with args.
4223 set dummy cc; ac_word=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if ${ac_cv_prog_CC+:} false; then :
4227   $as_echo_n "(cached) " >&6
4228 else
4229   if test -n "$CC"; then
4230   ac_cv_prog_CC="$CC" # Let the user override the test.
4231 else
4232   ac_prog_rejected=no
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4235 do
4236   IFS=$as_save_IFS
4237   test -z "$as_dir" && as_dir=.
4238     for ac_exec_ext in '' $ac_executable_extensions; do
4239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4241        ac_prog_rejected=yes
4242        continue
4243      fi
4244     ac_cv_prog_CC="cc"
4245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246     break 2
4247   fi
4248 done
4249   done
4250 IFS=$as_save_IFS
4251
4252 if test $ac_prog_rejected = yes; then
4253   # We found a bogon in the path, so make sure we never use it.
4254   set dummy $ac_cv_prog_CC
4255   shift
4256   if test $# != 0; then
4257     # We chose a different compiler from the bogus one.
4258     # However, it has the same basename, so the bogon will be chosen
4259     # first if we set CC to just the basename; use the full file name.
4260     shift
4261     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4262   fi
4263 fi
4264 fi
4265 fi
4266 CC=$ac_cv_prog_CC
4267 if test -n "$CC"; then
4268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4269 $as_echo "$CC" >&6; }
4270 else
4271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272 $as_echo "no" >&6; }
4273 fi
4274
4275
4276 fi
4277 if test -z "$CC"; then
4278   if test -n "$ac_tool_prefix"; then
4279   for ac_prog in cl.exe
4280   do
4281     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if ${ac_cv_prog_CC+:} false; then :
4286   $as_echo_n "(cached) " >&6
4287 else
4288   if test -n "$CC"; then
4289   ac_cv_prog_CC="$CC" # Let the user override the test.
4290 else
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4293 do
4294   IFS=$as_save_IFS
4295   test -z "$as_dir" && as_dir=.
4296     for ac_exec_ext in '' $ac_executable_extensions; do
4297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4300     break 2
4301   fi
4302 done
4303   done
4304 IFS=$as_save_IFS
4305
4306 fi
4307 fi
4308 CC=$ac_cv_prog_CC
4309 if test -n "$CC"; then
4310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4311 $as_echo "$CC" >&6; }
4312 else
4313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4315 fi
4316
4317
4318     test -n "$CC" && break
4319   done
4320 fi
4321 if test -z "$CC"; then
4322   ac_ct_CC=$CC
4323   for ac_prog in cl.exe
4324 do
4325   # Extract the first word of "$ac_prog", so it can be a program name with args.
4326 set dummy $ac_prog; ac_word=$2
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328 $as_echo_n "checking for $ac_word... " >&6; }
4329 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4330   $as_echo_n "(cached) " >&6
4331 else
4332   if test -n "$ac_ct_CC"; then
4333   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4334 else
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4337 do
4338   IFS=$as_save_IFS
4339   test -z "$as_dir" && as_dir=.
4340     for ac_exec_ext in '' $ac_executable_extensions; do
4341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342     ac_cv_prog_ac_ct_CC="$ac_prog"
4343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344     break 2
4345   fi
4346 done
4347   done
4348 IFS=$as_save_IFS
4349
4350 fi
4351 fi
4352 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4353 if test -n "$ac_ct_CC"; then
4354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4355 $as_echo "$ac_ct_CC" >&6; }
4356 else
4357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4359 fi
4360
4361
4362   test -n "$ac_ct_CC" && break
4363 done
4364
4365   if test "x$ac_ct_CC" = x; then
4366     CC=""
4367   else
4368     case $cross_compiling:$ac_tool_warned in
4369 yes:)
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4372 ac_tool_warned=yes ;;
4373 esac
4374     CC=$ac_ct_CC
4375   fi
4376 fi
4377
4378 fi
4379
4380
4381 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4383 as_fn_error $? "no acceptable C compiler found in \$PATH
4384 See \`config.log' for more details" "$LINENO" 5; }
4385
4386 # Provide some information about the compiler.
4387 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4388 set X $ac_compile
4389 ac_compiler=$2
4390 for ac_option in --version -v -V -qversion; do
4391   { { ac_try="$ac_compiler $ac_option >&5"
4392 case "(($ac_try" in
4393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394   *) ac_try_echo=$ac_try;;
4395 esac
4396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4397 $as_echo "$ac_try_echo"; } >&5
4398   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4399   ac_status=$?
4400   if test -s conftest.err; then
4401     sed '10a\
4402 ... rest of stderr output deleted ...
4403          10q' conftest.err >conftest.er1
4404     cat conftest.er1 >&5
4405   fi
4406   rm -f conftest.er1 conftest.err
4407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4408   test $ac_status = 0; }
4409 done
4410
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h.  */
4413
4414 int
4415 main ()
4416 {
4417
4418   ;
4419   return 0;
4420 }
4421 _ACEOF
4422 ac_clean_files_save=$ac_clean_files
4423 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4424 # Try to create an executable without -o first, disregard a.out.
4425 # It will help us diagnose broken compilers, and finding out an intuition
4426 # of exeext.
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4428 $as_echo_n "checking whether the C compiler works... " >&6; }
4429 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4430
4431 # The possible output files:
4432 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4433
4434 ac_rmfiles=
4435 for ac_file in $ac_files
4436 do
4437   case $ac_file in
4438     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4439     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4440   esac
4441 done
4442 rm -f $ac_rmfiles
4443
4444 if { { ac_try="$ac_link_default"
4445 case "(($ac_try" in
4446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447   *) ac_try_echo=$ac_try;;
4448 esac
4449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4450 $as_echo "$ac_try_echo"; } >&5
4451   (eval "$ac_link_default") 2>&5
4452   ac_status=$?
4453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4454   test $ac_status = 0; }; then :
4455   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4456 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4457 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4458 # so that the user can short-circuit this test for compilers unknown to
4459 # Autoconf.
4460 for ac_file in $ac_files ''
4461 do
4462   test -f "$ac_file" || continue
4463   case $ac_file in
4464     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4465         ;;
4466     [ab].out )
4467         # We found the default executable, but exeext='' is most
4468         # certainly right.
4469         break;;
4470     *.* )
4471         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4472         then :; else
4473            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4474         fi
4475         # We set ac_cv_exeext here because the later test for it is not
4476         # safe: cross compilers may not add the suffix if given an `-o'
4477         # argument, so we may need to know it at that point already.
4478         # Even if this section looks crufty: it has the advantage of
4479         # actually working.
4480         break;;
4481     * )
4482         break;;
4483   esac
4484 done
4485 test "$ac_cv_exeext" = no && ac_cv_exeext=
4486
4487 else
4488   ac_file=''
4489 fi
4490 if test -z "$ac_file"; then :
4491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 $as_echo "no" >&6; }
4493 $as_echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4495
4496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4498 as_fn_error 77 "C compiler cannot create executables
4499 See \`config.log' for more details" "$LINENO" 5; }
4500 else
4501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4502 $as_echo "yes" >&6; }
4503 fi
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4505 $as_echo_n "checking for C compiler default output file name... " >&6; }
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4507 $as_echo "$ac_file" >&6; }
4508 ac_exeext=$ac_cv_exeext
4509
4510 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4511 ac_clean_files=$ac_clean_files_save
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4513 $as_echo_n "checking for suffix of executables... " >&6; }
4514 if { { ac_try="$ac_link"
4515 case "(($ac_try" in
4516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517   *) ac_try_echo=$ac_try;;
4518 esac
4519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4520 $as_echo "$ac_try_echo"; } >&5
4521   (eval "$ac_link") 2>&5
4522   ac_status=$?
4523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524   test $ac_status = 0; }; then :
4525   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4526 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4527 # work properly (i.e., refer to `conftest.exe'), while it won't with
4528 # `rm'.
4529 for ac_file in conftest.exe conftest conftest.*; do
4530   test -f "$ac_file" || continue
4531   case $ac_file in
4532     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4533     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4534           break;;
4535     * ) break;;
4536   esac
4537 done
4538 else
4539   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4541 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4542 See \`config.log' for more details" "$LINENO" 5; }
4543 fi
4544 rm -f conftest conftest$ac_cv_exeext
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4546 $as_echo "$ac_cv_exeext" >&6; }
4547
4548 rm -f conftest.$ac_ext
4549 EXEEXT=$ac_cv_exeext
4550 ac_exeext=$EXEEXT
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h.  */
4553 #include <stdio.h>
4554 int
4555 main ()
4556 {
4557 FILE *f = fopen ("conftest.out", "w");
4558  return ferror (f) || fclose (f) != 0;
4559
4560   ;
4561   return 0;
4562 }
4563 _ACEOF
4564 ac_clean_files="$ac_clean_files conftest.out"
4565 # Check that the compiler produces executables we can run.  If not, either
4566 # the compiler is broken, or we cross compile.
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4568 $as_echo_n "checking whether we are cross compiling... " >&6; }
4569 if test "$cross_compiling" != yes; then
4570   { { ac_try="$ac_link"
4571 case "(($ac_try" in
4572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573   *) ac_try_echo=$ac_try;;
4574 esac
4575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4576 $as_echo "$ac_try_echo"; } >&5
4577   (eval "$ac_link") 2>&5
4578   ac_status=$?
4579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4580   test $ac_status = 0; }
4581   if { ac_try='./conftest$ac_cv_exeext'
4582   { { case "(($ac_try" in
4583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584   *) ac_try_echo=$ac_try;;
4585 esac
4586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4587 $as_echo "$ac_try_echo"; } >&5
4588   (eval "$ac_try") 2>&5
4589   ac_status=$?
4590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4591   test $ac_status = 0; }; }; then
4592     cross_compiling=no
4593   else
4594     if test "$cross_compiling" = maybe; then
4595         cross_compiling=yes
4596     else
4597         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4599 as_fn_error $? "cannot run C compiled programs.
4600 If you meant to cross compile, use \`--host'.
4601 See \`config.log' for more details" "$LINENO" 5; }
4602     fi
4603   fi
4604 fi
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4606 $as_echo "$cross_compiling" >&6; }
4607
4608 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4609 ac_clean_files=$ac_clean_files_save
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4611 $as_echo_n "checking for suffix of object files... " >&6; }
4612 if ${ac_cv_objext+:} false; then :
4613   $as_echo_n "(cached) " >&6
4614 else
4615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h.  */
4617
4618 int
4619 main ()
4620 {
4621
4622   ;
4623   return 0;
4624 }
4625 _ACEOF
4626 rm -f conftest.o conftest.obj
4627 if { { ac_try="$ac_compile"
4628 case "(($ac_try" in
4629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630   *) ac_try_echo=$ac_try;;
4631 esac
4632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4633 $as_echo "$ac_try_echo"; } >&5
4634   (eval "$ac_compile") 2>&5
4635   ac_status=$?
4636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4637   test $ac_status = 0; }; then :
4638   for ac_file in conftest.o conftest.obj conftest.*; do
4639   test -f "$ac_file" || continue;
4640   case $ac_file in
4641     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4642     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4643        break;;
4644   esac
4645 done
4646 else
4647   $as_echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4649
4650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4652 as_fn_error $? "cannot compute suffix of object files: cannot compile
4653 See \`config.log' for more details" "$LINENO" 5; }
4654 fi
4655 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4656 fi
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4658 $as_echo "$ac_cv_objext" >&6; }
4659 OBJEXT=$ac_cv_objext
4660 ac_objext=$OBJEXT
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4662 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4663 if ${ac_cv_c_compiler_gnu+:} false; then :
4664   $as_echo_n "(cached) " >&6
4665 else
4666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h.  */
4668
4669 int
4670 main ()
4671 {
4672 #ifndef __GNUC__
4673        choke me
4674 #endif
4675
4676   ;
4677   return 0;
4678 }
4679 _ACEOF
4680 if ac_fn_c_try_compile "$LINENO"; then :
4681   ac_compiler_gnu=yes
4682 else
4683   ac_compiler_gnu=no
4684 fi
4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4687
4688 fi
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4690 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4691 if test $ac_compiler_gnu = yes; then
4692   GCC=yes
4693 else
4694   GCC=
4695 fi
4696 ac_test_CFLAGS=${CFLAGS+set}
4697 ac_save_CFLAGS=$CFLAGS
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4699 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4700 if ${ac_cv_prog_cc_g+:} false; then :
4701   $as_echo_n "(cached) " >&6
4702 else
4703   ac_save_c_werror_flag=$ac_c_werror_flag
4704    ac_c_werror_flag=yes
4705    ac_cv_prog_cc_g=no
4706    CFLAGS="-g"
4707    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h.  */
4709
4710 int
4711 main ()
4712 {
4713
4714   ;
4715   return 0;
4716 }
4717 _ACEOF
4718 if ac_fn_c_try_compile "$LINENO"; then :
4719   ac_cv_prog_cc_g=yes
4720 else
4721   CFLAGS=""
4722       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h.  */
4724
4725 int
4726 main ()
4727 {
4728
4729   ;
4730   return 0;
4731 }
4732 _ACEOF
4733 if ac_fn_c_try_compile "$LINENO"; then :
4734
4735 else
4736   ac_c_werror_flag=$ac_save_c_werror_flag
4737          CFLAGS="-g"
4738          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h.  */
4740
4741 int
4742 main ()
4743 {
4744
4745   ;
4746   return 0;
4747 }
4748 _ACEOF
4749 if ac_fn_c_try_compile "$LINENO"; then :
4750   ac_cv_prog_cc_g=yes
4751 fi
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 fi
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 fi
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757    ac_c_werror_flag=$ac_save_c_werror_flag
4758 fi
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4760 $as_echo "$ac_cv_prog_cc_g" >&6; }
4761 if test "$ac_test_CFLAGS" = set; then
4762   CFLAGS=$ac_save_CFLAGS
4763 elif test $ac_cv_prog_cc_g = yes; then
4764   if test "$GCC" = yes; then
4765     CFLAGS="-g -O2"
4766   else
4767     CFLAGS="-g"
4768   fi
4769 else
4770   if test "$GCC" = yes; then
4771     CFLAGS="-O2"
4772   else
4773     CFLAGS=
4774   fi
4775 fi
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4777 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4778 if ${ac_cv_prog_cc_c89+:} false; then :
4779   $as_echo_n "(cached) " >&6
4780 else
4781   ac_cv_prog_cc_c89=no
4782 ac_save_CC=$CC
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h.  */
4785 #include <stdarg.h>
4786 #include <stdio.h>
4787 struct stat;
4788 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4789 struct buf { int x; };
4790 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4791 static char *e (p, i)
4792      char **p;
4793      int i;
4794 {
4795   return p[i];
4796 }
4797 static char *f (char * (*g) (char **, int), char **p, ...)
4798 {
4799   char *s;
4800   va_list v;
4801   va_start (v,p);
4802   s = g (p, va_arg (v,int));
4803   va_end (v);
4804   return s;
4805 }
4806
4807 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4808    function prototypes and stuff, but not '\xHH' hex character constants.
4809    These don't provoke an error unfortunately, instead are silently treated
4810    as 'x'.  The following induces an error, until -std is added to get
4811    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4812    array size at least.  It's necessary to write '\x00'==0 to get something
4813    that's true only with -std.  */
4814 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4815
4816 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4817    inside strings and character constants.  */
4818 #define FOO(x) 'x'
4819 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4820
4821 int test (int i, double x);
4822 struct s1 {int (*f) (int a);};
4823 struct s2 {int (*f) (double a);};
4824 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4825 int argc;
4826 char **argv;
4827 int
4828 main ()
4829 {
4830 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4831   ;
4832   return 0;
4833 }
4834 _ACEOF
4835 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4836         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4837 do
4838   CC="$ac_save_CC $ac_arg"
4839   if ac_fn_c_try_compile "$LINENO"; then :
4840   ac_cv_prog_cc_c89=$ac_arg
4841 fi
4842 rm -f core conftest.err conftest.$ac_objext
4843   test "x$ac_cv_prog_cc_c89" != "xno" && break
4844 done
4845 rm -f conftest.$ac_ext
4846 CC=$ac_save_CC
4847
4848 fi
4849 # AC_CACHE_VAL
4850 case "x$ac_cv_prog_cc_c89" in
4851   x)
4852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4853 $as_echo "none needed" >&6; } ;;
4854   xno)
4855     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4856 $as_echo "unsupported" >&6; } ;;
4857   *)
4858     CC="$CC $ac_cv_prog_cc_c89"
4859     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4860 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4861 esac
4862 if test "x$ac_cv_prog_cc_c89" != xno; then :
4863
4864 fi
4865
4866 ac_ext=c
4867 ac_cpp='$CPP $CPPFLAGS'
4868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4871
4872    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4873 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4874 if ${ac_cv_prog_cc_c99+:} false; then :
4875   $as_echo_n "(cached) " >&6
4876 else
4877   ac_cv_prog_cc_c99=no
4878 ac_save_CC=$CC
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h.  */
4881 #include <stdarg.h>
4882 #include <stdbool.h>
4883 #include <stdlib.h>
4884 #include <wchar.h>
4885 #include <stdio.h>
4886
4887 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4888 #define debug(...) fprintf (stderr, __VA_ARGS__)
4889 #define showlist(...) puts (#__VA_ARGS__)
4890 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4891 static void
4892 test_varargs_macros (void)
4893 {
4894   int x = 1234;
4895   int y = 5678;
4896   debug ("Flag");
4897   debug ("X = %d\n", x);
4898   showlist (The first, second, and third items.);
4899   report (x>y, "x is %d but y is %d", x, y);
4900 }
4901
4902 // Check long long types.
4903 #define BIG64 18446744073709551615ull
4904 #define BIG32 4294967295ul
4905 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4906 #if !BIG_OK
4907   your preprocessor is broken;
4908 #endif
4909 #if BIG_OK
4910 #else
4911   your preprocessor is broken;
4912 #endif
4913 static long long int bignum = -9223372036854775807LL;
4914 static unsigned long long int ubignum = BIG64;
4915
4916 struct incomplete_array
4917 {
4918   int datasize;
4919   double data[];
4920 };
4921
4922 struct named_init {
4923   int number;
4924   const wchar_t *name;
4925   double average;
4926 };
4927
4928 typedef const char *ccp;
4929
4930 static inline int
4931 test_restrict (ccp restrict text)
4932 {
4933   // See if C++-style comments work.
4934   // Iterate through items via the restricted pointer.
4935   // Also check for declarations in for loops.
4936   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4937     continue;
4938   return 0;
4939 }
4940
4941 // Check varargs and va_copy.
4942 static void
4943 test_varargs (const char *format, ...)
4944 {
4945   va_list args;
4946   va_start (args, format);
4947   va_list args_copy;
4948   va_copy (args_copy, args);
4949
4950   const char *str;
4951   int number;
4952   float fnumber;
4953
4954   while (*format)
4955     {
4956       switch (*format++)
4957         {
4958         case 's': // string
4959           str = va_arg (args_copy, const char *);
4960           break;
4961         case 'd': // int
4962           number = va_arg (args_copy, int);
4963           break;
4964         case 'f': // float
4965           fnumber = va_arg (args_copy, double);
4966           break;
4967         default:
4968           break;
4969         }
4970     }
4971   va_end (args_copy);
4972   va_end (args);
4973 }
4974
4975 int
4976 main ()
4977 {
4978
4979   // Check bool.
4980   _Bool success = false;
4981
4982   // Check restrict.
4983   if (test_restrict ("String literal") == 0)
4984     success = true;
4985   char *restrict newvar = "Another string";
4986
4987   // Check varargs.
4988   test_varargs ("s, d' f .", "string", 65, 34.234);
4989   test_varargs_macros ();
4990
4991   // Check flexible array members.
4992   struct incomplete_array *ia =
4993     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4994   ia->datasize = 10;
4995   for (int i = 0; i < ia->datasize; ++i)
4996     ia->data[i] = i * 1.234;
4997
4998   // Check named initializers.
4999   struct named_init ni = {
5000     .number = 34,
5001     .name = L"Test wide string",
5002     .average = 543.34343,
5003   };
5004
5005   ni.number = 58;
5006
5007   int dynamic_array[ni.number];
5008   dynamic_array[ni.number - 1] = 543;
5009
5010   // work around unused variable warnings
5011   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5012           || dynamic_array[ni.number - 1] != 543);
5013
5014   ;
5015   return 0;
5016 }
5017 _ACEOF
5018 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5019 do
5020   CC="$ac_save_CC $ac_arg"
5021   if ac_fn_c_try_compile "$LINENO"; then :
5022   ac_cv_prog_cc_c99=$ac_arg
5023 fi
5024 rm -f core conftest.err conftest.$ac_objext
5025   test "x$ac_cv_prog_cc_c99" != "xno" && break
5026 done
5027 rm -f conftest.$ac_ext
5028 CC=$ac_save_CC
5029
5030 fi
5031 # AC_CACHE_VAL
5032 case "x$ac_cv_prog_cc_c99" in
5033   x)
5034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5035 $as_echo "none needed" >&6; } ;;
5036   xno)
5037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5038 $as_echo "unsupported" >&6; } ;;
5039   *)
5040     CC="$CC $ac_cv_prog_cc_c99"
5041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5042 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5043 esac
5044 if test "x$ac_cv_prog_cc_c99" != xno; then :
5045
5046 fi
5047
5048
5049 ac_ext=cpp
5050 ac_cpp='$CXXCPP $CPPFLAGS'
5051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5054 if test -z "$CXX"; then
5055   if test -n "$CCC"; then
5056     CXX=$CCC
5057   else
5058     if test -n "$ac_tool_prefix"; then
5059   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5060   do
5061     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_CXX+:} false; then :
5066   $as_echo_n "(cached) " >&6
5067 else
5068   if test -n "$CXX"; then
5069   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076     for ac_exec_ext in '' $ac_executable_extensions; do
5077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083   done
5084 IFS=$as_save_IFS
5085
5086 fi
5087 fi
5088 CXX=$ac_cv_prog_CXX
5089 if test -n "$CXX"; then
5090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5091 $as_echo "$CXX" >&6; }
5092 else
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096
5097
5098     test -n "$CXX" && break
5099   done
5100 fi
5101 if test -z "$CXX"; then
5102   ac_ct_CXX=$CXX
5103   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5104 do
5105   # Extract the first word of "$ac_prog", so it can be a program name with args.
5106 set dummy $ac_prog; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5110   $as_echo_n "(cached) " >&6
5111 else
5112   if test -n "$ac_ct_CXX"; then
5113   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118   IFS=$as_save_IFS
5119   test -z "$as_dir" && as_dir=.
5120     for ac_exec_ext in '' $ac_executable_extensions; do
5121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122     ac_cv_prog_ac_ct_CXX="$ac_prog"
5123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124     break 2
5125   fi
5126 done
5127   done
5128 IFS=$as_save_IFS
5129
5130 fi
5131 fi
5132 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5133 if test -n "$ac_ct_CXX"; then
5134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5135 $as_echo "$ac_ct_CXX" >&6; }
5136 else
5137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5139 fi
5140
5141
5142   test -n "$ac_ct_CXX" && break
5143 done
5144
5145   if test "x$ac_ct_CXX" = x; then
5146     CXX="g++"
5147   else
5148     case $cross_compiling:$ac_tool_warned in
5149 yes:)
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5152 ac_tool_warned=yes ;;
5153 esac
5154     CXX=$ac_ct_CXX
5155   fi
5156 fi
5157
5158   fi
5159 fi
5160 # Provide some information about the compiler.
5161 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5162 set X $ac_compile
5163 ac_compiler=$2
5164 for ac_option in --version -v -V -qversion; do
5165   { { ac_try="$ac_compiler $ac_option >&5"
5166 case "(($ac_try" in
5167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168   *) ac_try_echo=$ac_try;;
5169 esac
5170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5171 $as_echo "$ac_try_echo"; } >&5
5172   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5173   ac_status=$?
5174   if test -s conftest.err; then
5175     sed '10a\
5176 ... rest of stderr output deleted ...
5177          10q' conftest.err >conftest.er1
5178     cat conftest.er1 >&5
5179   fi
5180   rm -f conftest.er1 conftest.err
5181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5182   test $ac_status = 0; }
5183 done
5184
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5186 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5187 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5188   $as_echo_n "(cached) " >&6
5189 else
5190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h.  */
5192
5193 int
5194 main ()
5195 {
5196 #ifndef __GNUC__
5197        choke me
5198 #endif
5199
5200   ;
5201   return 0;
5202 }
5203 _ACEOF
5204 if ac_fn_cxx_try_compile "$LINENO"; then :
5205   ac_compiler_gnu=yes
5206 else
5207   ac_compiler_gnu=no
5208 fi
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5211
5212 fi
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5214 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5215 if test $ac_compiler_gnu = yes; then
5216   GXX=yes
5217 else
5218   GXX=
5219 fi
5220 ac_test_CXXFLAGS=${CXXFLAGS+set}
5221 ac_save_CXXFLAGS=$CXXFLAGS
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5223 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5224 if ${ac_cv_prog_cxx_g+:} false; then :
5225   $as_echo_n "(cached) " >&6
5226 else
5227   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5228    ac_cxx_werror_flag=yes
5229    ac_cv_prog_cxx_g=no
5230    CXXFLAGS="-g"
5231    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h.  */
5233
5234 int
5235 main ()
5236 {
5237
5238   ;
5239   return 0;
5240 }
5241 _ACEOF
5242 if ac_fn_cxx_try_compile "$LINENO"; then :
5243   ac_cv_prog_cxx_g=yes
5244 else
5245   CXXFLAGS=""
5246       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h.  */
5248
5249 int
5250 main ()
5251 {
5252
5253   ;
5254   return 0;
5255 }
5256 _ACEOF
5257 if ac_fn_cxx_try_compile "$LINENO"; then :
5258
5259 else
5260   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5261          CXXFLAGS="-g"
5262          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h.  */
5264
5265 int
5266 main ()
5267 {
5268
5269   ;
5270   return 0;
5271 }
5272 _ACEOF
5273 if ac_fn_cxx_try_compile "$LINENO"; then :
5274   ac_cv_prog_cxx_g=yes
5275 fi
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 fi
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 fi
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5282 fi
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5284 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5285 if test "$ac_test_CXXFLAGS" = set; then
5286   CXXFLAGS=$ac_save_CXXFLAGS
5287 elif test $ac_cv_prog_cxx_g = yes; then
5288   if test "$GXX" = yes; then
5289     CXXFLAGS="-g -O2"
5290   else
5291     CXXFLAGS="-g"
5292   fi
5293 else
5294   if test "$GXX" = yes; then
5295     CXXFLAGS="-O2"
5296   else
5297     CXXFLAGS=
5298   fi
5299 fi
5300 ac_ext=c
5301 ac_cpp='$CPP $CPPFLAGS'
5302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305
5306
5307 # We must set the default linker to the linker used by gcc for the correct
5308 # operation of libtool.  If LD is not defined and we are using gcc, try to
5309 # set the LD default to the ld used by gcc.
5310 if test -z "$LD"; then
5311   if test "$GCC" = yes; then
5312     case $build in
5313     *-*-mingw*)
5314       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5315     *)
5316       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5317     esac
5318     case $gcc_prog_ld in
5319     # Accept absolute paths.
5320     [\\/]* | [A-Za-z]:[\\/]*)
5321       LD="$gcc_prog_ld" ;;
5322     esac
5323   fi
5324 fi
5325
5326 # Check whether -static-libstdc++ -static-libgcc is supported.
5327 have_static_libs=no
5328 if test "$GCC" = yes; then
5329   saved_LDFLAGS="$LDFLAGS"
5330
5331   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5333 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5334   ac_ext=cpp
5335 ac_cpp='$CXXCPP $CPPFLAGS'
5336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5339
5340
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h.  */
5343
5344 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5345 #error -static-libstdc++ not implemented
5346 #endif
5347 int main() {}
5348 _ACEOF
5349 if ac_fn_cxx_try_link "$LINENO"; then :
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }; have_static_libs=yes
5352 else
5353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5355 fi
5356 rm -f core conftest.err conftest.$ac_objext \
5357     conftest$ac_exeext conftest.$ac_ext
5358   ac_ext=c
5359 ac_cpp='$CPP $CPPFLAGS'
5360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5363
5364
5365   LDFLAGS="$saved_LDFLAGS"
5366 fi
5367
5368
5369
5370
5371 if test -n "$ac_tool_prefix"; then
5372   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5373 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375 $as_echo_n "checking for $ac_word... " >&6; }
5376 if ${ac_cv_prog_GNATBIND+:} false; then :
5377   $as_echo_n "(cached) " >&6
5378 else
5379   if test -n "$GNATBIND"; then
5380   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5381 else
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5384 do
5385   IFS=$as_save_IFS
5386   test -z "$as_dir" && as_dir=.
5387     for ac_exec_ext in '' $ac_executable_extensions; do
5388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391     break 2
5392   fi
5393 done
5394   done
5395 IFS=$as_save_IFS
5396
5397 fi
5398 fi
5399 GNATBIND=$ac_cv_prog_GNATBIND
5400 if test -n "$GNATBIND"; then
5401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5402 $as_echo "$GNATBIND" >&6; }
5403 else
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5406 fi
5407
5408
5409 fi
5410 if test -z "$ac_cv_prog_GNATBIND"; then
5411   ac_ct_GNATBIND=$GNATBIND
5412   # Extract the first word of "gnatbind", so it can be a program name with args.
5413 set dummy gnatbind; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5417   $as_echo_n "(cached) " >&6
5418 else
5419   if test -n "$ac_ct_GNATBIND"; then
5420   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5421 else
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5424 do
5425   IFS=$as_save_IFS
5426   test -z "$as_dir" && as_dir=.
5427     for ac_exec_ext in '' $ac_executable_extensions; do
5428   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5429     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431     break 2
5432   fi
5433 done
5434   done
5435 IFS=$as_save_IFS
5436
5437 fi
5438 fi
5439 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5440 if test -n "$ac_ct_GNATBIND"; then
5441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5442 $as_echo "$ac_ct_GNATBIND" >&6; }
5443 else
5444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5446 fi
5447
5448   if test "x$ac_ct_GNATBIND" = x; then
5449     GNATBIND="no"
5450   else
5451     case $cross_compiling:$ac_tool_warned in
5452 yes:)
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5455 ac_tool_warned=yes ;;
5456 esac
5457     GNATBIND=$ac_ct_GNATBIND
5458   fi
5459 else
5460   GNATBIND="$ac_cv_prog_GNATBIND"
5461 fi
5462
5463 if test -n "$ac_tool_prefix"; then
5464   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5465 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if ${ac_cv_prog_GNATMAKE+:} false; then :
5469   $as_echo_n "(cached) " >&6
5470 else
5471   if test -n "$GNATMAKE"; then
5472   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5473 else
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477   IFS=$as_save_IFS
5478   test -z "$as_dir" && as_dir=.
5479     for ac_exec_ext in '' $ac_executable_extensions; do
5480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483     break 2
5484   fi
5485 done
5486   done
5487 IFS=$as_save_IFS
5488
5489 fi
5490 fi
5491 GNATMAKE=$ac_cv_prog_GNATMAKE
5492 if test -n "$GNATMAKE"; then
5493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5494 $as_echo "$GNATMAKE" >&6; }
5495 else
5496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5498 fi
5499
5500
5501 fi
5502 if test -z "$ac_cv_prog_GNATMAKE"; then
5503   ac_ct_GNATMAKE=$GNATMAKE
5504   # Extract the first word of "gnatmake", so it can be a program name with args.
5505 set dummy gnatmake; ac_word=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5509   $as_echo_n "(cached) " >&6
5510 else
5511   if test -n "$ac_ct_GNATMAKE"; then
5512   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517   IFS=$as_save_IFS
5518   test -z "$as_dir" && as_dir=.
5519     for ac_exec_ext in '' $ac_executable_extensions; do
5520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523     break 2
5524   fi
5525 done
5526   done
5527 IFS=$as_save_IFS
5528
5529 fi
5530 fi
5531 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5532 if test -n "$ac_ct_GNATMAKE"; then
5533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5534 $as_echo "$ac_ct_GNATMAKE" >&6; }
5535 else
5536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5538 fi
5539
5540   if test "x$ac_ct_GNATMAKE" = x; then
5541     GNATMAKE="no"
5542   else
5543     case $cross_compiling:$ac_tool_warned in
5544 yes:)
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5547 ac_tool_warned=yes ;;
5548 esac
5549     GNATMAKE=$ac_ct_GNATMAKE
5550   fi
5551 else
5552   GNATMAKE="$ac_cv_prog_GNATMAKE"
5553 fi
5554
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5556 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5557 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5558   $as_echo_n "(cached) " >&6
5559 else
5560   cat >conftest.adb <<EOF
5561 pragma Warnings (Off);
5562 with System.CRTL;
5563 pragma Warnings (On);
5564 use type System.CRTL.int64;
5565 procedure conftest is begin null; end conftest;
5566 EOF
5567 acx_cv_cc_gcc_supports_ada=no
5568 # There is a bug in old released versions of GCC which causes the
5569 # driver to exit successfully when the appropriate language module
5570 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5571 # Therefore we must check for the error message as well as an
5572 # unsuccessful exit.
5573 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5574 # given a .adb file, but produce no object file.  So we must check
5575 # if an object file was really produced to guard against this.
5576 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5577 if test x"$errors" = x && test -f conftest.$ac_objext; then
5578   acx_cv_cc_gcc_supports_ada=yes
5579 fi
5580 rm -f conftest.*
5581 fi
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5583 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5584
5585 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5586   have_gnat=yes
5587 else
5588   have_gnat=no
5589 fi
5590
5591
5592
5593 if test -n "$ac_tool_prefix"; then
5594   # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5595 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597 $as_echo_n "checking for $ac_word... " >&6; }
5598 if ${ac_cv_prog_GDC+:} false; then :
5599   $as_echo_n "(cached) " >&6
5600 else
5601   if test -n "$GDC"; then
5602   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5603 else
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5606 do
5607   IFS=$as_save_IFS
5608   test -z "$as_dir" && as_dir=.
5609     for ac_exec_ext in '' $ac_executable_extensions; do
5610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611     ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613     break 2
5614   fi
5615 done
5616   done
5617 IFS=$as_save_IFS
5618
5619 fi
5620 fi
5621 GDC=$ac_cv_prog_GDC
5622 if test -n "$GDC"; then
5623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5624 $as_echo "$GDC" >&6; }
5625 else
5626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627 $as_echo "no" >&6; }
5628 fi
5629
5630
5631 fi
5632 if test -z "$ac_cv_prog_GDC"; then
5633   ac_ct_GDC=$GDC
5634   # Extract the first word of "gdc", so it can be a program name with args.
5635 set dummy gdc; ac_word=$2
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637 $as_echo_n "checking for $ac_word... " >&6; }
5638 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5639   $as_echo_n "(cached) " >&6
5640 else
5641   if test -n "$ac_ct_GDC"; then
5642   ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5643 else
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5646 do
5647   IFS=$as_save_IFS
5648   test -z "$as_dir" && as_dir=.
5649     for ac_exec_ext in '' $ac_executable_extensions; do
5650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651     ac_cv_prog_ac_ct_GDC="gdc"
5652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653     break 2
5654   fi
5655 done
5656   done
5657 IFS=$as_save_IFS
5658
5659 fi
5660 fi
5661 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5662 if test -n "$ac_ct_GDC"; then
5663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5664 $as_echo "$ac_ct_GDC" >&6; }
5665 else
5666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5668 fi
5669
5670   if test "x$ac_ct_GDC" = x; then
5671     GDC="no"
5672   else
5673     case $cross_compiling:$ac_tool_warned in
5674 yes:)
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5677 ac_tool_warned=yes ;;
5678 esac
5679     GDC=$ac_ct_GDC
5680   fi
5681 else
5682   GDC="$ac_cv_prog_GDC"
5683 fi
5684
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5686 $as_echo_n "checking whether the D compiler works... " >&6; }
5687 if ${acx_cv_d_compiler_works+:} false; then :
5688   $as_echo_n "(cached) " >&6
5689 else
5690   cat >conftest.d <<EOF
5691 module conftest; int main() { return 0; }
5692 EOF
5693 acx_cv_d_compiler_works=no
5694 if test "x$GDC" != xno; then
5695   errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5696   if test x"$errors" = x && test -f conftest.$ac_objext; then
5697     acx_cv_d_compiler_works=yes
5698   fi
5699   rm -f conftest.*
5700 fi
5701 fi
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5703 $as_echo "$acx_cv_d_compiler_works" >&6; }
5704 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5705   have_gdc=yes
5706 else
5707   have_gdc=no
5708 fi
5709
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5711 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5712 if ${gcc_cv_prog_cmp_skip+:} false; then :
5713   $as_echo_n "(cached) " >&6
5714 else
5715    echo abfoo >t1
5716   echo cdfoo >t2
5717   gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5718   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5719     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5720       :
5721     else
5722       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5723     fi
5724   fi
5725   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5726     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5727       :
5728     else
5729       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5730     fi
5731   fi
5732   rm t1 t2
5733
5734 fi
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5736 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5737 do_compare="$gcc_cv_prog_cmp_skip"
5738
5739
5740
5741 # Check whether --enable-bootstrap was given.
5742 if test "${enable_bootstrap+set}" = set; then :
5743   enableval=$enable_bootstrap;
5744 else
5745   enable_bootstrap=default
5746 fi
5747
5748
5749 # Issue errors and warnings for invalid/strange bootstrap combinations.
5750 if test -r $srcdir/gcc/configure; then
5751   have_compiler=yes
5752 else
5753   have_compiler=no
5754 fi
5755
5756 case "$have_compiler:$host:$target:$enable_bootstrap" in
5757   *:*:*:no) ;;
5758
5759   # Default behavior.  Enable bootstrap if we have a compiler
5760   # and we are in a native configuration.
5761   yes:$build:$build:default)
5762     enable_bootstrap=yes ;;
5763
5764   *:*:*:default)
5765     enable_bootstrap=no ;;
5766
5767   # We have a compiler and we are in a native configuration, bootstrap is ok
5768   yes:$build:$build:yes)
5769     ;;
5770
5771   # Other configurations, but we have a compiler.  Assume the user knows
5772   # what he's doing.
5773   yes:*:*:yes)
5774     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5775 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5776     ;;
5777
5778   # No compiler: if they passed --enable-bootstrap explicitly, fail
5779   no:*:*:yes)
5780     as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5781
5782   # Fail if wrong command line
5783   *)
5784     as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5785     ;;
5786 esac
5787
5788 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5789 # C++11 compiler can still start the bootstrap.  Otherwise, if building GCC,
5790 # require C++11 (or higher).
5791 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5792   CXX="$CXX -std=c++11"
5793 elif test "$have_compiler" = yes; then
5794     ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
5795   ac_ext=cpp
5796 ac_cpp='$CXXCPP $CPPFLAGS'
5797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5800   ac_success=no
5801
5802       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5803 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5804 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5805   $as_echo_n "(cached) " >&6
5806 else
5807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h.  */
5809
5810
5811 // If the compiler admits that it is not ready for C++11, why torture it?
5812 // Hopefully, this will speed up the test.
5813
5814 #ifndef __cplusplus
5815
5816 #error "This is not a C++ compiler"
5817
5818 #elif __cplusplus < 201103L
5819
5820 #error "This is not a C++11 compiler"
5821
5822 #else
5823
5824 namespace cxx11
5825 {
5826
5827   namespace test_static_assert
5828   {
5829
5830     template <typename T>
5831     struct check
5832     {
5833       static_assert(sizeof(int) <= sizeof(T), "not big enough");
5834     };
5835
5836   }
5837
5838   namespace test_final_override
5839   {
5840
5841     struct Base
5842     {
5843       virtual ~Base() {}
5844       virtual void f() {}
5845     };
5846
5847     struct Derived : public Base
5848     {
5849       virtual ~Derived() override {}
5850       virtual void f() override {}
5851     };
5852
5853   }
5854
5855   namespace test_double_right_angle_brackets
5856   {
5857
5858     template < typename T >
5859     struct check {};
5860
5861     typedef check<void> single_type;
5862     typedef check<check<void>> double_type;
5863     typedef check<check<check<void>>> triple_type;
5864     typedef check<check<check<check<void>>>> quadruple_type;
5865
5866   }
5867
5868   namespace test_decltype
5869   {
5870
5871     int
5872     f()
5873     {
5874       int a = 1;
5875       decltype(a) b = 2;
5876       return a + b;
5877     }
5878
5879   }
5880
5881   namespace test_type_deduction
5882   {
5883
5884     template < typename T1, typename T2 >
5885     struct is_same
5886     {
5887       static const bool value = false;
5888     };
5889
5890     template < typename T >
5891     struct is_same<T, T>
5892     {
5893       static const bool value = true;
5894     };
5895
5896     template < typename T1, typename T2 >
5897     auto
5898     add(T1 a1, T2 a2) -> decltype(a1 + a2)
5899     {
5900       return a1 + a2;
5901     }
5902
5903     int
5904     test(const int c, volatile int v)
5905     {
5906       static_assert(is_same<int, decltype(0)>::value == true, "");
5907       static_assert(is_same<int, decltype(c)>::value == false, "");
5908       static_assert(is_same<int, decltype(v)>::value == false, "");
5909       auto ac = c;
5910       auto av = v;
5911       auto sumi = ac + av + 'x';
5912       auto sumf = ac + av + 1.0;
5913       static_assert(is_same<int, decltype(ac)>::value == true, "");
5914       static_assert(is_same<int, decltype(av)>::value == true, "");
5915       static_assert(is_same<int, decltype(sumi)>::value == true, "");
5916       static_assert(is_same<int, decltype(sumf)>::value == false, "");
5917       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5918       return (sumf > 0.0) ? sumi : add(c, v);
5919     }
5920
5921   }
5922
5923   namespace test_noexcept
5924   {
5925
5926     int f() { return 0; }
5927     int g() noexcept { return 0; }
5928
5929     static_assert(noexcept(f()) == false, "");
5930     static_assert(noexcept(g()) == true, "");
5931
5932   }
5933
5934   namespace test_constexpr
5935   {
5936
5937     template < typename CharT >
5938     unsigned long constexpr
5939     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5940     {
5941       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5942     }
5943
5944     template < typename CharT >
5945     unsigned long constexpr
5946     strlen_c(const CharT *const s) noexcept
5947     {
5948       return strlen_c_r(s, 0UL);
5949     }
5950
5951     static_assert(strlen_c("") == 0UL, "");
5952     static_assert(strlen_c("1") == 1UL, "");
5953     static_assert(strlen_c("example") == 7UL, "");
5954     static_assert(strlen_c("another\0example") == 7UL, "");
5955
5956   }
5957
5958   namespace test_rvalue_references
5959   {
5960
5961     template < int N >
5962     struct answer
5963     {
5964       static constexpr int value = N;
5965     };
5966
5967     answer<1> f(int&)       { return answer<1>(); }
5968     answer<2> f(const int&) { return answer<2>(); }
5969     answer<3> f(int&&)      { return answer<3>(); }
5970
5971     void
5972     test()
5973     {
5974       int i = 0;
5975       const int c = 0;
5976       static_assert(decltype(f(i))::value == 1, "");
5977       static_assert(decltype(f(c))::value == 2, "");
5978       static_assert(decltype(f(0))::value == 3, "");
5979     }
5980
5981   }
5982
5983   namespace test_uniform_initialization
5984   {
5985
5986     struct test
5987     {
5988       static const int zero {};
5989       static const int one {1};
5990     };
5991
5992     static_assert(test::zero == 0, "");
5993     static_assert(test::one == 1, "");
5994
5995   }
5996
5997   namespace test_lambdas
5998   {
5999
6000     void
6001     test1()
6002     {
6003       auto lambda1 = [](){};
6004       auto lambda2 = lambda1;
6005       lambda1();
6006       lambda2();
6007     }
6008
6009     int
6010     test2()
6011     {
6012       auto a = [](int i, int j){ return i + j; }(1, 2);
6013       auto b = []() -> int { return '0'; }();
6014       auto c = [=](){ return a + b; }();
6015       auto d = [&](){ return c; }();
6016       auto e = [a, &b](int x) mutable {
6017         const auto identity = [](int y){ return y; };
6018         for (auto i = 0; i < a; ++i)
6019           a += b--;
6020         return x + identity(a + b);
6021       }(0);
6022       return a + b + c + d + e;
6023     }
6024
6025     int
6026     test3()
6027     {
6028       const auto nullary = [](){ return 0; };
6029       const auto unary = [](int x){ return x; };
6030       using nullary_t = decltype(nullary);
6031       using unary_t = decltype(unary);
6032       const auto higher1st = [](nullary_t f){ return f(); };
6033       const auto higher2nd = [unary](nullary_t f1){
6034         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6035       };
6036       return higher1st(nullary) + higher2nd(nullary)(unary);
6037     }
6038
6039   }
6040
6041   namespace test_variadic_templates
6042   {
6043
6044     template <int...>
6045     struct sum;
6046
6047     template <int N0, int... N1toN>
6048     struct sum<N0, N1toN...>
6049     {
6050       static constexpr auto value = N0 + sum<N1toN...>::value;
6051     };
6052
6053     template <>
6054     struct sum<>
6055     {
6056       static constexpr auto value = 0;
6057     };
6058
6059     static_assert(sum<>::value == 0, "");
6060     static_assert(sum<1>::value == 1, "");
6061     static_assert(sum<23>::value == 23, "");
6062     static_assert(sum<1, 2>::value == 3, "");
6063     static_assert(sum<5, 5, 11>::value == 21, "");
6064     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6065
6066   }
6067
6068   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6069   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6070   // because of this.
6071   namespace test_template_alias_sfinae
6072   {
6073
6074     struct foo {};
6075
6076     template<typename T>
6077     using member = typename T::member_type;
6078
6079     template<typename T>
6080     void func(...) {}
6081
6082     template<typename T>
6083     void func(member<T>*) {}
6084
6085     void test();
6086
6087     void test() { func<foo>(0); }
6088
6089   }
6090
6091 }  // namespace cxx11
6092
6093 #endif  // __cplusplus >= 201103L
6094
6095
6096
6097 _ACEOF
6098 if ac_fn_cxx_try_compile "$LINENO"; then :
6099   ax_cv_cxx_compile_cxx11=yes
6100 else
6101   ax_cv_cxx_compile_cxx11=no
6102 fi
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 fi
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6106 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6107     if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6108       ac_success=yes
6109     fi
6110
6111     if test x$ac_success = xno; then
6112     for alternative in ${ax_cxx_compile_alternatives}; do
6113       switch="-std=gnu++${alternative}"
6114       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6115       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6116 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6117 if eval \${$cachevar+:} false; then :
6118   $as_echo_n "(cached) " >&6
6119 else
6120   ac_save_CXX="$CXX"
6121          CXX="$CXX $switch"
6122          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h.  */
6124
6125
6126 // If the compiler admits that it is not ready for C++11, why torture it?
6127 // Hopefully, this will speed up the test.
6128
6129 #ifndef __cplusplus
6130
6131 #error "This is not a C++ compiler"
6132
6133 #elif __cplusplus < 201103L
6134
6135 #error "This is not a C++11 compiler"
6136
6137 #else
6138
6139 namespace cxx11
6140 {
6141
6142   namespace test_static_assert
6143   {
6144
6145     template <typename T>
6146     struct check
6147     {
6148       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6149     };
6150
6151   }
6152
6153   namespace test_final_override
6154   {
6155
6156     struct Base
6157     {
6158       virtual ~Base() {}
6159       virtual void f() {}
6160     };
6161
6162     struct Derived : public Base
6163     {
6164       virtual ~Derived() override {}
6165       virtual void f() override {}
6166     };
6167
6168   }
6169
6170   namespace test_double_right_angle_brackets
6171   {
6172
6173     template < typename T >
6174     struct check {};
6175
6176     typedef check<void> single_type;
6177     typedef check<check<void>> double_type;
6178     typedef check<check<check<void>>> triple_type;
6179     typedef check<check<check<check<void>>>> quadruple_type;
6180
6181   }
6182
6183   namespace test_decltype
6184   {
6185
6186     int
6187     f()
6188     {
6189       int a = 1;
6190       decltype(a) b = 2;
6191       return a + b;
6192     }
6193
6194   }
6195
6196   namespace test_type_deduction
6197   {
6198
6199     template < typename T1, typename T2 >
6200     struct is_same
6201     {
6202       static const bool value = false;
6203     };
6204
6205     template < typename T >
6206     struct is_same<T, T>
6207     {
6208       static const bool value = true;
6209     };
6210
6211     template < typename T1, typename T2 >
6212     auto
6213     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6214     {
6215       return a1 + a2;
6216     }
6217
6218     int
6219     test(const int c, volatile int v)
6220     {
6221       static_assert(is_same<int, decltype(0)>::value == true, "");
6222       static_assert(is_same<int, decltype(c)>::value == false, "");
6223       static_assert(is_same<int, decltype(v)>::value == false, "");
6224       auto ac = c;
6225       auto av = v;
6226       auto sumi = ac + av + 'x';
6227       auto sumf = ac + av + 1.0;
6228       static_assert(is_same<int, decltype(ac)>::value == true, "");
6229       static_assert(is_same<int, decltype(av)>::value == true, "");
6230       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6231       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6232       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6233       return (sumf > 0.0) ? sumi : add(c, v);
6234     }
6235
6236   }
6237
6238   namespace test_noexcept
6239   {
6240
6241     int f() { return 0; }
6242     int g() noexcept { return 0; }
6243
6244     static_assert(noexcept(f()) == false, "");
6245     static_assert(noexcept(g()) == true, "");
6246
6247   }
6248
6249   namespace test_constexpr
6250   {
6251
6252     template < typename CharT >
6253     unsigned long constexpr
6254     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6255     {
6256       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6257     }
6258
6259     template < typename CharT >
6260     unsigned long constexpr
6261     strlen_c(const CharT *const s) noexcept
6262     {
6263       return strlen_c_r(s, 0UL);
6264     }
6265
6266     static_assert(strlen_c("") == 0UL, "");
6267     static_assert(strlen_c("1") == 1UL, "");
6268     static_assert(strlen_c("example") == 7UL, "");
6269     static_assert(strlen_c("another\0example") == 7UL, "");
6270
6271   }
6272
6273   namespace test_rvalue_references
6274   {
6275
6276     template < int N >
6277     struct answer
6278     {
6279       static constexpr int value = N;
6280     };
6281
6282     answer<1> f(int&)       { return answer<1>(); }
6283     answer<2> f(const int&) { return answer<2>(); }
6284     answer<3> f(int&&)      { return answer<3>(); }
6285
6286     void
6287     test()
6288     {
6289       int i = 0;
6290       const int c = 0;
6291       static_assert(decltype(f(i))::value == 1, "");
6292       static_assert(decltype(f(c))::value == 2, "");
6293       static_assert(decltype(f(0))::value == 3, "");
6294     }
6295
6296   }
6297
6298   namespace test_uniform_initialization
6299   {
6300
6301     struct test
6302     {
6303       static const int zero {};
6304       static const int one {1};
6305     };
6306
6307     static_assert(test::zero == 0, "");
6308     static_assert(test::one == 1, "");
6309
6310   }
6311
6312   namespace test_lambdas
6313   {
6314
6315     void
6316     test1()
6317     {
6318       auto lambda1 = [](){};
6319       auto lambda2 = lambda1;
6320       lambda1();
6321       lambda2();
6322     }
6323
6324     int
6325     test2()
6326     {
6327       auto a = [](int i, int j){ return i + j; }(1, 2);
6328       auto b = []() -> int { return '0'; }();
6329       auto c = [=](){ return a + b; }();
6330       auto d = [&](){ return c; }();
6331       auto e = [a, &b](int x) mutable {
6332         const auto identity = [](int y){ return y; };
6333         for (auto i = 0; i < a; ++i)
6334           a += b--;
6335         return x + identity(a + b);
6336       }(0);
6337       return a + b + c + d + e;
6338     }
6339
6340     int
6341     test3()
6342     {
6343       const auto nullary = [](){ return 0; };
6344       const auto unary = [](int x){ return x; };
6345       using nullary_t = decltype(nullary);
6346       using unary_t = decltype(unary);
6347       const auto higher1st = [](nullary_t f){ return f(); };
6348       const auto higher2nd = [unary](nullary_t f1){
6349         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6350       };
6351       return higher1st(nullary) + higher2nd(nullary)(unary);
6352     }
6353
6354   }
6355
6356   namespace test_variadic_templates
6357   {
6358
6359     template <int...>
6360     struct sum;
6361
6362     template <int N0, int... N1toN>
6363     struct sum<N0, N1toN...>
6364     {
6365       static constexpr auto value = N0 + sum<N1toN...>::value;
6366     };
6367
6368     template <>
6369     struct sum<>
6370     {
6371       static constexpr auto value = 0;
6372     };
6373
6374     static_assert(sum<>::value == 0, "");
6375     static_assert(sum<1>::value == 1, "");
6376     static_assert(sum<23>::value == 23, "");
6377     static_assert(sum<1, 2>::value == 3, "");
6378     static_assert(sum<5, 5, 11>::value == 21, "");
6379     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6380
6381   }
6382
6383   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6384   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6385   // because of this.
6386   namespace test_template_alias_sfinae
6387   {
6388
6389     struct foo {};
6390
6391     template<typename T>
6392     using member = typename T::member_type;
6393
6394     template<typename T>
6395     void func(...) {}
6396
6397     template<typename T>
6398     void func(member<T>*) {}
6399
6400     void test();
6401
6402     void test() { func<foo>(0); }
6403
6404   }
6405
6406 }  // namespace cxx11
6407
6408 #endif  // __cplusplus >= 201103L
6409
6410
6411
6412 _ACEOF
6413 if ac_fn_cxx_try_compile "$LINENO"; then :
6414   eval $cachevar=yes
6415 else
6416   eval $cachevar=no
6417 fi
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419          CXX="$ac_save_CXX"
6420 fi
6421 eval ac_res=\$$cachevar
6422                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6423 $as_echo "$ac_res" >&6; }
6424       if eval test x\$$cachevar = xyes; then
6425         CXX="$CXX $switch"
6426         if test -n "$CXXCPP" ; then
6427           CXXCPP="$CXXCPP $switch"
6428         fi
6429         ac_success=yes
6430         break
6431       fi
6432     done
6433   fi
6434
6435     if test x$ac_success = xno; then
6436                 for alternative in ${ax_cxx_compile_alternatives}; do
6437       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6438         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6439         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6440 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6441 if eval \${$cachevar+:} false; then :
6442   $as_echo_n "(cached) " >&6
6443 else
6444   ac_save_CXX="$CXX"
6445            CXX="$CXX $switch"
6446            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h.  */
6448
6449
6450 // If the compiler admits that it is not ready for C++11, why torture it?
6451 // Hopefully, this will speed up the test.
6452
6453 #ifndef __cplusplus
6454
6455 #error "This is not a C++ compiler"
6456
6457 #elif __cplusplus < 201103L
6458
6459 #error "This is not a C++11 compiler"
6460
6461 #else
6462
6463 namespace cxx11
6464 {
6465
6466   namespace test_static_assert
6467   {
6468
6469     template <typename T>
6470     struct check
6471     {
6472       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6473     };
6474
6475   }
6476
6477   namespace test_final_override
6478   {
6479
6480     struct Base
6481     {
6482       virtual ~Base() {}
6483       virtual void f() {}
6484     };
6485
6486     struct Derived : public Base
6487     {
6488       virtual ~Derived() override {}
6489       virtual void f() override {}
6490     };
6491
6492   }
6493
6494   namespace test_double_right_angle_brackets
6495   {
6496
6497     template < typename T >
6498     struct check {};
6499
6500     typedef check<void> single_type;
6501     typedef check<check<void>> double_type;
6502     typedef check<check<check<void>>> triple_type;
6503     typedef check<check<check<check<void>>>> quadruple_type;
6504
6505   }
6506
6507   namespace test_decltype
6508   {
6509
6510     int
6511     f()
6512     {
6513       int a = 1;
6514       decltype(a) b = 2;
6515       return a + b;
6516     }
6517
6518   }
6519
6520   namespace test_type_deduction
6521   {
6522
6523     template < typename T1, typename T2 >
6524     struct is_same
6525     {
6526       static const bool value = false;
6527     };
6528
6529     template < typename T >
6530     struct is_same<T, T>
6531     {
6532       static const bool value = true;
6533     };
6534
6535     template < typename T1, typename T2 >
6536     auto
6537     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6538     {
6539       return a1 + a2;
6540     }
6541
6542     int
6543     test(const int c, volatile int v)
6544     {
6545       static_assert(is_same<int, decltype(0)>::value == true, "");
6546       static_assert(is_same<int, decltype(c)>::value == false, "");
6547       static_assert(is_same<int, decltype(v)>::value == false, "");
6548       auto ac = c;
6549       auto av = v;
6550       auto sumi = ac + av + 'x';
6551       auto sumf = ac + av + 1.0;
6552       static_assert(is_same<int, decltype(ac)>::value == true, "");
6553       static_assert(is_same<int, decltype(av)>::value == true, "");
6554       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6555       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6556       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6557       return (sumf > 0.0) ? sumi : add(c, v);
6558     }
6559
6560   }
6561
6562   namespace test_noexcept
6563   {
6564
6565     int f() { return 0; }
6566     int g() noexcept { return 0; }
6567
6568     static_assert(noexcept(f()) == false, "");
6569     static_assert(noexcept(g()) == true, "");
6570
6571   }
6572
6573   namespace test_constexpr
6574   {
6575
6576     template < typename CharT >
6577     unsigned long constexpr
6578     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6579     {
6580       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6581     }
6582
6583     template < typename CharT >
6584     unsigned long constexpr
6585     strlen_c(const CharT *const s) noexcept
6586     {
6587       return strlen_c_r(s, 0UL);
6588     }
6589
6590     static_assert(strlen_c("") == 0UL, "");
6591     static_assert(strlen_c("1") == 1UL, "");
6592     static_assert(strlen_c("example") == 7UL, "");
6593     static_assert(strlen_c("another\0example") == 7UL, "");
6594
6595   }
6596
6597   namespace test_rvalue_references
6598   {
6599
6600     template < int N >
6601     struct answer
6602     {
6603       static constexpr int value = N;
6604     };
6605
6606     answer<1> f(int&)       { return answer<1>(); }
6607     answer<2> f(const int&) { return answer<2>(); }
6608     answer<3> f(int&&)      { return answer<3>(); }
6609
6610     void
6611     test()
6612     {
6613       int i = 0;
6614       const int c = 0;
6615       static_assert(decltype(f(i))::value == 1, "");
6616       static_assert(decltype(f(c))::value == 2, "");
6617       static_assert(decltype(f(0))::value == 3, "");
6618     }
6619
6620   }
6621
6622   namespace test_uniform_initialization
6623   {
6624
6625     struct test
6626     {
6627       static const int zero {};
6628       static const int one {1};
6629     };
6630
6631     static_assert(test::zero == 0, "");
6632     static_assert(test::one == 1, "");
6633
6634   }
6635
6636   namespace test_lambdas
6637   {
6638
6639     void
6640     test1()
6641     {
6642       auto lambda1 = [](){};
6643       auto lambda2 = lambda1;
6644       lambda1();
6645       lambda2();
6646     }
6647
6648     int
6649     test2()
6650     {
6651       auto a = [](int i, int j){ return i + j; }(1, 2);
6652       auto b = []() -> int { return '0'; }();
6653       auto c = [=](){ return a + b; }();
6654       auto d = [&](){ return c; }();
6655       auto e = [a, &b](int x) mutable {
6656         const auto identity = [](int y){ return y; };
6657         for (auto i = 0; i < a; ++i)
6658           a += b--;
6659         return x + identity(a + b);
6660       }(0);
6661       return a + b + c + d + e;
6662     }
6663
6664     int
6665     test3()
6666     {
6667       const auto nullary = [](){ return 0; };
6668       const auto unary = [](int x){ return x; };
6669       using nullary_t = decltype(nullary);
6670       using unary_t = decltype(unary);
6671       const auto higher1st = [](nullary_t f){ return f(); };
6672       const auto higher2nd = [unary](nullary_t f1){
6673         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6674       };
6675       return higher1st(nullary) + higher2nd(nullary)(unary);
6676     }
6677
6678   }
6679
6680   namespace test_variadic_templates
6681   {
6682
6683     template <int...>
6684     struct sum;
6685
6686     template <int N0, int... N1toN>
6687     struct sum<N0, N1toN...>
6688     {
6689       static constexpr auto value = N0 + sum<N1toN...>::value;
6690     };
6691
6692     template <>
6693     struct sum<>
6694     {
6695       static constexpr auto value = 0;
6696     };
6697
6698     static_assert(sum<>::value == 0, "");
6699     static_assert(sum<1>::value == 1, "");
6700     static_assert(sum<23>::value == 23, "");
6701     static_assert(sum<1, 2>::value == 3, "");
6702     static_assert(sum<5, 5, 11>::value == 21, "");
6703     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6704
6705   }
6706
6707   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6708   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6709   // because of this.
6710   namespace test_template_alias_sfinae
6711   {
6712
6713     struct foo {};
6714
6715     template<typename T>
6716     using member = typename T::member_type;
6717
6718     template<typename T>
6719     void func(...) {}
6720
6721     template<typename T>
6722     void func(member<T>*) {}
6723
6724     void test();
6725
6726     void test() { func<foo>(0); }
6727
6728   }
6729
6730 }  // namespace cxx11
6731
6732 #endif  // __cplusplus >= 201103L
6733
6734
6735
6736 _ACEOF
6737 if ac_fn_cxx_try_compile "$LINENO"; then :
6738   eval $cachevar=yes
6739 else
6740   eval $cachevar=no
6741 fi
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743            CXX="$ac_save_CXX"
6744 fi
6745 eval ac_res=\$$cachevar
6746                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6747 $as_echo "$ac_res" >&6; }
6748         if eval test x\$$cachevar = xyes; then
6749           CXX="$CXX $switch"
6750           if test -n "$CXXCPP" ; then
6751             CXXCPP="$CXXCPP $switch"
6752           fi
6753           ac_success=yes
6754           break
6755         fi
6756       done
6757       if test x$ac_success = xyes; then
6758         break
6759       fi
6760     done
6761   fi
6762
6763   ac_ext=c
6764 ac_cpp='$CPP $CPPFLAGS'
6765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6768
6769   if test x$ax_cxx_compile_cxx11_required = xtrue; then
6770     if test x$ac_success = xno; then
6771       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6772     fi
6773   fi
6774   if test x$ac_success = xno; then
6775     HAVE_CXX11=0
6776     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6777 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6778   else
6779     HAVE_CXX11=1
6780
6781 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6782
6783   fi
6784
6785
6786
6787   if test "${build}" != "${host}"; then
6788       ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
6789   ac_ext=cpp
6790 ac_cpp='$CXXCPP $CPPFLAGS'
6791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6794   ac_success=no
6795       ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6796     ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6797     ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6798     CXX="$CXX_FOR_BUILD"
6799     CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6800     CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6801       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6802 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6803 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6804   $as_echo_n "(cached) " >&6
6805 else
6806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h.  */
6808
6809
6810 // If the compiler admits that it is not ready for C++11, why torture it?
6811 // Hopefully, this will speed up the test.
6812
6813 #ifndef __cplusplus
6814
6815 #error "This is not a C++ compiler"
6816
6817 #elif __cplusplus < 201103L
6818
6819 #error "This is not a C++11 compiler"
6820
6821 #else
6822
6823 namespace cxx11
6824 {
6825
6826   namespace test_static_assert
6827   {
6828
6829     template <typename T>
6830     struct check
6831     {
6832       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6833     };
6834
6835   }
6836
6837   namespace test_final_override
6838   {
6839
6840     struct Base
6841     {
6842       virtual ~Base() {}
6843       virtual void f() {}
6844     };
6845
6846     struct Derived : public Base
6847     {
6848       virtual ~Derived() override {}
6849       virtual void f() override {}
6850     };
6851
6852   }
6853
6854   namespace test_double_right_angle_brackets
6855   {
6856
6857     template < typename T >
6858     struct check {};
6859
6860     typedef check<void> single_type;
6861     typedef check<check<void>> double_type;
6862     typedef check<check<check<void>>> triple_type;
6863     typedef check<check<check<check<void>>>> quadruple_type;
6864
6865   }
6866
6867   namespace test_decltype
6868   {
6869
6870     int
6871     f()
6872     {
6873       int a = 1;
6874       decltype(a) b = 2;
6875       return a + b;
6876     }
6877
6878   }
6879
6880   namespace test_type_deduction
6881   {
6882
6883     template < typename T1, typename T2 >
6884     struct is_same
6885     {
6886       static const bool value = false;
6887     };
6888
6889     template < typename T >
6890     struct is_same<T, T>
6891     {
6892       static const bool value = true;
6893     };
6894
6895     template < typename T1, typename T2 >
6896     auto
6897     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6898     {
6899       return a1 + a2;
6900     }
6901
6902     int
6903     test(const int c, volatile int v)
6904     {
6905       static_assert(is_same<int, decltype(0)>::value == true, "");
6906       static_assert(is_same<int, decltype(c)>::value == false, "");
6907       static_assert(is_same<int, decltype(v)>::value == false, "");
6908       auto ac = c;
6909       auto av = v;
6910       auto sumi = ac + av + 'x';
6911       auto sumf = ac + av + 1.0;
6912       static_assert(is_same<int, decltype(ac)>::value == true, "");
6913       static_assert(is_same<int, decltype(av)>::value == true, "");
6914       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6915       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6916       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6917       return (sumf > 0.0) ? sumi : add(c, v);
6918     }
6919
6920   }
6921
6922   namespace test_noexcept
6923   {
6924
6925     int f() { return 0; }
6926     int g() noexcept { return 0; }
6927
6928     static_assert(noexcept(f()) == false, "");
6929     static_assert(noexcept(g()) == true, "");
6930
6931   }
6932
6933   namespace test_constexpr
6934   {
6935
6936     template < typename CharT >
6937     unsigned long constexpr
6938     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6939     {
6940       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6941     }
6942
6943     template < typename CharT >
6944     unsigned long constexpr
6945     strlen_c(const CharT *const s) noexcept
6946     {
6947       return strlen_c_r(s, 0UL);
6948     }
6949
6950     static_assert(strlen_c("") == 0UL, "");
6951     static_assert(strlen_c("1") == 1UL, "");
6952     static_assert(strlen_c("example") == 7UL, "");
6953     static_assert(strlen_c("another\0example") == 7UL, "");
6954
6955   }
6956
6957   namespace test_rvalue_references
6958   {
6959
6960     template < int N >
6961     struct answer
6962     {
6963       static constexpr int value = N;
6964     };
6965
6966     answer<1> f(int&)       { return answer<1>(); }
6967     answer<2> f(const int&) { return answer<2>(); }
6968     answer<3> f(int&&)      { return answer<3>(); }
6969
6970     void
6971     test()
6972     {
6973       int i = 0;
6974       const int c = 0;
6975       static_assert(decltype(f(i))::value == 1, "");
6976       static_assert(decltype(f(c))::value == 2, "");
6977       static_assert(decltype(f(0))::value == 3, "");
6978     }
6979
6980   }
6981
6982   namespace test_uniform_initialization
6983   {
6984
6985     struct test
6986     {
6987       static const int zero {};
6988       static const int one {1};
6989     };
6990
6991     static_assert(test::zero == 0, "");
6992     static_assert(test::one == 1, "");
6993
6994   }
6995
6996   namespace test_lambdas
6997   {
6998
6999     void
7000     test1()
7001     {
7002       auto lambda1 = [](){};
7003       auto lambda2 = lambda1;
7004       lambda1();
7005       lambda2();
7006     }
7007
7008     int
7009     test2()
7010     {
7011       auto a = [](int i, int j){ return i + j; }(1, 2);
7012       auto b = []() -> int { return '0'; }();
7013       auto c = [=](){ return a + b; }();
7014       auto d = [&](){ return c; }();
7015       auto e = [a, &b](int x) mutable {
7016         const auto identity = [](int y){ return y; };
7017         for (auto i = 0; i < a; ++i)
7018           a += b--;
7019         return x + identity(a + b);
7020       }(0);
7021       return a + b + c + d + e;
7022     }
7023
7024     int
7025     test3()
7026     {
7027       const auto nullary = [](){ return 0; };
7028       const auto unary = [](int x){ return x; };
7029       using nullary_t = decltype(nullary);
7030       using unary_t = decltype(unary);
7031       const auto higher1st = [](nullary_t f){ return f(); };
7032       const auto higher2nd = [unary](nullary_t f1){
7033         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7034       };
7035       return higher1st(nullary) + higher2nd(nullary)(unary);
7036     }
7037
7038   }
7039
7040   namespace test_variadic_templates
7041   {
7042
7043     template <int...>
7044     struct sum;
7045
7046     template <int N0, int... N1toN>
7047     struct sum<N0, N1toN...>
7048     {
7049       static constexpr auto value = N0 + sum<N1toN...>::value;
7050     };
7051
7052     template <>
7053     struct sum<>
7054     {
7055       static constexpr auto value = 0;
7056     };
7057
7058     static_assert(sum<>::value == 0, "");
7059     static_assert(sum<1>::value == 1, "");
7060     static_assert(sum<23>::value == 23, "");
7061     static_assert(sum<1, 2>::value == 3, "");
7062     static_assert(sum<5, 5, 11>::value == 21, "");
7063     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7064
7065   }
7066
7067   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7068   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7069   // because of this.
7070   namespace test_template_alias_sfinae
7071   {
7072
7073     struct foo {};
7074
7075     template<typename T>
7076     using member = typename T::member_type;
7077
7078     template<typename T>
7079     void func(...) {}
7080
7081     template<typename T>
7082     void func(member<T>*) {}
7083
7084     void test();
7085
7086     void test() { func<foo>(0); }
7087
7088   }
7089
7090 }  // namespace cxx11
7091
7092 #endif  // __cplusplus >= 201103L
7093
7094
7095
7096 _ACEOF
7097 if ac_fn_cxx_try_compile "$LINENO"; then :
7098   ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7099 else
7100   ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7101 fi
7102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103 fi
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7105 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7106     if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7107       ac_success=yes
7108     fi
7109
7110     if test x$ac_success = xno; then
7111     for alternative in ${ax_cxx_compile_alternatives}; do
7112       switch="-std=gnu++${alternative}"
7113       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7114       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7115 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7116 if eval \${$cachevar+:} false; then :
7117   $as_echo_n "(cached) " >&6
7118 else
7119   ac_save_CXX="$CXX"
7120          CXX="$CXX $switch"
7121          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h.  */
7123
7124
7125 // If the compiler admits that it is not ready for C++11, why torture it?
7126 // Hopefully, this will speed up the test.
7127
7128 #ifndef __cplusplus
7129
7130 #error "This is not a C++ compiler"
7131
7132 #elif __cplusplus < 201103L
7133
7134 #error "This is not a C++11 compiler"
7135
7136 #else
7137
7138 namespace cxx11
7139 {
7140
7141   namespace test_static_assert
7142   {
7143
7144     template <typename T>
7145     struct check
7146     {
7147       static_assert(sizeof(int) <= sizeof(T), "not big enough");
7148     };
7149
7150   }
7151
7152   namespace test_final_override
7153   {
7154
7155     struct Base
7156     {
7157       virtual ~Base() {}
7158       virtual void f() {}
7159     };
7160
7161     struct Derived : public Base
7162     {
7163       virtual ~Derived() override {}
7164       virtual void f() override {}
7165     };
7166
7167   }
7168
7169   namespace test_double_right_angle_brackets
7170   {
7171
7172     template < typename T >
7173     struct check {};
7174
7175     typedef check<void> single_type;
7176     typedef check<check<void>> double_type;
7177     typedef check<check<check<void>>> triple_type;
7178     typedef check<check<check<check<void>>>> quadruple_type;
7179
7180   }
7181
7182   namespace test_decltype
7183   {
7184
7185     int
7186     f()
7187     {
7188       int a = 1;
7189       decltype(a) b = 2;
7190       return a + b;
7191     }
7192
7193   }
7194
7195   namespace test_type_deduction
7196   {
7197
7198     template < typename T1, typename T2 >
7199     struct is_same
7200     {
7201       static const bool value = false;
7202     };
7203
7204     template < typename T >
7205     struct is_same<T, T>
7206     {
7207       static const bool value = true;
7208     };
7209
7210     template < typename T1, typename T2 >
7211     auto
7212     add(T1 a1, T2 a2) -> decltype(a1 + a2)
7213     {
7214       return a1 + a2;
7215     }
7216
7217     int
7218     test(const int c, volatile int v)
7219     {
7220       static_assert(is_same<int, decltype(0)>::value == true, "");
7221       static_assert(is_same<int, decltype(c)>::value == false, "");
7222       static_assert(is_same<int, decltype(v)>::value == false, "");
7223       auto ac = c;
7224       auto av = v;
7225       auto sumi = ac + av + 'x';
7226       auto sumf = ac + av + 1.0;
7227       static_assert(is_same<int, decltype(ac)>::value == true, "");
7228       static_assert(is_same<int, decltype(av)>::value == true, "");
7229       static_assert(is_same<int, decltype(sumi)>::value == true, "");
7230       static_assert(is_same<int, decltype(sumf)>::value == false, "");
7231       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7232       return (sumf > 0.0) ? sumi : add(c, v);
7233     }
7234
7235   }
7236
7237   namespace test_noexcept
7238   {
7239
7240     int f() { return 0; }
7241     int g() noexcept { return 0; }
7242
7243     static_assert(noexcept(f()) == false, "");
7244     static_assert(noexcept(g()) == true, "");
7245
7246   }
7247
7248   namespace test_constexpr
7249   {
7250
7251     template < typename CharT >
7252     unsigned long constexpr
7253     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7254     {
7255       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7256     }
7257
7258     template < typename CharT >
7259     unsigned long constexpr
7260     strlen_c(const CharT *const s) noexcept
7261     {
7262       return strlen_c_r(s, 0UL);
7263     }
7264
7265     static_assert(strlen_c("") == 0UL, "");
7266     static_assert(strlen_c("1") == 1UL, "");
7267     static_assert(strlen_c("example") == 7UL, "");
7268     static_assert(strlen_c("another\0example") == 7UL, "");
7269
7270   }
7271
7272   namespace test_rvalue_references
7273   {
7274
7275     template < int N >
7276     struct answer
7277     {
7278       static constexpr int value = N;
7279     };
7280
7281     answer<1> f(int&)       { return answer<1>(); }
7282     answer<2> f(const int&) { return answer<2>(); }
7283     answer<3> f(int&&)      { return answer<3>(); }
7284
7285     void
7286     test()
7287     {
7288       int i = 0;
7289       const int c = 0;
7290       static_assert(decltype(f(i))::value == 1, "");
7291       static_assert(decltype(f(c))::value == 2, "");
7292       static_assert(decltype(f(0))::value == 3, "");
7293     }
7294
7295   }
7296
7297   namespace test_uniform_initialization
7298   {
7299
7300     struct test
7301     {
7302       static const int zero {};
7303       static const int one {1};
7304     };
7305
7306     static_assert(test::zero == 0, "");
7307     static_assert(test::one == 1, "");
7308
7309   }
7310
7311   namespace test_lambdas
7312   {
7313
7314     void
7315     test1()
7316     {
7317       auto lambda1 = [](){};
7318       auto lambda2 = lambda1;
7319       lambda1();
7320       lambda2();
7321     }
7322
7323     int
7324     test2()
7325     {
7326       auto a = [](int i, int j){ return i + j; }(1, 2);
7327       auto b = []() -> int { return '0'; }();
7328       auto c = [=](){ return a + b; }();
7329       auto d = [&](){ return c; }();
7330       auto e = [a, &b](int x) mutable {
7331         const auto identity = [](int y){ return y; };
7332         for (auto i = 0; i < a; ++i)
7333           a += b--;
7334         return x + identity(a + b);
7335       }(0);
7336       return a + b + c + d + e;
7337     }
7338
7339     int
7340     test3()
7341     {
7342       const auto nullary = [](){ return 0; };
7343       const auto unary = [](int x){ return x; };
7344       using nullary_t = decltype(nullary);
7345       using unary_t = decltype(unary);
7346       const auto higher1st = [](nullary_t f){ return f(); };
7347       const auto higher2nd = [unary](nullary_t f1){
7348         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7349       };
7350       return higher1st(nullary) + higher2nd(nullary)(unary);
7351     }
7352
7353   }
7354
7355   namespace test_variadic_templates
7356   {
7357
7358     template <int...>
7359     struct sum;
7360
7361     template <int N0, int... N1toN>
7362     struct sum<N0, N1toN...>
7363     {
7364       static constexpr auto value = N0 + sum<N1toN...>::value;
7365     };
7366
7367     template <>
7368     struct sum<>
7369     {
7370       static constexpr auto value = 0;
7371     };
7372
7373     static_assert(sum<>::value == 0, "");
7374     static_assert(sum<1>::value == 1, "");
7375     static_assert(sum<23>::value == 23, "");
7376     static_assert(sum<1, 2>::value == 3, "");
7377     static_assert(sum<5, 5, 11>::value == 21, "");
7378     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7379
7380   }
7381
7382   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7383   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7384   // because of this.
7385   namespace test_template_alias_sfinae
7386   {
7387
7388     struct foo {};
7389
7390     template<typename T>
7391     using member = typename T::member_type;
7392
7393     template<typename T>
7394     void func(...) {}
7395
7396     template<typename T>
7397     void func(member<T>*) {}
7398
7399     void test();
7400
7401     void test() { func<foo>(0); }
7402
7403   }
7404
7405 }  // namespace cxx11
7406
7407 #endif  // __cplusplus >= 201103L
7408
7409
7410
7411 _ACEOF
7412 if ac_fn_cxx_try_compile "$LINENO"; then :
7413   eval $cachevar=yes
7414 else
7415   eval $cachevar=no
7416 fi
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418          CXX="$ac_save_CXX"
7419 fi
7420 eval ac_res=\$$cachevar
7421                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7422 $as_echo "$ac_res" >&6; }
7423       if eval test x\$$cachevar = xyes; then
7424         CXX="$CXX $switch"
7425         if test -n "$CXXCPP" ; then
7426           CXXCPP="$CXXCPP $switch"
7427         fi
7428         ac_success=yes
7429         break
7430       fi
7431     done
7432   fi
7433
7434     if test x$ac_success = xno; then
7435                 for alternative in ${ax_cxx_compile_alternatives}; do
7436       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7437         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7438         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7439 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7440 if eval \${$cachevar+:} false; then :
7441   $as_echo_n "(cached) " >&6
7442 else
7443   ac_save_CXX="$CXX"
7444            CXX="$CXX $switch"
7445            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h.  */
7447
7448
7449 // If the compiler admits that it is not ready for C++11, why torture it?
7450 // Hopefully, this will speed up the test.
7451
7452 #ifndef __cplusplus
7453
7454 #error "This is not a C++ compiler"
7455
7456 #elif __cplusplus < 201103L
7457
7458 #error "This is not a C++11 compiler"
7459
7460 #else
7461
7462 namespace cxx11
7463 {
7464
7465   namespace test_static_assert
7466   {
7467
7468     template <typename T>
7469     struct check
7470     {
7471       static_assert(sizeof(int) <= sizeof(T), "not big enough");
7472     };
7473
7474   }
7475
7476   namespace test_final_override
7477   {
7478
7479     struct Base
7480     {
7481       virtual ~Base() {}
7482       virtual void f() {}
7483     };
7484
7485     struct Derived : public Base
7486     {
7487       virtual ~Derived() override {}
7488       virtual void f() override {}
7489     };
7490
7491   }
7492
7493   namespace test_double_right_angle_brackets
7494   {
7495
7496     template < typename T >
7497     struct check {};
7498
7499     typedef check<void> single_type;
7500     typedef check<check<void>> double_type;
7501     typedef check<check<check<void>>> triple_type;
7502     typedef check<check<check<check<void>>>> quadruple_type;
7503
7504   }
7505
7506   namespace test_decltype
7507   {
7508
7509     int
7510     f()
7511     {
7512       int a = 1;
7513       decltype(a) b = 2;
7514       return a + b;
7515     }
7516
7517   }
7518
7519   namespace test_type_deduction
7520   {
7521
7522     template < typename T1, typename T2 >
7523     struct is_same
7524     {
7525       static const bool value = false;
7526     };
7527
7528     template < typename T >
7529     struct is_same<T, T>
7530     {
7531       static const bool value = true;
7532     };
7533
7534     template < typename T1, typename T2 >
7535     auto
7536     add(T1 a1, T2 a2) -> decltype(a1 + a2)
7537     {
7538       return a1 + a2;
7539     }
7540
7541     int
7542     test(const int c, volatile int v)
7543     {
7544       static_assert(is_same<int, decltype(0)>::value == true, "");
7545       static_assert(is_same<int, decltype(c)>::value == false, "");
7546       static_assert(is_same<int, decltype(v)>::value == false, "");
7547       auto ac = c;
7548       auto av = v;
7549       auto sumi = ac + av + 'x';
7550       auto sumf = ac + av + 1.0;
7551       static_assert(is_same<int, decltype(ac)>::value == true, "");
7552       static_assert(is_same<int, decltype(av)>::value == true, "");
7553       static_assert(is_same<int, decltype(sumi)>::value == true, "");
7554       static_assert(is_same<int, decltype(sumf)>::value == false, "");
7555       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7556       return (sumf > 0.0) ? sumi : add(c, v);
7557     }
7558
7559   }
7560
7561   namespace test_noexcept
7562   {
7563
7564     int f() { return 0; }
7565     int g() noexcept { return 0; }
7566
7567     static_assert(noexcept(f()) == false, "");
7568     static_assert(noexcept(g()) == true, "");
7569
7570   }
7571
7572   namespace test_constexpr
7573   {
7574
7575     template < typename CharT >
7576     unsigned long constexpr
7577     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7578     {
7579       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7580     }
7581
7582     template < typename CharT >
7583     unsigned long constexpr
7584     strlen_c(const CharT *const s) noexcept
7585     {
7586       return strlen_c_r(s, 0UL);
7587     }
7588
7589     static_assert(strlen_c("") == 0UL, "");
7590     static_assert(strlen_c("1") == 1UL, "");
7591     static_assert(strlen_c("example") == 7UL, "");
7592     static_assert(strlen_c("another\0example") == 7UL, "");
7593
7594   }
7595
7596   namespace test_rvalue_references
7597   {
7598
7599     template < int N >
7600     struct answer
7601     {
7602       static constexpr int value = N;
7603     };
7604
7605     answer<1> f(int&)       { return answer<1>(); }
7606     answer<2> f(const int&) { return answer<2>(); }
7607     answer<3> f(int&&)      { return answer<3>(); }
7608
7609     void
7610     test()
7611     {
7612       int i = 0;
7613       const int c = 0;
7614       static_assert(decltype(f(i))::value == 1, "");
7615       static_assert(decltype(f(c))::value == 2, "");
7616       static_assert(decltype(f(0))::value == 3, "");
7617     }
7618
7619   }
7620
7621   namespace test_uniform_initialization
7622   {
7623
7624     struct test
7625     {
7626       static const int zero {};
7627       static const int one {1};
7628     };
7629
7630     static_assert(test::zero == 0, "");
7631     static_assert(test::one == 1, "");
7632
7633   }
7634
7635   namespace test_lambdas
7636   {
7637
7638     void
7639     test1()
7640     {
7641       auto lambda1 = [](){};
7642       auto lambda2 = lambda1;
7643       lambda1();
7644       lambda2();
7645     }
7646
7647     int
7648     test2()
7649     {
7650       auto a = [](int i, int j){ return i + j; }(1, 2);
7651       auto b = []() -> int { return '0'; }();
7652       auto c = [=](){ return a + b; }();
7653       auto d = [&](){ return c; }();
7654       auto e = [a, &b](int x) mutable {
7655         const auto identity = [](int y){ return y; };
7656         for (auto i = 0; i < a; ++i)
7657           a += b--;
7658         return x + identity(a + b);
7659       }(0);
7660       return a + b + c + d + e;
7661     }
7662
7663     int
7664     test3()
7665     {
7666       const auto nullary = [](){ return 0; };
7667       const auto unary = [](int x){ return x; };
7668       using nullary_t = decltype(nullary);
7669       using unary_t = decltype(unary);
7670       const auto higher1st = [](nullary_t f){ return f(); };
7671       const auto higher2nd = [unary](nullary_t f1){
7672         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7673       };
7674       return higher1st(nullary) + higher2nd(nullary)(unary);
7675     }
7676
7677   }
7678
7679   namespace test_variadic_templates
7680   {
7681
7682     template <int...>
7683     struct sum;
7684
7685     template <int N0, int... N1toN>
7686     struct sum<N0, N1toN...>
7687     {
7688       static constexpr auto value = N0 + sum<N1toN...>::value;
7689     };
7690
7691     template <>
7692     struct sum<>
7693     {
7694       static constexpr auto value = 0;
7695     };
7696
7697     static_assert(sum<>::value == 0, "");
7698     static_assert(sum<1>::value == 1, "");
7699     static_assert(sum<23>::value == 23, "");
7700     static_assert(sum<1, 2>::value == 3, "");
7701     static_assert(sum<5, 5, 11>::value == 21, "");
7702     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7703
7704   }
7705
7706   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7707   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7708   // because of this.
7709   namespace test_template_alias_sfinae
7710   {
7711
7712     struct foo {};
7713
7714     template<typename T>
7715     using member = typename T::member_type;
7716
7717     template<typename T>
7718     void func(...) {}
7719
7720     template<typename T>
7721     void func(member<T>*) {}
7722
7723     void test();
7724
7725     void test() { func<foo>(0); }
7726
7727   }
7728
7729 }  // namespace cxx11
7730
7731 #endif  // __cplusplus >= 201103L
7732
7733
7734
7735 _ACEOF
7736 if ac_fn_cxx_try_compile "$LINENO"; then :
7737   eval $cachevar=yes
7738 else
7739   eval $cachevar=no
7740 fi
7741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742            CXX="$ac_save_CXX"
7743 fi
7744 eval ac_res=\$$cachevar
7745                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7746 $as_echo "$ac_res" >&6; }
7747         if eval test x\$$cachevar = xyes; then
7748           CXX="$CXX $switch"
7749           if test -n "$CXXCPP" ; then
7750             CXXCPP="$CXXCPP $switch"
7751           fi
7752           ac_success=yes
7753           break
7754         fi
7755       done
7756       if test x$ac_success = xyes; then
7757         break
7758       fi
7759     done
7760   fi
7761       CXX_FOR_BUILD="$CXX"
7762     CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7763     CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7764     CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7765     CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7766     CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7767   ac_ext=c
7768 ac_cpp='$CPP $CPPFLAGS'
7769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7772
7773   if test x$ax_cxx_compile_cxx11_required = xtrue; then
7774     if test x$ac_success = xno; then
7775       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7776     fi
7777   fi
7778   if test x$ac_success = xno; then
7779     HAVE_CXX11_FOR_BUILD=0
7780     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7781 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7782   else
7783     HAVE_CXX11_FOR_BUILD=1
7784
7785 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7786
7787   fi
7788
7789
7790   fi
7791 fi
7792
7793 # Check whether --enable-pgo-build was given.
7794 if test "${enable_pgo_build+set}" = set; then :
7795   enableval=$enable_pgo_build; enable_pgo_build=$enableval
7796 else
7797   enable_pgo_build=no
7798 fi
7799
7800
7801 # Issue errors and warnings for invalid/strange PGO build combinations.
7802 case "$have_compiler:$host:$target:$enable_pgo_build" in
7803   *:*:*:no) ;;
7804
7805   # Allow the PGO build only if we aren't building a compiler and
7806   # we are in a native configuration.
7807   no:$build:$build:yes | no:$build:$build:lto) ;;
7808
7809   # Disallow the PGO bootstrap if we are building a compiler.
7810   yes:*:*:yes | yes:*:*:lto)
7811     as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7812
7813   *)
7814     as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7815     ;;
7816 esac
7817
7818 if test "$enable_pgo_build" != "no"; then
7819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7820 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7821   old_CFLAGS="$CFLAGS"
7822   PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7823   CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7824
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h.  */
7827 int foo;
7828 _ACEOF
7829 if ac_fn_c_try_compile "$LINENO"; then :
7830
7831 else
7832   PGO_BUILD_GEN_CFLAGS=
7833 fi
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835   CFLAGS="$old_CFLAGS"
7836   if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7838 $as_echo "yes" >&6; }
7839     PGO_BUILD_USE_CFLAGS="-fprofile-use"
7840   else
7841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843     as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7844   fi
7845
7846   if test "$enable_pgo_build" = "lto"; then
7847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7848 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7849     old_CFLAGS="$CFLAGS"
7850     PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7851     CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7852     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h.  */
7854 int foo;
7855 _ACEOF
7856 if ac_fn_c_try_compile "$LINENO"; then :
7857
7858 else
7859   PGO_BUILD_LTO_CFLAGS=
7860 fi
7861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7862     CFLAGS="$old_CFLAGS"
7863     if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7864       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7865 $as_echo "yes" >&6; }
7866     else
7867       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7869       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7870 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7871     fi
7872   fi
7873 fi
7874
7875
7876
7877
7878 # Used for setting $lt_cv_objdir
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7880 $as_echo_n "checking for objdir... " >&6; }
7881 if ${lt_cv_objdir+:} false; then :
7882   $as_echo_n "(cached) " >&6
7883 else
7884   rm -f .libs 2>/dev/null
7885 mkdir .libs 2>/dev/null
7886 if test -d .libs; then
7887   lt_cv_objdir=.libs
7888 else
7889   # MS-DOS does not allow filenames that begin with a dot.
7890   lt_cv_objdir=_libs
7891 fi
7892 rmdir .libs 2>/dev/null
7893 fi
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7895 $as_echo "$lt_cv_objdir" >&6; }
7896 objdir=$lt_cv_objdir
7897
7898
7899
7900
7901
7902 cat >>confdefs.h <<_ACEOF
7903 #define LT_OBJDIR "$lt_cv_objdir/"
7904 _ACEOF
7905
7906
7907
7908 # Check for GMP, MPFR and MPC
7909 require_gmp=no
7910 require_mpc=no
7911 if test -d ${srcdir}/gcc ; then
7912   require_gmp=yes
7913   require_mpc=yes
7914 fi
7915 if test -d ${srcdir}/gdb ; then
7916   if test "x$enable_gdb" != xno; then
7917    require_gmp=yes
7918   fi
7919 fi
7920
7921 gmplibs="-lmpfr -lgmp"
7922 if test x"$require_mpc" = "xyes" ; then
7923   gmplibs="-lmpc $gmplibs"
7924 fi
7925 gmpinc=
7926 have_gmp=no
7927
7928 # Specify a location for mpc
7929 # check for this first so it ends up on the link line before mpfr.
7930
7931 # Check whether --with-mpc was given.
7932 if test "${with_mpc+set}" = set; then :
7933   withval=$with_mpc;
7934 fi
7935
7936
7937 # Check whether --with-mpc-include was given.
7938 if test "${with_mpc_include+set}" = set; then :
7939   withval=$with_mpc_include;
7940 fi
7941
7942
7943 # Check whether --with-mpc-lib was given.
7944 if test "${with_mpc_lib+set}" = set; then :
7945   withval=$with_mpc_lib;
7946 fi
7947
7948
7949 if test "x$with_mpc" != x; then
7950   gmplibs="-L$with_mpc/lib $gmplibs"
7951   gmpinc="-I$with_mpc/include $gmpinc"
7952 fi
7953 if test "x$with_mpc_include" != x; then
7954   gmpinc="-I$with_mpc_include $gmpinc"
7955 fi
7956 if test "x$with_mpc_lib" != x; then
7957   gmplibs="-L$with_mpc_lib $gmplibs"
7958 fi
7959 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7960   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7961   gmpinc='-I$$s/mpc/src '"$gmpinc"
7962   # Do not test the mpc version.  Assume that it is sufficient, since
7963   # it is in the source tree, and the library has not been built yet
7964   # but it would be included on the link line in the version check below
7965   # hence making the test fail.
7966   have_gmp=yes
7967 fi
7968
7969 # Specify a location for mpfr
7970 # check for this first so it ends up on the link line before gmp.
7971
7972 # Check whether --with-mpfr was given.
7973 if test "${with_mpfr+set}" = set; then :
7974   withval=$with_mpfr;
7975 fi
7976
7977
7978 # Check whether --with-mpfr-include was given.
7979 if test "${with_mpfr_include+set}" = set; then :
7980   withval=$with_mpfr_include;
7981 fi
7982
7983
7984 # Check whether --with-mpfr-lib was given.
7985 if test "${with_mpfr_lib+set}" = set; then :
7986   withval=$with_mpfr_lib;
7987 fi
7988
7989
7990 if test "x$with_mpfr" != x; then
7991   gmplibs="-L$with_mpfr/lib $gmplibs"
7992   gmpinc="-I$with_mpfr/include $gmpinc"
7993 fi
7994 if test "x$with_mpfr_include" != x; then
7995   gmpinc="-I$with_mpfr_include $gmpinc"
7996 fi
7997 if test "x$with_mpfr_lib" != x; then
7998   gmplibs="-L$with_mpfr_lib $gmplibs"
7999 fi
8000 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8001   # MPFR v3.1.0 moved the sources into a src sub-directory.
8002   if ! test -d ${srcdir}/mpfr/src; then
8003     as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8004   fi
8005   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8006   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8007   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8008   # Do not test the mpfr version.  Assume that it is sufficient, since
8009   # it is in the source tree, and the library has not been built yet
8010   # but it would be included on the link line in the version check below
8011   # hence making the test fail.
8012   have_gmp=yes
8013 fi
8014
8015 # Specify a location for gmp
8016
8017 # Check whether --with-gmp was given.
8018 if test "${with_gmp+set}" = set; then :
8019   withval=$with_gmp;
8020 fi
8021
8022
8023 # Check whether --with-gmp-include was given.
8024 if test "${with_gmp_include+set}" = set; then :
8025   withval=$with_gmp_include;
8026 fi
8027
8028
8029 # Check whether --with-gmp-lib was given.
8030 if test "${with_gmp_lib+set}" = set; then :
8031   withval=$with_gmp_lib;
8032 fi
8033
8034
8035
8036 if test "x$with_gmp" != x; then
8037   gmplibs="-L$with_gmp/lib $gmplibs"
8038   gmpinc="-I$with_gmp/include $gmpinc"
8039 fi
8040 if test "x$with_gmp_include" != x; then
8041   gmpinc="-I$with_gmp_include $gmpinc"
8042 fi
8043 if test "x$with_gmp_lib" != x; then
8044   gmplibs="-L$with_gmp_lib $gmplibs"
8045 fi
8046 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8047   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8048   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8049   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8050   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8051   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8052   # Do not test the gmp version.  Assume that it is sufficient, since
8053   # it is in the source tree, and the library has not been built yet
8054   # but it would be included on the link line in the version check below
8055   # hence making the test fail.
8056   have_gmp=yes
8057 fi
8058
8059 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
8060   have_gmp=yes
8061   saved_CFLAGS="$CFLAGS"
8062   CFLAGS="$CFLAGS $gmpinc"
8063   # Check for the recommended and required versions of GMP.
8064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8065 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h.  */
8068 #include "gmp.h"
8069 int
8070 main ()
8071 {
8072
8073   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8074   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8075   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8076   choke me
8077   #endif
8078
8079   ;
8080   return 0;
8081 }
8082 _ACEOF
8083 if ac_fn_c_try_compile "$LINENO"; then :
8084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h.  */
8086 #include <gmp.h>
8087 int
8088 main ()
8089 {
8090
8091   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8092   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8093   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8094   choke me
8095   #endif
8096
8097   ;
8098   return 0;
8099 }
8100 _ACEOF
8101 if ac_fn_c_try_compile "$LINENO"; then :
8102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8103 $as_echo "yes" >&6; }
8104 else
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8106 $as_echo "buggy but acceptable" >&6; }
8107 fi
8108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8109 else
8110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 $as_echo "no" >&6; }; have_gmp=no
8112 fi
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114
8115   # If we have GMP, check the MPFR version.
8116   if test x"$have_gmp" = xyes; then
8117     # Check for the recommended and required versions of MPFR.
8118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8119 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8120     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121 /* end confdefs.h.  */
8122 #include <gmp.h>
8123     #include <mpfr.h>
8124 int
8125 main ()
8126 {
8127
8128     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8129     choke me
8130     #endif
8131
8132   ;
8133   return 0;
8134 }
8135 _ACEOF
8136 if ac_fn_c_try_compile "$LINENO"; then :
8137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h.  */
8139 #include <gmp.h>
8140     #include <mpfr.h>
8141 int
8142 main ()
8143 {
8144
8145     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8146     choke me
8147     #endif
8148
8149   ;
8150   return 0;
8151 }
8152 _ACEOF
8153 if ac_fn_c_try_compile "$LINENO"; then :
8154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8155 $as_echo "yes" >&6; }
8156 else
8157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8158 $as_echo "buggy but acceptable" >&6; }
8159 fi
8160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8161 else
8162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }; have_gmp=no
8164 fi
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166   fi
8167
8168   # Check for the MPC header version.
8169   if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
8170     # Check for the recommended and required versions of MPC.
8171     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8172 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8173     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h.  */
8175 #include <mpc.h>
8176 int
8177 main ()
8178 {
8179
8180     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8181     choke me
8182     #endif
8183
8184   ;
8185   return 0;
8186 }
8187 _ACEOF
8188 if ac_fn_c_try_compile "$LINENO"; then :
8189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h.  */
8191 #include <mpc.h>
8192 int
8193 main ()
8194 {
8195
8196     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8197     choke me
8198     #endif
8199
8200   ;
8201   return 0;
8202 }
8203 _ACEOF
8204 if ac_fn_c_try_compile "$LINENO"; then :
8205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8206 $as_echo "yes" >&6; }
8207 else
8208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8209 $as_echo "buggy but acceptable" >&6; }
8210 fi
8211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212 else
8213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214 $as_echo "no" >&6; }; have_gmp=no
8215 fi
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217   fi
8218
8219   # Now check the MPFR library.
8220   if test x"$have_gmp" = xyes; then
8221     saved_LIBS="$LIBS"
8222     LIBS="$LIBS $gmplibs"
8223     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8224 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8225     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226 /* end confdefs.h.  */
8227 #include <mpfr.h>
8228 int
8229 main ()
8230 {
8231
8232     mpfr_t n;
8233     mpfr_t x;
8234     int t;
8235     mpfr_init (n);
8236     mpfr_init (x);
8237     mpfr_atan2 (n, n, x, MPFR_RNDN);
8238     mpfr_erfc (n, x, MPFR_RNDN);
8239     mpfr_subnormalize (x, t, MPFR_RNDN);
8240     mpfr_clear(n);
8241     mpfr_clear(x);
8242
8243   ;
8244   return 0;
8245 }
8246 _ACEOF
8247 if ac_fn_c_try_link "$LINENO"; then :
8248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8249 $as_echo "yes" >&6; }
8250 else
8251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252 $as_echo "no" >&6; }; have_gmp=no
8253 fi
8254 rm -f core conftest.err conftest.$ac_objext \
8255     conftest$ac_exeext conftest.$ac_ext
8256     LIBS="$saved_LIBS"
8257   fi
8258
8259   # Now check the MPC library
8260   if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8261     saved_LIBS="$LIBS"
8262     LIBS="$LIBS $gmplibs"
8263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8264 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8265     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h.  */
8267 #include <mpc.h>
8268 int
8269 main ()
8270 {
8271
8272     mpc_t c;
8273     mpc_init2 (c, 53);
8274     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8275     mpc_cosh (c, c, MPC_RNDNN);
8276     mpc_pow (c, c, c, MPC_RNDNN);
8277     mpc_acosh (c, c, MPC_RNDNN);
8278     mpc_clear (c);
8279
8280   ;
8281   return 0;
8282 }
8283 _ACEOF
8284 if ac_fn_c_try_link "$LINENO"; then :
8285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8286 $as_echo "yes" >&6; }
8287 else
8288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }; have_gmp=no
8290 fi
8291 rm -f core conftest.err conftest.$ac_objext \
8292     conftest$ac_exeext conftest.$ac_ext
8293     LIBS="$saved_LIBS"
8294   fi
8295
8296   CFLAGS="$saved_CFLAGS"
8297
8298 # The library versions listed in the error message below should match
8299 # the HARD-minimums enforced above.
8300   if test x$have_gmp != xyes; then
8301     if test -d ${srcdir}/gcc ; then
8302       as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8303 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8304 their locations.  Source code for these libraries can be found at
8305 their respective hosting sites as well as at
8306 https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
8307 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
8308 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8309 make sure that you have installed both the libraries and the header
8310 files.  They may be located in separate packages." "$LINENO" 5
8311     else
8312       as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8313 Try the --with-gmp and/or --with-mpfr options to specify
8314 their locations.  If you obtained GMP and/or MPFR from a vendor
8315 distribution package, make sure that you have installed both the libraries
8316 and the header files.  They may be located in separate packages." "$LINENO" 5
8317     fi
8318   fi
8319 fi
8320
8321 # Flags needed for both GMP, MPFR and/or MPC.
8322
8323
8324
8325
8326
8327
8328
8329 # Libraries to use for stage1 or when not bootstrapping.
8330
8331 # Check whether --with-stage1-libs was given.
8332 if test "${with_stage1_libs+set}" = set; then :
8333   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8334    stage1_libs=
8335  else
8336    stage1_libs=$withval
8337  fi
8338 else
8339   stage1_libs=
8340 fi
8341
8342
8343
8344 # Whether or not to use -static-libstdc++ and -static-libgcc.  The
8345 # default is yes if gcc is being built; no otherwise.  The reason for
8346 # this default is that gdb is sometimes linked against GNU Source
8347 # Highlight, which is a shared library that uses C++ exceptions.  In
8348 # this case, -static-libstdc++ will cause crashes.
8349
8350 # Check whether --with-static-standard-libraries was given.
8351 if test "${with_static_standard_libraries+set}" = set; then :
8352   withval=$with_static_standard_libraries;
8353 else
8354   with_static_standard_libraries=auto
8355 fi
8356
8357 if test "$with_static_standard_libraries" = auto; then
8358   with_static_standard_libraries=$have_compiler
8359 fi
8360
8361 # Linker flags to use for stage1 or when not bootstrapping.
8362
8363 # Check whether --with-stage1-ldflags was given.
8364 if test "${with_stage1_ldflags+set}" = set; then :
8365   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8366    stage1_ldflags=
8367  else
8368    stage1_ldflags=$withval
8369  fi
8370 else
8371   stage1_ldflags=
8372  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8373  # if supported.  But if the user explicitly specified the libraries to use,
8374  # trust that they are doing what they want.
8375  if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8376      -a "$have_static_libs" = yes; then
8377    stage1_ldflags="-static-libstdc++ -static-libgcc"
8378  fi
8379 fi
8380
8381
8382
8383 # Libraries to use for stage2 and later builds.
8384
8385 # Check whether --with-boot-libs was given.
8386 if test "${with_boot_libs+set}" = set; then :
8387   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8388    poststage1_libs=
8389  else
8390    poststage1_libs=$withval
8391  fi
8392 else
8393   poststage1_libs=
8394 fi
8395
8396
8397
8398 # Linker flags to use for stage2 and later builds.
8399
8400 # Check whether --with-boot-ldflags was given.
8401 if test "${with_boot_ldflags+set}" = set; then :
8402   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8403    poststage1_ldflags=
8404  else
8405    poststage1_ldflags=$withval
8406  fi
8407 else
8408   poststage1_ldflags=
8409  # In stages 2 and 3, default to linking libstdc++ and libgcc
8410  # statically.  But if the user explicitly specified the libraries to
8411  # use, trust that they are doing what they want.
8412  if test "$poststage1_libs" = ""; then
8413    poststage1_ldflags="-static-libstdc++ -static-libgcc"
8414  fi
8415 fi
8416
8417
8418
8419 # GCC GRAPHITE dependency isl.
8420 # Basic setup is inlined here, actual checks are in config/isl.m4
8421
8422
8423 # Check whether --with-isl was given.
8424 if test "${with_isl+set}" = set; then :
8425   withval=$with_isl;
8426 fi
8427
8428
8429 # Treat --without-isl as a request to disable
8430 # GRAPHITE support and skip all following checks.
8431 if test "x$with_isl" != "xno"; then
8432   # Check for isl
8433
8434
8435 # Check whether --with-isl-include was given.
8436 if test "${with_isl_include+set}" = set; then :
8437   withval=$with_isl_include;
8438 fi
8439
8440
8441 # Check whether --with-isl-lib was given.
8442 if test "${with_isl_lib+set}" = set; then :
8443   withval=$with_isl_lib;
8444 fi
8445
8446
8447   # Check whether --enable-isl-version-check was given.
8448 if test "${enable_isl_version_check+set}" = set; then :
8449   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8450 else
8451   ENABLE_ISL_CHECK=yes
8452 fi
8453
8454
8455   # Initialize isllibs and islinc.
8456   case $with_isl in
8457     no)
8458       isllibs=
8459       islinc=
8460       ;;
8461     "" | yes)
8462       ;;
8463     *)
8464       isllibs="-L$with_isl/lib"
8465       islinc="-I$with_isl/include"
8466       ;;
8467   esac
8468   if test "x${with_isl_include}" != x ; then
8469     islinc="-I$with_isl_include"
8470   fi
8471   if test "x${with_isl_lib}" != x; then
8472     isllibs="-L$with_isl_lib"
8473   fi
8474         if test "x${islinc}" = x && test "x${isllibs}" = x \
8475      && test -d ${srcdir}/isl; then
8476     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8477     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8478     ENABLE_ISL_CHECK=no
8479     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8480 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8481   fi
8482
8483   isllibs="${isllibs} -lisl"
8484
8485
8486
8487   if test "${ENABLE_ISL_CHECK}" = yes ; then
8488     _isl_saved_CFLAGS=$CFLAGS
8489     _isl_saved_LDFLAGS=$LDFLAGS
8490     _isl_saved_LIBS=$LIBS
8491
8492     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8493     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8494     LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8495
8496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8497 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8498     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h.  */
8500 #include <isl/schedule.h>
8501 int
8502 main ()
8503 {
8504 isl_options_set_schedule_serialize_sccs (NULL, 0);
8505   ;
8506   return 0;
8507 }
8508 _ACEOF
8509 if ac_fn_c_try_link "$LINENO"; then :
8510   gcc_cv_isl=yes
8511 else
8512   gcc_cv_isl=no
8513 fi
8514 rm -f core conftest.err conftest.$ac_objext \
8515     conftest$ac_exeext conftest.$ac_ext
8516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8517 $as_echo "$gcc_cv_isl" >&6; }
8518
8519     if test "${gcc_cv_isl}" = no ; then
8520       { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8521 $as_echo "required isl version is 0.15 or later" >&6; }
8522     fi
8523
8524     CFLAGS=$_isl_saved_CFLAGS
8525     LDFLAGS=$_isl_saved_LDFLAGS
8526     LIBS=$_isl_saved_LIBS
8527   fi
8528
8529
8530
8531
8532
8533
8534   if test "x${with_isl}" = xno; then
8535     graphite_requested=no
8536   elif test "x${with_isl}" != x \
8537     || test "x${with_isl_include}" != x \
8538     || test "x${with_isl_lib}" != x ; then
8539     graphite_requested=yes
8540   else
8541     graphite_requested=no
8542   fi
8543
8544
8545
8546   if test "${gcc_cv_isl}" = no ; then
8547     isllibs=
8548     islinc=
8549   fi
8550
8551   if test "${graphite_requested}" = yes \
8552     && test "x${isllibs}" = x \
8553     && test "x${islinc}" = x ; then
8554
8555     as_fn_error $? "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
8556   fi
8557
8558
8559 fi
8560
8561 # If the isl check failed, disable builds of in-tree variant of isl
8562 if test "x$with_isl" = xno ||
8563    test "x$gcc_cv_isl" = xno; then
8564   noconfigdirs="$noconfigdirs isl"
8565   islinc=
8566 fi
8567
8568
8569
8570
8571 # Check for LTO support.
8572 # Check whether --enable-lto was given.
8573 if test "${enable_lto+set}" = set; then :
8574   enableval=$enable_lto; enable_lto=$enableval
8575 else
8576   enable_lto=yes; default_enable_lto=yes
8577 fi
8578
8579
8580
8581
8582
8583 target_elf=no
8584 case $target in
8585   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8586   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8587   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8588   nvptx-*-none)
8589     target_elf=no
8590     ;;
8591   *)
8592     target_elf=yes
8593     ;;
8594 esac
8595
8596 if test $target_elf = yes; then :
8597   # ELF platforms build the lto-plugin always.
8598   build_lto_plugin=yes
8599
8600 else
8601   if test x"$default_enable_lto" = x"yes" ; then
8602     case $target in
8603       *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8604       # On other non-ELF platforms, LTO has yet to be validated.
8605       *) enable_lto=no ;;
8606     esac
8607   else
8608   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8609   # It would also be nice to check the binutils support, but we don't
8610   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
8611   # warn during gcc/ subconfigure; unless you're bootstrapping with
8612   # -flto it won't be needed until after installation anyway.
8613     case $target in
8614       *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8615       *) if test x"$enable_lto" = x"yes"; then
8616         as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8617         fi
8618       ;;
8619     esac
8620   fi
8621   # Among non-ELF, only Windows platforms support the lto-plugin so far.
8622   # Build it unless LTO was explicitly disabled.
8623   case $target in
8624     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8625     *) ;;
8626   esac
8627
8628 fi
8629
8630
8631 # Check whether --enable-linker-plugin-configure-flags was given.
8632 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8633   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8634 else
8635   extra_linker_plugin_configure_flags=
8636 fi
8637
8638
8639 # Check whether --enable-linker-plugin-flags was given.
8640 if test "${enable_linker_plugin_flags+set}" = set; then :
8641   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8642 else
8643   extra_linker_plugin_flags=
8644 fi
8645
8646
8647
8648 # Enable --enable-host-shared.
8649 # Checked early to determine whether jit is an 'all' language
8650 # Check whether --enable-host-shared was given.
8651 if test "${enable_host_shared+set}" = set; then :
8652   enableval=$enable_host_shared; host_shared=$enableval
8653  case $host in
8654    x86_64-*-darwin* | aarch64-*-darwin*)
8655      if test x$host_shared != xyes ; then
8656        # PIC is the default, and actually cannot be switched off.
8657        echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8658        host_shared=yes
8659      fi ;;
8660   *) ;;
8661  esac
8662 else
8663   case $host in
8664   x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8665   *) host_shared=no ;;
8666  esac
8667 fi
8668
8669
8670
8671
8672 # If we are building PIC/PIE host executables, and we are building dependent
8673 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8674 # code.
8675 host_libs_picflag=
8676 if test "$host_shared" = "yes";then
8677 host_libs_picflag='--with-pic'
8678 fi
8679
8680
8681 # By default, C and C++ are the only stage 1 languages.
8682 stage1_languages=,c,
8683
8684 # Target libraries that we bootstrap.
8685 bootstrap_target_libs=,target-libgcc,
8686
8687 # Figure out what language subdirectories are present.
8688 # Look if the user specified --enable-languages="..."; if not, use
8689 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8690 # go away some day.
8691 # NB:  embedded tabs in this IF block -- do not untabify
8692 if test -d ${srcdir}/gcc; then
8693   if test x"${enable_languages+set}" != xset; then
8694     if test x"${LANGUAGES+set}" = xset; then
8695       enable_languages="${LANGUAGES}"
8696         echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8697     else
8698       enable_languages=default
8699     fi
8700   else
8701     if test x"${enable_languages}" = x ||
8702        test x"${enable_languages}" = xyes;
8703        then
8704       echo configure.ac: --enable-languages needs at least one language argument 1>&2
8705       exit 1
8706     fi
8707   fi
8708   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
8709
8710   # 'f95' is the old name for the 'fortran' language. We issue a warning
8711   # and make the substitution.
8712   case ,${enable_languages}, in
8713     *,f95,*)
8714       echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8715       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8716       ;;
8717   esac
8718
8719   # If bootstrapping, C++ must be enabled.
8720   case ",$enable_languages,:$enable_bootstrap" in
8721     *,c++,*:*) ;;
8722     *:yes)
8723       if test -f ${srcdir}/gcc/cp/config-lang.in; then
8724         enable_languages="${enable_languages},c++"
8725       else
8726         as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8727       fi
8728       ;;
8729   esac
8730
8731   # First scan to see if an enabled language requires some other language.
8732   # We assume that a given config-lang.in will list all the language
8733   # front ends it requires, even if some are required indirectly.
8734   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8735     case ${lang_frag} in
8736       ..) ;;
8737       # The odd quoting in the next line works around
8738       # an apparent bug in bash 1.12 on linux.
8739       ${srcdir}/gcc/[*]/config-lang.in) ;;
8740       *)
8741         # From the config-lang.in, get $language, $lang_requires, and
8742         # $lang_requires_boot_languages.
8743         language=
8744         lang_requires=
8745         lang_requires_boot_languages=
8746         # set srcdir during sourcing lang_frag to the gcc dir.
8747         # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8748         # polutes this shell
8749         saved_srcdir=${srcdir}
8750         srcdir=${srcdir}/gcc . ${lang_frag}
8751         srcdir=${saved_srcdir}
8752         for other in ${lang_requires} ${lang_requires_boot_languages}; do
8753           case ,${enable_languages}, in
8754             *,$other,*) ;;
8755             *,default,*) ;;
8756             *,all,*) ;;
8757             *,$language,*)
8758               echo " \`$other' language required by \`$language'; enabling" 1>&2
8759               enable_languages="${enable_languages},${other}"
8760               ;;
8761           esac
8762         done
8763         for other in ${lang_requires_boot_languages} ; do
8764           if test "$other" != "c"; then
8765             case ,${enable_stage1_languages}, in
8766               *,$other,*) ;;
8767               *,default,*) ;;
8768               *,all,*) ;;
8769               *)
8770                 case ,${enable_languages}, in
8771                   *,$language,*)
8772                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8773                     enable_stage1_languages="$enable_stage1_languages,${other}"
8774                     ;;
8775                 esac
8776                 ;;
8777             esac
8778           fi
8779         done
8780         ;;
8781     esac
8782   done
8783
8784   new_enable_languages=,c,
8785
8786   # If LTO is enabled, add the LTO front end.
8787   if test "$enable_lto" = "yes" ; then
8788     case ,${enable_languages}, in
8789       *,lto,*) ;;
8790       *) enable_languages="${enable_languages},lto" ;;
8791     esac
8792     if test "${build_lto_plugin}" = "yes" ; then
8793       configdirs="$configdirs lto-plugin"
8794     fi
8795   fi
8796
8797   # If we're building an offloading compiler, add the LTO front end.
8798   if test x"$enable_as_accelerator_for" != x ; then
8799     case ,${enable_languages}, in
8800       *,lto,*) ;;
8801       *) enable_languages="${enable_languages},lto" ;;
8802     esac
8803   fi
8804
8805   missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8806   potential_languages=,c,
8807
8808   enabled_target_libs=
8809   disabled_target_libs=
8810
8811   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8812     case ${lang_frag} in
8813       ..) ;;
8814       # The odd quoting in the next line works around
8815       # an apparent bug in bash 1.12 on linux.
8816       ${srcdir}/gcc/[*]/config-lang.in) ;;
8817       *)
8818         # From the config-lang.in, get $language, $target_libs,
8819         # $lang_dirs, $boot_language, and $build_by_default
8820         language=
8821         target_libs=
8822         lang_dirs=
8823         subdir_requires=
8824         boot_language=no
8825         build_by_default=yes
8826         # set srcdir during sourcing.  See above about save & restore
8827         saved_srcdir=${srcdir}
8828         srcdir=${srcdir}/gcc . ${lang_frag}
8829         srcdir=${saved_srcdir}
8830         if test x${language} = x; then
8831           echo "${lang_frag} doesn't set \$language." 1>&2
8832           exit 1
8833         fi
8834
8835         if test "$language" = "c++"; then
8836           boot_language=yes
8837         fi
8838
8839         add_this_lang=no
8840         # C is always enabled, so no need to add it again
8841         if test "$language" != "c"; then
8842           case ,${enable_languages}, in
8843             *,${language},*)
8844               # Language was explicitly selected; include it
8845               add_this_lang=yes
8846               ;;
8847             *,all,*)
8848               # All languages are enabled
8849               add_this_lang=all
8850               ;;
8851             *,default,*)
8852               # 'default' was selected, select it if it is a default language
8853               add_this_lang=${build_by_default}
8854               ;;
8855           esac
8856         fi
8857
8858         # Disable languages that need other directories if these aren't available.
8859         for i in $subdir_requires; do
8860           test -f "$srcdir/gcc/$i/config-lang.in" && continue
8861           case ${add_this_lang} in
8862             yes)
8863               # Specifically requested language; tell them.
8864               as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8865               ;;
8866             all)
8867               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8868 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8869               add_this_lang=unsupported
8870               ;;
8871             *)
8872               # Silently disable.
8873               add_this_lang=unsupported
8874               ;;
8875           esac
8876         done
8877
8878         # Disable Ada if no preexisting GNAT is available.
8879         case ${add_this_lang}:${language}:${have_gnat} in
8880           yes:ada:no)
8881             # Specifically requested language; tell them.
8882             as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8883             ;;
8884           all:ada:no)
8885             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8886 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8887             add_this_lang=unsupported
8888             ;;
8889           *:ada:no)
8890             # Silently disable.
8891             add_this_lang=unsupported
8892             ;;
8893         esac
8894
8895         # Disable D if no preexisting GDC is available.
8896         case ${add_this_lang}:${language}:${have_gdc} in
8897           yes:d:no)
8898             # Specifically requested language; tell them.
8899             as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8900            ;;
8901           all:d:no)
8902             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8903 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8904             add_this_lang=unsupported
8905             ;;
8906           *:d:no)
8907             # Silently disable.
8908             add_this_lang=unsupported
8909             ;;
8910         esac
8911
8912         # Disable Rust for GCC 13 release.
8913         case ${add_this_lang}:${language} in
8914           yes:rust)
8915             # Specifically requested language; tell them.
8916             as_fn_error $? "Rust is not supported in GCC 13 release" "$LINENO" 5
8917            ;;
8918           *:rust)
8919             # Silently disable.
8920             add_this_lang=unsupported
8921             ;;
8922         esac
8923
8924         # Disable jit if -enable-host-shared not specified
8925         # but not if building for Mingw. All code in Windows
8926         # is position independent code (PIC).
8927         case $target in
8928           *mingw*) ;;
8929           *)
8930           case ${add_this_lang}:${language}:${host_shared} in
8931             yes:jit:no)
8932                    # PR jit/64780: explicitly specify --enable-host-shared
8933             as_fn_error $? "
8934 Enabling language \"jit\" requires --enable-host-shared.
8935
8936 --enable-host-shared typically slows the rest of the compiler down by
8937 a few %, so you must explicitly enable it.
8938
8939 If you want to build both the jit and the regular compiler, it is often
8940 best to do this via two separate configure/builds, in separate
8941 directories, to avoid imposing the performance cost of
8942 --enable-host-shared on the regular compiler." "$LINENO" 5
8943                     ;;
8944             all:jit:no)
8945               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8946 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8947               add_this_lang=unsupported
8948               ;;
8949             *:jit:no)
8950               # Silently disable.
8951               add_this_lang=unsupported
8952               ;;
8953                 esac
8954           ;;
8955         esac
8956
8957         # Disable a language that is unsupported by the target.
8958         case "${add_this_lang}: $unsupported_languages " in
8959           no:*) ;;
8960           unsupported:*) ;;
8961           *:*" $language "*)
8962             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8963 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8964             add_this_lang=unsupported
8965             ;;
8966         esac
8967
8968         case $add_this_lang in
8969           unsupported)
8970             # Remove language-dependent dirs.
8971             disabled_target_libs="$disabled_target_libs $target_libs"
8972             noconfigdirs="$noconfigdirs $lang_dirs"
8973             ;;
8974           no)
8975             # Remove language-dependent dirs; still show language as supported.
8976             disabled_target_libs="$disabled_target_libs $target_libs"
8977             noconfigdirs="$noconfigdirs $lang_dirs"
8978             potential_languages="${potential_languages}${language},"
8979             ;;
8980           all|yes)
8981             new_enable_languages="${new_enable_languages}${language},"
8982             potential_languages="${potential_languages}${language},"
8983             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8984             enabled_target_libs="$enabled_target_libs $target_libs"
8985             case "${boot_language}:,$enable_stage1_languages," in
8986               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8987                 # Add to (comma-separated) list of stage 1 languages.
8988                 case ",$stage1_languages," in
8989                   *,$language,* | ,yes, | ,all,) ;;
8990                   *) stage1_languages="${stage1_languages}${language}," ;;
8991                 esac
8992                 # We need to bootstrap any supporting libraries.
8993                 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8994                 ;;
8995             esac
8996             ;;
8997         esac
8998         ;;
8999     esac
9000   done
9001
9002   # Add target libraries which are only needed for disabled languages
9003   # to noconfigdirs.
9004   if test -n "$disabled_target_libs"; then
9005     for dir in $disabled_target_libs; do
9006       case " $enabled_target_libs " in
9007       *" ${dir} "*) ;;
9008       *) noconfigdirs="$noconfigdirs $dir" ;;
9009       esac
9010     done
9011   fi
9012
9013   # Check whether --enable-stage1-languages was given.
9014 if test "${enable_stage1_languages+set}" = set; then :
9015   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9016     ,no,|,,)
9017       # Set it to something that will have no effect in the loop below
9018       enable_stage1_languages=c ;;
9019     ,yes,)
9020       enable_stage1_languages=`echo $new_enable_languages | \
9021         sed -e "s/^,//" -e "s/,$//" ` ;;
9022     *,all,*)
9023       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9024         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9025   esac
9026
9027   # Add "good" languages from enable_stage1_languages to stage1_languages,
9028   # while "bad" languages go in missing_languages.  Leave no duplicates.
9029   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9030     case $potential_languages in
9031       *,$i,*)
9032         case $stage1_languages in
9033           *,$i,*) ;;
9034           *) stage1_languages="$stage1_languages$i," ;;
9035         esac ;;
9036       *)
9037         case $missing_languages in
9038           *,$i,*) ;;
9039           *) missing_languages="$missing_languages$i," ;;
9040         esac ;;
9041      esac
9042   done
9043 fi
9044
9045
9046   # Remove leading/trailing commas that were added for simplicity
9047   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9048   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9049   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9050   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9051
9052   if test "x$missing_languages" != x; then
9053     as_fn_error $? "
9054 The following requested languages could not be built: ${missing_languages}
9055 Supported languages are: ${potential_languages}" "$LINENO" 5
9056   fi
9057   if test "x$new_enable_languages" != "x$enable_languages"; then
9058     echo The following languages will be built: ${new_enable_languages}
9059     enable_languages="$new_enable_languages"
9060   fi
9061
9062
9063   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9064 fi
9065
9066 # Handle --disable-<component> generically.
9067 for dir in $configdirs $build_configdirs $target_configdirs ; do
9068   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9069   varname=`echo $dirname | sed -e s/+/_/g`
9070   if eval test x\${enable_${varname}} "=" xno ; then
9071     noconfigdirs="$noconfigdirs $dir"
9072   fi
9073 done
9074
9075 # Check for Boehm's garbage collector
9076 # Check whether --enable-objc-gc was given.
9077 if test "${enable_objc_gc+set}" = set; then :
9078   enableval=$enable_objc_gc;
9079 fi
9080
9081
9082 # Check whether --with-target-bdw-gc was given.
9083 if test "${with_target_bdw_gc+set}" = set; then :
9084   withval=$with_target_bdw_gc;
9085 fi
9086
9087
9088 # Check whether --with-target-bdw-gc-include was given.
9089 if test "${with_target_bdw_gc_include+set}" = set; then :
9090   withval=$with_target_bdw_gc_include;
9091 fi
9092
9093
9094 # Check whether --with-target-bdw-gc-lib was given.
9095 if test "${with_target_bdw_gc_lib+set}" = set; then :
9096   withval=$with_target_bdw_gc_lib;
9097 fi
9098
9099
9100 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9102 $as_echo_n "checking for bdw garbage collector... " >&6; }
9103   if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9104         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9105 $as_echo "using bdw-gc in default locations" >&6; }
9106   else
9107         if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9108       as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9109     elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9110       as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9111     else
9112       { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9113 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9114     fi
9115   fi
9116 esac
9117
9118 # Disable libitm, libsanitizer, libvtv if we're not building C++
9119 case ,${enable_languages}, in
9120   *,c++,*)
9121     # Disable libitm, libsanitizer if we're not building libstdc++
9122     case "${noconfigdirs}" in
9123       *target-libstdc++-v3*)
9124         noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9125         ;;
9126       *) ;;
9127     esac
9128     ;;
9129   *)
9130     noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9131     ;;
9132 esac
9133
9134 # If gcc/ is not in the source tree then we'll not be building a
9135 # target compiler, assume in that case we don't want to build any
9136 # target libraries or tools.
9137 #
9138 # This was added primarily for the benefit for binutils-gdb who reuse
9139 # this configure script, but don't always have target tools available.
9140 if test ! -d ${srcdir}/gcc; then
9141    skipdirs="${skipdirs} ${target_configdirs}"
9142 fi
9143
9144 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9145 # $build_configdirs and $target_configdirs.
9146 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9147
9148 notsupp=""
9149 for dir in . $skipdirs $noconfigdirs ; do
9150   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9151   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9152     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9153     if test -r $srcdir/$dirname/configure ; then
9154       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9155         true
9156       else
9157         notsupp="$notsupp $dir"
9158       fi
9159     fi
9160   fi
9161   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9162     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9163     if test -r $srcdir/$dirname/configure ; then
9164       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9165         true
9166       else
9167         notsupp="$notsupp $dir"
9168       fi
9169     fi
9170   fi
9171   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9172     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9173     if test -r $srcdir/$dirname/configure ; then
9174       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9175         true
9176       else
9177         notsupp="$notsupp $dir"
9178       fi
9179     fi
9180   fi
9181 done
9182
9183 # Quietly strip out all directories which aren't configurable in this tree.
9184 # This relies on all configurable subdirectories being autoconfiscated, which
9185 # is now the case.
9186 build_configdirs_all="$build_configdirs"
9187 build_configdirs=
9188 for i in ${build_configdirs_all} ; do
9189   j=`echo $i | sed -e s/build-//g`
9190   if test -f ${srcdir}/$j/configure ; then
9191     build_configdirs="${build_configdirs} $i"
9192   fi
9193 done
9194
9195 configdirs_all="$configdirs"
9196 configdirs=
9197 for i in ${configdirs_all} ; do
9198   if test -f ${srcdir}/$i/configure ; then
9199     configdirs="${configdirs} $i"
9200   fi
9201 done
9202
9203 target_configdirs_all="$target_configdirs"
9204 target_configdirs=
9205 for i in ${target_configdirs_all} ; do
9206   j=`echo $i | sed -e s/target-//g`
9207   if test -f ${srcdir}/$j/configure ; then
9208     target_configdirs="${target_configdirs} $i"
9209   fi
9210 done
9211
9212 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9213 # so we have to add it after the preceding checks.
9214 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9215 then
9216   case " $configdirs " in
9217     *" libiberty "*)
9218       # If we can build libiberty, we can also build libiberty-linker-plugin.
9219       configdirs="$configdirs libiberty-linker-plugin"
9220       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9221         --with-libiberty=../libiberty-linker-plugin";;
9222     *)
9223       as_fn_error $? "libiberty missing" "$LINENO" 5;;
9224   esac
9225 fi
9226
9227 # Sometimes we have special requirements for the host libiberty.
9228 extra_host_libiberty_configure_flags=
9229 case " $configdirs " in
9230   *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9231     # When these are to be built as shared libraries, the same applies to
9232     # libiberty.
9233     extra_host_libiberty_configure_flags=--enable-shared
9234     ;;
9235 esac
9236
9237
9238 # Sometimes we have special requirements for the host zlib.
9239 extra_host_zlib_configure_flags=
9240 case " $configdirs " in
9241   *" bfd "*)
9242     # When bfd is to be built as a shared library, the same applies to
9243     # zlib.
9244     if test "$enable_shared" = "yes"; then
9245       extra_host_zlib_configure_flags=--enable-host-shared
9246     fi
9247     ;;
9248 esac
9249
9250
9251 # Produce a warning message for the subdirs we can't configure.
9252 # This isn't especially interesting in the Cygnus tree, but in the individual
9253 # FSF releases, it's important to let people know when their machine isn't
9254 # supported by the one or two programs in a package.
9255
9256 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9257   # If $appdirs is non-empty, at least one of those directories must still
9258   # be configured, or we error out.  (E.g., if the gas release supports a
9259   # specified target in some subdirs but not the gas subdir, we shouldn't
9260   # pretend that all is well.)
9261   if test -n "$appdirs" ; then
9262     for dir in $appdirs ; do
9263       if test -r $dir/Makefile.in ; then
9264         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9265           appdirs=""
9266           break
9267         fi
9268         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9269           appdirs=""
9270           break
9271         fi
9272       fi
9273     done
9274     if test -n "$appdirs" ; then
9275       echo "*** This configuration is not supported by this package." 1>&2
9276       exit 1
9277     fi
9278   fi
9279   # Okay, some application will build, or we don't care to check.  Still
9280   # notify of subdirs not getting built.
9281   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9282   echo "    ${notsupp}" 1>&2
9283   echo "    (Any other directories should still work fine.)" 1>&2
9284 fi
9285
9286 case "$host" in
9287   *msdosdjgpp*)
9288     enable_gdbtk=no ;;
9289 esac
9290
9291 # To find our prefix, in gcc_cv_tool_prefix.
9292
9293 # The user is always right.
9294 if test "${PATH_SEPARATOR+set}" != set; then
9295   echo "#! /bin/sh" >conf$$.sh
9296   echo  "exit 0"   >>conf$$.sh
9297   chmod +x conf$$.sh
9298   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9299     PATH_SEPARATOR=';'
9300   else
9301     PATH_SEPARATOR=:
9302   fi
9303   rm -f conf$$.sh
9304 fi
9305
9306
9307   get_gcc_base_ver="cat"
9308
9309 # Check whether --with-gcc-major-version-only was given.
9310 if test "${with_gcc_major_version_only+set}" = set; then :
9311   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9312         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9313       fi
9314
9315 fi
9316
9317
9318
9319
9320
9321
9322 if test "x$exec_prefix" = xNONE; then
9323         if test "x$prefix" = xNONE; then
9324                 gcc_cv_tool_prefix=$ac_default_prefix
9325         else
9326                 gcc_cv_tool_prefix=$prefix
9327         fi
9328 else
9329         gcc_cv_tool_prefix=$exec_prefix
9330 fi
9331
9332 # If there is no compiler in the tree, use the PATH only.  In any
9333 # case, if there is no compiler in the tree nobody should use
9334 # AS_FOR_TARGET and LD_FOR_TARGET.
9335 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9336     if test x$with_gcc_major_version_only = xyes ; then
9337                 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9338             else
9339         gcc_version=`cat $srcdir/gcc/BASE-VER`
9340     fi
9341     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9342     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9343     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9344     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9345     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9346     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9347 else
9348     gcc_cv_tool_dirs=
9349 fi
9350
9351 if test x$build = x$target && test -n "$md_exec_prefix"; then
9352         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9353 fi
9354
9355
9356
9357 copy_dirs=
9358
9359
9360 # Check whether --with-build-sysroot was given.
9361 if test "${with_build_sysroot+set}" = set; then :
9362   withval=$with_build_sysroot; if test x"$withval" != x ; then
9363      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9364    fi
9365 else
9366   SYSROOT_CFLAGS_FOR_TARGET=
9367 fi
9368
9369
9370
9371
9372 # Check whether --with-debug-prefix-map was given.
9373 if test "${with_debug_prefix_map+set}" = set; then :
9374   withval=$with_debug_prefix_map; if test x"$withval" != x; then
9375      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9376      for debug_map in $withval; do
9377        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9378      done
9379    fi
9380 else
9381   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9382 fi
9383
9384
9385
9386 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9387 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
9388 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9389 # We want to ensure that TARGET libraries (which we know are built with
9390 # gcc) are built with "-O2 -g", so include those options when setting
9391 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9392 if test "x$CFLAGS_FOR_TARGET" = x; then
9393   if test "x${is_cross_compiler}" = xyes; then
9394     CFLAGS_FOR_TARGET="-g -O2"
9395   else
9396     CFLAGS_FOR_TARGET=$CFLAGS
9397     case " $CFLAGS " in
9398       *" -O2 "*) ;;
9399       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9400     esac
9401     case " $CFLAGS " in
9402       *" -g "* | *" -g3 "*) ;;
9403       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9404     esac
9405   fi
9406 fi
9407
9408
9409 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9410   if test "x${is_cross_compiler}" = xyes; then
9411     CXXFLAGS_FOR_TARGET="-g -O2"
9412   else
9413     CXXFLAGS_FOR_TARGET=$CXXFLAGS
9414     case " $CXXFLAGS " in
9415       *" -O2 "*) ;;
9416       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9417     esac
9418     case " $CXXFLAGS " in
9419       *" -g "* | *" -g3 "*) ;;
9420       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9421     esac
9422   fi
9423 fi
9424
9425
9426
9427
9428 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
9429 # the named directory are copied to $(tooldir)/sys-include.
9430 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9431   if test x${is_cross_compiler} = xno ; then
9432     echo 1>&2 '***' --with-headers is only supported when cross compiling
9433     exit 1
9434   fi
9435   if test x"${with_headers}" != xyes ; then
9436     x=${gcc_cv_tool_prefix}
9437     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9438   fi
9439 fi
9440
9441 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
9442 # the name directories are copied to $(tooldir)/lib.  Multiple directories
9443 # are permitted.
9444 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9445   if test x${is_cross_compiler} = xno ; then
9446     echo 1>&2 '***' --with-libs is only supported when cross compiling
9447     exit 1
9448   fi
9449   if test x"${with_libs}" != xyes ; then
9450     # Copy the libraries in reverse order, so that files in the first named
9451     # library override files in subsequent libraries.
9452     x=${gcc_cv_tool_prefix}
9453     for l in ${with_libs}; do
9454       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9455     done
9456   fi
9457 fi
9458
9459 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9460 #
9461 # This is done by determining whether or not the appropriate directory
9462 # is available, and by checking whether or not specific configurations
9463 # have requested that this magic not happen.
9464 #
9465 # The command line options always override the explicit settings in
9466 # configure.ac, and the settings in configure.ac override this magic.
9467 #
9468 # If the default for a toolchain is to use GNU as and ld, and you don't
9469 # want to do that, then you should use the --without-gnu-as and
9470 # --without-gnu-ld options for the configure script.  Similarly, if
9471 # the default is to use the included zlib and you don't want to do that,
9472 # you should use the --with-system-zlib option for the configure script.
9473
9474 if test x${use_gnu_as} = x &&
9475    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9476   with_gnu_as=yes
9477   extra_host_args="$extra_host_args --with-gnu-as"
9478 fi
9479
9480 if test x${use_gnu_ld} = x &&
9481    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9482   with_gnu_ld=yes
9483   extra_host_args="$extra_host_args --with-gnu-ld"
9484 fi
9485
9486 if test x${use_included_zlib} = x &&
9487    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9488   :
9489 else
9490   with_system_zlib=yes
9491   extra_host_args="$extra_host_args --with-system-zlib"
9492 fi
9493
9494 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9495 # can detect this case.
9496
9497 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9498   with_newlib=yes
9499   extra_host_args="$extra_host_args --with-newlib"
9500 fi
9501
9502 # Handle ${copy_dirs}
9503 set fnord ${copy_dirs}
9504 shift
9505 while test $# != 0 ; do
9506   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9507     :
9508   else
9509     echo Copying $1 to $2
9510
9511     # Use the install script to create the directory and all required
9512     # parent directories.
9513     if test -d $2 ; then
9514       :
9515     else
9516       echo >config.temp
9517       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9518     fi
9519
9520     # Copy the directory, assuming we have tar.
9521     # FIXME: Should we use B in the second tar?  Not all systems support it.
9522     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9523
9524     # It is the responsibility of the user to correctly adjust all
9525     # symlinks.  If somebody can figure out how to handle them correctly
9526     # here, feel free to add the code.
9527
9528     echo $1 > $2/COPIED
9529   fi
9530   shift; shift
9531 done
9532
9533 # Determine a target-dependent exec_prefix that the installed
9534 # gcc will search in.  Keep this list sorted by triplet, with
9535 # the *-*-osname triplets last.
9536 md_exec_prefix=
9537 case "${target}" in
9538   i[34567]86-pc-msdosdjgpp*)
9539     md_exec_prefix=/dev/env/DJDIR/bin
9540     ;;
9541   *-*-hpux* | \
9542   *-*-nto-qnx* | \
9543   *-*-solaris2*)
9544     md_exec_prefix=/usr/ccs/bin
9545     ;;
9546 esac
9547
9548 extra_arflags_for_target=
9549 extra_nmflags_for_target=
9550 extra_ranlibflags_for_target=
9551 target_makefile_frag=/dev/null
9552 case "${target}" in
9553   spu-*-*)
9554     target_makefile_frag="config/mt-spu"
9555     ;;
9556   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9557     target_makefile_frag="config/mt-sde"
9558     ;;
9559   mipsisa*-*-elfoabi*)
9560     target_makefile_frag="config/mt-mips-elfoabi"
9561     ;;
9562   mips*-*-*linux* | mips*-*-gnu*)
9563     target_makefile_frag="config/mt-mips-gnu"
9564     ;;
9565   nios2-*-elf*)
9566     target_makefile_frag="config/mt-nios2-elf"
9567     ;;
9568   *-*-linux-android*)
9569     target_makefile_frag="config/mt-android"
9570     ;;
9571   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9572     target_makefile_frag="config/mt-gnu"
9573     ;;
9574   *-*-aix4.[3456789]* | *-*-aix[56789].*)
9575     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9576     # commands to handle both 32-bit and 64-bit objects.  These flags are
9577     # harmless if we're using GNU nm or ar.
9578     extra_arflags_for_target=" -X32_64"
9579     extra_nmflags_for_target=" -B -X32_64"
9580     ;;
9581 esac
9582
9583 alphaieee_frag=/dev/null
9584 case $target in
9585   alpha*-*-*)
9586     # This just makes sure to use the -mieee option to build target libs.
9587     # This should probably be set individually by each library.
9588     alphaieee_frag="config/mt-alphaieee"
9589     ;;
9590 esac
9591
9592 # If --enable-target-optspace always use -Os instead of -O2 to build
9593 # the target libraries, similarly if it is not specified, use -Os
9594 # on selected platforms.
9595 ospace_frag=/dev/null
9596 case "${enable_target_optspace}:${target}" in
9597   yes:*)
9598     ospace_frag="config/mt-ospace"
9599     ;;
9600   :d30v-*)
9601     ospace_frag="config/mt-d30v"
9602     ;;
9603   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9604     ospace_frag="config/mt-ospace"
9605     ;;
9606   no:* | :*)
9607     ;;
9608   *)
9609     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9610     ;;
9611 esac
9612
9613 # Some systems (e.g., one of the i386-aix systems the gas testers are
9614 # using) don't handle "\$" correctly, so don't use it here.
9615 tooldir='${exec_prefix}'/${target_noncanonical}
9616 build_tooldir=${tooldir}
9617
9618 # Create a .gdbinit file which runs the one in srcdir
9619 # and tells GDB to look there for source files.
9620
9621 if test -r ${srcdir}/.gdbinit ; then
9622   case ${srcdir} in
9623     .) ;;
9624     *) cat > ./.gdbinit <<EOF
9625 # ${NO_EDIT}
9626 dir ${srcdir}
9627 dir .
9628 source ${srcdir}/.gdbinit
9629 EOF
9630     ;;
9631   esac
9632 fi
9633
9634 # Make sure that the compiler is able to generate an executable.  If it
9635 # can't, we are probably in trouble.  We don't care whether we can run the
9636 # executable--we might be using a cross compiler--we only care whether it
9637 # can be created.  At this point the main configure script has set CC.
9638 we_are_ok=no
9639 echo "int main () { return 0; }" > conftest.c
9640 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9641 if test $? = 0 ; then
9642   if test -s conftest || test -s conftest.exe ; then
9643     we_are_ok=yes
9644   fi
9645 fi
9646 case $we_are_ok in
9647   no)
9648     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9649     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9650     rm -f conftest*
9651     exit 1
9652     ;;
9653 esac
9654 rm -f conftest*
9655
9656 # Decide which environment variable is used to find dynamic libraries.
9657 case "${host}" in
9658   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9659   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9660   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9661   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9662 esac
9663
9664 # On systems where the dynamic library environment variable is PATH,
9665 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9666 # built executables to PATH.
9667 if test "$RPATH_ENVVAR" = PATH; then
9668   GCC_SHLIB_SUBDIR=/shlib
9669 else
9670   GCC_SHLIB_SUBDIR=
9671 fi
9672
9673 # Adjust the toplevel makefile according to whether bootstrap was selected.
9674 case $enable_bootstrap in
9675   yes)
9676     bootstrap_suffix=bootstrap
9677     BUILD_CONFIG=bootstrap-debug
9678     ;;
9679   no)
9680     bootstrap_suffix=no-bootstrap
9681     BUILD_CONFIG=
9682     ;;
9683 esac
9684
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9686 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9687
9688
9689 # Check whether --with-build-config was given.
9690 if test "${with_build_config+set}" = set; then :
9691   withval=$with_build_config; case $with_build_config in
9692    yes) with_build_config= ;;
9693    no) with_build_config= BUILD_CONFIG= ;;
9694    esac
9695 fi
9696
9697
9698 if test "x${with_build_config}" != x; then
9699   BUILD_CONFIG=$with_build_config
9700 else
9701   case $BUILD_CONFIG in
9702   bootstrap-debug)
9703     if echo "int f (void) { return 0; }" > conftest.c &&
9704        ${CC} -c conftest.c &&
9705        mv conftest.o conftest.o.g0 &&
9706        ${CC} -c -g conftest.c &&
9707        mv conftest.o conftest.o.g &&
9708        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9709       :
9710     else
9711       BUILD_CONFIG=
9712     fi
9713     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9714     ;;
9715   esac
9716 fi
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9718 $as_echo "$BUILD_CONFIG" >&6; }
9719
9720
9721 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9723 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9724 # Check whether --enable-vtable-verify was given.
9725 if test "${enable_vtable_verify+set}" = set; then :
9726   enableval=$enable_vtable_verify; case "$enableval" in
9727  yes) enable_vtable_verify=yes ;;
9728  no)  enable_vtable_verify=no ;;
9729  *)   enable_vtable_verify=no;;
9730  esac
9731 else
9732   enable_vtable_verify=no
9733 fi
9734
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9736 $as_echo "$enable_vtable_verify" >&6; }
9737
9738 # Record target_configdirs and the configure arguments for target and
9739 # build configuration in Makefile.
9740 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9741 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9742 bootstrap_fixincludes=no
9743
9744 # If we are building libgomp, bootstrap it.
9745 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9746   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9747 fi
9748
9749 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9750 # or bootstrap-ubsan, bootstrap it.
9751 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9752   case "$BUILD_CONFIG" in
9753     *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9754       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9755       bootstrap_fixincludes=yes
9756       ;;
9757   esac
9758 fi
9759
9760 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9761 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9762    test "$enable_vtable_verify" != no; then
9763   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9764 fi
9765
9766 # If we are building libatomic and the list of enabled languages includes the
9767 # D frontend, bootstrap it.
9768 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9769   case ,${enable_languages}, in
9770     *,d,*)
9771       bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9772       ;;
9773   esac
9774 fi
9775
9776 # Determine whether gdb needs tk/tcl or not.
9777 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9778 # and in that case we want gdb to be built without tk.  Ugh!
9779 # In fact I believe gdb is the *only* package directly dependent on tk,
9780 # so we should be able to put the 'maybe's in unconditionally and
9781 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
9782 # 100% sure that that's safe though.
9783
9784 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9785 case "$enable_gdbtk" in
9786   no)
9787     GDB_TK="" ;;
9788   yes)
9789     GDB_TK="${gdb_tk}" ;;
9790   *)
9791     # Only add the dependency on gdbtk when GDBtk is part of the gdb
9792     # distro.  Eventually someone will fix this and move Insight, nee
9793     # gdbtk to a separate directory.
9794     if test -d ${srcdir}/gdb/gdbtk ; then
9795       GDB_TK="${gdb_tk}"
9796     else
9797       GDB_TK=""
9798     fi
9799     ;;
9800 esac
9801 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9802 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9803
9804 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9805 # else does, only include them if one of these is built.  The Makefile
9806 # provides the ordering, so it's enough here to add to the list.
9807 case " ${configdirs} " in
9808   *\ gdb\ *)
9809     configdirs="${configdirs} gnulib gdbsupport"
9810     ;;
9811   *\ gdbserver\ *)
9812     configdirs="${configdirs} gnulib gdbsupport"
9813     ;;
9814   *\ sim\ *)
9815     configdirs="${configdirs} gnulib"
9816     ;;
9817 esac
9818
9819 # Strip out unwanted targets.
9820
9821 # While at that, we remove Makefiles if we were started for recursive
9822 # configuration, so that the top-level Makefile reconfigures them,
9823 # like we used to do when configure itself was recursive.
9824
9825 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
9826 # but now we're fixing up the Makefile ourselves with the additional
9827 # commands passed to AC_CONFIG_FILES.  Use separate variables
9828 # extrasub-{build,host,target} not because there is any reason to split
9829 # the substitutions up that way, but only to remain below the limit of
9830 # 99 commands in a script, for HP-UX sed.
9831
9832 # Do not nest @if/@endif or @unless/@endunless pairs, because
9833 # configure will not warn you at all.
9834
9835 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9836   yes:yes:*\ gold\ *:*,c++,*) ;;
9837   yes:yes:*\ gold\ *:*)
9838     as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9839     ;;
9840 esac
9841
9842 extrasub_build=
9843 for module in ${build_configdirs} ; do
9844   if test -z "${no_recursion}" \
9845      && test -f ${build_subdir}/${module}/Makefile; then
9846     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9847     rm -f ${build_subdir}/${module}/Makefile
9848   fi
9849   extrasub_build="$extrasub_build
9850 /^@if build-$module\$/d
9851 /^@endif build-$module\$/d
9852 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9853 /^@if build-$module-$bootstrap_suffix\$/d
9854 /^@endif build-$module-$bootstrap_suffix\$/d
9855 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9856 done
9857 extrasub_host=
9858 for module in ${configdirs} ; do
9859   if test -z "${no_recursion}"; then
9860     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9861       if test -f ${file}; then
9862         echo 1>&2 "*** removing ${file} to force reconfigure"
9863         rm -f ${file}
9864       fi
9865     done
9866   fi
9867   case ${module},${bootstrap_fixincludes} in
9868     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9869     *) host_bootstrap_suffix=$bootstrap_suffix ;;
9870   esac
9871   extrasub_host="$extrasub_host
9872 /^@if $module\$/d
9873 /^@endif $module\$/d
9874 /^@unless $module\$/,/^@endunless $module\$/d
9875 /^@if $module-$host_bootstrap_suffix\$/d
9876 /^@endif $module-$host_bootstrap_suffix\$/d
9877 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9878 done
9879 extrasub_target=
9880 for module in ${target_configdirs} ; do
9881   if test -z "${no_recursion}" \
9882      && test -f ${target_subdir}/${module}/Makefile; then
9883     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9884     rm -f ${target_subdir}/${module}/Makefile
9885   fi
9886
9887   # We only bootstrap target libraries listed in bootstrap_target_libs.
9888   case $bootstrap_target_libs in
9889     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9890     *) target_bootstrap_suffix=no-bootstrap ;;
9891   esac
9892
9893   extrasub_target="$extrasub_target
9894 /^@if target-$module\$/d
9895 /^@endif target-$module\$/d
9896 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9897 /^@if target-$module-$target_bootstrap_suffix\$/d
9898 /^@endif target-$module-$target_bootstrap_suffix\$/d
9899 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9900 done
9901
9902 # Do the final fixup along with target modules.
9903 extrasub_target="$extrasub_target
9904 /^@if /,/^@endif /d
9905 /^@unless /d
9906 /^@endunless /d"
9907
9908 if test "$enable_pgo_build" != "no"; then
9909   extrasub_build="$extrasub_build
9910 /^@if pgo-build\$/d
9911 /^@endif pgo-build\$/d"
9912 fi
9913
9914 # Create the serialization dependencies.  This uses a temporary file.
9915
9916 # Check whether --enable-serial-configure was given.
9917 if test "${enable_serial_configure+set}" = set; then :
9918   enableval=$enable_serial_configure;
9919 fi
9920
9921
9922 case ${enable_serial_configure} in
9923   yes)
9924     enable_serial_build_configure=yes
9925     enable_serial_host_configure=yes
9926     enable_serial_target_configure=yes
9927     ;;
9928 esac
9929
9930 # These force 'configure's to be done one at a time, to avoid problems
9931 # with contention over a shared config.cache.
9932 rm -f serdep.tmp
9933 echo '# serdep.tmp' > serdep.tmp
9934 olditem=
9935 test "x${enable_serial_build_configure}" = xyes &&
9936 for item in ${build_configdirs} ; do
9937   case ${olditem} in
9938     "") ;;
9939     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9940   esac
9941   olditem=${item}
9942 done
9943 olditem=
9944 test "x${enable_serial_host_configure}" = xyes &&
9945 for item in ${configdirs} ; do
9946   case ${olditem} in
9947     "") ;;
9948     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9949   esac
9950   olditem=${item}
9951 done
9952 olditem=
9953 test "x${enable_serial_target_configure}" = xyes &&
9954 for item in ${target_configdirs} ; do
9955   case ${olditem} in
9956     "") ;;
9957     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9958   esac
9959   olditem=${item}
9960 done
9961 serialization_dependencies=serdep.tmp
9962
9963
9964 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
9965 # target, nonopt, and variable assignments.  These are the ones we
9966 # might not want to pass down to subconfigures.  The exception being
9967 # --cache-file=/dev/null, which is used to turn off the use of cache
9968 # files altogether, and which should be passed on to subconfigures.
9969 # Also strip program-prefix, program-suffix, and program-transform-name,
9970 # so that we can pass down a consistent program-transform-name.
9971 baseargs=
9972 tbaseargs=
9973 keep_next=no
9974 skip_next=no
9975 eval "set -- $ac_configure_args"
9976 for ac_arg
9977 do
9978   if test X"$skip_next" = X"yes"; then
9979     skip_next=no
9980     continue
9981   fi
9982   if test X"$keep_next" = X"yes"; then
9983     case $ac_arg in
9984       *\'*)
9985         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9986     esac
9987     baseargs="$baseargs '$ac_arg'"
9988     tbaseargs="$tbaseargs '$ac_arg'"
9989     keep_next=no
9990     continue
9991   fi
9992
9993   # Handle separated arguments.  Based on the logic generated by
9994   # autoconf 2.59.
9995   case $ac_arg in
9996     *=* | --config-cache | -C | -disable-* | --disable-* \
9997       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9998       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9999       | -with-* | --with-* | -without-* | --without-* | --x)
10000       separate_arg=no
10001       ;;
10002     -*)
10003       separate_arg=yes
10004       ;;
10005     *)
10006       separate_arg=no
10007       ;;
10008   esac
10009
10010   skip_targ=no
10011   case $ac_arg in
10012
10013   --with-* | --without-*)
10014     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10015
10016     case $libopt in
10017     *[-_]include)
10018       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10019       ;;
10020     *[-_]lib)
10021       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10022       ;;
10023     *)
10024       lib=$libopt
10025       ;;
10026     esac
10027
10028
10029     case $lib in
10030     mpc | mpfr | gmp | isl)
10031       # If we're processing --with-$lib, --with-$lib-include or
10032       # --with-$lib-lib, for one of the libs above, and target is
10033       # different from host, don't pass the current argument to any
10034       # target library's configure.
10035       if test x$is_cross_compiler = xyes; then
10036         skip_targ=yes
10037       fi
10038       ;;
10039     esac
10040     ;;
10041   esac
10042
10043   case "$ac_arg" in
10044     --cache-file=/dev/null | \
10045     -cache-file=/dev/null )
10046       # Handled here to avoid the test to skip args below.
10047       baseargs="$baseargs '$ac_arg'"
10048       tbaseargs="$tbaseargs '$ac_arg'"
10049       # Assert: $separate_arg should always be no.
10050       keep_next=$separate_arg
10051       ;;
10052     --no*)
10053       continue
10054       ;;
10055     --c* | \
10056     --sr* | \
10057     --ho* | \
10058     --bu* | \
10059     --t* | \
10060     --program-* | \
10061     -cache_file* | \
10062     -srcdir* | \
10063     -host* | \
10064     -build* | \
10065     -target* | \
10066     -program-prefix* | \
10067     -program-suffix* | \
10068     -program-transform-name* )
10069       skip_next=$separate_arg
10070       continue
10071       ;;
10072     -*)
10073       # An option.  Add it.
10074       case $ac_arg in
10075         *\'*)
10076           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10077       esac
10078       baseargs="$baseargs '$ac_arg'"
10079       if test X"$skip_targ" = Xno; then
10080         tbaseargs="$tbaseargs '$ac_arg'"
10081       fi
10082       keep_next=$separate_arg
10083       ;;
10084     *)
10085       # Either a variable assignment, or a nonopt (triplet).  Don't
10086       # pass it down; let the Makefile handle this.
10087       continue
10088       ;;
10089   esac
10090 done
10091 # Remove the initial space we just introduced and, as these will be
10092 # expanded by make, quote '$'.
10093 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10094
10095 # Add in --program-transform-name, after --program-prefix and
10096 # --program-suffix have been applied to it.  Autoconf has already
10097 # doubled dollar signs and backslashes in program_transform_name; we want
10098 # the backslashes un-doubled, and then the entire thing wrapped in single
10099 # quotes, because this will be expanded first by make and then by the shell.
10100 # Also, because we want to override the logic in subdir configure scripts to
10101 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10102 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10103 ${program_transform_name}
10104 EOF_SED
10105 gcc_transform_name=`cat conftestsed.out`
10106 rm -f conftestsed.out
10107 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10108 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10109 if test "$silent" = yes; then
10110   baseargs="$baseargs --silent"
10111   tbaseargs="$tbaseargs --silent"
10112 fi
10113 baseargs="$baseargs --disable-option-checking"
10114 tbaseargs="$tbaseargs --disable-option-checking"
10115
10116 # Record and document user additions to sub configure arguments.
10117
10118
10119
10120
10121 # For the build-side libraries, we just need to pretend we're native,
10122 # and not use the same cache file.  Multilibs are neither needed nor
10123 # desired.  We can't even use the same cache file for all build-side
10124 # libraries, as they're compiled differently; some with C, some with
10125 # C++ or with different feature-enabling options.
10126 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10127
10128 # For host modules, accept cache file option, or specification as blank.
10129 case "${cache_file}" in
10130 "") # empty
10131   cache_file_option="" ;;
10132 /* | [A-Za-z]:[\\/]* ) # absolute path
10133   cache_file_option="--cache-file=${cache_file}" ;;
10134 *) # relative path
10135   cache_file_option="--cache-file=../${cache_file}" ;;
10136 esac
10137
10138 # Host dirs don't like to share a cache file either, horribly enough.
10139 # This seems to be due to autoconf 2.5x stupidity.
10140 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10141
10142 target_configargs="$target_configargs ${tbaseargs}"
10143
10144 # Passing a --with-cross-host argument lets the target libraries know
10145 # whether they are being built with a cross-compiler or being built
10146 # native.  However, it would be better to use other mechanisms to make the
10147 # sorts of decisions they want to make on this basis.  Please consider
10148 # this option to be deprecated.  FIXME.
10149 if test x${is_cross_compiler} = xyes ; then
10150   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10151 fi
10152
10153 # Special user-friendly check for native x86_64-linux build, if
10154 # multilib is not explicitly enabled.
10155 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10156   x86_64-*linux*:yes:$build:$build:)
10157     # Make sure we have a development environment that handles 32-bit
10158     dev64=no
10159     echo "int main () { return 0; }" > conftest.c
10160     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10161     if test $? = 0 ; then
10162       if test -s conftest || test -s conftest.exe ; then
10163         dev64=yes
10164       fi
10165     fi
10166     rm -f conftest*
10167     if test x${dev64} != xyes ; then
10168       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
10169     fi
10170     ;;
10171 esac
10172
10173 # Default to --enable-multilib.
10174 if test x${enable_multilib} = x ; then
10175   target_configargs="--enable-multilib ${target_configargs}"
10176 fi
10177
10178 # Pass --with-newlib if appropriate.  Note that target_configdirs has
10179 # changed from the earlier setting of with_newlib.
10180 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10181   target_configargs="--with-newlib ${target_configargs}"
10182 fi
10183
10184 # Different target subdirs use different values of certain variables
10185 # (notably CXX).  Worse, multilibs use *lots* of different values.
10186 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10187 # it doesn't automatically accept command-line overrides of them.
10188 # This means it's not safe for target subdirs to share a cache file,
10189 # which is disgusting, but there you have it.  Hopefully this can be
10190 # fixed in future.  It's still worthwhile to use a cache file for each
10191 # directory.  I think.
10192
10193 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10194 # We need to pass --target, as newer autoconf's requires consistency
10195 # for target_alias and gcc doesn't manage it consistently.
10196 target_configargs="--cache-file=./config.cache ${target_configargs}"
10197
10198 FLAGS_FOR_TARGET=
10199 case " $target_configdirs " in
10200  *" newlib "*)
10201   case " $target_configargs " in
10202   *" --with-newlib "*)
10203    case "$target" in
10204     *-cygwin*)
10205       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10206       ;;
10207    esac
10208
10209    # If we're not building GCC, don't discard standard headers.
10210    if test -d ${srcdir}/gcc; then
10211      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10212
10213      if test "${build}" != "${host}"; then
10214        # On Canadian crosses, CC_FOR_TARGET will have already been set
10215        # by `configure', so we won't have an opportunity to add -Bgcc/
10216        # to it.  This is right: we don't want to search that directory
10217        # for binaries, but we want the header files in there, so add
10218        # them explicitly.
10219        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10220
10221        # Someone might think of using the pre-installed headers on
10222        # Canadian crosses, in case the installed compiler is not fully
10223        # compatible with the compiler being built.  In this case, it
10224        # would be better to flag an error than risking having
10225        # incompatible object files being constructed.  We can't
10226        # guarantee that an error will be flagged, but let's hope the
10227        # compiler will do it, when presented with incompatible header
10228        # files.
10229      fi
10230    fi
10231
10232    case "${target}-${is_cross_compiler}" in
10233    i[3456789]86-*-linux*-no)
10234       # Here host == target, so we don't need to build gcc,
10235       # so we don't want to discard standard headers.
10236       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10237       ;;
10238    *)
10239       # If we're building newlib, use its generic headers last, but search
10240       # for any libc-related directories first (so make it the last -B
10241       # switch).
10242       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10243
10244       # If we're building libgloss, find the startup file, simulator library
10245       # and linker script.
10246       case " $target_configdirs " in
10247         *" libgloss "*)
10248         # Look for startup file, simulator library and maybe linker script.
10249         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10250         # Look for libnosys.a in case the target needs it.
10251         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10252         # Most targets have the linker script in the source directory.
10253         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10254         ;;
10255       esac
10256       ;;
10257    esac
10258    ;;
10259   esac
10260   ;;
10261 esac
10262
10263 case "$target" in
10264   x86_64-*mingw* | *-w64-mingw*)
10265   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10266   # however, use a symlink named 'mingw' in ${prefix} .
10267     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10268     ;;
10269   *-mingw*)
10270   # MinGW can't be handled as Cygwin above since it does not use newlib.
10271     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'
10272     ;;
10273 esac
10274
10275 # Allow the user to override the flags for
10276 # our build compiler if desired.
10277 if test x"${build}" = x"${host}" ; then
10278   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10279   CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10280   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10281   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10282 fi
10283
10284 # On Canadian crosses, we'll be searching the right directories for
10285 # the previously-installed cross compiler, so don't bother to add
10286 # flags for directories within the install tree of the compiler
10287 # being built; programs in there won't even run.
10288 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10289   # Search for pre-installed headers if nothing else fits.
10290   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10291 fi
10292
10293 if test "x${use_gnu_ld}" = x &&
10294    echo " ${configdirs} " | grep " ld " > /dev/null ; then
10295   # Arrange for us to find uninstalled linker scripts.
10296   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10297 fi
10298
10299 # Search for other target-specific linker scripts and such.
10300 case "${target}" in
10301   mep*)
10302     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10303     ;;
10304   # The VxWorks support for shared libraries is getting in
10305   # incrementally.  Make sure it doesn't get activated implicitly:
10306   *vxworks*)
10307     if test "${enable_shared-unset}" = unset ; then
10308       enable_shared=no
10309       # So the build of libraries knows ...
10310       target_configargs="${target_configargs} --disable-shared"
10311       # So gcc knows ...
10312       host_configargs="${host_configargs} --disable-shared"
10313     fi
10314     ;;
10315 esac
10316
10317 # Makefile fragments.
10318 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10319 do
10320   eval fragval=\$$frag
10321   if test $fragval != /dev/null; then
10322     eval $frag=${srcdir}/$fragval
10323   fi
10324 done
10325
10326
10327
10328
10329
10330 # Miscellanea: directories, flags, etc.
10331
10332
10333
10334
10335
10336
10337
10338
10339 # Build module lists & subconfigure args.
10340
10341
10342
10343 # Host module lists & subconfigure args.
10344
10345
10346
10347
10348 # Target module lists & subconfigure args.
10349
10350
10351
10352 # Build tools.
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373 # Generate default definitions for YACC, M4, LEX and other programs that run
10374 # on the build machine.  These are used if the Makefile can't locate these
10375 # programs in objdir.
10376 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10377
10378 for ac_prog in 'bison -y' byacc yacc
10379 do
10380   # Extract the first word of "$ac_prog", so it can be a program name with args.
10381 set dummy $ac_prog; ac_word=$2
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383 $as_echo_n "checking for $ac_word... " >&6; }
10384 if ${ac_cv_prog_YACC+:} false; then :
10385   $as_echo_n "(cached) " >&6
10386 else
10387   if test -n "$YACC"; then
10388   ac_cv_prog_YACC="$YACC" # Let the user override the test.
10389 else
10390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10391 for as_dir in $PATH
10392 do
10393   IFS=$as_save_IFS
10394   test -z "$as_dir" && as_dir=.
10395     for ac_exec_ext in '' $ac_executable_extensions; do
10396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10397     ac_cv_prog_YACC="$ac_prog"
10398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10399     break 2
10400   fi
10401 done
10402   done
10403 IFS=$as_save_IFS
10404
10405 fi
10406 fi
10407 YACC=$ac_cv_prog_YACC
10408 if test -n "$YACC"; then
10409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10410 $as_echo "$YACC" >&6; }
10411 else
10412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413 $as_echo "no" >&6; }
10414 fi
10415
10416
10417   test -n "$YACC" && break
10418 done
10419 test -n "$YACC" || YACC="$MISSING bison -y"
10420
10421 case " $build_configdirs " in
10422   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10423 esac
10424
10425 for ac_prog in bison
10426 do
10427   # Extract the first word of "$ac_prog", so it can be a program name with args.
10428 set dummy $ac_prog; ac_word=$2
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430 $as_echo_n "checking for $ac_word... " >&6; }
10431 if ${ac_cv_prog_BISON+:} false; then :
10432   $as_echo_n "(cached) " >&6
10433 else
10434   if test -n "$BISON"; then
10435   ac_cv_prog_BISON="$BISON" # Let the user override the test.
10436 else
10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438 for as_dir in $PATH
10439 do
10440   IFS=$as_save_IFS
10441   test -z "$as_dir" && as_dir=.
10442     for ac_exec_ext in '' $ac_executable_extensions; do
10443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10444     ac_cv_prog_BISON="$ac_prog"
10445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10446     break 2
10447   fi
10448 done
10449   done
10450 IFS=$as_save_IFS
10451
10452 fi
10453 fi
10454 BISON=$ac_cv_prog_BISON
10455 if test -n "$BISON"; then
10456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10457 $as_echo "$BISON" >&6; }
10458 else
10459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460 $as_echo "no" >&6; }
10461 fi
10462
10463
10464   test -n "$BISON" && break
10465 done
10466 test -n "$BISON" || BISON="$MISSING bison"
10467
10468 case " $build_configdirs " in
10469   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10470 esac
10471
10472 for ac_prog in gm4 gnum4 m4
10473 do
10474   # Extract the first word of "$ac_prog", so it can be a program name with args.
10475 set dummy $ac_prog; ac_word=$2
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10477 $as_echo_n "checking for $ac_word... " >&6; }
10478 if ${ac_cv_prog_M4+:} false; then :
10479   $as_echo_n "(cached) " >&6
10480 else
10481   if test -n "$M4"; then
10482   ac_cv_prog_M4="$M4" # Let the user override the test.
10483 else
10484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10485 for as_dir in $PATH
10486 do
10487   IFS=$as_save_IFS
10488   test -z "$as_dir" && as_dir=.
10489     for ac_exec_ext in '' $ac_executable_extensions; do
10490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10491     ac_cv_prog_M4="$ac_prog"
10492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10493     break 2
10494   fi
10495 done
10496   done
10497 IFS=$as_save_IFS
10498
10499 fi
10500 fi
10501 M4=$ac_cv_prog_M4
10502 if test -n "$M4"; then
10503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10504 $as_echo "$M4" >&6; }
10505 else
10506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10507 $as_echo "no" >&6; }
10508 fi
10509
10510
10511   test -n "$M4" && break
10512 done
10513 test -n "$M4" || M4="$MISSING m4"
10514
10515 case " $build_configdirs " in
10516   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10517 esac
10518
10519 for ac_prog in flex lex
10520 do
10521   # Extract the first word of "$ac_prog", so it can be a program name with args.
10522 set dummy $ac_prog; ac_word=$2
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524 $as_echo_n "checking for $ac_word... " >&6; }
10525 if ${ac_cv_prog_LEX+:} false; then :
10526   $as_echo_n "(cached) " >&6
10527 else
10528   if test -n "$LEX"; then
10529   ac_cv_prog_LEX="$LEX" # Let the user override the test.
10530 else
10531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532 for as_dir in $PATH
10533 do
10534   IFS=$as_save_IFS
10535   test -z "$as_dir" && as_dir=.
10536     for ac_exec_ext in '' $ac_executable_extensions; do
10537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10538     ac_cv_prog_LEX="$ac_prog"
10539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540     break 2
10541   fi
10542 done
10543   done
10544 IFS=$as_save_IFS
10545
10546 fi
10547 fi
10548 LEX=$ac_cv_prog_LEX
10549 if test -n "$LEX"; then
10550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10551 $as_echo "$LEX" >&6; }
10552 else
10553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; }
10555 fi
10556
10557
10558   test -n "$LEX" && break
10559 done
10560 test -n "$LEX" || LEX="$MISSING flex"
10561
10562 case " $build_configdirs " in
10563   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10564   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10565 esac
10566
10567 for ac_prog in flex
10568 do
10569   # Extract the first word of "$ac_prog", so it can be a program name with args.
10570 set dummy $ac_prog; ac_word=$2
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10572 $as_echo_n "checking for $ac_word... " >&6; }
10573 if ${ac_cv_prog_FLEX+:} false; then :
10574   $as_echo_n "(cached) " >&6
10575 else
10576   if test -n "$FLEX"; then
10577   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10578 else
10579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580 for as_dir in $PATH
10581 do
10582   IFS=$as_save_IFS
10583   test -z "$as_dir" && as_dir=.
10584     for ac_exec_ext in '' $ac_executable_extensions; do
10585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10586     ac_cv_prog_FLEX="$ac_prog"
10587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10588     break 2
10589   fi
10590 done
10591   done
10592 IFS=$as_save_IFS
10593
10594 fi
10595 fi
10596 FLEX=$ac_cv_prog_FLEX
10597 if test -n "$FLEX"; then
10598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10599 $as_echo "$FLEX" >&6; }
10600 else
10601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10603 fi
10604
10605
10606   test -n "$FLEX" && break
10607 done
10608 test -n "$FLEX" || FLEX="$MISSING flex"
10609
10610 case " $build_configdirs " in
10611   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10612 esac
10613
10614 for ac_prog in makeinfo
10615 do
10616   # Extract the first word of "$ac_prog", so it can be a program name with args.
10617 set dummy $ac_prog; ac_word=$2
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10619 $as_echo_n "checking for $ac_word... " >&6; }
10620 if ${ac_cv_prog_MAKEINFO+:} false; then :
10621   $as_echo_n "(cached) " >&6
10622 else
10623   if test -n "$MAKEINFO"; then
10624   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10625 else
10626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627 for as_dir in $PATH
10628 do
10629   IFS=$as_save_IFS
10630   test -z "$as_dir" && as_dir=.
10631     for ac_exec_ext in '' $ac_executable_extensions; do
10632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10633     ac_cv_prog_MAKEINFO="$ac_prog"
10634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10635     break 2
10636   fi
10637 done
10638   done
10639 IFS=$as_save_IFS
10640
10641 fi
10642 fi
10643 MAKEINFO=$ac_cv_prog_MAKEINFO
10644 if test -n "$MAKEINFO"; then
10645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10646 $as_echo "$MAKEINFO" >&6; }
10647 else
10648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649 $as_echo "no" >&6; }
10650 fi
10651
10652
10653   test -n "$MAKEINFO" && break
10654 done
10655 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10656
10657 case " $build_configdirs " in
10658   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10659   *)
10660
10661     # For an installed makeinfo, we require it to be from texinfo 4.7 or
10662     # higher, else we use the "missing" dummy.
10663     if ${MAKEINFO} --version \
10664        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10665       :
10666     else
10667       MAKEINFO="$MISSING makeinfo"
10668     fi
10669     ;;
10670
10671 esac
10672
10673 # FIXME: expect and dejagnu may become build tools?
10674
10675 for ac_prog in expect
10676 do
10677   # Extract the first word of "$ac_prog", so it can be a program name with args.
10678 set dummy $ac_prog; ac_word=$2
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10680 $as_echo_n "checking for $ac_word... " >&6; }
10681 if ${ac_cv_prog_EXPECT+:} false; then :
10682   $as_echo_n "(cached) " >&6
10683 else
10684   if test -n "$EXPECT"; then
10685   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10686 else
10687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10688 for as_dir in $PATH
10689 do
10690   IFS=$as_save_IFS
10691   test -z "$as_dir" && as_dir=.
10692     for ac_exec_ext in '' $ac_executable_extensions; do
10693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10694     ac_cv_prog_EXPECT="$ac_prog"
10695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10696     break 2
10697   fi
10698 done
10699   done
10700 IFS=$as_save_IFS
10701
10702 fi
10703 fi
10704 EXPECT=$ac_cv_prog_EXPECT
10705 if test -n "$EXPECT"; then
10706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10707 $as_echo "$EXPECT" >&6; }
10708 else
10709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710 $as_echo "no" >&6; }
10711 fi
10712
10713
10714   test -n "$EXPECT" && break
10715 done
10716 test -n "$EXPECT" || EXPECT="expect"
10717
10718 case " $configdirs " in
10719   *" expect "*)
10720     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10721     ;;
10722 esac
10723
10724 for ac_prog in runtest
10725 do
10726   # Extract the first word of "$ac_prog", so it can be a program name with args.
10727 set dummy $ac_prog; ac_word=$2
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10729 $as_echo_n "checking for $ac_word... " >&6; }
10730 if ${ac_cv_prog_RUNTEST+:} false; then :
10731   $as_echo_n "(cached) " >&6
10732 else
10733   if test -n "$RUNTEST"; then
10734   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10735 else
10736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10737 for as_dir in $PATH
10738 do
10739   IFS=$as_save_IFS
10740   test -z "$as_dir" && as_dir=.
10741     for ac_exec_ext in '' $ac_executable_extensions; do
10742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10743     ac_cv_prog_RUNTEST="$ac_prog"
10744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10745     break 2
10746   fi
10747 done
10748   done
10749 IFS=$as_save_IFS
10750
10751 fi
10752 fi
10753 RUNTEST=$ac_cv_prog_RUNTEST
10754 if test -n "$RUNTEST"; then
10755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10756 $as_echo "$RUNTEST" >&6; }
10757 else
10758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759 $as_echo "no" >&6; }
10760 fi
10761
10762
10763   test -n "$RUNTEST" && break
10764 done
10765 test -n "$RUNTEST" || RUNTEST="runtest"
10766
10767 case " $configdirs " in
10768   *" dejagnu "*)
10769     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10770     ;;
10771 esac
10772
10773
10774 # Host tools.
10775 ncn_tool_prefix=
10776 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10777 ncn_target_tool_prefix=
10778 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10779
10780
10781
10782 if test -n "$AR"; then
10783   ac_cv_prog_AR=$AR
10784 elif test -n "$ac_cv_prog_AR"; then
10785   AR=$ac_cv_prog_AR
10786 fi
10787
10788 if test -n "$ac_cv_prog_AR"; then
10789   for ncn_progname in ar; do
10790     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10791 set dummy ${ncn_progname}; ac_word=$2
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10793 $as_echo_n "checking for $ac_word... " >&6; }
10794 if ${ac_cv_prog_AR+:} false; then :
10795   $as_echo_n "(cached) " >&6
10796 else
10797   if test -n "$AR"; then
10798   ac_cv_prog_AR="$AR" # Let the user override the test.
10799 else
10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in $PATH
10802 do
10803   IFS=$as_save_IFS
10804   test -z "$as_dir" && as_dir=.
10805     for ac_exec_ext in '' $ac_executable_extensions; do
10806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10807     ac_cv_prog_AR="${ncn_progname}"
10808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10809     break 2
10810   fi
10811 done
10812   done
10813 IFS=$as_save_IFS
10814
10815 fi
10816 fi
10817 AR=$ac_cv_prog_AR
10818 if test -n "$AR"; then
10819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10820 $as_echo "$AR" >&6; }
10821 else
10822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 $as_echo "no" >&6; }
10824 fi
10825
10826
10827   done
10828 fi
10829
10830 for ncn_progname in ar; do
10831   if test -n "$ncn_tool_prefix"; then
10832     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10833 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10835 $as_echo_n "checking for $ac_word... " >&6; }
10836 if ${ac_cv_prog_AR+:} false; then :
10837   $as_echo_n "(cached) " >&6
10838 else
10839   if test -n "$AR"; then
10840   ac_cv_prog_AR="$AR" # Let the user override the test.
10841 else
10842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10843 for as_dir in $PATH
10844 do
10845   IFS=$as_save_IFS
10846   test -z "$as_dir" && as_dir=.
10847     for ac_exec_ext in '' $ac_executable_extensions; do
10848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10849     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10851     break 2
10852   fi
10853 done
10854   done
10855 IFS=$as_save_IFS
10856
10857 fi
10858 fi
10859 AR=$ac_cv_prog_AR
10860 if test -n "$AR"; then
10861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10862 $as_echo "$AR" >&6; }
10863 else
10864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10865 $as_echo "no" >&6; }
10866 fi
10867
10868
10869   fi
10870   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10871     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10872 set dummy ${ncn_progname}; ac_word=$2
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10874 $as_echo_n "checking for $ac_word... " >&6; }
10875 if ${ac_cv_prog_AR+:} false; then :
10876   $as_echo_n "(cached) " >&6
10877 else
10878   if test -n "$AR"; then
10879   ac_cv_prog_AR="$AR" # Let the user override the test.
10880 else
10881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882 for as_dir in $PATH
10883 do
10884   IFS=$as_save_IFS
10885   test -z "$as_dir" && as_dir=.
10886     for ac_exec_ext in '' $ac_executable_extensions; do
10887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10888     ac_cv_prog_AR="${ncn_progname}"
10889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10890     break 2
10891   fi
10892 done
10893   done
10894 IFS=$as_save_IFS
10895
10896 fi
10897 fi
10898 AR=$ac_cv_prog_AR
10899 if test -n "$AR"; then
10900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10901 $as_echo "$AR" >&6; }
10902 else
10903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10904 $as_echo "no" >&6; }
10905 fi
10906
10907
10908   fi
10909   test -n "$ac_cv_prog_AR" && break
10910 done
10911
10912 if test -z "$ac_cv_prog_AR" ; then
10913   set dummy ar
10914   if test $build = $host ; then
10915     AR="$2"
10916   else
10917     AR="${ncn_tool_prefix}$2"
10918   fi
10919 fi
10920
10921
10922
10923 if test -n "$AS"; then
10924   ac_cv_prog_AS=$AS
10925 elif test -n "$ac_cv_prog_AS"; then
10926   AS=$ac_cv_prog_AS
10927 fi
10928
10929 if test -n "$ac_cv_prog_AS"; then
10930   for ncn_progname in as; do
10931     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10932 set dummy ${ncn_progname}; ac_word=$2
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10934 $as_echo_n "checking for $ac_word... " >&6; }
10935 if ${ac_cv_prog_AS+:} false; then :
10936   $as_echo_n "(cached) " >&6
10937 else
10938   if test -n "$AS"; then
10939   ac_cv_prog_AS="$AS" # Let the user override the test.
10940 else
10941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10942 for as_dir in $PATH
10943 do
10944   IFS=$as_save_IFS
10945   test -z "$as_dir" && as_dir=.
10946     for ac_exec_ext in '' $ac_executable_extensions; do
10947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10948     ac_cv_prog_AS="${ncn_progname}"
10949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10950     break 2
10951   fi
10952 done
10953   done
10954 IFS=$as_save_IFS
10955
10956 fi
10957 fi
10958 AS=$ac_cv_prog_AS
10959 if test -n "$AS"; then
10960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10961 $as_echo "$AS" >&6; }
10962 else
10963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964 $as_echo "no" >&6; }
10965 fi
10966
10967
10968   done
10969 fi
10970
10971 for ncn_progname in as; do
10972   if test -n "$ncn_tool_prefix"; then
10973     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10974 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10976 $as_echo_n "checking for $ac_word... " >&6; }
10977 if ${ac_cv_prog_AS+:} false; then :
10978   $as_echo_n "(cached) " >&6
10979 else
10980   if test -n "$AS"; then
10981   ac_cv_prog_AS="$AS" # Let the user override the test.
10982 else
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in $PATH
10985 do
10986   IFS=$as_save_IFS
10987   test -z "$as_dir" && as_dir=.
10988     for ac_exec_ext in '' $ac_executable_extensions; do
10989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10990     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10992     break 2
10993   fi
10994 done
10995   done
10996 IFS=$as_save_IFS
10997
10998 fi
10999 fi
11000 AS=$ac_cv_prog_AS
11001 if test -n "$AS"; then
11002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11003 $as_echo "$AS" >&6; }
11004 else
11005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006 $as_echo "no" >&6; }
11007 fi
11008
11009
11010   fi
11011   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11012     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11013 set dummy ${ncn_progname}; ac_word=$2
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11015 $as_echo_n "checking for $ac_word... " >&6; }
11016 if ${ac_cv_prog_AS+:} false; then :
11017   $as_echo_n "(cached) " >&6
11018 else
11019   if test -n "$AS"; then
11020   ac_cv_prog_AS="$AS" # Let the user override the test.
11021 else
11022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11023 for as_dir in $PATH
11024 do
11025   IFS=$as_save_IFS
11026   test -z "$as_dir" && as_dir=.
11027     for ac_exec_ext in '' $ac_executable_extensions; do
11028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11029     ac_cv_prog_AS="${ncn_progname}"
11030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11031     break 2
11032   fi
11033 done
11034   done
11035 IFS=$as_save_IFS
11036
11037 fi
11038 fi
11039 AS=$ac_cv_prog_AS
11040 if test -n "$AS"; then
11041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11042 $as_echo "$AS" >&6; }
11043 else
11044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11045 $as_echo "no" >&6; }
11046 fi
11047
11048
11049   fi
11050   test -n "$ac_cv_prog_AS" && break
11051 done
11052
11053 if test -z "$ac_cv_prog_AS" ; then
11054   set dummy as
11055   if test $build = $host ; then
11056     AS="$2"
11057   else
11058     AS="${ncn_tool_prefix}$2"
11059   fi
11060 fi
11061
11062
11063
11064 if test -n "$DLLTOOL"; then
11065   ac_cv_prog_DLLTOOL=$DLLTOOL
11066 elif test -n "$ac_cv_prog_DLLTOOL"; then
11067   DLLTOOL=$ac_cv_prog_DLLTOOL
11068 fi
11069
11070 if test -n "$ac_cv_prog_DLLTOOL"; then
11071   for ncn_progname in dlltool; do
11072     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11073 set dummy ${ncn_progname}; ac_word=$2
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11075 $as_echo_n "checking for $ac_word... " >&6; }
11076 if ${ac_cv_prog_DLLTOOL+:} false; then :
11077   $as_echo_n "(cached) " >&6
11078 else
11079   if test -n "$DLLTOOL"; then
11080   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11081 else
11082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11083 for as_dir in $PATH
11084 do
11085   IFS=$as_save_IFS
11086   test -z "$as_dir" && as_dir=.
11087     for ac_exec_ext in '' $ac_executable_extensions; do
11088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11089     ac_cv_prog_DLLTOOL="${ncn_progname}"
11090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11091     break 2
11092   fi
11093 done
11094   done
11095 IFS=$as_save_IFS
11096
11097 fi
11098 fi
11099 DLLTOOL=$ac_cv_prog_DLLTOOL
11100 if test -n "$DLLTOOL"; then
11101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11102 $as_echo "$DLLTOOL" >&6; }
11103 else
11104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11105 $as_echo "no" >&6; }
11106 fi
11107
11108
11109   done
11110 fi
11111
11112 for ncn_progname in dlltool; do
11113   if test -n "$ncn_tool_prefix"; then
11114     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11115 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11117 $as_echo_n "checking for $ac_word... " >&6; }
11118 if ${ac_cv_prog_DLLTOOL+:} false; then :
11119   $as_echo_n "(cached) " >&6
11120 else
11121   if test -n "$DLLTOOL"; then
11122   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11123 else
11124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11125 for as_dir in $PATH
11126 do
11127   IFS=$as_save_IFS
11128   test -z "$as_dir" && as_dir=.
11129     for ac_exec_ext in '' $ac_executable_extensions; do
11130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11131     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11133     break 2
11134   fi
11135 done
11136   done
11137 IFS=$as_save_IFS
11138
11139 fi
11140 fi
11141 DLLTOOL=$ac_cv_prog_DLLTOOL
11142 if test -n "$DLLTOOL"; then
11143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11144 $as_echo "$DLLTOOL" >&6; }
11145 else
11146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147 $as_echo "no" >&6; }
11148 fi
11149
11150
11151   fi
11152   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11153     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11154 set dummy ${ncn_progname}; ac_word=$2
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11156 $as_echo_n "checking for $ac_word... " >&6; }
11157 if ${ac_cv_prog_DLLTOOL+:} false; then :
11158   $as_echo_n "(cached) " >&6
11159 else
11160   if test -n "$DLLTOOL"; then
11161   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11162 else
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11165 do
11166   IFS=$as_save_IFS
11167   test -z "$as_dir" && as_dir=.
11168     for ac_exec_ext in '' $ac_executable_extensions; do
11169   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11170     ac_cv_prog_DLLTOOL="${ncn_progname}"
11171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172     break 2
11173   fi
11174 done
11175   done
11176 IFS=$as_save_IFS
11177
11178 fi
11179 fi
11180 DLLTOOL=$ac_cv_prog_DLLTOOL
11181 if test -n "$DLLTOOL"; then
11182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11183 $as_echo "$DLLTOOL" >&6; }
11184 else
11185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 $as_echo "no" >&6; }
11187 fi
11188
11189
11190   fi
11191   test -n "$ac_cv_prog_DLLTOOL" && break
11192 done
11193
11194 if test -z "$ac_cv_prog_DLLTOOL" ; then
11195   set dummy dlltool
11196   if test $build = $host ; then
11197     DLLTOOL="$2"
11198   else
11199     DLLTOOL="${ncn_tool_prefix}$2"
11200   fi
11201 fi
11202
11203
11204
11205 if test -n "$DSYMUTIL"; then
11206   ac_cv_prog_DSYMUTIL=$DSYMUTIL
11207 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11208   DSYMUTIL=$ac_cv_prog_DSYMUTIL
11209 fi
11210
11211 if test -n "$ac_cv_prog_DSYMUTIL"; then
11212   for ncn_progname in dsymutil; do
11213     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11214 set dummy ${ncn_progname}; ac_word=$2
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11216 $as_echo_n "checking for $ac_word... " >&6; }
11217 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11218   $as_echo_n "(cached) " >&6
11219 else
11220   if test -n "$DSYMUTIL"; then
11221   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11222 else
11223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $PATH
11225 do
11226   IFS=$as_save_IFS
11227   test -z "$as_dir" && as_dir=.
11228     for ac_exec_ext in '' $ac_executable_extensions; do
11229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11230     ac_cv_prog_DSYMUTIL="${ncn_progname}"
11231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11232     break 2
11233   fi
11234 done
11235   done
11236 IFS=$as_save_IFS
11237
11238 fi
11239 fi
11240 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11241 if test -n "$DSYMUTIL"; then
11242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11243 $as_echo "$DSYMUTIL" >&6; }
11244 else
11245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11247 fi
11248
11249
11250   done
11251 fi
11252
11253 for ncn_progname in dsymutil; do
11254   if test -n "$ncn_tool_prefix"; then
11255     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11256 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11258 $as_echo_n "checking for $ac_word... " >&6; }
11259 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11260   $as_echo_n "(cached) " >&6
11261 else
11262   if test -n "$DSYMUTIL"; then
11263   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11264 else
11265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266 for as_dir in $PATH
11267 do
11268   IFS=$as_save_IFS
11269   test -z "$as_dir" && as_dir=.
11270     for ac_exec_ext in '' $ac_executable_extensions; do
11271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11272     ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11274     break 2
11275   fi
11276 done
11277   done
11278 IFS=$as_save_IFS
11279
11280 fi
11281 fi
11282 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11283 if test -n "$DSYMUTIL"; then
11284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11285 $as_echo "$DSYMUTIL" >&6; }
11286 else
11287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288 $as_echo "no" >&6; }
11289 fi
11290
11291
11292   fi
11293   if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11294     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11295 set dummy ${ncn_progname}; ac_word=$2
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11297 $as_echo_n "checking for $ac_word... " >&6; }
11298 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11299   $as_echo_n "(cached) " >&6
11300 else
11301   if test -n "$DSYMUTIL"; then
11302   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11303 else
11304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305 for as_dir in $PATH
11306 do
11307   IFS=$as_save_IFS
11308   test -z "$as_dir" && as_dir=.
11309     for ac_exec_ext in '' $ac_executable_extensions; do
11310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11311     ac_cv_prog_DSYMUTIL="${ncn_progname}"
11312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11313     break 2
11314   fi
11315 done
11316   done
11317 IFS=$as_save_IFS
11318
11319 fi
11320 fi
11321 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11322 if test -n "$DSYMUTIL"; then
11323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11324 $as_echo "$DSYMUTIL" >&6; }
11325 else
11326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11327 $as_echo "no" >&6; }
11328 fi
11329
11330
11331   fi
11332   test -n "$ac_cv_prog_DSYMUTIL" && break
11333 done
11334
11335 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11336   set dummy dsymutil
11337   if test $build = $host ; then
11338     DSYMUTIL="$2"
11339   else
11340     DSYMUTIL="${ncn_tool_prefix}$2"
11341   fi
11342 fi
11343
11344
11345
11346 if test -n "$LD"; then
11347   ac_cv_prog_LD=$LD
11348 elif test -n "$ac_cv_prog_LD"; then
11349   LD=$ac_cv_prog_LD
11350 fi
11351
11352 if test -n "$ac_cv_prog_LD"; then
11353   for ncn_progname in ld; do
11354     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11355 set dummy ${ncn_progname}; ac_word=$2
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11357 $as_echo_n "checking for $ac_word... " >&6; }
11358 if ${ac_cv_prog_LD+:} false; then :
11359   $as_echo_n "(cached) " >&6
11360 else
11361   if test -n "$LD"; then
11362   ac_cv_prog_LD="$LD" # Let the user override the test.
11363 else
11364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365 for as_dir in $PATH
11366 do
11367   IFS=$as_save_IFS
11368   test -z "$as_dir" && as_dir=.
11369     for ac_exec_ext in '' $ac_executable_extensions; do
11370   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11371     ac_cv_prog_LD="${ncn_progname}"
11372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11373     break 2
11374   fi
11375 done
11376   done
11377 IFS=$as_save_IFS
11378
11379 fi
11380 fi
11381 LD=$ac_cv_prog_LD
11382 if test -n "$LD"; then
11383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11384 $as_echo "$LD" >&6; }
11385 else
11386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11388 fi
11389
11390
11391   done
11392 fi
11393
11394 for ncn_progname in ld; do
11395   if test -n "$ncn_tool_prefix"; then
11396     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11397 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11399 $as_echo_n "checking for $ac_word... " >&6; }
11400 if ${ac_cv_prog_LD+:} false; then :
11401   $as_echo_n "(cached) " >&6
11402 else
11403   if test -n "$LD"; then
11404   ac_cv_prog_LD="$LD" # Let the user override the test.
11405 else
11406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11407 for as_dir in $PATH
11408 do
11409   IFS=$as_save_IFS
11410   test -z "$as_dir" && as_dir=.
11411     for ac_exec_ext in '' $ac_executable_extensions; do
11412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11413     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11415     break 2
11416   fi
11417 done
11418   done
11419 IFS=$as_save_IFS
11420
11421 fi
11422 fi
11423 LD=$ac_cv_prog_LD
11424 if test -n "$LD"; then
11425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11426 $as_echo "$LD" >&6; }
11427 else
11428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11429 $as_echo "no" >&6; }
11430 fi
11431
11432
11433   fi
11434   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11435     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11436 set dummy ${ncn_progname}; ac_word=$2
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11438 $as_echo_n "checking for $ac_word... " >&6; }
11439 if ${ac_cv_prog_LD+:} false; then :
11440   $as_echo_n "(cached) " >&6
11441 else
11442   if test -n "$LD"; then
11443   ac_cv_prog_LD="$LD" # Let the user override the test.
11444 else
11445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446 for as_dir in $PATH
11447 do
11448   IFS=$as_save_IFS
11449   test -z "$as_dir" && as_dir=.
11450     for ac_exec_ext in '' $ac_executable_extensions; do
11451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11452     ac_cv_prog_LD="${ncn_progname}"
11453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11454     break 2
11455   fi
11456 done
11457   done
11458 IFS=$as_save_IFS
11459
11460 fi
11461 fi
11462 LD=$ac_cv_prog_LD
11463 if test -n "$LD"; then
11464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11465 $as_echo "$LD" >&6; }
11466 else
11467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468 $as_echo "no" >&6; }
11469 fi
11470
11471
11472   fi
11473   test -n "$ac_cv_prog_LD" && break
11474 done
11475
11476 if test -z "$ac_cv_prog_LD" ; then
11477   set dummy ld
11478   if test $build = $host ; then
11479     LD="$2"
11480   else
11481     LD="${ncn_tool_prefix}$2"
11482   fi
11483 fi
11484
11485
11486
11487 if test -n "$LIPO"; then
11488   ac_cv_prog_LIPO=$LIPO
11489 elif test -n "$ac_cv_prog_LIPO"; then
11490   LIPO=$ac_cv_prog_LIPO
11491 fi
11492
11493 if test -n "$ac_cv_prog_LIPO"; then
11494   for ncn_progname in lipo; do
11495     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11496 set dummy ${ncn_progname}; ac_word=$2
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11498 $as_echo_n "checking for $ac_word... " >&6; }
11499 if ${ac_cv_prog_LIPO+:} false; then :
11500   $as_echo_n "(cached) " >&6
11501 else
11502   if test -n "$LIPO"; then
11503   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11504 else
11505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11506 for as_dir in $PATH
11507 do
11508   IFS=$as_save_IFS
11509   test -z "$as_dir" && as_dir=.
11510     for ac_exec_ext in '' $ac_executable_extensions; do
11511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11512     ac_cv_prog_LIPO="${ncn_progname}"
11513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11514     break 2
11515   fi
11516 done
11517   done
11518 IFS=$as_save_IFS
11519
11520 fi
11521 fi
11522 LIPO=$ac_cv_prog_LIPO
11523 if test -n "$LIPO"; then
11524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11525 $as_echo "$LIPO" >&6; }
11526 else
11527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11528 $as_echo "no" >&6; }
11529 fi
11530
11531
11532   done
11533 fi
11534
11535 for ncn_progname in lipo; do
11536   if test -n "$ncn_tool_prefix"; then
11537     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11538 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11540 $as_echo_n "checking for $ac_word... " >&6; }
11541 if ${ac_cv_prog_LIPO+:} false; then :
11542   $as_echo_n "(cached) " >&6
11543 else
11544   if test -n "$LIPO"; then
11545   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11546 else
11547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11548 for as_dir in $PATH
11549 do
11550   IFS=$as_save_IFS
11551   test -z "$as_dir" && as_dir=.
11552     for ac_exec_ext in '' $ac_executable_extensions; do
11553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11554     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11556     break 2
11557   fi
11558 done
11559   done
11560 IFS=$as_save_IFS
11561
11562 fi
11563 fi
11564 LIPO=$ac_cv_prog_LIPO
11565 if test -n "$LIPO"; then
11566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11567 $as_echo "$LIPO" >&6; }
11568 else
11569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570 $as_echo "no" >&6; }
11571 fi
11572
11573
11574   fi
11575   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11576     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11577 set dummy ${ncn_progname}; ac_word=$2
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579 $as_echo_n "checking for $ac_word... " >&6; }
11580 if ${ac_cv_prog_LIPO+:} false; then :
11581   $as_echo_n "(cached) " >&6
11582 else
11583   if test -n "$LIPO"; then
11584   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11585 else
11586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11587 for as_dir in $PATH
11588 do
11589   IFS=$as_save_IFS
11590   test -z "$as_dir" && as_dir=.
11591     for ac_exec_ext in '' $ac_executable_extensions; do
11592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11593     ac_cv_prog_LIPO="${ncn_progname}"
11594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11595     break 2
11596   fi
11597 done
11598   done
11599 IFS=$as_save_IFS
11600
11601 fi
11602 fi
11603 LIPO=$ac_cv_prog_LIPO
11604 if test -n "$LIPO"; then
11605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11606 $as_echo "$LIPO" >&6; }
11607 else
11608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609 $as_echo "no" >&6; }
11610 fi
11611
11612
11613   fi
11614   test -n "$ac_cv_prog_LIPO" && break
11615 done
11616
11617 if test -z "$ac_cv_prog_LIPO" ; then
11618   set dummy lipo
11619   if test $build = $host ; then
11620     LIPO="$2"
11621   else
11622     LIPO="${ncn_tool_prefix}$2"
11623   fi
11624 fi
11625
11626
11627
11628 if test -n "$NM"; then
11629   ac_cv_prog_NM=$NM
11630 elif test -n "$ac_cv_prog_NM"; then
11631   NM=$ac_cv_prog_NM
11632 fi
11633
11634 if test -n "$ac_cv_prog_NM"; then
11635   for ncn_progname in nm; do
11636     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11637 set dummy ${ncn_progname}; ac_word=$2
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639 $as_echo_n "checking for $ac_word... " >&6; }
11640 if ${ac_cv_prog_NM+:} false; then :
11641   $as_echo_n "(cached) " >&6
11642 else
11643   if test -n "$NM"; then
11644   ac_cv_prog_NM="$NM" # Let the user override the test.
11645 else
11646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH
11648 do
11649   IFS=$as_save_IFS
11650   test -z "$as_dir" && as_dir=.
11651     for ac_exec_ext in '' $ac_executable_extensions; do
11652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11653     ac_cv_prog_NM="${ncn_progname}"
11654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11655     break 2
11656   fi
11657 done
11658   done
11659 IFS=$as_save_IFS
11660
11661 fi
11662 fi
11663 NM=$ac_cv_prog_NM
11664 if test -n "$NM"; then
11665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11666 $as_echo "$NM" >&6; }
11667 else
11668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11669 $as_echo "no" >&6; }
11670 fi
11671
11672
11673   done
11674 fi
11675
11676 for ncn_progname in nm; do
11677   if test -n "$ncn_tool_prefix"; then
11678     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11679 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11681 $as_echo_n "checking for $ac_word... " >&6; }
11682 if ${ac_cv_prog_NM+:} false; then :
11683   $as_echo_n "(cached) " >&6
11684 else
11685   if test -n "$NM"; then
11686   ac_cv_prog_NM="$NM" # Let the user override the test.
11687 else
11688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11689 for as_dir in $PATH
11690 do
11691   IFS=$as_save_IFS
11692   test -z "$as_dir" && as_dir=.
11693     for ac_exec_ext in '' $ac_executable_extensions; do
11694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11695     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11697     break 2
11698   fi
11699 done
11700   done
11701 IFS=$as_save_IFS
11702
11703 fi
11704 fi
11705 NM=$ac_cv_prog_NM
11706 if test -n "$NM"; then
11707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11708 $as_echo "$NM" >&6; }
11709 else
11710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 $as_echo "no" >&6; }
11712 fi
11713
11714
11715   fi
11716   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11717     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11718 set dummy ${ncn_progname}; ac_word=$2
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11720 $as_echo_n "checking for $ac_word... " >&6; }
11721 if ${ac_cv_prog_NM+:} false; then :
11722   $as_echo_n "(cached) " >&6
11723 else
11724   if test -n "$NM"; then
11725   ac_cv_prog_NM="$NM" # Let the user override the test.
11726 else
11727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11728 for as_dir in $PATH
11729 do
11730   IFS=$as_save_IFS
11731   test -z "$as_dir" && as_dir=.
11732     for ac_exec_ext in '' $ac_executable_extensions; do
11733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11734     ac_cv_prog_NM="${ncn_progname}"
11735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11736     break 2
11737   fi
11738 done
11739   done
11740 IFS=$as_save_IFS
11741
11742 fi
11743 fi
11744 NM=$ac_cv_prog_NM
11745 if test -n "$NM"; then
11746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11747 $as_echo "$NM" >&6; }
11748 else
11749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750 $as_echo "no" >&6; }
11751 fi
11752
11753
11754   fi
11755   test -n "$ac_cv_prog_NM" && break
11756 done
11757
11758 if test -z "$ac_cv_prog_NM" ; then
11759   set dummy nm
11760   if test $build = $host ; then
11761     NM="$2"
11762   else
11763     NM="${ncn_tool_prefix}$2"
11764   fi
11765 fi
11766
11767
11768
11769 if test -n "$RANLIB"; then
11770   ac_cv_prog_RANLIB=$RANLIB
11771 elif test -n "$ac_cv_prog_RANLIB"; then
11772   RANLIB=$ac_cv_prog_RANLIB
11773 fi
11774
11775 if test -n "$ac_cv_prog_RANLIB"; then
11776   for ncn_progname in ranlib; do
11777     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11778 set dummy ${ncn_progname}; ac_word=$2
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11780 $as_echo_n "checking for $ac_word... " >&6; }
11781 if ${ac_cv_prog_RANLIB+:} false; then :
11782   $as_echo_n "(cached) " >&6
11783 else
11784   if test -n "$RANLIB"; then
11785   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11786 else
11787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788 for as_dir in $PATH
11789 do
11790   IFS=$as_save_IFS
11791   test -z "$as_dir" && as_dir=.
11792     for ac_exec_ext in '' $ac_executable_extensions; do
11793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11794     ac_cv_prog_RANLIB="${ncn_progname}"
11795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11796     break 2
11797   fi
11798 done
11799   done
11800 IFS=$as_save_IFS
11801
11802 fi
11803 fi
11804 RANLIB=$ac_cv_prog_RANLIB
11805 if test -n "$RANLIB"; then
11806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11807 $as_echo "$RANLIB" >&6; }
11808 else
11809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 $as_echo "no" >&6; }
11811 fi
11812
11813
11814   done
11815 fi
11816
11817 for ncn_progname in ranlib; do
11818   if test -n "$ncn_tool_prefix"; then
11819     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11820 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11822 $as_echo_n "checking for $ac_word... " >&6; }
11823 if ${ac_cv_prog_RANLIB+:} false; then :
11824   $as_echo_n "(cached) " >&6
11825 else
11826   if test -n "$RANLIB"; then
11827   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11828 else
11829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830 for as_dir in $PATH
11831 do
11832   IFS=$as_save_IFS
11833   test -z "$as_dir" && as_dir=.
11834     for ac_exec_ext in '' $ac_executable_extensions; do
11835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11836     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11838     break 2
11839   fi
11840 done
11841   done
11842 IFS=$as_save_IFS
11843
11844 fi
11845 fi
11846 RANLIB=$ac_cv_prog_RANLIB
11847 if test -n "$RANLIB"; then
11848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11849 $as_echo "$RANLIB" >&6; }
11850 else
11851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852 $as_echo "no" >&6; }
11853 fi
11854
11855
11856   fi
11857   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11858     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11859 set dummy ${ncn_progname}; ac_word=$2
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861 $as_echo_n "checking for $ac_word... " >&6; }
11862 if ${ac_cv_prog_RANLIB+:} false; then :
11863   $as_echo_n "(cached) " >&6
11864 else
11865   if test -n "$RANLIB"; then
11866   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11867 else
11868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869 for as_dir in $PATH
11870 do
11871   IFS=$as_save_IFS
11872   test -z "$as_dir" && as_dir=.
11873     for ac_exec_ext in '' $ac_executable_extensions; do
11874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11875     ac_cv_prog_RANLIB="${ncn_progname}"
11876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11877     break 2
11878   fi
11879 done
11880   done
11881 IFS=$as_save_IFS
11882
11883 fi
11884 fi
11885 RANLIB=$ac_cv_prog_RANLIB
11886 if test -n "$RANLIB"; then
11887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11888 $as_echo "$RANLIB" >&6; }
11889 else
11890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11892 fi
11893
11894
11895   fi
11896   test -n "$ac_cv_prog_RANLIB" && break
11897 done
11898
11899 if test -z "$ac_cv_prog_RANLIB" ; then
11900   RANLIB="true"
11901 fi
11902
11903
11904
11905 if test -n "$STRIP"; then
11906   ac_cv_prog_STRIP=$STRIP
11907 elif test -n "$ac_cv_prog_STRIP"; then
11908   STRIP=$ac_cv_prog_STRIP
11909 fi
11910
11911 if test -n "$ac_cv_prog_STRIP"; then
11912   for ncn_progname in strip; do
11913     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11914 set dummy ${ncn_progname}; ac_word=$2
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11916 $as_echo_n "checking for $ac_word... " >&6; }
11917 if ${ac_cv_prog_STRIP+:} false; then :
11918   $as_echo_n "(cached) " >&6
11919 else
11920   if test -n "$STRIP"; then
11921   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11922 else
11923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924 for as_dir in $PATH
11925 do
11926   IFS=$as_save_IFS
11927   test -z "$as_dir" && as_dir=.
11928     for ac_exec_ext in '' $ac_executable_extensions; do
11929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11930     ac_cv_prog_STRIP="${ncn_progname}"
11931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11932     break 2
11933   fi
11934 done
11935   done
11936 IFS=$as_save_IFS
11937
11938 fi
11939 fi
11940 STRIP=$ac_cv_prog_STRIP
11941 if test -n "$STRIP"; then
11942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11943 $as_echo "$STRIP" >&6; }
11944 else
11945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11946 $as_echo "no" >&6; }
11947 fi
11948
11949
11950   done
11951 fi
11952
11953 for ncn_progname in strip; do
11954   if test -n "$ncn_tool_prefix"; then
11955     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11956 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11958 $as_echo_n "checking for $ac_word... " >&6; }
11959 if ${ac_cv_prog_STRIP+:} false; then :
11960   $as_echo_n "(cached) " >&6
11961 else
11962   if test -n "$STRIP"; then
11963   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11964 else
11965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11966 for as_dir in $PATH
11967 do
11968   IFS=$as_save_IFS
11969   test -z "$as_dir" && as_dir=.
11970     for ac_exec_ext in '' $ac_executable_extensions; do
11971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11972     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11974     break 2
11975   fi
11976 done
11977   done
11978 IFS=$as_save_IFS
11979
11980 fi
11981 fi
11982 STRIP=$ac_cv_prog_STRIP
11983 if test -n "$STRIP"; then
11984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11985 $as_echo "$STRIP" >&6; }
11986 else
11987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988 $as_echo "no" >&6; }
11989 fi
11990
11991
11992   fi
11993   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11994     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11995 set dummy ${ncn_progname}; ac_word=$2
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11997 $as_echo_n "checking for $ac_word... " >&6; }
11998 if ${ac_cv_prog_STRIP+:} false; then :
11999   $as_echo_n "(cached) " >&6
12000 else
12001   if test -n "$STRIP"; then
12002   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12003 else
12004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12005 for as_dir in $PATH
12006 do
12007   IFS=$as_save_IFS
12008   test -z "$as_dir" && as_dir=.
12009     for ac_exec_ext in '' $ac_executable_extensions; do
12010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12011     ac_cv_prog_STRIP="${ncn_progname}"
12012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12013     break 2
12014   fi
12015 done
12016   done
12017 IFS=$as_save_IFS
12018
12019 fi
12020 fi
12021 STRIP=$ac_cv_prog_STRIP
12022 if test -n "$STRIP"; then
12023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12024 $as_echo "$STRIP" >&6; }
12025 else
12026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 $as_echo "no" >&6; }
12028 fi
12029
12030
12031   fi
12032   test -n "$ac_cv_prog_STRIP" && break
12033 done
12034
12035 if test -z "$ac_cv_prog_STRIP" ; then
12036   STRIP="true"
12037 fi
12038
12039
12040
12041 if test -n "$WINDRES"; then
12042   ac_cv_prog_WINDRES=$WINDRES
12043 elif test -n "$ac_cv_prog_WINDRES"; then
12044   WINDRES=$ac_cv_prog_WINDRES
12045 fi
12046
12047 if test -n "$ac_cv_prog_WINDRES"; then
12048   for ncn_progname in windres; do
12049     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12050 set dummy ${ncn_progname}; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if ${ac_cv_prog_WINDRES+:} false; then :
12054   $as_echo_n "(cached) " >&6
12055 else
12056   if test -n "$WINDRES"; then
12057   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12058 else
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $PATH
12061 do
12062   IFS=$as_save_IFS
12063   test -z "$as_dir" && as_dir=.
12064     for ac_exec_ext in '' $ac_executable_extensions; do
12065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12066     ac_cv_prog_WINDRES="${ncn_progname}"
12067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12068     break 2
12069   fi
12070 done
12071   done
12072 IFS=$as_save_IFS
12073
12074 fi
12075 fi
12076 WINDRES=$ac_cv_prog_WINDRES
12077 if test -n "$WINDRES"; then
12078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12079 $as_echo "$WINDRES" >&6; }
12080 else
12081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12083 fi
12084
12085
12086   done
12087 fi
12088
12089 for ncn_progname in windres; do
12090   if test -n "$ncn_tool_prefix"; then
12091     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12092 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12094 $as_echo_n "checking for $ac_word... " >&6; }
12095 if ${ac_cv_prog_WINDRES+:} false; then :
12096   $as_echo_n "(cached) " >&6
12097 else
12098   if test -n "$WINDRES"; then
12099   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12100 else
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in $PATH
12103 do
12104   IFS=$as_save_IFS
12105   test -z "$as_dir" && as_dir=.
12106     for ac_exec_ext in '' $ac_executable_extensions; do
12107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12108     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12110     break 2
12111   fi
12112 done
12113   done
12114 IFS=$as_save_IFS
12115
12116 fi
12117 fi
12118 WINDRES=$ac_cv_prog_WINDRES
12119 if test -n "$WINDRES"; then
12120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12121 $as_echo "$WINDRES" >&6; }
12122 else
12123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12125 fi
12126
12127
12128   fi
12129   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12130     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12131 set dummy ${ncn_progname}; ac_word=$2
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12133 $as_echo_n "checking for $ac_word... " >&6; }
12134 if ${ac_cv_prog_WINDRES+:} false; then :
12135   $as_echo_n "(cached) " >&6
12136 else
12137   if test -n "$WINDRES"; then
12138   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12139 else
12140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141 for as_dir in $PATH
12142 do
12143   IFS=$as_save_IFS
12144   test -z "$as_dir" && as_dir=.
12145     for ac_exec_ext in '' $ac_executable_extensions; do
12146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12147     ac_cv_prog_WINDRES="${ncn_progname}"
12148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12149     break 2
12150   fi
12151 done
12152   done
12153 IFS=$as_save_IFS
12154
12155 fi
12156 fi
12157 WINDRES=$ac_cv_prog_WINDRES
12158 if test -n "$WINDRES"; then
12159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12160 $as_echo "$WINDRES" >&6; }
12161 else
12162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163 $as_echo "no" >&6; }
12164 fi
12165
12166
12167   fi
12168   test -n "$ac_cv_prog_WINDRES" && break
12169 done
12170
12171 if test -z "$ac_cv_prog_WINDRES" ; then
12172   set dummy windres
12173   if test $build = $host ; then
12174     WINDRES="$2"
12175   else
12176     WINDRES="${ncn_tool_prefix}$2"
12177   fi
12178 fi
12179
12180
12181
12182 if test -n "$WINDMC"; then
12183   ac_cv_prog_WINDMC=$WINDMC
12184 elif test -n "$ac_cv_prog_WINDMC"; then
12185   WINDMC=$ac_cv_prog_WINDMC
12186 fi
12187
12188 if test -n "$ac_cv_prog_WINDMC"; then
12189   for ncn_progname in windmc; do
12190     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12191 set dummy ${ncn_progname}; ac_word=$2
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12193 $as_echo_n "checking for $ac_word... " >&6; }
12194 if ${ac_cv_prog_WINDMC+:} false; then :
12195   $as_echo_n "(cached) " >&6
12196 else
12197   if test -n "$WINDMC"; then
12198   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12199 else
12200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201 for as_dir in $PATH
12202 do
12203   IFS=$as_save_IFS
12204   test -z "$as_dir" && as_dir=.
12205     for ac_exec_ext in '' $ac_executable_extensions; do
12206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12207     ac_cv_prog_WINDMC="${ncn_progname}"
12208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12209     break 2
12210   fi
12211 done
12212   done
12213 IFS=$as_save_IFS
12214
12215 fi
12216 fi
12217 WINDMC=$ac_cv_prog_WINDMC
12218 if test -n "$WINDMC"; then
12219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12220 $as_echo "$WINDMC" >&6; }
12221 else
12222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223 $as_echo "no" >&6; }
12224 fi
12225
12226
12227   done
12228 fi
12229
12230 for ncn_progname in windmc; do
12231   if test -n "$ncn_tool_prefix"; then
12232     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12233 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12235 $as_echo_n "checking for $ac_word... " >&6; }
12236 if ${ac_cv_prog_WINDMC+:} false; then :
12237   $as_echo_n "(cached) " >&6
12238 else
12239   if test -n "$WINDMC"; then
12240   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12241 else
12242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243 for as_dir in $PATH
12244 do
12245   IFS=$as_save_IFS
12246   test -z "$as_dir" && as_dir=.
12247     for ac_exec_ext in '' $ac_executable_extensions; do
12248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12249     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12251     break 2
12252   fi
12253 done
12254   done
12255 IFS=$as_save_IFS
12256
12257 fi
12258 fi
12259 WINDMC=$ac_cv_prog_WINDMC
12260 if test -n "$WINDMC"; then
12261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12262 $as_echo "$WINDMC" >&6; }
12263 else
12264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12266 fi
12267
12268
12269   fi
12270   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12271     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12272 set dummy ${ncn_progname}; ac_word=$2
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274 $as_echo_n "checking for $ac_word... " >&6; }
12275 if ${ac_cv_prog_WINDMC+:} false; then :
12276   $as_echo_n "(cached) " >&6
12277 else
12278   if test -n "$WINDMC"; then
12279   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12280 else
12281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282 for as_dir in $PATH
12283 do
12284   IFS=$as_save_IFS
12285   test -z "$as_dir" && as_dir=.
12286     for ac_exec_ext in '' $ac_executable_extensions; do
12287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12288     ac_cv_prog_WINDMC="${ncn_progname}"
12289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12290     break 2
12291   fi
12292 done
12293   done
12294 IFS=$as_save_IFS
12295
12296 fi
12297 fi
12298 WINDMC=$ac_cv_prog_WINDMC
12299 if test -n "$WINDMC"; then
12300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12301 $as_echo "$WINDMC" >&6; }
12302 else
12303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304 $as_echo "no" >&6; }
12305 fi
12306
12307
12308   fi
12309   test -n "$ac_cv_prog_WINDMC" && break
12310 done
12311
12312 if test -z "$ac_cv_prog_WINDMC" ; then
12313   set dummy windmc
12314   if test $build = $host ; then
12315     WINDMC="$2"
12316   else
12317     WINDMC="${ncn_tool_prefix}$2"
12318   fi
12319 fi
12320
12321
12322
12323 if test -n "$OBJCOPY"; then
12324   ac_cv_prog_OBJCOPY=$OBJCOPY
12325 elif test -n "$ac_cv_prog_OBJCOPY"; then
12326   OBJCOPY=$ac_cv_prog_OBJCOPY
12327 fi
12328
12329 if test -n "$ac_cv_prog_OBJCOPY"; then
12330   for ncn_progname in objcopy; do
12331     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12332 set dummy ${ncn_progname}; ac_word=$2
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12334 $as_echo_n "checking for $ac_word... " >&6; }
12335 if ${ac_cv_prog_OBJCOPY+:} false; then :
12336   $as_echo_n "(cached) " >&6
12337 else
12338   if test -n "$OBJCOPY"; then
12339   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12340 else
12341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12342 for as_dir in $PATH
12343 do
12344   IFS=$as_save_IFS
12345   test -z "$as_dir" && as_dir=.
12346     for ac_exec_ext in '' $ac_executable_extensions; do
12347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12348     ac_cv_prog_OBJCOPY="${ncn_progname}"
12349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12350     break 2
12351   fi
12352 done
12353   done
12354 IFS=$as_save_IFS
12355
12356 fi
12357 fi
12358 OBJCOPY=$ac_cv_prog_OBJCOPY
12359 if test -n "$OBJCOPY"; then
12360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12361 $as_echo "$OBJCOPY" >&6; }
12362 else
12363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364 $as_echo "no" >&6; }
12365 fi
12366
12367
12368   done
12369 fi
12370
12371 for ncn_progname in objcopy; do
12372   if test -n "$ncn_tool_prefix"; then
12373     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12374 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12376 $as_echo_n "checking for $ac_word... " >&6; }
12377 if ${ac_cv_prog_OBJCOPY+:} false; then :
12378   $as_echo_n "(cached) " >&6
12379 else
12380   if test -n "$OBJCOPY"; then
12381   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12382 else
12383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12384 for as_dir in $PATH
12385 do
12386   IFS=$as_save_IFS
12387   test -z "$as_dir" && as_dir=.
12388     for ac_exec_ext in '' $ac_executable_extensions; do
12389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12390     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12392     break 2
12393   fi
12394 done
12395   done
12396 IFS=$as_save_IFS
12397
12398 fi
12399 fi
12400 OBJCOPY=$ac_cv_prog_OBJCOPY
12401 if test -n "$OBJCOPY"; then
12402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12403 $as_echo "$OBJCOPY" >&6; }
12404 else
12405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12407 fi
12408
12409
12410   fi
12411   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12412     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12413 set dummy ${ncn_progname}; ac_word=$2
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12415 $as_echo_n "checking for $ac_word... " >&6; }
12416 if ${ac_cv_prog_OBJCOPY+:} false; then :
12417   $as_echo_n "(cached) " >&6
12418 else
12419   if test -n "$OBJCOPY"; then
12420   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12421 else
12422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12423 for as_dir in $PATH
12424 do
12425   IFS=$as_save_IFS
12426   test -z "$as_dir" && as_dir=.
12427     for ac_exec_ext in '' $ac_executable_extensions; do
12428   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12429     ac_cv_prog_OBJCOPY="${ncn_progname}"
12430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12431     break 2
12432   fi
12433 done
12434   done
12435 IFS=$as_save_IFS
12436
12437 fi
12438 fi
12439 OBJCOPY=$ac_cv_prog_OBJCOPY
12440 if test -n "$OBJCOPY"; then
12441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12442 $as_echo "$OBJCOPY" >&6; }
12443 else
12444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445 $as_echo "no" >&6; }
12446 fi
12447
12448
12449   fi
12450   test -n "$ac_cv_prog_OBJCOPY" && break
12451 done
12452
12453 if test -z "$ac_cv_prog_OBJCOPY" ; then
12454   set dummy objcopy
12455   if test $build = $host ; then
12456     OBJCOPY="$2"
12457   else
12458     OBJCOPY="${ncn_tool_prefix}$2"
12459   fi
12460 fi
12461
12462
12463
12464 if test -n "$OBJDUMP"; then
12465   ac_cv_prog_OBJDUMP=$OBJDUMP
12466 elif test -n "$ac_cv_prog_OBJDUMP"; then
12467   OBJDUMP=$ac_cv_prog_OBJDUMP
12468 fi
12469
12470 if test -n "$ac_cv_prog_OBJDUMP"; then
12471   for ncn_progname in objdump; do
12472     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12473 set dummy ${ncn_progname}; ac_word=$2
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12475 $as_echo_n "checking for $ac_word... " >&6; }
12476 if ${ac_cv_prog_OBJDUMP+:} false; then :
12477   $as_echo_n "(cached) " >&6
12478 else
12479   if test -n "$OBJDUMP"; then
12480   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12481 else
12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483 for as_dir in $PATH
12484 do
12485   IFS=$as_save_IFS
12486   test -z "$as_dir" && as_dir=.
12487     for ac_exec_ext in '' $ac_executable_extensions; do
12488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12489     ac_cv_prog_OBJDUMP="${ncn_progname}"
12490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12491     break 2
12492   fi
12493 done
12494   done
12495 IFS=$as_save_IFS
12496
12497 fi
12498 fi
12499 OBJDUMP=$ac_cv_prog_OBJDUMP
12500 if test -n "$OBJDUMP"; then
12501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12502 $as_echo "$OBJDUMP" >&6; }
12503 else
12504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505 $as_echo "no" >&6; }
12506 fi
12507
12508
12509   done
12510 fi
12511
12512 for ncn_progname in objdump; do
12513   if test -n "$ncn_tool_prefix"; then
12514     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12515 set dummy ${ncn_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_OBJDUMP+:} false; then :
12519   $as_echo_n "(cached) " >&6
12520 else
12521   if test -n "$OBJDUMP"; then
12522   ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ncn_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 OBJDUMP=$ac_cv_prog_OBJDUMP
12542 if test -n "$OBJDUMP"; then
12543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12544 $as_echo "$OBJDUMP" >&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_OBJDUMP" && test $build = $host ; 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_OBJDUMP+:} false; then :
12558   $as_echo_n "(cached) " >&6
12559 else
12560   if test -n "$OBJDUMP"; then
12561   ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${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 OBJDUMP=$ac_cv_prog_OBJDUMP
12581 if test -n "$OBJDUMP"; then
12582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12583 $as_echo "$OBJDUMP" >&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_OBJDUMP" && break
12592 done
12593
12594 if test -z "$ac_cv_prog_OBJDUMP" ; then
12595   set dummy objdump
12596   if test $build = $host ; then
12597     OBJDUMP="$2"
12598   else
12599     OBJDUMP="${ncn_tool_prefix}$2"
12600   fi
12601 fi
12602
12603
12604
12605 if test -n "$OTOOL"; then
12606   ac_cv_prog_OTOOL=$OTOOL
12607 elif test -n "$ac_cv_prog_OTOOL"; then
12608   OTOOL=$ac_cv_prog_OTOOL
12609 fi
12610
12611 if test -n "$ac_cv_prog_OTOOL"; then
12612   for ncn_progname in otool; do
12613     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12614 set dummy ${ncn_progname}; ac_word=$2
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12616 $as_echo_n "checking for $ac_word... " >&6; }
12617 if ${ac_cv_prog_OTOOL+:} false; then :
12618   $as_echo_n "(cached) " >&6
12619 else
12620   if test -n "$OTOOL"; then
12621   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12622 else
12623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12624 for as_dir in $PATH
12625 do
12626   IFS=$as_save_IFS
12627   test -z "$as_dir" && as_dir=.
12628     for ac_exec_ext in '' $ac_executable_extensions; do
12629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12630     ac_cv_prog_OTOOL="${ncn_progname}"
12631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12632     break 2
12633   fi
12634 done
12635   done
12636 IFS=$as_save_IFS
12637
12638 fi
12639 fi
12640 OTOOL=$ac_cv_prog_OTOOL
12641 if test -n "$OTOOL"; then
12642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12643 $as_echo "$OTOOL" >&6; }
12644 else
12645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646 $as_echo "no" >&6; }
12647 fi
12648
12649
12650   done
12651 fi
12652
12653 for ncn_progname in otool; do
12654   if test -n "$ncn_tool_prefix"; then
12655     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12656 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12658 $as_echo_n "checking for $ac_word... " >&6; }
12659 if ${ac_cv_prog_OTOOL+:} false; then :
12660   $as_echo_n "(cached) " >&6
12661 else
12662   if test -n "$OTOOL"; then
12663   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12664 else
12665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12666 for as_dir in $PATH
12667 do
12668   IFS=$as_save_IFS
12669   test -z "$as_dir" && as_dir=.
12670     for ac_exec_ext in '' $ac_executable_extensions; do
12671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12672     ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12674     break 2
12675   fi
12676 done
12677   done
12678 IFS=$as_save_IFS
12679
12680 fi
12681 fi
12682 OTOOL=$ac_cv_prog_OTOOL
12683 if test -n "$OTOOL"; then
12684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12685 $as_echo "$OTOOL" >&6; }
12686 else
12687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688 $as_echo "no" >&6; }
12689 fi
12690
12691
12692   fi
12693   if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12694     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12695 set dummy ${ncn_progname}; ac_word=$2
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12697 $as_echo_n "checking for $ac_word... " >&6; }
12698 if ${ac_cv_prog_OTOOL+:} false; then :
12699   $as_echo_n "(cached) " >&6
12700 else
12701   if test -n "$OTOOL"; then
12702   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12703 else
12704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12705 for as_dir in $PATH
12706 do
12707   IFS=$as_save_IFS
12708   test -z "$as_dir" && as_dir=.
12709     for ac_exec_ext in '' $ac_executable_extensions; do
12710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12711     ac_cv_prog_OTOOL="${ncn_progname}"
12712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12713     break 2
12714   fi
12715 done
12716   done
12717 IFS=$as_save_IFS
12718
12719 fi
12720 fi
12721 OTOOL=$ac_cv_prog_OTOOL
12722 if test -n "$OTOOL"; then
12723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12724 $as_echo "$OTOOL" >&6; }
12725 else
12726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12727 $as_echo "no" >&6; }
12728 fi
12729
12730
12731   fi
12732   test -n "$ac_cv_prog_OTOOL" && break
12733 done
12734
12735 if test -z "$ac_cv_prog_OTOOL" ; then
12736   set dummy otool
12737   if test $build = $host ; then
12738     OTOOL="$2"
12739   else
12740     OTOOL="${ncn_tool_prefix}$2"
12741   fi
12742 fi
12743
12744
12745
12746 if test -n "$READELF"; then
12747   ac_cv_prog_READELF=$READELF
12748 elif test -n "$ac_cv_prog_READELF"; then
12749   READELF=$ac_cv_prog_READELF
12750 fi
12751
12752 if test -n "$ac_cv_prog_READELF"; then
12753   for ncn_progname in readelf; do
12754     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12755 set dummy ${ncn_progname}; ac_word=$2
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12757 $as_echo_n "checking for $ac_word... " >&6; }
12758 if ${ac_cv_prog_READELF+:} false; then :
12759   $as_echo_n "(cached) " >&6
12760 else
12761   if test -n "$READELF"; then
12762   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12763 else
12764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12765 for as_dir in $PATH
12766 do
12767   IFS=$as_save_IFS
12768   test -z "$as_dir" && as_dir=.
12769     for ac_exec_ext in '' $ac_executable_extensions; do
12770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12771     ac_cv_prog_READELF="${ncn_progname}"
12772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12773     break 2
12774   fi
12775 done
12776   done
12777 IFS=$as_save_IFS
12778
12779 fi
12780 fi
12781 READELF=$ac_cv_prog_READELF
12782 if test -n "$READELF"; then
12783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12784 $as_echo "$READELF" >&6; }
12785 else
12786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12788 fi
12789
12790
12791   done
12792 fi
12793
12794 for ncn_progname in readelf; do
12795   if test -n "$ncn_tool_prefix"; then
12796     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12797 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12799 $as_echo_n "checking for $ac_word... " >&6; }
12800 if ${ac_cv_prog_READELF+:} false; then :
12801   $as_echo_n "(cached) " >&6
12802 else
12803   if test -n "$READELF"; then
12804   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12805 else
12806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807 for as_dir in $PATH
12808 do
12809   IFS=$as_save_IFS
12810   test -z "$as_dir" && as_dir=.
12811     for ac_exec_ext in '' $ac_executable_extensions; do
12812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12813     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12815     break 2
12816   fi
12817 done
12818   done
12819 IFS=$as_save_IFS
12820
12821 fi
12822 fi
12823 READELF=$ac_cv_prog_READELF
12824 if test -n "$READELF"; then
12825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12826 $as_echo "$READELF" >&6; }
12827 else
12828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829 $as_echo "no" >&6; }
12830 fi
12831
12832
12833   fi
12834   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12835     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12836 set dummy ${ncn_progname}; ac_word=$2
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12838 $as_echo_n "checking for $ac_word... " >&6; }
12839 if ${ac_cv_prog_READELF+:} false; then :
12840   $as_echo_n "(cached) " >&6
12841 else
12842   if test -n "$READELF"; then
12843   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12844 else
12845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12846 for as_dir in $PATH
12847 do
12848   IFS=$as_save_IFS
12849   test -z "$as_dir" && as_dir=.
12850     for ac_exec_ext in '' $ac_executable_extensions; do
12851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12852     ac_cv_prog_READELF="${ncn_progname}"
12853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12854     break 2
12855   fi
12856 done
12857   done
12858 IFS=$as_save_IFS
12859
12860 fi
12861 fi
12862 READELF=$ac_cv_prog_READELF
12863 if test -n "$READELF"; then
12864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12865 $as_echo "$READELF" >&6; }
12866 else
12867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12868 $as_echo "no" >&6; }
12869 fi
12870
12871
12872   fi
12873   test -n "$ac_cv_prog_READELF" && break
12874 done
12875
12876 if test -z "$ac_cv_prog_READELF" ; then
12877   set dummy readelf
12878   if test $build = $host ; then
12879     READELF="$2"
12880   else
12881     READELF="${ncn_tool_prefix}$2"
12882   fi
12883 fi
12884
12885
12886
12887
12888
12889
12890
12891
12892 # Target tools.
12893
12894 # Check whether --with-build-time-tools was given.
12895 if test "${with_build_time_tools+set}" = set; then :
12896   withval=$with_build_time_tools; case x"$withval" in
12897      x/*) ;;
12898      *)
12899        with_build_time_tools=
12900        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12901 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12902        ;;
12903    esac
12904 else
12905   with_build_time_tools=
12906 fi
12907
12908
12909
12910
12911 if test -n "$CC_FOR_TARGET"; then
12912   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12913 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12914   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12915 fi
12916
12917 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12918   for ncn_progname in cc gcc; do
12919     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12920 set dummy ${ncn_progname}; ac_word=$2
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12922 $as_echo_n "checking for $ac_word... " >&6; }
12923 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12924   $as_echo_n "(cached) " >&6
12925 else
12926   if test -n "$CC_FOR_TARGET"; then
12927   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12928 else
12929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12930 for as_dir in $PATH
12931 do
12932   IFS=$as_save_IFS
12933   test -z "$as_dir" && as_dir=.
12934     for ac_exec_ext in '' $ac_executable_extensions; do
12935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12936     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12938     break 2
12939   fi
12940 done
12941   done
12942 IFS=$as_save_IFS
12943
12944 fi
12945 fi
12946 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12947 if test -n "$CC_FOR_TARGET"; then
12948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12949 $as_echo "$CC_FOR_TARGET" >&6; }
12950 else
12951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12952 $as_echo "no" >&6; }
12953 fi
12954
12955
12956   done
12957 fi
12958
12959 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12960   for ncn_progname in cc gcc; do
12961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12962 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12963     if test -x $with_build_time_tools/${ncn_progname}; then
12964       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12965       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12966 $as_echo "yes" >&6; }
12967       break
12968     else
12969       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12970 $as_echo "no" >&6; }
12971     fi
12972   done
12973 fi
12974
12975 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12976   for ncn_progname in cc gcc; do
12977     if test -n "$ncn_target_tool_prefix"; then
12978       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12979 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12981 $as_echo_n "checking for $ac_word... " >&6; }
12982 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12983   $as_echo_n "(cached) " >&6
12984 else
12985   if test -n "$CC_FOR_TARGET"; then
12986   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12987 else
12988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12989 for as_dir in $PATH
12990 do
12991   IFS=$as_save_IFS
12992   test -z "$as_dir" && as_dir=.
12993     for ac_exec_ext in '' $ac_executable_extensions; do
12994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12995     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12997     break 2
12998   fi
12999 done
13000   done
13001 IFS=$as_save_IFS
13002
13003 fi
13004 fi
13005 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13006 if test -n "$CC_FOR_TARGET"; then
13007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13008 $as_echo "$CC_FOR_TARGET" >&6; }
13009 else
13010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011 $as_echo "no" >&6; }
13012 fi
13013
13014
13015     fi
13016     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13017       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13018 set dummy ${ncn_progname}; ac_word=$2
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13020 $as_echo_n "checking for $ac_word... " >&6; }
13021 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13022   $as_echo_n "(cached) " >&6
13023 else
13024   if test -n "$CC_FOR_TARGET"; then
13025   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13026 else
13027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13028 for as_dir in $PATH
13029 do
13030   IFS=$as_save_IFS
13031   test -z "$as_dir" && as_dir=.
13032     for ac_exec_ext in '' $ac_executable_extensions; do
13033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13034     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13036     break 2
13037   fi
13038 done
13039   done
13040 IFS=$as_save_IFS
13041
13042 fi
13043 fi
13044 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13045 if test -n "$CC_FOR_TARGET"; then
13046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13047 $as_echo "$CC_FOR_TARGET" >&6; }
13048 else
13049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13050 $as_echo "no" >&6; }
13051 fi
13052
13053
13054     fi
13055     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13056   done
13057 fi
13058
13059 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13060   set dummy cc gcc
13061   if test $build = $target ; then
13062     CC_FOR_TARGET="$2"
13063   else
13064     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13065   fi
13066 else
13067   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13068 fi
13069
13070
13071
13072 if test -n "$CXX_FOR_TARGET"; then
13073   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13074 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13075   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13076 fi
13077
13078 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13079   for ncn_progname in c++ g++ cxx gxx; do
13080     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13081 set dummy ${ncn_progname}; ac_word=$2
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13083 $as_echo_n "checking for $ac_word... " >&6; }
13084 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13085   $as_echo_n "(cached) " >&6
13086 else
13087   if test -n "$CXX_FOR_TARGET"; then
13088   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13089 else
13090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13091 for as_dir in $PATH
13092 do
13093   IFS=$as_save_IFS
13094   test -z "$as_dir" && as_dir=.
13095     for ac_exec_ext in '' $ac_executable_extensions; do
13096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13097     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13099     break 2
13100   fi
13101 done
13102   done
13103 IFS=$as_save_IFS
13104
13105 fi
13106 fi
13107 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13108 if test -n "$CXX_FOR_TARGET"; then
13109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13110 $as_echo "$CXX_FOR_TARGET" >&6; }
13111 else
13112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13114 fi
13115
13116
13117   done
13118 fi
13119
13120 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13121   for ncn_progname in c++ g++ cxx gxx; do
13122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13123 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13124     if test -x $with_build_time_tools/${ncn_progname}; then
13125       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13126       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13127 $as_echo "yes" >&6; }
13128       break
13129     else
13130       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131 $as_echo "no" >&6; }
13132     fi
13133   done
13134 fi
13135
13136 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13137   for ncn_progname in c++ g++ cxx gxx; do
13138     if test -n "$ncn_target_tool_prefix"; then
13139       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13140 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142 $as_echo_n "checking for $ac_word... " >&6; }
13143 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13144   $as_echo_n "(cached) " >&6
13145 else
13146   if test -n "$CXX_FOR_TARGET"; then
13147   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13148 else
13149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13151 do
13152   IFS=$as_save_IFS
13153   test -z "$as_dir" && as_dir=.
13154     for ac_exec_ext in '' $ac_executable_extensions; do
13155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13156     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13158     break 2
13159   fi
13160 done
13161   done
13162 IFS=$as_save_IFS
13163
13164 fi
13165 fi
13166 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13167 if test -n "$CXX_FOR_TARGET"; then
13168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13169 $as_echo "$CXX_FOR_TARGET" >&6; }
13170 else
13171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13173 fi
13174
13175
13176     fi
13177     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13178       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13179 set dummy ${ncn_progname}; ac_word=$2
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13181 $as_echo_n "checking for $ac_word... " >&6; }
13182 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13183   $as_echo_n "(cached) " >&6
13184 else
13185   if test -n "$CXX_FOR_TARGET"; then
13186   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13187 else
13188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13189 for as_dir in $PATH
13190 do
13191   IFS=$as_save_IFS
13192   test -z "$as_dir" && as_dir=.
13193     for ac_exec_ext in '' $ac_executable_extensions; do
13194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13195     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13197     break 2
13198   fi
13199 done
13200   done
13201 IFS=$as_save_IFS
13202
13203 fi
13204 fi
13205 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13206 if test -n "$CXX_FOR_TARGET"; then
13207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13208 $as_echo "$CXX_FOR_TARGET" >&6; }
13209 else
13210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13212 fi
13213
13214
13215     fi
13216     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13217   done
13218 fi
13219
13220 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13221   set dummy c++ g++ cxx gxx
13222   if test $build = $target ; then
13223     CXX_FOR_TARGET="$2"
13224   else
13225     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13226   fi
13227 else
13228   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13229 fi
13230
13231
13232
13233 if test -n "$GCC_FOR_TARGET"; then
13234   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13235 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13236   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13237 fi
13238
13239 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13240   for ncn_progname in gcc; do
13241     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13242 set dummy ${ncn_progname}; ac_word=$2
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13244 $as_echo_n "checking for $ac_word... " >&6; }
13245 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13246   $as_echo_n "(cached) " >&6
13247 else
13248   if test -n "$GCC_FOR_TARGET"; then
13249   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13250 else
13251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252 for as_dir in $PATH
13253 do
13254   IFS=$as_save_IFS
13255   test -z "$as_dir" && as_dir=.
13256     for ac_exec_ext in '' $ac_executable_extensions; do
13257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13258     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13260     break 2
13261   fi
13262 done
13263   done
13264 IFS=$as_save_IFS
13265
13266 fi
13267 fi
13268 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13269 if test -n "$GCC_FOR_TARGET"; then
13270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13271 $as_echo "$GCC_FOR_TARGET" >&6; }
13272 else
13273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13274 $as_echo "no" >&6; }
13275 fi
13276
13277
13278   done
13279 fi
13280
13281 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13282   for ncn_progname in gcc; do
13283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13284 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13285     if test -x $with_build_time_tools/${ncn_progname}; then
13286       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13287       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13288 $as_echo "yes" >&6; }
13289       break
13290     else
13291       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13292 $as_echo "no" >&6; }
13293     fi
13294   done
13295 fi
13296
13297 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13298   for ncn_progname in gcc; do
13299     if test -n "$ncn_target_tool_prefix"; then
13300       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13301 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13303 $as_echo_n "checking for $ac_word... " >&6; }
13304 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13305   $as_echo_n "(cached) " >&6
13306 else
13307   if test -n "$GCC_FOR_TARGET"; then
13308   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13309 else
13310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13311 for as_dir in $PATH
13312 do
13313   IFS=$as_save_IFS
13314   test -z "$as_dir" && as_dir=.
13315     for ac_exec_ext in '' $ac_executable_extensions; do
13316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13317     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13319     break 2
13320   fi
13321 done
13322   done
13323 IFS=$as_save_IFS
13324
13325 fi
13326 fi
13327 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13328 if test -n "$GCC_FOR_TARGET"; then
13329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13330 $as_echo "$GCC_FOR_TARGET" >&6; }
13331 else
13332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333 $as_echo "no" >&6; }
13334 fi
13335
13336
13337     fi
13338     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13339       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13340 set dummy ${ncn_progname}; ac_word=$2
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13342 $as_echo_n "checking for $ac_word... " >&6; }
13343 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13344   $as_echo_n "(cached) " >&6
13345 else
13346   if test -n "$GCC_FOR_TARGET"; then
13347   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13348 else
13349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350 for as_dir in $PATH
13351 do
13352   IFS=$as_save_IFS
13353   test -z "$as_dir" && as_dir=.
13354     for ac_exec_ext in '' $ac_executable_extensions; do
13355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13356     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358     break 2
13359   fi
13360 done
13361   done
13362 IFS=$as_save_IFS
13363
13364 fi
13365 fi
13366 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13367 if test -n "$GCC_FOR_TARGET"; then
13368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13369 $as_echo "$GCC_FOR_TARGET" >&6; }
13370 else
13371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372 $as_echo "no" >&6; }
13373 fi
13374
13375
13376     fi
13377     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13378   done
13379 fi
13380
13381 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13382   GCC_FOR_TARGET="${CC_FOR_TARGET}"
13383 else
13384   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13385 fi
13386
13387
13388
13389 if test -n "$GFORTRAN_FOR_TARGET"; then
13390   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13391 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13392   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13393 fi
13394
13395 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13396   for ncn_progname in gfortran; do
13397     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13398 set dummy ${ncn_progname}; ac_word=$2
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13400 $as_echo_n "checking for $ac_word... " >&6; }
13401 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13402   $as_echo_n "(cached) " >&6
13403 else
13404   if test -n "$GFORTRAN_FOR_TARGET"; then
13405   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13406 else
13407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13408 for as_dir in $PATH
13409 do
13410   IFS=$as_save_IFS
13411   test -z "$as_dir" && as_dir=.
13412     for ac_exec_ext in '' $ac_executable_extensions; do
13413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13414     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13416     break 2
13417   fi
13418 done
13419   done
13420 IFS=$as_save_IFS
13421
13422 fi
13423 fi
13424 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13425 if test -n "$GFORTRAN_FOR_TARGET"; then
13426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13427 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13428 else
13429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430 $as_echo "no" >&6; }
13431 fi
13432
13433
13434   done
13435 fi
13436
13437 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13438   for ncn_progname in gfortran; do
13439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13440 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13441     if test -x $with_build_time_tools/${ncn_progname}; then
13442       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13443       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13444 $as_echo "yes" >&6; }
13445       break
13446     else
13447       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448 $as_echo "no" >&6; }
13449     fi
13450   done
13451 fi
13452
13453 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13454   for ncn_progname in gfortran; do
13455     if test -n "$ncn_target_tool_prefix"; then
13456       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13457 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13459 $as_echo_n "checking for $ac_word... " >&6; }
13460 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13461   $as_echo_n "(cached) " >&6
13462 else
13463   if test -n "$GFORTRAN_FOR_TARGET"; then
13464   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13465 else
13466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13467 for as_dir in $PATH
13468 do
13469   IFS=$as_save_IFS
13470   test -z "$as_dir" && as_dir=.
13471     for ac_exec_ext in '' $ac_executable_extensions; do
13472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13473     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13475     break 2
13476   fi
13477 done
13478   done
13479 IFS=$as_save_IFS
13480
13481 fi
13482 fi
13483 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13484 if test -n "$GFORTRAN_FOR_TARGET"; then
13485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13486 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13487 else
13488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13489 $as_echo "no" >&6; }
13490 fi
13491
13492
13493     fi
13494     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13495       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13496 set dummy ${ncn_progname}; ac_word=$2
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13498 $as_echo_n "checking for $ac_word... " >&6; }
13499 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13500   $as_echo_n "(cached) " >&6
13501 else
13502   if test -n "$GFORTRAN_FOR_TARGET"; then
13503   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13504 else
13505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13506 for as_dir in $PATH
13507 do
13508   IFS=$as_save_IFS
13509   test -z "$as_dir" && as_dir=.
13510     for ac_exec_ext in '' $ac_executable_extensions; do
13511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13512     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13514     break 2
13515   fi
13516 done
13517   done
13518 IFS=$as_save_IFS
13519
13520 fi
13521 fi
13522 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13523 if test -n "$GFORTRAN_FOR_TARGET"; then
13524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13525 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13526 else
13527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13528 $as_echo "no" >&6; }
13529 fi
13530
13531
13532     fi
13533     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13534   done
13535 fi
13536
13537 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13538   set dummy gfortran
13539   if test $build = $target ; then
13540     GFORTRAN_FOR_TARGET="$2"
13541   else
13542     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13543   fi
13544 else
13545   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13546 fi
13547
13548
13549
13550 if test -n "$GOC_FOR_TARGET"; then
13551   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13552 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13553   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13554 fi
13555
13556 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13557   for ncn_progname in gccgo; do
13558     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13559 set dummy ${ncn_progname}; ac_word=$2
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13561 $as_echo_n "checking for $ac_word... " >&6; }
13562 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13563   $as_echo_n "(cached) " >&6
13564 else
13565   if test -n "$GOC_FOR_TARGET"; then
13566   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13567 else
13568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13569 for as_dir in $PATH
13570 do
13571   IFS=$as_save_IFS
13572   test -z "$as_dir" && as_dir=.
13573     for ac_exec_ext in '' $ac_executable_extensions; do
13574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13575     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13577     break 2
13578   fi
13579 done
13580   done
13581 IFS=$as_save_IFS
13582
13583 fi
13584 fi
13585 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13586 if test -n "$GOC_FOR_TARGET"; then
13587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13588 $as_echo "$GOC_FOR_TARGET" >&6; }
13589 else
13590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13591 $as_echo "no" >&6; }
13592 fi
13593
13594
13595   done
13596 fi
13597
13598 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13599   for ncn_progname in gccgo; do
13600     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13601 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13602     if test -x $with_build_time_tools/${ncn_progname}; then
13603       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13604       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13605 $as_echo "yes" >&6; }
13606       break
13607     else
13608       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609 $as_echo "no" >&6; }
13610     fi
13611   done
13612 fi
13613
13614 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13615   for ncn_progname in gccgo; do
13616     if test -n "$ncn_target_tool_prefix"; then
13617       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13618 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620 $as_echo_n "checking for $ac_word... " >&6; }
13621 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13622   $as_echo_n "(cached) " >&6
13623 else
13624   if test -n "$GOC_FOR_TARGET"; then
13625   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13626 else
13627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $PATH
13629 do
13630   IFS=$as_save_IFS
13631   test -z "$as_dir" && as_dir=.
13632     for ac_exec_ext in '' $ac_executable_extensions; do
13633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13634     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13636     break 2
13637   fi
13638 done
13639   done
13640 IFS=$as_save_IFS
13641
13642 fi
13643 fi
13644 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13645 if test -n "$GOC_FOR_TARGET"; then
13646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13647 $as_echo "$GOC_FOR_TARGET" >&6; }
13648 else
13649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650 $as_echo "no" >&6; }
13651 fi
13652
13653
13654     fi
13655     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13656       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13657 set dummy ${ncn_progname}; ac_word=$2
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13659 $as_echo_n "checking for $ac_word... " >&6; }
13660 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13661   $as_echo_n "(cached) " >&6
13662 else
13663   if test -n "$GOC_FOR_TARGET"; then
13664   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13665 else
13666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13667 for as_dir in $PATH
13668 do
13669   IFS=$as_save_IFS
13670   test -z "$as_dir" && as_dir=.
13671     for ac_exec_ext in '' $ac_executable_extensions; do
13672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13673     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13675     break 2
13676   fi
13677 done
13678   done
13679 IFS=$as_save_IFS
13680
13681 fi
13682 fi
13683 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13684 if test -n "$GOC_FOR_TARGET"; then
13685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13686 $as_echo "$GOC_FOR_TARGET" >&6; }
13687 else
13688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13689 $as_echo "no" >&6; }
13690 fi
13691
13692
13693     fi
13694     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13695   done
13696 fi
13697
13698 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13699   set dummy gccgo
13700   if test $build = $target ; then
13701     GOC_FOR_TARGET="$2"
13702   else
13703     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13704   fi
13705 else
13706   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13707 fi
13708
13709
13710
13711 if test -n "$GDC_FOR_TARGET"; then
13712   ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13713 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13714   GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13715 fi
13716
13717 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13718   for ncn_progname in gdc; do
13719     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13720 set dummy ${ncn_progname}; ac_word=$2
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13722 $as_echo_n "checking for $ac_word... " >&6; }
13723 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13724   $as_echo_n "(cached) " >&6
13725 else
13726   if test -n "$GDC_FOR_TARGET"; then
13727   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13728 else
13729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13730 for as_dir in $PATH
13731 do
13732   IFS=$as_save_IFS
13733   test -z "$as_dir" && as_dir=.
13734     for ac_exec_ext in '' $ac_executable_extensions; do
13735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13736     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13738     break 2
13739   fi
13740 done
13741   done
13742 IFS=$as_save_IFS
13743
13744 fi
13745 fi
13746 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13747 if test -n "$GDC_FOR_TARGET"; then
13748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13749 $as_echo "$GDC_FOR_TARGET" >&6; }
13750 else
13751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13752 $as_echo "no" >&6; }
13753 fi
13754
13755
13756   done
13757 fi
13758
13759 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13760   for ncn_progname in gdc; do
13761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13762 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13763     if test -x $with_build_time_tools/${ncn_progname}; then
13764       ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13765       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13766 $as_echo "yes" >&6; }
13767       break
13768     else
13769       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13770 $as_echo "no" >&6; }
13771     fi
13772   done
13773 fi
13774
13775 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13776   for ncn_progname in gdc; do
13777     if test -n "$ncn_target_tool_prefix"; then
13778       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13779 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13781 $as_echo_n "checking for $ac_word... " >&6; }
13782 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13783   $as_echo_n "(cached) " >&6
13784 else
13785   if test -n "$GDC_FOR_TARGET"; then
13786   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13787 else
13788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13789 for as_dir in $PATH
13790 do
13791   IFS=$as_save_IFS
13792   test -z "$as_dir" && as_dir=.
13793     for ac_exec_ext in '' $ac_executable_extensions; do
13794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13795     ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13797     break 2
13798   fi
13799 done
13800   done
13801 IFS=$as_save_IFS
13802
13803 fi
13804 fi
13805 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13806 if test -n "$GDC_FOR_TARGET"; then
13807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13808 $as_echo "$GDC_FOR_TARGET" >&6; }
13809 else
13810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; }
13812 fi
13813
13814
13815     fi
13816     if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13817       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13818 set dummy ${ncn_progname}; ac_word=$2
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13820 $as_echo_n "checking for $ac_word... " >&6; }
13821 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13822   $as_echo_n "(cached) " >&6
13823 else
13824   if test -n "$GDC_FOR_TARGET"; then
13825   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13826 else
13827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13828 for as_dir in $PATH
13829 do
13830   IFS=$as_save_IFS
13831   test -z "$as_dir" && as_dir=.
13832     for ac_exec_ext in '' $ac_executable_extensions; do
13833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13834     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13836     break 2
13837   fi
13838 done
13839   done
13840 IFS=$as_save_IFS
13841
13842 fi
13843 fi
13844 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13845 if test -n "$GDC_FOR_TARGET"; then
13846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13847 $as_echo "$GDC_FOR_TARGET" >&6; }
13848 else
13849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13850 $as_echo "no" >&6; }
13851 fi
13852
13853
13854     fi
13855     test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13856   done
13857 fi
13858
13859 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13860   set dummy gdc
13861   if test $build = $target ; then
13862     GDC_FOR_TARGET="$2"
13863   else
13864     GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13865   fi
13866 else
13867   GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13868 fi
13869
13870
13871
13872 if test -n "$GM2_FOR_TARGET"; then
13873   ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
13874 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13875   GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13876 fi
13877
13878 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13879   for ncn_progname in gm2; do
13880     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13881 set dummy ${ncn_progname}; ac_word=$2
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13883 $as_echo_n "checking for $ac_word... " >&6; }
13884 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13885   $as_echo_n "(cached) " >&6
13886 else
13887   if test -n "$GM2_FOR_TARGET"; then
13888   ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13889 else
13890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13891 for as_dir in $PATH
13892 do
13893   IFS=$as_save_IFS
13894   test -z "$as_dir" && as_dir=.
13895     for ac_exec_ext in '' $ac_executable_extensions; do
13896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13897     ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13899     break 2
13900   fi
13901 done
13902   done
13903 IFS=$as_save_IFS
13904
13905 fi
13906 fi
13907 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13908 if test -n "$GM2_FOR_TARGET"; then
13909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13910 $as_echo "$GM2_FOR_TARGET" >&6; }
13911 else
13912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13913 $as_echo "no" >&6; }
13914 fi
13915
13916
13917   done
13918 fi
13919
13920 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
13921   for ncn_progname in gm2; do
13922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13923 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13924     if test -x $with_build_time_tools/${ncn_progname}; then
13925       ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13926       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13927 $as_echo "yes" >&6; }
13928       break
13929     else
13930       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13931 $as_echo "no" >&6; }
13932     fi
13933   done
13934 fi
13935
13936 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
13937   for ncn_progname in gm2; do
13938     if test -n "$ncn_target_tool_prefix"; then
13939       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13940 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13942 $as_echo_n "checking for $ac_word... " >&6; }
13943 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13944   $as_echo_n "(cached) " >&6
13945 else
13946   if test -n "$GM2_FOR_TARGET"; then
13947   ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13948 else
13949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13950 for as_dir in $PATH
13951 do
13952   IFS=$as_save_IFS
13953   test -z "$as_dir" && as_dir=.
13954     for ac_exec_ext in '' $ac_executable_extensions; do
13955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13956     ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13958     break 2
13959   fi
13960 done
13961   done
13962 IFS=$as_save_IFS
13963
13964 fi
13965 fi
13966 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13967 if test -n "$GM2_FOR_TARGET"; then
13968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13969 $as_echo "$GM2_FOR_TARGET" >&6; }
13970 else
13971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13972 $as_echo "no" >&6; }
13973 fi
13974
13975
13976     fi
13977     if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
13978       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13979 set dummy ${ncn_progname}; ac_word=$2
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13981 $as_echo_n "checking for $ac_word... " >&6; }
13982 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13983   $as_echo_n "(cached) " >&6
13984 else
13985   if test -n "$GM2_FOR_TARGET"; then
13986   ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13987 else
13988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13989 for as_dir in $PATH
13990 do
13991   IFS=$as_save_IFS
13992   test -z "$as_dir" && as_dir=.
13993     for ac_exec_ext in '' $ac_executable_extensions; do
13994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13995     ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13997     break 2
13998   fi
13999 done
14000   done
14001 IFS=$as_save_IFS
14002
14003 fi
14004 fi
14005 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14006 if test -n "$GM2_FOR_TARGET"; then
14007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14008 $as_echo "$GM2_FOR_TARGET" >&6; }
14009 else
14010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14011 $as_echo "no" >&6; }
14012 fi
14013
14014
14015     fi
14016     test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14017   done
14018 fi
14019
14020 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14021   set dummy gm2
14022   if test $build = $target ; then
14023     GM2_FOR_TARGET="$2"
14024   else
14025     GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14026   fi
14027 else
14028   GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14029 fi
14030
14031
14032
14033 cat > conftest.c << \EOF
14034 #ifdef __GNUC__
14035   gcc_yay;
14036 #endif
14037 EOF
14038 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14039   have_gcc_for_target=yes
14040 else
14041   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14042   have_gcc_for_target=no
14043 fi
14044 rm conftest.c
14045
14046
14047
14048
14049 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14050   if test -n "$with_build_time_tools"; then
14051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14052 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
14053     if test -x $with_build_time_tools/ar; then
14054       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14055       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14056       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14057 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14058     else
14059       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14060 $as_echo "no" >&6; }
14061     fi
14062   elif test $build != $host && test $have_gcc_for_target = yes; then
14063     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14064     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14065     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14066   fi
14067 fi
14068 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14069   # Extract the first word of "ar", so it can be a program name with args.
14070 set dummy ar; ac_word=$2
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14072 $as_echo_n "checking for $ac_word... " >&6; }
14073 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14074   $as_echo_n "(cached) " >&6
14075 else
14076   case $AR_FOR_TARGET in
14077   [\\/]* | ?:[\\/]*)
14078   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14079   ;;
14080   *)
14081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14082 for as_dir in $gcc_cv_tool_dirs
14083 do
14084   IFS=$as_save_IFS
14085   test -z "$as_dir" && as_dir=.
14086     for ac_exec_ext in '' $ac_executable_extensions; do
14087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14088     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14090     break 2
14091   fi
14092 done
14093   done
14094 IFS=$as_save_IFS
14095
14096   ;;
14097 esac
14098 fi
14099 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14100 if test -n "$AR_FOR_TARGET"; then
14101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14102 $as_echo "$AR_FOR_TARGET" >&6; }
14103 else
14104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14105 $as_echo "no" >&6; }
14106 fi
14107
14108
14109 fi
14110 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14111
14112
14113 if test -n "$AR_FOR_TARGET"; then
14114   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14115 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14116   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14117 fi
14118
14119 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14120   for ncn_progname in ar; do
14121     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14122 set dummy ${ncn_progname}; ac_word=$2
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14124 $as_echo_n "checking for $ac_word... " >&6; }
14125 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14126   $as_echo_n "(cached) " >&6
14127 else
14128   if test -n "$AR_FOR_TARGET"; then
14129   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14130 else
14131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132 for as_dir in $PATH
14133 do
14134   IFS=$as_save_IFS
14135   test -z "$as_dir" && as_dir=.
14136     for ac_exec_ext in '' $ac_executable_extensions; do
14137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14138     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14140     break 2
14141   fi
14142 done
14143   done
14144 IFS=$as_save_IFS
14145
14146 fi
14147 fi
14148 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14149 if test -n "$AR_FOR_TARGET"; then
14150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14151 $as_echo "$AR_FOR_TARGET" >&6; }
14152 else
14153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14154 $as_echo "no" >&6; }
14155 fi
14156
14157
14158   done
14159 fi
14160
14161 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14162   for ncn_progname in ar; do
14163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14164 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14165     if test -x $with_build_time_tools/${ncn_progname}; then
14166       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14167       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14168 $as_echo "yes" >&6; }
14169       break
14170     else
14171       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14172 $as_echo "no" >&6; }
14173     fi
14174   done
14175 fi
14176
14177 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14178   for ncn_progname in ar; do
14179     if test -n "$ncn_target_tool_prefix"; then
14180       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14181 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14183 $as_echo_n "checking for $ac_word... " >&6; }
14184 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14185   $as_echo_n "(cached) " >&6
14186 else
14187   if test -n "$AR_FOR_TARGET"; then
14188   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14189 else
14190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191 for as_dir in $PATH
14192 do
14193   IFS=$as_save_IFS
14194   test -z "$as_dir" && as_dir=.
14195     for ac_exec_ext in '' $ac_executable_extensions; do
14196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14197     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14199     break 2
14200   fi
14201 done
14202   done
14203 IFS=$as_save_IFS
14204
14205 fi
14206 fi
14207 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14208 if test -n "$AR_FOR_TARGET"; then
14209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14210 $as_echo "$AR_FOR_TARGET" >&6; }
14211 else
14212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213 $as_echo "no" >&6; }
14214 fi
14215
14216
14217     fi
14218     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14219       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14220 set dummy ${ncn_progname}; ac_word=$2
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14222 $as_echo_n "checking for $ac_word... " >&6; }
14223 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14224   $as_echo_n "(cached) " >&6
14225 else
14226   if test -n "$AR_FOR_TARGET"; then
14227   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14228 else
14229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14230 for as_dir in $PATH
14231 do
14232   IFS=$as_save_IFS
14233   test -z "$as_dir" && as_dir=.
14234     for ac_exec_ext in '' $ac_executable_extensions; do
14235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14236     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14238     break 2
14239   fi
14240 done
14241   done
14242 IFS=$as_save_IFS
14243
14244 fi
14245 fi
14246 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14247 if test -n "$AR_FOR_TARGET"; then
14248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14249 $as_echo "$AR_FOR_TARGET" >&6; }
14250 else
14251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14252 $as_echo "no" >&6; }
14253 fi
14254
14255
14256     fi
14257     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14258   done
14259 fi
14260
14261 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14262   set dummy ar
14263   if test $build = $target ; then
14264     AR_FOR_TARGET="$2"
14265   else
14266     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14267   fi
14268 else
14269   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14270 fi
14271
14272 else
14273   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14274 fi
14275
14276
14277
14278
14279 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14280   if test -n "$with_build_time_tools"; then
14281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14282 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14283     if test -x $with_build_time_tools/as; then
14284       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14285       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14286       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14287 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14288     else
14289       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14290 $as_echo "no" >&6; }
14291     fi
14292   elif test $build != $host && test $have_gcc_for_target = yes; then
14293     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14294     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14295     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14296   fi
14297 fi
14298 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14299   # Extract the first word of "as", so it can be a program name with args.
14300 set dummy as; ac_word=$2
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14302 $as_echo_n "checking for $ac_word... " >&6; }
14303 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14304   $as_echo_n "(cached) " >&6
14305 else
14306   case $AS_FOR_TARGET in
14307   [\\/]* | ?:[\\/]*)
14308   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14309   ;;
14310   *)
14311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14312 for as_dir in $gcc_cv_tool_dirs
14313 do
14314   IFS=$as_save_IFS
14315   test -z "$as_dir" && as_dir=.
14316     for ac_exec_ext in '' $ac_executable_extensions; do
14317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14318     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14320     break 2
14321   fi
14322 done
14323   done
14324 IFS=$as_save_IFS
14325
14326   ;;
14327 esac
14328 fi
14329 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14330 if test -n "$AS_FOR_TARGET"; then
14331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14332 $as_echo "$AS_FOR_TARGET" >&6; }
14333 else
14334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14335 $as_echo "no" >&6; }
14336 fi
14337
14338
14339 fi
14340 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14341
14342
14343 if test -n "$AS_FOR_TARGET"; then
14344   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14345 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14346   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14347 fi
14348
14349 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14350   for ncn_progname in as; do
14351     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14352 set dummy ${ncn_progname}; ac_word=$2
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14354 $as_echo_n "checking for $ac_word... " >&6; }
14355 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14356   $as_echo_n "(cached) " >&6
14357 else
14358   if test -n "$AS_FOR_TARGET"; then
14359   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14360 else
14361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14362 for as_dir in $PATH
14363 do
14364   IFS=$as_save_IFS
14365   test -z "$as_dir" && as_dir=.
14366     for ac_exec_ext in '' $ac_executable_extensions; do
14367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14368     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14370     break 2
14371   fi
14372 done
14373   done
14374 IFS=$as_save_IFS
14375
14376 fi
14377 fi
14378 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14379 if test -n "$AS_FOR_TARGET"; then
14380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14381 $as_echo "$AS_FOR_TARGET" >&6; }
14382 else
14383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14384 $as_echo "no" >&6; }
14385 fi
14386
14387
14388   done
14389 fi
14390
14391 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14392   for ncn_progname in as; do
14393     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14394 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14395     if test -x $with_build_time_tools/${ncn_progname}; then
14396       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14397       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14398 $as_echo "yes" >&6; }
14399       break
14400     else
14401       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14402 $as_echo "no" >&6; }
14403     fi
14404   done
14405 fi
14406
14407 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14408   for ncn_progname in as; do
14409     if test -n "$ncn_target_tool_prefix"; then
14410       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14411 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14413 $as_echo_n "checking for $ac_word... " >&6; }
14414 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14415   $as_echo_n "(cached) " >&6
14416 else
14417   if test -n "$AS_FOR_TARGET"; then
14418   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14419 else
14420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14421 for as_dir in $PATH
14422 do
14423   IFS=$as_save_IFS
14424   test -z "$as_dir" && as_dir=.
14425     for ac_exec_ext in '' $ac_executable_extensions; do
14426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14427     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14429     break 2
14430   fi
14431 done
14432   done
14433 IFS=$as_save_IFS
14434
14435 fi
14436 fi
14437 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14438 if test -n "$AS_FOR_TARGET"; then
14439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14440 $as_echo "$AS_FOR_TARGET" >&6; }
14441 else
14442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14443 $as_echo "no" >&6; }
14444 fi
14445
14446
14447     fi
14448     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14449       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14450 set dummy ${ncn_progname}; ac_word=$2
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14452 $as_echo_n "checking for $ac_word... " >&6; }
14453 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14454   $as_echo_n "(cached) " >&6
14455 else
14456   if test -n "$AS_FOR_TARGET"; then
14457   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14458 else
14459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14460 for as_dir in $PATH
14461 do
14462   IFS=$as_save_IFS
14463   test -z "$as_dir" && as_dir=.
14464     for ac_exec_ext in '' $ac_executable_extensions; do
14465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14466     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14468     break 2
14469   fi
14470 done
14471   done
14472 IFS=$as_save_IFS
14473
14474 fi
14475 fi
14476 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14477 if test -n "$AS_FOR_TARGET"; then
14478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14479 $as_echo "$AS_FOR_TARGET" >&6; }
14480 else
14481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14482 $as_echo "no" >&6; }
14483 fi
14484
14485
14486     fi
14487     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14488   done
14489 fi
14490
14491 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14492   set dummy as
14493   if test $build = $target ; then
14494     AS_FOR_TARGET="$2"
14495   else
14496     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14497   fi
14498 else
14499   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14500 fi
14501
14502 else
14503   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14504 fi
14505
14506
14507
14508
14509 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14510   if test -n "$with_build_time_tools"; then
14511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14512 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14513     if test -x $with_build_time_tools/dlltool; then
14514       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14515       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14516       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14517 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14518     else
14519       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14520 $as_echo "no" >&6; }
14521     fi
14522   elif test $build != $host && test $have_gcc_for_target = yes; then
14523     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14524     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14525     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14526   fi
14527 fi
14528 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14529   # Extract the first word of "dlltool", so it can be a program name with args.
14530 set dummy dlltool; ac_word=$2
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14532 $as_echo_n "checking for $ac_word... " >&6; }
14533 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14534   $as_echo_n "(cached) " >&6
14535 else
14536   case $DLLTOOL_FOR_TARGET in
14537   [\\/]* | ?:[\\/]*)
14538   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14539   ;;
14540   *)
14541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14542 for as_dir in $gcc_cv_tool_dirs
14543 do
14544   IFS=$as_save_IFS
14545   test -z "$as_dir" && as_dir=.
14546     for ac_exec_ext in '' $ac_executable_extensions; do
14547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14548     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14550     break 2
14551   fi
14552 done
14553   done
14554 IFS=$as_save_IFS
14555
14556   ;;
14557 esac
14558 fi
14559 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14560 if test -n "$DLLTOOL_FOR_TARGET"; then
14561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14562 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14563 else
14564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14565 $as_echo "no" >&6; }
14566 fi
14567
14568
14569 fi
14570 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14571
14572
14573 if test -n "$DLLTOOL_FOR_TARGET"; then
14574   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14575 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14576   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14577 fi
14578
14579 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14580   for ncn_progname in dlltool; do
14581     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14582 set dummy ${ncn_progname}; ac_word=$2
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14584 $as_echo_n "checking for $ac_word... " >&6; }
14585 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14586   $as_echo_n "(cached) " >&6
14587 else
14588   if test -n "$DLLTOOL_FOR_TARGET"; then
14589   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14590 else
14591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14592 for as_dir in $PATH
14593 do
14594   IFS=$as_save_IFS
14595   test -z "$as_dir" && as_dir=.
14596     for ac_exec_ext in '' $ac_executable_extensions; do
14597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14598     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14600     break 2
14601   fi
14602 done
14603   done
14604 IFS=$as_save_IFS
14605
14606 fi
14607 fi
14608 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14609 if test -n "$DLLTOOL_FOR_TARGET"; then
14610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14611 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14612 else
14613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14614 $as_echo "no" >&6; }
14615 fi
14616
14617
14618   done
14619 fi
14620
14621 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14622   for ncn_progname in dlltool; do
14623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14624 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14625     if test -x $with_build_time_tools/${ncn_progname}; then
14626       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14627       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14628 $as_echo "yes" >&6; }
14629       break
14630     else
14631       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14632 $as_echo "no" >&6; }
14633     fi
14634   done
14635 fi
14636
14637 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14638   for ncn_progname in dlltool; do
14639     if test -n "$ncn_target_tool_prefix"; then
14640       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14641 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14643 $as_echo_n "checking for $ac_word... " >&6; }
14644 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14645   $as_echo_n "(cached) " >&6
14646 else
14647   if test -n "$DLLTOOL_FOR_TARGET"; then
14648   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14649 else
14650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14651 for as_dir in $PATH
14652 do
14653   IFS=$as_save_IFS
14654   test -z "$as_dir" && as_dir=.
14655     for ac_exec_ext in '' $ac_executable_extensions; do
14656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14657     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14659     break 2
14660   fi
14661 done
14662   done
14663 IFS=$as_save_IFS
14664
14665 fi
14666 fi
14667 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14668 if test -n "$DLLTOOL_FOR_TARGET"; then
14669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14670 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14671 else
14672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14673 $as_echo "no" >&6; }
14674 fi
14675
14676
14677     fi
14678     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14679       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14680 set dummy ${ncn_progname}; ac_word=$2
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14682 $as_echo_n "checking for $ac_word... " >&6; }
14683 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14684   $as_echo_n "(cached) " >&6
14685 else
14686   if test -n "$DLLTOOL_FOR_TARGET"; then
14687   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14688 else
14689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14690 for as_dir in $PATH
14691 do
14692   IFS=$as_save_IFS
14693   test -z "$as_dir" && as_dir=.
14694     for ac_exec_ext in '' $ac_executable_extensions; do
14695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14696     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14698     break 2
14699   fi
14700 done
14701   done
14702 IFS=$as_save_IFS
14703
14704 fi
14705 fi
14706 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14707 if test -n "$DLLTOOL_FOR_TARGET"; then
14708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14709 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14710 else
14711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14712 $as_echo "no" >&6; }
14713 fi
14714
14715
14716     fi
14717     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14718   done
14719 fi
14720
14721 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14722   set dummy dlltool
14723   if test $build = $target ; then
14724     DLLTOOL_FOR_TARGET="$2"
14725   else
14726     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14727   fi
14728 else
14729   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14730 fi
14731
14732 else
14733   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14734 fi
14735
14736
14737
14738
14739 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14740   if test -n "$with_build_time_tools"; then
14741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14742 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14743     if test -x $with_build_time_tools/dsymutil; then
14744       DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14745       ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14746       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14747 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14748     else
14749       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14750 $as_echo "no" >&6; }
14751     fi
14752   elif test $build != $host && test $have_gcc_for_target = yes; then
14753     DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14754     test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14755     test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14756   fi
14757 fi
14758 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14759   # Extract the first word of "dsymutil", so it can be a program name with args.
14760 set dummy dsymutil; ac_word=$2
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14762 $as_echo_n "checking for $ac_word... " >&6; }
14763 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14764   $as_echo_n "(cached) " >&6
14765 else
14766   case $DSYMUTIL_FOR_TARGET in
14767   [\\/]* | ?:[\\/]*)
14768   ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14769   ;;
14770   *)
14771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14772 for as_dir in $gcc_cv_tool_dirs
14773 do
14774   IFS=$as_save_IFS
14775   test -z "$as_dir" && as_dir=.
14776     for ac_exec_ext in '' $ac_executable_extensions; do
14777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14778     ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14780     break 2
14781   fi
14782 done
14783   done
14784 IFS=$as_save_IFS
14785
14786   ;;
14787 esac
14788 fi
14789 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14790 if test -n "$DSYMUTIL_FOR_TARGET"; then
14791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14792 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14793 else
14794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14795 $as_echo "no" >&6; }
14796 fi
14797
14798
14799 fi
14800 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14801
14802
14803 if test -n "$DSYMUTIL_FOR_TARGET"; then
14804   ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14805 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14806   DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14807 fi
14808
14809 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14810   for ncn_progname in dsymutil; do
14811     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14812 set dummy ${ncn_progname}; ac_word=$2
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14814 $as_echo_n "checking for $ac_word... " >&6; }
14815 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14816   $as_echo_n "(cached) " >&6
14817 else
14818   if test -n "$DSYMUTIL_FOR_TARGET"; then
14819   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14820 else
14821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14822 for as_dir in $PATH
14823 do
14824   IFS=$as_save_IFS
14825   test -z "$as_dir" && as_dir=.
14826     for ac_exec_ext in '' $ac_executable_extensions; do
14827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14828     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14830     break 2
14831   fi
14832 done
14833   done
14834 IFS=$as_save_IFS
14835
14836 fi
14837 fi
14838 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14839 if test -n "$DSYMUTIL_FOR_TARGET"; then
14840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14841 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14842 else
14843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14844 $as_echo "no" >&6; }
14845 fi
14846
14847
14848   done
14849 fi
14850
14851 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14852   for ncn_progname in dsymutil; do
14853     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14854 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14855     if test -x $with_build_time_tools/${ncn_progname}; then
14856       ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14857       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14858 $as_echo "yes" >&6; }
14859       break
14860     else
14861       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14862 $as_echo "no" >&6; }
14863     fi
14864   done
14865 fi
14866
14867 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14868   for ncn_progname in dsymutil; do
14869     if test -n "$ncn_target_tool_prefix"; then
14870       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14871 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14873 $as_echo_n "checking for $ac_word... " >&6; }
14874 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14875   $as_echo_n "(cached) " >&6
14876 else
14877   if test -n "$DSYMUTIL_FOR_TARGET"; then
14878   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14879 else
14880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14881 for as_dir in $PATH
14882 do
14883   IFS=$as_save_IFS
14884   test -z "$as_dir" && as_dir=.
14885     for ac_exec_ext in '' $ac_executable_extensions; do
14886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14887     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14889     break 2
14890   fi
14891 done
14892   done
14893 IFS=$as_save_IFS
14894
14895 fi
14896 fi
14897 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14898 if test -n "$DSYMUTIL_FOR_TARGET"; then
14899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14900 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14901 else
14902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14903 $as_echo "no" >&6; }
14904 fi
14905
14906
14907     fi
14908     if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14909       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14910 set dummy ${ncn_progname}; ac_word=$2
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14912 $as_echo_n "checking for $ac_word... " >&6; }
14913 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14914   $as_echo_n "(cached) " >&6
14915 else
14916   if test -n "$DSYMUTIL_FOR_TARGET"; then
14917   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14918 else
14919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14920 for as_dir in $PATH
14921 do
14922   IFS=$as_save_IFS
14923   test -z "$as_dir" && as_dir=.
14924     for ac_exec_ext in '' $ac_executable_extensions; do
14925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14926     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14928     break 2
14929   fi
14930 done
14931   done
14932 IFS=$as_save_IFS
14933
14934 fi
14935 fi
14936 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14937 if test -n "$DSYMUTIL_FOR_TARGET"; then
14938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14939 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14940 else
14941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14942 $as_echo "no" >&6; }
14943 fi
14944
14945
14946     fi
14947     test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14948   done
14949 fi
14950
14951 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14952   set dummy dsymutil
14953   if test $build = $target ; then
14954     DSYMUTIL_FOR_TARGET="$2"
14955   else
14956     DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14957   fi
14958 else
14959   DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14960 fi
14961
14962 else
14963   DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14964 fi
14965
14966
14967
14968
14969 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14970   if test -n "$with_build_time_tools"; then
14971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14972 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14973     if test -x $with_build_time_tools/ld; then
14974       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14975       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14976       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14977 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14978     else
14979       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14980 $as_echo "no" >&6; }
14981     fi
14982   elif test $build != $host && test $have_gcc_for_target = yes; then
14983     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14984     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14985     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14986   fi
14987 fi
14988 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14989   # Extract the first word of "ld", so it can be a program name with args.
14990 set dummy ld; ac_word=$2
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14992 $as_echo_n "checking for $ac_word... " >&6; }
14993 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14994   $as_echo_n "(cached) " >&6
14995 else
14996   case $LD_FOR_TARGET in
14997   [\\/]* | ?:[\\/]*)
14998   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14999   ;;
15000   *)
15001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15002 for as_dir in $gcc_cv_tool_dirs
15003 do
15004   IFS=$as_save_IFS
15005   test -z "$as_dir" && as_dir=.
15006     for ac_exec_ext in '' $ac_executable_extensions; do
15007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15008     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15010     break 2
15011   fi
15012 done
15013   done
15014 IFS=$as_save_IFS
15015
15016   ;;
15017 esac
15018 fi
15019 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15020 if test -n "$LD_FOR_TARGET"; then
15021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15022 $as_echo "$LD_FOR_TARGET" >&6; }
15023 else
15024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15025 $as_echo "no" >&6; }
15026 fi
15027
15028
15029 fi
15030 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15031
15032
15033 if test -n "$LD_FOR_TARGET"; then
15034   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15035 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15036   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15037 fi
15038
15039 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15040   for ncn_progname in ld; do
15041     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15042 set dummy ${ncn_progname}; ac_word=$2
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15044 $as_echo_n "checking for $ac_word... " >&6; }
15045 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15046   $as_echo_n "(cached) " >&6
15047 else
15048   if test -n "$LD_FOR_TARGET"; then
15049   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15050 else
15051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15052 for as_dir in $PATH
15053 do
15054   IFS=$as_save_IFS
15055   test -z "$as_dir" && as_dir=.
15056     for ac_exec_ext in '' $ac_executable_extensions; do
15057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15058     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15060     break 2
15061   fi
15062 done
15063   done
15064 IFS=$as_save_IFS
15065
15066 fi
15067 fi
15068 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15069 if test -n "$LD_FOR_TARGET"; then
15070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15071 $as_echo "$LD_FOR_TARGET" >&6; }
15072 else
15073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15074 $as_echo "no" >&6; }
15075 fi
15076
15077
15078   done
15079 fi
15080
15081 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15082   for ncn_progname in ld; do
15083     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15084 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15085     if test -x $with_build_time_tools/${ncn_progname}; then
15086       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15087       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15088 $as_echo "yes" >&6; }
15089       break
15090     else
15091       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15092 $as_echo "no" >&6; }
15093     fi
15094   done
15095 fi
15096
15097 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15098   for ncn_progname in ld; do
15099     if test -n "$ncn_target_tool_prefix"; then
15100       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15101 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15103 $as_echo_n "checking for $ac_word... " >&6; }
15104 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15105   $as_echo_n "(cached) " >&6
15106 else
15107   if test -n "$LD_FOR_TARGET"; then
15108   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15109 else
15110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15111 for as_dir in $PATH
15112 do
15113   IFS=$as_save_IFS
15114   test -z "$as_dir" && as_dir=.
15115     for ac_exec_ext in '' $ac_executable_extensions; do
15116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15117     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15119     break 2
15120   fi
15121 done
15122   done
15123 IFS=$as_save_IFS
15124
15125 fi
15126 fi
15127 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15128 if test -n "$LD_FOR_TARGET"; then
15129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15130 $as_echo "$LD_FOR_TARGET" >&6; }
15131 else
15132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15133 $as_echo "no" >&6; }
15134 fi
15135
15136
15137     fi
15138     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15139       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15140 set dummy ${ncn_progname}; ac_word=$2
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15142 $as_echo_n "checking for $ac_word... " >&6; }
15143 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15144   $as_echo_n "(cached) " >&6
15145 else
15146   if test -n "$LD_FOR_TARGET"; then
15147   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15148 else
15149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15150 for as_dir in $PATH
15151 do
15152   IFS=$as_save_IFS
15153   test -z "$as_dir" && as_dir=.
15154     for ac_exec_ext in '' $ac_executable_extensions; do
15155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15156     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15158     break 2
15159   fi
15160 done
15161   done
15162 IFS=$as_save_IFS
15163
15164 fi
15165 fi
15166 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15167 if test -n "$LD_FOR_TARGET"; then
15168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15169 $as_echo "$LD_FOR_TARGET" >&6; }
15170 else
15171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15172 $as_echo "no" >&6; }
15173 fi
15174
15175
15176     fi
15177     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15178   done
15179 fi
15180
15181 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15182   set dummy ld
15183   if test $build = $target ; then
15184     LD_FOR_TARGET="$2"
15185   else
15186     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15187   fi
15188 else
15189   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15190 fi
15191
15192 else
15193   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15194 fi
15195
15196
15197
15198
15199 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15200   if test -n "$with_build_time_tools"; then
15201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15202 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15203     if test -x $with_build_time_tools/lipo; then
15204       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15205       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15206       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15207 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15208     else
15209       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15210 $as_echo "no" >&6; }
15211     fi
15212   elif test $build != $host && test $have_gcc_for_target = yes; then
15213     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15214     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15215     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15216   fi
15217 fi
15218 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15219   # Extract the first word of "lipo", so it can be a program name with args.
15220 set dummy lipo; ac_word=$2
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15222 $as_echo_n "checking for $ac_word... " >&6; }
15223 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15224   $as_echo_n "(cached) " >&6
15225 else
15226   case $LIPO_FOR_TARGET in
15227   [\\/]* | ?:[\\/]*)
15228   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15229   ;;
15230   *)
15231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15232 for as_dir in $gcc_cv_tool_dirs
15233 do
15234   IFS=$as_save_IFS
15235   test -z "$as_dir" && as_dir=.
15236     for ac_exec_ext in '' $ac_executable_extensions; do
15237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15238     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15240     break 2
15241   fi
15242 done
15243   done
15244 IFS=$as_save_IFS
15245
15246   ;;
15247 esac
15248 fi
15249 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15250 if test -n "$LIPO_FOR_TARGET"; then
15251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15252 $as_echo "$LIPO_FOR_TARGET" >&6; }
15253 else
15254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15255 $as_echo "no" >&6; }
15256 fi
15257
15258
15259 fi
15260 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15261
15262
15263 if test -n "$LIPO_FOR_TARGET"; then
15264   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15265 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15266   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15267 fi
15268
15269 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15270   for ncn_progname in lipo; do
15271     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15272 set dummy ${ncn_progname}; ac_word=$2
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15274 $as_echo_n "checking for $ac_word... " >&6; }
15275 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15276   $as_echo_n "(cached) " >&6
15277 else
15278   if test -n "$LIPO_FOR_TARGET"; then
15279   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15280 else
15281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15282 for as_dir in $PATH
15283 do
15284   IFS=$as_save_IFS
15285   test -z "$as_dir" && as_dir=.
15286     for ac_exec_ext in '' $ac_executable_extensions; do
15287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15288     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15290     break 2
15291   fi
15292 done
15293   done
15294 IFS=$as_save_IFS
15295
15296 fi
15297 fi
15298 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15299 if test -n "$LIPO_FOR_TARGET"; then
15300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15301 $as_echo "$LIPO_FOR_TARGET" >&6; }
15302 else
15303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15304 $as_echo "no" >&6; }
15305 fi
15306
15307
15308   done
15309 fi
15310
15311 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15312   for ncn_progname in lipo; do
15313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15314 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15315     if test -x $with_build_time_tools/${ncn_progname}; then
15316       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15317       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15318 $as_echo "yes" >&6; }
15319       break
15320     else
15321       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15322 $as_echo "no" >&6; }
15323     fi
15324   done
15325 fi
15326
15327 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15328   for ncn_progname in lipo; do
15329     if test -n "$ncn_target_tool_prefix"; then
15330       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15331 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15333 $as_echo_n "checking for $ac_word... " >&6; }
15334 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15335   $as_echo_n "(cached) " >&6
15336 else
15337   if test -n "$LIPO_FOR_TARGET"; then
15338   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15339 else
15340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15341 for as_dir in $PATH
15342 do
15343   IFS=$as_save_IFS
15344   test -z "$as_dir" && as_dir=.
15345     for ac_exec_ext in '' $ac_executable_extensions; do
15346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15347     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15349     break 2
15350   fi
15351 done
15352   done
15353 IFS=$as_save_IFS
15354
15355 fi
15356 fi
15357 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15358 if test -n "$LIPO_FOR_TARGET"; then
15359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15360 $as_echo "$LIPO_FOR_TARGET" >&6; }
15361 else
15362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15363 $as_echo "no" >&6; }
15364 fi
15365
15366
15367     fi
15368     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15369       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15370 set dummy ${ncn_progname}; ac_word=$2
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15372 $as_echo_n "checking for $ac_word... " >&6; }
15373 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15374   $as_echo_n "(cached) " >&6
15375 else
15376   if test -n "$LIPO_FOR_TARGET"; then
15377   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15378 else
15379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15380 for as_dir in $PATH
15381 do
15382   IFS=$as_save_IFS
15383   test -z "$as_dir" && as_dir=.
15384     for ac_exec_ext in '' $ac_executable_extensions; do
15385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15386     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15388     break 2
15389   fi
15390 done
15391   done
15392 IFS=$as_save_IFS
15393
15394 fi
15395 fi
15396 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15397 if test -n "$LIPO_FOR_TARGET"; then
15398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15399 $as_echo "$LIPO_FOR_TARGET" >&6; }
15400 else
15401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15402 $as_echo "no" >&6; }
15403 fi
15404
15405
15406     fi
15407     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15408   done
15409 fi
15410
15411 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15412   set dummy lipo
15413   if test $build = $target ; then
15414     LIPO_FOR_TARGET="$2"
15415   else
15416     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15417   fi
15418 else
15419   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15420 fi
15421
15422 else
15423   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15424 fi
15425
15426
15427
15428
15429 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15430   if test -n "$with_build_time_tools"; then
15431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15432 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15433     if test -x $with_build_time_tools/nm; then
15434       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15435       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15436       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15437 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15438     else
15439       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15440 $as_echo "no" >&6; }
15441     fi
15442   elif test $build != $host && test $have_gcc_for_target = yes; then
15443     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15444     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15445     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15446   fi
15447 fi
15448 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15449   # Extract the first word of "nm", so it can be a program name with args.
15450 set dummy nm; ac_word=$2
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15452 $as_echo_n "checking for $ac_word... " >&6; }
15453 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15454   $as_echo_n "(cached) " >&6
15455 else
15456   case $NM_FOR_TARGET in
15457   [\\/]* | ?:[\\/]*)
15458   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15459   ;;
15460   *)
15461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15462 for as_dir in $gcc_cv_tool_dirs
15463 do
15464   IFS=$as_save_IFS
15465   test -z "$as_dir" && as_dir=.
15466     for ac_exec_ext in '' $ac_executable_extensions; do
15467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15468     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15470     break 2
15471   fi
15472 done
15473   done
15474 IFS=$as_save_IFS
15475
15476   ;;
15477 esac
15478 fi
15479 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15480 if test -n "$NM_FOR_TARGET"; then
15481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15482 $as_echo "$NM_FOR_TARGET" >&6; }
15483 else
15484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15485 $as_echo "no" >&6; }
15486 fi
15487
15488
15489 fi
15490 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15491
15492
15493 if test -n "$NM_FOR_TARGET"; then
15494   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15495 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15496   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15497 fi
15498
15499 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15500   for ncn_progname in nm; do
15501     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15502 set dummy ${ncn_progname}; ac_word=$2
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15504 $as_echo_n "checking for $ac_word... " >&6; }
15505 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15506   $as_echo_n "(cached) " >&6
15507 else
15508   if test -n "$NM_FOR_TARGET"; then
15509   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15510 else
15511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15512 for as_dir in $PATH
15513 do
15514   IFS=$as_save_IFS
15515   test -z "$as_dir" && as_dir=.
15516     for ac_exec_ext in '' $ac_executable_extensions; do
15517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15518     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15520     break 2
15521   fi
15522 done
15523   done
15524 IFS=$as_save_IFS
15525
15526 fi
15527 fi
15528 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15529 if test -n "$NM_FOR_TARGET"; then
15530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15531 $as_echo "$NM_FOR_TARGET" >&6; }
15532 else
15533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15534 $as_echo "no" >&6; }
15535 fi
15536
15537
15538   done
15539 fi
15540
15541 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15542   for ncn_progname in nm; do
15543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15544 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15545     if test -x $with_build_time_tools/${ncn_progname}; then
15546       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15547       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15548 $as_echo "yes" >&6; }
15549       break
15550     else
15551       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15552 $as_echo "no" >&6; }
15553     fi
15554   done
15555 fi
15556
15557 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15558   for ncn_progname in nm; do
15559     if test -n "$ncn_target_tool_prefix"; then
15560       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15561 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15563 $as_echo_n "checking for $ac_word... " >&6; }
15564 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15565   $as_echo_n "(cached) " >&6
15566 else
15567   if test -n "$NM_FOR_TARGET"; then
15568   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15569 else
15570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15571 for as_dir in $PATH
15572 do
15573   IFS=$as_save_IFS
15574   test -z "$as_dir" && as_dir=.
15575     for ac_exec_ext in '' $ac_executable_extensions; do
15576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15577     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15579     break 2
15580   fi
15581 done
15582   done
15583 IFS=$as_save_IFS
15584
15585 fi
15586 fi
15587 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15588 if test -n "$NM_FOR_TARGET"; then
15589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15590 $as_echo "$NM_FOR_TARGET" >&6; }
15591 else
15592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15593 $as_echo "no" >&6; }
15594 fi
15595
15596
15597     fi
15598     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15599       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15600 set dummy ${ncn_progname}; ac_word=$2
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15602 $as_echo_n "checking for $ac_word... " >&6; }
15603 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15604   $as_echo_n "(cached) " >&6
15605 else
15606   if test -n "$NM_FOR_TARGET"; then
15607   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15608 else
15609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15610 for as_dir in $PATH
15611 do
15612   IFS=$as_save_IFS
15613   test -z "$as_dir" && as_dir=.
15614     for ac_exec_ext in '' $ac_executable_extensions; do
15615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15616     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15618     break 2
15619   fi
15620 done
15621   done
15622 IFS=$as_save_IFS
15623
15624 fi
15625 fi
15626 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15627 if test -n "$NM_FOR_TARGET"; then
15628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15629 $as_echo "$NM_FOR_TARGET" >&6; }
15630 else
15631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15632 $as_echo "no" >&6; }
15633 fi
15634
15635
15636     fi
15637     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15638   done
15639 fi
15640
15641 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15642   set dummy nm
15643   if test $build = $target ; then
15644     NM_FOR_TARGET="$2"
15645   else
15646     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15647   fi
15648 else
15649   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15650 fi
15651
15652 else
15653   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15654 fi
15655
15656
15657
15658
15659 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15660   if test -n "$with_build_time_tools"; then
15661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15662 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15663     if test -x $with_build_time_tools/objcopy; then
15664       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15665       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15666       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15667 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15668     else
15669       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15670 $as_echo "no" >&6; }
15671     fi
15672   elif test $build != $host && test $have_gcc_for_target = yes; then
15673     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15674     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15675     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15676   fi
15677 fi
15678 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15679   # Extract the first word of "objcopy", so it can be a program name with args.
15680 set dummy objcopy; ac_word=$2
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15682 $as_echo_n "checking for $ac_word... " >&6; }
15683 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15684   $as_echo_n "(cached) " >&6
15685 else
15686   case $OBJCOPY_FOR_TARGET in
15687   [\\/]* | ?:[\\/]*)
15688   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15689   ;;
15690   *)
15691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15692 for as_dir in $gcc_cv_tool_dirs
15693 do
15694   IFS=$as_save_IFS
15695   test -z "$as_dir" && as_dir=.
15696     for ac_exec_ext in '' $ac_executable_extensions; do
15697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15698     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15700     break 2
15701   fi
15702 done
15703   done
15704 IFS=$as_save_IFS
15705
15706   ;;
15707 esac
15708 fi
15709 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15710 if test -n "$OBJCOPY_FOR_TARGET"; then
15711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15712 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15713 else
15714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15715 $as_echo "no" >&6; }
15716 fi
15717
15718
15719 fi
15720 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15721
15722
15723 if test -n "$OBJCOPY_FOR_TARGET"; then
15724   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15725 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15726   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15727 fi
15728
15729 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15730   for ncn_progname in objcopy; do
15731     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15732 set dummy ${ncn_progname}; ac_word=$2
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15734 $as_echo_n "checking for $ac_word... " >&6; }
15735 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15736   $as_echo_n "(cached) " >&6
15737 else
15738   if test -n "$OBJCOPY_FOR_TARGET"; then
15739   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15740 else
15741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15742 for as_dir in $PATH
15743 do
15744   IFS=$as_save_IFS
15745   test -z "$as_dir" && as_dir=.
15746     for ac_exec_ext in '' $ac_executable_extensions; do
15747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15748     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15750     break 2
15751   fi
15752 done
15753   done
15754 IFS=$as_save_IFS
15755
15756 fi
15757 fi
15758 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15759 if test -n "$OBJCOPY_FOR_TARGET"; then
15760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15761 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15762 else
15763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15764 $as_echo "no" >&6; }
15765 fi
15766
15767
15768   done
15769 fi
15770
15771 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15772   for ncn_progname in objcopy; do
15773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15774 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15775     if test -x $with_build_time_tools/${ncn_progname}; then
15776       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15777       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15778 $as_echo "yes" >&6; }
15779       break
15780     else
15781       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15782 $as_echo "no" >&6; }
15783     fi
15784   done
15785 fi
15786
15787 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15788   for ncn_progname in objcopy; do
15789     if test -n "$ncn_target_tool_prefix"; then
15790       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15791 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15793 $as_echo_n "checking for $ac_word... " >&6; }
15794 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15795   $as_echo_n "(cached) " >&6
15796 else
15797   if test -n "$OBJCOPY_FOR_TARGET"; then
15798   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15799 else
15800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15801 for as_dir in $PATH
15802 do
15803   IFS=$as_save_IFS
15804   test -z "$as_dir" && as_dir=.
15805     for ac_exec_ext in '' $ac_executable_extensions; do
15806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15807     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15809     break 2
15810   fi
15811 done
15812   done
15813 IFS=$as_save_IFS
15814
15815 fi
15816 fi
15817 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15818 if test -n "$OBJCOPY_FOR_TARGET"; then
15819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15820 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15821 else
15822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15823 $as_echo "no" >&6; }
15824 fi
15825
15826
15827     fi
15828     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15829       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15830 set dummy ${ncn_progname}; ac_word=$2
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15832 $as_echo_n "checking for $ac_word... " >&6; }
15833 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15834   $as_echo_n "(cached) " >&6
15835 else
15836   if test -n "$OBJCOPY_FOR_TARGET"; then
15837   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15838 else
15839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15840 for as_dir in $PATH
15841 do
15842   IFS=$as_save_IFS
15843   test -z "$as_dir" && as_dir=.
15844     for ac_exec_ext in '' $ac_executable_extensions; do
15845   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15846     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15848     break 2
15849   fi
15850 done
15851   done
15852 IFS=$as_save_IFS
15853
15854 fi
15855 fi
15856 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15857 if test -n "$OBJCOPY_FOR_TARGET"; then
15858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15859 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15860 else
15861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15862 $as_echo "no" >&6; }
15863 fi
15864
15865
15866     fi
15867     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15868   done
15869 fi
15870
15871 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15872   set dummy objcopy
15873   if test $build = $target ; then
15874     OBJCOPY_FOR_TARGET="$2"
15875   else
15876     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15877   fi
15878 else
15879   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15880 fi
15881
15882 else
15883   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15884 fi
15885
15886
15887
15888
15889 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15890   if test -n "$with_build_time_tools"; then
15891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15892 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15893     if test -x $with_build_time_tools/objdump; then
15894       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15895       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15896       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15897 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15898     else
15899       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15900 $as_echo "no" >&6; }
15901     fi
15902   elif test $build != $host && test $have_gcc_for_target = yes; then
15903     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15904     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15905     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15906   fi
15907 fi
15908 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15909   # Extract the first word of "objdump", so it can be a program name with args.
15910 set dummy objdump; ac_word=$2
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15912 $as_echo_n "checking for $ac_word... " >&6; }
15913 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15914   $as_echo_n "(cached) " >&6
15915 else
15916   case $OBJDUMP_FOR_TARGET in
15917   [\\/]* | ?:[\\/]*)
15918   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15919   ;;
15920   *)
15921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15922 for as_dir in $gcc_cv_tool_dirs
15923 do
15924   IFS=$as_save_IFS
15925   test -z "$as_dir" && as_dir=.
15926     for ac_exec_ext in '' $ac_executable_extensions; do
15927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15928     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15930     break 2
15931   fi
15932 done
15933   done
15934 IFS=$as_save_IFS
15935
15936   ;;
15937 esac
15938 fi
15939 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15940 if test -n "$OBJDUMP_FOR_TARGET"; then
15941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15942 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15943 else
15944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15945 $as_echo "no" >&6; }
15946 fi
15947
15948
15949 fi
15950 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15951
15952
15953 if test -n "$OBJDUMP_FOR_TARGET"; then
15954   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15955 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15956   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15957 fi
15958
15959 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15960   for ncn_progname in objdump; do
15961     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15962 set dummy ${ncn_progname}; ac_word=$2
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15964 $as_echo_n "checking for $ac_word... " >&6; }
15965 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15966   $as_echo_n "(cached) " >&6
15967 else
15968   if test -n "$OBJDUMP_FOR_TARGET"; then
15969   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15970 else
15971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15972 for as_dir in $PATH
15973 do
15974   IFS=$as_save_IFS
15975   test -z "$as_dir" && as_dir=.
15976     for ac_exec_ext in '' $ac_executable_extensions; do
15977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15978     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15980     break 2
15981   fi
15982 done
15983   done
15984 IFS=$as_save_IFS
15985
15986 fi
15987 fi
15988 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15989 if test -n "$OBJDUMP_FOR_TARGET"; then
15990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15991 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15992 else
15993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15994 $as_echo "no" >&6; }
15995 fi
15996
15997
15998   done
15999 fi
16000
16001 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16002   for ncn_progname in objdump; do
16003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16004 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16005     if test -x $with_build_time_tools/${ncn_progname}; then
16006       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16007       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16008 $as_echo "yes" >&6; }
16009       break
16010     else
16011       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16012 $as_echo "no" >&6; }
16013     fi
16014   done
16015 fi
16016
16017 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16018   for ncn_progname in objdump; do
16019     if test -n "$ncn_target_tool_prefix"; then
16020       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16021 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16023 $as_echo_n "checking for $ac_word... " >&6; }
16024 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16025   $as_echo_n "(cached) " >&6
16026 else
16027   if test -n "$OBJDUMP_FOR_TARGET"; then
16028   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16029 else
16030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16031 for as_dir in $PATH
16032 do
16033   IFS=$as_save_IFS
16034   test -z "$as_dir" && as_dir=.
16035     for ac_exec_ext in '' $ac_executable_extensions; do
16036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16037     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16039     break 2
16040   fi
16041 done
16042   done
16043 IFS=$as_save_IFS
16044
16045 fi
16046 fi
16047 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16048 if test -n "$OBJDUMP_FOR_TARGET"; then
16049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16050 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16051 else
16052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16053 $as_echo "no" >&6; }
16054 fi
16055
16056
16057     fi
16058     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16059       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16060 set dummy ${ncn_progname}; ac_word=$2
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16062 $as_echo_n "checking for $ac_word... " >&6; }
16063 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16064   $as_echo_n "(cached) " >&6
16065 else
16066   if test -n "$OBJDUMP_FOR_TARGET"; then
16067   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16068 else
16069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16070 for as_dir in $PATH
16071 do
16072   IFS=$as_save_IFS
16073   test -z "$as_dir" && as_dir=.
16074     for ac_exec_ext in '' $ac_executable_extensions; do
16075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16076     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16078     break 2
16079   fi
16080 done
16081   done
16082 IFS=$as_save_IFS
16083
16084 fi
16085 fi
16086 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16087 if test -n "$OBJDUMP_FOR_TARGET"; then
16088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16089 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16090 else
16091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16092 $as_echo "no" >&6; }
16093 fi
16094
16095
16096     fi
16097     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16098   done
16099 fi
16100
16101 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16102   set dummy objdump
16103   if test $build = $target ; then
16104     OBJDUMP_FOR_TARGET="$2"
16105   else
16106     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16107   fi
16108 else
16109   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16110 fi
16111
16112 else
16113   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16114 fi
16115
16116
16117
16118
16119 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16120   if test -n "$with_build_time_tools"; then
16121     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16122 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16123     if test -x $with_build_time_tools/otool; then
16124       OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16125       ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16126       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16127 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16128     else
16129       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16130 $as_echo "no" >&6; }
16131     fi
16132   elif test $build != $host && test $have_gcc_for_target = yes; then
16133     OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16134     test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16135     test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16136   fi
16137 fi
16138 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16139   # Extract the first word of "otool", so it can be a program name with args.
16140 set dummy otool; ac_word=$2
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16142 $as_echo_n "checking for $ac_word... " >&6; }
16143 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16144   $as_echo_n "(cached) " >&6
16145 else
16146   case $OTOOL_FOR_TARGET in
16147   [\\/]* | ?:[\\/]*)
16148   ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16149   ;;
16150   *)
16151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16152 for as_dir in $gcc_cv_tool_dirs
16153 do
16154   IFS=$as_save_IFS
16155   test -z "$as_dir" && as_dir=.
16156     for ac_exec_ext in '' $ac_executable_extensions; do
16157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16158     ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16160     break 2
16161   fi
16162 done
16163   done
16164 IFS=$as_save_IFS
16165
16166   ;;
16167 esac
16168 fi
16169 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16170 if test -n "$OTOOL_FOR_TARGET"; then
16171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16172 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16173 else
16174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16175 $as_echo "no" >&6; }
16176 fi
16177
16178
16179 fi
16180 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16181
16182
16183 if test -n "$OTOOL_FOR_TARGET"; then
16184   ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16185 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16186   OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16187 fi
16188
16189 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16190   for ncn_progname in otool; do
16191     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16192 set dummy ${ncn_progname}; ac_word=$2
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16194 $as_echo_n "checking for $ac_word... " >&6; }
16195 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16196   $as_echo_n "(cached) " >&6
16197 else
16198   if test -n "$OTOOL_FOR_TARGET"; then
16199   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16200 else
16201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16202 for as_dir in $PATH
16203 do
16204   IFS=$as_save_IFS
16205   test -z "$as_dir" && as_dir=.
16206     for ac_exec_ext in '' $ac_executable_extensions; do
16207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16208     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16210     break 2
16211   fi
16212 done
16213   done
16214 IFS=$as_save_IFS
16215
16216 fi
16217 fi
16218 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16219 if test -n "$OTOOL_FOR_TARGET"; then
16220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16221 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16222 else
16223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16224 $as_echo "no" >&6; }
16225 fi
16226
16227
16228   done
16229 fi
16230
16231 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16232   for ncn_progname in otool; do
16233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16234 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16235     if test -x $with_build_time_tools/${ncn_progname}; then
16236       ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16237       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16238 $as_echo "yes" >&6; }
16239       break
16240     else
16241       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16242 $as_echo "no" >&6; }
16243     fi
16244   done
16245 fi
16246
16247 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16248   for ncn_progname in otool; do
16249     if test -n "$ncn_target_tool_prefix"; then
16250       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16251 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16253 $as_echo_n "checking for $ac_word... " >&6; }
16254 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16255   $as_echo_n "(cached) " >&6
16256 else
16257   if test -n "$OTOOL_FOR_TARGET"; then
16258   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16259 else
16260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16261 for as_dir in $PATH
16262 do
16263   IFS=$as_save_IFS
16264   test -z "$as_dir" && as_dir=.
16265     for ac_exec_ext in '' $ac_executable_extensions; do
16266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16267     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16269     break 2
16270   fi
16271 done
16272   done
16273 IFS=$as_save_IFS
16274
16275 fi
16276 fi
16277 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16278 if test -n "$OTOOL_FOR_TARGET"; then
16279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16280 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16281 else
16282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16283 $as_echo "no" >&6; }
16284 fi
16285
16286
16287     fi
16288     if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16289       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16290 set dummy ${ncn_progname}; ac_word=$2
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16292 $as_echo_n "checking for $ac_word... " >&6; }
16293 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16294   $as_echo_n "(cached) " >&6
16295 else
16296   if test -n "$OTOOL_FOR_TARGET"; then
16297   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16298 else
16299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16300 for as_dir in $PATH
16301 do
16302   IFS=$as_save_IFS
16303   test -z "$as_dir" && as_dir=.
16304     for ac_exec_ext in '' $ac_executable_extensions; do
16305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16306     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16308     break 2
16309   fi
16310 done
16311   done
16312 IFS=$as_save_IFS
16313
16314 fi
16315 fi
16316 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16317 if test -n "$OTOOL_FOR_TARGET"; then
16318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16319 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16320 else
16321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16322 $as_echo "no" >&6; }
16323 fi
16324
16325
16326     fi
16327     test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16328   done
16329 fi
16330
16331 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16332   set dummy otool
16333   if test $build = $target ; then
16334     OTOOL_FOR_TARGET="$2"
16335   else
16336     OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16337   fi
16338 else
16339   OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16340 fi
16341
16342 else
16343   OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16344 fi
16345
16346
16347
16348
16349 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16350   if test -n "$with_build_time_tools"; then
16351     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16352 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16353     if test -x $with_build_time_tools/ranlib; then
16354       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16355       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16356       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16357 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16358     else
16359       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16360 $as_echo "no" >&6; }
16361     fi
16362   elif test $build != $host && test $have_gcc_for_target = yes; then
16363     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16364     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16365     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16366   fi
16367 fi
16368 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16369   # Extract the first word of "ranlib", so it can be a program name with args.
16370 set dummy ranlib; ac_word=$2
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16372 $as_echo_n "checking for $ac_word... " >&6; }
16373 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16374   $as_echo_n "(cached) " >&6
16375 else
16376   case $RANLIB_FOR_TARGET in
16377   [\\/]* | ?:[\\/]*)
16378   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16379   ;;
16380   *)
16381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16382 for as_dir in $gcc_cv_tool_dirs
16383 do
16384   IFS=$as_save_IFS
16385   test -z "$as_dir" && as_dir=.
16386     for ac_exec_ext in '' $ac_executable_extensions; do
16387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16388     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16390     break 2
16391   fi
16392 done
16393   done
16394 IFS=$as_save_IFS
16395
16396   ;;
16397 esac
16398 fi
16399 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16400 if test -n "$RANLIB_FOR_TARGET"; then
16401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16402 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16403 else
16404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16405 $as_echo "no" >&6; }
16406 fi
16407
16408
16409 fi
16410 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16411
16412
16413 if test -n "$RANLIB_FOR_TARGET"; then
16414   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16415 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16416   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16417 fi
16418
16419 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16420   for ncn_progname in ranlib; do
16421     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16422 set dummy ${ncn_progname}; ac_word=$2
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16424 $as_echo_n "checking for $ac_word... " >&6; }
16425 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16426   $as_echo_n "(cached) " >&6
16427 else
16428   if test -n "$RANLIB_FOR_TARGET"; then
16429   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16430 else
16431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16432 for as_dir in $PATH
16433 do
16434   IFS=$as_save_IFS
16435   test -z "$as_dir" && as_dir=.
16436     for ac_exec_ext in '' $ac_executable_extensions; do
16437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16438     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16440     break 2
16441   fi
16442 done
16443   done
16444 IFS=$as_save_IFS
16445
16446 fi
16447 fi
16448 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16449 if test -n "$RANLIB_FOR_TARGET"; then
16450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16451 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16452 else
16453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16454 $as_echo "no" >&6; }
16455 fi
16456
16457
16458   done
16459 fi
16460
16461 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16462   for ncn_progname in ranlib; do
16463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16464 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16465     if test -x $with_build_time_tools/${ncn_progname}; then
16466       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16467       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16468 $as_echo "yes" >&6; }
16469       break
16470     else
16471       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16472 $as_echo "no" >&6; }
16473     fi
16474   done
16475 fi
16476
16477 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16478   for ncn_progname in ranlib; do
16479     if test -n "$ncn_target_tool_prefix"; then
16480       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16481 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16483 $as_echo_n "checking for $ac_word... " >&6; }
16484 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16485   $as_echo_n "(cached) " >&6
16486 else
16487   if test -n "$RANLIB_FOR_TARGET"; then
16488   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16489 else
16490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16491 for as_dir in $PATH
16492 do
16493   IFS=$as_save_IFS
16494   test -z "$as_dir" && as_dir=.
16495     for ac_exec_ext in '' $ac_executable_extensions; do
16496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16497     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16499     break 2
16500   fi
16501 done
16502   done
16503 IFS=$as_save_IFS
16504
16505 fi
16506 fi
16507 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16508 if test -n "$RANLIB_FOR_TARGET"; then
16509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16510 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16511 else
16512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16513 $as_echo "no" >&6; }
16514 fi
16515
16516
16517     fi
16518     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16519       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16520 set dummy ${ncn_progname}; ac_word=$2
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16522 $as_echo_n "checking for $ac_word... " >&6; }
16523 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16524   $as_echo_n "(cached) " >&6
16525 else
16526   if test -n "$RANLIB_FOR_TARGET"; then
16527   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16528 else
16529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16530 for as_dir in $PATH
16531 do
16532   IFS=$as_save_IFS
16533   test -z "$as_dir" && as_dir=.
16534     for ac_exec_ext in '' $ac_executable_extensions; do
16535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16536     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16538     break 2
16539   fi
16540 done
16541   done
16542 IFS=$as_save_IFS
16543
16544 fi
16545 fi
16546 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16547 if test -n "$RANLIB_FOR_TARGET"; then
16548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16549 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16550 else
16551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16552 $as_echo "no" >&6; }
16553 fi
16554
16555
16556     fi
16557     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16558   done
16559 fi
16560
16561 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16562   set dummy ranlib
16563   if test $build = $target ; then
16564     RANLIB_FOR_TARGET="$2"
16565   else
16566     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16567   fi
16568 else
16569   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16570 fi
16571
16572 else
16573   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16574 fi
16575
16576
16577
16578
16579 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16580   if test -n "$with_build_time_tools"; then
16581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16582 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16583     if test -x $with_build_time_tools/readelf; then
16584       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16585       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16586       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16587 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16588     else
16589       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16590 $as_echo "no" >&6; }
16591     fi
16592   elif test $build != $host && test $have_gcc_for_target = yes; then
16593     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16594     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16595     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16596   fi
16597 fi
16598 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16599   # Extract the first word of "readelf", so it can be a program name with args.
16600 set dummy readelf; ac_word=$2
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16602 $as_echo_n "checking for $ac_word... " >&6; }
16603 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16604   $as_echo_n "(cached) " >&6
16605 else
16606   case $READELF_FOR_TARGET in
16607   [\\/]* | ?:[\\/]*)
16608   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16609   ;;
16610   *)
16611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16612 for as_dir in $gcc_cv_tool_dirs
16613 do
16614   IFS=$as_save_IFS
16615   test -z "$as_dir" && as_dir=.
16616     for ac_exec_ext in '' $ac_executable_extensions; do
16617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16618     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16620     break 2
16621   fi
16622 done
16623   done
16624 IFS=$as_save_IFS
16625
16626   ;;
16627 esac
16628 fi
16629 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16630 if test -n "$READELF_FOR_TARGET"; then
16631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16632 $as_echo "$READELF_FOR_TARGET" >&6; }
16633 else
16634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16635 $as_echo "no" >&6; }
16636 fi
16637
16638
16639 fi
16640 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16641
16642
16643 if test -n "$READELF_FOR_TARGET"; then
16644   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16645 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16646   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16647 fi
16648
16649 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16650   for ncn_progname in readelf; do
16651     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16652 set dummy ${ncn_progname}; ac_word=$2
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16654 $as_echo_n "checking for $ac_word... " >&6; }
16655 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16656   $as_echo_n "(cached) " >&6
16657 else
16658   if test -n "$READELF_FOR_TARGET"; then
16659   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16660 else
16661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16662 for as_dir in $PATH
16663 do
16664   IFS=$as_save_IFS
16665   test -z "$as_dir" && as_dir=.
16666     for ac_exec_ext in '' $ac_executable_extensions; do
16667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16668     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16670     break 2
16671   fi
16672 done
16673   done
16674 IFS=$as_save_IFS
16675
16676 fi
16677 fi
16678 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16679 if test -n "$READELF_FOR_TARGET"; then
16680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16681 $as_echo "$READELF_FOR_TARGET" >&6; }
16682 else
16683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16684 $as_echo "no" >&6; }
16685 fi
16686
16687
16688   done
16689 fi
16690
16691 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16692   for ncn_progname in readelf; do
16693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16694 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16695     if test -x $with_build_time_tools/${ncn_progname}; then
16696       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16697       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16698 $as_echo "yes" >&6; }
16699       break
16700     else
16701       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16702 $as_echo "no" >&6; }
16703     fi
16704   done
16705 fi
16706
16707 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16708   for ncn_progname in readelf; do
16709     if test -n "$ncn_target_tool_prefix"; then
16710       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16711 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16713 $as_echo_n "checking for $ac_word... " >&6; }
16714 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16715   $as_echo_n "(cached) " >&6
16716 else
16717   if test -n "$READELF_FOR_TARGET"; then
16718   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16719 else
16720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16721 for as_dir in $PATH
16722 do
16723   IFS=$as_save_IFS
16724   test -z "$as_dir" && as_dir=.
16725     for ac_exec_ext in '' $ac_executable_extensions; do
16726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16727     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16729     break 2
16730   fi
16731 done
16732   done
16733 IFS=$as_save_IFS
16734
16735 fi
16736 fi
16737 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16738 if test -n "$READELF_FOR_TARGET"; then
16739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16740 $as_echo "$READELF_FOR_TARGET" >&6; }
16741 else
16742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16743 $as_echo "no" >&6; }
16744 fi
16745
16746
16747     fi
16748     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16749       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16750 set dummy ${ncn_progname}; ac_word=$2
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16752 $as_echo_n "checking for $ac_word... " >&6; }
16753 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16754   $as_echo_n "(cached) " >&6
16755 else
16756   if test -n "$READELF_FOR_TARGET"; then
16757   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16758 else
16759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16760 for as_dir in $PATH
16761 do
16762   IFS=$as_save_IFS
16763   test -z "$as_dir" && as_dir=.
16764     for ac_exec_ext in '' $ac_executable_extensions; do
16765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16766     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16768     break 2
16769   fi
16770 done
16771   done
16772 IFS=$as_save_IFS
16773
16774 fi
16775 fi
16776 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16777 if test -n "$READELF_FOR_TARGET"; then
16778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16779 $as_echo "$READELF_FOR_TARGET" >&6; }
16780 else
16781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16782 $as_echo "no" >&6; }
16783 fi
16784
16785
16786     fi
16787     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16788   done
16789 fi
16790
16791 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16792   set dummy readelf
16793   if test $build = $target ; then
16794     READELF_FOR_TARGET="$2"
16795   else
16796     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16797   fi
16798 else
16799   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16800 fi
16801
16802 else
16803   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16804 fi
16805
16806
16807
16808
16809 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16810   if test -n "$with_build_time_tools"; then
16811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16812 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16813     if test -x $with_build_time_tools/strip; then
16814       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16815       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16816       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16817 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16818     else
16819       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16820 $as_echo "no" >&6; }
16821     fi
16822   elif test $build != $host && test $have_gcc_for_target = yes; then
16823     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16824     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16825     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16826   fi
16827 fi
16828 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16829   # Extract the first word of "strip", so it can be a program name with args.
16830 set dummy strip; ac_word=$2
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16832 $as_echo_n "checking for $ac_word... " >&6; }
16833 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16834   $as_echo_n "(cached) " >&6
16835 else
16836   case $STRIP_FOR_TARGET in
16837   [\\/]* | ?:[\\/]*)
16838   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16839   ;;
16840   *)
16841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16842 for as_dir in $gcc_cv_tool_dirs
16843 do
16844   IFS=$as_save_IFS
16845   test -z "$as_dir" && as_dir=.
16846     for ac_exec_ext in '' $ac_executable_extensions; do
16847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16848     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16850     break 2
16851   fi
16852 done
16853   done
16854 IFS=$as_save_IFS
16855
16856   ;;
16857 esac
16858 fi
16859 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16860 if test -n "$STRIP_FOR_TARGET"; then
16861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16862 $as_echo "$STRIP_FOR_TARGET" >&6; }
16863 else
16864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16865 $as_echo "no" >&6; }
16866 fi
16867
16868
16869 fi
16870 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16871
16872
16873 if test -n "$STRIP_FOR_TARGET"; then
16874   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16875 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16876   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16877 fi
16878
16879 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16880   for ncn_progname in strip; do
16881     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16882 set dummy ${ncn_progname}; ac_word=$2
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16884 $as_echo_n "checking for $ac_word... " >&6; }
16885 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16886   $as_echo_n "(cached) " >&6
16887 else
16888   if test -n "$STRIP_FOR_TARGET"; then
16889   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16890 else
16891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16892 for as_dir in $PATH
16893 do
16894   IFS=$as_save_IFS
16895   test -z "$as_dir" && as_dir=.
16896     for ac_exec_ext in '' $ac_executable_extensions; do
16897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16898     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16900     break 2
16901   fi
16902 done
16903   done
16904 IFS=$as_save_IFS
16905
16906 fi
16907 fi
16908 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16909 if test -n "$STRIP_FOR_TARGET"; then
16910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16911 $as_echo "$STRIP_FOR_TARGET" >&6; }
16912 else
16913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16914 $as_echo "no" >&6; }
16915 fi
16916
16917
16918   done
16919 fi
16920
16921 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16922   for ncn_progname in strip; do
16923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16924 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16925     if test -x $with_build_time_tools/${ncn_progname}; then
16926       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16927       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16928 $as_echo "yes" >&6; }
16929       break
16930     else
16931       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16932 $as_echo "no" >&6; }
16933     fi
16934   done
16935 fi
16936
16937 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16938   for ncn_progname in strip; do
16939     if test -n "$ncn_target_tool_prefix"; then
16940       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16941 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16943 $as_echo_n "checking for $ac_word... " >&6; }
16944 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16945   $as_echo_n "(cached) " >&6
16946 else
16947   if test -n "$STRIP_FOR_TARGET"; then
16948   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16949 else
16950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16951 for as_dir in $PATH
16952 do
16953   IFS=$as_save_IFS
16954   test -z "$as_dir" && as_dir=.
16955     for ac_exec_ext in '' $ac_executable_extensions; do
16956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16957     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16959     break 2
16960   fi
16961 done
16962   done
16963 IFS=$as_save_IFS
16964
16965 fi
16966 fi
16967 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16968 if test -n "$STRIP_FOR_TARGET"; then
16969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16970 $as_echo "$STRIP_FOR_TARGET" >&6; }
16971 else
16972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16973 $as_echo "no" >&6; }
16974 fi
16975
16976
16977     fi
16978     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16979       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16980 set dummy ${ncn_progname}; ac_word=$2
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16982 $as_echo_n "checking for $ac_word... " >&6; }
16983 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16984   $as_echo_n "(cached) " >&6
16985 else
16986   if test -n "$STRIP_FOR_TARGET"; then
16987   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16988 else
16989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16990 for as_dir in $PATH
16991 do
16992   IFS=$as_save_IFS
16993   test -z "$as_dir" && as_dir=.
16994     for ac_exec_ext in '' $ac_executable_extensions; do
16995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16996     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16998     break 2
16999   fi
17000 done
17001   done
17002 IFS=$as_save_IFS
17003
17004 fi
17005 fi
17006 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17007 if test -n "$STRIP_FOR_TARGET"; then
17008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17009 $as_echo "$STRIP_FOR_TARGET" >&6; }
17010 else
17011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17012 $as_echo "no" >&6; }
17013 fi
17014
17015
17016     fi
17017     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17018   done
17019 fi
17020
17021 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17022   set dummy strip
17023   if test $build = $target ; then
17024     STRIP_FOR_TARGET="$2"
17025   else
17026     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17027   fi
17028 else
17029   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17030 fi
17031
17032 else
17033   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17034 fi
17035
17036
17037
17038
17039 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17040   if test -n "$with_build_time_tools"; then
17041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17042 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
17043     if test -x $with_build_time_tools/windres; then
17044       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17045       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17046       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17047 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17048     else
17049       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17050 $as_echo "no" >&6; }
17051     fi
17052   elif test $build != $host && test $have_gcc_for_target = yes; then
17053     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17054     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17055     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17056   fi
17057 fi
17058 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17059   # Extract the first word of "windres", so it can be a program name with args.
17060 set dummy windres; ac_word=$2
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17062 $as_echo_n "checking for $ac_word... " >&6; }
17063 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17064   $as_echo_n "(cached) " >&6
17065 else
17066   case $WINDRES_FOR_TARGET in
17067   [\\/]* | ?:[\\/]*)
17068   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17069   ;;
17070   *)
17071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17072 for as_dir in $gcc_cv_tool_dirs
17073 do
17074   IFS=$as_save_IFS
17075   test -z "$as_dir" && as_dir=.
17076     for ac_exec_ext in '' $ac_executable_extensions; do
17077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17078     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17080     break 2
17081   fi
17082 done
17083   done
17084 IFS=$as_save_IFS
17085
17086   ;;
17087 esac
17088 fi
17089 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17090 if test -n "$WINDRES_FOR_TARGET"; then
17091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17092 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17093 else
17094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17095 $as_echo "no" >&6; }
17096 fi
17097
17098
17099 fi
17100 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17101
17102
17103 if test -n "$WINDRES_FOR_TARGET"; then
17104   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17105 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17106   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17107 fi
17108
17109 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17110   for ncn_progname in windres; do
17111     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17112 set dummy ${ncn_progname}; ac_word=$2
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17114 $as_echo_n "checking for $ac_word... " >&6; }
17115 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17116   $as_echo_n "(cached) " >&6
17117 else
17118   if test -n "$WINDRES_FOR_TARGET"; then
17119   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17120 else
17121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17122 for as_dir in $PATH
17123 do
17124   IFS=$as_save_IFS
17125   test -z "$as_dir" && as_dir=.
17126     for ac_exec_ext in '' $ac_executable_extensions; do
17127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17128     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17130     break 2
17131   fi
17132 done
17133   done
17134 IFS=$as_save_IFS
17135
17136 fi
17137 fi
17138 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17139 if test -n "$WINDRES_FOR_TARGET"; then
17140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17141 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17142 else
17143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17144 $as_echo "no" >&6; }
17145 fi
17146
17147
17148   done
17149 fi
17150
17151 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17152   for ncn_progname in windres; do
17153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17154 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17155     if test -x $with_build_time_tools/${ncn_progname}; then
17156       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17157       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17158 $as_echo "yes" >&6; }
17159       break
17160     else
17161       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17162 $as_echo "no" >&6; }
17163     fi
17164   done
17165 fi
17166
17167 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17168   for ncn_progname in windres; do
17169     if test -n "$ncn_target_tool_prefix"; then
17170       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17171 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17173 $as_echo_n "checking for $ac_word... " >&6; }
17174 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17175   $as_echo_n "(cached) " >&6
17176 else
17177   if test -n "$WINDRES_FOR_TARGET"; then
17178   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17179 else
17180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17181 for as_dir in $PATH
17182 do
17183   IFS=$as_save_IFS
17184   test -z "$as_dir" && as_dir=.
17185     for ac_exec_ext in '' $ac_executable_extensions; do
17186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17187     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17189     break 2
17190   fi
17191 done
17192   done
17193 IFS=$as_save_IFS
17194
17195 fi
17196 fi
17197 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17198 if test -n "$WINDRES_FOR_TARGET"; then
17199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17200 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17201 else
17202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17203 $as_echo "no" >&6; }
17204 fi
17205
17206
17207     fi
17208     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17209       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17210 set dummy ${ncn_progname}; ac_word=$2
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17212 $as_echo_n "checking for $ac_word... " >&6; }
17213 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17214   $as_echo_n "(cached) " >&6
17215 else
17216   if test -n "$WINDRES_FOR_TARGET"; then
17217   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17218 else
17219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17220 for as_dir in $PATH
17221 do
17222   IFS=$as_save_IFS
17223   test -z "$as_dir" && as_dir=.
17224     for ac_exec_ext in '' $ac_executable_extensions; do
17225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17226     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17228     break 2
17229   fi
17230 done
17231   done
17232 IFS=$as_save_IFS
17233
17234 fi
17235 fi
17236 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17237 if test -n "$WINDRES_FOR_TARGET"; then
17238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17239 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17240 else
17241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17242 $as_echo "no" >&6; }
17243 fi
17244
17245
17246     fi
17247     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17248   done
17249 fi
17250
17251 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17252   set dummy windres
17253   if test $build = $target ; then
17254     WINDRES_FOR_TARGET="$2"
17255   else
17256     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17257   fi
17258 else
17259   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17260 fi
17261
17262 else
17263   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17264 fi
17265
17266
17267
17268
17269 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17270   if test -n "$with_build_time_tools"; then
17271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17272 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17273     if test -x $with_build_time_tools/windmc; then
17274       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17275       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17276       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17277 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17278     else
17279       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17280 $as_echo "no" >&6; }
17281     fi
17282   elif test $build != $host && test $have_gcc_for_target = yes; then
17283     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17284     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17285     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17286   fi
17287 fi
17288 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17289   # Extract the first word of "windmc", so it can be a program name with args.
17290 set dummy windmc; ac_word=$2
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17292 $as_echo_n "checking for $ac_word... " >&6; }
17293 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17294   $as_echo_n "(cached) " >&6
17295 else
17296   case $WINDMC_FOR_TARGET in
17297   [\\/]* | ?:[\\/]*)
17298   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17299   ;;
17300   *)
17301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17302 for as_dir in $gcc_cv_tool_dirs
17303 do
17304   IFS=$as_save_IFS
17305   test -z "$as_dir" && as_dir=.
17306     for ac_exec_ext in '' $ac_executable_extensions; do
17307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17308     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17310     break 2
17311   fi
17312 done
17313   done
17314 IFS=$as_save_IFS
17315
17316   ;;
17317 esac
17318 fi
17319 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17320 if test -n "$WINDMC_FOR_TARGET"; then
17321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17322 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17323 else
17324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17325 $as_echo "no" >&6; }
17326 fi
17327
17328
17329 fi
17330 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17331
17332
17333 if test -n "$WINDMC_FOR_TARGET"; then
17334   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17335 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17336   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17337 fi
17338
17339 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17340   for ncn_progname in windmc; do
17341     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17342 set dummy ${ncn_progname}; ac_word=$2
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17344 $as_echo_n "checking for $ac_word... " >&6; }
17345 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17346   $as_echo_n "(cached) " >&6
17347 else
17348   if test -n "$WINDMC_FOR_TARGET"; then
17349   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17350 else
17351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17352 for as_dir in $PATH
17353 do
17354   IFS=$as_save_IFS
17355   test -z "$as_dir" && as_dir=.
17356     for ac_exec_ext in '' $ac_executable_extensions; do
17357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17358     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17360     break 2
17361   fi
17362 done
17363   done
17364 IFS=$as_save_IFS
17365
17366 fi
17367 fi
17368 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17369 if test -n "$WINDMC_FOR_TARGET"; then
17370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17371 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17372 else
17373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17374 $as_echo "no" >&6; }
17375 fi
17376
17377
17378   done
17379 fi
17380
17381 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17382   for ncn_progname in windmc; do
17383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17384 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17385     if test -x $with_build_time_tools/${ncn_progname}; then
17386       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17387       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17388 $as_echo "yes" >&6; }
17389       break
17390     else
17391       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17392 $as_echo "no" >&6; }
17393     fi
17394   done
17395 fi
17396
17397 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17398   for ncn_progname in windmc; do
17399     if test -n "$ncn_target_tool_prefix"; then
17400       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17401 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17403 $as_echo_n "checking for $ac_word... " >&6; }
17404 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17405   $as_echo_n "(cached) " >&6
17406 else
17407   if test -n "$WINDMC_FOR_TARGET"; then
17408   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17409 else
17410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17411 for as_dir in $PATH
17412 do
17413   IFS=$as_save_IFS
17414   test -z "$as_dir" && as_dir=.
17415     for ac_exec_ext in '' $ac_executable_extensions; do
17416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17417     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17419     break 2
17420   fi
17421 done
17422   done
17423 IFS=$as_save_IFS
17424
17425 fi
17426 fi
17427 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17428 if test -n "$WINDMC_FOR_TARGET"; then
17429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17430 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17431 else
17432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17433 $as_echo "no" >&6; }
17434 fi
17435
17436
17437     fi
17438     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17439       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17440 set dummy ${ncn_progname}; ac_word=$2
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17442 $as_echo_n "checking for $ac_word... " >&6; }
17443 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17444   $as_echo_n "(cached) " >&6
17445 else
17446   if test -n "$WINDMC_FOR_TARGET"; then
17447   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17448 else
17449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17450 for as_dir in $PATH
17451 do
17452   IFS=$as_save_IFS
17453   test -z "$as_dir" && as_dir=.
17454     for ac_exec_ext in '' $ac_executable_extensions; do
17455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17456     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17458     break 2
17459   fi
17460 done
17461   done
17462 IFS=$as_save_IFS
17463
17464 fi
17465 fi
17466 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17467 if test -n "$WINDMC_FOR_TARGET"; then
17468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17469 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17470 else
17471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17472 $as_echo "no" >&6; }
17473 fi
17474
17475
17476     fi
17477     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17478   done
17479 fi
17480
17481 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17482   set dummy windmc
17483   if test $build = $target ; then
17484     WINDMC_FOR_TARGET="$2"
17485   else
17486     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17487   fi
17488 else
17489   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17490 fi
17491
17492 else
17493   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17494 fi
17495
17496
17497 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17498
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17500 $as_echo_n "checking where to find the target ar... " >&6; }
17501 if test "x${build}" != "x${host}" ; then
17502   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17503     # We already found the complete path
17504     ac_dir=`dirname $AR_FOR_TARGET`
17505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17506 $as_echo "pre-installed in $ac_dir" >&6; }
17507   else
17508     # Canadian cross, just use what we found
17509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17510 $as_echo "pre-installed" >&6; }
17511   fi
17512 else
17513   ok=yes
17514   case " ${configdirs} " in
17515     *" binutils "*) ;;
17516     *) ok=no ;;
17517   esac
17518
17519   if test $ok = yes; then
17520     # An in-tree tool is available and we can use it
17521     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17523 $as_echo "just compiled" >&6; }
17524   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17525     # We already found the complete path
17526     ac_dir=`dirname $AR_FOR_TARGET`
17527     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17528 $as_echo "pre-installed in $ac_dir" >&6; }
17529   elif test "x$target" = "x$host"; then
17530     # We can use an host tool
17531     AR_FOR_TARGET='$(AR)'
17532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17533 $as_echo "host tool" >&6; }
17534   else
17535     # We need a cross tool
17536     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17537 $as_echo "pre-installed" >&6; }
17538   fi
17539 fi
17540
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17542 $as_echo_n "checking where to find the target as... " >&6; }
17543 if test "x${build}" != "x${host}" ; then
17544   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17545     # We already found the complete path
17546     ac_dir=`dirname $AS_FOR_TARGET`
17547     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17548 $as_echo "pre-installed in $ac_dir" >&6; }
17549   else
17550     # Canadian cross, just use what we found
17551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17552 $as_echo "pre-installed" >&6; }
17553   fi
17554 else
17555   ok=yes
17556   case " ${configdirs} " in
17557     *" gas "*) ;;
17558     *) ok=no ;;
17559   esac
17560
17561   if test $ok = yes; then
17562     # An in-tree tool is available and we can use it
17563     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17565 $as_echo "just compiled" >&6; }
17566   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17567     # We already found the complete path
17568     ac_dir=`dirname $AS_FOR_TARGET`
17569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17570 $as_echo "pre-installed in $ac_dir" >&6; }
17571   elif test "x$target" = "x$host"; then
17572     # We can use an host tool
17573     AS_FOR_TARGET='$(AS)'
17574     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17575 $as_echo "host tool" >&6; }
17576   else
17577     # We need a cross tool
17578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17579 $as_echo "pre-installed" >&6; }
17580   fi
17581 fi
17582
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17584 $as_echo_n "checking where to find the target cc... " >&6; }
17585 if test "x${build}" != "x${host}" ; then
17586   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17587     # We already found the complete path
17588     ac_dir=`dirname $CC_FOR_TARGET`
17589     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17590 $as_echo "pre-installed in $ac_dir" >&6; }
17591   else
17592     # Canadian cross, just use what we found
17593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17594 $as_echo "pre-installed" >&6; }
17595   fi
17596 else
17597   ok=yes
17598   case " ${configdirs} " in
17599     *" gcc "*) ;;
17600     *) ok=no ;;
17601   esac
17602
17603   if test $ok = yes; then
17604     # An in-tree tool is available and we can use it
17605     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17606     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17607 $as_echo "just compiled" >&6; }
17608   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17609     # We already found the complete path
17610     ac_dir=`dirname $CC_FOR_TARGET`
17611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17612 $as_echo "pre-installed in $ac_dir" >&6; }
17613   elif test "x$target" = "x$host"; then
17614     # We can use an host tool
17615     CC_FOR_TARGET='$(CC)'
17616     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17617 $as_echo "host tool" >&6; }
17618   else
17619     # We need a cross tool
17620     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17621 $as_echo "pre-installed" >&6; }
17622   fi
17623 fi
17624
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17626 $as_echo_n "checking where to find the target c++... " >&6; }
17627 if test "x${build}" != "x${host}" ; then
17628   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17629     # We already found the complete path
17630     ac_dir=`dirname $CXX_FOR_TARGET`
17631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17632 $as_echo "pre-installed in $ac_dir" >&6; }
17633   else
17634     # Canadian cross, just use what we found
17635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17636 $as_echo "pre-installed" >&6; }
17637   fi
17638 else
17639   ok=yes
17640   case " ${configdirs} " in
17641     *" gcc "*) ;;
17642     *) ok=no ;;
17643   esac
17644   case ,${enable_languages}, in
17645     *,c++,*) ;;
17646     *) ok=no ;;
17647   esac
17648   if test $ok = yes; then
17649     # An in-tree tool is available and we can use it
17650     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'
17651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17652 $as_echo "just compiled" >&6; }
17653   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17654     # We already found the complete path
17655     ac_dir=`dirname $CXX_FOR_TARGET`
17656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17657 $as_echo "pre-installed in $ac_dir" >&6; }
17658   elif test "x$target" = "x$host"; then
17659     # We can use an host tool
17660     CXX_FOR_TARGET='$(CXX)'
17661     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17662 $as_echo "host tool" >&6; }
17663   else
17664     # We need a cross tool
17665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17666 $as_echo "pre-installed" >&6; }
17667   fi
17668 fi
17669
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17671 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17672 if test "x${build}" != "x${host}" ; then
17673   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17674     # We already found the complete path
17675     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17677 $as_echo "pre-installed in $ac_dir" >&6; }
17678   else
17679     # Canadian cross, just use what we found
17680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17681 $as_echo "pre-installed" >&6; }
17682   fi
17683 else
17684   ok=yes
17685   case " ${configdirs} " in
17686     *" gcc "*) ;;
17687     *) ok=no ;;
17688   esac
17689   case ,${enable_languages}, in
17690     *,c++,*) ;;
17691     *) ok=no ;;
17692   esac
17693   if test $ok = yes; then
17694     # An in-tree tool is available and we can use it
17695     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'
17696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17697 $as_echo "just compiled" >&6; }
17698   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17699     # We already found the complete path
17700     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17702 $as_echo "pre-installed in $ac_dir" >&6; }
17703   elif test "x$target" = "x$host"; then
17704     # We can use an host tool
17705     RAW_CXX_FOR_TARGET='$(CXX)'
17706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17707 $as_echo "host tool" >&6; }
17708   else
17709     # We need a cross tool
17710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17711 $as_echo "pre-installed" >&6; }
17712   fi
17713 fi
17714
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17716 $as_echo_n "checking where to find the target dlltool... " >&6; }
17717 if test "x${build}" != "x${host}" ; then
17718   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17719     # We already found the complete path
17720     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17722 $as_echo "pre-installed in $ac_dir" >&6; }
17723   else
17724     # Canadian cross, just use what we found
17725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17726 $as_echo "pre-installed" >&6; }
17727   fi
17728 else
17729   ok=yes
17730   case " ${configdirs} " in
17731     *" binutils "*) ;;
17732     *) ok=no ;;
17733   esac
17734
17735   if test $ok = yes; then
17736     # An in-tree tool is available and we can use it
17737     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17739 $as_echo "just compiled" >&6; }
17740   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17741     # We already found the complete path
17742     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17744 $as_echo "pre-installed in $ac_dir" >&6; }
17745   elif test "x$target" = "x$host"; then
17746     # We can use an host tool
17747     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17749 $as_echo "host tool" >&6; }
17750   else
17751     # We need a cross tool
17752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17753 $as_echo "pre-installed" >&6; }
17754   fi
17755 fi
17756
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17758 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17759 if test "x${build}" != "x${host}" ; then
17760   if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17761     # We already found the complete path
17762     ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17763     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17764 $as_echo "pre-installed in $ac_dir" >&6; }
17765   else
17766     # Canadian cross, just use what we found
17767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17768 $as_echo "pre-installed" >&6; }
17769   fi
17770 else
17771   if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17772     # We already found the complete path
17773     ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17775 $as_echo "pre-installed in $ac_dir" >&6; }
17776   elif test "x$target" = "x$host"; then
17777     # We can use an host tool
17778     DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17780 $as_echo "host tool" >&6; }
17781   else
17782     # We need a cross tool
17783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17784 $as_echo "pre-installed" >&6; }
17785   fi
17786 fi
17787
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17789 $as_echo_n "checking where to find the target gcc... " >&6; }
17790 if test "x${build}" != "x${host}" ; then
17791   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17792     # We already found the complete path
17793     ac_dir=`dirname $GCC_FOR_TARGET`
17794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17795 $as_echo "pre-installed in $ac_dir" >&6; }
17796   else
17797     # Canadian cross, just use what we found
17798     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17799 $as_echo "pre-installed" >&6; }
17800   fi
17801 else
17802   ok=yes
17803   case " ${configdirs} " in
17804     *" gcc "*) ;;
17805     *) ok=no ;;
17806   esac
17807
17808   if test $ok = yes; then
17809     # An in-tree tool is available and we can use it
17810     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17812 $as_echo "just compiled" >&6; }
17813   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17814     # We already found the complete path
17815     ac_dir=`dirname $GCC_FOR_TARGET`
17816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17817 $as_echo "pre-installed in $ac_dir" >&6; }
17818   elif test "x$target" = "x$host"; then
17819     # We can use an host tool
17820     GCC_FOR_TARGET='$()'
17821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17822 $as_echo "host tool" >&6; }
17823   else
17824     # We need a cross tool
17825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17826 $as_echo "pre-installed" >&6; }
17827   fi
17828 fi
17829
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17831 $as_echo_n "checking where to find the target gfortran... " >&6; }
17832 if test "x${build}" != "x${host}" ; then
17833   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17834     # We already found the complete path
17835     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17837 $as_echo "pre-installed in $ac_dir" >&6; }
17838   else
17839     # Canadian cross, just use what we found
17840     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17841 $as_echo "pre-installed" >&6; }
17842   fi
17843 else
17844   ok=yes
17845   case " ${configdirs} " in
17846     *" gcc "*) ;;
17847     *) ok=no ;;
17848   esac
17849   case ,${enable_languages}, in
17850     *,fortran,*) ;;
17851     *) ok=no ;;
17852   esac
17853   if test $ok = yes; then
17854     # An in-tree tool is available and we can use it
17855     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17857 $as_echo "just compiled" >&6; }
17858   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17859     # We already found the complete path
17860     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17861     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17862 $as_echo "pre-installed in $ac_dir" >&6; }
17863   elif test "x$target" = "x$host"; then
17864     # We can use an host tool
17865     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17867 $as_echo "host tool" >&6; }
17868   else
17869     # We need a cross tool
17870     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17871 $as_echo "pre-installed" >&6; }
17872   fi
17873 fi
17874
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17876 $as_echo_n "checking where to find the target gccgo... " >&6; }
17877 if test "x${build}" != "x${host}" ; then
17878   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17879     # We already found the complete path
17880     ac_dir=`dirname $GOC_FOR_TARGET`
17881     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17882 $as_echo "pre-installed in $ac_dir" >&6; }
17883   else
17884     # Canadian cross, just use what we found
17885     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17886 $as_echo "pre-installed" >&6; }
17887   fi
17888 else
17889   ok=yes
17890   case " ${configdirs} " in
17891     *" gcc "*) ;;
17892     *) ok=no ;;
17893   esac
17894   case ,${enable_languages}, in
17895     *,go,*) ;;
17896     *) ok=no ;;
17897   esac
17898   if test $ok = yes; then
17899     # An in-tree tool is available and we can use it
17900     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17902 $as_echo "just compiled" >&6; }
17903   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17904     # We already found the complete path
17905     ac_dir=`dirname $GOC_FOR_TARGET`
17906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17907 $as_echo "pre-installed in $ac_dir" >&6; }
17908   elif test "x$target" = "x$host"; then
17909     # We can use an host tool
17910     GOC_FOR_TARGET='$(GOC)'
17911     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17912 $as_echo "host tool" >&6; }
17913   else
17914     # We need a cross tool
17915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17916 $as_echo "pre-installed" >&6; }
17917   fi
17918 fi
17919
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17921 $as_echo_n "checking where to find the target gdc... " >&6; }
17922 if test "x${build}" != "x${host}" ; then
17923   if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17924     # We already found the complete path
17925     ac_dir=`dirname $GDC_FOR_TARGET`
17926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17927 $as_echo "pre-installed in $ac_dir" >&6; }
17928   else
17929     # Canadian cross, just use what we found
17930     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17931 $as_echo "pre-installed" >&6; }
17932   fi
17933 else
17934   ok=yes
17935   case " ${configdirs} " in
17936     *" gcc "*) ;;
17937     *) ok=no ;;
17938   esac
17939   case ,${enable_languages}, in
17940     *,d,*) ;;
17941     *) ok=no ;;
17942   esac
17943   if test $ok = yes; then
17944     # An in-tree tool is available and we can use it
17945     GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17946     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17947 $as_echo "just compiled" >&6; }
17948   elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17949     # We already found the complete path
17950     ac_dir=`dirname $GDC_FOR_TARGET`
17951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17952 $as_echo "pre-installed in $ac_dir" >&6; }
17953   elif test "x$target" = "x$host"; then
17954     # We can use an host tool
17955     GDC_FOR_TARGET='$(GDC)'
17956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17957 $as_echo "host tool" >&6; }
17958   else
17959     # We need a cross tool
17960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17961 $as_echo "pre-installed" >&6; }
17962   fi
17963 fi
17964
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
17966 $as_echo_n "checking where to find the target gm2... " >&6; }
17967 if test "x${build}" != "x${host}" ; then
17968   if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
17969     # We already found the complete path
17970     ac_dir=`dirname $GM2_FOR_TARGET`
17971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17972 $as_echo "pre-installed in $ac_dir" >&6; }
17973   else
17974     # Canadian cross, just use what we found
17975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17976 $as_echo "pre-installed" >&6; }
17977   fi
17978 else
17979   ok=yes
17980   case " ${configdirs} " in
17981     *" gcc "*) ;;
17982     *) ok=no ;;
17983   esac
17984   case ,${enable_languages}, in
17985     *,m2,*) ;;
17986     *) ok=no ;;
17987   esac
17988   if test $ok = yes; then
17989     # An in-tree tool is available and we can use it
17990     GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
17991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17992 $as_echo "just compiled" >&6; }
17993   elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
17994     # We already found the complete path
17995     ac_dir=`dirname $GM2_FOR_TARGET`
17996     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17997 $as_echo "pre-installed in $ac_dir" >&6; }
17998   elif test "x$target" = "x$host"; then
17999     # We can use an host tool
18000     GM2_FOR_TARGET='$(GM2)'
18001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18002 $as_echo "host tool" >&6; }
18003   else
18004     # We need a cross tool
18005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18006 $as_echo "pre-installed" >&6; }
18007   fi
18008 fi
18009
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18011 $as_echo_n "checking where to find the target ld... " >&6; }
18012 if test "x${build}" != "x${host}" ; then
18013   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18014     # We already found the complete path
18015     ac_dir=`dirname $LD_FOR_TARGET`
18016     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18017 $as_echo "pre-installed in $ac_dir" >&6; }
18018   else
18019     # Canadian cross, just use what we found
18020     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18021 $as_echo "pre-installed" >&6; }
18022   fi
18023 else
18024   ok=yes
18025   case " ${configdirs} " in
18026     *" ld "*) ;;
18027     *) ok=no ;;
18028   esac
18029
18030   if test $ok = yes; then
18031     # An in-tree tool is available and we can use it
18032     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18034 $as_echo "just compiled" >&6; }
18035   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18036     # We already found the complete path
18037     ac_dir=`dirname $LD_FOR_TARGET`
18038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18039 $as_echo "pre-installed in $ac_dir" >&6; }
18040   elif test "x$target" = "x$host"; then
18041     # We can use an host tool
18042     LD_FOR_TARGET='$(LD)'
18043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18044 $as_echo "host tool" >&6; }
18045   else
18046     # We need a cross tool
18047     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18048 $as_echo "pre-installed" >&6; }
18049   fi
18050 fi
18051
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18053 $as_echo_n "checking where to find the target lipo... " >&6; }
18054 if test "x${build}" != "x${host}" ; then
18055   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18056     # We already found the complete path
18057     ac_dir=`dirname $LIPO_FOR_TARGET`
18058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18059 $as_echo "pre-installed in $ac_dir" >&6; }
18060   else
18061     # Canadian cross, just use what we found
18062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18063 $as_echo "pre-installed" >&6; }
18064   fi
18065 else
18066   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18067     # We already found the complete path
18068     ac_dir=`dirname $LIPO_FOR_TARGET`
18069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18070 $as_echo "pre-installed in $ac_dir" >&6; }
18071   elif test "x$target" = "x$host"; then
18072     # We can use an host tool
18073     LIPO_FOR_TARGET='$(LIPO)'
18074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18075 $as_echo "host tool" >&6; }
18076   else
18077     # We need a cross tool
18078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18079 $as_echo "pre-installed" >&6; }
18080   fi
18081 fi
18082
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18084 $as_echo_n "checking where to find the target nm... " >&6; }
18085 if test "x${build}" != "x${host}" ; then
18086   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18087     # We already found the complete path
18088     ac_dir=`dirname $NM_FOR_TARGET`
18089     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18090 $as_echo "pre-installed in $ac_dir" >&6; }
18091   else
18092     # Canadian cross, just use what we found
18093     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18094 $as_echo "pre-installed" >&6; }
18095   fi
18096 else
18097   ok=yes
18098   case " ${configdirs} " in
18099     *" binutils "*) ;;
18100     *) ok=no ;;
18101   esac
18102
18103   if test $ok = yes; then
18104     # An in-tree tool is available and we can use it
18105     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18107 $as_echo "just compiled" >&6; }
18108   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18109     # We already found the complete path
18110     ac_dir=`dirname $NM_FOR_TARGET`
18111     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18112 $as_echo "pre-installed in $ac_dir" >&6; }
18113   elif test "x$target" = "x$host"; then
18114     # We can use an host tool
18115     NM_FOR_TARGET='$(NM)'
18116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18117 $as_echo "host tool" >&6; }
18118   else
18119     # We need a cross tool
18120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18121 $as_echo "pre-installed" >&6; }
18122   fi
18123 fi
18124
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18126 $as_echo_n "checking where to find the target objcopy... " >&6; }
18127 if test "x${build}" != "x${host}" ; then
18128   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18129     # We already found the complete path
18130     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18132 $as_echo "pre-installed in $ac_dir" >&6; }
18133   else
18134     # Canadian cross, just use what we found
18135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18136 $as_echo "pre-installed" >&6; }
18137   fi
18138 else
18139   ok=yes
18140   case " ${configdirs} " in
18141     *" binutils "*) ;;
18142     *) ok=no ;;
18143   esac
18144
18145   if test $ok = yes; then
18146     # An in-tree tool is available and we can use it
18147     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18149 $as_echo "just compiled" >&6; }
18150   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18151     # We already found the complete path
18152     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18154 $as_echo "pre-installed in $ac_dir" >&6; }
18155   elif test "x$target" = "x$host"; then
18156     # We can use an host tool
18157     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18158     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18159 $as_echo "host tool" >&6; }
18160   else
18161     # We need a cross tool
18162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18163 $as_echo "pre-installed" >&6; }
18164   fi
18165 fi
18166
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18168 $as_echo_n "checking where to find the target objdump... " >&6; }
18169 if test "x${build}" != "x${host}" ; then
18170   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18171     # We already found the complete path
18172     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18173     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18174 $as_echo "pre-installed in $ac_dir" >&6; }
18175   else
18176     # Canadian cross, just use what we found
18177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18178 $as_echo "pre-installed" >&6; }
18179   fi
18180 else
18181   ok=yes
18182   case " ${configdirs} " in
18183     *" binutils "*) ;;
18184     *) ok=no ;;
18185   esac
18186
18187   if test $ok = yes; then
18188     # An in-tree tool is available and we can use it
18189     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18191 $as_echo "just compiled" >&6; }
18192   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18193     # We already found the complete path
18194     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18195     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18196 $as_echo "pre-installed in $ac_dir" >&6; }
18197   elif test "x$target" = "x$host"; then
18198     # We can use an host tool
18199     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18201 $as_echo "host tool" >&6; }
18202   else
18203     # We need a cross tool
18204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18205 $as_echo "pre-installed" >&6; }
18206   fi
18207 fi
18208
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18210 $as_echo_n "checking where to find the target otool... " >&6; }
18211 if test "x${build}" != "x${host}" ; then
18212   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18213     # We already found the complete path
18214     ac_dir=`dirname $OTOOL_FOR_TARGET`
18215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18216 $as_echo "pre-installed in $ac_dir" >&6; }
18217   else
18218     # Canadian cross, just use what we found
18219     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18220 $as_echo "pre-installed" >&6; }
18221   fi
18222 else
18223   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18224     # We already found the complete path
18225     ac_dir=`dirname $OTOOL_FOR_TARGET`
18226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18227 $as_echo "pre-installed in $ac_dir" >&6; }
18228   elif test "x$target" = "x$host"; then
18229     # We can use an host tool
18230     OTOOL_FOR_TARGET='$(OTOOL)'
18231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18232 $as_echo "host tool" >&6; }
18233   else
18234     # We need a cross tool
18235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18236 $as_echo "pre-installed" >&6; }
18237   fi
18238 fi
18239
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18241 $as_echo_n "checking where to find the target ranlib... " >&6; }
18242 if test "x${build}" != "x${host}" ; then
18243   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18244     # We already found the complete path
18245     ac_dir=`dirname $RANLIB_FOR_TARGET`
18246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18247 $as_echo "pre-installed in $ac_dir" >&6; }
18248   else
18249     # Canadian cross, just use what we found
18250     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18251 $as_echo "pre-installed" >&6; }
18252   fi
18253 else
18254   ok=yes
18255   case " ${configdirs} " in
18256     *" binutils "*) ;;
18257     *) ok=no ;;
18258   esac
18259
18260   if test $ok = yes; then
18261     # An in-tree tool is available and we can use it
18262     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18263     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18264 $as_echo "just compiled" >&6; }
18265   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18266     # We already found the complete path
18267     ac_dir=`dirname $RANLIB_FOR_TARGET`
18268     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18269 $as_echo "pre-installed in $ac_dir" >&6; }
18270   elif test "x$target" = "x$host"; then
18271     # We can use an host tool
18272     RANLIB_FOR_TARGET='$(RANLIB)'
18273     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18274 $as_echo "host tool" >&6; }
18275   else
18276     # We need a cross tool
18277     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18278 $as_echo "pre-installed" >&6; }
18279   fi
18280 fi
18281
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18283 $as_echo_n "checking where to find the target readelf... " >&6; }
18284 if test "x${build}" != "x${host}" ; then
18285   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18286     # We already found the complete path
18287     ac_dir=`dirname $READELF_FOR_TARGET`
18288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18289 $as_echo "pre-installed in $ac_dir" >&6; }
18290   else
18291     # Canadian cross, just use what we found
18292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18293 $as_echo "pre-installed" >&6; }
18294   fi
18295 else
18296   ok=yes
18297   case " ${configdirs} " in
18298     *" binutils "*) ;;
18299     *) ok=no ;;
18300   esac
18301
18302   if test $ok = yes; then
18303     # An in-tree tool is available and we can use it
18304     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18306 $as_echo "just compiled" >&6; }
18307   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18308     # We already found the complete path
18309     ac_dir=`dirname $READELF_FOR_TARGET`
18310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18311 $as_echo "pre-installed in $ac_dir" >&6; }
18312   elif test "x$target" = "x$host"; then
18313     # We can use an host tool
18314     READELF_FOR_TARGET='$(READELF)'
18315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18316 $as_echo "host tool" >&6; }
18317   else
18318     # We need a cross tool
18319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18320 $as_echo "pre-installed" >&6; }
18321   fi
18322 fi
18323
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18325 $as_echo_n "checking where to find the target strip... " >&6; }
18326 if test "x${build}" != "x${host}" ; then
18327   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18328     # We already found the complete path
18329     ac_dir=`dirname $STRIP_FOR_TARGET`
18330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18331 $as_echo "pre-installed in $ac_dir" >&6; }
18332   else
18333     # Canadian cross, just use what we found
18334     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18335 $as_echo "pre-installed" >&6; }
18336   fi
18337 else
18338   ok=yes
18339   case " ${configdirs} " in
18340     *" binutils "*) ;;
18341     *) ok=no ;;
18342   esac
18343
18344   if test $ok = yes; then
18345     # An in-tree tool is available and we can use it
18346     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18348 $as_echo "just compiled" >&6; }
18349   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18350     # We already found the complete path
18351     ac_dir=`dirname $STRIP_FOR_TARGET`
18352     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18353 $as_echo "pre-installed in $ac_dir" >&6; }
18354   elif test "x$target" = "x$host"; then
18355     # We can use an host tool
18356     STRIP_FOR_TARGET='$(STRIP)'
18357     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18358 $as_echo "host tool" >&6; }
18359   else
18360     # We need a cross tool
18361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18362 $as_echo "pre-installed" >&6; }
18363   fi
18364 fi
18365
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18367 $as_echo_n "checking where to find the target windres... " >&6; }
18368 if test "x${build}" != "x${host}" ; then
18369   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18370     # We already found the complete path
18371     ac_dir=`dirname $WINDRES_FOR_TARGET`
18372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18373 $as_echo "pre-installed in $ac_dir" >&6; }
18374   else
18375     # Canadian cross, just use what we found
18376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18377 $as_echo "pre-installed" >&6; }
18378   fi
18379 else
18380   ok=yes
18381   case " ${configdirs} " in
18382     *" binutils "*) ;;
18383     *) ok=no ;;
18384   esac
18385
18386   if test $ok = yes; then
18387     # An in-tree tool is available and we can use it
18388     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18390 $as_echo "just compiled" >&6; }
18391   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18392     # We already found the complete path
18393     ac_dir=`dirname $WINDRES_FOR_TARGET`
18394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18395 $as_echo "pre-installed in $ac_dir" >&6; }
18396   elif test "x$target" = "x$host"; then
18397     # We can use an host tool
18398     WINDRES_FOR_TARGET='$(WINDRES)'
18399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18400 $as_echo "host tool" >&6; }
18401   else
18402     # We need a cross tool
18403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18404 $as_echo "pre-installed" >&6; }
18405   fi
18406 fi
18407
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18409 $as_echo_n "checking where to find the target windmc... " >&6; }
18410 if test "x${build}" != "x${host}" ; then
18411   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18412     # We already found the complete path
18413     ac_dir=`dirname $WINDMC_FOR_TARGET`
18414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18415 $as_echo "pre-installed in $ac_dir" >&6; }
18416   else
18417     # Canadian cross, just use what we found
18418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18419 $as_echo "pre-installed" >&6; }
18420   fi
18421 else
18422   ok=yes
18423   case " ${configdirs} " in
18424     *" binutils "*) ;;
18425     *) ok=no ;;
18426   esac
18427
18428   if test $ok = yes; then
18429     # An in-tree tool is available and we can use it
18430     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18432 $as_echo "just compiled" >&6; }
18433   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18434     # We already found the complete path
18435     ac_dir=`dirname $WINDMC_FOR_TARGET`
18436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18437 $as_echo "pre-installed in $ac_dir" >&6; }
18438   elif test "x$target" = "x$host"; then
18439     # We can use an host tool
18440     WINDMC_FOR_TARGET='$(WINDMC)'
18441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18442 $as_echo "host tool" >&6; }
18443   else
18444     # We need a cross tool
18445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18446 $as_echo "pre-installed" >&6; }
18447   fi
18448 fi
18449
18450
18451
18452
18453
18454 # Certain tools may need extra flags.
18455 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18456 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18457 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18458
18459 # When building target libraries, except in a Canadian cross, we use
18460 # the same toolchain as the compiler we just built.
18461 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18462 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18463 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18464 if test $host = $build; then
18465   case " $configdirs " in
18466     *" gcc "*)
18467       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18468       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18469       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18470       ;;
18471   esac
18472 fi
18473
18474
18475
18476
18477
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18479 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18480 # Check whether --enable-maintainer-mode was given.
18481 if test "${enable_maintainer_mode+set}" = set; then :
18482   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18483 else
18484   USE_MAINTAINER_MODE=no
18485 fi
18486
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18488 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18489
18490
18491 if test "$USE_MAINTAINER_MODE" = yes; then
18492   MAINTAINER_MODE_TRUE=
18493   MAINTAINER_MODE_FALSE='#'
18494 else
18495   MAINTAINER_MODE_TRUE='#'
18496   MAINTAINER_MODE_FALSE=
18497 fi
18498 MAINT=$MAINTAINER_MODE_TRUE
18499
18500 # ---------------------
18501 # GCC bootstrap support
18502 # ---------------------
18503
18504 # Stage specific cflags for build.
18505 stage1_cflags="-g"
18506 case $build in
18507   vax-*-*)
18508     case ${GCC} in
18509       yes) stage1_cflags="-g -Wa,-J" ;;
18510       *) stage1_cflags="-g -J" ;;
18511     esac ;;
18512 esac
18513
18514
18515
18516 # Enable --enable-checking in stage1 of the compiler.
18517 # Check whether --enable-stage1-checking was given.
18518 if test "${enable_stage1_checking+set}" = set; then :
18519   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18520 else
18521   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18522   # For --disable-checking or implicit --enable-checking=release, avoid
18523   # setting --enable-checking=gc in the default stage1 checking for LTO
18524   # bootstraps.  See PR62077.
18525   case $BUILD_CONFIG in
18526     *lto*)
18527       stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18528     *)
18529       stage1_checking=--enable-checking=yes,types;;
18530   esac
18531   if test "x$enable_checking" = x && \
18532      test -d ${srcdir}/gcc && \
18533      test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18534     stage1_checking=--enable-checking=yes,types,extra
18535   fi
18536 else
18537   stage1_checking=--enable-checking=$enable_checking,types
18538 fi
18539 fi
18540
18541
18542
18543 # Enable -Werror in bootstrap stage2 and later.
18544 # Check whether --enable-werror was given.
18545 if test "${enable_werror+set}" = set; then :
18546   enableval=$enable_werror;
18547 case ${enable_werror} in
18548   yes) stage2_werror_flag="--enable-werror-always" ;;
18549   *) stage2_werror_flag="" ;;
18550 esac
18551
18552 else
18553
18554 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18555   case $BUILD_CONFIG in
18556   bootstrap-debug)
18557       stage2_werror_flag="--enable-werror-always" ;;
18558   "")
18559       stage2_werror_flag="--enable-werror-always" ;;
18560   esac
18561 fi
18562
18563 fi
18564
18565
18566
18567
18568 # Specify what files to not compare during bootstrap.
18569
18570 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18571 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18572 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18573 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
18574 case "$target" in
18575   hppa*64*-*-hpux*) ;;
18576   powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18577 esac
18578
18579
18580 ac_config_files="$ac_config_files Makefile"
18581
18582 cat >confcache <<\_ACEOF
18583 # This file is a shell script that caches the results of configure
18584 # tests run on this system so they can be shared between configure
18585 # scripts and configure runs, see configure's option --config-cache.
18586 # It is not useful on other systems.  If it contains results you don't
18587 # want to keep, you may remove or edit it.
18588 #
18589 # config.status only pays attention to the cache file if you give it
18590 # the --recheck option to rerun configure.
18591 #
18592 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18593 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18594 # following values.
18595
18596 _ACEOF
18597
18598 # The following way of writing the cache mishandles newlines in values,
18599 # but we know of no workaround that is simple, portable, and efficient.
18600 # So, we kill variables containing newlines.
18601 # Ultrix sh set writes to stderr and can't be redirected directly,
18602 # and sets the high bit in the cache file unless we assign to the vars.
18603 (
18604   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18605     eval ac_val=\$$ac_var
18606     case $ac_val in #(
18607     *${as_nl}*)
18608       case $ac_var in #(
18609       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18610 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18611       esac
18612       case $ac_var in #(
18613       _ | IFS | as_nl) ;; #(
18614       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18615       *) { eval $ac_var=; unset $ac_var;} ;;
18616       esac ;;
18617     esac
18618   done
18619
18620   (set) 2>&1 |
18621     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18622     *${as_nl}ac_space=\ *)
18623       # `set' does not quote correctly, so add quotes: double-quote
18624       # substitution turns \\\\ into \\, and sed turns \\ into \.
18625       sed -n \
18626         "s/'/'\\\\''/g;
18627           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18628       ;; #(
18629     *)
18630       # `set' quotes correctly as required by POSIX, so do not add quotes.
18631       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18632       ;;
18633     esac |
18634     sort
18635 ) |
18636   sed '
18637      /^ac_cv_env_/b end
18638      t clear
18639      :clear
18640      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18641      t end
18642      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18643      :end' >>confcache
18644 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18645   if test -w "$cache_file"; then
18646     if test "x$cache_file" != "x/dev/null"; then
18647       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18648 $as_echo "$as_me: updating cache $cache_file" >&6;}
18649       if test ! -f "$cache_file" || test -h "$cache_file"; then
18650         cat confcache >"$cache_file"
18651       else
18652         case $cache_file in #(
18653         */* | ?:*)
18654           mv -f confcache "$cache_file"$$ &&
18655           mv -f "$cache_file"$$ "$cache_file" ;; #(
18656         *)
18657           mv -f confcache "$cache_file" ;;
18658         esac
18659       fi
18660     fi
18661   else
18662     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18663 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18664   fi
18665 fi
18666 rm -f confcache
18667
18668 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18669 # Let make expand exec_prefix.
18670 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18671
18672 # Transform confdefs.h into DEFS.
18673 # Protect against shell expansion while executing Makefile rules.
18674 # Protect against Makefile macro expansion.
18675 #
18676 # If the first sed substitution is executed (which looks for macros that
18677 # take arguments), then branch to the quote section.  Otherwise,
18678 # look for a macro that doesn't take arguments.
18679 ac_script='
18680 :mline
18681 /\\$/{
18682  N
18683  s,\\\n,,
18684  b mline
18685 }
18686 t clear
18687 :clear
18688 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
18689 t quote
18690 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
18691 t quote
18692 b any
18693 :quote
18694 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18695 s/\[/\\&/g
18696 s/\]/\\&/g
18697 s/\$/$$/g
18698 H
18699 :any
18700 ${
18701         g
18702         s/^\n//
18703         s/\n/ /g
18704         p
18705 }
18706 '
18707 DEFS=`sed -n "$ac_script" confdefs.h`
18708
18709
18710 ac_libobjs=
18711 ac_ltlibobjs=
18712 U=
18713 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18714   # 1. Remove the extension, and $U if already installed.
18715   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18716   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18717   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18718   #    will be set to the directory where LIBOBJS objects are built.
18719   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18720   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18721 done
18722 LIBOBJS=$ac_libobjs
18723
18724 LTLIBOBJS=$ac_ltlibobjs
18725
18726
18727
18728 : "${CONFIG_STATUS=./config.status}"
18729 ac_write_fail=0
18730 ac_clean_files_save=$ac_clean_files
18731 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18733 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18734 as_write_fail=0
18735 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18736 #! $SHELL
18737 # Generated by $as_me.
18738 # Run this file to recreate the current configuration.
18739 # Compiler output produced by configure, useful for debugging
18740 # configure, is in config.log if it exists.
18741
18742 debug=false
18743 ac_cs_recheck=false
18744 ac_cs_silent=false
18745
18746 SHELL=\${CONFIG_SHELL-$SHELL}
18747 export SHELL
18748 _ASEOF
18749 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18750 ## -------------------- ##
18751 ## M4sh Initialization. ##
18752 ## -------------------- ##
18753
18754 # Be more Bourne compatible
18755 DUALCASE=1; export DUALCASE # for MKS sh
18756 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18757   emulate sh
18758   NULLCMD=:
18759   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18760   # is contrary to our usage.  Disable this feature.
18761   alias -g '${1+"$@"}'='"$@"'
18762   setopt NO_GLOB_SUBST
18763 else
18764   case `(set -o) 2>/dev/null` in #(
18765   *posix*) :
18766     set -o posix ;; #(
18767   *) :
18768      ;;
18769 esac
18770 fi
18771
18772
18773 as_nl='
18774 '
18775 export as_nl
18776 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18777 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18778 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18779 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18780 # Prefer a ksh shell builtin over an external printf program on Solaris,
18781 # but without wasting forks for bash or zsh.
18782 if test -z "$BASH_VERSION$ZSH_VERSION" \
18783     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18784   as_echo='print -r --'
18785   as_echo_n='print -rn --'
18786 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18787   as_echo='printf %s\n'
18788   as_echo_n='printf %s'
18789 else
18790   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18791     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18792     as_echo_n='/usr/ucb/echo -n'
18793   else
18794     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18795     as_echo_n_body='eval
18796       arg=$1;
18797       case $arg in #(
18798       *"$as_nl"*)
18799         expr "X$arg" : "X\\(.*\\)$as_nl";
18800         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18801       esac;
18802       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18803     '
18804     export as_echo_n_body
18805     as_echo_n='sh -c $as_echo_n_body as_echo'
18806   fi
18807   export as_echo_body
18808   as_echo='sh -c $as_echo_body as_echo'
18809 fi
18810
18811 # The user is always right.
18812 if test "${PATH_SEPARATOR+set}" != set; then
18813   PATH_SEPARATOR=:
18814   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18815     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18816       PATH_SEPARATOR=';'
18817   }
18818 fi
18819
18820
18821 # IFS
18822 # We need space, tab and new line, in precisely that order.  Quoting is
18823 # there to prevent editors from complaining about space-tab.
18824 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18825 # splitting by setting IFS to empty value.)
18826 IFS=" ""        $as_nl"
18827
18828 # Find who we are.  Look in the path if we contain no directory separator.
18829 as_myself=
18830 case $0 in #((
18831   *[\\/]* ) as_myself=$0 ;;
18832   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18833 for as_dir in $PATH
18834 do
18835   IFS=$as_save_IFS
18836   test -z "$as_dir" && as_dir=.
18837     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18838   done
18839 IFS=$as_save_IFS
18840
18841      ;;
18842 esac
18843 # We did not find ourselves, most probably we were run as `sh COMMAND'
18844 # in which case we are not to be found in the path.
18845 if test "x$as_myself" = x; then
18846   as_myself=$0
18847 fi
18848 if test ! -f "$as_myself"; then
18849   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18850   exit 1
18851 fi
18852
18853 # Unset variables that we do not need and which cause bugs (e.g. in
18854 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18855 # suppresses any "Segmentation fault" message there.  '((' could
18856 # trigger a bug in pdksh 5.2.14.
18857 for as_var in BASH_ENV ENV MAIL MAILPATH
18858 do eval test x\${$as_var+set} = xset \
18859   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18860 done
18861 PS1='$ '
18862 PS2='> '
18863 PS4='+ '
18864
18865 # NLS nuisances.
18866 LC_ALL=C
18867 export LC_ALL
18868 LANGUAGE=C
18869 export LANGUAGE
18870
18871 # CDPATH.
18872 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18873
18874
18875 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18876 # ----------------------------------------
18877 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18878 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18879 # script with STATUS, using 1 if that was 0.
18880 as_fn_error ()
18881 {
18882   as_status=$1; test $as_status -eq 0 && as_status=1
18883   if test "$4"; then
18884     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18885     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18886   fi
18887   $as_echo "$as_me: error: $2" >&2
18888   as_fn_exit $as_status
18889 } # as_fn_error
18890
18891
18892 # as_fn_set_status STATUS
18893 # -----------------------
18894 # Set $? to STATUS, without forking.
18895 as_fn_set_status ()
18896 {
18897   return $1
18898 } # as_fn_set_status
18899
18900 # as_fn_exit STATUS
18901 # -----------------
18902 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18903 as_fn_exit ()
18904 {
18905   set +e
18906   as_fn_set_status $1
18907   exit $1
18908 } # as_fn_exit
18909
18910 # as_fn_unset VAR
18911 # ---------------
18912 # Portably unset VAR.
18913 as_fn_unset ()
18914 {
18915   { eval $1=; unset $1;}
18916 }
18917 as_unset=as_fn_unset
18918 # as_fn_append VAR VALUE
18919 # ----------------------
18920 # Append the text in VALUE to the end of the definition contained in VAR. Take
18921 # advantage of any shell optimizations that allow amortized linear growth over
18922 # repeated appends, instead of the typical quadratic growth present in naive
18923 # implementations.
18924 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18925   eval 'as_fn_append ()
18926   {
18927     eval $1+=\$2
18928   }'
18929 else
18930   as_fn_append ()
18931   {
18932     eval $1=\$$1\$2
18933   }
18934 fi # as_fn_append
18935
18936 # as_fn_arith ARG...
18937 # ------------------
18938 # Perform arithmetic evaluation on the ARGs, and store the result in the
18939 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18940 # must be portable across $(()) and expr.
18941 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18942   eval 'as_fn_arith ()
18943   {
18944     as_val=$(( $* ))
18945   }'
18946 else
18947   as_fn_arith ()
18948   {
18949     as_val=`expr "$@" || test $? -eq 1`
18950   }
18951 fi # as_fn_arith
18952
18953
18954 if expr a : '\(a\)' >/dev/null 2>&1 &&
18955    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18956   as_expr=expr
18957 else
18958   as_expr=false
18959 fi
18960
18961 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18962   as_basename=basename
18963 else
18964   as_basename=false
18965 fi
18966
18967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18968   as_dirname=dirname
18969 else
18970   as_dirname=false
18971 fi
18972
18973 as_me=`$as_basename -- "$0" ||
18974 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18975          X"$0" : 'X\(//\)$' \| \
18976          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18977 $as_echo X/"$0" |
18978     sed '/^.*\/\([^/][^/]*\)\/*$/{
18979             s//\1/
18980             q
18981           }
18982           /^X\/\(\/\/\)$/{
18983             s//\1/
18984             q
18985           }
18986           /^X\/\(\/\).*/{
18987             s//\1/
18988             q
18989           }
18990           s/.*/./; q'`
18991
18992 # Avoid depending upon Character Ranges.
18993 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18994 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18995 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18996 as_cr_digits='0123456789'
18997 as_cr_alnum=$as_cr_Letters$as_cr_digits
18998
18999 ECHO_C= ECHO_N= ECHO_T=
19000 case `echo -n x` in #(((((
19001 -n*)
19002   case `echo 'xy\c'` in
19003   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19004   xy)  ECHO_C='\c';;
19005   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19006        ECHO_T=' ';;
19007   esac;;
19008 *)
19009   ECHO_N='-n';;
19010 esac
19011
19012 rm -f conf$$ conf$$.exe conf$$.file
19013 if test -d conf$$.dir; then
19014   rm -f conf$$.dir/conf$$.file
19015 else
19016   rm -f conf$$.dir
19017   mkdir conf$$.dir 2>/dev/null
19018 fi
19019 if (echo >conf$$.file) 2>/dev/null; then
19020   if ln -s conf$$.file conf$$ 2>/dev/null; then
19021     as_ln_s='ln -s'
19022     # ... but there are two gotchas:
19023     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19024     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19025     # In both cases, we have to default to `cp -pR'.
19026     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19027       as_ln_s='cp -pR'
19028   elif ln conf$$.file conf$$ 2>/dev/null; then
19029     as_ln_s=ln
19030   else
19031     as_ln_s='cp -pR'
19032   fi
19033 else
19034   as_ln_s='cp -pR'
19035 fi
19036 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19037 rmdir conf$$.dir 2>/dev/null
19038
19039
19040 # as_fn_mkdir_p
19041 # -------------
19042 # Create "$as_dir" as a directory, including parents if necessary.
19043 as_fn_mkdir_p ()
19044 {
19045
19046   case $as_dir in #(
19047   -*) as_dir=./$as_dir;;
19048   esac
19049   test -d "$as_dir" || eval $as_mkdir_p || {
19050     as_dirs=
19051     while :; do
19052       case $as_dir in #(
19053       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19054       *) as_qdir=$as_dir;;
19055       esac
19056       as_dirs="'$as_qdir' $as_dirs"
19057       as_dir=`$as_dirname -- "$as_dir" ||
19058 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19059          X"$as_dir" : 'X\(//\)[^/]' \| \
19060          X"$as_dir" : 'X\(//\)$' \| \
19061          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19062 $as_echo X"$as_dir" |
19063     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19064             s//\1/
19065             q
19066           }
19067           /^X\(\/\/\)[^/].*/{
19068             s//\1/
19069             q
19070           }
19071           /^X\(\/\/\)$/{
19072             s//\1/
19073             q
19074           }
19075           /^X\(\/\).*/{
19076             s//\1/
19077             q
19078           }
19079           s/.*/./; q'`
19080       test -d "$as_dir" && break
19081     done
19082     test -z "$as_dirs" || eval "mkdir $as_dirs"
19083   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19084
19085
19086 } # as_fn_mkdir_p
19087 if mkdir -p . 2>/dev/null; then
19088   as_mkdir_p='mkdir -p "$as_dir"'
19089 else
19090   test -d ./-p && rmdir ./-p
19091   as_mkdir_p=false
19092 fi
19093
19094
19095 # as_fn_executable_p FILE
19096 # -----------------------
19097 # Test if FILE is an executable regular file.
19098 as_fn_executable_p ()
19099 {
19100   test -f "$1" && test -x "$1"
19101 } # as_fn_executable_p
19102 as_test_x='test -x'
19103 as_executable_p=as_fn_executable_p
19104
19105 # Sed expression to map a string onto a valid CPP name.
19106 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19107
19108 # Sed expression to map a string onto a valid variable name.
19109 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19110
19111
19112 exec 6>&1
19113 ## ----------------------------------- ##
19114 ## Main body of $CONFIG_STATUS script. ##
19115 ## ----------------------------------- ##
19116 _ASEOF
19117 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19118
19119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19120 # Save the log message, to keep $0 and so on meaningful, and to
19121 # report actual input values of CONFIG_FILES etc. instead of their
19122 # values after options handling.
19123 ac_log="
19124 This file was extended by $as_me, which was
19125 generated by GNU Autoconf 2.69.  Invocation command line was
19126
19127   CONFIG_FILES    = $CONFIG_FILES
19128   CONFIG_HEADERS  = $CONFIG_HEADERS
19129   CONFIG_LINKS    = $CONFIG_LINKS
19130   CONFIG_COMMANDS = $CONFIG_COMMANDS
19131   $ $0 $@
19132
19133 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19134 "
19135
19136 _ACEOF
19137
19138 case $ac_config_files in *"
19139 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19140 esac
19141
19142
19143
19144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19145 # Files that config.status was made for.
19146 config_files="$ac_config_files"
19147
19148 _ACEOF
19149
19150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19151 ac_cs_usage="\
19152 \`$as_me' instantiates files and other configuration actions
19153 from templates according to the current configuration.  Unless the files
19154 and actions are specified as TAGs, all are instantiated by default.
19155
19156 Usage: $0 [OPTION]... [TAG]...
19157
19158   -h, --help       print this help, then exit
19159   -V, --version    print version number and configuration settings, then exit
19160       --config     print configuration, then exit
19161   -q, --quiet, --silent
19162                    do not print progress messages
19163   -d, --debug      don't remove temporary files
19164       --recheck    update $as_me by reconfiguring in the same conditions
19165       --file=FILE[:TEMPLATE]
19166                    instantiate the configuration file FILE
19167
19168 Configuration files:
19169 $config_files
19170
19171 Report bugs to the package provider."
19172
19173 _ACEOF
19174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19175 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19176 ac_cs_version="\\
19177 config.status
19178 configured by $0, generated by GNU Autoconf 2.69,
19179   with options \\"\$ac_cs_config\\"
19180
19181 Copyright (C) 2012 Free Software Foundation, Inc.
19182 This config.status script is free software; the Free Software Foundation
19183 gives unlimited permission to copy, distribute and modify it."
19184
19185 ac_pwd='$ac_pwd'
19186 srcdir='$srcdir'
19187 INSTALL='$INSTALL'
19188 AWK='$AWK'
19189 test -n "\$AWK" || AWK=awk
19190 _ACEOF
19191
19192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19193 # The default lists apply if the user does not specify any file.
19194 ac_need_defaults=:
19195 while test $# != 0
19196 do
19197   case $1 in
19198   --*=?*)
19199     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19200     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19201     ac_shift=:
19202     ;;
19203   --*=)
19204     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19205     ac_optarg=
19206     ac_shift=:
19207     ;;
19208   *)
19209     ac_option=$1
19210     ac_optarg=$2
19211     ac_shift=shift
19212     ;;
19213   esac
19214
19215   case $ac_option in
19216   # Handling of the options.
19217   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19218     ac_cs_recheck=: ;;
19219   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19220     $as_echo "$ac_cs_version"; exit ;;
19221   --config | --confi | --conf | --con | --co | --c )
19222     $as_echo "$ac_cs_config"; exit ;;
19223   --debug | --debu | --deb | --de | --d | -d )
19224     debug=: ;;
19225   --file | --fil | --fi | --f )
19226     $ac_shift
19227     case $ac_optarg in
19228     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19229     '') as_fn_error $? "missing file argument" ;;
19230     esac
19231     as_fn_append CONFIG_FILES " '$ac_optarg'"
19232     ac_need_defaults=false;;
19233   --he | --h |  --help | --hel | -h )
19234     $as_echo "$ac_cs_usage"; exit ;;
19235   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19236   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19237     ac_cs_silent=: ;;
19238
19239   # This is an error.
19240   -*) as_fn_error $? "unrecognized option: \`$1'
19241 Try \`$0 --help' for more information." ;;
19242
19243   *) as_fn_append ac_config_targets " $1"
19244      ac_need_defaults=false ;;
19245
19246   esac
19247   shift
19248 done
19249
19250 ac_configure_extra_args=
19251
19252 if $ac_cs_silent; then
19253   exec 6>/dev/null
19254   ac_configure_extra_args="$ac_configure_extra_args --silent"
19255 fi
19256
19257 _ACEOF
19258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19259 if \$ac_cs_recheck; then
19260   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19261   shift
19262   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19263   CONFIG_SHELL='$SHELL'
19264   export CONFIG_SHELL
19265   exec "\$@"
19266 fi
19267
19268 _ACEOF
19269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19270 exec 5>>config.log
19271 {
19272   echo
19273   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19274 ## Running $as_me. ##
19275 _ASBOX
19276   $as_echo "$ac_log"
19277 } >&5
19278
19279 _ACEOF
19280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19281 #
19282 # INIT-COMMANDS
19283 #
19284 extrasub_build="$extrasub_build"
19285    extrasub_host="$extrasub_host"
19286    extrasub_target="$extrasub_target"
19287
19288 _ACEOF
19289
19290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19291
19292 # Handling of arguments.
19293 for ac_config_target in $ac_config_targets
19294 do
19295   case $ac_config_target in
19296     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19297
19298   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19299   esac
19300 done
19301
19302
19303 # If the user did not use the arguments to specify the items to instantiate,
19304 # then the envvar interface is used.  Set only those that are not.
19305 # We use the long form for the default assignment because of an extremely
19306 # bizarre bug on SunOS 4.1.3.
19307 if $ac_need_defaults; then
19308   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19309 fi
19310
19311 # Have a temporary directory for convenience.  Make it in the build tree
19312 # simply because there is no reason against having it here, and in addition,
19313 # creating and moving files from /tmp can sometimes cause problems.
19314 # Hook for its removal unless debugging.
19315 # Note that there is a small window in which the directory will not be cleaned:
19316 # after its creation but before its name has been assigned to `$tmp'.
19317 $debug ||
19318 {
19319   tmp= ac_tmp=
19320   trap 'exit_status=$?
19321   : "${ac_tmp:=$tmp}"
19322   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19323 ' 0
19324   trap 'as_fn_exit 1' 1 2 13 15
19325 }
19326 # Create a (secure) tmp directory for tmp files.
19327
19328 {
19329   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19330   test -d "$tmp"
19331 }  ||
19332 {
19333   tmp=./conf$$-$RANDOM
19334   (umask 077 && mkdir "$tmp")
19335 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19336 ac_tmp=$tmp
19337
19338 # Set up the scripts for CONFIG_FILES section.
19339 # No need to generate them if there are no CONFIG_FILES.
19340 # This happens for instance with `./config.status config.h'.
19341 if test -n "$CONFIG_FILES"; then
19342
19343 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19344   ac_cs_awk_getline=:
19345   ac_cs_awk_pipe_init=
19346   ac_cs_awk_read_file='
19347       while ((getline aline < (F[key])) > 0)
19348         print(aline)
19349       close(F[key])'
19350   ac_cs_awk_pipe_fini=
19351 else
19352   ac_cs_awk_getline=false
19353   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19354   ac_cs_awk_read_file='
19355       print "|#_!!_#|"
19356       print "cat " F[key] " &&"
19357       '$ac_cs_awk_pipe_init
19358   # The final `:' finishes the AND list.
19359   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19360 fi
19361 ac_cr=`echo X | tr X '\015'`
19362 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19363 # But we know of no other shell where ac_cr would be empty at this
19364 # point, so we can use a bashism as a fallback.
19365 if test "x$ac_cr" = x; then
19366   eval ac_cr=\$\'\\r\'
19367 fi
19368 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19369 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19370   ac_cs_awk_cr='\\r'
19371 else
19372   ac_cs_awk_cr=$ac_cr
19373 fi
19374
19375 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19376 _ACEOF
19377
19378 # Create commands to substitute file output variables.
19379 {
19380   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19381   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19382   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19383   echo "_ACAWK" &&
19384   echo "_ACEOF"
19385 } >conf$$files.sh &&
19386 . ./conf$$files.sh ||
19387   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19388 rm -f conf$$files.sh
19389
19390 {
19391   echo "cat >conf$$subs.awk <<_ACEOF" &&
19392   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19393   echo "_ACEOF"
19394 } >conf$$subs.sh ||
19395   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19396 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19397 ac_delim='%!_!# '
19398 for ac_last_try in false false false false false :; do
19399   . ./conf$$subs.sh ||
19400     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19401
19402   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19403   if test $ac_delim_n = $ac_delim_num; then
19404     break
19405   elif $ac_last_try; then
19406     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19407   else
19408     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19409   fi
19410 done
19411 rm -f conf$$subs.sh
19412
19413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19414 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19415 _ACEOF
19416 sed -n '
19417 h
19418 s/^/S["/; s/!.*/"]=/
19419 p
19420 g
19421 s/^[^!]*!//
19422 :repl
19423 t repl
19424 s/'"$ac_delim"'$//
19425 t delim
19426 :nl
19427 h
19428 s/\(.\{148\}\)..*/\1/
19429 t more1
19430 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19431 p
19432 n
19433 b repl
19434 :more1
19435 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19436 p
19437 g
19438 s/.\{148\}//
19439 t nl
19440 :delim
19441 h
19442 s/\(.\{148\}\)..*/\1/
19443 t more2
19444 s/["\\]/\\&/g; s/^/"/; s/$/"/
19445 p
19446 b
19447 :more2
19448 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19449 p
19450 g
19451 s/.\{148\}//
19452 t delim
19453 ' <conf$$subs.awk | sed '
19454 /^[^""]/{
19455   N
19456   s/\n//
19457 }
19458 ' >>$CONFIG_STATUS || ac_write_fail=1
19459 rm -f conf$$subs.awk
19460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19461 _ACAWK
19462 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19463   for (key in S) S_is_set[key] = 1
19464   FS = "\a"
19465   \$ac_cs_awk_pipe_init
19466 }
19467 {
19468   line = $ 0
19469   nfields = split(line, field, "@")
19470   substed = 0
19471   len = length(field[1])
19472   for (i = 2; i < nfields; i++) {
19473     key = field[i]
19474     keylen = length(key)
19475     if (S_is_set[key]) {
19476       value = S[key]
19477       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19478       len += length(value) + length(field[++i])
19479       substed = 1
19480     } else
19481       len += 1 + keylen
19482   }
19483   if (nfields == 3 && !substed) {
19484     key = field[2]
19485     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
19486       \$ac_cs_awk_read_file
19487       next
19488     }
19489   }
19490   print line
19491 }
19492 \$ac_cs_awk_pipe_fini
19493 _ACAWK
19494 _ACEOF
19495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19496 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19497   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19498 else
19499   cat
19500 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19501   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19502 _ACEOF
19503
19504 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19505 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19506 # trailing colons and then remove the whole line if VPATH becomes empty
19507 # (actually we leave an empty line to preserve line numbers).
19508 if test "x$srcdir" = x.; then
19509   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19510 h
19511 s///
19512 s/^/:/
19513 s/[      ]*$/:/
19514 s/:\$(srcdir):/:/g
19515 s/:\${srcdir}:/:/g
19516 s/:@srcdir@:/:/g
19517 s/^:*//
19518 s/:*$//
19519 x
19520 s/\(=[   ]*\).*/\1/
19521 G
19522 s/\n//
19523 s/^[^=]*=[       ]*$//
19524 }'
19525 fi
19526
19527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19528 fi # test -n "$CONFIG_FILES"
19529
19530
19531 eval set X "  :F $CONFIG_FILES      "
19532 shift
19533 for ac_tag
19534 do
19535   case $ac_tag in
19536   :[FHLC]) ac_mode=$ac_tag; continue;;
19537   esac
19538   case $ac_mode$ac_tag in
19539   :[FHL]*:*);;
19540   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19541   :[FH]-) ac_tag=-:-;;
19542   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19543   esac
19544   ac_save_IFS=$IFS
19545   IFS=:
19546   set x $ac_tag
19547   IFS=$ac_save_IFS
19548   shift
19549   ac_file=$1
19550   shift
19551
19552   case $ac_mode in
19553   :L) ac_source=$1;;
19554   :[FH])
19555     ac_file_inputs=
19556     for ac_f
19557     do
19558       case $ac_f in
19559       -) ac_f="$ac_tmp/stdin";;
19560       *) # Look for the file first in the build tree, then in the source tree
19561          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19562          # because $ac_f cannot contain `:'.
19563          test -f "$ac_f" ||
19564            case $ac_f in
19565            [\\/$]*) false;;
19566            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19567            esac ||
19568            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19569       esac
19570       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19571       as_fn_append ac_file_inputs " '$ac_f'"
19572     done
19573
19574     # Let's still pretend it is `configure' which instantiates (i.e., don't
19575     # use $as_me), people would be surprised to read:
19576     #    /* config.h.  Generated by config.status.  */
19577     configure_input='Generated from '`
19578           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19579         `' by configure.'
19580     if test x"$ac_file" != x-; then
19581       configure_input="$ac_file.  $configure_input"
19582       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19583 $as_echo "$as_me: creating $ac_file" >&6;}
19584     fi
19585     # Neutralize special characters interpreted by sed in replacement strings.
19586     case $configure_input in #(
19587     *\&* | *\|* | *\\* )
19588        ac_sed_conf_input=`$as_echo "$configure_input" |
19589        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19590     *) ac_sed_conf_input=$configure_input;;
19591     esac
19592
19593     case $ac_tag in
19594     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19595       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19596     esac
19597     ;;
19598   esac
19599
19600   ac_dir=`$as_dirname -- "$ac_file" ||
19601 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19602          X"$ac_file" : 'X\(//\)[^/]' \| \
19603          X"$ac_file" : 'X\(//\)$' \| \
19604          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19605 $as_echo X"$ac_file" |
19606     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19607             s//\1/
19608             q
19609           }
19610           /^X\(\/\/\)[^/].*/{
19611             s//\1/
19612             q
19613           }
19614           /^X\(\/\/\)$/{
19615             s//\1/
19616             q
19617           }
19618           /^X\(\/\).*/{
19619             s//\1/
19620             q
19621           }
19622           s/.*/./; q'`
19623   as_dir="$ac_dir"; as_fn_mkdir_p
19624   ac_builddir=.
19625
19626 case "$ac_dir" in
19627 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19628 *)
19629   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19630   # A ".." for each directory in $ac_dir_suffix.
19631   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19632   case $ac_top_builddir_sub in
19633   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19634   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19635   esac ;;
19636 esac
19637 ac_abs_top_builddir=$ac_pwd
19638 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19639 # for backward compatibility:
19640 ac_top_builddir=$ac_top_build_prefix
19641
19642 case $srcdir in
19643   .)  # We are building in place.
19644     ac_srcdir=.
19645     ac_top_srcdir=$ac_top_builddir_sub
19646     ac_abs_top_srcdir=$ac_pwd ;;
19647   [\\/]* | ?:[\\/]* )  # Absolute name.
19648     ac_srcdir=$srcdir$ac_dir_suffix;
19649     ac_top_srcdir=$srcdir
19650     ac_abs_top_srcdir=$srcdir ;;
19651   *) # Relative name.
19652     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19653     ac_top_srcdir=$ac_top_build_prefix$srcdir
19654     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19655 esac
19656 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19657
19658
19659   case $ac_mode in
19660   :F)
19661   #
19662   # CONFIG_FILE
19663   #
19664
19665   case $INSTALL in
19666   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19667   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19668   esac
19669 _ACEOF
19670
19671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19672 # If the template does not know about datarootdir, expand it.
19673 # FIXME: This hack should be removed a few years after 2.60.
19674 ac_datarootdir_hack=; ac_datarootdir_seen=
19675 ac_sed_dataroot='
19676 /datarootdir/ {
19677   p
19678   q
19679 }
19680 /@datadir@/p
19681 /@docdir@/p
19682 /@infodir@/p
19683 /@localedir@/p
19684 /@mandir@/p'
19685 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19686 *datarootdir*) ac_datarootdir_seen=yes;;
19687 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19688   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19689 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19690 _ACEOF
19691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19692   ac_datarootdir_hack='
19693   s&@datadir@&$datadir&g
19694   s&@docdir@&$docdir&g
19695   s&@infodir@&$infodir&g
19696   s&@localedir@&$localedir&g
19697   s&@mandir@&$mandir&g
19698   s&\\\${datarootdir}&$datarootdir&g' ;;
19699 esac
19700 _ACEOF
19701
19702 # Neutralize VPATH when `$srcdir' = `.'.
19703 # Shell code in configure.ac might set extrasub.
19704 # FIXME: do we really want to maintain this feature?
19705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19706 ac_sed_extra="$ac_vpsub
19707 $extrasub
19708 _ACEOF
19709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19710 :t
19711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19712 s|@configure_input@|$ac_sed_conf_input|;t t
19713 s&@top_builddir@&$ac_top_builddir_sub&;t t
19714 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19715 s&@srcdir@&$ac_srcdir&;t t
19716 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19717 s&@top_srcdir@&$ac_top_srcdir&;t t
19718 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19719 s&@builddir@&$ac_builddir&;t t
19720 s&@abs_builddir@&$ac_abs_builddir&;t t
19721 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19722 s&@INSTALL@&$ac_INSTALL&;t t
19723 $ac_datarootdir_hack
19724 "
19725 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19726 if $ac_cs_awk_getline; then
19727   $AWK -f "$ac_tmp/subs.awk"
19728 else
19729   $AWK -f "$ac_tmp/subs.awk" | $SHELL
19730 fi \
19731   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19732
19733 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19734   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19735   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19736       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19737   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19738 which seems to be undefined.  Please make sure it is defined" >&5
19739 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19740 which seems to be undefined.  Please make sure it is defined" >&2;}
19741
19742   rm -f "$ac_tmp/stdin"
19743   case $ac_file in
19744   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19745   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19746   esac \
19747   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19748  ;;
19749
19750
19751
19752   esac
19753
19754
19755   case $ac_file$ac_mode in
19756     "Makefile":F) sed "$extrasub_build" Makefile |
19757    sed "$extrasub_host" |
19758    sed "$extrasub_target" > mf$$
19759    mv -f mf$$ Makefile ;;
19760
19761   esac
19762 done # for ac_tag
19763
19764
19765 as_fn_exit 0
19766 _ACEOF
19767 ac_clean_files=$ac_clean_files_save
19768
19769 test $ac_write_fail = 0 ||
19770   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19771
19772
19773 # configure is writing to config.log, and then calls config.status.
19774 # config.status does its own redirection, appending to config.log.
19775 # Unfortunately, on DOS this fails, as config.log is still kept open
19776 # by configure, so config.status won't be able to write to it; its
19777 # output is simply discarded.  So we exec the FD to /dev/null,
19778 # effectively closing config.log, so it can be properly (re)opened and
19779 # appended to by config.status.  When coming back to configure, we
19780 # need to make the FD available again.
19781 if test "$no_create" != yes; then
19782   ac_cs_success=:
19783   ac_config_status_args=
19784   test "$silent" = yes &&
19785     ac_config_status_args="$ac_config_status_args --quiet"
19786   exec 5>/dev/null
19787   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19788   exec 5>>config.log
19789   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19790   # would make configure fail if this is the last instruction.
19791   $ac_cs_success || as_fn_exit 1
19792 fi
19793 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19794   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19795 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19796 fi
19797