xref: /netbsd-src/external/gpl3/gcc/dist/configure (revision 4fe0f936ff464bca8e6277bde90f477ef5a4d004)
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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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  }
79fi
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.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
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
100IFS=$as_save_IFS
101
102     ;;
103esac
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.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
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.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export 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.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $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
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if 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
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -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
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
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
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
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
234fi; }
235IFS=$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.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $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
257exit 255
258fi
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
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_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.
305as_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.
315as_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.
363as_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.
373if (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  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # 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.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # 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.
408as_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
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_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.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_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
500ECHO_C= ECHO_N= ECHO_T=
501case `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';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (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
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_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.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 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.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="move-if-change"
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
590stage2_werror_flag
591stage1_checking
592stage1_cflags
593MAINT
594MAINTAINER_MODE_FALSE
595MAINTAINER_MODE_TRUE
596COMPILER_NM_FOR_TARGET
597COMPILER_LD_FOR_TARGET
598COMPILER_AS_FOR_TARGET
599FLAGS_FOR_TARGET
600RAW_CXX_FOR_TARGET
601WINDMC_FOR_TARGET
602WINDRES_FOR_TARGET
603STRIP_FOR_TARGET
604READELF_FOR_TARGET
605RANLIB_FOR_TARGET
606OTOOL_FOR_TARGET
607OBJDUMP_FOR_TARGET
608OBJCOPY_FOR_TARGET
609NM_FOR_TARGET
610LIPO_FOR_TARGET
611LD_FOR_TARGET
612DSYMUTIL_FOR_TARGET
613DLLTOOL_FOR_TARGET
614AS_FOR_TARGET
615AR_FOR_TARGET
616GDC_FOR_TARGET
617GOC_FOR_TARGET
618GFORTRAN_FOR_TARGET
619GCC_FOR_TARGET
620CXX_FOR_TARGET
621CC_FOR_TARGET
622GDCFLAGS
623READELF
624OTOOL
625OBJDUMP
626OBJCOPY
627WINDMC
628WINDRES
629STRIP
630RANLIB
631NM
632LIPO
633LD
634DSYMUTIL
635DLLTOOL
636AS
637AR
638RUNTEST
639EXPECT
640MAKEINFO
641FLEX
642LEX
643M4
644BISON
645YACC
646WINDRES_FOR_BUILD
647WINDMC_FOR_BUILD
648RANLIB_FOR_BUILD
649NM_FOR_BUILD
650LD_FOR_BUILD
651LDFLAGS_FOR_BUILD
652GDC_FOR_BUILD
653GOC_FOR_BUILD
654GFORTRAN_FOR_BUILD
655DSYMUTIL_FOR_BUILD
656DLLTOOL_FOR_BUILD
657CXX_FOR_BUILD
658CXXFLAGS_FOR_BUILD
659CPPFLAGS_FOR_BUILD
660CPP_FOR_BUILD
661CFLAGS_FOR_BUILD
662CC_FOR_BUILD
663AS_FOR_BUILD
664AR_FOR_BUILD
665target_configdirs
666configdirs
667build_configdirs
668INSTALL_GDB_TK
669GDB_TK
670CONFIGURE_GDB_TK
671build_tooldir
672tooldir
673GCC_SHLIB_SUBDIR
674RPATH_ENVVAR
675target_configargs
676host_configargs
677build_configargs
678BUILD_CONFIG
679LDFLAGS_FOR_TARGET
680CXXFLAGS_FOR_TARGET
681CFLAGS_FOR_TARGET
682DEBUG_PREFIX_CFLAGS_FOR_TARGET
683SYSROOT_CFLAGS_FOR_TARGET
684get_gcc_base_ver
685extra_host_zlib_configure_flags
686extra_host_libiberty_configure_flags
687stage1_languages
688host_shared
689extra_linker_plugin_flags
690extra_linker_plugin_configure_flags
691islinc
692isllibs
693poststage1_ldflags
694poststage1_libs
695stage1_ldflags
696stage1_libs
697extra_isl_gmp_configure_flags
698extra_mpc_mpfr_configure_flags
699extra_mpc_gmp_configure_flags
700extra_mpfr_configure_flags
701gmpinc
702gmplibs
703PGO_BUILD_LTO_CFLAGS
704PGO_BUILD_USE_CFLAGS
705PGO_BUILD_GEN_CFLAGS
706HAVE_CXX11_FOR_BUILD
707HAVE_CXX11
708do_compare
709GDC
710GNATMAKE
711GNATBIND
712ac_ct_CXX
713CXXFLAGS
714CXX
715OBJEXT
716EXEEXT
717ac_ct_CC
718CPPFLAGS
719LDFLAGS
720CFLAGS
721CC
722extra_liboffloadmic_configure_flags
723target_subdir
724host_subdir
725build_subdir
726build_libsubdir
727AWK
728SED
729LN_S
730LN
731INSTALL_DATA
732INSTALL_SCRIPT
733INSTALL_PROGRAM
734target_os
735target_vendor
736target_cpu
737target
738host_os
739host_vendor
740host_cpu
741host
742target_noncanonical
743host_noncanonical
744build_noncanonical
745build_os
746build_vendor
747build_cpu
748build
749TOPLEVEL_CONFIGURE_ARGUMENTS
750target_alias
751host_alias
752build_alias
753LIBS
754ECHO_T
755ECHO_N
756ECHO_C
757DEFS
758mandir
759localedir
760libdir
761psdir
762pdfdir
763dvidir
764htmldir
765infodir
766docdir
767oldincludedir
768includedir
769localstatedir
770sharedstatedir
771sysconfdir
772datadir
773datarootdir
774libexecdir
775sbindir
776bindir
777program_transform_name
778prefix
779exec_prefix
780PACKAGE_URL
781PACKAGE_BUGREPORT
782PACKAGE_STRING
783PACKAGE_VERSION
784PACKAGE_TARNAME
785PACKAGE_NAME
786PATH_SEPARATOR
787SHELL'
788ac_subst_files='serialization_dependencies
789host_makefile_frag
790target_makefile_frag
791alphaieee_frag
792ospace_frag'
793ac_user_opts='
794enable_option_checking
795with_build_libsubdir
796with_system_zlib
797enable_as_accelerator_for
798enable_offload_targets
799enable_offload_defaulted
800enable_gold
801enable_ld
802enable_compressed_debug_sections
803enable_libquadmath
804enable_libquadmath_support
805enable_libada
806enable_libssp
807enable_libstdcxx
808enable_liboffloadmic
809enable_bootstrap
810enable_pgo_build
811with_mpc
812with_mpc_include
813with_mpc_lib
814with_mpfr
815with_mpfr_include
816with_mpfr_lib
817with_gmp
818with_gmp_include
819with_gmp_lib
820with_stage1_libs
821with_static_standard_libraries
822with_stage1_ldflags
823with_boot_libs
824with_boot_ldflags
825with_isl
826with_isl_include
827with_isl_lib
828enable_isl_version_check
829enable_lto
830enable_linker_plugin_configure_flags
831enable_linker_plugin_flags
832enable_host_shared
833enable_stage1_languages
834enable_objc_gc
835with_target_bdw_gc
836with_target_bdw_gc_include
837with_target_bdw_gc_lib
838with_gcc_major_version_only
839with_build_sysroot
840with_debug_prefix_map
841with_build_config
842enable_vtable_verify
843enable_serial_configure
844with_build_time_tools
845enable_maintainer_mode
846enable_stage1_checking
847enable_werror
848'
849      ac_precious_vars='build_alias
850host_alias
851target_alias
852CC
853CFLAGS
854LDFLAGS
855LIBS
856CPPFLAGS
857CXX
858CXXFLAGS
859CCC
860build_configargs
861host_configargs
862target_configargs
863AR
864AS
865DLLTOOL
866DSYMUTIL
867LD
868LIPO
869NM
870RANLIB
871STRIP
872WINDRES
873WINDMC
874OBJCOPY
875OBJDUMP
876OTOOL
877READELF
878CC_FOR_TARGET
879CXX_FOR_TARGET
880GCC_FOR_TARGET
881GFORTRAN_FOR_TARGET
882GOC_FOR_TARGET
883GDC_FOR_TARGET
884AR_FOR_TARGET
885AS_FOR_TARGET
886DLLTOOL_FOR_TARGET
887DSYMUTIL_FOR_TARGET
888LD_FOR_TARGET
889LIPO_FOR_TARGET
890NM_FOR_TARGET
891OBJCOPY_FOR_TARGET
892OBJDUMP_FOR_TARGET
893OTOOL_FOR_TARGET
894RANLIB_FOR_TARGET
895READELF_FOR_TARGET
896STRIP_FOR_TARGET
897WINDRES_FOR_TARGET
898WINDMC_FOR_TARGET'
899
900
901# Initialize some variables set by options.
902ac_init_help=
903ac_init_version=false
904ac_unrecognized_opts=
905ac_unrecognized_sep=
906# The variables have the same names as the options, with
907# dashes changed to underlines.
908cache_file=/dev/null
909exec_prefix=NONE
910no_create=
911no_recursion=
912prefix=NONE
913program_prefix=NONE
914program_suffix=NONE
915program_transform_name=s,x,x,
916silent=
917site=
918srcdir=
919verbose=
920x_includes=NONE
921x_libraries=NONE
922
923# Installation directory options.
924# These are left unexpanded so users can "make install exec_prefix=/foo"
925# and all the variables that are supposed to be based on exec_prefix
926# by default will actually change.
927# Use braces instead of parens because sh, perl, etc. also accept them.
928# (The list follows the same order as the GNU Coding Standards.)
929bindir='${exec_prefix}/bin'
930sbindir='${exec_prefix}/sbin'
931libexecdir='${exec_prefix}/libexec'
932datarootdir='${prefix}/share'
933datadir='${datarootdir}'
934sysconfdir='${prefix}/etc'
935sharedstatedir='${prefix}/com'
936localstatedir='${prefix}/var'
937includedir='${prefix}/include'
938oldincludedir='/usr/include'
939docdir='${datarootdir}/doc/${PACKAGE}'
940infodir='${datarootdir}/info'
941htmldir='${docdir}'
942dvidir='${docdir}'
943pdfdir='${docdir}'
944psdir='${docdir}'
945libdir='${exec_prefix}/lib'
946localedir='${datarootdir}/locale'
947mandir='${datarootdir}/man'
948
949ac_prev=
950ac_dashdash=
951for ac_option
952do
953  # If the previous option needs an argument, assign it.
954  if test -n "$ac_prev"; then
955    eval $ac_prev=\$ac_option
956    ac_prev=
957    continue
958  fi
959
960  case $ac_option in
961  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962  *=)   ac_optarg= ;;
963  *)    ac_optarg=yes ;;
964  esac
965
966  # Accept the important Cygnus configure options, so we can diagnose typos.
967
968  case $ac_dashdash$ac_option in
969  --)
970    ac_dashdash=yes ;;
971
972  -bindir | --bindir | --bindi | --bind | --bin | --bi)
973    ac_prev=bindir ;;
974  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975    bindir=$ac_optarg ;;
976
977  -build | --build | --buil | --bui | --bu)
978    ac_prev=build_alias ;;
979  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980    build_alias=$ac_optarg ;;
981
982  -cache-file | --cache-file | --cache-fil | --cache-fi \
983  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984    ac_prev=cache_file ;;
985  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987    cache_file=$ac_optarg ;;
988
989  --config-cache | -C)
990    cache_file=config.cache ;;
991
992  -datadir | --datadir | --datadi | --datad)
993    ac_prev=datadir ;;
994  -datadir=* | --datadir=* | --datadi=* | --datad=*)
995    datadir=$ac_optarg ;;
996
997  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998  | --dataroo | --dataro | --datar)
999    ac_prev=datarootdir ;;
1000  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002    datarootdir=$ac_optarg ;;
1003
1004  -disable-* | --disable-*)
1005    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006    # Reject names that are not valid shell variable names.
1007    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008      as_fn_error $? "invalid feature name: $ac_useropt"
1009    ac_useropt_orig=$ac_useropt
1010    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011    case $ac_user_opts in
1012      *"
1013"enable_$ac_useropt"
1014"*) ;;
1015      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016	 ac_unrecognized_sep=', ';;
1017    esac
1018    eval enable_$ac_useropt=no ;;
1019
1020  -docdir | --docdir | --docdi | --doc | --do)
1021    ac_prev=docdir ;;
1022  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023    docdir=$ac_optarg ;;
1024
1025  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026    ac_prev=dvidir ;;
1027  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028    dvidir=$ac_optarg ;;
1029
1030  -enable-* | --enable-*)
1031    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032    # Reject names that are not valid shell variable names.
1033    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034      as_fn_error $? "invalid feature name: $ac_useropt"
1035    ac_useropt_orig=$ac_useropt
1036    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037    case $ac_user_opts in
1038      *"
1039"enable_$ac_useropt"
1040"*) ;;
1041      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042	 ac_unrecognized_sep=', ';;
1043    esac
1044    eval enable_$ac_useropt=\$ac_optarg ;;
1045
1046  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048  | --exec | --exe | --ex)
1049    ac_prev=exec_prefix ;;
1050  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052  | --exec=* | --exe=* | --ex=*)
1053    exec_prefix=$ac_optarg ;;
1054
1055  -gas | --gas | --ga | --g)
1056    # Obsolete; use --with-gas.
1057    with_gas=yes ;;
1058
1059  -help | --help | --hel | --he | -h)
1060    ac_init_help=long ;;
1061  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062    ac_init_help=recursive ;;
1063  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064    ac_init_help=short ;;
1065
1066  -host | --host | --hos | --ho)
1067    ac_prev=host_alias ;;
1068  -host=* | --host=* | --hos=* | --ho=*)
1069    host_alias=$ac_optarg ;;
1070
1071  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072    ac_prev=htmldir ;;
1073  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074  | --ht=*)
1075    htmldir=$ac_optarg ;;
1076
1077  -includedir | --includedir | --includedi | --included | --include \
1078  | --includ | --inclu | --incl | --inc)
1079    ac_prev=includedir ;;
1080  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081  | --includ=* | --inclu=* | --incl=* | --inc=*)
1082    includedir=$ac_optarg ;;
1083
1084  -infodir | --infodir | --infodi | --infod | --info | --inf)
1085    ac_prev=infodir ;;
1086  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087    infodir=$ac_optarg ;;
1088
1089  -libdir | --libdir | --libdi | --libd)
1090    ac_prev=libdir ;;
1091  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092    libdir=$ac_optarg ;;
1093
1094  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095  | --libexe | --libex | --libe)
1096    ac_prev=libexecdir ;;
1097  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098  | --libexe=* | --libex=* | --libe=*)
1099    libexecdir=$ac_optarg ;;
1100
1101  -localedir | --localedir | --localedi | --localed | --locale)
1102    ac_prev=localedir ;;
1103  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104    localedir=$ac_optarg ;;
1105
1106  -localstatedir | --localstatedir | --localstatedi | --localstated \
1107  | --localstate | --localstat | --localsta | --localst | --locals)
1108    ac_prev=localstatedir ;;
1109  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111    localstatedir=$ac_optarg ;;
1112
1113  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114    ac_prev=mandir ;;
1115  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116    mandir=$ac_optarg ;;
1117
1118  -nfp | --nfp | --nf)
1119    # Obsolete; use --without-fp.
1120    with_fp=no ;;
1121
1122  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123  | --no-cr | --no-c | -n)
1124    no_create=yes ;;
1125
1126  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128    no_recursion=yes ;;
1129
1130  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132  | --oldin | --oldi | --old | --ol | --o)
1133    ac_prev=oldincludedir ;;
1134  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137    oldincludedir=$ac_optarg ;;
1138
1139  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140    ac_prev=prefix ;;
1141  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142    prefix=$ac_optarg ;;
1143
1144  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145  | --program-pre | --program-pr | --program-p)
1146    ac_prev=program_prefix ;;
1147  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149    program_prefix=$ac_optarg ;;
1150
1151  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152  | --program-suf | --program-su | --program-s)
1153    ac_prev=program_suffix ;;
1154  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156    program_suffix=$ac_optarg ;;
1157
1158  -program-transform-name | --program-transform-name \
1159  | --program-transform-nam | --program-transform-na \
1160  | --program-transform-n | --program-transform- \
1161  | --program-transform | --program-transfor \
1162  | --program-transfo | --program-transf \
1163  | --program-trans | --program-tran \
1164  | --progr-tra | --program-tr | --program-t)
1165    ac_prev=program_transform_name ;;
1166  -program-transform-name=* | --program-transform-name=* \
1167  | --program-transform-nam=* | --program-transform-na=* \
1168  | --program-transform-n=* | --program-transform-=* \
1169  | --program-transform=* | --program-transfor=* \
1170  | --program-transfo=* | --program-transf=* \
1171  | --program-trans=* | --program-tran=* \
1172  | --progr-tra=* | --program-tr=* | --program-t=*)
1173    program_transform_name=$ac_optarg ;;
1174
1175  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176    ac_prev=pdfdir ;;
1177  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178    pdfdir=$ac_optarg ;;
1179
1180  -psdir | --psdir | --psdi | --psd | --ps)
1181    ac_prev=psdir ;;
1182  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183    psdir=$ac_optarg ;;
1184
1185  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186  | -silent | --silent | --silen | --sile | --sil)
1187    silent=yes ;;
1188
1189  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190    ac_prev=sbindir ;;
1191  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192  | --sbi=* | --sb=*)
1193    sbindir=$ac_optarg ;;
1194
1195  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197  | --sharedst | --shareds | --shared | --share | --shar \
1198  | --sha | --sh)
1199    ac_prev=sharedstatedir ;;
1200  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203  | --sha=* | --sh=*)
1204    sharedstatedir=$ac_optarg ;;
1205
1206  -site | --site | --sit)
1207    ac_prev=site ;;
1208  -site=* | --site=* | --sit=*)
1209    site=$ac_optarg ;;
1210
1211  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212    ac_prev=srcdir ;;
1213  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214    srcdir=$ac_optarg ;;
1215
1216  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217  | --syscon | --sysco | --sysc | --sys | --sy)
1218    ac_prev=sysconfdir ;;
1219  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221    sysconfdir=$ac_optarg ;;
1222
1223  -target | --target | --targe | --targ | --tar | --ta | --t)
1224    ac_prev=target_alias ;;
1225  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226    target_alias=$ac_optarg ;;
1227
1228  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229    verbose=yes ;;
1230
1231  -version | --version | --versio | --versi | --vers | -V)
1232    ac_init_version=: ;;
1233
1234  -with-* | --with-*)
1235    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236    # Reject names that are not valid shell variable names.
1237    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238      as_fn_error $? "invalid package name: $ac_useropt"
1239    ac_useropt_orig=$ac_useropt
1240    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241    case $ac_user_opts in
1242      *"
1243"with_$ac_useropt"
1244"*) ;;
1245      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246	 ac_unrecognized_sep=', ';;
1247    esac
1248    eval with_$ac_useropt=\$ac_optarg ;;
1249
1250  -without-* | --without-*)
1251    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252    # Reject names that are not valid shell variable names.
1253    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254      as_fn_error $? "invalid package name: $ac_useropt"
1255    ac_useropt_orig=$ac_useropt
1256    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257    case $ac_user_opts in
1258      *"
1259"with_$ac_useropt"
1260"*) ;;
1261      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262	 ac_unrecognized_sep=', ';;
1263    esac
1264    eval with_$ac_useropt=no ;;
1265
1266  --x)
1267    # Obsolete; use --with-x.
1268    with_x=yes ;;
1269
1270  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271  | --x-incl | --x-inc | --x-in | --x-i)
1272    ac_prev=x_includes ;;
1273  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275    x_includes=$ac_optarg ;;
1276
1277  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279    ac_prev=x_libraries ;;
1280  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282    x_libraries=$ac_optarg ;;
1283
1284  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285Try \`$0 --help' for more information"
1286    ;;
1287
1288  *=*)
1289    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290    # Reject names that are not valid shell variable names.
1291    case $ac_envvar in #(
1292      '' | [0-9]* | *[!_$as_cr_alnum]* )
1293      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1294    esac
1295    eval $ac_envvar=\$ac_optarg
1296    export $ac_envvar ;;
1297
1298  *)
1299    # FIXME: should be removed in autoconf 3.0.
1300    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1304    ;;
1305
1306  esac
1307done
1308
1309if test -n "$ac_prev"; then
1310  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311  as_fn_error $? "missing argument to $ac_option"
1312fi
1313
1314if test -n "$ac_unrecognized_opts"; then
1315  case $enable_option_checking in
1316    no) ;;
1317    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319  esac
1320fi
1321
1322# Check all directory arguments for consistency.
1323for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324		datadir sysconfdir sharedstatedir localstatedir includedir \
1325		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326		libdir localedir mandir
1327do
1328  eval ac_val=\$$ac_var
1329  # Remove trailing slashes.
1330  case $ac_val in
1331    */ )
1332      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333      eval $ac_var=\$ac_val;;
1334  esac
1335  # Be sure to have absolute directory names.
1336  case $ac_val in
1337    [\\/$]* | ?:[\\/]* )  continue;;
1338    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339  esac
1340  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1341done
1342
1343# There might be people who depend on the old broken behavior: `$host'
1344# used to hold the argument of --host etc.
1345# FIXME: To remove some day.
1346build=$build_alias
1347host=$host_alias
1348target=$target_alias
1349
1350# FIXME: To remove some day.
1351if test "x$host_alias" != x; then
1352  if test "x$build_alias" = x; then
1353    cross_compiling=maybe
1354  elif test "x$build_alias" != "x$host_alias"; then
1355    cross_compiling=yes
1356  fi
1357fi
1358
1359ac_tool_prefix=
1360test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362test "$silent" = yes && exec 6>/dev/null
1363
1364
1365ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366ac_ls_di=`ls -di .` &&
1367ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368  as_fn_error $? "working directory cannot be determined"
1369test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370  as_fn_error $? "pwd does not report name of working directory"
1371
1372
1373# Find the source files, if location was not specified.
1374if test -z "$srcdir"; then
1375  ac_srcdir_defaulted=yes
1376  # Try the directory containing this script, then the parent directory.
1377  ac_confdir=`$as_dirname -- "$as_myself" ||
1378$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379	 X"$as_myself" : 'X\(//\)[^/]' \| \
1380	 X"$as_myself" : 'X\(//\)$' \| \
1381	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382$as_echo X"$as_myself" |
1383    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384	    s//\1/
1385	    q
1386	  }
1387	  /^X\(\/\/\)[^/].*/{
1388	    s//\1/
1389	    q
1390	  }
1391	  /^X\(\/\/\)$/{
1392	    s//\1/
1393	    q
1394	  }
1395	  /^X\(\/\).*/{
1396	    s//\1/
1397	    q
1398	  }
1399	  s/.*/./; q'`
1400  srcdir=$ac_confdir
1401  if test ! -r "$srcdir/$ac_unique_file"; then
1402    srcdir=..
1403  fi
1404else
1405  ac_srcdir_defaulted=no
1406fi
1407if test ! -r "$srcdir/$ac_unique_file"; then
1408  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1410fi
1411ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412ac_abs_confdir=`(
1413	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414	pwd)`
1415# When building in place, set srcdir=.
1416if test "$ac_abs_confdir" = "$ac_pwd"; then
1417  srcdir=.
1418fi
1419# Remove unnecessary trailing slashes from srcdir.
1420# Double slashes in file names in object file debugging info
1421# mess up M-x gdb in Emacs.
1422case $srcdir in
1423*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424esac
1425case $srcdir in
1426  *" "*)
1427    as_fn_error $? "path to source, $srcdir, contains spaces"
1428    ;;
1429esac
1430ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1431
1432for ac_var in $ac_precious_vars; do
1433  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434  eval ac_env_${ac_var}_value=\$${ac_var}
1435  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437done
1438
1439#
1440# Report the --help message.
1441#
1442if test "$ac_init_help" = "long"; then
1443  # Omit some internal or obsolete options to make the list less imposing.
1444  # This message is too long to be a string in the A/UX 3.1 sh.
1445  cat <<_ACEOF
1446\`configure' configures this package to adapt to many kinds of systems.
1447
1448Usage: $0 [OPTION]... [VAR=VALUE]...
1449
1450To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451VAR=VALUE.  See below for descriptions of some of the useful variables.
1452
1453Defaults for the options are specified in brackets.
1454
1455Configuration:
1456  -h, --help              display this help and exit
1457      --help=short        display options specific to this package
1458      --help=recursive    display the short help of all the included packages
1459  -V, --version           display version information and exit
1460  -q, --quiet, --silent   do not print \`checking ...' messages
1461      --cache-file=FILE   cache test results in FILE [disabled]
1462  -C, --config-cache      alias for \`--cache-file=config.cache'
1463  -n, --no-create         do not create output files
1464      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1465
1466Installation directories:
1467  --prefix=PREFIX         install architecture-independent files in PREFIX
1468                          [$ac_default_prefix]
1469  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1470                          [PREFIX]
1471
1472By default, \`make install' will install all the files in
1473\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1474an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475for instance \`--prefix=\$HOME'.
1476
1477For better control, use the options below.
1478
1479Fine tuning of the installation directories:
1480  --bindir=DIR            user executables [EPREFIX/bin]
1481  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1482  --libexecdir=DIR        program executables [EPREFIX/libexec]
1483  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1484  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1485  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1486  --libdir=DIR            object code libraries [EPREFIX/lib]
1487  --includedir=DIR        C header files [PREFIX/include]
1488  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1489  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1490  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1491  --infodir=DIR           info documentation [DATAROOTDIR/info]
1492  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1493  --mandir=DIR            man documentation [DATAROOTDIR/man]
1494  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1495  --htmldir=DIR           html documentation [DOCDIR]
1496  --dvidir=DIR            dvi documentation [DOCDIR]
1497  --pdfdir=DIR            pdf documentation [DOCDIR]
1498  --psdir=DIR             ps documentation [DOCDIR]
1499_ACEOF
1500
1501  cat <<\_ACEOF
1502
1503Program names:
1504  --program-prefix=PREFIX            prepend PREFIX to installed program names
1505  --program-suffix=SUFFIX            append SUFFIX to installed program names
1506  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1507
1508System types:
1509  --build=BUILD     configure for building on BUILD [guessed]
1510  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1511  --target=TARGET   configure for building compilers for TARGET [HOST]
1512_ACEOF
1513fi
1514
1515if test -n "$ac_init_help"; then
1516
1517  cat <<\_ACEOF
1518
1519Optional Features:
1520  --disable-option-checking  ignore unrecognized --enable/--with options
1521  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1522  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1523  --enable-as-accelerator-for=ARG
1524                          build as offload target compiler. Specify offload
1525                          host triple by ARG
1526  --enable-offload-targets=LIST
1527                          enable offloading to devices from comma-separated
1528                          LIST of TARGET[=DIR]. Use optional path to find
1529                          offload target compiler during the build
1530  --enable-offload-defaulted
1531		If enabled, configured but not installed offload compilers and
1532		libgomp plugins are silently ignored.  Useful for distribution
1533		compilers where those are in separate optional packages.
1534
1535  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1536  --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1537  --enable-compressed-debug-sections={all,gas,gold,ld,none}
1538                          Enable compressed debug sections for gas, gold or ld
1539                          by default
1540  --disable-libquadmath   do not build libquadmath directory
1541  --disable-libquadmath-support
1542                          disable libquadmath support for Fortran
1543  --enable-libada         build libada directory
1544  --enable-libssp         build libssp directory
1545  --disable-libstdcxx     do not build libstdc++-v3 directory
1546  --enable-liboffloadmic=ARG
1547                          build liboffloadmic [ARG={no,host,target}]
1548  --enable-bootstrap      enable bootstrapping [yes if native build]
1549  --enable-pgo-build[=lto]
1550                          enable the PGO build
1551  --disable-isl-version-check
1552                          disable check for isl version
1553  --enable-lto            enable link time optimization support
1554  --enable-linker-plugin-configure-flags=FLAGS
1555                          additional flags for configuring linker plugins
1556                          [none]
1557  --enable-linker-plugin-flags=FLAGS
1558                          additional flags for configuring and building linker
1559                          plugins [none]
1560  --enable-host-shared    build host code as shared libraries
1561  --enable-stage1-languages[=all]
1562                          choose additional languages to build during stage1.
1563                          Mostly useful for compiler development
1564  --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1565                          Objective-C runtime
1566  --enable-vtable-verify  Enable vtable verification feature
1567  --enable-serial-[{host,target,build}-]configure
1568                          force sequential configuration of sub-packages for
1569                          the host, target or build machine, or all
1570                          sub-packages
1571  --enable-maintainer-mode
1572                          enable make rules and dependencies not useful (and
1573                          sometimes confusing) to the casual installer
1574  --enable-stage1-checking[=all]
1575                          choose additional checking for stage1 of the
1576                          compiler
1577  --enable-werror         enable -Werror in bootstrap stage2 and later
1578
1579Optional Packages:
1580  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1581  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1582  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1583  --with-system-zlib      use installed libz
1584  --with-mpc=PATH         specify prefix directory for installed MPC package.
1585                          Equivalent to --with-mpc-include=PATH/include plus
1586                          --with-mpc-lib=PATH/lib
1587  --with-mpc-include=PATH specify directory for installed MPC include files
1588  --with-mpc-lib=PATH     specify directory for the installed MPC library
1589  --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1590                          Equivalent to --with-mpfr-include=PATH/include plus
1591                          --with-mpfr-lib=PATH/lib
1592  --with-mpfr-include=PATH
1593                          specify directory for installed MPFR include files
1594  --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1595  --with-gmp=PATH         specify prefix directory for the installed GMP
1596                          package. Equivalent to
1597                          --with-gmp-include=PATH/include plus
1598                          --with-gmp-lib=PATH/lib
1599  --with-gmp-include=PATH specify directory for installed GMP include files
1600  --with-gmp-lib=PATH     specify directory for the installed GMP library
1601  --with-stage1-libs=LIBS libraries for stage1
1602  --with-static-standard-libraries
1603                          use -static-libstdc++ and -static-libgcc
1604                          (default=auto)
1605  --with-stage1-ldflags=FLAGS
1606                          linker flags for stage1
1607  --with-boot-libs=LIBS   libraries for stage2 and later
1608  --with-boot-ldflags=FLAGS
1609                          linker flags for stage2 and later
1610  --with-isl=PATH         Specify prefix directory for the installed isl
1611                          package. Equivalent to
1612                          --with-isl-include=PATH/include plus
1613                          --with-isl-lib=PATH/lib
1614  --with-isl-include=PATH Specify directory for installed isl include files
1615  --with-isl-lib=PATH     Specify the directory for the installed isl library
1616  --with-target-bdw-gc=PATHLIST
1617                          specify prefix directory for installed bdw-gc
1618                          package. Equivalent to
1619                          --with-target-bdw-gc-include=PATH/include plus
1620                          --with-target-bdw-gc-lib=PATH/lib
1621  --with-target-bdw-gc-include=PATHLIST
1622                          specify directories for installed bdw-gc include
1623                          files
1624  --with-target-bdw-gc-lib=PATHLIST
1625                          specify directories for installed bdw-gc library
1626  --with-gcc-major-version-only
1627                          use only GCC major number in filesystem paths
1628  --with-build-sysroot=SYSROOT
1629                          use sysroot as the system root during the build
1630  --with-debug-prefix-map='A=B C=D ...'
1631                          map A to B, C to D ... in debug information
1632  --with-build-config='NAME NAME2...'
1633                          use config/NAME.mk build configuration
1634  --with-build-time-tools=PATH
1635                          use given path to find target tools during the build
1636
1637Some influential environment variables:
1638  CC          C compiler command
1639  CFLAGS      C compiler flags
1640  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1641              nonstandard directory <lib dir>
1642  LIBS        libraries to pass to the linker, e.g. -l<library>
1643  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1644              you have headers in a nonstandard directory <include dir>
1645  CXX         C++ compiler command
1646  CXXFLAGS    C++ compiler flags
1647  build_configargs
1648              additional configure arguments for build directories
1649  host_configargs
1650              additional configure arguments for host directories
1651  target_configargs
1652              additional configure arguments for target directories
1653  AR          AR for the host
1654  AS          AS for the host
1655  DLLTOOL     DLLTOOL for the host
1656  DSYMUTIL    DSYMUTIL for the host
1657  LD          LD for the host
1658  LIPO        LIPO for the host
1659  NM          NM for the host
1660  RANLIB      RANLIB for the host
1661  STRIP       STRIP for the host
1662  WINDRES     WINDRES for the host
1663  WINDMC      WINDMC for the host
1664  OBJCOPY     OBJCOPY for the host
1665  OBJDUMP     OBJDUMP for the host
1666  OTOOL       OTOOL for the host
1667  READELF     READELF for the host
1668  CC_FOR_TARGET
1669              CC for the target
1670  CXX_FOR_TARGET
1671              CXX for the target
1672  GCC_FOR_TARGET
1673              GCC for the target
1674  GFORTRAN_FOR_TARGET
1675              GFORTRAN for the target
1676  GOC_FOR_TARGET
1677              GOC for the target
1678  GDC_FOR_TARGET
1679              GDC for the target
1680  AR_FOR_TARGET
1681              AR for the target
1682  AS_FOR_TARGET
1683              AS for the target
1684  DLLTOOL_FOR_TARGET
1685              DLLTOOL for the target
1686  DSYMUTIL_FOR_TARGET
1687              DSYMUTIL for the target
1688  LD_FOR_TARGET
1689              LD for the target
1690  LIPO_FOR_TARGET
1691              LIPO for the target
1692  NM_FOR_TARGET
1693              NM for the target
1694  OBJCOPY_FOR_TARGET
1695              OBJCOPY for the target
1696  OBJDUMP_FOR_TARGET
1697              OBJDUMP for the target
1698  OTOOL_FOR_TARGET
1699              OTOOL for the target
1700  RANLIB_FOR_TARGET
1701              RANLIB for the target
1702  READELF_FOR_TARGET
1703              READELF for the target
1704  STRIP_FOR_TARGET
1705              STRIP for the target
1706  WINDRES_FOR_TARGET
1707              WINDRES for the target
1708  WINDMC_FOR_TARGET
1709              WINDMC for the target
1710
1711Use these variables to override the choices made by `configure' or to help
1712it to find libraries and programs with nonstandard names/locations.
1713
1714Report bugs to the package provider.
1715_ACEOF
1716ac_status=$?
1717fi
1718
1719if test "$ac_init_help" = "recursive"; then
1720  # If there are subdirs, report their specific --help.
1721  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1722    test -d "$ac_dir" ||
1723      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1724      continue
1725    ac_builddir=.
1726
1727case "$ac_dir" in
1728.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729*)
1730  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1731  # A ".." for each directory in $ac_dir_suffix.
1732  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1733  case $ac_top_builddir_sub in
1734  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1736  esac ;;
1737esac
1738ac_abs_top_builddir=$ac_pwd
1739ac_abs_builddir=$ac_pwd$ac_dir_suffix
1740# for backward compatibility:
1741ac_top_builddir=$ac_top_build_prefix
1742
1743case $srcdir in
1744  .)  # We are building in place.
1745    ac_srcdir=.
1746    ac_top_srcdir=$ac_top_builddir_sub
1747    ac_abs_top_srcdir=$ac_pwd ;;
1748  [\\/]* | ?:[\\/]* )  # Absolute name.
1749    ac_srcdir=$srcdir$ac_dir_suffix;
1750    ac_top_srcdir=$srcdir
1751    ac_abs_top_srcdir=$srcdir ;;
1752  *) # Relative name.
1753    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1754    ac_top_srcdir=$ac_top_build_prefix$srcdir
1755    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1756esac
1757ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1758
1759    cd "$ac_dir" || { ac_status=$?; continue; }
1760    # Check for guested configure.
1761    if test -f "$ac_srcdir/configure.gnu"; then
1762      echo &&
1763      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1764    elif test -f "$ac_srcdir/configure"; then
1765      echo &&
1766      $SHELL "$ac_srcdir/configure" --help=recursive
1767    else
1768      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1769    fi || ac_status=$?
1770    cd "$ac_pwd" || { ac_status=$?; break; }
1771  done
1772fi
1773
1774test -n "$ac_init_help" && exit $ac_status
1775if $ac_init_version; then
1776  cat <<\_ACEOF
1777configure
1778generated by GNU Autoconf 2.69
1779
1780Copyright (C) 2012 Free Software Foundation, Inc.
1781This configure script is free software; the Free Software Foundation
1782gives unlimited permission to copy, distribute and modify it.
1783_ACEOF
1784  exit
1785fi
1786
1787## ------------------------ ##
1788## Autoconf initialization. ##
1789## ------------------------ ##
1790
1791# ac_fn_c_try_compile LINENO
1792# --------------------------
1793# Try to compile conftest.$ac_ext, and return whether this succeeded.
1794ac_fn_c_try_compile ()
1795{
1796  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797  rm -f conftest.$ac_objext
1798  if { { ac_try="$ac_compile"
1799case "(($ac_try" in
1800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801  *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805  (eval "$ac_compile") 2>conftest.err
1806  ac_status=$?
1807  if test -s conftest.err; then
1808    grep -v '^ *+' conftest.err >conftest.er1
1809    cat conftest.er1 >&5
1810    mv -f conftest.er1 conftest.err
1811  fi
1812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813  test $ac_status = 0; } && {
1814	 test -z "$ac_c_werror_flag" ||
1815	 test ! -s conftest.err
1816       } && test -s conftest.$ac_objext; then :
1817  ac_retval=0
1818else
1819  $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822	ac_retval=1
1823fi
1824  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825  as_fn_set_status $ac_retval
1826
1827} # ac_fn_c_try_compile
1828
1829# ac_fn_cxx_try_compile LINENO
1830# ----------------------------
1831# Try to compile conftest.$ac_ext, and return whether this succeeded.
1832ac_fn_cxx_try_compile ()
1833{
1834  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835  rm -f conftest.$ac_objext
1836  if { { ac_try="$ac_compile"
1837case "(($ac_try" in
1838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839  *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843  (eval "$ac_compile") 2>conftest.err
1844  ac_status=$?
1845  if test -s conftest.err; then
1846    grep -v '^ *+' conftest.err >conftest.er1
1847    cat conftest.er1 >&5
1848    mv -f conftest.er1 conftest.err
1849  fi
1850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851  test $ac_status = 0; } && {
1852	 test -z "$ac_cxx_werror_flag" ||
1853	 test ! -s conftest.err
1854       } && test -s conftest.$ac_objext; then :
1855  ac_retval=0
1856else
1857  $as_echo "$as_me: failed program was:" >&5
1858sed 's/^/| /' conftest.$ac_ext >&5
1859
1860	ac_retval=1
1861fi
1862  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863  as_fn_set_status $ac_retval
1864
1865} # ac_fn_cxx_try_compile
1866
1867# ac_fn_cxx_try_link LINENO
1868# -------------------------
1869# Try to link conftest.$ac_ext, and return whether this succeeded.
1870ac_fn_cxx_try_link ()
1871{
1872  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873  rm -f conftest.$ac_objext conftest$ac_exeext
1874  if { { ac_try="$ac_link"
1875case "(($ac_try" in
1876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877  *) ac_try_echo=$ac_try;;
1878esac
1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880$as_echo "$ac_try_echo"; } >&5
1881  (eval "$ac_link") 2>conftest.err
1882  ac_status=$?
1883  if test -s conftest.err; then
1884    grep -v '^ *+' conftest.err >conftest.er1
1885    cat conftest.er1 >&5
1886    mv -f conftest.er1 conftest.err
1887  fi
1888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889  test $ac_status = 0; } && {
1890	 test -z "$ac_cxx_werror_flag" ||
1891	 test ! -s conftest.err
1892       } && test -s conftest$ac_exeext && {
1893	 test "$cross_compiling" = yes ||
1894	 test -x conftest$ac_exeext
1895       }; then :
1896  ac_retval=0
1897else
1898  $as_echo "$as_me: failed program was:" >&5
1899sed 's/^/| /' conftest.$ac_ext >&5
1900
1901	ac_retval=1
1902fi
1903  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905  # interfere with the next link command; also delete a directory that is
1906  # left behind by Apple's compiler.  We do this before executing the actions.
1907  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909  as_fn_set_status $ac_retval
1910
1911} # ac_fn_cxx_try_link
1912
1913# ac_fn_c_try_link LINENO
1914# -----------------------
1915# Try to link conftest.$ac_ext, and return whether this succeeded.
1916ac_fn_c_try_link ()
1917{
1918  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919  rm -f conftest.$ac_objext conftest$ac_exeext
1920  if { { ac_try="$ac_link"
1921case "(($ac_try" in
1922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923  *) ac_try_echo=$ac_try;;
1924esac
1925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926$as_echo "$ac_try_echo"; } >&5
1927  (eval "$ac_link") 2>conftest.err
1928  ac_status=$?
1929  if test -s conftest.err; then
1930    grep -v '^ *+' conftest.err >conftest.er1
1931    cat conftest.er1 >&5
1932    mv -f conftest.er1 conftest.err
1933  fi
1934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935  test $ac_status = 0; } && {
1936	 test -z "$ac_c_werror_flag" ||
1937	 test ! -s conftest.err
1938       } && test -s conftest$ac_exeext && {
1939	 test "$cross_compiling" = yes ||
1940	 test -x conftest$ac_exeext
1941       }; then :
1942  ac_retval=0
1943else
1944  $as_echo "$as_me: failed program was:" >&5
1945sed 's/^/| /' conftest.$ac_ext >&5
1946
1947	ac_retval=1
1948fi
1949  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1950  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1951  # interfere with the next link command; also delete a directory that is
1952  # left behind by Apple's compiler.  We do this before executing the actions.
1953  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955  as_fn_set_status $ac_retval
1956
1957} # ac_fn_c_try_link
1958cat >config.log <<_ACEOF
1959This file contains any messages produced by compilers while
1960running configure, to aid debugging if configure makes a mistake.
1961
1962It was created by $as_me, which was
1963generated by GNU Autoconf 2.69.  Invocation command line was
1964
1965  $ $0 $@
1966
1967_ACEOF
1968exec 5>>config.log
1969{
1970cat <<_ASUNAME
1971## --------- ##
1972## Platform. ##
1973## --------- ##
1974
1975hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1976uname -m = `(uname -m) 2>/dev/null || echo unknown`
1977uname -r = `(uname -r) 2>/dev/null || echo unknown`
1978uname -s = `(uname -s) 2>/dev/null || echo unknown`
1979uname -v = `(uname -v) 2>/dev/null || echo unknown`
1980
1981/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1982/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1983
1984/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1985/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1986/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1987/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1988/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1989/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1990/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1991
1992_ASUNAME
1993
1994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995for as_dir in $PATH
1996do
1997  IFS=$as_save_IFS
1998  test -z "$as_dir" && as_dir=.
1999    $as_echo "PATH: $as_dir"
2000  done
2001IFS=$as_save_IFS
2002
2003} >&5
2004
2005cat >&5 <<_ACEOF
2006
2007
2008## ----------- ##
2009## Core tests. ##
2010## ----------- ##
2011
2012_ACEOF
2013
2014
2015# Keep a trace of the command line.
2016# Strip out --no-create and --no-recursion so they do not pile up.
2017# Strip out --silent because we don't want to record it for future runs.
2018# Also quote any args containing shell meta-characters.
2019# Make two passes to allow for proper duplicate-argument suppression.
2020ac_configure_args=
2021ac_configure_args0=
2022ac_configure_args1=
2023ac_must_keep_next=false
2024for ac_pass in 1 2
2025do
2026  for ac_arg
2027  do
2028    case $ac_arg in
2029    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2030    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2031    | -silent | --silent | --silen | --sile | --sil)
2032      continue ;;
2033    *\'*)
2034      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2035    esac
2036    case $ac_pass in
2037    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2038    2)
2039      as_fn_append ac_configure_args1 " '$ac_arg'"
2040      if test $ac_must_keep_next = true; then
2041	ac_must_keep_next=false # Got value, back to normal.
2042      else
2043	case $ac_arg in
2044	  *=* | --config-cache | -C | -disable-* | --disable-* \
2045	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2046	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2047	  | -with-* | --with-* | -without-* | --without-* | --x)
2048	    case "$ac_configure_args0 " in
2049	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2050	    esac
2051	    ;;
2052	  -* ) ac_must_keep_next=true ;;
2053	esac
2054      fi
2055      as_fn_append ac_configure_args " '$ac_arg'"
2056      ;;
2057    esac
2058  done
2059done
2060{ ac_configure_args0=; unset ac_configure_args0;}
2061{ ac_configure_args1=; unset ac_configure_args1;}
2062
2063# When interrupted or exit'd, cleanup temporary files, and complete
2064# config.log.  We remove comments because anyway the quotes in there
2065# would cause problems or look ugly.
2066# WARNING: Use '\'' to represent an apostrophe within the trap.
2067# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2068trap 'exit_status=$?
2069  # Save into config.log some information that might help in debugging.
2070  {
2071    echo
2072
2073    $as_echo "## ---------------- ##
2074## Cache variables. ##
2075## ---------------- ##"
2076    echo
2077    # The following way of writing the cache mishandles newlines in values,
2078(
2079  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2080    eval ac_val=\$$ac_var
2081    case $ac_val in #(
2082    *${as_nl}*)
2083      case $ac_var in #(
2084      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2085$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2086      esac
2087      case $ac_var in #(
2088      _ | IFS | as_nl) ;; #(
2089      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2090      *) { eval $ac_var=; unset $ac_var;} ;;
2091      esac ;;
2092    esac
2093  done
2094  (set) 2>&1 |
2095    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2096    *${as_nl}ac_space=\ *)
2097      sed -n \
2098	"s/'\''/'\''\\\\'\'''\''/g;
2099	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2100      ;; #(
2101    *)
2102      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2103      ;;
2104    esac |
2105    sort
2106)
2107    echo
2108
2109    $as_echo "## ----------------- ##
2110## Output variables. ##
2111## ----------------- ##"
2112    echo
2113    for ac_var in $ac_subst_vars
2114    do
2115      eval ac_val=\$$ac_var
2116      case $ac_val in
2117      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118      esac
2119      $as_echo "$ac_var='\''$ac_val'\''"
2120    done | sort
2121    echo
2122
2123    if test -n "$ac_subst_files"; then
2124      $as_echo "## ------------------- ##
2125## File substitutions. ##
2126## ------------------- ##"
2127      echo
2128      for ac_var in $ac_subst_files
2129      do
2130	eval ac_val=\$$ac_var
2131	case $ac_val in
2132	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133	esac
2134	$as_echo "$ac_var='\''$ac_val'\''"
2135      done | sort
2136      echo
2137    fi
2138
2139    if test -s confdefs.h; then
2140      $as_echo "## ----------- ##
2141## confdefs.h. ##
2142## ----------- ##"
2143      echo
2144      cat confdefs.h
2145      echo
2146    fi
2147    test "$ac_signal" != 0 &&
2148      $as_echo "$as_me: caught signal $ac_signal"
2149    $as_echo "$as_me: exit $exit_status"
2150  } >&5
2151  rm -f core *.core core.conftest.* &&
2152    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2153    exit $exit_status
2154' 0
2155for ac_signal in 1 2 13 15; do
2156  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2157done
2158ac_signal=0
2159
2160# confdefs.h avoids OS command line length limits that DEFS can exceed.
2161rm -f -r conftest* confdefs.h
2162
2163$as_echo "/* confdefs.h */" > confdefs.h
2164
2165# Predefined preprocessor variables.
2166
2167cat >>confdefs.h <<_ACEOF
2168#define PACKAGE_NAME "$PACKAGE_NAME"
2169_ACEOF
2170
2171cat >>confdefs.h <<_ACEOF
2172#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2173_ACEOF
2174
2175cat >>confdefs.h <<_ACEOF
2176#define PACKAGE_VERSION "$PACKAGE_VERSION"
2177_ACEOF
2178
2179cat >>confdefs.h <<_ACEOF
2180#define PACKAGE_STRING "$PACKAGE_STRING"
2181_ACEOF
2182
2183cat >>confdefs.h <<_ACEOF
2184#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2185_ACEOF
2186
2187cat >>confdefs.h <<_ACEOF
2188#define PACKAGE_URL "$PACKAGE_URL"
2189_ACEOF
2190
2191
2192# Let the site file select an alternate cache file if it wants to.
2193# Prefer an explicitly selected file to automatically selected ones.
2194ac_site_file1=NONE
2195ac_site_file2=NONE
2196if test -n "$CONFIG_SITE"; then
2197  # We do not want a PATH search for config.site.
2198  case $CONFIG_SITE in #((
2199    -*)  ac_site_file1=./$CONFIG_SITE;;
2200    */*) ac_site_file1=$CONFIG_SITE;;
2201    *)   ac_site_file1=./$CONFIG_SITE;;
2202  esac
2203elif test "x$prefix" != xNONE; then
2204  ac_site_file1=$prefix/share/config.site
2205  ac_site_file2=$prefix/etc/config.site
2206else
2207  ac_site_file1=$ac_default_prefix/share/config.site
2208  ac_site_file2=$ac_default_prefix/etc/config.site
2209fi
2210for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2211do
2212  test "x$ac_site_file" = xNONE && continue
2213  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2214    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2215$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2216    sed 's/^/| /' "$ac_site_file" >&5
2217    . "$ac_site_file" \
2218      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2220as_fn_error $? "failed to load site script $ac_site_file
2221See \`config.log' for more details" "$LINENO" 5; }
2222  fi
2223done
2224
2225if test -r "$cache_file"; then
2226  # Some versions of bash will fail to source /dev/null (special files
2227  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2228  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2229    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2230$as_echo "$as_me: loading cache $cache_file" >&6;}
2231    case $cache_file in
2232      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2233      *)                      . "./$cache_file";;
2234    esac
2235  fi
2236else
2237  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2238$as_echo "$as_me: creating cache $cache_file" >&6;}
2239  >$cache_file
2240fi
2241
2242# Check that the precious variables saved in the cache have kept the same
2243# value.
2244ac_cache_corrupted=false
2245for ac_var in $ac_precious_vars; do
2246  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2247  eval ac_new_set=\$ac_env_${ac_var}_set
2248  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2249  eval ac_new_val=\$ac_env_${ac_var}_value
2250  case $ac_old_set,$ac_new_set in
2251    set,)
2252      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2253$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2254      ac_cache_corrupted=: ;;
2255    ,set)
2256      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2257$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2258      ac_cache_corrupted=: ;;
2259    ,);;
2260    *)
2261      if test "x$ac_old_val" != "x$ac_new_val"; then
2262	# differences in whitespace do not lead to failure.
2263	ac_old_val_w=`echo x $ac_old_val`
2264	ac_new_val_w=`echo x $ac_new_val`
2265	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2266	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2267$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2268	  ac_cache_corrupted=:
2269	else
2270	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2271$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2272	  eval $ac_var=\$ac_old_val
2273	fi
2274	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2275$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2276	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2277$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2278      fi;;
2279  esac
2280  # Pass precious variables to config.status.
2281  if test "$ac_new_set" = set; then
2282    case $ac_new_val in
2283    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2284    *) ac_arg=$ac_var=$ac_new_val ;;
2285    esac
2286    case " $ac_configure_args " in
2287      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2288      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2289    esac
2290  fi
2291done
2292if $ac_cache_corrupted; then
2293  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2296$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2297  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2298fi
2299## -------------------- ##
2300## Main body of script. ##
2301## -------------------- ##
2302
2303ac_ext=c
2304ac_cpp='$CPP $CPPFLAGS'
2305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308
2309
2310
2311
2312
2313
2314
2315
2316progname=$0
2317# if PWD already has a value, it is probably wrong.
2318if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2319
2320# Export original configure arguments for use by sub-configures.
2321# Quote arguments with shell meta charatcers.
2322TOPLEVEL_CONFIGURE_ARGUMENTS=
2323set -- "$progname" "$@"
2324for ac_arg
2325do
2326  case "$ac_arg" in
2327  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2328    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2329    # if the argument is of the form -foo=baz, quote the baz part only
2330    ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2331  *) ;;
2332  esac
2333  # Add the quoted argument to the list.
2334  TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2335done
2336if test "$silent" = yes; then
2337  TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2338fi
2339# Remove the initial space we just introduced and, as these will be
2340# expanded by make, quote '$'.
2341TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2342
2343
2344# Find the build, host, and target systems.
2345ac_aux_dir=
2346for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2347  if test -f "$ac_dir/install-sh"; then
2348    ac_aux_dir=$ac_dir
2349    ac_install_sh="$SHELL $ac_aux_dir/install-sh -c"
2350    break
2351  elif test -f "$ac_dir/install.sh"; then
2352    ac_aux_dir=$ac_dir
2353    ac_install_sh="$SHELL $ac_aux_dir/install.sh -c"
2354    break
2355  elif test -f "$ac_dir/shtool"; then
2356    ac_aux_dir=$ac_dir
2357    ac_install_sh="$SHELL $ac_aux_dir/shtool install -c"
2358    break
2359  fi
2360done
2361if test -z "$ac_aux_dir"; then
2362  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2363fi
2364
2365# These three variables are undocumented and unsupported,
2366# and are intended to be withdrawn in a future Autoconf release.
2367# They can cause serious problems if a builder's source tree is in a directory
2368# whose full name contains unusual characters.
2369ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2370ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2371ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2372
2373
2374# Make sure we can run config.sub.
2375$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2376  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2377
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2379$as_echo_n "checking build system type... " >&6; }
2380if ${ac_cv_build+:} false; then :
2381  $as_echo_n "(cached) " >&6
2382else
2383  ac_build_alias=$build_alias
2384test "x$ac_build_alias" = x &&
2385  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2386test "x$ac_build_alias" = x &&
2387  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2388ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2389  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2390
2391fi
2392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2393$as_echo "$ac_cv_build" >&6; }
2394case $ac_cv_build in
2395*-*-*) ;;
2396*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2397esac
2398build=$ac_cv_build
2399ac_save_IFS=$IFS; IFS='-'
2400set x $ac_cv_build
2401shift
2402build_cpu=$1
2403build_vendor=$2
2404shift; shift
2405# Remember, the first character of IFS is used to create $*,
2406# except with old shells:
2407build_os=$*
2408IFS=$ac_save_IFS
2409case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2410
2411
2412 case ${build_alias} in
2413  "") build_noncanonical=${build} ;;
2414  *) build_noncanonical=${build_alias} ;;
2415esac
2416
2417
2418
2419 case ${host_alias} in
2420  "") host_noncanonical=${build_noncanonical} ;;
2421  *) host_noncanonical=${host_alias} ;;
2422esac
2423
2424
2425
2426 case ${target_alias} in
2427  "") target_noncanonical=${host_noncanonical} ;;
2428  *) target_noncanonical=${target_alias} ;;
2429esac
2430
2431
2432
2433
2434test "$host_noncanonical" = "$target_noncanonical" &&
2435  test "$program_prefix$program_suffix$program_transform_name" = \
2436    NONENONEs,x,x, &&
2437  program_transform_name=s,y,y,
2438
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2440$as_echo_n "checking host system type... " >&6; }
2441if ${ac_cv_host+:} false; then :
2442  $as_echo_n "(cached) " >&6
2443else
2444  if test "x$host_alias" = x; then
2445  ac_cv_host=$ac_cv_build
2446else
2447  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2448    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2449fi
2450
2451fi
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2453$as_echo "$ac_cv_host" >&6; }
2454case $ac_cv_host in
2455*-*-*) ;;
2456*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2457esac
2458host=$ac_cv_host
2459ac_save_IFS=$IFS; IFS='-'
2460set x $ac_cv_host
2461shift
2462host_cpu=$1
2463host_vendor=$2
2464shift; shift
2465# Remember, the first character of IFS is used to create $*,
2466# except with old shells:
2467host_os=$*
2468IFS=$ac_save_IFS
2469case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2470
2471
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2473$as_echo_n "checking target system type... " >&6; }
2474if ${ac_cv_target+:} false; then :
2475  $as_echo_n "(cached) " >&6
2476else
2477  if test "x$target_alias" = x; then
2478  ac_cv_target=$ac_cv_host
2479else
2480  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2481    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2482fi
2483
2484fi
2485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2486$as_echo "$ac_cv_target" >&6; }
2487case $ac_cv_target in
2488*-*-*) ;;
2489*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2490esac
2491target=$ac_cv_target
2492ac_save_IFS=$IFS; IFS='-'
2493set x $ac_cv_target
2494shift
2495target_cpu=$1
2496target_vendor=$2
2497shift; shift
2498# Remember, the first character of IFS is used to create $*,
2499# except with old shells:
2500target_os=$*
2501IFS=$ac_save_IFS
2502case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2503
2504
2505# The aliases save the names the user supplied, while $host etc.
2506# will get canonicalized.
2507test -n "$target_alias" &&
2508  test "$program_prefix$program_suffix$program_transform_name" = \
2509    NONENONEs,x,x, &&
2510  program_prefix=${target_alias}-
2511
2512test "$program_prefix" != NONE &&
2513  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2514# Use a double $ so make ignores it.
2515test "$program_suffix" != NONE &&
2516  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2517# Double any \ or $.
2518# By default was `s,x,x', remove it if useless.
2519ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2520program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2521
2522
2523
2524# Get 'install' or 'install-sh' and its variants.
2525# Find a good install program.  We prefer a C program (faster),
2526# so one script is as good as another.  But avoid the broken or
2527# incompatible versions:
2528# SysV /etc/install, /usr/sbin/install
2529# SunOS /usr/etc/install
2530# IRIX /sbin/install
2531# AIX /bin/install
2532# AmigaOS /C/install, which installs bootblocks on floppy discs
2533# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2534# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2535# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2536# OS/2's system install, which has a completely different semantic
2537# ./install, which can be erroneously created by make from ./install.sh.
2538# Reject install programs that cannot install multiple files.
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2540$as_echo_n "checking for a BSD-compatible install... " >&6; }
2541if test -z "$INSTALL"; then
2542if ${ac_cv_path_install+:} false; then :
2543  $as_echo_n "(cached) " >&6
2544else
2545  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548  IFS=$as_save_IFS
2549  test -z "$as_dir" && as_dir=.
2550    # Account for people who put trailing slashes in PATH elements.
2551case $as_dir/ in #((
2552  ./ | .// | /[cC]/* | \
2553  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2554  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2555  /usr/ucb/* ) ;;
2556  *)
2557    # OSF1 and SCO ODT 3.0 have their own names for install.
2558    # Don't use installbsd from OSF since it installs stuff as root
2559    # by default.
2560    for ac_prog in ginstall scoinst install; do
2561      for ac_exec_ext in '' $ac_executable_extensions; do
2562	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2563	  if test $ac_prog = install &&
2564	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2565	    # AIX install.  It has an incompatible calling convention.
2566	    :
2567	  elif test $ac_prog = install &&
2568	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569	    # program-specific install script used by HP pwplus--don't use.
2570	    :
2571	  else
2572	    rm -rf conftest.one conftest.two conftest.dir
2573	    echo one > conftest.one
2574	    echo two > conftest.two
2575	    mkdir conftest.dir
2576	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2577	      test -s conftest.one && test -s conftest.two &&
2578	      test -s conftest.dir/conftest.one &&
2579	      test -s conftest.dir/conftest.two
2580	    then
2581	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2582	      break 3
2583	    fi
2584	  fi
2585	fi
2586      done
2587    done
2588    ;;
2589esac
2590
2591  done
2592IFS=$as_save_IFS
2593
2594rm -rf conftest.one conftest.two conftest.dir
2595
2596fi
2597  if test "${ac_cv_path_install+set}" = set; then
2598    INSTALL=$ac_cv_path_install
2599  else
2600    # As a last resort, use the slow shell script.  Don't cache a
2601    # value for INSTALL within a source directory, because that will
2602    # break other packages using the cache if that directory is
2603    # removed, or if the value is a relative name.
2604    INSTALL=$ac_install_sh
2605  fi
2606fi
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2608$as_echo "$INSTALL" >&6; }
2609
2610# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2611# It thinks the first close brace ends the variable substitution.
2612test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2613
2614test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2615
2616test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2617
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2619$as_echo_n "checking whether ln works... " >&6; }
2620if ${acx_cv_prog_LN+:} false; then :
2621  $as_echo_n "(cached) " >&6
2622else
2623  rm -f conftestdata_t
2624echo >conftestdata_f
2625if ln conftestdata_f conftestdata_t 2>/dev/null
2626then
2627  acx_cv_prog_LN=ln
2628else
2629  acx_cv_prog_LN=no
2630fi
2631rm -f conftestdata_f conftestdata_t
2632
2633fi
2634if test $acx_cv_prog_LN = no; then
2635  LN="cp"
2636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2637$as_echo "no, using $LN" >&6; }
2638else
2639  LN="$acx_cv_prog_LN"
2640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2641$as_echo "yes" >&6; }
2642fi
2643
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2645$as_echo_n "checking whether ln -s works... " >&6; }
2646LN_S=$as_ln_s
2647if test "$LN_S" = "ln -s"; then
2648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649$as_echo "yes" >&6; }
2650else
2651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2652$as_echo "no, using $LN_S" >&6; }
2653fi
2654
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2656$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2657if ${ac_cv_path_SED+:} false; then :
2658  $as_echo_n "(cached) " >&6
2659else
2660            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2661     for ac_i in 1 2 3 4 5 6 7; do
2662       ac_script="$ac_script$as_nl$ac_script"
2663     done
2664     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2665     { ac_script=; unset ac_script;}
2666     if test -z "$SED"; then
2667  ac_path_SED_found=false
2668  # Loop through the user's path and test for each of PROGNAME-LIST
2669  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH
2671do
2672  IFS=$as_save_IFS
2673  test -z "$as_dir" && as_dir=.
2674    for ac_prog in sed gsed; do
2675    for ac_exec_ext in '' $ac_executable_extensions; do
2676      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2677      as_fn_executable_p "$ac_path_SED" || continue
2678# Check for GNU ac_path_SED and select it if it is found.
2679  # Check for GNU $ac_path_SED
2680case `"$ac_path_SED" --version 2>&1` in
2681*GNU*)
2682  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2683*)
2684  ac_count=0
2685  $as_echo_n 0123456789 >"conftest.in"
2686  while :
2687  do
2688    cat "conftest.in" "conftest.in" >"conftest.tmp"
2689    mv "conftest.tmp" "conftest.in"
2690    cp "conftest.in" "conftest.nl"
2691    $as_echo '' >> "conftest.nl"
2692    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2693    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2694    as_fn_arith $ac_count + 1 && ac_count=$as_val
2695    if test $ac_count -gt ${ac_path_SED_max-0}; then
2696      # Best one so far, save it but keep looking for a better one
2697      ac_cv_path_SED="$ac_path_SED"
2698      ac_path_SED_max=$ac_count
2699    fi
2700    # 10*(2^10) chars as input seems more than enough
2701    test $ac_count -gt 10 && break
2702  done
2703  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2704esac
2705
2706      $ac_path_SED_found && break 3
2707    done
2708  done
2709  done
2710IFS=$as_save_IFS
2711  if test -z "$ac_cv_path_SED"; then
2712    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2713  fi
2714else
2715  ac_cv_path_SED=$SED
2716fi
2717
2718fi
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2720$as_echo "$ac_cv_path_SED" >&6; }
2721 SED="$ac_cv_path_SED"
2722  rm -f conftest.sed
2723
2724for ac_prog in gawk mawk nawk awk
2725do
2726  # Extract the first word of "$ac_prog", so it can be a program name with args.
2727set dummy $ac_prog; ac_word=$2
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729$as_echo_n "checking for $ac_word... " >&6; }
2730if ${ac_cv_prog_AWK+:} false; then :
2731  $as_echo_n "(cached) " >&6
2732else
2733  if test -n "$AWK"; then
2734  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2735else
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739  IFS=$as_save_IFS
2740  test -z "$as_dir" && as_dir=.
2741    for ac_exec_ext in '' $ac_executable_extensions; do
2742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743    ac_cv_prog_AWK="$ac_prog"
2744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745    break 2
2746  fi
2747done
2748  done
2749IFS=$as_save_IFS
2750
2751fi
2752fi
2753AWK=$ac_cv_prog_AWK
2754if test -n "$AWK"; then
2755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2756$as_echo "$AWK" >&6; }
2757else
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759$as_echo "no" >&6; }
2760fi
2761
2762
2763  test -n "$AWK" && break
2764done
2765
2766
2767srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2768
2769# We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2770# a relative path.
2771if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2772  INSTALL="${srcpwd}/install-sh -c"
2773fi
2774
2775# Set srcdir to "." if that's what it is.
2776# This is important for multilib support.
2777pwd=`${PWDCMD-pwd}`
2778if test "${pwd}" = "${srcpwd}" ; then
2779  srcdir=.
2780fi
2781
2782topsrcdir=$srcpwd
2783
2784extra_host_args=
2785
2786### To add a new directory to the tree, first choose whether it is a target
2787### or a host dependent tool.  Then put it into the appropriate list
2788### (library or tools, host or target), doing a dependency sort.
2789
2790# Subdirs will be configured in the order listed in build_configdirs,
2791# configdirs, or target_configdirs; see the serialization section below.
2792
2793# Dependency sorting is only needed when *configuration* must be done in
2794# a particular order.  In all cases a dependency should be specified in
2795# the Makefile, whether or not it's implicitly specified here.
2796
2797# Double entries in build_configdirs, configdirs, or target_configdirs may
2798# cause circular dependencies and break everything horribly.
2799
2800# these library is used by various programs built for the build
2801# environment
2802#
2803build_libs="build-libiberty build-libcpp"
2804
2805# these tools are built for the build environment
2806build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2807
2808# these libraries are used by various programs built for the host environment
2809#f
2810host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2811
2812# these tools are built for the host environment
2813# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2814# know that we are building the simulator.
2815# binutils, gas and ld appear in that order because it makes sense to run
2816# "make check" in that particular order.
2817# If --enable-gold is used, "gold" may replace "ld".
2818host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
2819
2820# these libraries are built for the target environment, and are built after
2821# the host libraries and the host tools (which may be a cross compiler)
2822# Note that libiberty is not a target library.
2823target_libraries="target-libgcc \
2824		target-libbacktrace \
2825		target-libgloss \
2826		target-newlib \
2827		target-libgomp \
2828		target-liboffloadmic \
2829		target-libatomic \
2830		target-libitm \
2831		target-libstdc++-v3 \
2832		target-libsanitizer \
2833		target-libvtv \
2834		target-libssp \
2835		target-libquadmath \
2836		target-libgfortran \
2837		target-libffi \
2838		target-libobjc \
2839		target-libada \
2840		target-libgo \
2841		target-libphobos \
2842		target-zlib"
2843
2844# these tools are built using the target libraries, and are intended to
2845# run only in the target environment
2846#
2847# note: any program that *uses* libraries that are in the "target_libraries"
2848# list belongs in this list.
2849#
2850target_tools="target-rda"
2851
2852################################################################################
2853
2854## All tools belong in one of the four categories, and are assigned above
2855## We assign ${configdirs} this way to remove all embedded newlines.  This
2856## is important because configure will choke if they ever get through.
2857## ${configdirs} is directories we build using the host tools.
2858## ${target_configdirs} is directories we build using the target tools.
2859configdirs=`echo ${host_libs} ${host_tools}`
2860target_configdirs=`echo ${target_libraries} ${target_tools}`
2861build_configdirs=`echo ${build_libs} ${build_tools}`
2862
2863
2864
2865################################################################################
2866
2867srcname="gnu development package"
2868
2869# This gets set non-empty for some net releases of packages.
2870appdirs=""
2871
2872# Define is_cross_compiler to save on calls to 'test'.
2873is_cross_compiler=
2874if test x"${host}" = x"${target}" ; then
2875  is_cross_compiler=no
2876else
2877  is_cross_compiler=yes
2878fi
2879
2880# Find the build and target subdir names.
2881
2882# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2883# have matching libraries, they should use host libraries: Makefile.tpl
2884# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2885# However, they still use the build modules, because the corresponding
2886# host modules (e.g. bison) are only built for the host when bootstrap
2887# finishes. So:
2888# - build_subdir is where we find build modules, and never changes.
2889# - build_libsubdir is where we find build libraries, and can be overridden.
2890
2891# Prefix 'build-' so this never conflicts with target_subdir.
2892build_subdir="build-${build_noncanonical}"
2893
2894# Check whether --with-build-libsubdir was given.
2895if test "${with_build_libsubdir+set}" = set; then :
2896  withval=$with_build_libsubdir; build_libsubdir="$withval"
2897else
2898  build_libsubdir="$build_subdir"
2899fi
2900
2901# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2902if ( test $srcdir = . && test -d gcc ) \
2903   || test -d $srcdir/../host-${host_noncanonical}; then
2904  host_subdir="host-${host_noncanonical}"
2905else
2906  host_subdir=.
2907fi
2908# No prefix.
2909target_subdir=${target_noncanonical}
2910
2911# Be sure to cover against remnants of an in-tree build.
2912if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2913  as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2914Use a pristine source tree when building in a separate tree" "$LINENO" 5
2915fi
2916
2917# Skipdirs are removed silently.
2918skipdirs=
2919# Noconfigdirs are removed loudly.
2920noconfigdirs=""
2921
2922use_gnu_ld=
2923# Make sure we don't let GNU ld be added if we didn't want it.
2924if test x$with_gnu_ld = xno ; then
2925  use_gnu_ld=no
2926  noconfigdirs="$noconfigdirs ld gold"
2927fi
2928
2929use_gnu_as=
2930# Make sure we don't let GNU as be added if we didn't want it.
2931if test x$with_gnu_as = xno ; then
2932  use_gnu_as=no
2933  noconfigdirs="$noconfigdirs gas"
2934fi
2935
2936use_included_zlib=
2937
2938# Check whether --with-system-zlib was given.
2939if test "${with_system_zlib+set}" = set; then :
2940  withval=$with_system_zlib;
2941fi
2942
2943# Make sure we don't let ZLIB be added if we didn't want it.
2944if test x$with_system_zlib = xyes ; then
2945  use_included_zlib=no
2946  noconfigdirs="$noconfigdirs zlib"
2947fi
2948
2949# some tools are so dependent upon X11 that if we're not building with X,
2950# it's not even worth trying to configure, much less build, that tool.
2951
2952case ${with_x} in
2953  yes | "") ;; # the default value for this tree is that X11 is available
2954  no)
2955    skipdirs="${skipdirs} tk itcl libgui"
2956    # We won't be able to build gdbtk without X.
2957    enable_gdbtk=no
2958    ;;
2959  *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2960esac
2961
2962# Some are only suitable for cross toolchains.
2963# Remove these if host=target.
2964cross_only="target-libgloss target-newlib target-opcodes"
2965
2966case $is_cross_compiler in
2967  no) skipdirs="${skipdirs} ${cross_only}" ;;
2968esac
2969
2970# If both --with-headers and --with-libs are specified, default to
2971# --without-newlib.
2972if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2973   && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2974  if test x"${with_newlib}" = x ; then
2975    with_newlib=no
2976  fi
2977fi
2978
2979# Recognize --with-newlib/--without-newlib.
2980case ${with_newlib} in
2981  no) skipdirs="${skipdirs} target-newlib" ;;
2982  yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2983esac
2984
2985# Check whether --enable-as-accelerator-for was given.
2986if test "${enable_as_accelerator_for+set}" = set; then :
2987  enableval=$enable_as_accelerator_for;
2988fi
2989
2990
2991# Check whether --enable-offload-targets was given.
2992if test "${enable_offload_targets+set}" = set; then :
2993  enableval=$enable_offload_targets;
2994  if test x"$enable_offload_targets" = x; then
2995    as_fn_error $? "no offload targets specified" "$LINENO" 5
2996  fi
2997
2998else
2999  enable_offload_targets=
3000fi
3001
3002
3003# Check whether --enable-offload-defaulted was given.
3004if test "${enable_offload_defaulted+set}" = set; then :
3005  enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3006else
3007  enable_offload_defaulted=
3008fi
3009
3010
3011# Handle --enable-gold, --enable-ld.
3012# --disable-gold [--enable-ld]
3013#     Build only ld.  Default option.
3014# --enable-gold [--enable-ld]
3015#     Build both gold and ld.  Install gold as "ld.gold", install ld
3016#     as "ld.bfd" and "ld".
3017# --enable-gold=default [--enable-ld]
3018#     Build both gold and ld.  Install gold as "ld.gold" and "ld",
3019#     install ld as "ld.bfd".
3020# --enable-gold[=default] --disable-ld
3021#     Build only gold, which is then installed as both "ld.gold" and "ld".
3022# --enable-gold --enable-ld=default
3023#     Build both gold (installed as "ld.gold") and ld (installed as "ld"
3024#     and ld.bfd).
3025#     In other words, ld is default
3026# --enable-gold=default --enable-ld=default
3027#     Error.
3028
3029default_ld=
3030# Check whether --enable-gold was given.
3031if test "${enable_gold+set}" = set; then :
3032  enableval=$enable_gold; ENABLE_GOLD=$enableval
3033else
3034  ENABLE_GOLD=no
3035fi
3036
3037case "${ENABLE_GOLD}" in
3038  yes|default)
3039    # Check for ELF target.
3040    is_elf=no
3041    case "${target}" in
3042      *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3043      | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3044      | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3045      | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3046        case "${target}" in
3047          *-*-linux*aout* | *-*-linux*oldld*)
3048            ;;
3049          *)
3050            is_elf=yes
3051            ;;
3052        esac
3053    esac
3054
3055    if test "$is_elf" = "yes"; then
3056      # Check for target supported by gold.
3057      case "${target}" in
3058        i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3059        | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3060	  configdirs="$configdirs gold"
3061	  if test x${ENABLE_GOLD} = xdefault; then
3062	    default_ld=gold
3063	  fi
3064	  ENABLE_GOLD=yes
3065          ;;
3066      esac
3067    fi
3068    ;;
3069  no)
3070    ;;
3071  *)
3072    as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3073    ;;
3074esac
3075
3076# Check whether --enable-ld was given.
3077if test "${enable_ld+set}" = set; then :
3078  enableval=$enable_ld; ENABLE_LD=$enableval
3079else
3080  ENABLE_LD=yes
3081fi
3082
3083
3084case "${ENABLE_LD}" in
3085  default)
3086    if test x${default_ld} != x; then
3087      as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3088    fi
3089    ;;
3090  yes)
3091    ;;
3092  no)
3093    if test x${ENABLE_GOLD} != xyes; then
3094      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3095$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3096    fi
3097    configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3098    ;;
3099  *)
3100    as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3101    ;;
3102esac
3103
3104# PR gas/19109
3105# Decide the default method for compressing debug sections.
3106# Provide a configure time option to override our default.
3107# Check whether --enable-compressed_debug_sections was given.
3108if test "${enable_compressed_debug_sections+set}" = set; then :
3109  enableval=$enable_compressed_debug_sections;
3110  if test x"$enable_compressed_debug_sections" = xyes; then
3111    as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3112  fi
3113
3114else
3115  enable_compressed_debug_sections=
3116fi
3117
3118
3119# Configure extra directories which are host specific
3120
3121case "${host}" in
3122  *-cygwin*)
3123    configdirs="$configdirs libtermcap" ;;
3124esac
3125
3126# A target can indicate whether a language isn't supported for some reason.
3127# Only spaces may be used in this macro; not newlines or tabs.
3128unsupported_languages=
3129
3130# Remove more programs from consideration, based on the host or
3131# target this usually means that a port of the program doesn't
3132# exist yet.
3133
3134case "${host}" in
3135  i[3456789]86-*-msdosdjgpp*)
3136    noconfigdirs="$noconfigdirs tcl tk itcl"
3137    ;;
3138esac
3139
3140
3141# Check whether --enable-libquadmath was given.
3142if test "${enable_libquadmath+set}" = set; then :
3143  enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3144else
3145  ENABLE_LIBQUADMATH=yes
3146fi
3147
3148if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3149  noconfigdirs="$noconfigdirs target-libquadmath"
3150fi
3151
3152
3153# Check whether --enable-libquadmath-support was given.
3154if test "${enable_libquadmath_support+set}" = set; then :
3155  enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3156else
3157  ENABLE_LIBQUADMATH_SUPPORT=yes
3158fi
3159
3160enable_libquadmath_support=
3161if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3162  enable_libquadmath_support=no
3163fi
3164
3165
3166# Check whether --enable-libada was given.
3167if test "${enable_libada+set}" = set; then :
3168  enableval=$enable_libada; ENABLE_LIBADA=$enableval
3169else
3170  ENABLE_LIBADA=yes
3171fi
3172
3173if test "${ENABLE_LIBADA}" != "yes" ; then
3174  noconfigdirs="$noconfigdirs gnattools"
3175fi
3176
3177# Check whether --enable-libssp was given.
3178if test "${enable_libssp+set}" = set; then :
3179  enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3180else
3181  ENABLE_LIBSSP=yes
3182fi
3183
3184
3185# Check whether --enable-libstdcxx was given.
3186if test "${enable_libstdcxx+set}" = set; then :
3187  enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3188else
3189  ENABLE_LIBSTDCXX=default
3190fi
3191
3192if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3193  noconfigdirs="$noconfigdirs target-libstdc++-v3"
3194fi
3195
3196# If this is accelerator compiler and its target is intelmic we enable
3197# target liboffloadmic by default.  If this is compiler with offloading
3198# for intelmic we enable host liboffloadmic by default.  Otherwise
3199# liboffloadmic is disabled by default.
3200# Check whether --enable-liboffloadmic was given.
3201if test "${enable_liboffloadmic+set}" = set; then :
3202  enableval=$enable_liboffloadmic; case "$enableval" in
3203  no | host | target)
3204    enable_liboffloadmic=$enableval ;;
3205  *)
3206    as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3207esac
3208else
3209  if test x"$enable_as_accelerator_for" != x; then
3210  case "${target}" in
3211    *-intelmic-* | *-intelmicemul-*)
3212      enable_liboffloadmic=target
3213      extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3214      ;;
3215    *)
3216      enable_liboffloadmic=no
3217      ;;
3218  esac
3219else
3220  case "${enable_offload_targets}" in
3221    *-intelmic-* | *-intelmicemul-*)
3222      enable_liboffloadmic=host
3223      extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3224      ;;
3225    *)
3226      enable_liboffloadmic=no
3227      ;;
3228    esac
3229fi
3230fi
3231
3232
3233
3234# Enable libgomp by default on hosted POSIX systems, and a few others.
3235if test x$enable_libgomp = x ; then
3236    case "${target}" in
3237    *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3238	;;
3239    *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3240	;;
3241    *-*-solaris2* | *-*-hpux11*)
3242	;;
3243    *-*-darwin* | *-*-aix*)
3244	;;
3245    nvptx*-*-* | amdgcn*-*-*)
3246	;;
3247    *)
3248	noconfigdirs="$noconfigdirs target-libgomp"
3249	;;
3250    esac
3251fi
3252
3253# Disable libatomic on unsupported systems.
3254if test -d ${srcdir}/libatomic; then
3255    if test x$enable_libatomic = x; then
3256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3257$as_echo_n "checking for libatomic support... " >&6; }
3258	if (srcdir=${srcdir}/libatomic; \
3259		. ${srcdir}/configure.tgt; \
3260		test -n "$UNSUPPORTED")
3261	then
3262	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263$as_echo "no" >&6; }
3264	    noconfigdirs="$noconfigdirs target-libatomic"
3265	else
3266	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267$as_echo "yes" >&6; }
3268	fi
3269    fi
3270fi
3271
3272# Disable liboffloadmic on unsupported systems.
3273if test -d ${srcdir}/liboffloadmic; then
3274    if test x$enable_liboffloadmic != xno; then
3275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3276$as_echo_n "checking for liboffloadmic support... " >&6; }
3277	if (srcdir=${srcdir}/liboffloadmic; \
3278		. ${srcdir}/configure.tgt; \
3279		test -n "$UNSUPPORTED")
3280	then
3281	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282$as_echo "no" >&6; }
3283	    noconfigdirs="$noconfigdirs target-liboffloadmic"
3284	else
3285	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3286$as_echo "yes" >&6; }
3287	fi
3288    fi
3289fi
3290
3291# Disable libitm on unsupported systems.
3292if test -d ${srcdir}/libitm; then
3293    if test x$enable_libitm = x; then
3294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3295$as_echo_n "checking for libitm support... " >&6; }
3296	if (srcdir=${srcdir}/libitm; \
3297		. ${srcdir}/configure.tgt; \
3298		test -n "$UNSUPPORTED")
3299	then
3300	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301$as_echo "no" >&6; }
3302	    noconfigdirs="$noconfigdirs target-libitm"
3303	else
3304	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3305$as_echo "yes" >&6; }
3306	fi
3307    fi
3308fi
3309
3310# Disable libsanitizer on unsupported systems.
3311if test -d ${srcdir}/libsanitizer; then
3312    if test x$enable_libsanitizer = x; then
3313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3314$as_echo_n "checking for libsanitizer support... " >&6; }
3315	if (srcdir=${srcdir}/libsanitizer; \
3316		. ${srcdir}/configure.tgt; \
3317		test -n "$UNSUPPORTED")
3318	then
3319	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320$as_echo "no" >&6; }
3321	    noconfigdirs="$noconfigdirs target-libsanitizer"
3322	else
3323	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324$as_echo "yes" >&6; }
3325	fi
3326    fi
3327fi
3328
3329# Disable libvtv on unsupported systems.
3330if test -d ${srcdir}/libvtv; then
3331    if test x$enable_libvtv = x; then
3332	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3333$as_echo_n "checking for libvtv support... " >&6; }
3334	if (srcdir=${srcdir}/libvtv; \
3335		. ${srcdir}/configure.tgt; \
3336		test "$VTV_SUPPORTED" != "yes")
3337	then
3338	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339$as_echo "no" >&6; }
3340	    noconfigdirs="$noconfigdirs target-libvtv"
3341	else
3342	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3343$as_echo "yes" >&6; }
3344	fi
3345    fi
3346fi
3347
3348# Disable libquadmath for some systems.
3349case "${target}" in
3350  avr-*-*)
3351    noconfigdirs="$noconfigdirs target-libquadmath"
3352    ;;
3353  # libquadmath is unused on AIX and libquadmath build process use of
3354  # LD_LIBRARY_PATH can break AIX bootstrap.
3355  powerpc-*-aix* | rs6000-*-aix*)
3356    noconfigdirs="$noconfigdirs target-libquadmath"
3357    ;;
3358esac
3359
3360# Disable libssp for some systems.
3361case "${target}" in
3362  avr-*-*)
3363    # No hosted I/O support.
3364    noconfigdirs="$noconfigdirs target-libssp"
3365    ;;
3366  bpf-*-*)
3367    noconfigdirs="$noconfigdirs target-libssp"
3368    ;;
3369  powerpc-*-aix* | rs6000-*-aix*)
3370    noconfigdirs="$noconfigdirs target-libssp"
3371    ;;
3372  pru-*-*)
3373    # No hosted I/O support.
3374    noconfigdirs="$noconfigdirs target-libssp"
3375    ;;
3376  rl78-*-*)
3377    # libssp uses a misaligned load to trigger a fault, but the RL78
3378    # doesn't fault for those - instead, it gives a build-time error
3379    # for explicit misaligned loads.
3380    noconfigdirs="$noconfigdirs target-libssp"
3381    ;;
3382  visium-*-*)
3383    # No hosted I/O support.
3384    noconfigdirs="$noconfigdirs target-libssp"
3385    ;;
3386esac
3387
3388# Disable libstdc++-v3 for some systems.
3389# Allow user to override this if they pass --enable-libstdcxx
3390if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3391  case "${target}" in
3392    *-*-vxworks*)
3393      # VxWorks uses the Dinkumware C++ library.
3394      noconfigdirs="$noconfigdirs target-libstdc++-v3"
3395      ;;
3396    amdgcn*-*-*)
3397      # Not ported/fails to build when using newlib.
3398      noconfigdirs="$noconfigdirs target-libstdc++-v3"
3399      ;;
3400    arm*-wince-pe*)
3401      # the C++ libraries don't build on top of CE's C libraries
3402      noconfigdirs="$noconfigdirs target-libstdc++-v3"
3403      ;;
3404    avr-*-*)
3405      noconfigdirs="$noconfigdirs target-libstdc++-v3"
3406      ;;
3407    bpf-*-*)
3408      noconfigdirs="$noconfigdirs target-libstdc++-v3"
3409      ;;
3410    ft32-*-*)
3411      noconfigdirs="$noconfigdirs target-libstdc++-v3"
3412      ;;
3413  esac
3414fi
3415
3416# Disable C++ on systems where it is known to not work.
3417# For testing, you can override this with --enable-languages=c++.
3418case ,${enable_languages}, in
3419  *,c++,*)
3420    ;;
3421  *)
3422      case "${target}" in
3423        bpf-*-*)
3424          unsupported_languages="$unsupported_languages c++"
3425          ;;
3426      esac
3427      ;;
3428esac
3429
3430# Disable Objc on systems where it is known to not work.
3431# For testing, you can override this with --enable-languages=objc.
3432case ,${enable_languages}, in
3433  *,objc,*)
3434    ;;
3435  *)
3436      case "${target}" in
3437        bpf-*-*)
3438          unsupported_languages="$unsupported_languages objc"
3439          ;;
3440      esac
3441      ;;
3442esac
3443
3444# Disable D on systems where it is known to not work.
3445# For testing, you can override this with --enable-languages=d.
3446case ,${enable_languages}, in
3447  *,d,*)
3448    ;;
3449  *)
3450    case "${target}" in
3451      bpf-*-*)
3452	unsupported_languages="$unsupported_languages d"
3453	;;
3454    esac
3455    ;;
3456esac
3457
3458# Disable libphobos on unsupported systems.
3459# For testing, you can override this with --enable-libphobos.
3460if test -d ${srcdir}/libphobos; then
3461    if test x$enable_libphobos = x; then
3462	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3463$as_echo_n "checking for libphobos support... " >&6; }
3464	if (srcdir=${srcdir}/libphobos; \
3465		. ${srcdir}/configure.tgt; \
3466		test "$LIBPHOBOS_SUPPORTED" != "yes")
3467	then
3468	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469$as_echo "no" >&6; }
3470	    noconfigdirs="$noconfigdirs target-libphobos"
3471	else
3472	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3473$as_echo "yes" >&6; }
3474	fi
3475    fi
3476fi
3477
3478# Disable Fortran for some systems.
3479case "${target}" in
3480  mmix-*-*)
3481    # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3482    unsupported_languages="$unsupported_languages fortran"
3483    ;;
3484  bpf-*-*)
3485    unsupported_languages="$unsupported_languages fortran"
3486    ;;
3487esac
3488
3489# Disable libffi for some systems.
3490case "${target}" in
3491  powerpc-*-darwin*)
3492    ;;
3493  i[3456789]86-*-darwin*)
3494    ;;
3495  x86_64-*-darwin[912]*)
3496    ;;
3497  *-*-darwin*)
3498    noconfigdirs="$noconfigdirs target-libffi"
3499    ;;
3500  *-*-netware*)
3501    noconfigdirs="$noconfigdirs target-libffi"
3502    ;;
3503  *-*-phoenix*)
3504    noconfigdirs="$noconfigdirs target-libffi"
3505    ;;
3506  *-*-rtems*)
3507    noconfigdirs="$noconfigdirs target-libffi"
3508    ;;
3509  *-*-tpf*)
3510    noconfigdirs="$noconfigdirs target-libffi"
3511    ;;
3512  *-*-uclinux*)
3513    noconfigdirs="$noconfigdirs target-libffi"
3514    ;;
3515  *-*-vxworks*)
3516    noconfigdirs="$noconfigdirs target-libffi"
3517    ;;
3518  aarch64*-*-freebsd*)
3519    noconfigdirs="$noconfigdirs target-libffi"
3520    ;;
3521  alpha*-*-*vms*)
3522    noconfigdirs="$noconfigdirs target-libffi"
3523    ;;
3524  arm*-*-freebsd*)
3525    noconfigdirs="$noconfigdirs target-libffi"
3526    ;;
3527  arm-wince-pe)
3528    noconfigdirs="$noconfigdirs target-libffi"
3529    ;;
3530  arm*-*-symbianelf*)
3531    noconfigdirs="$noconfigdirs target-libffi"
3532    ;;
3533  bpf-*-*)
3534    noconfigdirs="$noconfigdirs target-libffi"
3535    ;;
3536  cris-*-* | crisv32-*-*)
3537    case "${target}" in
3538      *-*-linux*)
3539	;;
3540      *) # See PR46792 regarding target-libffi.
3541	noconfigdirs="$noconfigdirs target-libffi";;
3542    esac
3543    ;;
3544  hppa*64*-*-hpux*)
3545    noconfigdirs="$noconfigdirs target-libffi"
3546    ;;
3547  hppa*-hp-hpux11*)
3548    ;;
3549  hppa*-*-hpux*)
3550    noconfigdirs="$noconfigdirs target-libffi"
3551    ;;
3552  ia64*-*-*vms*)
3553    noconfigdirs="$noconfigdirs target-libffi"
3554    ;;
3555  i[3456789]86-w64-mingw*)
3556    noconfigdirs="$noconfigdirs target-libffi"
3557    ;;
3558  i[3456789]86-*-mingw*)
3559    noconfigdirs="$noconfigdirs target-libffi"
3560    ;;
3561  x86_64-*-mingw*)
3562    noconfigdirs="$noconfigdirs target-libffi"
3563    ;;
3564  mmix-*-*)
3565    noconfigdirs="$noconfigdirs target-libffi"
3566    ;;
3567  powerpc-*-aix*)
3568    ;;
3569  rs6000-*-aix*)
3570    ;;
3571  ft32-*-*)
3572    noconfigdirs="$noconfigdirs target-libffi"
3573    ;;
3574  *-*-lynxos*)
3575    noconfigdirs="$noconfigdirs target-libffi"
3576    ;;
3577esac
3578
3579# Disable the go frontend on systems where it is known to not work. Please keep
3580# this in sync with contrib/config-list.mk.
3581case "${target}" in
3582*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3583    unsupported_languages="$unsupported_languages go"
3584    ;;
3585esac
3586
3587# Only allow gdbserver on some systems.
3588if test -d ${srcdir}/gdbserver; then
3589    if test x$enable_gdbserver = x; then
3590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3591$as_echo_n "checking for gdbserver support... " >&6; }
3592	if (srcdir=${srcdir}/gdbserver; \
3593		. ${srcdir}/configure.srv; \
3594		test -n "$UNSUPPORTED")
3595	then
3596	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597$as_echo "no" >&6; }
3598	    noconfigdirs="$noconfigdirs gdbserver"
3599	else
3600	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3601$as_echo "yes" >&6; }
3602	fi
3603    fi
3604fi
3605
3606# Disable libgo for some systems where it is known to not work.
3607# For testing, you can easily override this with --enable-libgo.
3608if test x$enable_libgo = x; then
3609    case "${target}" in
3610    *-*-darwin*)
3611	# PR 46986
3612	noconfigdirs="$noconfigdirs target-libgo"
3613	;;
3614    *-*-cygwin* | *-*-mingw*)
3615	noconfigdirs="$noconfigdirs target-libgo"
3616	;;
3617    bpf-*-*)
3618        noconfigdirs="$noconfigdirs target-libgo"
3619        ;;
3620    esac
3621fi
3622
3623# Default libgloss CPU subdirectory.
3624libgloss_dir="$target_cpu"
3625
3626case "${target}" in
3627  sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3628    libgloss_dir=wince
3629    ;;
3630  aarch64*-*-* )
3631    libgloss_dir=aarch64
3632    ;;
3633  arm*-*-*)
3634    libgloss_dir=arm
3635    ;;
3636  cris-*-* | crisv32-*-*)
3637    libgloss_dir=cris
3638    ;;
3639  hppa*-*-*)
3640    libgloss_dir=pa
3641    ;;
3642  i[3456789]86-*-*)
3643    libgloss_dir=i386
3644    ;;
3645  loongarch*-*-*)
3646    libgloss_dir=loongarch
3647    ;;
3648  m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3649    libgloss_dir=m68hc11
3650    ;;
3651  m68*-*-* | fido-*-*)
3652    libgloss_dir=m68k
3653    ;;
3654  mips*-*-*)
3655    libgloss_dir=mips
3656    ;;
3657  powerpc*-*-*)
3658    libgloss_dir=rs6000
3659    ;;
3660  pru-*-*)
3661    libgloss_dir=pru
3662    ;;
3663  sparc*-*-*)
3664    libgloss_dir=sparc
3665    ;;
3666esac
3667
3668# Disable newlib and libgloss for various target OSes.
3669case "${target}" in
3670  alpha*-dec-osf*)
3671    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672    ;;
3673  i[3456789]86-*-linux*)
3674    # This section makes it possible to build newlib natively on linux.
3675    # If we are using a cross compiler then don't configure newlib.
3676    if test x${is_cross_compiler} != xno ; then
3677      noconfigdirs="$noconfigdirs target-newlib"
3678    fi
3679    noconfigdirs="$noconfigdirs target-libgloss"
3680    # If we are not using a cross compiler, do configure newlib.
3681    # Note however, that newlib will only be configured in this situation
3682    # if the --with-newlib option has been given, because otherwise
3683    # 'target-newlib' will appear in skipdirs.
3684    ;;
3685  i[3456789]86-*-rdos*)
3686    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687    ;;
3688  sh*-*-pe|mips*-*-pe|arm-wince-pe)
3689    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3690    ;;
3691  sparc-*-sunos4*)
3692    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693    ;;
3694  bpf-*-*)
3695    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3696    ;;
3697  *-*-aix*)
3698    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3699    ;;
3700  *-*-beos*)
3701    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3702    ;;
3703  *-*-chorusos)
3704    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3705    ;;
3706  *-*-dragonfly*)
3707    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3708    ;;
3709  *-*-freebsd*)
3710    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3711    ;;
3712  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3713    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3714    ;;
3715  *-*-lynxos*)
3716    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3717    ;;
3718  *-*-mingw*)
3719    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720    ;;
3721  *-*-netbsd*)
3722    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723    ;;
3724  *-*-netware*)
3725    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3726    ;;
3727  *-*-tpf*)
3728    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3729    ;;
3730  *-*-uclinux*)
3731    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3732    ;;
3733  *-*-vxworks*)
3734    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3735    ;;
3736esac
3737
3738case "${target}" in
3739  *-*-chorusos)
3740    ;;
3741  aarch64-*-darwin*)
3742    noconfigdirs="$noconfigdirs ld gas gdb gprof"
3743    noconfigdirs="$noconfigdirs sim target-rda"
3744    ;;
3745  amdgcn*-*-*)
3746    ;;
3747  arm-*-darwin*)
3748    noconfigdirs="$noconfigdirs ld gas gdb gprof"
3749    noconfigdirs="$noconfigdirs sim target-rda"
3750    ;;
3751  powerpc-*-darwin*)
3752    noconfigdirs="$noconfigdirs ld gas gdb gprof"
3753    noconfigdirs="$noconfigdirs sim target-rda"
3754    ;;
3755  i[3456789]86-*-darwin*)
3756    noconfigdirs="$noconfigdirs ld gprof"
3757    noconfigdirs="$noconfigdirs sim target-rda"
3758    ;;
3759  x86_64-*-darwin[912]*)
3760    noconfigdirs="$noconfigdirs ld gas gprof"
3761    noconfigdirs="$noconfigdirs sim target-rda"
3762    ;;
3763  *-*-darwin*)
3764    noconfigdirs="$noconfigdirs ld gas gdb gprof"
3765    noconfigdirs="$noconfigdirs sim target-rda"
3766    ;;
3767  *-*-dragonfly*)
3768    ;;
3769  *-*-freebsd*)
3770    if test "x$with_gmp" = x \
3771	&& ! test -d ${srcdir}/gmp \
3772	&& test -f /usr/local/include/gmp.h; then
3773      with_gmp=/usr/local
3774    fi
3775    ;;
3776  *-*-kaos*)
3777    # Remove unsupported stuff on all kaOS configurations.
3778    noconfigdirs="$noconfigdirs target-libgloss"
3779    ;;
3780  *-*-netbsd*)
3781    ;;
3782  *-*-netware*)
3783    ;;
3784  *-*-phoenix*)
3785    noconfigdirs="$noconfigdirs target-libgloss"
3786    ;;
3787  *-*-rtems*)
3788    noconfigdirs="$noconfigdirs target-libgloss"
3789    ;;
3790    # The tpf target doesn't support gdb yet.
3791  *-*-tpf*)
3792    noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3793    ;;
3794  *-*-uclinux*)
3795    noconfigdirs="$noconfigdirs target-rda"
3796    ;;
3797  *-*-vxworks*)
3798    ;;
3799  alpha*-dec-osf*)
3800    # ld works, but does not support shared libraries.
3801    # gas doesn't generate exception information.
3802    noconfigdirs="$noconfigdirs gas ld"
3803    ;;
3804  alpha*-*-*vms*)
3805    noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3806    ;;
3807  alpha*-*-*)
3808    # newlib is not 64 bit ready
3809    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3810    ;;
3811  bpf-*-*)
3812    noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3813    ;;
3814  sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3815    noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3816    ;;
3817  arc*-*-*)
3818    noconfigdirs="$noconfigdirs sim"
3819    ;;
3820  arm-*-pe*)
3821    noconfigdirs="$noconfigdirs target-libgloss"
3822    ;;
3823  arm-*-riscix*)
3824    noconfigdirs="$noconfigdirs ld target-libgloss"
3825    ;;
3826  avr-*-*)
3827    if test x${with_avrlibc} != xno; then
3828      noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3829    fi
3830    ;;
3831  c4x-*-* | tic4x-*-*)
3832    noconfigdirs="$noconfigdirs target-libgloss"
3833    ;;
3834  tic54x-*-*)
3835    noconfigdirs="$noconfigdirs target-libgloss gdb"
3836    ;;
3837  d10v-*-*)
3838    noconfigdirs="$noconfigdirs target-libgloss"
3839    ;;
3840  d30v-*-*)
3841    noconfigdirs="$noconfigdirs gdb"
3842    ;;
3843  fr30-*-elf*)
3844    noconfigdirs="$noconfigdirs gdb"
3845    ;;
3846  ft32-*-*)
3847    noconfigdirs="$noconfigdirs target-rda gprof"
3848    ;;
3849  moxie-*-*)
3850    noconfigdirs="$noconfigdirs"
3851    ;;
3852  h8300*-*-*)
3853    noconfigdirs="$noconfigdirs target-libgloss"
3854    ;;
3855  h8500-*-*)
3856    noconfigdirs="$noconfigdirs target-libgloss"
3857    ;;
3858  hppa1.1-*-osf* | hppa1.1-*-bsd* )
3859    ;;
3860  hppa*64*-*-hpux*)
3861    noconfigdirs="$noconfigdirs gdb"
3862    ;;
3863  hppa*-*-hpux11*)
3864    noconfigdirs="$noconfigdirs gdb ld"
3865    ;;
3866  hppa*64*-*-linux*)
3867    ;;
3868  hppa*-*-linux*)
3869    ;;
3870  hppa*-*-*elf* | \
3871  hppa*-*-lites* | \
3872  hppa*-*-openbsd* | \
3873  hppa*64*-*-*)
3874    ;;
3875  hppa*-*-pro*)
3876    ;;
3877  hppa*-*-*)
3878    noconfigdirs="$noconfigdirs ld"
3879    ;;
3880  i960-*-*)
3881    noconfigdirs="$noconfigdirs gdb"
3882    ;;
3883  ia64*-*-elf*)
3884    # No gdb support yet.
3885    noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3886    ;;
3887  ia64*-**-hpux*)
3888    # No ld support yet.
3889    noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3890    ;;
3891  ia64*-*-*vms*)
3892    # No ld support yet.
3893    noconfigdirs="$noconfigdirs libgui itcl ld"
3894    ;;
3895  i[3456789]86-w64-mingw*)
3896    ;;
3897  i[3456789]86-*-mingw*)
3898    target_configdirs="$target_configdirs target-winsup"
3899    ;;
3900  *-*-cygwin*)
3901    target_configdirs="$target_configdirs target-libtermcap target-winsup"
3902    noconfigdirs="$noconfigdirs target-libgloss"
3903    # always build newlib if winsup directory is present.
3904    if test -d "$srcdir/winsup/cygwin"; then
3905      skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3906    elif test -d "$srcdir/newlib"; then
3907      echo "Warning: winsup/cygwin is missing so newlib can't be built."
3908    fi
3909    ;;
3910  i[3456789]86-*-pe)
3911    noconfigdirs="$noconfigdirs target-libgloss"
3912    ;;
3913  i[3456789]86-*-sco3.2v5*)
3914    # The linker does not yet know about weak symbols in COFF,
3915    # and is not configured to handle mixed ELF and COFF.
3916    noconfigdirs="$noconfigdirs ld target-libgloss"
3917    ;;
3918  i[3456789]86-*-sco*)
3919    noconfigdirs="$noconfigdirs gprof target-libgloss"
3920    ;;
3921  i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3922    noconfigdirs="$noconfigdirs target-libgloss"
3923    ;;
3924  i[3456789]86-*-sysv4*)
3925    noconfigdirs="$noconfigdirs target-libgloss"
3926    ;;
3927  i[3456789]86-*-beos*)
3928    noconfigdirs="$noconfigdirs gdb"
3929    ;;
3930  i[3456789]86-*-rdos*)
3931    noconfigdirs="$noconfigdirs gdb"
3932    ;;
3933  mmix-*-*)
3934    noconfigdirs="$noconfigdirs gdb"
3935    ;;
3936  mt-*-*)
3937    noconfigdirs="$noconfigdirs sim"
3938    ;;
3939  nfp-*-*)
3940    noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3941    noconfigdirs="$noconfigdirs $target_libraries"
3942    ;;
3943  pdp11-*-*)
3944    noconfigdirs="$noconfigdirs gdb gprof"
3945    ;;
3946  powerpc-*-aix*)
3947    # copied from rs6000-*-* entry
3948    noconfigdirs="$noconfigdirs gprof"
3949    ;;
3950  powerpc*-*-winnt* | powerpc*-*-pe*)
3951    target_configdirs="$target_configdirs target-winsup"
3952    noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3953    # always build newlib.
3954    skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3955    ;;
3956    # This is temporary until we can link against shared libraries
3957  powerpcle-*-solaris*)
3958    noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3959    ;;
3960  powerpc-*-beos*)
3961    noconfigdirs="$noconfigdirs gdb"
3962    ;;
3963  rs6000-*-lynxos*)
3964    noconfigdirs="$noconfigdirs gprof"
3965    ;;
3966  rs6000-*-aix*)
3967    noconfigdirs="$noconfigdirs gprof"
3968    ;;
3969  rs6000-*-*)
3970    noconfigdirs="$noconfigdirs gprof"
3971    ;;
3972  m68k-apollo-*)
3973    noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3974    ;;
3975  microblaze*)
3976    noconfigdirs="$noconfigdirs gprof"
3977    ;;
3978  mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3979    if test x$with_newlib = xyes; then
3980      noconfigdirs="$noconfigdirs gprof"
3981    fi
3982    ;;
3983  mips*-*-irix5*)
3984    noconfigdirs="$noconfigdirs gprof target-libgloss"
3985    ;;
3986  mips*-*-irix6*)
3987    noconfigdirs="$noconfigdirs gprof target-libgloss"
3988    ;;
3989  mips*-*-bsd*)
3990    noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3991    ;;
3992  mips*-*-linux*)
3993    ;;
3994  mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3995  | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3996    noconfigdirs="$noconfigdirs ld gas gprof"
3997    ;;
3998  mips*-*-*)
3999    noconfigdirs="$noconfigdirs gprof"
4000    ;;
4001  nvptx*-*-*)
4002    noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4003    ;;
4004  sh-*-*)
4005    case "${target}" in
4006      sh*-*-elf)
4007         ;;
4008      *)
4009         noconfigdirs="$noconfigdirs target-libgloss" ;;
4010    esac
4011    ;;
4012  sparc-*-sunos4*)
4013    if test x${is_cross_compiler} = xno ; then
4014           use_gnu_ld=no
4015    fi
4016    ;;
4017  tic6x-*-*)
4018    noconfigdirs="$noconfigdirs sim"
4019    ;;
4020  tilepro*-*-* | tilegx*-*-*)
4021    noconfigdirs="$noconfigdirs sim"
4022    ;;
4023  v810-*-*)
4024    noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4025    ;;
4026  vax-*-*)
4027    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4028    ;;
4029  wasm32-*-*)
4030    noconfigdirs="$noconfigdirs ld"
4031    ;;
4032  loongarch*-*-linux*)
4033    ;;
4034  loongarch*-*-*)
4035    noconfigdirs="$noconfigdirs gprof"
4036    ;;
4037esac
4038
4039# If we aren't building newlib, then don't build libgloss, since libgloss
4040# depends upon some newlib header files.
4041case "${noconfigdirs}" in
4042  *target-libgloss*) ;;
4043  *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4044esac
4045
4046# Work in distributions that contain no compiler tools, like Autoconf.
4047host_makefile_frag=/dev/null
4048if test -d ${srcdir}/config ; then
4049case "${host}" in
4050  i[3456789]86-*-msdosdjgpp*)
4051    host_makefile_frag="config/mh-djgpp"
4052    ;;
4053  *-cygwin*)
4054
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4056$as_echo_n "checking to see if cat works as expected... " >&6; }
4057echo a >cygwin-cat-check
4058if test `cat cygwin-cat-check` = a ; then
4059  rm cygwin-cat-check
4060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4061$as_echo "yes" >&6; }
4062else
4063  rm cygwin-cat-check
4064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065$as_echo "no" >&6; }
4066  as_fn_error $? "The cat command does not ignore carriage return characters.
4067  Please either mount the build directory in binary mode or run the following
4068  commands before running any configure script:
4069set -o igncr
4070export SHELLOPTS
4071  " "$LINENO" 5
4072fi
4073
4074    host_makefile_frag="config/mh-cygwin"
4075    ;;
4076  *-mingw*)
4077    host_makefile_frag="config/mh-mingw"
4078    ;;
4079  alpha*-linux*)
4080    host_makefile_frag="config/mh-alpha-linux"
4081    ;;
4082  hppa*-hp-hpux10*)
4083    host_makefile_frag="config/mh-pa-hpux10"
4084    ;;
4085  hppa*-hp-hpux*)
4086    host_makefile_frag="config/mh-pa"
4087    ;;
4088  hppa*-*)
4089    host_makefile_frag="config/mh-pa"
4090    ;;
4091  i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4092    host_makefile_frag="config/mh-darwin"
4093    ;;
4094  powerpc-*-aix*)
4095    host_makefile_frag="config/mh-ppc-aix"
4096    ;;
4097  rs6000-*-aix*)
4098    host_makefile_frag="config/mh-ppc-aix"
4099    ;;
4100esac
4101fi
4102
4103if test "${build}" != "${host}" ; then
4104  AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4105  AS_FOR_BUILD=${AS_FOR_BUILD-as}
4106  CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4107  CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4108  CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4109  DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4110  GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4111  GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4112  GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4113  DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4114  LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4115  NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4116  RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4117  WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4118  WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4119else
4120  AR_FOR_BUILD="\$(AR)"
4121  AS_FOR_BUILD="\$(AS)"
4122  CC_FOR_BUILD="\$(CC)"
4123  CXX_FOR_BUILD="\$(CXX)"
4124  DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4125  GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4126  GOC_FOR_BUILD="\$(GOC)"
4127  GDC_FOR_BUILD="\$(GDC)"
4128  DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4129  LD_FOR_BUILD="\$(LD)"
4130  NM_FOR_BUILD="\$(NM)"
4131  RANLIB_FOR_BUILD="\$(RANLIB)"
4132  WINDRES_FOR_BUILD="\$(WINDRES)"
4133  WINDMC_FOR_BUILD="\$(WINDMC)"
4134fi
4135
4136ac_ext=c
4137ac_cpp='$CPP $CPPFLAGS'
4138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141if test -n "$ac_tool_prefix"; then
4142  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4143set dummy ${ac_tool_prefix}gcc; ac_word=$2
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145$as_echo_n "checking for $ac_word... " >&6; }
4146if ${ac_cv_prog_CC+:} false; then :
4147  $as_echo_n "(cached) " >&6
4148else
4149  if test -n "$CC"; then
4150  ac_cv_prog_CC="$CC" # Let the user override the test.
4151else
4152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153for as_dir in $PATH
4154do
4155  IFS=$as_save_IFS
4156  test -z "$as_dir" && as_dir=.
4157    for ac_exec_ext in '' $ac_executable_extensions; do
4158  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161    break 2
4162  fi
4163done
4164  done
4165IFS=$as_save_IFS
4166
4167fi
4168fi
4169CC=$ac_cv_prog_CC
4170if test -n "$CC"; then
4171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4172$as_echo "$CC" >&6; }
4173else
4174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175$as_echo "no" >&6; }
4176fi
4177
4178
4179fi
4180if test -z "$ac_cv_prog_CC"; then
4181  ac_ct_CC=$CC
4182  # Extract the first word of "gcc", so it can be a program name with args.
4183set dummy gcc; 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; }
4186if ${ac_cv_prog_ac_ct_CC+:} false; then :
4187  $as_echo_n "(cached) " >&6
4188else
4189  if test -n "$ac_ct_CC"; then
4190  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4191else
4192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193for as_dir in $PATH
4194do
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_ac_ct_CC="gcc"
4200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201    break 2
4202  fi
4203done
4204  done
4205IFS=$as_save_IFS
4206
4207fi
4208fi
4209ac_ct_CC=$ac_cv_prog_ac_ct_CC
4210if test -n "$ac_ct_CC"; then
4211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4212$as_echo "$ac_ct_CC" >&6; }
4213else
4214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215$as_echo "no" >&6; }
4216fi
4217
4218  if test "x$ac_ct_CC" = x; then
4219    CC=""
4220  else
4221    case $cross_compiling:$ac_tool_warned in
4222yes:)
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4225ac_tool_warned=yes ;;
4226esac
4227    CC=$ac_ct_CC
4228  fi
4229else
4230  CC="$ac_cv_prog_CC"
4231fi
4232
4233if test -z "$CC"; then
4234          if test -n "$ac_tool_prefix"; then
4235    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4236set dummy ${ac_tool_prefix}cc; ac_word=$2
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4238$as_echo_n "checking for $ac_word... " >&6; }
4239if ${ac_cv_prog_CC+:} false; then :
4240  $as_echo_n "(cached) " >&6
4241else
4242  if test -n "$CC"; then
4243  ac_cv_prog_CC="$CC" # Let the user override the test.
4244else
4245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246for as_dir in $PATH
4247do
4248  IFS=$as_save_IFS
4249  test -z "$as_dir" && as_dir=.
4250    for ac_exec_ext in '' $ac_executable_extensions; do
4251  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252    ac_cv_prog_CC="${ac_tool_prefix}cc"
4253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254    break 2
4255  fi
4256done
4257  done
4258IFS=$as_save_IFS
4259
4260fi
4261fi
4262CC=$ac_cv_prog_CC
4263if test -n "$CC"; then
4264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4265$as_echo "$CC" >&6; }
4266else
4267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268$as_echo "no" >&6; }
4269fi
4270
4271
4272  fi
4273fi
4274if test -z "$CC"; then
4275  # Extract the first word of "cc", so it can be a program name with args.
4276set dummy cc; ac_word=$2
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4278$as_echo_n "checking for $ac_word... " >&6; }
4279if ${ac_cv_prog_CC+:} false; then :
4280  $as_echo_n "(cached) " >&6
4281else
4282  if test -n "$CC"; then
4283  ac_cv_prog_CC="$CC" # Let the user override the test.
4284else
4285  ac_prog_rejected=no
4286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287for as_dir in $PATH
4288do
4289  IFS=$as_save_IFS
4290  test -z "$as_dir" && as_dir=.
4291    for ac_exec_ext in '' $ac_executable_extensions; do
4292  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4293    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4294       ac_prog_rejected=yes
4295       continue
4296     fi
4297    ac_cv_prog_CC="cc"
4298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299    break 2
4300  fi
4301done
4302  done
4303IFS=$as_save_IFS
4304
4305if test $ac_prog_rejected = yes; then
4306  # We found a bogon in the path, so make sure we never use it.
4307  set dummy $ac_cv_prog_CC
4308  shift
4309  if test $# != 0; then
4310    # We chose a different compiler from the bogus one.
4311    # However, it has the same basename, so the bogon will be chosen
4312    # first if we set CC to just the basename; use the full file name.
4313    shift
4314    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4315  fi
4316fi
4317fi
4318fi
4319CC=$ac_cv_prog_CC
4320if test -n "$CC"; then
4321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4322$as_echo "$CC" >&6; }
4323else
4324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325$as_echo "no" >&6; }
4326fi
4327
4328
4329fi
4330if test -z "$CC"; then
4331  if test -n "$ac_tool_prefix"; then
4332  for ac_prog in cl.exe
4333  do
4334    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4335set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4337$as_echo_n "checking for $ac_word... " >&6; }
4338if ${ac_cv_prog_CC+:} false; then :
4339  $as_echo_n "(cached) " >&6
4340else
4341  if test -n "$CC"; then
4342  ac_cv_prog_CC="$CC" # Let the user override the test.
4343else
4344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345for as_dir in $PATH
4346do
4347  IFS=$as_save_IFS
4348  test -z "$as_dir" && as_dir=.
4349    for ac_exec_ext in '' $ac_executable_extensions; do
4350  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4351    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353    break 2
4354  fi
4355done
4356  done
4357IFS=$as_save_IFS
4358
4359fi
4360fi
4361CC=$ac_cv_prog_CC
4362if test -n "$CC"; then
4363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4364$as_echo "$CC" >&6; }
4365else
4366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367$as_echo "no" >&6; }
4368fi
4369
4370
4371    test -n "$CC" && break
4372  done
4373fi
4374if test -z "$CC"; then
4375  ac_ct_CC=$CC
4376  for ac_prog in cl.exe
4377do
4378  # Extract the first word of "$ac_prog", so it can be a program name with args.
4379set dummy $ac_prog; ac_word=$2
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4381$as_echo_n "checking for $ac_word... " >&6; }
4382if ${ac_cv_prog_ac_ct_CC+:} false; then :
4383  $as_echo_n "(cached) " >&6
4384else
4385  if test -n "$ac_ct_CC"; then
4386  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4387else
4388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389for as_dir in $PATH
4390do
4391  IFS=$as_save_IFS
4392  test -z "$as_dir" && as_dir=.
4393    for ac_exec_ext in '' $ac_executable_extensions; do
4394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4395    ac_cv_prog_ac_ct_CC="$ac_prog"
4396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397    break 2
4398  fi
4399done
4400  done
4401IFS=$as_save_IFS
4402
4403fi
4404fi
4405ac_ct_CC=$ac_cv_prog_ac_ct_CC
4406if test -n "$ac_ct_CC"; then
4407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4408$as_echo "$ac_ct_CC" >&6; }
4409else
4410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4411$as_echo "no" >&6; }
4412fi
4413
4414
4415  test -n "$ac_ct_CC" && break
4416done
4417
4418  if test "x$ac_ct_CC" = x; then
4419    CC=""
4420  else
4421    case $cross_compiling:$ac_tool_warned in
4422yes:)
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4425ac_tool_warned=yes ;;
4426esac
4427    CC=$ac_ct_CC
4428  fi
4429fi
4430
4431fi
4432
4433
4434test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4436as_fn_error $? "no acceptable C compiler found in \$PATH
4437See \`config.log' for more details" "$LINENO" 5; }
4438
4439# Provide some information about the compiler.
4440$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4441set X $ac_compile
4442ac_compiler=$2
4443for ac_option in --version -v -V -qversion; do
4444  { { ac_try="$ac_compiler $ac_option >&5"
4445case "(($ac_try" in
4446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447  *) ac_try_echo=$ac_try;;
4448esac
4449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4450$as_echo "$ac_try_echo"; } >&5
4451  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4452  ac_status=$?
4453  if test -s conftest.err; then
4454    sed '10a\
4455... rest of stderr output deleted ...
4456         10q' conftest.err >conftest.er1
4457    cat conftest.er1 >&5
4458  fi
4459  rm -f conftest.er1 conftest.err
4460  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461  test $ac_status = 0; }
4462done
4463
4464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465/* end confdefs.h.  */
4466
4467int
4468main ()
4469{
4470
4471  ;
4472  return 0;
4473}
4474_ACEOF
4475ac_clean_files_save=$ac_clean_files
4476ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4477# Try to create an executable without -o first, disregard a.out.
4478# It will help us diagnose broken compilers, and finding out an intuition
4479# of exeext.
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4481$as_echo_n "checking whether the C compiler works... " >&6; }
4482ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4483
4484# The possible output files:
4485ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4486
4487ac_rmfiles=
4488for ac_file in $ac_files
4489do
4490  case $ac_file in
4491    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4492    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4493  esac
4494done
4495rm -f $ac_rmfiles
4496
4497if { { ac_try="$ac_link_default"
4498case "(($ac_try" in
4499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500  *) ac_try_echo=$ac_try;;
4501esac
4502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503$as_echo "$ac_try_echo"; } >&5
4504  (eval "$ac_link_default") 2>&5
4505  ac_status=$?
4506  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507  test $ac_status = 0; }; then :
4508  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4509# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4510# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4511# so that the user can short-circuit this test for compilers unknown to
4512# Autoconf.
4513for ac_file in $ac_files ''
4514do
4515  test -f "$ac_file" || continue
4516  case $ac_file in
4517    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4518	;;
4519    [ab].out )
4520	# We found the default executable, but exeext='' is most
4521	# certainly right.
4522	break;;
4523    *.* )
4524	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4525	then :; else
4526	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4527	fi
4528	# We set ac_cv_exeext here because the later test for it is not
4529	# safe: cross compilers may not add the suffix if given an `-o'
4530	# argument, so we may need to know it at that point already.
4531	# Even if this section looks crufty: it has the advantage of
4532	# actually working.
4533	break;;
4534    * )
4535	break;;
4536  esac
4537done
4538test "$ac_cv_exeext" = no && ac_cv_exeext=
4539
4540else
4541  ac_file=''
4542fi
4543if test -z "$ac_file"; then :
4544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545$as_echo "no" >&6; }
4546$as_echo "$as_me: failed program was:" >&5
4547sed 's/^/| /' conftest.$ac_ext >&5
4548
4549{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4551as_fn_error 77 "C compiler cannot create executables
4552See \`config.log' for more details" "$LINENO" 5; }
4553else
4554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4555$as_echo "yes" >&6; }
4556fi
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4558$as_echo_n "checking for C compiler default output file name... " >&6; }
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4560$as_echo "$ac_file" >&6; }
4561ac_exeext=$ac_cv_exeext
4562
4563rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4564ac_clean_files=$ac_clean_files_save
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4566$as_echo_n "checking for suffix of executables... " >&6; }
4567if { { ac_try="$ac_link"
4568case "(($ac_try" in
4569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570  *) ac_try_echo=$ac_try;;
4571esac
4572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4573$as_echo "$ac_try_echo"; } >&5
4574  (eval "$ac_link") 2>&5
4575  ac_status=$?
4576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4577  test $ac_status = 0; }; then :
4578  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4579# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4580# work properly (i.e., refer to `conftest.exe'), while it won't with
4581# `rm'.
4582for ac_file in conftest.exe conftest conftest.*; do
4583  test -f "$ac_file" || continue
4584  case $ac_file in
4585    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4586    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4587	  break;;
4588    * ) break;;
4589  esac
4590done
4591else
4592  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4594as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4595See \`config.log' for more details" "$LINENO" 5; }
4596fi
4597rm -f conftest conftest$ac_cv_exeext
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4599$as_echo "$ac_cv_exeext" >&6; }
4600
4601rm -f conftest.$ac_ext
4602EXEEXT=$ac_cv_exeext
4603ac_exeext=$EXEEXT
4604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605/* end confdefs.h.  */
4606#include <stdio.h>
4607int
4608main ()
4609{
4610FILE *f = fopen ("conftest.out", "w");
4611 return ferror (f) || fclose (f) != 0;
4612
4613  ;
4614  return 0;
4615}
4616_ACEOF
4617ac_clean_files="$ac_clean_files conftest.out"
4618# Check that the compiler produces executables we can run.  If not, either
4619# the compiler is broken, or we cross compile.
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4621$as_echo_n "checking whether we are cross compiling... " >&6; }
4622if test "$cross_compiling" != yes; then
4623  { { ac_try="$ac_link"
4624case "(($ac_try" in
4625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626  *) ac_try_echo=$ac_try;;
4627esac
4628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4629$as_echo "$ac_try_echo"; } >&5
4630  (eval "$ac_link") 2>&5
4631  ac_status=$?
4632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4633  test $ac_status = 0; }
4634  if { ac_try='./conftest$ac_cv_exeext'
4635  { { case "(($ac_try" in
4636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637  *) ac_try_echo=$ac_try;;
4638esac
4639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4640$as_echo "$ac_try_echo"; } >&5
4641  (eval "$ac_try") 2>&5
4642  ac_status=$?
4643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4644  test $ac_status = 0; }; }; then
4645    cross_compiling=no
4646  else
4647    if test "$cross_compiling" = maybe; then
4648	cross_compiling=yes
4649    else
4650	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4652as_fn_error $? "cannot run C compiled programs.
4653If you meant to cross compile, use \`--host'.
4654See \`config.log' for more details" "$LINENO" 5; }
4655    fi
4656  fi
4657fi
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4659$as_echo "$cross_compiling" >&6; }
4660
4661rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4662ac_clean_files=$ac_clean_files_save
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4664$as_echo_n "checking for suffix of object files... " >&6; }
4665if ${ac_cv_objext+:} false; then :
4666  $as_echo_n "(cached) " >&6
4667else
4668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669/* end confdefs.h.  */
4670
4671int
4672main ()
4673{
4674
4675  ;
4676  return 0;
4677}
4678_ACEOF
4679rm -f conftest.o conftest.obj
4680if { { ac_try="$ac_compile"
4681case "(($ac_try" in
4682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683  *) ac_try_echo=$ac_try;;
4684esac
4685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4686$as_echo "$ac_try_echo"; } >&5
4687  (eval "$ac_compile") 2>&5
4688  ac_status=$?
4689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4690  test $ac_status = 0; }; then :
4691  for ac_file in conftest.o conftest.obj conftest.*; do
4692  test -f "$ac_file" || continue;
4693  case $ac_file in
4694    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4695    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4696       break;;
4697  esac
4698done
4699else
4700  $as_echo "$as_me: failed program was:" >&5
4701sed 's/^/| /' conftest.$ac_ext >&5
4702
4703{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4705as_fn_error $? "cannot compute suffix of object files: cannot compile
4706See \`config.log' for more details" "$LINENO" 5; }
4707fi
4708rm -f conftest.$ac_cv_objext conftest.$ac_ext
4709fi
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4711$as_echo "$ac_cv_objext" >&6; }
4712OBJEXT=$ac_cv_objext
4713ac_objext=$OBJEXT
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4715$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4716if ${ac_cv_c_compiler_gnu+:} false; then :
4717  $as_echo_n "(cached) " >&6
4718else
4719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720/* end confdefs.h.  */
4721
4722int
4723main ()
4724{
4725#ifndef __GNUC__
4726       choke me
4727#endif
4728
4729  ;
4730  return 0;
4731}
4732_ACEOF
4733if ac_fn_c_try_compile "$LINENO"; then :
4734  ac_compiler_gnu=yes
4735else
4736  ac_compiler_gnu=no
4737fi
4738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739ac_cv_c_compiler_gnu=$ac_compiler_gnu
4740
4741fi
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4743$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4744if test $ac_compiler_gnu = yes; then
4745  GCC=yes
4746else
4747  GCC=
4748fi
4749ac_test_CFLAGS=${CFLAGS+set}
4750ac_save_CFLAGS=$CFLAGS
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4752$as_echo_n "checking whether $CC accepts -g... " >&6; }
4753if ${ac_cv_prog_cc_g+:} false; then :
4754  $as_echo_n "(cached) " >&6
4755else
4756  ac_save_c_werror_flag=$ac_c_werror_flag
4757   ac_c_werror_flag=yes
4758   ac_cv_prog_cc_g=no
4759   CFLAGS="-g"
4760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761/* end confdefs.h.  */
4762
4763int
4764main ()
4765{
4766
4767  ;
4768  return 0;
4769}
4770_ACEOF
4771if ac_fn_c_try_compile "$LINENO"; then :
4772  ac_cv_prog_cc_g=yes
4773else
4774  CFLAGS=""
4775      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776/* end confdefs.h.  */
4777
4778int
4779main ()
4780{
4781
4782  ;
4783  return 0;
4784}
4785_ACEOF
4786if ac_fn_c_try_compile "$LINENO"; then :
4787
4788else
4789  ac_c_werror_flag=$ac_save_c_werror_flag
4790	 CFLAGS="-g"
4791	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792/* end confdefs.h.  */
4793
4794int
4795main ()
4796{
4797
4798  ;
4799  return 0;
4800}
4801_ACEOF
4802if ac_fn_c_try_compile "$LINENO"; then :
4803  ac_cv_prog_cc_g=yes
4804fi
4805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806fi
4807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808fi
4809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810   ac_c_werror_flag=$ac_save_c_werror_flag
4811fi
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4813$as_echo "$ac_cv_prog_cc_g" >&6; }
4814if test "$ac_test_CFLAGS" = set; then
4815  CFLAGS=$ac_save_CFLAGS
4816elif test $ac_cv_prog_cc_g = yes; then
4817  if test "$GCC" = yes; then
4818    CFLAGS="-g -O2"
4819  else
4820    CFLAGS="-g"
4821  fi
4822else
4823  if test "$GCC" = yes; then
4824    CFLAGS="-O2"
4825  else
4826    CFLAGS=
4827  fi
4828fi
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4830$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4831if ${ac_cv_prog_cc_c89+:} false; then :
4832  $as_echo_n "(cached) " >&6
4833else
4834  ac_cv_prog_cc_c89=no
4835ac_save_CC=$CC
4836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837/* end confdefs.h.  */
4838#include <stdarg.h>
4839#include <stdio.h>
4840struct stat;
4841/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4842struct buf { int x; };
4843FILE * (*rcsopen) (struct buf *, struct stat *, int);
4844static char *e (p, i)
4845     char **p;
4846     int i;
4847{
4848  return p[i];
4849}
4850static char *f (char * (*g) (char **, int), char **p, ...)
4851{
4852  char *s;
4853  va_list v;
4854  va_start (v,p);
4855  s = g (p, va_arg (v,int));
4856  va_end (v);
4857  return s;
4858}
4859
4860/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4861   function prototypes and stuff, but not '\xHH' hex character constants.
4862   These don't provoke an error unfortunately, instead are silently treated
4863   as 'x'.  The following induces an error, until -std is added to get
4864   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4865   array size at least.  It's necessary to write '\x00'==0 to get something
4866   that's true only with -std.  */
4867int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4868
4869/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4870   inside strings and character constants.  */
4871#define FOO(x) 'x'
4872int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4873
4874int test (int i, double x);
4875struct s1 {int (*f) (int a);};
4876struct s2 {int (*f) (double a);};
4877int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4878int argc;
4879char **argv;
4880int
4881main ()
4882{
4883return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4884  ;
4885  return 0;
4886}
4887_ACEOF
4888for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4889	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4890do
4891  CC="$ac_save_CC $ac_arg"
4892  if ac_fn_c_try_compile "$LINENO"; then :
4893  ac_cv_prog_cc_c89=$ac_arg
4894fi
4895rm -f core conftest.err conftest.$ac_objext
4896  test "x$ac_cv_prog_cc_c89" != "xno" && break
4897done
4898rm -f conftest.$ac_ext
4899CC=$ac_save_CC
4900
4901fi
4902# AC_CACHE_VAL
4903case "x$ac_cv_prog_cc_c89" in
4904  x)
4905    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4906$as_echo "none needed" >&6; } ;;
4907  xno)
4908    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4909$as_echo "unsupported" >&6; } ;;
4910  *)
4911    CC="$CC $ac_cv_prog_cc_c89"
4912    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4913$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4914esac
4915if test "x$ac_cv_prog_cc_c89" != xno; then :
4916
4917fi
4918
4919ac_ext=c
4920ac_cpp='$CPP $CPPFLAGS'
4921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924
4925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4926$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4927if ${ac_cv_prog_cc_c99+:} false; then :
4928  $as_echo_n "(cached) " >&6
4929else
4930  ac_cv_prog_cc_c99=no
4931ac_save_CC=$CC
4932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933/* end confdefs.h.  */
4934#include <stdarg.h>
4935#include <stdbool.h>
4936#include <stdlib.h>
4937#include <wchar.h>
4938#include <stdio.h>
4939
4940// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4941#define debug(...) fprintf (stderr, __VA_ARGS__)
4942#define showlist(...) puts (#__VA_ARGS__)
4943#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4944static void
4945test_varargs_macros (void)
4946{
4947  int x = 1234;
4948  int y = 5678;
4949  debug ("Flag");
4950  debug ("X = %d\n", x);
4951  showlist (The first, second, and third items.);
4952  report (x>y, "x is %d but y is %d", x, y);
4953}
4954
4955// Check long long types.
4956#define BIG64 18446744073709551615ull
4957#define BIG32 4294967295ul
4958#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4959#if !BIG_OK
4960  your preprocessor is broken;
4961#endif
4962#if BIG_OK
4963#else
4964  your preprocessor is broken;
4965#endif
4966static long long int bignum = -9223372036854775807LL;
4967static unsigned long long int ubignum = BIG64;
4968
4969struct incomplete_array
4970{
4971  int datasize;
4972  double data[];
4973};
4974
4975struct named_init {
4976  int number;
4977  const wchar_t *name;
4978  double average;
4979};
4980
4981typedef const char *ccp;
4982
4983static inline int
4984test_restrict (ccp restrict text)
4985{
4986  // See if C++-style comments work.
4987  // Iterate through items via the restricted pointer.
4988  // Also check for declarations in for loops.
4989  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4990    continue;
4991  return 0;
4992}
4993
4994// Check varargs and va_copy.
4995static void
4996test_varargs (const char *format, ...)
4997{
4998  va_list args;
4999  va_start (args, format);
5000  va_list args_copy;
5001  va_copy (args_copy, args);
5002
5003  const char *str;
5004  int number;
5005  float fnumber;
5006
5007  while (*format)
5008    {
5009      switch (*format++)
5010	{
5011	case 's': // string
5012	  str = va_arg (args_copy, const char *);
5013	  break;
5014	case 'd': // int
5015	  number = va_arg (args_copy, int);
5016	  break;
5017	case 'f': // float
5018	  fnumber = va_arg (args_copy, double);
5019	  break;
5020	default:
5021	  break;
5022	}
5023    }
5024  va_end (args_copy);
5025  va_end (args);
5026}
5027
5028int
5029main ()
5030{
5031
5032  // Check bool.
5033  _Bool success = false;
5034
5035  // Check restrict.
5036  if (test_restrict ("String literal") == 0)
5037    success = true;
5038  char *restrict newvar = "Another string";
5039
5040  // Check varargs.
5041  test_varargs ("s, d' f .", "string", 65, 34.234);
5042  test_varargs_macros ();
5043
5044  // Check flexible array members.
5045  struct incomplete_array *ia =
5046    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5047  ia->datasize = 10;
5048  for (int i = 0; i < ia->datasize; ++i)
5049    ia->data[i] = i * 1.234;
5050
5051  // Check named initializers.
5052  struct named_init ni = {
5053    .number = 34,
5054    .name = L"Test wide string",
5055    .average = 543.34343,
5056  };
5057
5058  ni.number = 58;
5059
5060  int dynamic_array[ni.number];
5061  dynamic_array[ni.number - 1] = 543;
5062
5063  // work around unused variable warnings
5064  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5065	  || dynamic_array[ni.number - 1] != 543);
5066
5067  ;
5068  return 0;
5069}
5070_ACEOF
5071for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5072do
5073  CC="$ac_save_CC $ac_arg"
5074  if ac_fn_c_try_compile "$LINENO"; then :
5075  ac_cv_prog_cc_c99=$ac_arg
5076fi
5077rm -f core conftest.err conftest.$ac_objext
5078  test "x$ac_cv_prog_cc_c99" != "xno" && break
5079done
5080rm -f conftest.$ac_ext
5081CC=$ac_save_CC
5082
5083fi
5084# AC_CACHE_VAL
5085case "x$ac_cv_prog_cc_c99" in
5086  x)
5087    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5088$as_echo "none needed" >&6; } ;;
5089  xno)
5090    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5091$as_echo "unsupported" >&6; } ;;
5092  *)
5093    CC="$CC $ac_cv_prog_cc_c99"
5094    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5095$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5096esac
5097if test "x$ac_cv_prog_cc_c99" != xno; then :
5098
5099fi
5100
5101
5102ac_ext=cpp
5103ac_cpp='$CXXCPP $CPPFLAGS'
5104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5107if test -z "$CXX"; then
5108  if test -n "$CCC"; then
5109    CXX=$CCC
5110  else
5111    if test -n "$ac_tool_prefix"; then
5112  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5113  do
5114    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5115set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117$as_echo_n "checking for $ac_word... " >&6; }
5118if ${ac_cv_prog_CXX+:} false; then :
5119  $as_echo_n "(cached) " >&6
5120else
5121  if test -n "$CXX"; then
5122  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5123else
5124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH
5126do
5127  IFS=$as_save_IFS
5128  test -z "$as_dir" && as_dir=.
5129    for ac_exec_ext in '' $ac_executable_extensions; do
5130  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133    break 2
5134  fi
5135done
5136  done
5137IFS=$as_save_IFS
5138
5139fi
5140fi
5141CXX=$ac_cv_prog_CXX
5142if test -n "$CXX"; then
5143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5144$as_echo "$CXX" >&6; }
5145else
5146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147$as_echo "no" >&6; }
5148fi
5149
5150
5151    test -n "$CXX" && break
5152  done
5153fi
5154if test -z "$CXX"; then
5155  ac_ct_CXX=$CXX
5156  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5157do
5158  # Extract the first word of "$ac_prog", so it can be a program name with args.
5159set dummy $ac_prog; ac_word=$2
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161$as_echo_n "checking for $ac_word... " >&6; }
5162if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5163  $as_echo_n "(cached) " >&6
5164else
5165  if test -n "$ac_ct_CXX"; then
5166  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5167else
5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169for as_dir in $PATH
5170do
5171  IFS=$as_save_IFS
5172  test -z "$as_dir" && as_dir=.
5173    for ac_exec_ext in '' $ac_executable_extensions; do
5174  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175    ac_cv_prog_ac_ct_CXX="$ac_prog"
5176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177    break 2
5178  fi
5179done
5180  done
5181IFS=$as_save_IFS
5182
5183fi
5184fi
5185ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5186if test -n "$ac_ct_CXX"; then
5187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5188$as_echo "$ac_ct_CXX" >&6; }
5189else
5190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191$as_echo "no" >&6; }
5192fi
5193
5194
5195  test -n "$ac_ct_CXX" && break
5196done
5197
5198  if test "x$ac_ct_CXX" = x; then
5199    CXX="g++"
5200  else
5201    case $cross_compiling:$ac_tool_warned in
5202yes:)
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5205ac_tool_warned=yes ;;
5206esac
5207    CXX=$ac_ct_CXX
5208  fi
5209fi
5210
5211  fi
5212fi
5213# Provide some information about the compiler.
5214$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5215set X $ac_compile
5216ac_compiler=$2
5217for ac_option in --version -v -V -qversion; do
5218  { { ac_try="$ac_compiler $ac_option >&5"
5219case "(($ac_try" in
5220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221  *) ac_try_echo=$ac_try;;
5222esac
5223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5224$as_echo "$ac_try_echo"; } >&5
5225  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5226  ac_status=$?
5227  if test -s conftest.err; then
5228    sed '10a\
5229... rest of stderr output deleted ...
5230         10q' conftest.err >conftest.er1
5231    cat conftest.er1 >&5
5232  fi
5233  rm -f conftest.er1 conftest.err
5234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5235  test $ac_status = 0; }
5236done
5237
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5239$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5240if ${ac_cv_cxx_compiler_gnu+:} false; then :
5241  $as_echo_n "(cached) " >&6
5242else
5243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244/* end confdefs.h.  */
5245
5246int
5247main ()
5248{
5249#ifndef __GNUC__
5250       choke me
5251#endif
5252
5253  ;
5254  return 0;
5255}
5256_ACEOF
5257if ac_fn_cxx_try_compile "$LINENO"; then :
5258  ac_compiler_gnu=yes
5259else
5260  ac_compiler_gnu=no
5261fi
5262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5264
5265fi
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5267$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5268if test $ac_compiler_gnu = yes; then
5269  GXX=yes
5270else
5271  GXX=
5272fi
5273ac_test_CXXFLAGS=${CXXFLAGS+set}
5274ac_save_CXXFLAGS=$CXXFLAGS
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5276$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5277if ${ac_cv_prog_cxx_g+:} false; then :
5278  $as_echo_n "(cached) " >&6
5279else
5280  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5281   ac_cxx_werror_flag=yes
5282   ac_cv_prog_cxx_g=no
5283   CXXFLAGS="-g"
5284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285/* end confdefs.h.  */
5286
5287int
5288main ()
5289{
5290
5291  ;
5292  return 0;
5293}
5294_ACEOF
5295if ac_fn_cxx_try_compile "$LINENO"; then :
5296  ac_cv_prog_cxx_g=yes
5297else
5298  CXXFLAGS=""
5299      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300/* end confdefs.h.  */
5301
5302int
5303main ()
5304{
5305
5306  ;
5307  return 0;
5308}
5309_ACEOF
5310if ac_fn_cxx_try_compile "$LINENO"; then :
5311
5312else
5313  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5314	 CXXFLAGS="-g"
5315	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316/* end confdefs.h.  */
5317
5318int
5319main ()
5320{
5321
5322  ;
5323  return 0;
5324}
5325_ACEOF
5326if ac_fn_cxx_try_compile "$LINENO"; then :
5327  ac_cv_prog_cxx_g=yes
5328fi
5329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330fi
5331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5332fi
5333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5337$as_echo "$ac_cv_prog_cxx_g" >&6; }
5338if test "$ac_test_CXXFLAGS" = set; then
5339  CXXFLAGS=$ac_save_CXXFLAGS
5340elif test $ac_cv_prog_cxx_g = yes; then
5341  if test "$GXX" = yes; then
5342    CXXFLAGS="-g -O2"
5343  else
5344    CXXFLAGS="-g"
5345  fi
5346else
5347  if test "$GXX" = yes; then
5348    CXXFLAGS="-O2"
5349  else
5350    CXXFLAGS=
5351  fi
5352fi
5353ac_ext=c
5354ac_cpp='$CPP $CPPFLAGS'
5355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358
5359
5360# We must set the default linker to the linker used by gcc for the correct
5361# operation of libtool.  If LD is not defined and we are using gcc, try to
5362# set the LD default to the ld used by gcc.
5363if test -z "$LD"; then
5364  if test "$GCC" = yes; then
5365    case $build in
5366    *-*-mingw*)
5367      gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5368    *)
5369      gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5370    esac
5371    case $gcc_prog_ld in
5372    # Accept absolute paths.
5373    [\\/]* | [A-Za-z]:[\\/]*)
5374      LD="$gcc_prog_ld" ;;
5375    esac
5376  fi
5377fi
5378
5379# Check whether -static-libstdc++ -static-libgcc is supported.
5380have_static_libs=no
5381if test "$GCC" = yes; then
5382  saved_LDFLAGS="$LDFLAGS"
5383
5384  LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5385  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5386$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5387  ac_ext=cpp
5388ac_cpp='$CXXCPP $CPPFLAGS'
5389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5392
5393
5394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395/* end confdefs.h.  */
5396
5397#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5398#error -static-libstdc++ not implemented
5399#endif
5400int main() {}
5401_ACEOF
5402if ac_fn_cxx_try_link "$LINENO"; then :
5403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5404$as_echo "yes" >&6; }; have_static_libs=yes
5405else
5406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407$as_echo "no" >&6; }
5408fi
5409rm -f core conftest.err conftest.$ac_objext \
5410    conftest$ac_exeext conftest.$ac_ext
5411  ac_ext=c
5412ac_cpp='$CPP $CPPFLAGS'
5413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5415ac_compiler_gnu=$ac_cv_c_compiler_gnu
5416
5417
5418  LDFLAGS="$saved_LDFLAGS"
5419fi
5420
5421
5422
5423
5424if test -n "$ac_tool_prefix"; then
5425  # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5426set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5428$as_echo_n "checking for $ac_word... " >&6; }
5429if ${ac_cv_prog_GNATBIND+:} false; then :
5430  $as_echo_n "(cached) " >&6
5431else
5432  if test -n "$GNATBIND"; then
5433  ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5434else
5435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436for as_dir in $PATH
5437do
5438  IFS=$as_save_IFS
5439  test -z "$as_dir" && as_dir=.
5440    for ac_exec_ext in '' $ac_executable_extensions; do
5441  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442    ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444    break 2
5445  fi
5446done
5447  done
5448IFS=$as_save_IFS
5449
5450fi
5451fi
5452GNATBIND=$ac_cv_prog_GNATBIND
5453if test -n "$GNATBIND"; then
5454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5455$as_echo "$GNATBIND" >&6; }
5456else
5457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458$as_echo "no" >&6; }
5459fi
5460
5461
5462fi
5463if test -z "$ac_cv_prog_GNATBIND"; then
5464  ac_ct_GNATBIND=$GNATBIND
5465  # Extract the first word of "gnatbind", so it can be a program name with args.
5466set dummy gnatbind; ac_word=$2
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468$as_echo_n "checking for $ac_word... " >&6; }
5469if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5470  $as_echo_n "(cached) " >&6
5471else
5472  if test -n "$ac_ct_GNATBIND"; then
5473  ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5474else
5475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476for as_dir in $PATH
5477do
5478  IFS=$as_save_IFS
5479  test -z "$as_dir" && as_dir=.
5480    for ac_exec_ext in '' $ac_executable_extensions; do
5481  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482    ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484    break 2
5485  fi
5486done
5487  done
5488IFS=$as_save_IFS
5489
5490fi
5491fi
5492ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5493if test -n "$ac_ct_GNATBIND"; then
5494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5495$as_echo "$ac_ct_GNATBIND" >&6; }
5496else
5497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498$as_echo "no" >&6; }
5499fi
5500
5501  if test "x$ac_ct_GNATBIND" = x; then
5502    GNATBIND="no"
5503  else
5504    case $cross_compiling:$ac_tool_warned in
5505yes:)
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5508ac_tool_warned=yes ;;
5509esac
5510    GNATBIND=$ac_ct_GNATBIND
5511  fi
5512else
5513  GNATBIND="$ac_cv_prog_GNATBIND"
5514fi
5515
5516if test -n "$ac_tool_prefix"; then
5517  # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5518set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520$as_echo_n "checking for $ac_word... " >&6; }
5521if ${ac_cv_prog_GNATMAKE+:} false; then :
5522  $as_echo_n "(cached) " >&6
5523else
5524  if test -n "$GNATMAKE"; then
5525  ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5526else
5527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528for as_dir in $PATH
5529do
5530  IFS=$as_save_IFS
5531  test -z "$as_dir" && as_dir=.
5532    for ac_exec_ext in '' $ac_executable_extensions; do
5533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534    ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536    break 2
5537  fi
5538done
5539  done
5540IFS=$as_save_IFS
5541
5542fi
5543fi
5544GNATMAKE=$ac_cv_prog_GNATMAKE
5545if test -n "$GNATMAKE"; then
5546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5547$as_echo "$GNATMAKE" >&6; }
5548else
5549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550$as_echo "no" >&6; }
5551fi
5552
5553
5554fi
5555if test -z "$ac_cv_prog_GNATMAKE"; then
5556  ac_ct_GNATMAKE=$GNATMAKE
5557  # Extract the first word of "gnatmake", so it can be a program name with args.
5558set dummy gnatmake; ac_word=$2
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560$as_echo_n "checking for $ac_word... " >&6; }
5561if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5562  $as_echo_n "(cached) " >&6
5563else
5564  if test -n "$ac_ct_GNATMAKE"; then
5565  ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5566else
5567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568for as_dir in $PATH
5569do
5570  IFS=$as_save_IFS
5571  test -z "$as_dir" && as_dir=.
5572    for ac_exec_ext in '' $ac_executable_extensions; do
5573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5574    ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576    break 2
5577  fi
5578done
5579  done
5580IFS=$as_save_IFS
5581
5582fi
5583fi
5584ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5585if test -n "$ac_ct_GNATMAKE"; then
5586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5587$as_echo "$ac_ct_GNATMAKE" >&6; }
5588else
5589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590$as_echo "no" >&6; }
5591fi
5592
5593  if test "x$ac_ct_GNATMAKE" = x; then
5594    GNATMAKE="no"
5595  else
5596    case $cross_compiling:$ac_tool_warned in
5597yes:)
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5600ac_tool_warned=yes ;;
5601esac
5602    GNATMAKE=$ac_ct_GNATMAKE
5603  fi
5604else
5605  GNATMAKE="$ac_cv_prog_GNATMAKE"
5606fi
5607
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5609$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5610if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5611  $as_echo_n "(cached) " >&6
5612else
5613  cat >conftest.adb <<EOF
5614procedure conftest is begin null; end conftest;
5615EOF
5616acx_cv_cc_gcc_supports_ada=no
5617# There is a bug in old released versions of GCC which causes the
5618# driver to exit successfully when the appropriate language module
5619# has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5620# Therefore we must check for the error message as well as an
5621# unsuccessful exit.
5622# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5623# given a .adb file, but produce no object file.  So we must check
5624# if an object file was really produced to guard against this.
5625errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5626if test x"$errors" = x && test -f conftest.$ac_objext; then
5627  acx_cv_cc_gcc_supports_ada=yes
5628fi
5629rm -f conftest.*
5630fi
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5632$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5633
5634if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5635  have_gnat=yes
5636else
5637  have_gnat=no
5638fi
5639
5640
5641
5642if test -n "$ac_tool_prefix"; then
5643  # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5644set dummy ${ac_tool_prefix}gdc; ac_word=$2
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646$as_echo_n "checking for $ac_word... " >&6; }
5647if ${ac_cv_prog_GDC+:} false; then :
5648  $as_echo_n "(cached) " >&6
5649else
5650  if test -n "$GDC"; then
5651  ac_cv_prog_GDC="$GDC" # Let the user override the test.
5652else
5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH
5655do
5656  IFS=$as_save_IFS
5657  test -z "$as_dir" && as_dir=.
5658    for ac_exec_ext in '' $ac_executable_extensions; do
5659  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660    ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662    break 2
5663  fi
5664done
5665  done
5666IFS=$as_save_IFS
5667
5668fi
5669fi
5670GDC=$ac_cv_prog_GDC
5671if test -n "$GDC"; then
5672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5673$as_echo "$GDC" >&6; }
5674else
5675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676$as_echo "no" >&6; }
5677fi
5678
5679
5680fi
5681if test -z "$ac_cv_prog_GDC"; then
5682  ac_ct_GDC=$GDC
5683  # Extract the first word of "gdc", so it can be a program name with args.
5684set dummy gdc; ac_word=$2
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686$as_echo_n "checking for $ac_word... " >&6; }
5687if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5688  $as_echo_n "(cached) " >&6
5689else
5690  if test -n "$ac_ct_GDC"; then
5691  ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5692else
5693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694for as_dir in $PATH
5695do
5696  IFS=$as_save_IFS
5697  test -z "$as_dir" && as_dir=.
5698    for ac_exec_ext in '' $ac_executable_extensions; do
5699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700    ac_cv_prog_ac_ct_GDC="gdc"
5701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702    break 2
5703  fi
5704done
5705  done
5706IFS=$as_save_IFS
5707
5708fi
5709fi
5710ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5711if test -n "$ac_ct_GDC"; then
5712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5713$as_echo "$ac_ct_GDC" >&6; }
5714else
5715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716$as_echo "no" >&6; }
5717fi
5718
5719  if test "x$ac_ct_GDC" = x; then
5720    GDC="no"
5721  else
5722    case $cross_compiling:$ac_tool_warned in
5723yes:)
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5726ac_tool_warned=yes ;;
5727esac
5728    GDC=$ac_ct_GDC
5729  fi
5730else
5731  GDC="$ac_cv_prog_GDC"
5732fi
5733
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5735$as_echo_n "checking whether the D compiler works... " >&6; }
5736if ${acx_cv_d_compiler_works+:} false; then :
5737  $as_echo_n "(cached) " >&6
5738else
5739  cat >conftest.d <<EOF
5740module conftest; int main() { return 0; }
5741EOF
5742acx_cv_d_compiler_works=no
5743if test "x$GDC" != xno; then
5744  errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5745  if test x"$errors" = x && test -f conftest.$ac_objext; then
5746    acx_cv_d_compiler_works=yes
5747  fi
5748  rm -f conftest.*
5749fi
5750fi
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5752$as_echo "$acx_cv_d_compiler_works" >&6; }
5753if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5754  have_gdc=yes
5755else
5756  have_gdc=no
5757fi
5758
5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5760$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5761if ${gcc_cv_prog_cmp_skip+:} false; then :
5762  $as_echo_n "(cached) " >&6
5763else
5764   echo abfoo >t1
5765  echo cdfoo >t2
5766  gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5767  if cmp t1 t2 2 2 > /dev/null 2>&1; then
5768    if cmp t1 t2 1 1 > /dev/null 2>&1; then
5769      :
5770    else
5771      gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5772    fi
5773  fi
5774  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5775    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5776      :
5777    else
5778      gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5779    fi
5780  fi
5781  rm t1 t2
5782
5783fi
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5785$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5786do_compare="$gcc_cv_prog_cmp_skip"
5787
5788
5789
5790# Check whether --enable-bootstrap was given.
5791if test "${enable_bootstrap+set}" = set; then :
5792  enableval=$enable_bootstrap;
5793else
5794  enable_bootstrap=default
5795fi
5796
5797
5798# Issue errors and warnings for invalid/strange bootstrap combinations.
5799if test -r $srcdir/gcc/configure; then
5800  have_compiler=yes
5801else
5802  have_compiler=no
5803fi
5804
5805case "$have_compiler:$host:$target:$enable_bootstrap" in
5806  *:*:*:no) ;;
5807
5808  # Default behavior.  Enable bootstrap if we have a compiler
5809  # and we are in a native configuration.
5810  yes:$build:$build:default)
5811    enable_bootstrap=yes ;;
5812
5813  *:*:*:default)
5814    enable_bootstrap=no ;;
5815
5816  # We have a compiler and we are in a native configuration, bootstrap is ok
5817  yes:$build:$build:yes)
5818    ;;
5819
5820  # Other configurations, but we have a compiler.  Assume the user knows
5821  # what he's doing.
5822  yes:*:*:yes)
5823    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5824$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5825    ;;
5826
5827  # No compiler: if they passed --enable-bootstrap explicitly, fail
5828  no:*:*:yes)
5829    as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5830
5831  # Fail if wrong command line
5832  *)
5833    as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5834    ;;
5835esac
5836
5837# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5838# C++11 compiler can still start the bootstrap.  Otherwise, if building GCC,
5839# require C++11 (or higher).
5840if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5841  CXX="$CXX -std=c++11"
5842elif test "$have_compiler" = yes; then
5843    ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
5844  ac_ext=cpp
5845ac_cpp='$CXXCPP $CPPFLAGS'
5846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5849  ac_success=no
5850
5851      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5852$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5853if ${ax_cv_cxx_compile_cxx11+:} false; then :
5854  $as_echo_n "(cached) " >&6
5855else
5856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857/* end confdefs.h.  */
5858
5859
5860// If the compiler admits that it is not ready for C++11, why torture it?
5861// Hopefully, this will speed up the test.
5862
5863#ifndef __cplusplus
5864
5865#error "This is not a C++ compiler"
5866
5867#elif __cplusplus < 201103L
5868
5869#error "This is not a C++11 compiler"
5870
5871#else
5872
5873namespace cxx11
5874{
5875
5876  namespace test_static_assert
5877  {
5878
5879    template <typename T>
5880    struct check
5881    {
5882      static_assert(sizeof(int) <= sizeof(T), "not big enough");
5883    };
5884
5885  }
5886
5887  namespace test_final_override
5888  {
5889
5890    struct Base
5891    {
5892      virtual ~Base() {}
5893      virtual void f() {}
5894    };
5895
5896    struct Derived : public Base
5897    {
5898      virtual ~Derived() override {}
5899      virtual void f() override {}
5900    };
5901
5902  }
5903
5904  namespace test_double_right_angle_brackets
5905  {
5906
5907    template < typename T >
5908    struct check {};
5909
5910    typedef check<void> single_type;
5911    typedef check<check<void>> double_type;
5912    typedef check<check<check<void>>> triple_type;
5913    typedef check<check<check<check<void>>>> quadruple_type;
5914
5915  }
5916
5917  namespace test_decltype
5918  {
5919
5920    int
5921    f()
5922    {
5923      int a = 1;
5924      decltype(a) b = 2;
5925      return a + b;
5926    }
5927
5928  }
5929
5930  namespace test_type_deduction
5931  {
5932
5933    template < typename T1, typename T2 >
5934    struct is_same
5935    {
5936      static const bool value = false;
5937    };
5938
5939    template < typename T >
5940    struct is_same<T, T>
5941    {
5942      static const bool value = true;
5943    };
5944
5945    template < typename T1, typename T2 >
5946    auto
5947    add(T1 a1, T2 a2) -> decltype(a1 + a2)
5948    {
5949      return a1 + a2;
5950    }
5951
5952    int
5953    test(const int c, volatile int v)
5954    {
5955      static_assert(is_same<int, decltype(0)>::value == true, "");
5956      static_assert(is_same<int, decltype(c)>::value == false, "");
5957      static_assert(is_same<int, decltype(v)>::value == false, "");
5958      auto ac = c;
5959      auto av = v;
5960      auto sumi = ac + av + 'x';
5961      auto sumf = ac + av + 1.0;
5962      static_assert(is_same<int, decltype(ac)>::value == true, "");
5963      static_assert(is_same<int, decltype(av)>::value == true, "");
5964      static_assert(is_same<int, decltype(sumi)>::value == true, "");
5965      static_assert(is_same<int, decltype(sumf)>::value == false, "");
5966      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5967      return (sumf > 0.0) ? sumi : add(c, v);
5968    }
5969
5970  }
5971
5972  namespace test_noexcept
5973  {
5974
5975    int f() { return 0; }
5976    int g() noexcept { return 0; }
5977
5978    static_assert(noexcept(f()) == false, "");
5979    static_assert(noexcept(g()) == true, "");
5980
5981  }
5982
5983  namespace test_constexpr
5984  {
5985
5986    template < typename CharT >
5987    unsigned long constexpr
5988    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5989    {
5990      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5991    }
5992
5993    template < typename CharT >
5994    unsigned long constexpr
5995    strlen_c(const CharT *const s) noexcept
5996    {
5997      return strlen_c_r(s, 0UL);
5998    }
5999
6000    static_assert(strlen_c("") == 0UL, "");
6001    static_assert(strlen_c("1") == 1UL, "");
6002    static_assert(strlen_c("example") == 7UL, "");
6003    static_assert(strlen_c("another\0example") == 7UL, "");
6004
6005  }
6006
6007  namespace test_rvalue_references
6008  {
6009
6010    template < int N >
6011    struct answer
6012    {
6013      static constexpr int value = N;
6014    };
6015
6016    answer<1> f(int&)       { return answer<1>(); }
6017    answer<2> f(const int&) { return answer<2>(); }
6018    answer<3> f(int&&)      { return answer<3>(); }
6019
6020    void
6021    test()
6022    {
6023      int i = 0;
6024      const int c = 0;
6025      static_assert(decltype(f(i))::value == 1, "");
6026      static_assert(decltype(f(c))::value == 2, "");
6027      static_assert(decltype(f(0))::value == 3, "");
6028    }
6029
6030  }
6031
6032  namespace test_uniform_initialization
6033  {
6034
6035    struct test
6036    {
6037      static const int zero {};
6038      static const int one {1};
6039    };
6040
6041    static_assert(test::zero == 0, "");
6042    static_assert(test::one == 1, "");
6043
6044  }
6045
6046  namespace test_lambdas
6047  {
6048
6049    void
6050    test1()
6051    {
6052      auto lambda1 = [](){};
6053      auto lambda2 = lambda1;
6054      lambda1();
6055      lambda2();
6056    }
6057
6058    int
6059    test2()
6060    {
6061      auto a = [](int i, int j){ return i + j; }(1, 2);
6062      auto b = []() -> int { return '0'; }();
6063      auto c = [=](){ return a + b; }();
6064      auto d = [&](){ return c; }();
6065      auto e = [a, &b](int x) mutable {
6066        const auto identity = [](int y){ return y; };
6067        for (auto i = 0; i < a; ++i)
6068          a += b--;
6069        return x + identity(a + b);
6070      }(0);
6071      return a + b + c + d + e;
6072    }
6073
6074    int
6075    test3()
6076    {
6077      const auto nullary = [](){ return 0; };
6078      const auto unary = [](int x){ return x; };
6079      using nullary_t = decltype(nullary);
6080      using unary_t = decltype(unary);
6081      const auto higher1st = [](nullary_t f){ return f(); };
6082      const auto higher2nd = [unary](nullary_t f1){
6083        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6084      };
6085      return higher1st(nullary) + higher2nd(nullary)(unary);
6086    }
6087
6088  }
6089
6090  namespace test_variadic_templates
6091  {
6092
6093    template <int...>
6094    struct sum;
6095
6096    template <int N0, int... N1toN>
6097    struct sum<N0, N1toN...>
6098    {
6099      static constexpr auto value = N0 + sum<N1toN...>::value;
6100    };
6101
6102    template <>
6103    struct sum<>
6104    {
6105      static constexpr auto value = 0;
6106    };
6107
6108    static_assert(sum<>::value == 0, "");
6109    static_assert(sum<1>::value == 1, "");
6110    static_assert(sum<23>::value == 23, "");
6111    static_assert(sum<1, 2>::value == 3, "");
6112    static_assert(sum<5, 5, 11>::value == 21, "");
6113    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6114
6115  }
6116
6117  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6118  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6119  // because of this.
6120  namespace test_template_alias_sfinae
6121  {
6122
6123    struct foo {};
6124
6125    template<typename T>
6126    using member = typename T::member_type;
6127
6128    template<typename T>
6129    void func(...) {}
6130
6131    template<typename T>
6132    void func(member<T>*) {}
6133
6134    void test();
6135
6136    void test() { func<foo>(0); }
6137
6138  }
6139
6140}  // namespace cxx11
6141
6142#endif  // __cplusplus >= 201103L
6143
6144
6145
6146_ACEOF
6147if ac_fn_cxx_try_compile "$LINENO"; then :
6148  ax_cv_cxx_compile_cxx11=yes
6149else
6150  ax_cv_cxx_compile_cxx11=no
6151fi
6152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153fi
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6155$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6156    if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6157      ac_success=yes
6158    fi
6159
6160    if test x$ac_success = xno; then
6161    for alternative in ${ax_cxx_compile_alternatives}; do
6162      switch="-std=gnu++${alternative}"
6163      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6164      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6165$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6166if eval \${$cachevar+:} false; then :
6167  $as_echo_n "(cached) " >&6
6168else
6169  ac_save_CXX="$CXX"
6170         CXX="$CXX $switch"
6171         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172/* end confdefs.h.  */
6173
6174
6175// If the compiler admits that it is not ready for C++11, why torture it?
6176// Hopefully, this will speed up the test.
6177
6178#ifndef __cplusplus
6179
6180#error "This is not a C++ compiler"
6181
6182#elif __cplusplus < 201103L
6183
6184#error "This is not a C++11 compiler"
6185
6186#else
6187
6188namespace cxx11
6189{
6190
6191  namespace test_static_assert
6192  {
6193
6194    template <typename T>
6195    struct check
6196    {
6197      static_assert(sizeof(int) <= sizeof(T), "not big enough");
6198    };
6199
6200  }
6201
6202  namespace test_final_override
6203  {
6204
6205    struct Base
6206    {
6207      virtual ~Base() {}
6208      virtual void f() {}
6209    };
6210
6211    struct Derived : public Base
6212    {
6213      virtual ~Derived() override {}
6214      virtual void f() override {}
6215    };
6216
6217  }
6218
6219  namespace test_double_right_angle_brackets
6220  {
6221
6222    template < typename T >
6223    struct check {};
6224
6225    typedef check<void> single_type;
6226    typedef check<check<void>> double_type;
6227    typedef check<check<check<void>>> triple_type;
6228    typedef check<check<check<check<void>>>> quadruple_type;
6229
6230  }
6231
6232  namespace test_decltype
6233  {
6234
6235    int
6236    f()
6237    {
6238      int a = 1;
6239      decltype(a) b = 2;
6240      return a + b;
6241    }
6242
6243  }
6244
6245  namespace test_type_deduction
6246  {
6247
6248    template < typename T1, typename T2 >
6249    struct is_same
6250    {
6251      static const bool value = false;
6252    };
6253
6254    template < typename T >
6255    struct is_same<T, T>
6256    {
6257      static const bool value = true;
6258    };
6259
6260    template < typename T1, typename T2 >
6261    auto
6262    add(T1 a1, T2 a2) -> decltype(a1 + a2)
6263    {
6264      return a1 + a2;
6265    }
6266
6267    int
6268    test(const int c, volatile int v)
6269    {
6270      static_assert(is_same<int, decltype(0)>::value == true, "");
6271      static_assert(is_same<int, decltype(c)>::value == false, "");
6272      static_assert(is_same<int, decltype(v)>::value == false, "");
6273      auto ac = c;
6274      auto av = v;
6275      auto sumi = ac + av + 'x';
6276      auto sumf = ac + av + 1.0;
6277      static_assert(is_same<int, decltype(ac)>::value == true, "");
6278      static_assert(is_same<int, decltype(av)>::value == true, "");
6279      static_assert(is_same<int, decltype(sumi)>::value == true, "");
6280      static_assert(is_same<int, decltype(sumf)>::value == false, "");
6281      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6282      return (sumf > 0.0) ? sumi : add(c, v);
6283    }
6284
6285  }
6286
6287  namespace test_noexcept
6288  {
6289
6290    int f() { return 0; }
6291    int g() noexcept { return 0; }
6292
6293    static_assert(noexcept(f()) == false, "");
6294    static_assert(noexcept(g()) == true, "");
6295
6296  }
6297
6298  namespace test_constexpr
6299  {
6300
6301    template < typename CharT >
6302    unsigned long constexpr
6303    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6304    {
6305      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6306    }
6307
6308    template < typename CharT >
6309    unsigned long constexpr
6310    strlen_c(const CharT *const s) noexcept
6311    {
6312      return strlen_c_r(s, 0UL);
6313    }
6314
6315    static_assert(strlen_c("") == 0UL, "");
6316    static_assert(strlen_c("1") == 1UL, "");
6317    static_assert(strlen_c("example") == 7UL, "");
6318    static_assert(strlen_c("another\0example") == 7UL, "");
6319
6320  }
6321
6322  namespace test_rvalue_references
6323  {
6324
6325    template < int N >
6326    struct answer
6327    {
6328      static constexpr int value = N;
6329    };
6330
6331    answer<1> f(int&)       { return answer<1>(); }
6332    answer<2> f(const int&) { return answer<2>(); }
6333    answer<3> f(int&&)      { return answer<3>(); }
6334
6335    void
6336    test()
6337    {
6338      int i = 0;
6339      const int c = 0;
6340      static_assert(decltype(f(i))::value == 1, "");
6341      static_assert(decltype(f(c))::value == 2, "");
6342      static_assert(decltype(f(0))::value == 3, "");
6343    }
6344
6345  }
6346
6347  namespace test_uniform_initialization
6348  {
6349
6350    struct test
6351    {
6352      static const int zero {};
6353      static const int one {1};
6354    };
6355
6356    static_assert(test::zero == 0, "");
6357    static_assert(test::one == 1, "");
6358
6359  }
6360
6361  namespace test_lambdas
6362  {
6363
6364    void
6365    test1()
6366    {
6367      auto lambda1 = [](){};
6368      auto lambda2 = lambda1;
6369      lambda1();
6370      lambda2();
6371    }
6372
6373    int
6374    test2()
6375    {
6376      auto a = [](int i, int j){ return i + j; }(1, 2);
6377      auto b = []() -> int { return '0'; }();
6378      auto c = [=](){ return a + b; }();
6379      auto d = [&](){ return c; }();
6380      auto e = [a, &b](int x) mutable {
6381        const auto identity = [](int y){ return y; };
6382        for (auto i = 0; i < a; ++i)
6383          a += b--;
6384        return x + identity(a + b);
6385      }(0);
6386      return a + b + c + d + e;
6387    }
6388
6389    int
6390    test3()
6391    {
6392      const auto nullary = [](){ return 0; };
6393      const auto unary = [](int x){ return x; };
6394      using nullary_t = decltype(nullary);
6395      using unary_t = decltype(unary);
6396      const auto higher1st = [](nullary_t f){ return f(); };
6397      const auto higher2nd = [unary](nullary_t f1){
6398        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6399      };
6400      return higher1st(nullary) + higher2nd(nullary)(unary);
6401    }
6402
6403  }
6404
6405  namespace test_variadic_templates
6406  {
6407
6408    template <int...>
6409    struct sum;
6410
6411    template <int N0, int... N1toN>
6412    struct sum<N0, N1toN...>
6413    {
6414      static constexpr auto value = N0 + sum<N1toN...>::value;
6415    };
6416
6417    template <>
6418    struct sum<>
6419    {
6420      static constexpr auto value = 0;
6421    };
6422
6423    static_assert(sum<>::value == 0, "");
6424    static_assert(sum<1>::value == 1, "");
6425    static_assert(sum<23>::value == 23, "");
6426    static_assert(sum<1, 2>::value == 3, "");
6427    static_assert(sum<5, 5, 11>::value == 21, "");
6428    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6429
6430  }
6431
6432  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6433  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6434  // because of this.
6435  namespace test_template_alias_sfinae
6436  {
6437
6438    struct foo {};
6439
6440    template<typename T>
6441    using member = typename T::member_type;
6442
6443    template<typename T>
6444    void func(...) {}
6445
6446    template<typename T>
6447    void func(member<T>*) {}
6448
6449    void test();
6450
6451    void test() { func<foo>(0); }
6452
6453  }
6454
6455}  // namespace cxx11
6456
6457#endif  // __cplusplus >= 201103L
6458
6459
6460
6461_ACEOF
6462if ac_fn_cxx_try_compile "$LINENO"; then :
6463  eval $cachevar=yes
6464else
6465  eval $cachevar=no
6466fi
6467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468         CXX="$ac_save_CXX"
6469fi
6470eval ac_res=\$$cachevar
6471	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6472$as_echo "$ac_res" >&6; }
6473      if eval test x\$$cachevar = xyes; then
6474        CXX="$CXX $switch"
6475        if test -n "$CXXCPP" ; then
6476          CXXCPP="$CXXCPP $switch"
6477        fi
6478        ac_success=yes
6479        break
6480      fi
6481    done
6482  fi
6483
6484    if test x$ac_success = xno; then
6485                for alternative in ${ax_cxx_compile_alternatives}; do
6486      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6487        cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6488        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6489$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6490if eval \${$cachevar+:} false; then :
6491  $as_echo_n "(cached) " >&6
6492else
6493  ac_save_CXX="$CXX"
6494           CXX="$CXX $switch"
6495           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496/* end confdefs.h.  */
6497
6498
6499// If the compiler admits that it is not ready for C++11, why torture it?
6500// Hopefully, this will speed up the test.
6501
6502#ifndef __cplusplus
6503
6504#error "This is not a C++ compiler"
6505
6506#elif __cplusplus < 201103L
6507
6508#error "This is not a C++11 compiler"
6509
6510#else
6511
6512namespace cxx11
6513{
6514
6515  namespace test_static_assert
6516  {
6517
6518    template <typename T>
6519    struct check
6520    {
6521      static_assert(sizeof(int) <= sizeof(T), "not big enough");
6522    };
6523
6524  }
6525
6526  namespace test_final_override
6527  {
6528
6529    struct Base
6530    {
6531      virtual ~Base() {}
6532      virtual void f() {}
6533    };
6534
6535    struct Derived : public Base
6536    {
6537      virtual ~Derived() override {}
6538      virtual void f() override {}
6539    };
6540
6541  }
6542
6543  namespace test_double_right_angle_brackets
6544  {
6545
6546    template < typename T >
6547    struct check {};
6548
6549    typedef check<void> single_type;
6550    typedef check<check<void>> double_type;
6551    typedef check<check<check<void>>> triple_type;
6552    typedef check<check<check<check<void>>>> quadruple_type;
6553
6554  }
6555
6556  namespace test_decltype
6557  {
6558
6559    int
6560    f()
6561    {
6562      int a = 1;
6563      decltype(a) b = 2;
6564      return a + b;
6565    }
6566
6567  }
6568
6569  namespace test_type_deduction
6570  {
6571
6572    template < typename T1, typename T2 >
6573    struct is_same
6574    {
6575      static const bool value = false;
6576    };
6577
6578    template < typename T >
6579    struct is_same<T, T>
6580    {
6581      static const bool value = true;
6582    };
6583
6584    template < typename T1, typename T2 >
6585    auto
6586    add(T1 a1, T2 a2) -> decltype(a1 + a2)
6587    {
6588      return a1 + a2;
6589    }
6590
6591    int
6592    test(const int c, volatile int v)
6593    {
6594      static_assert(is_same<int, decltype(0)>::value == true, "");
6595      static_assert(is_same<int, decltype(c)>::value == false, "");
6596      static_assert(is_same<int, decltype(v)>::value == false, "");
6597      auto ac = c;
6598      auto av = v;
6599      auto sumi = ac + av + 'x';
6600      auto sumf = ac + av + 1.0;
6601      static_assert(is_same<int, decltype(ac)>::value == true, "");
6602      static_assert(is_same<int, decltype(av)>::value == true, "");
6603      static_assert(is_same<int, decltype(sumi)>::value == true, "");
6604      static_assert(is_same<int, decltype(sumf)>::value == false, "");
6605      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6606      return (sumf > 0.0) ? sumi : add(c, v);
6607    }
6608
6609  }
6610
6611  namespace test_noexcept
6612  {
6613
6614    int f() { return 0; }
6615    int g() noexcept { return 0; }
6616
6617    static_assert(noexcept(f()) == false, "");
6618    static_assert(noexcept(g()) == true, "");
6619
6620  }
6621
6622  namespace test_constexpr
6623  {
6624
6625    template < typename CharT >
6626    unsigned long constexpr
6627    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6628    {
6629      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6630    }
6631
6632    template < typename CharT >
6633    unsigned long constexpr
6634    strlen_c(const CharT *const s) noexcept
6635    {
6636      return strlen_c_r(s, 0UL);
6637    }
6638
6639    static_assert(strlen_c("") == 0UL, "");
6640    static_assert(strlen_c("1") == 1UL, "");
6641    static_assert(strlen_c("example") == 7UL, "");
6642    static_assert(strlen_c("another\0example") == 7UL, "");
6643
6644  }
6645
6646  namespace test_rvalue_references
6647  {
6648
6649    template < int N >
6650    struct answer
6651    {
6652      static constexpr int value = N;
6653    };
6654
6655    answer<1> f(int&)       { return answer<1>(); }
6656    answer<2> f(const int&) { return answer<2>(); }
6657    answer<3> f(int&&)      { return answer<3>(); }
6658
6659    void
6660    test()
6661    {
6662      int i = 0;
6663      const int c = 0;
6664      static_assert(decltype(f(i))::value == 1, "");
6665      static_assert(decltype(f(c))::value == 2, "");
6666      static_assert(decltype(f(0))::value == 3, "");
6667    }
6668
6669  }
6670
6671  namespace test_uniform_initialization
6672  {
6673
6674    struct test
6675    {
6676      static const int zero {};
6677      static const int one {1};
6678    };
6679
6680    static_assert(test::zero == 0, "");
6681    static_assert(test::one == 1, "");
6682
6683  }
6684
6685  namespace test_lambdas
6686  {
6687
6688    void
6689    test1()
6690    {
6691      auto lambda1 = [](){};
6692      auto lambda2 = lambda1;
6693      lambda1();
6694      lambda2();
6695    }
6696
6697    int
6698    test2()
6699    {
6700      auto a = [](int i, int j){ return i + j; }(1, 2);
6701      auto b = []() -> int { return '0'; }();
6702      auto c = [=](){ return a + b; }();
6703      auto d = [&](){ return c; }();
6704      auto e = [a, &b](int x) mutable {
6705        const auto identity = [](int y){ return y; };
6706        for (auto i = 0; i < a; ++i)
6707          a += b--;
6708        return x + identity(a + b);
6709      }(0);
6710      return a + b + c + d + e;
6711    }
6712
6713    int
6714    test3()
6715    {
6716      const auto nullary = [](){ return 0; };
6717      const auto unary = [](int x){ return x; };
6718      using nullary_t = decltype(nullary);
6719      using unary_t = decltype(unary);
6720      const auto higher1st = [](nullary_t f){ return f(); };
6721      const auto higher2nd = [unary](nullary_t f1){
6722        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6723      };
6724      return higher1st(nullary) + higher2nd(nullary)(unary);
6725    }
6726
6727  }
6728
6729  namespace test_variadic_templates
6730  {
6731
6732    template <int...>
6733    struct sum;
6734
6735    template <int N0, int... N1toN>
6736    struct sum<N0, N1toN...>
6737    {
6738      static constexpr auto value = N0 + sum<N1toN...>::value;
6739    };
6740
6741    template <>
6742    struct sum<>
6743    {
6744      static constexpr auto value = 0;
6745    };
6746
6747    static_assert(sum<>::value == 0, "");
6748    static_assert(sum<1>::value == 1, "");
6749    static_assert(sum<23>::value == 23, "");
6750    static_assert(sum<1, 2>::value == 3, "");
6751    static_assert(sum<5, 5, 11>::value == 21, "");
6752    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6753
6754  }
6755
6756  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6757  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6758  // because of this.
6759  namespace test_template_alias_sfinae
6760  {
6761
6762    struct foo {};
6763
6764    template<typename T>
6765    using member = typename T::member_type;
6766
6767    template<typename T>
6768    void func(...) {}
6769
6770    template<typename T>
6771    void func(member<T>*) {}
6772
6773    void test();
6774
6775    void test() { func<foo>(0); }
6776
6777  }
6778
6779}  // namespace cxx11
6780
6781#endif  // __cplusplus >= 201103L
6782
6783
6784
6785_ACEOF
6786if ac_fn_cxx_try_compile "$LINENO"; then :
6787  eval $cachevar=yes
6788else
6789  eval $cachevar=no
6790fi
6791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792           CXX="$ac_save_CXX"
6793fi
6794eval ac_res=\$$cachevar
6795	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6796$as_echo "$ac_res" >&6; }
6797        if eval test x\$$cachevar = xyes; then
6798          CXX="$CXX $switch"
6799          if test -n "$CXXCPP" ; then
6800            CXXCPP="$CXXCPP $switch"
6801          fi
6802          ac_success=yes
6803          break
6804        fi
6805      done
6806      if test x$ac_success = xyes; then
6807        break
6808      fi
6809    done
6810  fi
6811
6812  ac_ext=c
6813ac_cpp='$CPP $CPPFLAGS'
6814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6816ac_compiler_gnu=$ac_cv_c_compiler_gnu
6817
6818  if test x$ax_cxx_compile_cxx11_required = xtrue; then
6819    if test x$ac_success = xno; then
6820      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6821    fi
6822  fi
6823  if test x$ac_success = xno; then
6824    HAVE_CXX11=0
6825    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6826$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6827  else
6828    HAVE_CXX11=1
6829
6830$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6831
6832  fi
6833
6834
6835
6836  if test "${build}" != "${host}"; then
6837      ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
6838  ac_ext=cpp
6839ac_cpp='$CXXCPP $CPPFLAGS'
6840ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6841ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6842ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6843  ac_success=no
6844      ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6845    ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6846    ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6847    CXX="$CXX_FOR_BUILD"
6848    CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6849    CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6850      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6851$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6852if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6853  $as_echo_n "(cached) " >&6
6854else
6855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856/* end confdefs.h.  */
6857
6858
6859// If the compiler admits that it is not ready for C++11, why torture it?
6860// Hopefully, this will speed up the test.
6861
6862#ifndef __cplusplus
6863
6864#error "This is not a C++ compiler"
6865
6866#elif __cplusplus < 201103L
6867
6868#error "This is not a C++11 compiler"
6869
6870#else
6871
6872namespace cxx11
6873{
6874
6875  namespace test_static_assert
6876  {
6877
6878    template <typename T>
6879    struct check
6880    {
6881      static_assert(sizeof(int) <= sizeof(T), "not big enough");
6882    };
6883
6884  }
6885
6886  namespace test_final_override
6887  {
6888
6889    struct Base
6890    {
6891      virtual ~Base() {}
6892      virtual void f() {}
6893    };
6894
6895    struct Derived : public Base
6896    {
6897      virtual ~Derived() override {}
6898      virtual void f() override {}
6899    };
6900
6901  }
6902
6903  namespace test_double_right_angle_brackets
6904  {
6905
6906    template < typename T >
6907    struct check {};
6908
6909    typedef check<void> single_type;
6910    typedef check<check<void>> double_type;
6911    typedef check<check<check<void>>> triple_type;
6912    typedef check<check<check<check<void>>>> quadruple_type;
6913
6914  }
6915
6916  namespace test_decltype
6917  {
6918
6919    int
6920    f()
6921    {
6922      int a = 1;
6923      decltype(a) b = 2;
6924      return a + b;
6925    }
6926
6927  }
6928
6929  namespace test_type_deduction
6930  {
6931
6932    template < typename T1, typename T2 >
6933    struct is_same
6934    {
6935      static const bool value = false;
6936    };
6937
6938    template < typename T >
6939    struct is_same<T, T>
6940    {
6941      static const bool value = true;
6942    };
6943
6944    template < typename T1, typename T2 >
6945    auto
6946    add(T1 a1, T2 a2) -> decltype(a1 + a2)
6947    {
6948      return a1 + a2;
6949    }
6950
6951    int
6952    test(const int c, volatile int v)
6953    {
6954      static_assert(is_same<int, decltype(0)>::value == true, "");
6955      static_assert(is_same<int, decltype(c)>::value == false, "");
6956      static_assert(is_same<int, decltype(v)>::value == false, "");
6957      auto ac = c;
6958      auto av = v;
6959      auto sumi = ac + av + 'x';
6960      auto sumf = ac + av + 1.0;
6961      static_assert(is_same<int, decltype(ac)>::value == true, "");
6962      static_assert(is_same<int, decltype(av)>::value == true, "");
6963      static_assert(is_same<int, decltype(sumi)>::value == true, "");
6964      static_assert(is_same<int, decltype(sumf)>::value == false, "");
6965      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6966      return (sumf > 0.0) ? sumi : add(c, v);
6967    }
6968
6969  }
6970
6971  namespace test_noexcept
6972  {
6973
6974    int f() { return 0; }
6975    int g() noexcept { return 0; }
6976
6977    static_assert(noexcept(f()) == false, "");
6978    static_assert(noexcept(g()) == true, "");
6979
6980  }
6981
6982  namespace test_constexpr
6983  {
6984
6985    template < typename CharT >
6986    unsigned long constexpr
6987    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6988    {
6989      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6990    }
6991
6992    template < typename CharT >
6993    unsigned long constexpr
6994    strlen_c(const CharT *const s) noexcept
6995    {
6996      return strlen_c_r(s, 0UL);
6997    }
6998
6999    static_assert(strlen_c("") == 0UL, "");
7000    static_assert(strlen_c("1") == 1UL, "");
7001    static_assert(strlen_c("example") == 7UL, "");
7002    static_assert(strlen_c("another\0example") == 7UL, "");
7003
7004  }
7005
7006  namespace test_rvalue_references
7007  {
7008
7009    template < int N >
7010    struct answer
7011    {
7012      static constexpr int value = N;
7013    };
7014
7015    answer<1> f(int&)       { return answer<1>(); }
7016    answer<2> f(const int&) { return answer<2>(); }
7017    answer<3> f(int&&)      { return answer<3>(); }
7018
7019    void
7020    test()
7021    {
7022      int i = 0;
7023      const int c = 0;
7024      static_assert(decltype(f(i))::value == 1, "");
7025      static_assert(decltype(f(c))::value == 2, "");
7026      static_assert(decltype(f(0))::value == 3, "");
7027    }
7028
7029  }
7030
7031  namespace test_uniform_initialization
7032  {
7033
7034    struct test
7035    {
7036      static const int zero {};
7037      static const int one {1};
7038    };
7039
7040    static_assert(test::zero == 0, "");
7041    static_assert(test::one == 1, "");
7042
7043  }
7044
7045  namespace test_lambdas
7046  {
7047
7048    void
7049    test1()
7050    {
7051      auto lambda1 = [](){};
7052      auto lambda2 = lambda1;
7053      lambda1();
7054      lambda2();
7055    }
7056
7057    int
7058    test2()
7059    {
7060      auto a = [](int i, int j){ return i + j; }(1, 2);
7061      auto b = []() -> int { return '0'; }();
7062      auto c = [=](){ return a + b; }();
7063      auto d = [&](){ return c; }();
7064      auto e = [a, &b](int x) mutable {
7065        const auto identity = [](int y){ return y; };
7066        for (auto i = 0; i < a; ++i)
7067          a += b--;
7068        return x + identity(a + b);
7069      }(0);
7070      return a + b + c + d + e;
7071    }
7072
7073    int
7074    test3()
7075    {
7076      const auto nullary = [](){ return 0; };
7077      const auto unary = [](int x){ return x; };
7078      using nullary_t = decltype(nullary);
7079      using unary_t = decltype(unary);
7080      const auto higher1st = [](nullary_t f){ return f(); };
7081      const auto higher2nd = [unary](nullary_t f1){
7082        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7083      };
7084      return higher1st(nullary) + higher2nd(nullary)(unary);
7085    }
7086
7087  }
7088
7089  namespace test_variadic_templates
7090  {
7091
7092    template <int...>
7093    struct sum;
7094
7095    template <int N0, int... N1toN>
7096    struct sum<N0, N1toN...>
7097    {
7098      static constexpr auto value = N0 + sum<N1toN...>::value;
7099    };
7100
7101    template <>
7102    struct sum<>
7103    {
7104      static constexpr auto value = 0;
7105    };
7106
7107    static_assert(sum<>::value == 0, "");
7108    static_assert(sum<1>::value == 1, "");
7109    static_assert(sum<23>::value == 23, "");
7110    static_assert(sum<1, 2>::value == 3, "");
7111    static_assert(sum<5, 5, 11>::value == 21, "");
7112    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7113
7114  }
7115
7116  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7117  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7118  // because of this.
7119  namespace test_template_alias_sfinae
7120  {
7121
7122    struct foo {};
7123
7124    template<typename T>
7125    using member = typename T::member_type;
7126
7127    template<typename T>
7128    void func(...) {}
7129
7130    template<typename T>
7131    void func(member<T>*) {}
7132
7133    void test();
7134
7135    void test() { func<foo>(0); }
7136
7137  }
7138
7139}  // namespace cxx11
7140
7141#endif  // __cplusplus >= 201103L
7142
7143
7144
7145_ACEOF
7146if ac_fn_cxx_try_compile "$LINENO"; then :
7147  ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7148else
7149  ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7150fi
7151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152fi
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7154$as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7155    if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7156      ac_success=yes
7157    fi
7158
7159    if test x$ac_success = xno; then
7160    for alternative in ${ax_cxx_compile_alternatives}; do
7161      switch="-std=gnu++${alternative}"
7162      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7163      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7164$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7165if eval \${$cachevar+:} false; then :
7166  $as_echo_n "(cached) " >&6
7167else
7168  ac_save_CXX="$CXX"
7169         CXX="$CXX $switch"
7170         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171/* end confdefs.h.  */
7172
7173
7174// If the compiler admits that it is not ready for C++11, why torture it?
7175// Hopefully, this will speed up the test.
7176
7177#ifndef __cplusplus
7178
7179#error "This is not a C++ compiler"
7180
7181#elif __cplusplus < 201103L
7182
7183#error "This is not a C++11 compiler"
7184
7185#else
7186
7187namespace cxx11
7188{
7189
7190  namespace test_static_assert
7191  {
7192
7193    template <typename T>
7194    struct check
7195    {
7196      static_assert(sizeof(int) <= sizeof(T), "not big enough");
7197    };
7198
7199  }
7200
7201  namespace test_final_override
7202  {
7203
7204    struct Base
7205    {
7206      virtual ~Base() {}
7207      virtual void f() {}
7208    };
7209
7210    struct Derived : public Base
7211    {
7212      virtual ~Derived() override {}
7213      virtual void f() override {}
7214    };
7215
7216  }
7217
7218  namespace test_double_right_angle_brackets
7219  {
7220
7221    template < typename T >
7222    struct check {};
7223
7224    typedef check<void> single_type;
7225    typedef check<check<void>> double_type;
7226    typedef check<check<check<void>>> triple_type;
7227    typedef check<check<check<check<void>>>> quadruple_type;
7228
7229  }
7230
7231  namespace test_decltype
7232  {
7233
7234    int
7235    f()
7236    {
7237      int a = 1;
7238      decltype(a) b = 2;
7239      return a + b;
7240    }
7241
7242  }
7243
7244  namespace test_type_deduction
7245  {
7246
7247    template < typename T1, typename T2 >
7248    struct is_same
7249    {
7250      static const bool value = false;
7251    };
7252
7253    template < typename T >
7254    struct is_same<T, T>
7255    {
7256      static const bool value = true;
7257    };
7258
7259    template < typename T1, typename T2 >
7260    auto
7261    add(T1 a1, T2 a2) -> decltype(a1 + a2)
7262    {
7263      return a1 + a2;
7264    }
7265
7266    int
7267    test(const int c, volatile int v)
7268    {
7269      static_assert(is_same<int, decltype(0)>::value == true, "");
7270      static_assert(is_same<int, decltype(c)>::value == false, "");
7271      static_assert(is_same<int, decltype(v)>::value == false, "");
7272      auto ac = c;
7273      auto av = v;
7274      auto sumi = ac + av + 'x';
7275      auto sumf = ac + av + 1.0;
7276      static_assert(is_same<int, decltype(ac)>::value == true, "");
7277      static_assert(is_same<int, decltype(av)>::value == true, "");
7278      static_assert(is_same<int, decltype(sumi)>::value == true, "");
7279      static_assert(is_same<int, decltype(sumf)>::value == false, "");
7280      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7281      return (sumf > 0.0) ? sumi : add(c, v);
7282    }
7283
7284  }
7285
7286  namespace test_noexcept
7287  {
7288
7289    int f() { return 0; }
7290    int g() noexcept { return 0; }
7291
7292    static_assert(noexcept(f()) == false, "");
7293    static_assert(noexcept(g()) == true, "");
7294
7295  }
7296
7297  namespace test_constexpr
7298  {
7299
7300    template < typename CharT >
7301    unsigned long constexpr
7302    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7303    {
7304      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7305    }
7306
7307    template < typename CharT >
7308    unsigned long constexpr
7309    strlen_c(const CharT *const s) noexcept
7310    {
7311      return strlen_c_r(s, 0UL);
7312    }
7313
7314    static_assert(strlen_c("") == 0UL, "");
7315    static_assert(strlen_c("1") == 1UL, "");
7316    static_assert(strlen_c("example") == 7UL, "");
7317    static_assert(strlen_c("another\0example") == 7UL, "");
7318
7319  }
7320
7321  namespace test_rvalue_references
7322  {
7323
7324    template < int N >
7325    struct answer
7326    {
7327      static constexpr int value = N;
7328    };
7329
7330    answer<1> f(int&)       { return answer<1>(); }
7331    answer<2> f(const int&) { return answer<2>(); }
7332    answer<3> f(int&&)      { return answer<3>(); }
7333
7334    void
7335    test()
7336    {
7337      int i = 0;
7338      const int c = 0;
7339      static_assert(decltype(f(i))::value == 1, "");
7340      static_assert(decltype(f(c))::value == 2, "");
7341      static_assert(decltype(f(0))::value == 3, "");
7342    }
7343
7344  }
7345
7346  namespace test_uniform_initialization
7347  {
7348
7349    struct test
7350    {
7351      static const int zero {};
7352      static const int one {1};
7353    };
7354
7355    static_assert(test::zero == 0, "");
7356    static_assert(test::one == 1, "");
7357
7358  }
7359
7360  namespace test_lambdas
7361  {
7362
7363    void
7364    test1()
7365    {
7366      auto lambda1 = [](){};
7367      auto lambda2 = lambda1;
7368      lambda1();
7369      lambda2();
7370    }
7371
7372    int
7373    test2()
7374    {
7375      auto a = [](int i, int j){ return i + j; }(1, 2);
7376      auto b = []() -> int { return '0'; }();
7377      auto c = [=](){ return a + b; }();
7378      auto d = [&](){ return c; }();
7379      auto e = [a, &b](int x) mutable {
7380        const auto identity = [](int y){ return y; };
7381        for (auto i = 0; i < a; ++i)
7382          a += b--;
7383        return x + identity(a + b);
7384      }(0);
7385      return a + b + c + d + e;
7386    }
7387
7388    int
7389    test3()
7390    {
7391      const auto nullary = [](){ return 0; };
7392      const auto unary = [](int x){ return x; };
7393      using nullary_t = decltype(nullary);
7394      using unary_t = decltype(unary);
7395      const auto higher1st = [](nullary_t f){ return f(); };
7396      const auto higher2nd = [unary](nullary_t f1){
7397        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7398      };
7399      return higher1st(nullary) + higher2nd(nullary)(unary);
7400    }
7401
7402  }
7403
7404  namespace test_variadic_templates
7405  {
7406
7407    template <int...>
7408    struct sum;
7409
7410    template <int N0, int... N1toN>
7411    struct sum<N0, N1toN...>
7412    {
7413      static constexpr auto value = N0 + sum<N1toN...>::value;
7414    };
7415
7416    template <>
7417    struct sum<>
7418    {
7419      static constexpr auto value = 0;
7420    };
7421
7422    static_assert(sum<>::value == 0, "");
7423    static_assert(sum<1>::value == 1, "");
7424    static_assert(sum<23>::value == 23, "");
7425    static_assert(sum<1, 2>::value == 3, "");
7426    static_assert(sum<5, 5, 11>::value == 21, "");
7427    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7428
7429  }
7430
7431  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7432  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7433  // because of this.
7434  namespace test_template_alias_sfinae
7435  {
7436
7437    struct foo {};
7438
7439    template<typename T>
7440    using member = typename T::member_type;
7441
7442    template<typename T>
7443    void func(...) {}
7444
7445    template<typename T>
7446    void func(member<T>*) {}
7447
7448    void test();
7449
7450    void test() { func<foo>(0); }
7451
7452  }
7453
7454}  // namespace cxx11
7455
7456#endif  // __cplusplus >= 201103L
7457
7458
7459
7460_ACEOF
7461if ac_fn_cxx_try_compile "$LINENO"; then :
7462  eval $cachevar=yes
7463else
7464  eval $cachevar=no
7465fi
7466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467         CXX="$ac_save_CXX"
7468fi
7469eval ac_res=\$$cachevar
7470	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7471$as_echo "$ac_res" >&6; }
7472      if eval test x\$$cachevar = xyes; then
7473        CXX="$CXX $switch"
7474        if test -n "$CXXCPP" ; then
7475          CXXCPP="$CXXCPP $switch"
7476        fi
7477        ac_success=yes
7478        break
7479      fi
7480    done
7481  fi
7482
7483    if test x$ac_success = xno; then
7484                for alternative in ${ax_cxx_compile_alternatives}; do
7485      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7486        cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7487        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7488$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7489if eval \${$cachevar+:} false; then :
7490  $as_echo_n "(cached) " >&6
7491else
7492  ac_save_CXX="$CXX"
7493           CXX="$CXX $switch"
7494           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495/* end confdefs.h.  */
7496
7497
7498// If the compiler admits that it is not ready for C++11, why torture it?
7499// Hopefully, this will speed up the test.
7500
7501#ifndef __cplusplus
7502
7503#error "This is not a C++ compiler"
7504
7505#elif __cplusplus < 201103L
7506
7507#error "This is not a C++11 compiler"
7508
7509#else
7510
7511namespace cxx11
7512{
7513
7514  namespace test_static_assert
7515  {
7516
7517    template <typename T>
7518    struct check
7519    {
7520      static_assert(sizeof(int) <= sizeof(T), "not big enough");
7521    };
7522
7523  }
7524
7525  namespace test_final_override
7526  {
7527
7528    struct Base
7529    {
7530      virtual ~Base() {}
7531      virtual void f() {}
7532    };
7533
7534    struct Derived : public Base
7535    {
7536      virtual ~Derived() override {}
7537      virtual void f() override {}
7538    };
7539
7540  }
7541
7542  namespace test_double_right_angle_brackets
7543  {
7544
7545    template < typename T >
7546    struct check {};
7547
7548    typedef check<void> single_type;
7549    typedef check<check<void>> double_type;
7550    typedef check<check<check<void>>> triple_type;
7551    typedef check<check<check<check<void>>>> quadruple_type;
7552
7553  }
7554
7555  namespace test_decltype
7556  {
7557
7558    int
7559    f()
7560    {
7561      int a = 1;
7562      decltype(a) b = 2;
7563      return a + b;
7564    }
7565
7566  }
7567
7568  namespace test_type_deduction
7569  {
7570
7571    template < typename T1, typename T2 >
7572    struct is_same
7573    {
7574      static const bool value = false;
7575    };
7576
7577    template < typename T >
7578    struct is_same<T, T>
7579    {
7580      static const bool value = true;
7581    };
7582
7583    template < typename T1, typename T2 >
7584    auto
7585    add(T1 a1, T2 a2) -> decltype(a1 + a2)
7586    {
7587      return a1 + a2;
7588    }
7589
7590    int
7591    test(const int c, volatile int v)
7592    {
7593      static_assert(is_same<int, decltype(0)>::value == true, "");
7594      static_assert(is_same<int, decltype(c)>::value == false, "");
7595      static_assert(is_same<int, decltype(v)>::value == false, "");
7596      auto ac = c;
7597      auto av = v;
7598      auto sumi = ac + av + 'x';
7599      auto sumf = ac + av + 1.0;
7600      static_assert(is_same<int, decltype(ac)>::value == true, "");
7601      static_assert(is_same<int, decltype(av)>::value == true, "");
7602      static_assert(is_same<int, decltype(sumi)>::value == true, "");
7603      static_assert(is_same<int, decltype(sumf)>::value == false, "");
7604      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7605      return (sumf > 0.0) ? sumi : add(c, v);
7606    }
7607
7608  }
7609
7610  namespace test_noexcept
7611  {
7612
7613    int f() { return 0; }
7614    int g() noexcept { return 0; }
7615
7616    static_assert(noexcept(f()) == false, "");
7617    static_assert(noexcept(g()) == true, "");
7618
7619  }
7620
7621  namespace test_constexpr
7622  {
7623
7624    template < typename CharT >
7625    unsigned long constexpr
7626    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7627    {
7628      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7629    }
7630
7631    template < typename CharT >
7632    unsigned long constexpr
7633    strlen_c(const CharT *const s) noexcept
7634    {
7635      return strlen_c_r(s, 0UL);
7636    }
7637
7638    static_assert(strlen_c("") == 0UL, "");
7639    static_assert(strlen_c("1") == 1UL, "");
7640    static_assert(strlen_c("example") == 7UL, "");
7641    static_assert(strlen_c("another\0example") == 7UL, "");
7642
7643  }
7644
7645  namespace test_rvalue_references
7646  {
7647
7648    template < int N >
7649    struct answer
7650    {
7651      static constexpr int value = N;
7652    };
7653
7654    answer<1> f(int&)       { return answer<1>(); }
7655    answer<2> f(const int&) { return answer<2>(); }
7656    answer<3> f(int&&)      { return answer<3>(); }
7657
7658    void
7659    test()
7660    {
7661      int i = 0;
7662      const int c = 0;
7663      static_assert(decltype(f(i))::value == 1, "");
7664      static_assert(decltype(f(c))::value == 2, "");
7665      static_assert(decltype(f(0))::value == 3, "");
7666    }
7667
7668  }
7669
7670  namespace test_uniform_initialization
7671  {
7672
7673    struct test
7674    {
7675      static const int zero {};
7676      static const int one {1};
7677    };
7678
7679    static_assert(test::zero == 0, "");
7680    static_assert(test::one == 1, "");
7681
7682  }
7683
7684  namespace test_lambdas
7685  {
7686
7687    void
7688    test1()
7689    {
7690      auto lambda1 = [](){};
7691      auto lambda2 = lambda1;
7692      lambda1();
7693      lambda2();
7694    }
7695
7696    int
7697    test2()
7698    {
7699      auto a = [](int i, int j){ return i + j; }(1, 2);
7700      auto b = []() -> int { return '0'; }();
7701      auto c = [=](){ return a + b; }();
7702      auto d = [&](){ return c; }();
7703      auto e = [a, &b](int x) mutable {
7704        const auto identity = [](int y){ return y; };
7705        for (auto i = 0; i < a; ++i)
7706          a += b--;
7707        return x + identity(a + b);
7708      }(0);
7709      return a + b + c + d + e;
7710    }
7711
7712    int
7713    test3()
7714    {
7715      const auto nullary = [](){ return 0; };
7716      const auto unary = [](int x){ return x; };
7717      using nullary_t = decltype(nullary);
7718      using unary_t = decltype(unary);
7719      const auto higher1st = [](nullary_t f){ return f(); };
7720      const auto higher2nd = [unary](nullary_t f1){
7721        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7722      };
7723      return higher1st(nullary) + higher2nd(nullary)(unary);
7724    }
7725
7726  }
7727
7728  namespace test_variadic_templates
7729  {
7730
7731    template <int...>
7732    struct sum;
7733
7734    template <int N0, int... N1toN>
7735    struct sum<N0, N1toN...>
7736    {
7737      static constexpr auto value = N0 + sum<N1toN...>::value;
7738    };
7739
7740    template <>
7741    struct sum<>
7742    {
7743      static constexpr auto value = 0;
7744    };
7745
7746    static_assert(sum<>::value == 0, "");
7747    static_assert(sum<1>::value == 1, "");
7748    static_assert(sum<23>::value == 23, "");
7749    static_assert(sum<1, 2>::value == 3, "");
7750    static_assert(sum<5, 5, 11>::value == 21, "");
7751    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7752
7753  }
7754
7755  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7756  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7757  // because of this.
7758  namespace test_template_alias_sfinae
7759  {
7760
7761    struct foo {};
7762
7763    template<typename T>
7764    using member = typename T::member_type;
7765
7766    template<typename T>
7767    void func(...) {}
7768
7769    template<typename T>
7770    void func(member<T>*) {}
7771
7772    void test();
7773
7774    void test() { func<foo>(0); }
7775
7776  }
7777
7778}  // namespace cxx11
7779
7780#endif  // __cplusplus >= 201103L
7781
7782
7783
7784_ACEOF
7785if ac_fn_cxx_try_compile "$LINENO"; then :
7786  eval $cachevar=yes
7787else
7788  eval $cachevar=no
7789fi
7790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791           CXX="$ac_save_CXX"
7792fi
7793eval ac_res=\$$cachevar
7794	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7795$as_echo "$ac_res" >&6; }
7796        if eval test x\$$cachevar = xyes; then
7797          CXX="$CXX $switch"
7798          if test -n "$CXXCPP" ; then
7799            CXXCPP="$CXXCPP $switch"
7800          fi
7801          ac_success=yes
7802          break
7803        fi
7804      done
7805      if test x$ac_success = xyes; then
7806        break
7807      fi
7808    done
7809  fi
7810      CXX_FOR_BUILD="$CXX"
7811    CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7812    CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7813    CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7814    CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7815    CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7816  ac_ext=c
7817ac_cpp='$CPP $CPPFLAGS'
7818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821
7822  if test x$ax_cxx_compile_cxx11_required = xtrue; then
7823    if test x$ac_success = xno; then
7824      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7825    fi
7826  fi
7827  if test x$ac_success = xno; then
7828    HAVE_CXX11_FOR_BUILD=0
7829    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7830$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7831  else
7832    HAVE_CXX11_FOR_BUILD=1
7833
7834$as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7835
7836  fi
7837
7838
7839  fi
7840fi
7841
7842# Check whether --enable-pgo-build was given.
7843if test "${enable_pgo_build+set}" = set; then :
7844  enableval=$enable_pgo_build; enable_pgo_build=$enableval
7845else
7846  enable_pgo_build=no
7847fi
7848
7849
7850# Issue errors and warnings for invalid/strange PGO build combinations.
7851case "$have_compiler:$host:$target:$enable_pgo_build" in
7852  *:*:*:no) ;;
7853
7854  # Allow the PGO build only if we aren't building a compiler and
7855  # we are in a native configuration.
7856  no:$build:$build:yes | no:$build:$build:lto) ;;
7857
7858  # Disallow the PGO bootstrap if we are building a compiler.
7859  yes:*:*:yes | yes:*:*:lto)
7860    as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7861
7862  *)
7863    as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7864    ;;
7865esac
7866
7867if test "$enable_pgo_build" != "no"; then
7868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7869$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7870  old_CFLAGS="$CFLAGS"
7871  PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7872  CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7873
7874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875/* end confdefs.h.  */
7876int foo;
7877_ACEOF
7878if ac_fn_c_try_compile "$LINENO"; then :
7879
7880else
7881  PGO_BUILD_GEN_CFLAGS=
7882fi
7883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884  CFLAGS="$old_CFLAGS"
7885  if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7886    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7887$as_echo "yes" >&6; }
7888    PGO_BUILD_USE_CFLAGS="-fprofile-use"
7889  else
7890    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891$as_echo "no" >&6; }
7892    as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7893  fi
7894
7895  if test "$enable_pgo_build" = "lto"; then
7896    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7897$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7898    old_CFLAGS="$CFLAGS"
7899    PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7900    CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7901    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902/* end confdefs.h.  */
7903int foo;
7904_ACEOF
7905if ac_fn_c_try_compile "$LINENO"; then :
7906
7907else
7908  PGO_BUILD_LTO_CFLAGS=
7909fi
7910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7911    CFLAGS="$old_CFLAGS"
7912    if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7913      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7914$as_echo "yes" >&6; }
7915    else
7916      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917$as_echo "no" >&6; }
7918      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7919$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7920    fi
7921  fi
7922fi
7923
7924
7925
7926
7927# Used for setting $lt_cv_objdir
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7929$as_echo_n "checking for objdir... " >&6; }
7930if ${lt_cv_objdir+:} false; then :
7931  $as_echo_n "(cached) " >&6
7932else
7933  rm -f .libs 2>/dev/null
7934mkdir .libs 2>/dev/null
7935if test -d .libs; then
7936  lt_cv_objdir=.libs
7937else
7938  # MS-DOS does not allow filenames that begin with a dot.
7939  lt_cv_objdir=_libs
7940fi
7941rmdir .libs 2>/dev/null
7942fi
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7944$as_echo "$lt_cv_objdir" >&6; }
7945objdir=$lt_cv_objdir
7946
7947
7948
7949
7950
7951cat >>confdefs.h <<_ACEOF
7952#define LT_OBJDIR "$lt_cv_objdir/"
7953_ACEOF
7954
7955
7956
7957# Check for GMP, MPFR and MPC
7958gmplibs="-lmpc -lmpfr -lgmp"
7959gmpinc=
7960have_gmp=no
7961
7962# Specify a location for mpc
7963# check for this first so it ends up on the link line before mpfr.
7964
7965# Check whether --with-mpc was given.
7966if test "${with_mpc+set}" = set; then :
7967  withval=$with_mpc;
7968fi
7969
7970
7971# Check whether --with-mpc-include was given.
7972if test "${with_mpc_include+set}" = set; then :
7973  withval=$with_mpc_include;
7974fi
7975
7976
7977# Check whether --with-mpc-lib was given.
7978if test "${with_mpc_lib+set}" = set; then :
7979  withval=$with_mpc_lib;
7980fi
7981
7982
7983if test "x$with_mpc" != x; then
7984  gmplibs="-L$with_mpc/lib $gmplibs"
7985  gmpinc="-I$with_mpc/include $gmpinc"
7986fi
7987if test "x$with_mpc_include" != x; then
7988  gmpinc="-I$with_mpc_include $gmpinc"
7989fi
7990if test "x$with_mpc_lib" != x; then
7991  gmplibs="-L$with_mpc_lib $gmplibs"
7992fi
7993if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7994  gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7995  gmpinc='-I$$s/mpc/src '"$gmpinc"
7996  # Do not test the mpc version.  Assume that it is sufficient, since
7997  # it is in the source tree, and the library has not been built yet
7998  # but it would be included on the link line in the version check below
7999  # hence making the test fail.
8000  have_gmp=yes
8001fi
8002
8003# Specify a location for mpfr
8004# check for this first so it ends up on the link line before gmp.
8005
8006# Check whether --with-mpfr was given.
8007if test "${with_mpfr+set}" = set; then :
8008  withval=$with_mpfr;
8009fi
8010
8011
8012# Check whether --with-mpfr-include was given.
8013if test "${with_mpfr_include+set}" = set; then :
8014  withval=$with_mpfr_include;
8015fi
8016
8017
8018# Check whether --with-mpfr-lib was given.
8019if test "${with_mpfr_lib+set}" = set; then :
8020  withval=$with_mpfr_lib;
8021fi
8022
8023
8024if test "x$with_mpfr" != x; then
8025  gmplibs="-L$with_mpfr/lib $gmplibs"
8026  gmpinc="-I$with_mpfr/include $gmpinc"
8027fi
8028if test "x$with_mpfr_include" != x; then
8029  gmpinc="-I$with_mpfr_include $gmpinc"
8030fi
8031if test "x$with_mpfr_lib" != x; then
8032  gmplibs="-L$with_mpfr_lib $gmplibs"
8033fi
8034if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8035  # MPFR v3.1.0 moved the sources into a src sub-directory.
8036  if ! test -d ${srcdir}/mpfr/src; then
8037    as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8038  fi
8039  gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8040  gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8041  extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8042  # Do not test the mpfr version.  Assume that it is sufficient, since
8043  # it is in the source tree, and the library has not been built yet
8044  # but it would be included on the link line in the version check below
8045  # hence making the test fail.
8046  have_gmp=yes
8047fi
8048
8049# Specify a location for gmp
8050
8051# Check whether --with-gmp was given.
8052if test "${with_gmp+set}" = set; then :
8053  withval=$with_gmp;
8054fi
8055
8056
8057# Check whether --with-gmp-include was given.
8058if test "${with_gmp_include+set}" = set; then :
8059  withval=$with_gmp_include;
8060fi
8061
8062
8063# Check whether --with-gmp-lib was given.
8064if test "${with_gmp_lib+set}" = set; then :
8065  withval=$with_gmp_lib;
8066fi
8067
8068
8069
8070if test "x$with_gmp" != x; then
8071  gmplibs="-L$with_gmp/lib $gmplibs"
8072  gmpinc="-I$with_gmp/include $gmpinc"
8073fi
8074if test "x$with_gmp_include" != x; then
8075  gmpinc="-I$with_gmp_include $gmpinc"
8076fi
8077if test "x$with_gmp_lib" != x; then
8078  gmplibs="-L$with_gmp_lib $gmplibs"
8079fi
8080if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8081  gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8082  gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8083  extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8084  extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8085  extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8086  # Do not test the gmp version.  Assume that it is sufficient, since
8087  # it is in the source tree, and the library has not been built yet
8088  # but it would be included on the link line in the version check below
8089  # hence making the test fail.
8090  have_gmp=yes
8091fi
8092
8093if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
8094  have_gmp=yes
8095  saved_CFLAGS="$CFLAGS"
8096  CFLAGS="$CFLAGS $gmpinc"
8097  # Check for the recommended and required versions of GMP.
8098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8099$as_echo_n "checking for the correct version of gmp.h... " >&6; }
8100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101/* end confdefs.h.  */
8102#include "gmp.h"
8103int
8104main ()
8105{
8106
8107  #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8108  #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8109  #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8110  choke me
8111  #endif
8112
8113  ;
8114  return 0;
8115}
8116_ACEOF
8117if ac_fn_c_try_compile "$LINENO"; then :
8118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119/* end confdefs.h.  */
8120#include <gmp.h>
8121int
8122main ()
8123{
8124
8125  #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8126  #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8127  #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8128  choke me
8129  #endif
8130
8131  ;
8132  return 0;
8133}
8134_ACEOF
8135if ac_fn_c_try_compile "$LINENO"; then :
8136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8137$as_echo "yes" >&6; }
8138else
8139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8140$as_echo "buggy but acceptable" >&6; }
8141fi
8142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143else
8144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145$as_echo "no" >&6; }; have_gmp=no
8146fi
8147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148
8149  # If we have GMP, check the MPFR version.
8150  if test x"$have_gmp" = xyes; then
8151    # Check for the recommended and required versions of MPFR.
8152    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8153$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8154    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155/* end confdefs.h.  */
8156#include <gmp.h>
8157    #include <mpfr.h>
8158int
8159main ()
8160{
8161
8162    #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8163    choke me
8164    #endif
8165
8166  ;
8167  return 0;
8168}
8169_ACEOF
8170if ac_fn_c_try_compile "$LINENO"; then :
8171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172/* end confdefs.h.  */
8173#include <gmp.h>
8174    #include <mpfr.h>
8175int
8176main ()
8177{
8178
8179    #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8180    choke me
8181    #endif
8182
8183  ;
8184  return 0;
8185}
8186_ACEOF
8187if ac_fn_c_try_compile "$LINENO"; then :
8188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8189$as_echo "yes" >&6; }
8190else
8191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8192$as_echo "buggy but acceptable" >&6; }
8193fi
8194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195else
8196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197$as_echo "no" >&6; }; have_gmp=no
8198fi
8199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200  fi
8201
8202  # Check for the MPC header version.
8203  if test x"$have_gmp" = xyes ; then
8204    # Check for the recommended and required versions of MPC.
8205    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8206$as_echo_n "checking for the correct version of mpc.h... " >&6; }
8207    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208/* end confdefs.h.  */
8209#include <mpc.h>
8210int
8211main ()
8212{
8213
8214    #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8215    choke me
8216    #endif
8217
8218  ;
8219  return 0;
8220}
8221_ACEOF
8222if ac_fn_c_try_compile "$LINENO"; then :
8223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224/* end confdefs.h.  */
8225#include <mpc.h>
8226int
8227main ()
8228{
8229
8230    #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8231    choke me
8232    #endif
8233
8234  ;
8235  return 0;
8236}
8237_ACEOF
8238if ac_fn_c_try_compile "$LINENO"; then :
8239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8240$as_echo "yes" >&6; }
8241else
8242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8243$as_echo "buggy but acceptable" >&6; }
8244fi
8245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246else
8247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248$as_echo "no" >&6; }; have_gmp=no
8249fi
8250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251  fi
8252
8253  # Now check the MPFR library.
8254  if test x"$have_gmp" = xyes; then
8255    saved_LIBS="$LIBS"
8256    LIBS="$LIBS $gmplibs"
8257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8258$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8259    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260/* end confdefs.h.  */
8261#include <mpc.h>
8262int
8263main ()
8264{
8265
8266    mpfr_t n;
8267    mpfr_t x;
8268    mpc_t c;
8269    int t;
8270    mpfr_init (n);
8271    mpfr_init (x);
8272    mpfr_atan2 (n, n, x, MPFR_RNDN);
8273    mpfr_erfc (n, x, MPFR_RNDN);
8274    mpfr_subnormalize (x, t, MPFR_RNDN);
8275    mpfr_clear(n);
8276    mpfr_clear(x);
8277    mpc_init2 (c, 53);
8278    mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8279    mpc_cosh (c, c, MPC_RNDNN);
8280    mpc_pow (c, c, c, MPC_RNDNN);
8281    mpc_acosh (c, c, MPC_RNDNN);
8282    mpc_clear (c);
8283
8284  ;
8285  return 0;
8286}
8287_ACEOF
8288if ac_fn_c_try_link "$LINENO"; then :
8289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8290$as_echo "yes" >&6; }
8291else
8292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293$as_echo "no" >&6; }; have_gmp=no
8294fi
8295rm -f core conftest.err conftest.$ac_objext \
8296    conftest$ac_exeext conftest.$ac_ext
8297    LIBS="$saved_LIBS"
8298  fi
8299
8300  CFLAGS="$saved_CFLAGS"
8301
8302# The library versions listed in the error message below should match
8303# the HARD-minimums enforced above.
8304  if test x$have_gmp != xyes; then
8305    as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8306Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8307their locations.  Source code for these libraries can be found at
8308their respective hosting sites as well as at
8309https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
8310http://gcc.gnu.org/install/prerequisites.html for additional info.  If
8311you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8312make sure that you have installed both the libraries and the header
8313files.  They may be located in separate packages." "$LINENO" 5
8314  fi
8315fi
8316
8317# Flags needed for both GMP, MPFR and/or MPC.
8318
8319
8320
8321
8322
8323
8324
8325# Libraries to use for stage1 or when not bootstrapping.
8326
8327# Check whether --with-stage1-libs was given.
8328if test "${with_stage1_libs+set}" = set; then :
8329  withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8330   stage1_libs=
8331 else
8332   stage1_libs=$withval
8333 fi
8334else
8335  stage1_libs=
8336fi
8337
8338
8339
8340# Whether or not to use -static-libstdc++ and -static-libgcc.  The
8341# default is yes if gcc is being built; no otherwise.  The reason for
8342# this default is that gdb is sometimes linked against GNU Source
8343# Highlight, which is a shared library that uses C++ exceptions.  In
8344# this case, -static-libstdc++ will cause crashes.
8345
8346# Check whether --with-static-standard-libraries was given.
8347if test "${with_static_standard_libraries+set}" = set; then :
8348  withval=$with_static_standard_libraries;
8349else
8350  with_static_standard_libraries=auto
8351fi
8352
8353if test "$with_static_standard_libraries" = auto; then
8354  with_static_standard_libraries=$have_compiler
8355fi
8356
8357# Linker flags to use for stage1 or when not bootstrapping.
8358
8359# Check whether --with-stage1-ldflags was given.
8360if test "${with_stage1_ldflags+set}" = set; then :
8361  withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8362   stage1_ldflags=
8363 else
8364   stage1_ldflags=$withval
8365 fi
8366else
8367  stage1_ldflags=
8368 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8369 # if supported.  But if the user explicitly specified the libraries to use,
8370 # trust that they are doing what they want.
8371 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8372     -a "$have_static_libs" = yes; then
8373   stage1_ldflags="-static-libstdc++ -static-libgcc"
8374 fi
8375fi
8376
8377
8378
8379# Libraries to use for stage2 and later builds.
8380
8381# Check whether --with-boot-libs was given.
8382if test "${with_boot_libs+set}" = set; then :
8383  withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8384   poststage1_libs=
8385 else
8386   poststage1_libs=$withval
8387 fi
8388else
8389  poststage1_libs=
8390fi
8391
8392
8393
8394# Linker flags to use for stage2 and later builds.
8395
8396# Check whether --with-boot-ldflags was given.
8397if test "${with_boot_ldflags+set}" = set; then :
8398  withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8399   poststage1_ldflags=
8400 else
8401   poststage1_ldflags=$withval
8402 fi
8403else
8404  poststage1_ldflags=
8405 # In stages 2 and 3, default to linking libstdc++ and libgcc
8406 # statically.  But if the user explicitly specified the libraries to
8407 # use, trust that they are doing what they want.
8408 if test "$poststage1_libs" = ""; then
8409   poststage1_ldflags="-static-libstdc++ -static-libgcc"
8410 fi
8411fi
8412
8413
8414
8415# GCC GRAPHITE dependency isl.
8416# Basic setup is inlined here, actual checks are in config/isl.m4
8417
8418
8419# Check whether --with-isl was given.
8420if test "${with_isl+set}" = set; then :
8421  withval=$with_isl;
8422fi
8423
8424
8425# Treat --without-isl as a request to disable
8426# GRAPHITE support and skip all following checks.
8427if test "x$with_isl" != "xno"; then
8428  # Check for isl
8429
8430
8431# Check whether --with-isl-include was given.
8432if test "${with_isl_include+set}" = set; then :
8433  withval=$with_isl_include;
8434fi
8435
8436
8437# Check whether --with-isl-lib was given.
8438if test "${with_isl_lib+set}" = set; then :
8439  withval=$with_isl_lib;
8440fi
8441
8442
8443  # Check whether --enable-isl-version-check was given.
8444if test "${enable_isl_version_check+set}" = set; then :
8445  enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8446else
8447  ENABLE_ISL_CHECK=yes
8448fi
8449
8450
8451  # Initialize isllibs and islinc.
8452  case $with_isl in
8453    no)
8454      isllibs=
8455      islinc=
8456      ;;
8457    "" | yes)
8458      ;;
8459    *)
8460      isllibs="-L$with_isl/lib"
8461      islinc="-I$with_isl/include"
8462      ;;
8463  esac
8464  if test "x${with_isl_include}" != x ; then
8465    islinc="-I$with_isl_include"
8466  fi
8467  if test "x${with_isl_lib}" != x; then
8468    isllibs="-L$with_isl_lib"
8469  fi
8470        if test "x${islinc}" = x && test "x${isllibs}" = x \
8471     && test -d ${srcdir}/isl; then
8472    isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8473    islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8474    ENABLE_ISL_CHECK=no
8475    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8476$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8477  fi
8478
8479  isllibs="${isllibs} -lisl"
8480
8481
8482
8483  if test "${ENABLE_ISL_CHECK}" = yes ; then
8484    _isl_saved_CFLAGS=$CFLAGS
8485    _isl_saved_LDFLAGS=$LDFLAGS
8486    _isl_saved_LIBS=$LIBS
8487
8488    CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8489    LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8490    LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8491
8492    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8493$as_echo_n "checking for isl 0.15 or later... " >&6; }
8494    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495/* end confdefs.h.  */
8496#include <isl/schedule.h>
8497int
8498main ()
8499{
8500isl_options_set_schedule_serialize_sccs (NULL, 0);
8501  ;
8502  return 0;
8503}
8504_ACEOF
8505if ac_fn_c_try_link "$LINENO"; then :
8506  gcc_cv_isl=yes
8507else
8508  gcc_cv_isl=no
8509fi
8510rm -f core conftest.err conftest.$ac_objext \
8511    conftest$ac_exeext conftest.$ac_ext
8512    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8513$as_echo "$gcc_cv_isl" >&6; }
8514
8515    if test "${gcc_cv_isl}" = no ; then
8516      { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8517$as_echo "required isl version is 0.15 or later" >&6; }
8518    fi
8519
8520    CFLAGS=$_isl_saved_CFLAGS
8521    LDFLAGS=$_isl_saved_LDFLAGS
8522    LIBS=$_isl_saved_LIBS
8523  fi
8524
8525
8526
8527
8528
8529
8530  if test "x${with_isl}" = xno; then
8531    graphite_requested=no
8532  elif test "x${with_isl}" != x \
8533    || test "x${with_isl_include}" != x \
8534    || test "x${with_isl_lib}" != x ; then
8535    graphite_requested=yes
8536  else
8537    graphite_requested=no
8538  fi
8539
8540
8541
8542  if test "${gcc_cv_isl}" = no ; then
8543    isllibs=
8544    islinc=
8545  fi
8546
8547  if test "${graphite_requested}" = yes \
8548    && test "x${isllibs}" = x \
8549    && test "x${islinc}" = x ; then
8550
8551    as_fn_error $? "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
8552  fi
8553
8554
8555fi
8556
8557# If the isl check failed, disable builds of in-tree variant of isl
8558if test "x$with_isl" = xno ||
8559   test "x$gcc_cv_isl" = xno; then
8560  noconfigdirs="$noconfigdirs isl"
8561  islinc=
8562fi
8563
8564
8565
8566
8567# Check for LTO support.
8568# Check whether --enable-lto was given.
8569if test "${enable_lto+set}" = set; then :
8570  enableval=$enable_lto; enable_lto=$enableval
8571else
8572  enable_lto=yes; default_enable_lto=yes
8573fi
8574
8575
8576
8577
8578
8579target_elf=no
8580case $target in
8581  *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8582  *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8583  alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8584  nvptx-*-none)
8585    target_elf=no
8586    ;;
8587  *)
8588    target_elf=yes
8589    ;;
8590esac
8591
8592if test $target_elf = yes; then :
8593  # ELF platforms build the lto-plugin always.
8594  case $target in
8595  m68010-*)
8596    build_lto_plugin=no;;
8597  *)
8598    build_lto_plugin=yes;;
8599  esac
8600
8601else
8602  if test x"$default_enable_lto" = x"yes" ; then
8603    case $target in
8604      *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8605      # On other non-ELF platforms, LTO has yet to be validated.
8606      *) enable_lto=no ;;
8607    esac
8608  else
8609  # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8610  # It would also be nice to check the binutils support, but we don't
8611  # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
8612  # warn during gcc/ subconfigure; unless you're bootstrapping with
8613  # -flto it won't be needed until after installation anyway.
8614    case $target in
8615      *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8616      *) if test x"$enable_lto" = x"yes"; then
8617	as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8618        fi
8619      ;;
8620    esac
8621  fi
8622  # Among non-ELF, only Windows platforms support the lto-plugin so far.
8623  # Build it unless LTO was explicitly disabled.
8624  case $target in
8625    *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8626    *) ;;
8627  esac
8628
8629fi
8630
8631
8632# Check whether --enable-linker-plugin-configure-flags was given.
8633if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8634  enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8635else
8636  extra_linker_plugin_configure_flags=
8637fi
8638
8639
8640# Check whether --enable-linker-plugin-flags was given.
8641if test "${enable_linker_plugin_flags+set}" = set; then :
8642  enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8643else
8644  extra_linker_plugin_flags=
8645fi
8646
8647
8648
8649# Enable --enable-host-shared.
8650# Checked early to determine whether jit is an 'all' language
8651# Check whether --enable-host-shared was given.
8652if test "${enable_host_shared+set}" = set; then :
8653  enableval=$enable_host_shared; host_shared=$enableval
8654 case $host in
8655   x86_64-*-darwin* | aarch64-*-darwin*)
8656     if test x$host_shared != xyes ; then
8657       # PIC is the default, and actually cannot be switched off.
8658       echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8659       host_shared=yes
8660     fi ;;
8661  *) ;;
8662 esac
8663else
8664  case $target in
8665  x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8666  *) host_shared=no ;;
8667 esac
8668fi
8669
8670
8671
8672# By default, C and C++ are the only stage 1 languages.
8673stage1_languages=,c,
8674
8675# Target libraries that we bootstrap.
8676bootstrap_target_libs=,target-libgcc,
8677
8678# Figure out what language subdirectories are present.
8679# Look if the user specified --enable-languages="..."; if not, use
8680# the environment variable $LANGUAGES if defined. $LANGUAGES might
8681# go away some day.
8682# NB:  embedded tabs in this IF block -- do not untabify
8683if test -d ${srcdir}/gcc; then
8684  if test x"${enable_languages+set}" != xset; then
8685    if test x"${LANGUAGES+set}" = xset; then
8686      enable_languages="${LANGUAGES}"
8687        echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8688    else
8689      enable_languages=default
8690    fi
8691  else
8692    if test x"${enable_languages}" = x ||
8693       test x"${enable_languages}" = xyes;
8694       then
8695      echo configure.ac: --enable-languages needs at least one language argument 1>&2
8696      exit 1
8697    fi
8698  fi
8699  enable_languages=`echo "${enable_languages}" | sed -e 's/[ 	,][ 	,]*/,/g' -e 's/,$//'`
8700
8701  # 'f95' is the old name for the 'fortran' language. We issue a warning
8702  # and make the substitution.
8703  case ,${enable_languages}, in
8704    *,f95,*)
8705      echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8706      enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8707      ;;
8708  esac
8709
8710  # If bootstrapping, C++ must be enabled.
8711  case ",$enable_languages,:$enable_bootstrap" in
8712    *,c++,*:*) ;;
8713    *:yes)
8714      if test -f ${srcdir}/gcc/cp/config-lang.in; then
8715        enable_languages="${enable_languages},c++"
8716      else
8717        as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8718      fi
8719      ;;
8720  esac
8721
8722  # First scan to see if an enabled language requires some other language.
8723  # We assume that a given config-lang.in will list all the language
8724  # front ends it requires, even if some are required indirectly.
8725  for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8726    case ${lang_frag} in
8727      ..) ;;
8728      # The odd quoting in the next line works around
8729      # an apparent bug in bash 1.12 on linux.
8730      ${srcdir}/gcc/[*]/config-lang.in) ;;
8731      *)
8732        # From the config-lang.in, get $language, $lang_requires, and
8733        # $lang_requires_boot_languages.
8734        language=
8735        lang_requires=
8736        lang_requires_boot_languages=
8737        # set srcdir during sourcing lang_frag to the gcc dir.
8738        # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8739        # polutes this shell
8740        saved_srcdir=${srcdir}
8741        srcdir=${srcdir}/gcc . ${lang_frag}
8742        srcdir=${saved_srcdir}
8743        for other in ${lang_requires} ${lang_requires_boot_languages}; do
8744          case ,${enable_languages}, in
8745	    *,$other,*) ;;
8746	    *,default,*) ;;
8747	    *,all,*) ;;
8748	    *,$language,*)
8749	      echo " \`$other' language required by \`$language'; enabling" 1>&2
8750	      enable_languages="${enable_languages},${other}"
8751	      ;;
8752	  esac
8753        done
8754	for other in ${lang_requires_boot_languages} ; do
8755	  if test "$other" != "c"; then
8756	    case ,${enable_stage1_languages}, in
8757	      *,$other,*) ;;
8758	      *,default,*) ;;
8759	      *,all,*) ;;
8760	      *)
8761		case ,${enable_languages}, in
8762		  *,$language,*)
8763		    echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8764		    enable_stage1_languages="$enable_stage1_languages,${other}"
8765		    ;;
8766		esac
8767		;;
8768	    esac
8769          fi
8770        done
8771        ;;
8772    esac
8773  done
8774
8775  new_enable_languages=,c,
8776
8777  # If LTO is enabled, add the LTO front end.
8778  if test "$enable_lto" = "yes" ; then
8779    case ,${enable_languages}, in
8780      *,lto,*) ;;
8781      *) enable_languages="${enable_languages},lto" ;;
8782    esac
8783    if test "${build_lto_plugin}" = "yes" ; then
8784      configdirs="$configdirs lto-plugin"
8785    fi
8786  fi
8787
8788  # If we're building an offloading compiler, add the LTO front end.
8789  if test x"$enable_as_accelerator_for" != x ; then
8790    case ,${enable_languages}, in
8791      *,lto,*) ;;
8792      *) enable_languages="${enable_languages},lto" ;;
8793    esac
8794  fi
8795
8796  missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8797  potential_languages=,c,
8798
8799  enabled_target_libs=
8800  disabled_target_libs=
8801
8802  for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8803    case ${lang_frag} in
8804      ..) ;;
8805      # The odd quoting in the next line works around
8806      # an apparent bug in bash 1.12 on linux.
8807      ${srcdir}/gcc/[*]/config-lang.in) ;;
8808      *)
8809        # From the config-lang.in, get $language, $target_libs,
8810        # $lang_dirs, $boot_language, and $build_by_default
8811        language=
8812        target_libs=
8813        lang_dirs=
8814        subdir_requires=
8815        boot_language=no
8816        build_by_default=yes
8817        # set srcdir during sourcing.  See above about save & restore
8818        saved_srcdir=${srcdir}
8819        srcdir=${srcdir}/gcc . ${lang_frag}
8820        srcdir=${saved_srcdir}
8821        if test x${language} = x; then
8822          echo "${lang_frag} doesn't set \$language." 1>&2
8823          exit 1
8824        fi
8825
8826	if test "$language" = "c++"; then
8827	  boot_language=yes
8828	fi
8829
8830        add_this_lang=no
8831        # C is always enabled, so no need to add it again
8832        if test "$language" != "c"; then
8833          case ,${enable_languages}, in
8834            *,${language},*)
8835              # Language was explicitly selected; include it
8836	      add_this_lang=yes
8837              ;;
8838	    *,all,*)
8839	      # All languages are enabled
8840	      add_this_lang=all
8841              ;;
8842            *,default,*)
8843              # 'default' was selected, select it if it is a default language
8844	      add_this_lang=${build_by_default}
8845              ;;
8846          esac
8847        fi
8848
8849        # Disable languages that need other directories if these aren't available.
8850	for i in $subdir_requires; do
8851	  test -f "$srcdir/gcc/$i/config-lang.in" && continue
8852	  case ${add_this_lang} in
8853	    yes)
8854              # Specifically requested language; tell them.
8855              as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8856              ;;
8857            all)
8858              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8859$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8860              add_this_lang=unsupported
8861              ;;
8862            *)
8863              # Silently disable.
8864              add_this_lang=unsupported
8865              ;;
8866          esac
8867	done
8868
8869        # Disable Ada if no preexisting GNAT is available.
8870        case ${add_this_lang}:${language}:${have_gnat} in
8871          yes:ada:no)
8872            # Specifically requested language; tell them.
8873            as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8874            ;;
8875          all:ada:no)
8876            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8877$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8878            add_this_lang=unsupported
8879            ;;
8880          *:ada:no)
8881            # Silently disable.
8882            add_this_lang=unsupported
8883            ;;
8884        esac
8885
8886        # Disable D if no preexisting GDC is available.
8887        case ${add_this_lang}:${language}:${have_gdc} in
8888          yes:d:no)
8889            # Specifically requested language; tell them.
8890            as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8891           ;;
8892          all:d:no)
8893            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8894$as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8895            add_this_lang=unsupported
8896            ;;
8897          *:d:no)
8898            # Silently disable.
8899            add_this_lang=unsupported
8900            ;;
8901        esac
8902
8903        # Disable jit if -enable-host-shared not specified
8904        # but not if building for Mingw. All code in Windows
8905        # is position independent code (PIC).
8906        case $target in
8907          *mingw*) ;;
8908          *)
8909          case ${add_this_lang}:${language}:${host_shared} in
8910            yes:jit:no)
8911	           # PR jit/64780: explicitly specify --enable-host-shared
8912	    as_fn_error $? "
8913Enabling language \"jit\" requires --enable-host-shared.
8914
8915--enable-host-shared typically slows the rest of the compiler down by
8916a few %, so you must explicitly enable it.
8917
8918If you want to build both the jit and the regular compiler, it is often
8919best to do this via two separate configure/builds, in separate
8920directories, to avoid imposing the performance cost of
8921--enable-host-shared on the regular compiler." "$LINENO" 5
8922	            ;;
8923            all:jit:no)
8924	      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8925$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8926              add_this_lang=unsupported
8927              ;;
8928            *:jit:no)
8929              # Silently disable.
8930              add_this_lang=unsupported
8931              ;;
8932	        esac
8933          ;;
8934        esac
8935
8936        # Disable a language that is unsupported by the target.
8937	case "${add_this_lang}: $unsupported_languages " in
8938	  no:*) ;;
8939	  unsupported:*) ;;
8940	  *:*" $language "*)
8941	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8942$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8943	    add_this_lang=unsupported
8944	    ;;
8945	esac
8946
8947	case $add_this_lang in
8948	  unsupported)
8949            # Remove language-dependent dirs.
8950	    disabled_target_libs="$disabled_target_libs $target_libs"
8951	    noconfigdirs="$noconfigdirs $lang_dirs"
8952	    ;;
8953	  no)
8954            # Remove language-dependent dirs; still show language as supported.
8955	    disabled_target_libs="$disabled_target_libs $target_libs"
8956	    noconfigdirs="$noconfigdirs $lang_dirs"
8957            potential_languages="${potential_languages}${language},"
8958	    ;;
8959          all|yes)
8960	    new_enable_languages="${new_enable_languages}${language},"
8961            potential_languages="${potential_languages}${language},"
8962	    missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8963	    enabled_target_libs="$enabled_target_libs $target_libs"
8964	    case "${boot_language}:,$enable_stage1_languages," in
8965	      yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8966		# Add to (comma-separated) list of stage 1 languages.
8967		case ",$stage1_languages," in
8968		  *,$language,* | ,yes, | ,all,) ;;
8969		  *) stage1_languages="${stage1_languages}${language}," ;;
8970		esac
8971		# We need to bootstrap any supporting libraries.
8972		bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8973		;;
8974	    esac
8975	    ;;
8976        esac
8977        ;;
8978    esac
8979  done
8980
8981  # Add target libraries which are only needed for disabled languages
8982  # to noconfigdirs.
8983  if test -n "$disabled_target_libs"; then
8984    for dir in $disabled_target_libs; do
8985      case " $enabled_target_libs " in
8986      *" ${dir} "*) ;;
8987      *) noconfigdirs="$noconfigdirs $dir" ;;
8988      esac
8989    done
8990  fi
8991
8992  # Check whether --enable-stage1-languages was given.
8993if test "${enable_stage1_languages+set}" = set; then :
8994  enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8995    ,no,|,,)
8996      # Set it to something that will have no effect in the loop below
8997      enable_stage1_languages=c ;;
8998    ,yes,)
8999      enable_stage1_languages=`echo $new_enable_languages | \
9000	sed -e "s/^,//" -e "s/,$//" ` ;;
9001    *,all,*)
9002      enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9003	sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9004  esac
9005
9006  # Add "good" languages from enable_stage1_languages to stage1_languages,
9007  # while "bad" languages go in missing_languages.  Leave no duplicates.
9008  for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9009    case $potential_languages in
9010      *,$i,*)
9011        case $stage1_languages in
9012          *,$i,*) ;;
9013          *) stage1_languages="$stage1_languages$i," ;;
9014        esac ;;
9015      *)
9016        case $missing_languages in
9017          *,$i,*) ;;
9018          *) missing_languages="$missing_languages$i," ;;
9019        esac ;;
9020     esac
9021  done
9022fi
9023
9024
9025  # Remove leading/trailing commas that were added for simplicity
9026  potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9027  missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9028  stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9029  new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9030
9031  if test "x$missing_languages" != x; then
9032    as_fn_error $? "
9033The following requested languages could not be built: ${missing_languages}
9034Supported languages are: ${potential_languages}" "$LINENO" 5
9035  fi
9036  if test "x$new_enable_languages" != "x$enable_languages"; then
9037    echo The following languages will be built: ${new_enable_languages}
9038    enable_languages="$new_enable_languages"
9039  fi
9040
9041
9042  ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9043fi
9044
9045# Handle --disable-<component> generically.
9046for dir in $configdirs $build_configdirs $target_configdirs ; do
9047  dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9048  varname=`echo $dirname | sed -e s/+/_/g`
9049  if eval test x\${enable_${varname}} "=" xno ; then
9050    noconfigdirs="$noconfigdirs $dir"
9051  fi
9052done
9053
9054# Check for Boehm's garbage collector
9055# Check whether --enable-objc-gc was given.
9056if test "${enable_objc_gc+set}" = set; then :
9057  enableval=$enable_objc_gc;
9058fi
9059
9060
9061# Check whether --with-target-bdw-gc was given.
9062if test "${with_target_bdw_gc+set}" = set; then :
9063  withval=$with_target_bdw_gc;
9064fi
9065
9066
9067# Check whether --with-target-bdw-gc-include was given.
9068if test "${with_target_bdw_gc_include+set}" = set; then :
9069  withval=$with_target_bdw_gc_include;
9070fi
9071
9072
9073# Check whether --with-target-bdw-gc-lib was given.
9074if test "${with_target_bdw_gc_lib+set}" = set; then :
9075  withval=$with_target_bdw_gc_lib;
9076fi
9077
9078
9079case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9080  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9081$as_echo_n "checking for bdw garbage collector... " >&6; }
9082  if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9083        { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9084$as_echo "using bdw-gc in default locations" >&6; }
9085  else
9086        if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9087      as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9088    elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9089      as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9090    else
9091      { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9092$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9093    fi
9094  fi
9095esac
9096
9097# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9098case ,${enable_languages}, in
9099  *,c++,*)
9100    # Disable libitm, libsanitizer if we're not building libstdc++
9101    case "${noconfigdirs}" in
9102      *target-libstdc++-v3*)
9103        noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9104        ;;
9105      *) ;;
9106    esac
9107    ;;
9108  *)
9109    noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9110    ;;
9111esac
9112
9113# If gcc/ is not in the source tree then we'll not be building a
9114# target compiler, assume in that case we don't want to build any
9115# target libraries or tools.
9116#
9117# This was added primarily for the benefit for binutils-gdb who reuse
9118# this configure script, but don't always have target tools available.
9119if test ! -d ${srcdir}/gcc; then
9120   skipdirs="${skipdirs} ${target_configdirs}"
9121fi
9122
9123# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9124# $build_configdirs and $target_configdirs.
9125# If we have the source for $noconfigdirs entries, add them to $notsupp.
9126
9127notsupp=""
9128for dir in . $skipdirs $noconfigdirs ; do
9129  dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9130  if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9131    configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9132    if test -r $srcdir/$dirname/configure ; then
9133      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9134	true
9135      else
9136	notsupp="$notsupp $dir"
9137      fi
9138    fi
9139  fi
9140  if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9141    build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9142    if test -r $srcdir/$dirname/configure ; then
9143      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9144	true
9145      else
9146	notsupp="$notsupp $dir"
9147      fi
9148    fi
9149  fi
9150  if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9151    target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9152    if test -r $srcdir/$dirname/configure ; then
9153      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9154	true
9155      else
9156	notsupp="$notsupp $dir"
9157      fi
9158    fi
9159  fi
9160done
9161
9162# Quietly strip out all directories which aren't configurable in this tree.
9163# This relies on all configurable subdirectories being autoconfiscated, which
9164# is now the case.
9165build_configdirs_all="$build_configdirs"
9166build_configdirs=
9167for i in ${build_configdirs_all} ; do
9168  j=`echo $i | sed -e s/build-//g`
9169  if test -f ${srcdir}/$j/configure ; then
9170    build_configdirs="${build_configdirs} $i"
9171  fi
9172done
9173
9174configdirs_all="$configdirs"
9175configdirs=
9176for i in ${configdirs_all} ; do
9177  if test -f ${srcdir}/$i/configure ; then
9178    configdirs="${configdirs} $i"
9179  fi
9180done
9181
9182target_configdirs_all="$target_configdirs"
9183target_configdirs=
9184for i in ${target_configdirs_all} ; do
9185  j=`echo $i | sed -e s/target-//g`
9186  if test -f ${srcdir}/$j/configure ; then
9187    target_configdirs="${target_configdirs} $i"
9188  fi
9189done
9190
9191# libiberty-linker-plugin is special: it doesn't have its own source directory,
9192# so we have to add it after the preceding checks.
9193if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9194then
9195  case " $configdirs " in
9196    *" libiberty "*)
9197      # If we can build libiberty, we can also build libiberty-linker-plugin.
9198      configdirs="$configdirs libiberty-linker-plugin"
9199      extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9200        --with-libiberty=../libiberty-linker-plugin";;
9201    *)
9202      as_fn_error $? "libiberty missing" "$LINENO" 5;;
9203  esac
9204fi
9205
9206# Sometimes we have special requirements for the host libiberty.
9207extra_host_libiberty_configure_flags=
9208extra_host_zlib_configure_flags=
9209case " $configdirs " in
9210  *" lto-plugin "* | *" libcc1 "*)
9211    # When these are to be built as shared libraries, the same applies to
9212    # libiberty.
9213    extra_host_libiberty_configure_flags=--enable-shared
9214    ;;
9215  *" bfd "*)
9216    # When bfd is to be built as a shared library, the same applies to
9217    # zlib.
9218    if test "$enable_shared" = "yes"; then
9219      extra_host_zlib_configure_flags=--enable-host-shared
9220    fi
9221    ;;
9222esac
9223
9224
9225
9226# Produce a warning message for the subdirs we can't configure.
9227# This isn't especially interesting in the Cygnus tree, but in the individual
9228# FSF releases, it's important to let people know when their machine isn't
9229# supported by the one or two programs in a package.
9230
9231if test -n "${notsupp}" && test -z "${norecursion}" ; then
9232  # If $appdirs is non-empty, at least one of those directories must still
9233  # be configured, or we error out.  (E.g., if the gas release supports a
9234  # specified target in some subdirs but not the gas subdir, we shouldn't
9235  # pretend that all is well.)
9236  if test -n "$appdirs" ; then
9237    for dir in $appdirs ; do
9238      if test -r $dir/Makefile.in ; then
9239	if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9240	  appdirs=""
9241	  break
9242	fi
9243	if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9244	  appdirs=""
9245	  break
9246	fi
9247      fi
9248    done
9249    if test -n "$appdirs" ; then
9250      echo "*** This configuration is not supported by this package." 1>&2
9251      exit 1
9252    fi
9253  fi
9254  # Okay, some application will build, or we don't care to check.  Still
9255  # notify of subdirs not getting built.
9256  echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9257  echo "    ${notsupp}" 1>&2
9258  echo "    (Any other directories should still work fine.)" 1>&2
9259fi
9260
9261case "$host" in
9262  *msdosdjgpp*)
9263    enable_gdbtk=no ;;
9264esac
9265
9266# To find our prefix, in gcc_cv_tool_prefix.
9267
9268# The user is always right.
9269if test "${PATH_SEPARATOR+set}" != set; then
9270  echo "#! /bin/sh" >conf$$.sh
9271  echo  "exit 0"   >>conf$$.sh
9272  chmod +x conf$$.sh
9273  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9274    PATH_SEPARATOR=';'
9275  else
9276    PATH_SEPARATOR=:
9277  fi
9278  rm -f conf$$.sh
9279fi
9280
9281
9282  get_gcc_base_ver="cat"
9283
9284# Check whether --with-gcc-major-version-only was given.
9285if test "${with_gcc_major_version_only+set}" = set; then :
9286  withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9287        get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9288      fi
9289
9290fi
9291
9292
9293
9294
9295
9296
9297if test "x$exec_prefix" = xNONE; then
9298        if test "x$prefix" = xNONE; then
9299                gcc_cv_tool_prefix=$ac_default_prefix
9300        else
9301                gcc_cv_tool_prefix=$prefix
9302        fi
9303else
9304        gcc_cv_tool_prefix=$exec_prefix
9305fi
9306
9307# If there is no compiler in the tree, use the PATH only.  In any
9308# case, if there is no compiler in the tree nobody should use
9309# AS_FOR_TARGET and LD_FOR_TARGET.
9310if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9311    if test x$with_gcc_major_version_only = xyes ; then
9312                gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9313            else
9314        gcc_version=`cat $srcdir/gcc/BASE-VER`
9315    fi
9316    gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9317    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9318    gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9319    gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9320    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9321    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9322else
9323    gcc_cv_tool_dirs=
9324fi
9325
9326if test x$build = x$target && test -n "$md_exec_prefix"; then
9327        gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9328fi
9329
9330
9331
9332copy_dirs=
9333
9334
9335# Check whether --with-build-sysroot was given.
9336if test "${with_build_sysroot+set}" = set; then :
9337  withval=$with_build_sysroot; if test x"$withval" != x ; then
9338     SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9339   fi
9340else
9341  SYSROOT_CFLAGS_FOR_TARGET=
9342fi
9343
9344
9345
9346
9347# Check whether --with-debug-prefix-map was given.
9348if test "${with_debug_prefix_map+set}" = set; then :
9349  withval=$with_debug_prefix_map; if test x"$withval" != x; then
9350     DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9351     for debug_map in $withval; do
9352       DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9353     done
9354   fi
9355else
9356  DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9357fi
9358
9359
9360
9361# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9362# might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
9363# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9364# We want to ensure that TARGET libraries (which we know are built with
9365# gcc) are built with "-O2 -g", so include those options when setting
9366# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9367if test "x$CFLAGS_FOR_TARGET" = x; then
9368  if test "x${is_cross_compiler}" = xyes; then
9369    CFLAGS_FOR_TARGET="-g -O2"
9370  else
9371    CFLAGS_FOR_TARGET=$CFLAGS
9372    case " $CFLAGS " in
9373      *" -O2 "*) ;;
9374      *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9375    esac
9376    case " $CFLAGS " in
9377      *" -g "* | *" -g3 "*) ;;
9378      *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9379    esac
9380  fi
9381fi
9382
9383
9384if test "x$CXXFLAGS_FOR_TARGET" = x; then
9385  if test "x${is_cross_compiler}" = xyes; then
9386    CXXFLAGS_FOR_TARGET="-g -O2"
9387  else
9388    CXXFLAGS_FOR_TARGET=$CXXFLAGS
9389    case " $CXXFLAGS " in
9390      *" -O2 "*) ;;
9391      *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9392    esac
9393    case " $CXXFLAGS " in
9394      *" -g "* | *" -g3 "*) ;;
9395      *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9396    esac
9397  fi
9398fi
9399
9400
9401
9402
9403# Handle --with-headers=XXX.  If the value is not "yes", the contents of
9404# the named directory are copied to $(tooldir)/sys-include.
9405if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9406  if test x${is_cross_compiler} = xno ; then
9407    echo 1>&2 '***' --with-headers is only supported when cross compiling
9408    exit 1
9409  fi
9410  if test x"${with_headers}" != xyes ; then
9411    x=${gcc_cv_tool_prefix}
9412    copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9413  fi
9414fi
9415
9416# Handle --with-libs=XXX.  If the value is not "yes", the contents of
9417# the name directories are copied to $(tooldir)/lib.  Multiple directories
9418# are permitted.
9419if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9420  if test x${is_cross_compiler} = xno ; then
9421    echo 1>&2 '***' --with-libs is only supported when cross compiling
9422    exit 1
9423  fi
9424  if test x"${with_libs}" != xyes ; then
9425    # Copy the libraries in reverse order, so that files in the first named
9426    # library override files in subsequent libraries.
9427    x=${gcc_cv_tool_prefix}
9428    for l in ${with_libs}; do
9429      copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9430    done
9431  fi
9432fi
9433
9434# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9435#
9436# This is done by determining whether or not the appropriate directory
9437# is available, and by checking whether or not specific configurations
9438# have requested that this magic not happen.
9439#
9440# The command line options always override the explicit settings in
9441# configure.ac, and the settings in configure.ac override this magic.
9442#
9443# If the default for a toolchain is to use GNU as and ld, and you don't
9444# want to do that, then you should use the --without-gnu-as and
9445# --without-gnu-ld options for the configure script.  Similarly, if
9446# the default is to use the included zlib and you don't want to do that,
9447# you should use the --with-system-zlib option for the configure script.
9448
9449if test x${use_gnu_as} = x &&
9450   echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9451  with_gnu_as=yes
9452  extra_host_args="$extra_host_args --with-gnu-as"
9453fi
9454
9455if test x${use_gnu_ld} = x &&
9456   echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9457  with_gnu_ld=yes
9458  extra_host_args="$extra_host_args --with-gnu-ld"
9459fi
9460
9461if test x${use_included_zlib} = x &&
9462   echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9463  :
9464else
9465  with_system_zlib=yes
9466  extra_host_args="$extra_host_args --with-system-zlib"
9467fi
9468
9469# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9470# can detect this case.
9471
9472if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9473  with_newlib=yes
9474  extra_host_args="$extra_host_args --with-newlib"
9475fi
9476
9477# Handle ${copy_dirs}
9478set fnord ${copy_dirs}
9479shift
9480while test $# != 0 ; do
9481  if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9482    :
9483  else
9484    echo Copying $1 to $2
9485
9486    # Use the install script to create the directory and all required
9487    # parent directories.
9488    if test -d $2 ; then
9489      :
9490    else
9491      echo >config.temp
9492      ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9493    fi
9494
9495    # Copy the directory, assuming we have tar.
9496    # FIXME: Should we use B in the second tar?  Not all systems support it.
9497    (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9498
9499    # It is the responsibility of the user to correctly adjust all
9500    # symlinks.  If somebody can figure out how to handle them correctly
9501    # here, feel free to add the code.
9502
9503    echo $1 > $2/COPIED
9504  fi
9505  shift; shift
9506done
9507
9508# Determine a target-dependent exec_prefix that the installed
9509# gcc will search in.  Keep this list sorted by triplet, with
9510# the *-*-osname triplets last.
9511md_exec_prefix=
9512case "${target}" in
9513  i[34567]86-pc-msdosdjgpp*)
9514    md_exec_prefix=/dev/env/DJDIR/bin
9515    ;;
9516  *-*-hpux* | \
9517  *-*-nto-qnx* | \
9518  *-*-solaris2*)
9519    md_exec_prefix=/usr/ccs/bin
9520    ;;
9521esac
9522
9523extra_arflags_for_target=
9524extra_nmflags_for_target=
9525extra_ranlibflags_for_target=
9526target_makefile_frag=/dev/null
9527case "${target}" in
9528  spu-*-*)
9529    target_makefile_frag="config/mt-spu"
9530    ;;
9531  mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9532    target_makefile_frag="config/mt-sde"
9533    ;;
9534  mipsisa*-*-elfoabi*)
9535    target_makefile_frag="config/mt-mips-elfoabi"
9536    ;;
9537  mips*-*-*linux* | mips*-*-gnu*)
9538    target_makefile_frag="config/mt-mips-gnu"
9539    ;;
9540  nios2-*-elf*)
9541    target_makefile_frag="config/mt-nios2-elf"
9542    ;;
9543  *-*-linux-android*)
9544    target_makefile_frag="config/mt-android"
9545    ;;
9546  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9547    target_makefile_frag="config/mt-gnu"
9548    ;;
9549  *-*-aix4.[3456789]* | *-*-aix[56789].*)
9550    # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9551    # commands to handle both 32-bit and 64-bit objects.  These flags are
9552    # harmless if we're using GNU nm or ar.
9553    extra_arflags_for_target=" -X32_64"
9554    extra_nmflags_for_target=" -B -X32_64"
9555    ;;
9556esac
9557
9558alphaieee_frag=/dev/null
9559case $target in
9560  alpha*-*-*)
9561    # This just makes sure to use the -mieee option to build target libs.
9562    # This should probably be set individually by each library.
9563    alphaieee_frag="config/mt-alphaieee"
9564    ;;
9565esac
9566
9567# If --enable-target-optspace always use -Os instead of -O2 to build
9568# the target libraries, similarly if it is not specified, use -Os
9569# on selected platforms.
9570ospace_frag=/dev/null
9571case "${enable_target_optspace}:${target}" in
9572  yes:*)
9573    ospace_frag="config/mt-ospace"
9574    ;;
9575  :d30v-*)
9576    ospace_frag="config/mt-d30v"
9577    ;;
9578  :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9579    ospace_frag="config/mt-ospace"
9580    ;;
9581  no:* | :*)
9582    ;;
9583  *)
9584    echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9585    ;;
9586esac
9587
9588# Some systems (e.g., one of the i386-aix systems the gas testers are
9589# using) don't handle "\$" correctly, so don't use it here.
9590tooldir='${exec_prefix}'/${target_noncanonical}
9591build_tooldir=${tooldir}
9592
9593# Create a .gdbinit file which runs the one in srcdir
9594# and tells GDB to look there for source files.
9595
9596if test -r ${srcdir}/.gdbinit ; then
9597  case ${srcdir} in
9598    .) ;;
9599    *) cat > ./.gdbinit <<EOF
9600# ${NO_EDIT}
9601dir ${srcdir}
9602dir .
9603source ${srcdir}/.gdbinit
9604EOF
9605    ;;
9606  esac
9607fi
9608
9609# Make sure that the compiler is able to generate an executable.  If it
9610# can't, we are probably in trouble.  We don't care whether we can run the
9611# executable--we might be using a cross compiler--we only care whether it
9612# can be created.  At this point the main configure script has set CC.
9613we_are_ok=no
9614echo "int main () { return 0; }" > conftest.c
9615${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9616if test $? = 0 ; then
9617  if test -s conftest || test -s conftest.exe ; then
9618    we_are_ok=yes
9619  fi
9620fi
9621case $we_are_ok in
9622  no)
9623    echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9624    echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9625    rm -f conftest*
9626    exit 1
9627    ;;
9628esac
9629rm -f conftest*
9630
9631# Decide which environment variable is used to find dynamic libraries.
9632case "${host}" in
9633  *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9634  *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9635  *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9636  *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9637esac
9638
9639# On systems where the dynamic library environment variable is PATH,
9640# gcc/ will put dynamic libraries into a subdirectory to avoid adding
9641# built executables to PATH.
9642if test "$RPATH_ENVVAR" = PATH; then
9643  GCC_SHLIB_SUBDIR=/shlib
9644else
9645  GCC_SHLIB_SUBDIR=
9646fi
9647
9648# Adjust the toplevel makefile according to whether bootstrap was selected.
9649case $enable_bootstrap in
9650  yes)
9651    bootstrap_suffix=bootstrap
9652    BUILD_CONFIG=bootstrap-debug
9653    ;;
9654  no)
9655    bootstrap_suffix=no-bootstrap
9656    BUILD_CONFIG=
9657    ;;
9658esac
9659
9660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9661$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9662
9663
9664# Check whether --with-build-config was given.
9665if test "${with_build_config+set}" = set; then :
9666  withval=$with_build_config; case $with_build_config in
9667   yes) with_build_config= ;;
9668   no) with_build_config= BUILD_CONFIG= ;;
9669   esac
9670fi
9671
9672
9673if test "x${with_build_config}" != x; then
9674  BUILD_CONFIG=$with_build_config
9675else
9676  case $BUILD_CONFIG in
9677  bootstrap-debug)
9678    if echo "int f (void) { return 0; }" > conftest.c &&
9679       ${CC} -c conftest.c &&
9680       mv conftest.o conftest.o.g0 &&
9681       ${CC} -c -g conftest.c &&
9682       mv conftest.o conftest.o.g &&
9683       ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9684      :
9685    else
9686      BUILD_CONFIG=
9687    fi
9688    rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9689    ;;
9690  esac
9691fi
9692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9693$as_echo "$BUILD_CONFIG" >&6; }
9694
9695
9696# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9698$as_echo_n "checking for --enable-vtable-verify... " >&6; }
9699# Check whether --enable-vtable-verify was given.
9700if test "${enable_vtable_verify+set}" = set; then :
9701  enableval=$enable_vtable_verify; case "$enableval" in
9702 yes) enable_vtable_verify=yes ;;
9703 no)  enable_vtable_verify=no ;;
9704 *)   enable_vtable_verify=no;;
9705 esac
9706else
9707  enable_vtable_verify=no
9708fi
9709
9710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9711$as_echo "$enable_vtable_verify" >&6; }
9712
9713# Record target_configdirs and the configure arguments for target and
9714# build configuration in Makefile.
9715target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9716build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9717bootstrap_fixincludes=no
9718
9719# If we are building libgomp, bootstrap it.
9720if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9721  bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9722fi
9723
9724# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9725# or bootstrap-ubsan, bootstrap it.
9726if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9727  case "$BUILD_CONFIG" in
9728    *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9729      bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9730      bootstrap_fixincludes=yes
9731      ;;
9732  esac
9733fi
9734
9735# If we are building libvtv and --enable-vtable-verify, bootstrap it.
9736if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9737   test "$enable_vtable_verify" != no; then
9738  bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9739fi
9740
9741# If we are building libatomic and the list of enabled languages includes the
9742# D frontend, bootstrap it.
9743if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9744  case ,${enable_languages}, in
9745    *,d,*)
9746      bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9747      ;;
9748  esac
9749fi
9750
9751# Determine whether gdb needs tk/tcl or not.
9752# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9753# and in that case we want gdb to be built without tk.  Ugh!
9754# In fact I believe gdb is the *only* package directly dependent on tk,
9755# so we should be able to put the 'maybe's in unconditionally and
9756# leave out the maybe dependencies when enable_gdbtk is false.  I'm not
9757# 100% sure that that's safe though.
9758
9759gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9760case "$enable_gdbtk" in
9761  no)
9762    GDB_TK="" ;;
9763  yes)
9764    GDB_TK="${gdb_tk}" ;;
9765  *)
9766    # Only add the dependency on gdbtk when GDBtk is part of the gdb
9767    # distro.  Eventually someone will fix this and move Insight, nee
9768    # gdbtk to a separate directory.
9769    if test -d ${srcdir}/gdb/gdbtk ; then
9770      GDB_TK="${gdb_tk}"
9771    else
9772      GDB_TK=""
9773    fi
9774    ;;
9775esac
9776CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9777INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9778
9779# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9780# else does, only include them if one of these is built.  The Makefile
9781# provides the ordering, so it's enough here to add to the list.
9782case " ${configdirs} " in
9783  *\ gdb\ *)
9784    configdirs="${configdirs} gnulib gdbsupport"
9785    ;;
9786  *\ gdbserver\ *)
9787    configdirs="${configdirs} gnulib gdbsupport"
9788    ;;
9789  *\ sim\ *)
9790    configdirs="${configdirs} gnulib"
9791    ;;
9792esac
9793
9794# Strip out unwanted targets.
9795
9796# While at that, we remove Makefiles if we were started for recursive
9797# configuration, so that the top-level Makefile reconfigures them,
9798# like we used to do when configure itself was recursive.
9799
9800# Loop over modules.  We used to use the "$extrasub" feature from Autoconf
9801# but now we're fixing up the Makefile ourselves with the additional
9802# commands passed to AC_CONFIG_FILES.  Use separate variables
9803# extrasub-{build,host,target} not because there is any reason to split
9804# the substitutions up that way, but only to remain below the limit of
9805# 99 commands in a script, for HP-UX sed.
9806
9807# Do not nest @if/@endif or @unless/@endunless pairs, because
9808# configure will not warn you at all.
9809
9810case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9811  yes:yes:*\ gold\ *:*,c++,*) ;;
9812  yes:yes:*\ gold\ *:*)
9813    as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9814    ;;
9815esac
9816
9817extrasub_build=
9818for module in ${build_configdirs} ; do
9819  if test -z "${no_recursion}" \
9820     && test -f ${build_subdir}/${module}/Makefile; then
9821    echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9822    rm -f ${build_subdir}/${module}/Makefile
9823  fi
9824  extrasub_build="$extrasub_build
9825/^@if build-$module\$/d
9826/^@endif build-$module\$/d
9827/^@unless build-$module\$/,/^@endunless build-$module\$/d
9828/^@if build-$module-$bootstrap_suffix\$/d
9829/^@endif build-$module-$bootstrap_suffix\$/d
9830/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9831done
9832extrasub_host=
9833for module in ${configdirs} ; do
9834  if test -z "${no_recursion}"; then
9835    for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9836      if test -f ${file}; then
9837	echo 1>&2 "*** removing ${file} to force reconfigure"
9838	rm -f ${file}
9839      fi
9840    done
9841  fi
9842  case ${module},${bootstrap_fixincludes} in
9843    fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9844    *) host_bootstrap_suffix=$bootstrap_suffix ;;
9845  esac
9846  extrasub_host="$extrasub_host
9847/^@if $module\$/d
9848/^@endif $module\$/d
9849/^@unless $module\$/,/^@endunless $module\$/d
9850/^@if $module-$host_bootstrap_suffix\$/d
9851/^@endif $module-$host_bootstrap_suffix\$/d
9852/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9853done
9854extrasub_target=
9855for module in ${target_configdirs} ; do
9856  if test -z "${no_recursion}" \
9857     && test -f ${target_subdir}/${module}/Makefile; then
9858    echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9859    rm -f ${target_subdir}/${module}/Makefile
9860  fi
9861
9862  # We only bootstrap target libraries listed in bootstrap_target_libs.
9863  case $bootstrap_target_libs in
9864    *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9865    *) target_bootstrap_suffix=no-bootstrap ;;
9866  esac
9867
9868  extrasub_target="$extrasub_target
9869/^@if target-$module\$/d
9870/^@endif target-$module\$/d
9871/^@unless target-$module\$/,/^@endunless target-$module\$/d
9872/^@if target-$module-$target_bootstrap_suffix\$/d
9873/^@endif target-$module-$target_bootstrap_suffix\$/d
9874/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9875done
9876
9877# Do the final fixup along with target modules.
9878extrasub_target="$extrasub_target
9879/^@if /,/^@endif /d
9880/^@unless /d
9881/^@endunless /d"
9882
9883if test "$enable_pgo_build" != "no"; then
9884  extrasub_build="$extrasub_build
9885/^@if pgo-build\$/d
9886/^@endif pgo-build\$/d"
9887fi
9888
9889# Create the serialization dependencies.  This uses a temporary file.
9890
9891# Check whether --enable-serial-configure was given.
9892if test "${enable_serial_configure+set}" = set; then :
9893  enableval=$enable_serial_configure;
9894fi
9895
9896
9897case ${enable_serial_configure} in
9898  yes)
9899    enable_serial_build_configure=yes
9900    enable_serial_host_configure=yes
9901    enable_serial_target_configure=yes
9902    ;;
9903esac
9904
9905# These force 'configure's to be done one at a time, to avoid problems
9906# with contention over a shared config.cache.
9907rm -f serdep.tmp
9908echo '# serdep.tmp' > serdep.tmp
9909olditem=
9910test "x${enable_serial_build_configure}" = xyes &&
9911for item in ${build_configdirs} ; do
9912  case ${olditem} in
9913    "") ;;
9914    *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9915  esac
9916  olditem=${item}
9917done
9918olditem=
9919test "x${enable_serial_host_configure}" = xyes &&
9920for item in ${configdirs} ; do
9921  case ${olditem} in
9922    "") ;;
9923    *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9924  esac
9925  olditem=${item}
9926done
9927olditem=
9928test "x${enable_serial_target_configure}" = xyes &&
9929for item in ${target_configdirs} ; do
9930  case ${olditem} in
9931    "") ;;
9932    *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9933  esac
9934  olditem=${item}
9935done
9936serialization_dependencies=serdep.tmp
9937
9938
9939# Base args.  Strip norecursion, cache-file, srcdir, host, build,
9940# target, nonopt, and variable assignments.  These are the ones we
9941# might not want to pass down to subconfigures.  The exception being
9942# --cache-file=/dev/null, which is used to turn off the use of cache
9943# files altogether, and which should be passed on to subconfigures.
9944# Also strip program-prefix, program-suffix, and program-transform-name,
9945# so that we can pass down a consistent program-transform-name.
9946baseargs=
9947tbaseargs=
9948keep_next=no
9949skip_next=no
9950eval "set -- $ac_configure_args"
9951for ac_arg
9952do
9953  if test X"$skip_next" = X"yes"; then
9954    skip_next=no
9955    continue
9956  fi
9957  if test X"$keep_next" = X"yes"; then
9958    case $ac_arg in
9959      *\'*)
9960	ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9961    esac
9962    baseargs="$baseargs '$ac_arg'"
9963    tbaseargs="$tbaseargs '$ac_arg'"
9964    keep_next=no
9965    continue
9966  fi
9967
9968  # Handle separated arguments.  Based on the logic generated by
9969  # autoconf 2.59.
9970  case $ac_arg in
9971    *=* | --config-cache | -C | -disable-* | --disable-* \
9972      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9973      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9974      | -with-* | --with-* | -without-* | --without-* | --x)
9975      separate_arg=no
9976      ;;
9977    -*)
9978      separate_arg=yes
9979      ;;
9980    *)
9981      separate_arg=no
9982      ;;
9983  esac
9984
9985  skip_targ=no
9986  case $ac_arg in
9987
9988  --with-* | --without-*)
9989    libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9990
9991    case $libopt in
9992    *[-_]include)
9993      lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9994      ;;
9995    *[-_]lib)
9996      lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9997      ;;
9998    *)
9999      lib=$libopt
10000      ;;
10001    esac
10002
10003
10004    case $lib in
10005    mpc | mpfr | gmp | isl)
10006      # If we're processing --with-$lib, --with-$lib-include or
10007      # --with-$lib-lib, for one of the libs above, and target is
10008      # different from host, don't pass the current argument to any
10009      # target library's configure.
10010      if test x$is_cross_compiler = xyes; then
10011        skip_targ=yes
10012      fi
10013      ;;
10014    esac
10015    ;;
10016  esac
10017
10018  case "$ac_arg" in
10019    --cache-file=/dev/null | \
10020    -cache-file=/dev/null )
10021      # Handled here to avoid the test to skip args below.
10022      baseargs="$baseargs '$ac_arg'"
10023      tbaseargs="$tbaseargs '$ac_arg'"
10024      # Assert: $separate_arg should always be no.
10025      keep_next=$separate_arg
10026      ;;
10027    --no*)
10028      continue
10029      ;;
10030    --c* | \
10031    --sr* | \
10032    --ho* | \
10033    --bu* | \
10034    --t* | \
10035    --program-* | \
10036    -cache_file* | \
10037    -srcdir* | \
10038    -host* | \
10039    -build* | \
10040    -target* | \
10041    -program-prefix* | \
10042    -program-suffix* | \
10043    -program-transform-name* )
10044      skip_next=$separate_arg
10045      continue
10046      ;;
10047    -*)
10048      # An option.  Add it.
10049      case $ac_arg in
10050	*\'*)
10051	  ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10052      esac
10053      baseargs="$baseargs '$ac_arg'"
10054      if test X"$skip_targ" = Xno; then
10055        tbaseargs="$tbaseargs '$ac_arg'"
10056      fi
10057      keep_next=$separate_arg
10058      ;;
10059    *)
10060      # Either a variable assignment, or a nonopt (triplet).  Don't
10061      # pass it down; let the Makefile handle this.
10062      continue
10063      ;;
10064  esac
10065done
10066# Remove the initial space we just introduced and, as these will be
10067# expanded by make, quote '$'.
10068baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10069
10070# Add in --program-transform-name, after --program-prefix and
10071# --program-suffix have been applied to it.  Autoconf has already
10072# doubled dollar signs and backslashes in program_transform_name; we want
10073# the backslashes un-doubled, and then the entire thing wrapped in single
10074# quotes, because this will be expanded first by make and then by the shell.
10075# Also, because we want to override the logic in subdir configure scripts to
10076# choose program_transform_name, replace any s,x,x, with s,y,y,.
10077sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10078${program_transform_name}
10079EOF_SED
10080gcc_transform_name=`cat conftestsed.out`
10081rm -f conftestsed.out
10082baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10083tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10084if test "$silent" = yes; then
10085  baseargs="$baseargs --silent"
10086  tbaseargs="$tbaseargs --silent"
10087fi
10088baseargs="$baseargs --disable-option-checking"
10089tbaseargs="$tbaseargs --disable-option-checking"
10090
10091# Record and document user additions to sub configure arguments.
10092
10093
10094
10095
10096# For the build-side libraries, we just need to pretend we're native,
10097# and not use the same cache file.  Multilibs are neither needed nor
10098# desired.  We can't even use the same cache file for all build-side
10099# libraries, as they're compiled differently; some with C, some with
10100# C++ or with different feature-enabling options.
10101build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10102
10103# For host modules, accept cache file option, or specification as blank.
10104case "${cache_file}" in
10105"") # empty
10106  cache_file_option="" ;;
10107/* | [A-Za-z]:[\\/]* ) # absolute path
10108  cache_file_option="--cache-file=${cache_file}" ;;
10109*) # relative path
10110  cache_file_option="--cache-file=../${cache_file}" ;;
10111esac
10112
10113# Host dirs don't like to share a cache file either, horribly enough.
10114# This seems to be due to autoconf 2.5x stupidity.
10115host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10116
10117target_configargs="$target_configargs ${tbaseargs}"
10118
10119# Passing a --with-cross-host argument lets the target libraries know
10120# whether they are being built with a cross-compiler or being built
10121# native.  However, it would be better to use other mechanisms to make the
10122# sorts of decisions they want to make on this basis.  Please consider
10123# this option to be deprecated.  FIXME.
10124if test x${is_cross_compiler} = xyes ; then
10125  target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10126fi
10127
10128# Special user-friendly check for native x86_64-linux build, if
10129# multilib is not explicitly enabled.
10130case "$target:$have_compiler:$host:$target:$enable_multilib" in
10131  x86_64-*linux*:yes:$build:$build:)
10132    # Make sure we have a development environment that handles 32-bit
10133    dev64=no
10134    echo "int main () { return 0; }" > conftest.c
10135    ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10136    if test $? = 0 ; then
10137      if test -s conftest || test -s conftest.exe ; then
10138	dev64=yes
10139      fi
10140    fi
10141    rm -f conftest*
10142    if test x${dev64} != xyes ; then
10143      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
10144    fi
10145    ;;
10146esac
10147
10148# Default to --enable-multilib.
10149if test x${enable_multilib} = x ; then
10150  target_configargs="--enable-multilib ${target_configargs}"
10151fi
10152
10153# Pass --with-newlib if appropriate.  Note that target_configdirs has
10154# changed from the earlier setting of with_newlib.
10155if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10156  target_configargs="--with-newlib ${target_configargs}"
10157fi
10158
10159# Different target subdirs use different values of certain variables
10160# (notably CXX).  Worse, multilibs use *lots* of different values.
10161# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10162# it doesn't automatically accept command-line overrides of them.
10163# This means it's not safe for target subdirs to share a cache file,
10164# which is disgusting, but there you have it.  Hopefully this can be
10165# fixed in future.  It's still worthwhile to use a cache file for each
10166# directory.  I think.
10167
10168# Pass the appropriate --build, --host, --target and --cache-file arguments.
10169# We need to pass --target, as newer autoconf's requires consistency
10170# for target_alias and gcc doesn't manage it consistently.
10171target_configargs="--cache-file=./config.cache ${target_configargs}"
10172
10173FLAGS_FOR_TARGET=
10174case " $target_configdirs " in
10175 *" newlib "*)
10176  case " $target_configargs " in
10177  *" --with-newlib "*)
10178   case "$target" in
10179    *-cygwin*)
10180      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10181      ;;
10182   esac
10183
10184   # If we're not building GCC, don't discard standard headers.
10185   if test -d ${srcdir}/gcc; then
10186     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10187
10188     if test "${build}" != "${host}"; then
10189       # On Canadian crosses, CC_FOR_TARGET will have already been set
10190       # by `configure', so we won't have an opportunity to add -Bgcc/
10191       # to it.  This is right: we don't want to search that directory
10192       # for binaries, but we want the header files in there, so add
10193       # them explicitly.
10194       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10195
10196       # Someone might think of using the pre-installed headers on
10197       # Canadian crosses, in case the installed compiler is not fully
10198       # compatible with the compiler being built.  In this case, it
10199       # would be better to flag an error than risking having
10200       # incompatible object files being constructed.  We can't
10201       # guarantee that an error will be flagged, but let's hope the
10202       # compiler will do it, when presented with incompatible header
10203       # files.
10204     fi
10205   fi
10206
10207   case "${target}-${is_cross_compiler}" in
10208   i[3456789]86-*-linux*-no)
10209      # Here host == target, so we don't need to build gcc,
10210      # so we don't want to discard standard headers.
10211      FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10212      ;;
10213   *)
10214      # If we're building newlib, use its generic headers last, but search
10215      # for any libc-related directories first (so make it the last -B
10216      # switch).
10217      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10218
10219      # If we're building libgloss, find the startup file, simulator library
10220      # and linker script.
10221      case " $target_configdirs " in
10222	*" libgloss "*)
10223	# Look for startup file, simulator library and maybe linker script.
10224	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10225	# Look for libnosys.a in case the target needs it.
10226	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10227	# Most targets have the linker script in the source directory.
10228	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10229	;;
10230      esac
10231      ;;
10232   esac
10233   ;;
10234  esac
10235  ;;
10236esac
10237
10238case "$target" in
10239  x86_64-*mingw* | *-w64-mingw*)
10240  # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10241  # however, use a symlink named 'mingw' in ${prefix} .
10242    FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10243    ;;
10244  *-mingw*)
10245  # MinGW can't be handled as Cygwin above since it does not use newlib.
10246    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'
10247    ;;
10248esac
10249
10250# Allow the user to override the flags for
10251# our build compiler if desired.
10252if test x"${build}" = x"${host}" ; then
10253  CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10254  CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10255  CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10256  LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10257fi
10258
10259# On Canadian crosses, we'll be searching the right directories for
10260# the previously-installed cross compiler, so don't bother to add
10261# flags for directories within the install tree of the compiler
10262# being built; programs in there won't even run.
10263if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10264  # Search for pre-installed headers if nothing else fits.
10265  FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10266fi
10267
10268if test "x${use_gnu_ld}" = x &&
10269   echo " ${configdirs} " | grep " ld " > /dev/null ; then
10270  # Arrange for us to find uninstalled linker scripts.
10271  FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10272fi
10273
10274# Search for other target-specific linker scripts and such.
10275case "${target}" in
10276  mep*)
10277    FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10278    ;;
10279esac
10280
10281# Makefile fragments.
10282for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10283do
10284  eval fragval=\$$frag
10285  if test $fragval != /dev/null; then
10286    eval $frag=${srcdir}/$fragval
10287  fi
10288done
10289
10290
10291
10292
10293
10294# Miscellanea: directories, flags, etc.
10295
10296
10297
10298
10299
10300
10301
10302
10303# Build module lists & subconfigure args.
10304
10305
10306
10307# Host module lists & subconfigure args.
10308
10309
10310
10311
10312# Target module lists & subconfigure args.
10313
10314
10315
10316# Build tools.
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337# Generate default definitions for YACC, M4, LEX and other programs that run
10338# on the build machine.  These are used if the Makefile can't locate these
10339# programs in objdir.
10340MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10341
10342for ac_prog in 'bison -y' byacc yacc
10343do
10344  # Extract the first word of "$ac_prog", so it can be a program name with args.
10345set dummy $ac_prog; ac_word=$2
10346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10347$as_echo_n "checking for $ac_word... " >&6; }
10348if ${ac_cv_prog_YACC+:} false; then :
10349  $as_echo_n "(cached) " >&6
10350else
10351  if test -n "$YACC"; then
10352  ac_cv_prog_YACC="$YACC" # Let the user override the test.
10353else
10354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355for as_dir in $PATH
10356do
10357  IFS=$as_save_IFS
10358  test -z "$as_dir" && as_dir=.
10359    for ac_exec_ext in '' $ac_executable_extensions; do
10360  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10361    ac_cv_prog_YACC="$ac_prog"
10362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10363    break 2
10364  fi
10365done
10366  done
10367IFS=$as_save_IFS
10368
10369fi
10370fi
10371YACC=$ac_cv_prog_YACC
10372if test -n "$YACC"; then
10373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10374$as_echo "$YACC" >&6; }
10375else
10376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10377$as_echo "no" >&6; }
10378fi
10379
10380
10381  test -n "$YACC" && break
10382done
10383test -n "$YACC" || YACC="$MISSING bison -y"
10384
10385case " $build_configdirs " in
10386  *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10387esac
10388
10389for ac_prog in bison
10390do
10391  # Extract the first word of "$ac_prog", so it can be a program name with args.
10392set dummy $ac_prog; ac_word=$2
10393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394$as_echo_n "checking for $ac_word... " >&6; }
10395if ${ac_cv_prog_BISON+:} false; then :
10396  $as_echo_n "(cached) " >&6
10397else
10398  if test -n "$BISON"; then
10399  ac_cv_prog_BISON="$BISON" # Let the user override the test.
10400else
10401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402for as_dir in $PATH
10403do
10404  IFS=$as_save_IFS
10405  test -z "$as_dir" && as_dir=.
10406    for ac_exec_ext in '' $ac_executable_extensions; do
10407  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10408    ac_cv_prog_BISON="$ac_prog"
10409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10410    break 2
10411  fi
10412done
10413  done
10414IFS=$as_save_IFS
10415
10416fi
10417fi
10418BISON=$ac_cv_prog_BISON
10419if test -n "$BISON"; then
10420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10421$as_echo "$BISON" >&6; }
10422else
10423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424$as_echo "no" >&6; }
10425fi
10426
10427
10428  test -n "$BISON" && break
10429done
10430test -n "$BISON" || BISON="$MISSING bison"
10431
10432case " $build_configdirs " in
10433  *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10434esac
10435
10436for ac_prog in gm4 gnum4 m4
10437do
10438  # Extract the first word of "$ac_prog", so it can be a program name with args.
10439set dummy $ac_prog; ac_word=$2
10440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441$as_echo_n "checking for $ac_word... " >&6; }
10442if ${ac_cv_prog_M4+:} false; then :
10443  $as_echo_n "(cached) " >&6
10444else
10445  if test -n "$M4"; then
10446  ac_cv_prog_M4="$M4" # Let the user override the test.
10447else
10448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449for as_dir in $PATH
10450do
10451  IFS=$as_save_IFS
10452  test -z "$as_dir" && as_dir=.
10453    for ac_exec_ext in '' $ac_executable_extensions; do
10454  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10455    ac_cv_prog_M4="$ac_prog"
10456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10457    break 2
10458  fi
10459done
10460  done
10461IFS=$as_save_IFS
10462
10463fi
10464fi
10465M4=$ac_cv_prog_M4
10466if test -n "$M4"; then
10467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10468$as_echo "$M4" >&6; }
10469else
10470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471$as_echo "no" >&6; }
10472fi
10473
10474
10475  test -n "$M4" && break
10476done
10477test -n "$M4" || M4="$MISSING m4"
10478
10479case " $build_configdirs " in
10480  *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10481esac
10482
10483for ac_prog in flex lex
10484do
10485  # Extract the first word of "$ac_prog", so it can be a program name with args.
10486set dummy $ac_prog; ac_word=$2
10487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488$as_echo_n "checking for $ac_word... " >&6; }
10489if ${ac_cv_prog_LEX+:} false; then :
10490  $as_echo_n "(cached) " >&6
10491else
10492  if test -n "$LEX"; then
10493  ac_cv_prog_LEX="$LEX" # Let the user override the test.
10494else
10495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496for as_dir in $PATH
10497do
10498  IFS=$as_save_IFS
10499  test -z "$as_dir" && as_dir=.
10500    for ac_exec_ext in '' $ac_executable_extensions; do
10501  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10502    ac_cv_prog_LEX="$ac_prog"
10503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10504    break 2
10505  fi
10506done
10507  done
10508IFS=$as_save_IFS
10509
10510fi
10511fi
10512LEX=$ac_cv_prog_LEX
10513if test -n "$LEX"; then
10514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10515$as_echo "$LEX" >&6; }
10516else
10517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518$as_echo "no" >&6; }
10519fi
10520
10521
10522  test -n "$LEX" && break
10523done
10524test -n "$LEX" || LEX="$MISSING flex"
10525
10526case " $build_configdirs " in
10527  *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10528  *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10529esac
10530
10531for ac_prog in flex
10532do
10533  # Extract the first word of "$ac_prog", so it can be a program name with args.
10534set dummy $ac_prog; ac_word=$2
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536$as_echo_n "checking for $ac_word... " >&6; }
10537if ${ac_cv_prog_FLEX+:} false; then :
10538  $as_echo_n "(cached) " >&6
10539else
10540  if test -n "$FLEX"; then
10541  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10542else
10543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544for as_dir in $PATH
10545do
10546  IFS=$as_save_IFS
10547  test -z "$as_dir" && as_dir=.
10548    for ac_exec_ext in '' $ac_executable_extensions; do
10549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10550    ac_cv_prog_FLEX="$ac_prog"
10551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10552    break 2
10553  fi
10554done
10555  done
10556IFS=$as_save_IFS
10557
10558fi
10559fi
10560FLEX=$ac_cv_prog_FLEX
10561if test -n "$FLEX"; then
10562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10563$as_echo "$FLEX" >&6; }
10564else
10565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566$as_echo "no" >&6; }
10567fi
10568
10569
10570  test -n "$FLEX" && break
10571done
10572test -n "$FLEX" || FLEX="$MISSING flex"
10573
10574case " $build_configdirs " in
10575  *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10576esac
10577
10578for ac_prog in makeinfo
10579do
10580  # Extract the first word of "$ac_prog", so it can be a program name with args.
10581set dummy $ac_prog; ac_word=$2
10582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583$as_echo_n "checking for $ac_word... " >&6; }
10584if ${ac_cv_prog_MAKEINFO+:} false; then :
10585  $as_echo_n "(cached) " >&6
10586else
10587  if test -n "$MAKEINFO"; then
10588  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10589else
10590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591for as_dir in $PATH
10592do
10593  IFS=$as_save_IFS
10594  test -z "$as_dir" && as_dir=.
10595    for ac_exec_ext in '' $ac_executable_extensions; do
10596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10597    ac_cv_prog_MAKEINFO="$ac_prog"
10598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10599    break 2
10600  fi
10601done
10602  done
10603IFS=$as_save_IFS
10604
10605fi
10606fi
10607MAKEINFO=$ac_cv_prog_MAKEINFO
10608if test -n "$MAKEINFO"; then
10609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10610$as_echo "$MAKEINFO" >&6; }
10611else
10612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613$as_echo "no" >&6; }
10614fi
10615
10616
10617  test -n "$MAKEINFO" && break
10618done
10619test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10620
10621case " $build_configdirs " in
10622  *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10623  *)
10624
10625    # For an installed makeinfo, we require it to be from texinfo 4.7 or
10626    # higher, else we use the "missing" dummy.
10627    if ${MAKEINFO} --version \
10628       | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10629      :
10630    else
10631      MAKEINFO="$MISSING makeinfo"
10632    fi
10633    ;;
10634
10635esac
10636
10637# FIXME: expect and dejagnu may become build tools?
10638
10639for ac_prog in expect
10640do
10641  # Extract the first word of "$ac_prog", so it can be a program name with args.
10642set dummy $ac_prog; ac_word=$2
10643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10644$as_echo_n "checking for $ac_word... " >&6; }
10645if ${ac_cv_prog_EXPECT+:} false; then :
10646  $as_echo_n "(cached) " >&6
10647else
10648  if test -n "$EXPECT"; then
10649  ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10650else
10651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10652for as_dir in $PATH
10653do
10654  IFS=$as_save_IFS
10655  test -z "$as_dir" && as_dir=.
10656    for ac_exec_ext in '' $ac_executable_extensions; do
10657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10658    ac_cv_prog_EXPECT="$ac_prog"
10659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10660    break 2
10661  fi
10662done
10663  done
10664IFS=$as_save_IFS
10665
10666fi
10667fi
10668EXPECT=$ac_cv_prog_EXPECT
10669if test -n "$EXPECT"; then
10670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10671$as_echo "$EXPECT" >&6; }
10672else
10673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674$as_echo "no" >&6; }
10675fi
10676
10677
10678  test -n "$EXPECT" && break
10679done
10680test -n "$EXPECT" || EXPECT="expect"
10681
10682case " $configdirs " in
10683  *" expect "*)
10684    test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10685    ;;
10686esac
10687
10688for ac_prog in runtest
10689do
10690  # Extract the first word of "$ac_prog", so it can be a program name with args.
10691set dummy $ac_prog; ac_word=$2
10692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10693$as_echo_n "checking for $ac_word... " >&6; }
10694if ${ac_cv_prog_RUNTEST+:} false; then :
10695  $as_echo_n "(cached) " >&6
10696else
10697  if test -n "$RUNTEST"; then
10698  ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10699else
10700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701for as_dir in $PATH
10702do
10703  IFS=$as_save_IFS
10704  test -z "$as_dir" && as_dir=.
10705    for ac_exec_ext in '' $ac_executable_extensions; do
10706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10707    ac_cv_prog_RUNTEST="$ac_prog"
10708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10709    break 2
10710  fi
10711done
10712  done
10713IFS=$as_save_IFS
10714
10715fi
10716fi
10717RUNTEST=$ac_cv_prog_RUNTEST
10718if test -n "$RUNTEST"; then
10719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10720$as_echo "$RUNTEST" >&6; }
10721else
10722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723$as_echo "no" >&6; }
10724fi
10725
10726
10727  test -n "$RUNTEST" && break
10728done
10729test -n "$RUNTEST" || RUNTEST="runtest"
10730
10731case " $configdirs " in
10732  *" dejagnu "*)
10733    test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10734    ;;
10735esac
10736
10737
10738# Host tools.
10739ncn_tool_prefix=
10740test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10741ncn_target_tool_prefix=
10742test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10743
10744
10745
10746if test -n "$AR"; then
10747  ac_cv_prog_AR=$AR
10748elif test -n "$ac_cv_prog_AR"; then
10749  AR=$ac_cv_prog_AR
10750fi
10751
10752if test -n "$ac_cv_prog_AR"; then
10753  for ncn_progname in ar; do
10754    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10755set dummy ${ncn_progname}; ac_word=$2
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10757$as_echo_n "checking for $ac_word... " >&6; }
10758if ${ac_cv_prog_AR+:} false; then :
10759  $as_echo_n "(cached) " >&6
10760else
10761  if test -n "$AR"; then
10762  ac_cv_prog_AR="$AR" # Let the user override the test.
10763else
10764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10765for as_dir in $PATH
10766do
10767  IFS=$as_save_IFS
10768  test -z "$as_dir" && as_dir=.
10769    for ac_exec_ext in '' $ac_executable_extensions; do
10770  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10771    ac_cv_prog_AR="${ncn_progname}"
10772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10773    break 2
10774  fi
10775done
10776  done
10777IFS=$as_save_IFS
10778
10779fi
10780fi
10781AR=$ac_cv_prog_AR
10782if test -n "$AR"; then
10783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10784$as_echo "$AR" >&6; }
10785else
10786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787$as_echo "no" >&6; }
10788fi
10789
10790
10791  done
10792fi
10793
10794for ncn_progname in ar; do
10795  if test -n "$ncn_tool_prefix"; then
10796    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10797set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10799$as_echo_n "checking for $ac_word... " >&6; }
10800if ${ac_cv_prog_AR+:} false; then :
10801  $as_echo_n "(cached) " >&6
10802else
10803  if test -n "$AR"; then
10804  ac_cv_prog_AR="$AR" # Let the user override the test.
10805else
10806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10807for as_dir in $PATH
10808do
10809  IFS=$as_save_IFS
10810  test -z "$as_dir" && as_dir=.
10811    for ac_exec_ext in '' $ac_executable_extensions; do
10812  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10813    ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10815    break 2
10816  fi
10817done
10818  done
10819IFS=$as_save_IFS
10820
10821fi
10822fi
10823AR=$ac_cv_prog_AR
10824if test -n "$AR"; then
10825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10826$as_echo "$AR" >&6; }
10827else
10828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829$as_echo "no" >&6; }
10830fi
10831
10832
10833  fi
10834  if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10835    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10836set dummy ${ncn_progname}; ac_word=$2
10837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10838$as_echo_n "checking for $ac_word... " >&6; }
10839if ${ac_cv_prog_AR+:} false; then :
10840  $as_echo_n "(cached) " >&6
10841else
10842  if test -n "$AR"; then
10843  ac_cv_prog_AR="$AR" # Let the user override the test.
10844else
10845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10846for as_dir in $PATH
10847do
10848  IFS=$as_save_IFS
10849  test -z "$as_dir" && as_dir=.
10850    for ac_exec_ext in '' $ac_executable_extensions; do
10851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10852    ac_cv_prog_AR="${ncn_progname}"
10853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10854    break 2
10855  fi
10856done
10857  done
10858IFS=$as_save_IFS
10859
10860fi
10861fi
10862AR=$ac_cv_prog_AR
10863if test -n "$AR"; then
10864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10865$as_echo "$AR" >&6; }
10866else
10867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10868$as_echo "no" >&6; }
10869fi
10870
10871
10872  fi
10873  test -n "$ac_cv_prog_AR" && break
10874done
10875
10876if test -z "$ac_cv_prog_AR" ; then
10877  set dummy ar
10878  if test $build = $host ; then
10879    AR="$2"
10880  else
10881    AR="${ncn_tool_prefix}$2"
10882  fi
10883fi
10884
10885
10886
10887if test -n "$AS"; then
10888  ac_cv_prog_AS=$AS
10889elif test -n "$ac_cv_prog_AS"; then
10890  AS=$ac_cv_prog_AS
10891fi
10892
10893if test -n "$ac_cv_prog_AS"; then
10894  for ncn_progname in as; do
10895    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10896set dummy ${ncn_progname}; ac_word=$2
10897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10898$as_echo_n "checking for $ac_word... " >&6; }
10899if ${ac_cv_prog_AS+:} false; then :
10900  $as_echo_n "(cached) " >&6
10901else
10902  if test -n "$AS"; then
10903  ac_cv_prog_AS="$AS" # Let the user override the test.
10904else
10905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906for as_dir in $PATH
10907do
10908  IFS=$as_save_IFS
10909  test -z "$as_dir" && as_dir=.
10910    for ac_exec_ext in '' $ac_executable_extensions; do
10911  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10912    ac_cv_prog_AS="${ncn_progname}"
10913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10914    break 2
10915  fi
10916done
10917  done
10918IFS=$as_save_IFS
10919
10920fi
10921fi
10922AS=$ac_cv_prog_AS
10923if test -n "$AS"; then
10924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10925$as_echo "$AS" >&6; }
10926else
10927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928$as_echo "no" >&6; }
10929fi
10930
10931
10932  done
10933fi
10934
10935for ncn_progname in as; do
10936  if test -n "$ncn_tool_prefix"; then
10937    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10938set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10940$as_echo_n "checking for $ac_word... " >&6; }
10941if ${ac_cv_prog_AS+:} false; then :
10942  $as_echo_n "(cached) " >&6
10943else
10944  if test -n "$AS"; then
10945  ac_cv_prog_AS="$AS" # Let the user override the test.
10946else
10947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948for as_dir in $PATH
10949do
10950  IFS=$as_save_IFS
10951  test -z "$as_dir" && as_dir=.
10952    for ac_exec_ext in '' $ac_executable_extensions; do
10953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10954    ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10956    break 2
10957  fi
10958done
10959  done
10960IFS=$as_save_IFS
10961
10962fi
10963fi
10964AS=$ac_cv_prog_AS
10965if test -n "$AS"; then
10966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10967$as_echo "$AS" >&6; }
10968else
10969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970$as_echo "no" >&6; }
10971fi
10972
10973
10974  fi
10975  if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10976    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10977set dummy ${ncn_progname}; ac_word=$2
10978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10979$as_echo_n "checking for $ac_word... " >&6; }
10980if ${ac_cv_prog_AS+:} false; then :
10981  $as_echo_n "(cached) " >&6
10982else
10983  if test -n "$AS"; then
10984  ac_cv_prog_AS="$AS" # Let the user override the test.
10985else
10986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987for as_dir in $PATH
10988do
10989  IFS=$as_save_IFS
10990  test -z "$as_dir" && as_dir=.
10991    for ac_exec_ext in '' $ac_executable_extensions; do
10992  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10993    ac_cv_prog_AS="${ncn_progname}"
10994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10995    break 2
10996  fi
10997done
10998  done
10999IFS=$as_save_IFS
11000
11001fi
11002fi
11003AS=$ac_cv_prog_AS
11004if test -n "$AS"; then
11005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11006$as_echo "$AS" >&6; }
11007else
11008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009$as_echo "no" >&6; }
11010fi
11011
11012
11013  fi
11014  test -n "$ac_cv_prog_AS" && break
11015done
11016
11017if test -z "$ac_cv_prog_AS" ; then
11018  set dummy as
11019  if test $build = $host ; then
11020    AS="$2"
11021  else
11022    AS="${ncn_tool_prefix}$2"
11023  fi
11024fi
11025
11026
11027
11028if test -n "$DLLTOOL"; then
11029  ac_cv_prog_DLLTOOL=$DLLTOOL
11030elif test -n "$ac_cv_prog_DLLTOOL"; then
11031  DLLTOOL=$ac_cv_prog_DLLTOOL
11032fi
11033
11034if test -n "$ac_cv_prog_DLLTOOL"; then
11035  for ncn_progname in dlltool; do
11036    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11037set dummy ${ncn_progname}; ac_word=$2
11038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11039$as_echo_n "checking for $ac_word... " >&6; }
11040if ${ac_cv_prog_DLLTOOL+:} false; then :
11041  $as_echo_n "(cached) " >&6
11042else
11043  if test -n "$DLLTOOL"; then
11044  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11045else
11046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047for as_dir in $PATH
11048do
11049  IFS=$as_save_IFS
11050  test -z "$as_dir" && as_dir=.
11051    for ac_exec_ext in '' $ac_executable_extensions; do
11052  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11053    ac_cv_prog_DLLTOOL="${ncn_progname}"
11054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11055    break 2
11056  fi
11057done
11058  done
11059IFS=$as_save_IFS
11060
11061fi
11062fi
11063DLLTOOL=$ac_cv_prog_DLLTOOL
11064if test -n "$DLLTOOL"; then
11065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11066$as_echo "$DLLTOOL" >&6; }
11067else
11068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11069$as_echo "no" >&6; }
11070fi
11071
11072
11073  done
11074fi
11075
11076for ncn_progname in dlltool; do
11077  if test -n "$ncn_tool_prefix"; then
11078    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11079set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11081$as_echo_n "checking for $ac_word... " >&6; }
11082if ${ac_cv_prog_DLLTOOL+:} false; then :
11083  $as_echo_n "(cached) " >&6
11084else
11085  if test -n "$DLLTOOL"; then
11086  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11087else
11088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089for as_dir in $PATH
11090do
11091  IFS=$as_save_IFS
11092  test -z "$as_dir" && as_dir=.
11093    for ac_exec_ext in '' $ac_executable_extensions; do
11094  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11095    ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11097    break 2
11098  fi
11099done
11100  done
11101IFS=$as_save_IFS
11102
11103fi
11104fi
11105DLLTOOL=$ac_cv_prog_DLLTOOL
11106if test -n "$DLLTOOL"; then
11107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11108$as_echo "$DLLTOOL" >&6; }
11109else
11110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111$as_echo "no" >&6; }
11112fi
11113
11114
11115  fi
11116  if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11117    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11118set dummy ${ncn_progname}; ac_word=$2
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11120$as_echo_n "checking for $ac_word... " >&6; }
11121if ${ac_cv_prog_DLLTOOL+:} false; then :
11122  $as_echo_n "(cached) " >&6
11123else
11124  if test -n "$DLLTOOL"; then
11125  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11126else
11127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128for as_dir in $PATH
11129do
11130  IFS=$as_save_IFS
11131  test -z "$as_dir" && as_dir=.
11132    for ac_exec_ext in '' $ac_executable_extensions; do
11133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11134    ac_cv_prog_DLLTOOL="${ncn_progname}"
11135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11136    break 2
11137  fi
11138done
11139  done
11140IFS=$as_save_IFS
11141
11142fi
11143fi
11144DLLTOOL=$ac_cv_prog_DLLTOOL
11145if test -n "$DLLTOOL"; then
11146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11147$as_echo "$DLLTOOL" >&6; }
11148else
11149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150$as_echo "no" >&6; }
11151fi
11152
11153
11154  fi
11155  test -n "$ac_cv_prog_DLLTOOL" && break
11156done
11157
11158if test -z "$ac_cv_prog_DLLTOOL" ; then
11159  set dummy dlltool
11160  if test $build = $host ; then
11161    DLLTOOL="$2"
11162  else
11163    DLLTOOL="${ncn_tool_prefix}$2"
11164  fi
11165fi
11166
11167
11168
11169if test -n "$DSYMUTIL"; then
11170  ac_cv_prog_DSYMUTIL=$DSYMUTIL
11171elif test -n "$ac_cv_prog_DSYMUTIL"; then
11172  DSYMUTIL=$ac_cv_prog_DSYMUTIL
11173fi
11174
11175if test -n "$ac_cv_prog_DSYMUTIL"; then
11176  for ncn_progname in dsymutil; do
11177    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11178set dummy ${ncn_progname}; ac_word=$2
11179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11180$as_echo_n "checking for $ac_word... " >&6; }
11181if ${ac_cv_prog_DSYMUTIL+:} false; then :
11182  $as_echo_n "(cached) " >&6
11183else
11184  if test -n "$DSYMUTIL"; then
11185  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11186else
11187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188for as_dir in $PATH
11189do
11190  IFS=$as_save_IFS
11191  test -z "$as_dir" && as_dir=.
11192    for ac_exec_ext in '' $ac_executable_extensions; do
11193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11194    ac_cv_prog_DSYMUTIL="${ncn_progname}"
11195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11196    break 2
11197  fi
11198done
11199  done
11200IFS=$as_save_IFS
11201
11202fi
11203fi
11204DSYMUTIL=$ac_cv_prog_DSYMUTIL
11205if test -n "$DSYMUTIL"; then
11206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11207$as_echo "$DSYMUTIL" >&6; }
11208else
11209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210$as_echo "no" >&6; }
11211fi
11212
11213
11214  done
11215fi
11216
11217for ncn_progname in dsymutil; do
11218  if test -n "$ncn_tool_prefix"; then
11219    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11220set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11222$as_echo_n "checking for $ac_word... " >&6; }
11223if ${ac_cv_prog_DSYMUTIL+:} false; then :
11224  $as_echo_n "(cached) " >&6
11225else
11226  if test -n "$DSYMUTIL"; then
11227  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11228else
11229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230for as_dir in $PATH
11231do
11232  IFS=$as_save_IFS
11233  test -z "$as_dir" && as_dir=.
11234    for ac_exec_ext in '' $ac_executable_extensions; do
11235  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11236    ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11238    break 2
11239  fi
11240done
11241  done
11242IFS=$as_save_IFS
11243
11244fi
11245fi
11246DSYMUTIL=$ac_cv_prog_DSYMUTIL
11247if test -n "$DSYMUTIL"; then
11248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11249$as_echo "$DSYMUTIL" >&6; }
11250else
11251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252$as_echo "no" >&6; }
11253fi
11254
11255
11256  fi
11257  if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11258    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11259set dummy ${ncn_progname}; ac_word=$2
11260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11261$as_echo_n "checking for $ac_word... " >&6; }
11262if ${ac_cv_prog_DSYMUTIL+:} false; then :
11263  $as_echo_n "(cached) " >&6
11264else
11265  if test -n "$DSYMUTIL"; then
11266  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11267else
11268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11269for as_dir in $PATH
11270do
11271  IFS=$as_save_IFS
11272  test -z "$as_dir" && as_dir=.
11273    for ac_exec_ext in '' $ac_executable_extensions; do
11274  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11275    ac_cv_prog_DSYMUTIL="${ncn_progname}"
11276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11277    break 2
11278  fi
11279done
11280  done
11281IFS=$as_save_IFS
11282
11283fi
11284fi
11285DSYMUTIL=$ac_cv_prog_DSYMUTIL
11286if test -n "$DSYMUTIL"; then
11287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11288$as_echo "$DSYMUTIL" >&6; }
11289else
11290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291$as_echo "no" >&6; }
11292fi
11293
11294
11295  fi
11296  test -n "$ac_cv_prog_DSYMUTIL" && break
11297done
11298
11299if test -z "$ac_cv_prog_DSYMUTIL" ; then
11300  set dummy dsymutil
11301  if test $build = $host ; then
11302    DSYMUTIL="$2"
11303  else
11304    DSYMUTIL="${ncn_tool_prefix}$2"
11305  fi
11306fi
11307
11308
11309
11310if test -n "$LD"; then
11311  ac_cv_prog_LD=$LD
11312elif test -n "$ac_cv_prog_LD"; then
11313  LD=$ac_cv_prog_LD
11314fi
11315
11316if test -n "$ac_cv_prog_LD"; then
11317  for ncn_progname in ld; do
11318    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11319set dummy ${ncn_progname}; ac_word=$2
11320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321$as_echo_n "checking for $ac_word... " >&6; }
11322if ${ac_cv_prog_LD+:} false; then :
11323  $as_echo_n "(cached) " >&6
11324else
11325  if test -n "$LD"; then
11326  ac_cv_prog_LD="$LD" # Let the user override the test.
11327else
11328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329for as_dir in $PATH
11330do
11331  IFS=$as_save_IFS
11332  test -z "$as_dir" && as_dir=.
11333    for ac_exec_ext in '' $ac_executable_extensions; do
11334  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11335    ac_cv_prog_LD="${ncn_progname}"
11336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11337    break 2
11338  fi
11339done
11340  done
11341IFS=$as_save_IFS
11342
11343fi
11344fi
11345LD=$ac_cv_prog_LD
11346if test -n "$LD"; then
11347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11348$as_echo "$LD" >&6; }
11349else
11350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351$as_echo "no" >&6; }
11352fi
11353
11354
11355  done
11356fi
11357
11358for ncn_progname in ld; do
11359  if test -n "$ncn_tool_prefix"; then
11360    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11361set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11363$as_echo_n "checking for $ac_word... " >&6; }
11364if ${ac_cv_prog_LD+:} false; then :
11365  $as_echo_n "(cached) " >&6
11366else
11367  if test -n "$LD"; then
11368  ac_cv_prog_LD="$LD" # Let the user override the test.
11369else
11370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371for as_dir in $PATH
11372do
11373  IFS=$as_save_IFS
11374  test -z "$as_dir" && as_dir=.
11375    for ac_exec_ext in '' $ac_executable_extensions; do
11376  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11377    ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11379    break 2
11380  fi
11381done
11382  done
11383IFS=$as_save_IFS
11384
11385fi
11386fi
11387LD=$ac_cv_prog_LD
11388if test -n "$LD"; then
11389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11390$as_echo "$LD" >&6; }
11391else
11392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393$as_echo "no" >&6; }
11394fi
11395
11396
11397  fi
11398  if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11399    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11400set dummy ${ncn_progname}; ac_word=$2
11401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11402$as_echo_n "checking for $ac_word... " >&6; }
11403if ${ac_cv_prog_LD+:} false; then :
11404  $as_echo_n "(cached) " >&6
11405else
11406  if test -n "$LD"; then
11407  ac_cv_prog_LD="$LD" # Let the user override the test.
11408else
11409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410for as_dir in $PATH
11411do
11412  IFS=$as_save_IFS
11413  test -z "$as_dir" && as_dir=.
11414    for ac_exec_ext in '' $ac_executable_extensions; do
11415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11416    ac_cv_prog_LD="${ncn_progname}"
11417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11418    break 2
11419  fi
11420done
11421  done
11422IFS=$as_save_IFS
11423
11424fi
11425fi
11426LD=$ac_cv_prog_LD
11427if test -n "$LD"; then
11428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11429$as_echo "$LD" >&6; }
11430else
11431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432$as_echo "no" >&6; }
11433fi
11434
11435
11436  fi
11437  test -n "$ac_cv_prog_LD" && break
11438done
11439
11440if test -z "$ac_cv_prog_LD" ; then
11441  set dummy ld
11442  if test $build = $host ; then
11443    LD="$2"
11444  else
11445    LD="${ncn_tool_prefix}$2"
11446  fi
11447fi
11448
11449
11450
11451if test -n "$LIPO"; then
11452  ac_cv_prog_LIPO=$LIPO
11453elif test -n "$ac_cv_prog_LIPO"; then
11454  LIPO=$ac_cv_prog_LIPO
11455fi
11456
11457if test -n "$ac_cv_prog_LIPO"; then
11458  for ncn_progname in lipo; do
11459    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11460set dummy ${ncn_progname}; ac_word=$2
11461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11462$as_echo_n "checking for $ac_word... " >&6; }
11463if ${ac_cv_prog_LIPO+:} false; then :
11464  $as_echo_n "(cached) " >&6
11465else
11466  if test -n "$LIPO"; then
11467  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11468else
11469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11470for as_dir in $PATH
11471do
11472  IFS=$as_save_IFS
11473  test -z "$as_dir" && as_dir=.
11474    for ac_exec_ext in '' $ac_executable_extensions; do
11475  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11476    ac_cv_prog_LIPO="${ncn_progname}"
11477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11478    break 2
11479  fi
11480done
11481  done
11482IFS=$as_save_IFS
11483
11484fi
11485fi
11486LIPO=$ac_cv_prog_LIPO
11487if test -n "$LIPO"; then
11488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11489$as_echo "$LIPO" >&6; }
11490else
11491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492$as_echo "no" >&6; }
11493fi
11494
11495
11496  done
11497fi
11498
11499for ncn_progname in lipo; do
11500  if test -n "$ncn_tool_prefix"; then
11501    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11502set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11504$as_echo_n "checking for $ac_word... " >&6; }
11505if ${ac_cv_prog_LIPO+:} false; then :
11506  $as_echo_n "(cached) " >&6
11507else
11508  if test -n "$LIPO"; then
11509  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11510else
11511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512for as_dir in $PATH
11513do
11514  IFS=$as_save_IFS
11515  test -z "$as_dir" && as_dir=.
11516    for ac_exec_ext in '' $ac_executable_extensions; do
11517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11518    ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11520    break 2
11521  fi
11522done
11523  done
11524IFS=$as_save_IFS
11525
11526fi
11527fi
11528LIPO=$ac_cv_prog_LIPO
11529if test -n "$LIPO"; then
11530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11531$as_echo "$LIPO" >&6; }
11532else
11533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534$as_echo "no" >&6; }
11535fi
11536
11537
11538  fi
11539  if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11540    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11541set dummy ${ncn_progname}; ac_word=$2
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11543$as_echo_n "checking for $ac_word... " >&6; }
11544if ${ac_cv_prog_LIPO+:} false; then :
11545  $as_echo_n "(cached) " >&6
11546else
11547  if test -n "$LIPO"; then
11548  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11549else
11550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551for as_dir in $PATH
11552do
11553  IFS=$as_save_IFS
11554  test -z "$as_dir" && as_dir=.
11555    for ac_exec_ext in '' $ac_executable_extensions; do
11556  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11557    ac_cv_prog_LIPO="${ncn_progname}"
11558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11559    break 2
11560  fi
11561done
11562  done
11563IFS=$as_save_IFS
11564
11565fi
11566fi
11567LIPO=$ac_cv_prog_LIPO
11568if test -n "$LIPO"; then
11569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11570$as_echo "$LIPO" >&6; }
11571else
11572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573$as_echo "no" >&6; }
11574fi
11575
11576
11577  fi
11578  test -n "$ac_cv_prog_LIPO" && break
11579done
11580
11581if test -z "$ac_cv_prog_LIPO" ; then
11582  set dummy lipo
11583  if test $build = $host ; then
11584    LIPO="$2"
11585  else
11586    LIPO="${ncn_tool_prefix}$2"
11587  fi
11588fi
11589
11590
11591
11592if test -n "$NM"; then
11593  ac_cv_prog_NM=$NM
11594elif test -n "$ac_cv_prog_NM"; then
11595  NM=$ac_cv_prog_NM
11596fi
11597
11598if test -n "$ac_cv_prog_NM"; then
11599  for ncn_progname in nm; do
11600    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11601set dummy ${ncn_progname}; ac_word=$2
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11603$as_echo_n "checking for $ac_word... " >&6; }
11604if ${ac_cv_prog_NM+:} false; then :
11605  $as_echo_n "(cached) " >&6
11606else
11607  if test -n "$NM"; then
11608  ac_cv_prog_NM="$NM" # Let the user override the test.
11609else
11610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611for as_dir in $PATH
11612do
11613  IFS=$as_save_IFS
11614  test -z "$as_dir" && as_dir=.
11615    for ac_exec_ext in '' $ac_executable_extensions; do
11616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11617    ac_cv_prog_NM="${ncn_progname}"
11618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11619    break 2
11620  fi
11621done
11622  done
11623IFS=$as_save_IFS
11624
11625fi
11626fi
11627NM=$ac_cv_prog_NM
11628if test -n "$NM"; then
11629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11630$as_echo "$NM" >&6; }
11631else
11632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11633$as_echo "no" >&6; }
11634fi
11635
11636
11637  done
11638fi
11639
11640for ncn_progname in nm; do
11641  if test -n "$ncn_tool_prefix"; then
11642    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11643set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645$as_echo_n "checking for $ac_word... " >&6; }
11646if ${ac_cv_prog_NM+:} false; then :
11647  $as_echo_n "(cached) " >&6
11648else
11649  if test -n "$NM"; then
11650  ac_cv_prog_NM="$NM" # Let the user override the test.
11651else
11652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653for as_dir in $PATH
11654do
11655  IFS=$as_save_IFS
11656  test -z "$as_dir" && as_dir=.
11657    for ac_exec_ext in '' $ac_executable_extensions; do
11658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11659    ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11661    break 2
11662  fi
11663done
11664  done
11665IFS=$as_save_IFS
11666
11667fi
11668fi
11669NM=$ac_cv_prog_NM
11670if test -n "$NM"; then
11671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11672$as_echo "$NM" >&6; }
11673else
11674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675$as_echo "no" >&6; }
11676fi
11677
11678
11679  fi
11680  if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11681    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11682set dummy ${ncn_progname}; ac_word=$2
11683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684$as_echo_n "checking for $ac_word... " >&6; }
11685if ${ac_cv_prog_NM+:} false; then :
11686  $as_echo_n "(cached) " >&6
11687else
11688  if test -n "$NM"; then
11689  ac_cv_prog_NM="$NM" # Let the user override the test.
11690else
11691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692for as_dir in $PATH
11693do
11694  IFS=$as_save_IFS
11695  test -z "$as_dir" && as_dir=.
11696    for ac_exec_ext in '' $ac_executable_extensions; do
11697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11698    ac_cv_prog_NM="${ncn_progname}"
11699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11700    break 2
11701  fi
11702done
11703  done
11704IFS=$as_save_IFS
11705
11706fi
11707fi
11708NM=$ac_cv_prog_NM
11709if test -n "$NM"; then
11710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11711$as_echo "$NM" >&6; }
11712else
11713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714$as_echo "no" >&6; }
11715fi
11716
11717
11718  fi
11719  test -n "$ac_cv_prog_NM" && break
11720done
11721
11722if test -z "$ac_cv_prog_NM" ; then
11723  set dummy nm
11724  if test $build = $host ; then
11725    NM="$2"
11726  else
11727    NM="${ncn_tool_prefix}$2"
11728  fi
11729fi
11730
11731
11732
11733if test -n "$RANLIB"; then
11734  ac_cv_prog_RANLIB=$RANLIB
11735elif test -n "$ac_cv_prog_RANLIB"; then
11736  RANLIB=$ac_cv_prog_RANLIB
11737fi
11738
11739if test -n "$ac_cv_prog_RANLIB"; then
11740  for ncn_progname in ranlib; do
11741    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11742set dummy ${ncn_progname}; ac_word=$2
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744$as_echo_n "checking for $ac_word... " >&6; }
11745if ${ac_cv_prog_RANLIB+:} false; then :
11746  $as_echo_n "(cached) " >&6
11747else
11748  if test -n "$RANLIB"; then
11749  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11750else
11751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752for as_dir in $PATH
11753do
11754  IFS=$as_save_IFS
11755  test -z "$as_dir" && as_dir=.
11756    for ac_exec_ext in '' $ac_executable_extensions; do
11757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11758    ac_cv_prog_RANLIB="${ncn_progname}"
11759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11760    break 2
11761  fi
11762done
11763  done
11764IFS=$as_save_IFS
11765
11766fi
11767fi
11768RANLIB=$ac_cv_prog_RANLIB
11769if test -n "$RANLIB"; then
11770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11771$as_echo "$RANLIB" >&6; }
11772else
11773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774$as_echo "no" >&6; }
11775fi
11776
11777
11778  done
11779fi
11780
11781for ncn_progname in ranlib; do
11782  if test -n "$ncn_tool_prefix"; then
11783    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11784set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11786$as_echo_n "checking for $ac_word... " >&6; }
11787if ${ac_cv_prog_RANLIB+:} false; then :
11788  $as_echo_n "(cached) " >&6
11789else
11790  if test -n "$RANLIB"; then
11791  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11792else
11793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794for as_dir in $PATH
11795do
11796  IFS=$as_save_IFS
11797  test -z "$as_dir" && as_dir=.
11798    for ac_exec_ext in '' $ac_executable_extensions; do
11799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11800    ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11802    break 2
11803  fi
11804done
11805  done
11806IFS=$as_save_IFS
11807
11808fi
11809fi
11810RANLIB=$ac_cv_prog_RANLIB
11811if test -n "$RANLIB"; then
11812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11813$as_echo "$RANLIB" >&6; }
11814else
11815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816$as_echo "no" >&6; }
11817fi
11818
11819
11820  fi
11821  if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11822    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11823set dummy ${ncn_progname}; ac_word=$2
11824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825$as_echo_n "checking for $ac_word... " >&6; }
11826if ${ac_cv_prog_RANLIB+:} false; then :
11827  $as_echo_n "(cached) " >&6
11828else
11829  if test -n "$RANLIB"; then
11830  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11831else
11832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833for as_dir in $PATH
11834do
11835  IFS=$as_save_IFS
11836  test -z "$as_dir" && as_dir=.
11837    for ac_exec_ext in '' $ac_executable_extensions; do
11838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11839    ac_cv_prog_RANLIB="${ncn_progname}"
11840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11841    break 2
11842  fi
11843done
11844  done
11845IFS=$as_save_IFS
11846
11847fi
11848fi
11849RANLIB=$ac_cv_prog_RANLIB
11850if test -n "$RANLIB"; then
11851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11852$as_echo "$RANLIB" >&6; }
11853else
11854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855$as_echo "no" >&6; }
11856fi
11857
11858
11859  fi
11860  test -n "$ac_cv_prog_RANLIB" && break
11861done
11862
11863if test -z "$ac_cv_prog_RANLIB" ; then
11864  RANLIB="true"
11865fi
11866
11867
11868
11869if test -n "$STRIP"; then
11870  ac_cv_prog_STRIP=$STRIP
11871elif test -n "$ac_cv_prog_STRIP"; then
11872  STRIP=$ac_cv_prog_STRIP
11873fi
11874
11875if test -n "$ac_cv_prog_STRIP"; then
11876  for ncn_progname in strip; do
11877    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11878set dummy ${ncn_progname}; ac_word=$2
11879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11880$as_echo_n "checking for $ac_word... " >&6; }
11881if ${ac_cv_prog_STRIP+:} false; then :
11882  $as_echo_n "(cached) " >&6
11883else
11884  if test -n "$STRIP"; then
11885  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11886else
11887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888for as_dir in $PATH
11889do
11890  IFS=$as_save_IFS
11891  test -z "$as_dir" && as_dir=.
11892    for ac_exec_ext in '' $ac_executable_extensions; do
11893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11894    ac_cv_prog_STRIP="${ncn_progname}"
11895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11896    break 2
11897  fi
11898done
11899  done
11900IFS=$as_save_IFS
11901
11902fi
11903fi
11904STRIP=$ac_cv_prog_STRIP
11905if test -n "$STRIP"; then
11906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11907$as_echo "$STRIP" >&6; }
11908else
11909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910$as_echo "no" >&6; }
11911fi
11912
11913
11914  done
11915fi
11916
11917for ncn_progname in strip; do
11918  if test -n "$ncn_tool_prefix"; then
11919    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11920set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11922$as_echo_n "checking for $ac_word... " >&6; }
11923if ${ac_cv_prog_STRIP+:} false; then :
11924  $as_echo_n "(cached) " >&6
11925else
11926  if test -n "$STRIP"; then
11927  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11928else
11929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930for as_dir in $PATH
11931do
11932  IFS=$as_save_IFS
11933  test -z "$as_dir" && as_dir=.
11934    for ac_exec_ext in '' $ac_executable_extensions; do
11935  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11936    ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11938    break 2
11939  fi
11940done
11941  done
11942IFS=$as_save_IFS
11943
11944fi
11945fi
11946STRIP=$ac_cv_prog_STRIP
11947if test -n "$STRIP"; then
11948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11949$as_echo "$STRIP" >&6; }
11950else
11951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952$as_echo "no" >&6; }
11953fi
11954
11955
11956  fi
11957  if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11958    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11959set dummy ${ncn_progname}; ac_word=$2
11960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961$as_echo_n "checking for $ac_word... " >&6; }
11962if ${ac_cv_prog_STRIP+:} false; then :
11963  $as_echo_n "(cached) " >&6
11964else
11965  if test -n "$STRIP"; then
11966  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11967else
11968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969for as_dir in $PATH
11970do
11971  IFS=$as_save_IFS
11972  test -z "$as_dir" && as_dir=.
11973    for ac_exec_ext in '' $ac_executable_extensions; do
11974  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11975    ac_cv_prog_STRIP="${ncn_progname}"
11976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11977    break 2
11978  fi
11979done
11980  done
11981IFS=$as_save_IFS
11982
11983fi
11984fi
11985STRIP=$ac_cv_prog_STRIP
11986if test -n "$STRIP"; then
11987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11988$as_echo "$STRIP" >&6; }
11989else
11990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991$as_echo "no" >&6; }
11992fi
11993
11994
11995  fi
11996  test -n "$ac_cv_prog_STRIP" && break
11997done
11998
11999if test -z "$ac_cv_prog_STRIP" ; then
12000  STRIP="true"
12001fi
12002
12003
12004
12005if test -n "$WINDRES"; then
12006  ac_cv_prog_WINDRES=$WINDRES
12007elif test -n "$ac_cv_prog_WINDRES"; then
12008  WINDRES=$ac_cv_prog_WINDRES
12009fi
12010
12011if test -n "$ac_cv_prog_WINDRES"; then
12012  for ncn_progname in windres; do
12013    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12014set dummy ${ncn_progname}; ac_word=$2
12015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12016$as_echo_n "checking for $ac_word... " >&6; }
12017if ${ac_cv_prog_WINDRES+:} false; then :
12018  $as_echo_n "(cached) " >&6
12019else
12020  if test -n "$WINDRES"; then
12021  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12022else
12023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024for as_dir in $PATH
12025do
12026  IFS=$as_save_IFS
12027  test -z "$as_dir" && as_dir=.
12028    for ac_exec_ext in '' $ac_executable_extensions; do
12029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12030    ac_cv_prog_WINDRES="${ncn_progname}"
12031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12032    break 2
12033  fi
12034done
12035  done
12036IFS=$as_save_IFS
12037
12038fi
12039fi
12040WINDRES=$ac_cv_prog_WINDRES
12041if test -n "$WINDRES"; then
12042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12043$as_echo "$WINDRES" >&6; }
12044else
12045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046$as_echo "no" >&6; }
12047fi
12048
12049
12050  done
12051fi
12052
12053for ncn_progname in windres; do
12054  if test -n "$ncn_tool_prefix"; then
12055    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12056set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12058$as_echo_n "checking for $ac_word... " >&6; }
12059if ${ac_cv_prog_WINDRES+:} false; then :
12060  $as_echo_n "(cached) " >&6
12061else
12062  if test -n "$WINDRES"; then
12063  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12064else
12065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12066for as_dir in $PATH
12067do
12068  IFS=$as_save_IFS
12069  test -z "$as_dir" && as_dir=.
12070    for ac_exec_ext in '' $ac_executable_extensions; do
12071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12072    ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12074    break 2
12075  fi
12076done
12077  done
12078IFS=$as_save_IFS
12079
12080fi
12081fi
12082WINDRES=$ac_cv_prog_WINDRES
12083if test -n "$WINDRES"; then
12084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12085$as_echo "$WINDRES" >&6; }
12086else
12087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088$as_echo "no" >&6; }
12089fi
12090
12091
12092  fi
12093  if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12094    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12095set dummy ${ncn_progname}; ac_word=$2
12096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12097$as_echo_n "checking for $ac_word... " >&6; }
12098if ${ac_cv_prog_WINDRES+:} false; then :
12099  $as_echo_n "(cached) " >&6
12100else
12101  if test -n "$WINDRES"; then
12102  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12103else
12104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105for as_dir in $PATH
12106do
12107  IFS=$as_save_IFS
12108  test -z "$as_dir" && as_dir=.
12109    for ac_exec_ext in '' $ac_executable_extensions; do
12110  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12111    ac_cv_prog_WINDRES="${ncn_progname}"
12112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12113    break 2
12114  fi
12115done
12116  done
12117IFS=$as_save_IFS
12118
12119fi
12120fi
12121WINDRES=$ac_cv_prog_WINDRES
12122if test -n "$WINDRES"; then
12123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12124$as_echo "$WINDRES" >&6; }
12125else
12126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127$as_echo "no" >&6; }
12128fi
12129
12130
12131  fi
12132  test -n "$ac_cv_prog_WINDRES" && break
12133done
12134
12135if test -z "$ac_cv_prog_WINDRES" ; then
12136  set dummy windres
12137  if test $build = $host ; then
12138    WINDRES="$2"
12139  else
12140    WINDRES="${ncn_tool_prefix}$2"
12141  fi
12142fi
12143
12144
12145
12146if test -n "$WINDMC"; then
12147  ac_cv_prog_WINDMC=$WINDMC
12148elif test -n "$ac_cv_prog_WINDMC"; then
12149  WINDMC=$ac_cv_prog_WINDMC
12150fi
12151
12152if test -n "$ac_cv_prog_WINDMC"; then
12153  for ncn_progname in windmc; do
12154    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12155set dummy ${ncn_progname}; ac_word=$2
12156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12157$as_echo_n "checking for $ac_word... " >&6; }
12158if ${ac_cv_prog_WINDMC+:} false; then :
12159  $as_echo_n "(cached) " >&6
12160else
12161  if test -n "$WINDMC"; then
12162  ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12163else
12164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165for as_dir in $PATH
12166do
12167  IFS=$as_save_IFS
12168  test -z "$as_dir" && as_dir=.
12169    for ac_exec_ext in '' $ac_executable_extensions; do
12170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12171    ac_cv_prog_WINDMC="${ncn_progname}"
12172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12173    break 2
12174  fi
12175done
12176  done
12177IFS=$as_save_IFS
12178
12179fi
12180fi
12181WINDMC=$ac_cv_prog_WINDMC
12182if test -n "$WINDMC"; then
12183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12184$as_echo "$WINDMC" >&6; }
12185else
12186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187$as_echo "no" >&6; }
12188fi
12189
12190
12191  done
12192fi
12193
12194for ncn_progname in windmc; do
12195  if test -n "$ncn_tool_prefix"; then
12196    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12197set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199$as_echo_n "checking for $ac_word... " >&6; }
12200if ${ac_cv_prog_WINDMC+:} false; then :
12201  $as_echo_n "(cached) " >&6
12202else
12203  if test -n "$WINDMC"; then
12204  ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12205else
12206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207for as_dir in $PATH
12208do
12209  IFS=$as_save_IFS
12210  test -z "$as_dir" && as_dir=.
12211    for ac_exec_ext in '' $ac_executable_extensions; do
12212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12213    ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12215    break 2
12216  fi
12217done
12218  done
12219IFS=$as_save_IFS
12220
12221fi
12222fi
12223WINDMC=$ac_cv_prog_WINDMC
12224if test -n "$WINDMC"; then
12225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12226$as_echo "$WINDMC" >&6; }
12227else
12228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229$as_echo "no" >&6; }
12230fi
12231
12232
12233  fi
12234  if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12235    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12236set dummy ${ncn_progname}; ac_word=$2
12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238$as_echo_n "checking for $ac_word... " >&6; }
12239if ${ac_cv_prog_WINDMC+:} false; then :
12240  $as_echo_n "(cached) " >&6
12241else
12242  if test -n "$WINDMC"; then
12243  ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12244else
12245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246for as_dir in $PATH
12247do
12248  IFS=$as_save_IFS
12249  test -z "$as_dir" && as_dir=.
12250    for ac_exec_ext in '' $ac_executable_extensions; do
12251  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12252    ac_cv_prog_WINDMC="${ncn_progname}"
12253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12254    break 2
12255  fi
12256done
12257  done
12258IFS=$as_save_IFS
12259
12260fi
12261fi
12262WINDMC=$ac_cv_prog_WINDMC
12263if test -n "$WINDMC"; then
12264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12265$as_echo "$WINDMC" >&6; }
12266else
12267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268$as_echo "no" >&6; }
12269fi
12270
12271
12272  fi
12273  test -n "$ac_cv_prog_WINDMC" && break
12274done
12275
12276if test -z "$ac_cv_prog_WINDMC" ; then
12277  set dummy windmc
12278  if test $build = $host ; then
12279    WINDMC="$2"
12280  else
12281    WINDMC="${ncn_tool_prefix}$2"
12282  fi
12283fi
12284
12285
12286
12287if test -n "$OBJCOPY"; then
12288  ac_cv_prog_OBJCOPY=$OBJCOPY
12289elif test -n "$ac_cv_prog_OBJCOPY"; then
12290  OBJCOPY=$ac_cv_prog_OBJCOPY
12291fi
12292
12293if test -n "$ac_cv_prog_OBJCOPY"; then
12294  for ncn_progname in objcopy; do
12295    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12296set dummy ${ncn_progname}; ac_word=$2
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298$as_echo_n "checking for $ac_word... " >&6; }
12299if ${ac_cv_prog_OBJCOPY+:} false; then :
12300  $as_echo_n "(cached) " >&6
12301else
12302  if test -n "$OBJCOPY"; then
12303  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12304else
12305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306for as_dir in $PATH
12307do
12308  IFS=$as_save_IFS
12309  test -z "$as_dir" && as_dir=.
12310    for ac_exec_ext in '' $ac_executable_extensions; do
12311  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12312    ac_cv_prog_OBJCOPY="${ncn_progname}"
12313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12314    break 2
12315  fi
12316done
12317  done
12318IFS=$as_save_IFS
12319
12320fi
12321fi
12322OBJCOPY=$ac_cv_prog_OBJCOPY
12323if test -n "$OBJCOPY"; then
12324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12325$as_echo "$OBJCOPY" >&6; }
12326else
12327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328$as_echo "no" >&6; }
12329fi
12330
12331
12332  done
12333fi
12334
12335for ncn_progname in objcopy; do
12336  if test -n "$ncn_tool_prefix"; then
12337    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12338set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340$as_echo_n "checking for $ac_word... " >&6; }
12341if ${ac_cv_prog_OBJCOPY+:} false; then :
12342  $as_echo_n "(cached) " >&6
12343else
12344  if test -n "$OBJCOPY"; then
12345  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12346else
12347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348for as_dir in $PATH
12349do
12350  IFS=$as_save_IFS
12351  test -z "$as_dir" && as_dir=.
12352    for ac_exec_ext in '' $ac_executable_extensions; do
12353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12354    ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12356    break 2
12357  fi
12358done
12359  done
12360IFS=$as_save_IFS
12361
12362fi
12363fi
12364OBJCOPY=$ac_cv_prog_OBJCOPY
12365if test -n "$OBJCOPY"; then
12366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12367$as_echo "$OBJCOPY" >&6; }
12368else
12369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370$as_echo "no" >&6; }
12371fi
12372
12373
12374  fi
12375  if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12376    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12377set dummy ${ncn_progname}; ac_word=$2
12378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12379$as_echo_n "checking for $ac_word... " >&6; }
12380if ${ac_cv_prog_OBJCOPY+:} false; then :
12381  $as_echo_n "(cached) " >&6
12382else
12383  if test -n "$OBJCOPY"; then
12384  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12385else
12386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387for as_dir in $PATH
12388do
12389  IFS=$as_save_IFS
12390  test -z "$as_dir" && as_dir=.
12391    for ac_exec_ext in '' $ac_executable_extensions; do
12392  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12393    ac_cv_prog_OBJCOPY="${ncn_progname}"
12394    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12395    break 2
12396  fi
12397done
12398  done
12399IFS=$as_save_IFS
12400
12401fi
12402fi
12403OBJCOPY=$ac_cv_prog_OBJCOPY
12404if test -n "$OBJCOPY"; then
12405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12406$as_echo "$OBJCOPY" >&6; }
12407else
12408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409$as_echo "no" >&6; }
12410fi
12411
12412
12413  fi
12414  test -n "$ac_cv_prog_OBJCOPY" && break
12415done
12416
12417if test -z "$ac_cv_prog_OBJCOPY" ; then
12418  set dummy objcopy
12419  if test $build = $host ; then
12420    OBJCOPY="$2"
12421  else
12422    OBJCOPY="${ncn_tool_prefix}$2"
12423  fi
12424fi
12425
12426
12427
12428if test -n "$OBJDUMP"; then
12429  ac_cv_prog_OBJDUMP=$OBJDUMP
12430elif test -n "$ac_cv_prog_OBJDUMP"; then
12431  OBJDUMP=$ac_cv_prog_OBJDUMP
12432fi
12433
12434if test -n "$ac_cv_prog_OBJDUMP"; then
12435  for ncn_progname in objdump; do
12436    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12437set dummy ${ncn_progname}; ac_word=$2
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12439$as_echo_n "checking for $ac_word... " >&6; }
12440if ${ac_cv_prog_OBJDUMP+:} false; then :
12441  $as_echo_n "(cached) " >&6
12442else
12443  if test -n "$OBJDUMP"; then
12444  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12445else
12446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447for as_dir in $PATH
12448do
12449  IFS=$as_save_IFS
12450  test -z "$as_dir" && as_dir=.
12451    for ac_exec_ext in '' $ac_executable_extensions; do
12452  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12453    ac_cv_prog_OBJDUMP="${ncn_progname}"
12454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12455    break 2
12456  fi
12457done
12458  done
12459IFS=$as_save_IFS
12460
12461fi
12462fi
12463OBJDUMP=$ac_cv_prog_OBJDUMP
12464if test -n "$OBJDUMP"; then
12465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12466$as_echo "$OBJDUMP" >&6; }
12467else
12468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469$as_echo "no" >&6; }
12470fi
12471
12472
12473  done
12474fi
12475
12476for ncn_progname in objdump; do
12477  if test -n "$ncn_tool_prefix"; then
12478    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12479set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12481$as_echo_n "checking for $ac_word... " >&6; }
12482if ${ac_cv_prog_OBJDUMP+:} false; then :
12483  $as_echo_n "(cached) " >&6
12484else
12485  if test -n "$OBJDUMP"; then
12486  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12487else
12488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12489for as_dir in $PATH
12490do
12491  IFS=$as_save_IFS
12492  test -z "$as_dir" && as_dir=.
12493    for ac_exec_ext in '' $ac_executable_extensions; do
12494  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12495    ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12497    break 2
12498  fi
12499done
12500  done
12501IFS=$as_save_IFS
12502
12503fi
12504fi
12505OBJDUMP=$ac_cv_prog_OBJDUMP
12506if test -n "$OBJDUMP"; then
12507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12508$as_echo "$OBJDUMP" >&6; }
12509else
12510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511$as_echo "no" >&6; }
12512fi
12513
12514
12515  fi
12516  if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12517    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12518set dummy ${ncn_progname}; ac_word=$2
12519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12520$as_echo_n "checking for $ac_word... " >&6; }
12521if ${ac_cv_prog_OBJDUMP+:} false; then :
12522  $as_echo_n "(cached) " >&6
12523else
12524  if test -n "$OBJDUMP"; then
12525  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12526else
12527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528for as_dir in $PATH
12529do
12530  IFS=$as_save_IFS
12531  test -z "$as_dir" && as_dir=.
12532    for ac_exec_ext in '' $ac_executable_extensions; do
12533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12534    ac_cv_prog_OBJDUMP="${ncn_progname}"
12535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12536    break 2
12537  fi
12538done
12539  done
12540IFS=$as_save_IFS
12541
12542fi
12543fi
12544OBJDUMP=$ac_cv_prog_OBJDUMP
12545if test -n "$OBJDUMP"; then
12546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12547$as_echo "$OBJDUMP" >&6; }
12548else
12549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550$as_echo "no" >&6; }
12551fi
12552
12553
12554  fi
12555  test -n "$ac_cv_prog_OBJDUMP" && break
12556done
12557
12558if test -z "$ac_cv_prog_OBJDUMP" ; then
12559  set dummy objdump
12560  if test $build = $host ; then
12561    OBJDUMP="$2"
12562  else
12563    OBJDUMP="${ncn_tool_prefix}$2"
12564  fi
12565fi
12566
12567
12568
12569if test -n "$OTOOL"; then
12570  ac_cv_prog_OTOOL=$OTOOL
12571elif test -n "$ac_cv_prog_OTOOL"; then
12572  OTOOL=$ac_cv_prog_OTOOL
12573fi
12574
12575if test -n "$ac_cv_prog_OTOOL"; then
12576  for ncn_progname in otool; do
12577    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12578set dummy ${ncn_progname}; ac_word=$2
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580$as_echo_n "checking for $ac_word... " >&6; }
12581if ${ac_cv_prog_OTOOL+:} false; then :
12582  $as_echo_n "(cached) " >&6
12583else
12584  if test -n "$OTOOL"; then
12585  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12586else
12587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588for as_dir in $PATH
12589do
12590  IFS=$as_save_IFS
12591  test -z "$as_dir" && as_dir=.
12592    for ac_exec_ext in '' $ac_executable_extensions; do
12593  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12594    ac_cv_prog_OTOOL="${ncn_progname}"
12595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12596    break 2
12597  fi
12598done
12599  done
12600IFS=$as_save_IFS
12601
12602fi
12603fi
12604OTOOL=$ac_cv_prog_OTOOL
12605if test -n "$OTOOL"; then
12606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12607$as_echo "$OTOOL" >&6; }
12608else
12609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610$as_echo "no" >&6; }
12611fi
12612
12613
12614  done
12615fi
12616
12617for ncn_progname in otool; do
12618  if test -n "$ncn_tool_prefix"; then
12619    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12620set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622$as_echo_n "checking for $ac_word... " >&6; }
12623if ${ac_cv_prog_OTOOL+:} false; then :
12624  $as_echo_n "(cached) " >&6
12625else
12626  if test -n "$OTOOL"; then
12627  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12628else
12629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630for as_dir in $PATH
12631do
12632  IFS=$as_save_IFS
12633  test -z "$as_dir" && as_dir=.
12634    for ac_exec_ext in '' $ac_executable_extensions; do
12635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12636    ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12638    break 2
12639  fi
12640done
12641  done
12642IFS=$as_save_IFS
12643
12644fi
12645fi
12646OTOOL=$ac_cv_prog_OTOOL
12647if test -n "$OTOOL"; then
12648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12649$as_echo "$OTOOL" >&6; }
12650else
12651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652$as_echo "no" >&6; }
12653fi
12654
12655
12656  fi
12657  if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12658    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12659set dummy ${ncn_progname}; ac_word=$2
12660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12661$as_echo_n "checking for $ac_word... " >&6; }
12662if ${ac_cv_prog_OTOOL+:} false; then :
12663  $as_echo_n "(cached) " >&6
12664else
12665  if test -n "$OTOOL"; then
12666  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12667else
12668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12669for as_dir in $PATH
12670do
12671  IFS=$as_save_IFS
12672  test -z "$as_dir" && as_dir=.
12673    for ac_exec_ext in '' $ac_executable_extensions; do
12674  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12675    ac_cv_prog_OTOOL="${ncn_progname}"
12676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12677    break 2
12678  fi
12679done
12680  done
12681IFS=$as_save_IFS
12682
12683fi
12684fi
12685OTOOL=$ac_cv_prog_OTOOL
12686if test -n "$OTOOL"; then
12687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12688$as_echo "$OTOOL" >&6; }
12689else
12690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691$as_echo "no" >&6; }
12692fi
12693
12694
12695  fi
12696  test -n "$ac_cv_prog_OTOOL" && break
12697done
12698
12699if test -z "$ac_cv_prog_OTOOL" ; then
12700  set dummy otool
12701  if test $build = $host ; then
12702    OTOOL="$2"
12703  else
12704    OTOOL="${ncn_tool_prefix}$2"
12705  fi
12706fi
12707
12708
12709
12710if test -n "$READELF"; then
12711  ac_cv_prog_READELF=$READELF
12712elif test -n "$ac_cv_prog_READELF"; then
12713  READELF=$ac_cv_prog_READELF
12714fi
12715
12716if test -n "$ac_cv_prog_READELF"; then
12717  for ncn_progname in readelf; do
12718    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12719set dummy ${ncn_progname}; ac_word=$2
12720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12721$as_echo_n "checking for $ac_word... " >&6; }
12722if ${ac_cv_prog_READELF+:} false; then :
12723  $as_echo_n "(cached) " >&6
12724else
12725  if test -n "$READELF"; then
12726  ac_cv_prog_READELF="$READELF" # Let the user override the test.
12727else
12728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12729for as_dir in $PATH
12730do
12731  IFS=$as_save_IFS
12732  test -z "$as_dir" && as_dir=.
12733    for ac_exec_ext in '' $ac_executable_extensions; do
12734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12735    ac_cv_prog_READELF="${ncn_progname}"
12736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12737    break 2
12738  fi
12739done
12740  done
12741IFS=$as_save_IFS
12742
12743fi
12744fi
12745READELF=$ac_cv_prog_READELF
12746if test -n "$READELF"; then
12747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12748$as_echo "$READELF" >&6; }
12749else
12750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751$as_echo "no" >&6; }
12752fi
12753
12754
12755  done
12756fi
12757
12758for ncn_progname in readelf; do
12759  if test -n "$ncn_tool_prefix"; then
12760    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12761set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12763$as_echo_n "checking for $ac_word... " >&6; }
12764if ${ac_cv_prog_READELF+:} false; then :
12765  $as_echo_n "(cached) " >&6
12766else
12767  if test -n "$READELF"; then
12768  ac_cv_prog_READELF="$READELF" # Let the user override the test.
12769else
12770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12771for as_dir in $PATH
12772do
12773  IFS=$as_save_IFS
12774  test -z "$as_dir" && as_dir=.
12775    for ac_exec_ext in '' $ac_executable_extensions; do
12776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12777    ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12779    break 2
12780  fi
12781done
12782  done
12783IFS=$as_save_IFS
12784
12785fi
12786fi
12787READELF=$ac_cv_prog_READELF
12788if test -n "$READELF"; then
12789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12790$as_echo "$READELF" >&6; }
12791else
12792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793$as_echo "no" >&6; }
12794fi
12795
12796
12797  fi
12798  if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12799    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12800set dummy ${ncn_progname}; ac_word=$2
12801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802$as_echo_n "checking for $ac_word... " >&6; }
12803if ${ac_cv_prog_READELF+:} false; then :
12804  $as_echo_n "(cached) " >&6
12805else
12806  if test -n "$READELF"; then
12807  ac_cv_prog_READELF="$READELF" # Let the user override the test.
12808else
12809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810for as_dir in $PATH
12811do
12812  IFS=$as_save_IFS
12813  test -z "$as_dir" && as_dir=.
12814    for ac_exec_ext in '' $ac_executable_extensions; do
12815  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12816    ac_cv_prog_READELF="${ncn_progname}"
12817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12818    break 2
12819  fi
12820done
12821  done
12822IFS=$as_save_IFS
12823
12824fi
12825fi
12826READELF=$ac_cv_prog_READELF
12827if test -n "$READELF"; then
12828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12829$as_echo "$READELF" >&6; }
12830else
12831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832$as_echo "no" >&6; }
12833fi
12834
12835
12836  fi
12837  test -n "$ac_cv_prog_READELF" && break
12838done
12839
12840if test -z "$ac_cv_prog_READELF" ; then
12841  set dummy readelf
12842  if test $build = $host ; then
12843    READELF="$2"
12844  else
12845    READELF="${ncn_tool_prefix}$2"
12846  fi
12847fi
12848
12849
12850
12851
12852
12853
12854
12855
12856# Target tools.
12857
12858# Check whether --with-build-time-tools was given.
12859if test "${with_build_time_tools+set}" = set; then :
12860  withval=$with_build_time_tools; case x"$withval" in
12861     x/*) ;;
12862     *)
12863       with_build_time_tools=
12864       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12865$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12866       ;;
12867   esac
12868else
12869  with_build_time_tools=
12870fi
12871
12872
12873
12874
12875if test -n "$CC_FOR_TARGET"; then
12876  ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12877elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12878  CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12879fi
12880
12881if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12882  for ncn_progname in cc gcc; do
12883    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12884set dummy ${ncn_progname}; ac_word=$2
12885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12886$as_echo_n "checking for $ac_word... " >&6; }
12887if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12888  $as_echo_n "(cached) " >&6
12889else
12890  if test -n "$CC_FOR_TARGET"; then
12891  ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12892else
12893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12894for as_dir in $PATH
12895do
12896  IFS=$as_save_IFS
12897  test -z "$as_dir" && as_dir=.
12898    for ac_exec_ext in '' $ac_executable_extensions; do
12899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12900    ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12902    break 2
12903  fi
12904done
12905  done
12906IFS=$as_save_IFS
12907
12908fi
12909fi
12910CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12911if test -n "$CC_FOR_TARGET"; then
12912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12913$as_echo "$CC_FOR_TARGET" >&6; }
12914else
12915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916$as_echo "no" >&6; }
12917fi
12918
12919
12920  done
12921fi
12922
12923if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12924  for ncn_progname in cc gcc; do
12925    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12926$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12927    if test -x $with_build_time_tools/${ncn_progname}; then
12928      ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12929      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12930$as_echo "yes" >&6; }
12931      break
12932    else
12933      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934$as_echo "no" >&6; }
12935    fi
12936  done
12937fi
12938
12939if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12940  for ncn_progname in cc gcc; do
12941    if test -n "$ncn_target_tool_prefix"; then
12942      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12943set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12945$as_echo_n "checking for $ac_word... " >&6; }
12946if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12947  $as_echo_n "(cached) " >&6
12948else
12949  if test -n "$CC_FOR_TARGET"; then
12950  ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12951else
12952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953for as_dir in $PATH
12954do
12955  IFS=$as_save_IFS
12956  test -z "$as_dir" && as_dir=.
12957    for ac_exec_ext in '' $ac_executable_extensions; do
12958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12959    ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12961    break 2
12962  fi
12963done
12964  done
12965IFS=$as_save_IFS
12966
12967fi
12968fi
12969CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12970if test -n "$CC_FOR_TARGET"; then
12971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12972$as_echo "$CC_FOR_TARGET" >&6; }
12973else
12974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975$as_echo "no" >&6; }
12976fi
12977
12978
12979    fi
12980    if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12981      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12982set dummy ${ncn_progname}; ac_word=$2
12983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12984$as_echo_n "checking for $ac_word... " >&6; }
12985if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12986  $as_echo_n "(cached) " >&6
12987else
12988  if test -n "$CC_FOR_TARGET"; then
12989  ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12990else
12991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992for as_dir in $PATH
12993do
12994  IFS=$as_save_IFS
12995  test -z "$as_dir" && as_dir=.
12996    for ac_exec_ext in '' $ac_executable_extensions; do
12997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12998    ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13000    break 2
13001  fi
13002done
13003  done
13004IFS=$as_save_IFS
13005
13006fi
13007fi
13008CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13009if test -n "$CC_FOR_TARGET"; then
13010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13011$as_echo "$CC_FOR_TARGET" >&6; }
13012else
13013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014$as_echo "no" >&6; }
13015fi
13016
13017
13018    fi
13019    test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13020  done
13021fi
13022
13023if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13024  set dummy cc gcc
13025  if test $build = $target ; then
13026    CC_FOR_TARGET="$2"
13027  else
13028    CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13029  fi
13030else
13031  CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13032fi
13033
13034
13035
13036if test -n "$CXX_FOR_TARGET"; then
13037  ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13038elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13039  CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13040fi
13041
13042if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13043  for ncn_progname in c++ g++ cxx gxx; do
13044    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13045set dummy ${ncn_progname}; ac_word=$2
13046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047$as_echo_n "checking for $ac_word... " >&6; }
13048if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13049  $as_echo_n "(cached) " >&6
13050else
13051  if test -n "$CXX_FOR_TARGET"; then
13052  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13053else
13054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055for as_dir in $PATH
13056do
13057  IFS=$as_save_IFS
13058  test -z "$as_dir" && as_dir=.
13059    for ac_exec_ext in '' $ac_executable_extensions; do
13060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13061    ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13063    break 2
13064  fi
13065done
13066  done
13067IFS=$as_save_IFS
13068
13069fi
13070fi
13071CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13072if test -n "$CXX_FOR_TARGET"; then
13073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13074$as_echo "$CXX_FOR_TARGET" >&6; }
13075else
13076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077$as_echo "no" >&6; }
13078fi
13079
13080
13081  done
13082fi
13083
13084if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13085  for ncn_progname in c++ g++ cxx gxx; do
13086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13087$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13088    if test -x $with_build_time_tools/${ncn_progname}; then
13089      ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13090      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13091$as_echo "yes" >&6; }
13092      break
13093    else
13094      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095$as_echo "no" >&6; }
13096    fi
13097  done
13098fi
13099
13100if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13101  for ncn_progname in c++ g++ cxx gxx; do
13102    if test -n "$ncn_target_tool_prefix"; then
13103      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13104set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13106$as_echo_n "checking for $ac_word... " >&6; }
13107if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13108  $as_echo_n "(cached) " >&6
13109else
13110  if test -n "$CXX_FOR_TARGET"; then
13111  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13112else
13113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114for as_dir in $PATH
13115do
13116  IFS=$as_save_IFS
13117  test -z "$as_dir" && as_dir=.
13118    for ac_exec_ext in '' $ac_executable_extensions; do
13119  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13120    ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13122    break 2
13123  fi
13124done
13125  done
13126IFS=$as_save_IFS
13127
13128fi
13129fi
13130CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13131if test -n "$CXX_FOR_TARGET"; then
13132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13133$as_echo "$CXX_FOR_TARGET" >&6; }
13134else
13135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136$as_echo "no" >&6; }
13137fi
13138
13139
13140    fi
13141    if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13142      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13143set dummy ${ncn_progname}; ac_word=$2
13144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13145$as_echo_n "checking for $ac_word... " >&6; }
13146if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13147  $as_echo_n "(cached) " >&6
13148else
13149  if test -n "$CXX_FOR_TARGET"; then
13150  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13151else
13152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153for as_dir in $PATH
13154do
13155  IFS=$as_save_IFS
13156  test -z "$as_dir" && as_dir=.
13157    for ac_exec_ext in '' $ac_executable_extensions; do
13158  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13159    ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13161    break 2
13162  fi
13163done
13164  done
13165IFS=$as_save_IFS
13166
13167fi
13168fi
13169CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13170if test -n "$CXX_FOR_TARGET"; then
13171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13172$as_echo "$CXX_FOR_TARGET" >&6; }
13173else
13174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175$as_echo "no" >&6; }
13176fi
13177
13178
13179    fi
13180    test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13181  done
13182fi
13183
13184if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13185  set dummy c++ g++ cxx gxx
13186  if test $build = $target ; then
13187    CXX_FOR_TARGET="$2"
13188  else
13189    CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13190  fi
13191else
13192  CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13193fi
13194
13195
13196
13197if test -n "$GCC_FOR_TARGET"; then
13198  ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13199elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13200  GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13201fi
13202
13203if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13204  for ncn_progname in gcc; do
13205    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13206set dummy ${ncn_progname}; ac_word=$2
13207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13208$as_echo_n "checking for $ac_word... " >&6; }
13209if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13210  $as_echo_n "(cached) " >&6
13211else
13212  if test -n "$GCC_FOR_TARGET"; then
13213  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13214else
13215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13216for as_dir in $PATH
13217do
13218  IFS=$as_save_IFS
13219  test -z "$as_dir" && as_dir=.
13220    for ac_exec_ext in '' $ac_executable_extensions; do
13221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13222    ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13224    break 2
13225  fi
13226done
13227  done
13228IFS=$as_save_IFS
13229
13230fi
13231fi
13232GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13233if test -n "$GCC_FOR_TARGET"; then
13234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13235$as_echo "$GCC_FOR_TARGET" >&6; }
13236else
13237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238$as_echo "no" >&6; }
13239fi
13240
13241
13242  done
13243fi
13244
13245if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13246  for ncn_progname in gcc; do
13247    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13248$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13249    if test -x $with_build_time_tools/${ncn_progname}; then
13250      ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13251      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13252$as_echo "yes" >&6; }
13253      break
13254    else
13255      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256$as_echo "no" >&6; }
13257    fi
13258  done
13259fi
13260
13261if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13262  for ncn_progname in gcc; do
13263    if test -n "$ncn_target_tool_prefix"; then
13264      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13265set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267$as_echo_n "checking for $ac_word... " >&6; }
13268if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13269  $as_echo_n "(cached) " >&6
13270else
13271  if test -n "$GCC_FOR_TARGET"; then
13272  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13273else
13274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275for as_dir in $PATH
13276do
13277  IFS=$as_save_IFS
13278  test -z "$as_dir" && as_dir=.
13279    for ac_exec_ext in '' $ac_executable_extensions; do
13280  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13281    ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13283    break 2
13284  fi
13285done
13286  done
13287IFS=$as_save_IFS
13288
13289fi
13290fi
13291GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13292if test -n "$GCC_FOR_TARGET"; then
13293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13294$as_echo "$GCC_FOR_TARGET" >&6; }
13295else
13296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297$as_echo "no" >&6; }
13298fi
13299
13300
13301    fi
13302    if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13303      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13304set dummy ${ncn_progname}; ac_word=$2
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13306$as_echo_n "checking for $ac_word... " >&6; }
13307if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13308  $as_echo_n "(cached) " >&6
13309else
13310  if test -n "$GCC_FOR_TARGET"; then
13311  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13312else
13313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13314for as_dir in $PATH
13315do
13316  IFS=$as_save_IFS
13317  test -z "$as_dir" && as_dir=.
13318    for ac_exec_ext in '' $ac_executable_extensions; do
13319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13320    ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13322    break 2
13323  fi
13324done
13325  done
13326IFS=$as_save_IFS
13327
13328fi
13329fi
13330GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13331if test -n "$GCC_FOR_TARGET"; then
13332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13333$as_echo "$GCC_FOR_TARGET" >&6; }
13334else
13335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336$as_echo "no" >&6; }
13337fi
13338
13339
13340    fi
13341    test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13342  done
13343fi
13344
13345if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13346  GCC_FOR_TARGET="${CC_FOR_TARGET}"
13347else
13348  GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13349fi
13350
13351
13352
13353if test -n "$GFORTRAN_FOR_TARGET"; then
13354  ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13355elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13356  GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13357fi
13358
13359if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13360  for ncn_progname in gfortran; do
13361    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13362set dummy ${ncn_progname}; ac_word=$2
13363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364$as_echo_n "checking for $ac_word... " >&6; }
13365if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13366  $as_echo_n "(cached) " >&6
13367else
13368  if test -n "$GFORTRAN_FOR_TARGET"; then
13369  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13370else
13371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372for as_dir in $PATH
13373do
13374  IFS=$as_save_IFS
13375  test -z "$as_dir" && as_dir=.
13376    for ac_exec_ext in '' $ac_executable_extensions; do
13377  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13378    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380    break 2
13381  fi
13382done
13383  done
13384IFS=$as_save_IFS
13385
13386fi
13387fi
13388GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13389if test -n "$GFORTRAN_FOR_TARGET"; then
13390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13391$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13392else
13393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394$as_echo "no" >&6; }
13395fi
13396
13397
13398  done
13399fi
13400
13401if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13402  for ncn_progname in gfortran; do
13403    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13404$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13405    if test -x $with_build_time_tools/${ncn_progname}; then
13406      ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13407      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13408$as_echo "yes" >&6; }
13409      break
13410    else
13411      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412$as_echo "no" >&6; }
13413    fi
13414  done
13415fi
13416
13417if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13418  for ncn_progname in gfortran; do
13419    if test -n "$ncn_target_tool_prefix"; then
13420      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13421set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13423$as_echo_n "checking for $ac_word... " >&6; }
13424if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13425  $as_echo_n "(cached) " >&6
13426else
13427  if test -n "$GFORTRAN_FOR_TARGET"; then
13428  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13429else
13430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431for as_dir in $PATH
13432do
13433  IFS=$as_save_IFS
13434  test -z "$as_dir" && as_dir=.
13435    for ac_exec_ext in '' $ac_executable_extensions; do
13436  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13437    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13439    break 2
13440  fi
13441done
13442  done
13443IFS=$as_save_IFS
13444
13445fi
13446fi
13447GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13448if test -n "$GFORTRAN_FOR_TARGET"; then
13449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13450$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13451else
13452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453$as_echo "no" >&6; }
13454fi
13455
13456
13457    fi
13458    if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13459      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13460set dummy ${ncn_progname}; ac_word=$2
13461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13462$as_echo_n "checking for $ac_word... " >&6; }
13463if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13464  $as_echo_n "(cached) " >&6
13465else
13466  if test -n "$GFORTRAN_FOR_TARGET"; then
13467  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13468else
13469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13470for as_dir in $PATH
13471do
13472  IFS=$as_save_IFS
13473  test -z "$as_dir" && as_dir=.
13474    for ac_exec_ext in '' $ac_executable_extensions; do
13475  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13476    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13478    break 2
13479  fi
13480done
13481  done
13482IFS=$as_save_IFS
13483
13484fi
13485fi
13486GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13487if test -n "$GFORTRAN_FOR_TARGET"; then
13488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13489$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13490else
13491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492$as_echo "no" >&6; }
13493fi
13494
13495
13496    fi
13497    test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13498  done
13499fi
13500
13501if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13502  set dummy gfortran
13503  if test $build = $target ; then
13504    GFORTRAN_FOR_TARGET="$2"
13505  else
13506    GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13507  fi
13508else
13509  GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13510fi
13511
13512
13513
13514if test -n "$GOC_FOR_TARGET"; then
13515  ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13516elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13517  GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13518fi
13519
13520if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13521  for ncn_progname in gccgo; do
13522    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13523set dummy ${ncn_progname}; ac_word=$2
13524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13525$as_echo_n "checking for $ac_word... " >&6; }
13526if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13527  $as_echo_n "(cached) " >&6
13528else
13529  if test -n "$GOC_FOR_TARGET"; then
13530  ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13531else
13532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13533for as_dir in $PATH
13534do
13535  IFS=$as_save_IFS
13536  test -z "$as_dir" && as_dir=.
13537    for ac_exec_ext in '' $ac_executable_extensions; do
13538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13539    ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13541    break 2
13542  fi
13543done
13544  done
13545IFS=$as_save_IFS
13546
13547fi
13548fi
13549GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13550if test -n "$GOC_FOR_TARGET"; then
13551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13552$as_echo "$GOC_FOR_TARGET" >&6; }
13553else
13554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13555$as_echo "no" >&6; }
13556fi
13557
13558
13559  done
13560fi
13561
13562if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13563  for ncn_progname in gccgo; do
13564    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13565$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13566    if test -x $with_build_time_tools/${ncn_progname}; then
13567      ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13568      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13569$as_echo "yes" >&6; }
13570      break
13571    else
13572      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573$as_echo "no" >&6; }
13574    fi
13575  done
13576fi
13577
13578if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13579  for ncn_progname in gccgo; do
13580    if test -n "$ncn_target_tool_prefix"; then
13581      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13582set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13584$as_echo_n "checking for $ac_word... " >&6; }
13585if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13586  $as_echo_n "(cached) " >&6
13587else
13588  if test -n "$GOC_FOR_TARGET"; then
13589  ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13590else
13591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13592for as_dir in $PATH
13593do
13594  IFS=$as_save_IFS
13595  test -z "$as_dir" && as_dir=.
13596    for ac_exec_ext in '' $ac_executable_extensions; do
13597  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13598    ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13600    break 2
13601  fi
13602done
13603  done
13604IFS=$as_save_IFS
13605
13606fi
13607fi
13608GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13609if test -n "$GOC_FOR_TARGET"; then
13610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13611$as_echo "$GOC_FOR_TARGET" >&6; }
13612else
13613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614$as_echo "no" >&6; }
13615fi
13616
13617
13618    fi
13619    if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13620      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13621set dummy ${ncn_progname}; ac_word=$2
13622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623$as_echo_n "checking for $ac_word... " >&6; }
13624if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13625  $as_echo_n "(cached) " >&6
13626else
13627  if test -n "$GOC_FOR_TARGET"; then
13628  ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13629else
13630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631for as_dir in $PATH
13632do
13633  IFS=$as_save_IFS
13634  test -z "$as_dir" && as_dir=.
13635    for ac_exec_ext in '' $ac_executable_extensions; do
13636  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13637    ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13639    break 2
13640  fi
13641done
13642  done
13643IFS=$as_save_IFS
13644
13645fi
13646fi
13647GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13648if test -n "$GOC_FOR_TARGET"; then
13649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13650$as_echo "$GOC_FOR_TARGET" >&6; }
13651else
13652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653$as_echo "no" >&6; }
13654fi
13655
13656
13657    fi
13658    test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13659  done
13660fi
13661
13662if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13663  set dummy gccgo
13664  if test $build = $target ; then
13665    GOC_FOR_TARGET="$2"
13666  else
13667    GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13668  fi
13669else
13670  GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13671fi
13672
13673
13674
13675if test -n "$GDC_FOR_TARGET"; then
13676  ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13677elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13678  GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13679fi
13680
13681if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13682  for ncn_progname in gdc; do
13683    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13684set dummy ${ncn_progname}; ac_word=$2
13685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13686$as_echo_n "checking for $ac_word... " >&6; }
13687if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13688  $as_echo_n "(cached) " >&6
13689else
13690  if test -n "$GDC_FOR_TARGET"; then
13691  ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13692else
13693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13694for as_dir in $PATH
13695do
13696  IFS=$as_save_IFS
13697  test -z "$as_dir" && as_dir=.
13698    for ac_exec_ext in '' $ac_executable_extensions; do
13699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13700    ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13702    break 2
13703  fi
13704done
13705  done
13706IFS=$as_save_IFS
13707
13708fi
13709fi
13710GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13711if test -n "$GDC_FOR_TARGET"; then
13712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13713$as_echo "$GDC_FOR_TARGET" >&6; }
13714else
13715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13716$as_echo "no" >&6; }
13717fi
13718
13719
13720  done
13721fi
13722
13723if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13724  for ncn_progname in gdc; do
13725    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13726$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13727    if test -x $with_build_time_tools/${ncn_progname}; then
13728      ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13729      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13730$as_echo "yes" >&6; }
13731      break
13732    else
13733      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13734$as_echo "no" >&6; }
13735    fi
13736  done
13737fi
13738
13739if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13740  for ncn_progname in gdc; do
13741    if test -n "$ncn_target_tool_prefix"; then
13742      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13743set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13745$as_echo_n "checking for $ac_word... " >&6; }
13746if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13747  $as_echo_n "(cached) " >&6
13748else
13749  if test -n "$GDC_FOR_TARGET"; then
13750  ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13751else
13752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13753for as_dir in $PATH
13754do
13755  IFS=$as_save_IFS
13756  test -z "$as_dir" && as_dir=.
13757    for ac_exec_ext in '' $ac_executable_extensions; do
13758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13759    ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13761    break 2
13762  fi
13763done
13764  done
13765IFS=$as_save_IFS
13766
13767fi
13768fi
13769GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13770if test -n "$GDC_FOR_TARGET"; then
13771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13772$as_echo "$GDC_FOR_TARGET" >&6; }
13773else
13774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13775$as_echo "no" >&6; }
13776fi
13777
13778
13779    fi
13780    if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13781      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13782set dummy ${ncn_progname}; ac_word=$2
13783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13784$as_echo_n "checking for $ac_word... " >&6; }
13785if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13786  $as_echo_n "(cached) " >&6
13787else
13788  if test -n "$GDC_FOR_TARGET"; then
13789  ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13790else
13791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13792for as_dir in $PATH
13793do
13794  IFS=$as_save_IFS
13795  test -z "$as_dir" && as_dir=.
13796    for ac_exec_ext in '' $ac_executable_extensions; do
13797  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13798    ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13800    break 2
13801  fi
13802done
13803  done
13804IFS=$as_save_IFS
13805
13806fi
13807fi
13808GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13809if test -n "$GDC_FOR_TARGET"; then
13810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13811$as_echo "$GDC_FOR_TARGET" >&6; }
13812else
13813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13814$as_echo "no" >&6; }
13815fi
13816
13817
13818    fi
13819    test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13820  done
13821fi
13822
13823if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13824  set dummy gdc
13825  if test $build = $target ; then
13826    GDC_FOR_TARGET="$2"
13827  else
13828    GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13829  fi
13830else
13831  GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13832fi
13833
13834
13835
13836cat > conftest.c << \EOF
13837#ifdef __GNUC__
13838  gcc_yay;
13839#endif
13840EOF
13841if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13842  have_gcc_for_target=yes
13843else
13844  GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13845  have_gcc_for_target=no
13846fi
13847rm conftest.c
13848
13849
13850
13851
13852if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13853  if test -n "$with_build_time_tools"; then
13854    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13855$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13856    if test -x $with_build_time_tools/ar; then
13857      AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13858      ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13859      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13860$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13861    else
13862      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13863$as_echo "no" >&6; }
13864    fi
13865  elif test $build != $host && test $have_gcc_for_target = yes; then
13866    AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13867    test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13868    test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13869  fi
13870fi
13871if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13872  # Extract the first word of "ar", so it can be a program name with args.
13873set dummy ar; ac_word=$2
13874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13875$as_echo_n "checking for $ac_word... " >&6; }
13876if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13877  $as_echo_n "(cached) " >&6
13878else
13879  case $AR_FOR_TARGET in
13880  [\\/]* | ?:[\\/]*)
13881  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13882  ;;
13883  *)
13884  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13885for as_dir in $gcc_cv_tool_dirs
13886do
13887  IFS=$as_save_IFS
13888  test -z "$as_dir" && as_dir=.
13889    for ac_exec_ext in '' $ac_executable_extensions; do
13890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13891    ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13893    break 2
13894  fi
13895done
13896  done
13897IFS=$as_save_IFS
13898
13899  ;;
13900esac
13901fi
13902AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13903if test -n "$AR_FOR_TARGET"; then
13904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13905$as_echo "$AR_FOR_TARGET" >&6; }
13906else
13907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13908$as_echo "no" >&6; }
13909fi
13910
13911
13912fi
13913if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13914
13915
13916if test -n "$AR_FOR_TARGET"; then
13917  ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13918elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13919  AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13920fi
13921
13922if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13923  for ncn_progname in ar; do
13924    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13925set dummy ${ncn_progname}; ac_word=$2
13926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13927$as_echo_n "checking for $ac_word... " >&6; }
13928if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13929  $as_echo_n "(cached) " >&6
13930else
13931  if test -n "$AR_FOR_TARGET"; then
13932  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13933else
13934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13935for as_dir in $PATH
13936do
13937  IFS=$as_save_IFS
13938  test -z "$as_dir" && as_dir=.
13939    for ac_exec_ext in '' $ac_executable_extensions; do
13940  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13941    ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13943    break 2
13944  fi
13945done
13946  done
13947IFS=$as_save_IFS
13948
13949fi
13950fi
13951AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13952if test -n "$AR_FOR_TARGET"; then
13953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13954$as_echo "$AR_FOR_TARGET" >&6; }
13955else
13956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13957$as_echo "no" >&6; }
13958fi
13959
13960
13961  done
13962fi
13963
13964if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13965  for ncn_progname in ar; do
13966    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13967$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13968    if test -x $with_build_time_tools/${ncn_progname}; then
13969      ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13970      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13971$as_echo "yes" >&6; }
13972      break
13973    else
13974      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13975$as_echo "no" >&6; }
13976    fi
13977  done
13978fi
13979
13980if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13981  for ncn_progname in ar; do
13982    if test -n "$ncn_target_tool_prefix"; then
13983      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13984set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13986$as_echo_n "checking for $ac_word... " >&6; }
13987if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13988  $as_echo_n "(cached) " >&6
13989else
13990  if test -n "$AR_FOR_TARGET"; then
13991  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13992else
13993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13994for as_dir in $PATH
13995do
13996  IFS=$as_save_IFS
13997  test -z "$as_dir" && as_dir=.
13998    for ac_exec_ext in '' $ac_executable_extensions; do
13999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14000    ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14002    break 2
14003  fi
14004done
14005  done
14006IFS=$as_save_IFS
14007
14008fi
14009fi
14010AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14011if test -n "$AR_FOR_TARGET"; then
14012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14013$as_echo "$AR_FOR_TARGET" >&6; }
14014else
14015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14016$as_echo "no" >&6; }
14017fi
14018
14019
14020    fi
14021    if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14022      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14023set dummy ${ncn_progname}; ac_word=$2
14024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14025$as_echo_n "checking for $ac_word... " >&6; }
14026if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14027  $as_echo_n "(cached) " >&6
14028else
14029  if test -n "$AR_FOR_TARGET"; then
14030  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14031else
14032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14033for as_dir in $PATH
14034do
14035  IFS=$as_save_IFS
14036  test -z "$as_dir" && as_dir=.
14037    for ac_exec_ext in '' $ac_executable_extensions; do
14038  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14039    ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14041    break 2
14042  fi
14043done
14044  done
14045IFS=$as_save_IFS
14046
14047fi
14048fi
14049AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14050if test -n "$AR_FOR_TARGET"; then
14051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14052$as_echo "$AR_FOR_TARGET" >&6; }
14053else
14054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14055$as_echo "no" >&6; }
14056fi
14057
14058
14059    fi
14060    test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14061  done
14062fi
14063
14064if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14065  set dummy ar
14066  if test $build = $target ; then
14067    AR_FOR_TARGET="$2"
14068  else
14069    AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14070  fi
14071else
14072  AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14073fi
14074
14075else
14076  AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14077fi
14078
14079
14080
14081
14082if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14083  if test -n "$with_build_time_tools"; then
14084    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14085$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14086    if test -x $with_build_time_tools/as; then
14087      AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14088      ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14089      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14090$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14091    else
14092      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14093$as_echo "no" >&6; }
14094    fi
14095  elif test $build != $host && test $have_gcc_for_target = yes; then
14096    AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14097    test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14098    test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14099  fi
14100fi
14101if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14102  # Extract the first word of "as", so it can be a program name with args.
14103set dummy as; ac_word=$2
14104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14105$as_echo_n "checking for $ac_word... " >&6; }
14106if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14107  $as_echo_n "(cached) " >&6
14108else
14109  case $AS_FOR_TARGET in
14110  [\\/]* | ?:[\\/]*)
14111  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14112  ;;
14113  *)
14114  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14115for as_dir in $gcc_cv_tool_dirs
14116do
14117  IFS=$as_save_IFS
14118  test -z "$as_dir" && as_dir=.
14119    for ac_exec_ext in '' $ac_executable_extensions; do
14120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14121    ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14123    break 2
14124  fi
14125done
14126  done
14127IFS=$as_save_IFS
14128
14129  ;;
14130esac
14131fi
14132AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14133if test -n "$AS_FOR_TARGET"; then
14134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14135$as_echo "$AS_FOR_TARGET" >&6; }
14136else
14137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138$as_echo "no" >&6; }
14139fi
14140
14141
14142fi
14143if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14144
14145
14146if test -n "$AS_FOR_TARGET"; then
14147  ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14148elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14149  AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14150fi
14151
14152if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14153  for ncn_progname in as; do
14154    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14155set dummy ${ncn_progname}; ac_word=$2
14156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14157$as_echo_n "checking for $ac_word... " >&6; }
14158if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14159  $as_echo_n "(cached) " >&6
14160else
14161  if test -n "$AS_FOR_TARGET"; then
14162  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14163else
14164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14165for as_dir in $PATH
14166do
14167  IFS=$as_save_IFS
14168  test -z "$as_dir" && as_dir=.
14169    for ac_exec_ext in '' $ac_executable_extensions; do
14170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14171    ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14173    break 2
14174  fi
14175done
14176  done
14177IFS=$as_save_IFS
14178
14179fi
14180fi
14181AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14182if test -n "$AS_FOR_TARGET"; then
14183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14184$as_echo "$AS_FOR_TARGET" >&6; }
14185else
14186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14187$as_echo "no" >&6; }
14188fi
14189
14190
14191  done
14192fi
14193
14194if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14195  for ncn_progname in as; do
14196    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14197$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14198    if test -x $with_build_time_tools/${ncn_progname}; then
14199      ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14200      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14201$as_echo "yes" >&6; }
14202      break
14203    else
14204      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14205$as_echo "no" >&6; }
14206    fi
14207  done
14208fi
14209
14210if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14211  for ncn_progname in as; do
14212    if test -n "$ncn_target_tool_prefix"; then
14213      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14214set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14216$as_echo_n "checking for $ac_word... " >&6; }
14217if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14218  $as_echo_n "(cached) " >&6
14219else
14220  if test -n "$AS_FOR_TARGET"; then
14221  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14222else
14223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14224for as_dir in $PATH
14225do
14226  IFS=$as_save_IFS
14227  test -z "$as_dir" && as_dir=.
14228    for ac_exec_ext in '' $ac_executable_extensions; do
14229  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14230    ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14232    break 2
14233  fi
14234done
14235  done
14236IFS=$as_save_IFS
14237
14238fi
14239fi
14240AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14241if test -n "$AS_FOR_TARGET"; then
14242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14243$as_echo "$AS_FOR_TARGET" >&6; }
14244else
14245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14246$as_echo "no" >&6; }
14247fi
14248
14249
14250    fi
14251    if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14252      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14253set dummy ${ncn_progname}; ac_word=$2
14254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14255$as_echo_n "checking for $ac_word... " >&6; }
14256if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14257  $as_echo_n "(cached) " >&6
14258else
14259  if test -n "$AS_FOR_TARGET"; then
14260  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14261else
14262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14263for as_dir in $PATH
14264do
14265  IFS=$as_save_IFS
14266  test -z "$as_dir" && as_dir=.
14267    for ac_exec_ext in '' $ac_executable_extensions; do
14268  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14269    ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14271    break 2
14272  fi
14273done
14274  done
14275IFS=$as_save_IFS
14276
14277fi
14278fi
14279AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14280if test -n "$AS_FOR_TARGET"; then
14281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14282$as_echo "$AS_FOR_TARGET" >&6; }
14283else
14284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14285$as_echo "no" >&6; }
14286fi
14287
14288
14289    fi
14290    test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14291  done
14292fi
14293
14294if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14295  set dummy as
14296  if test $build = $target ; then
14297    AS_FOR_TARGET="$2"
14298  else
14299    AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14300  fi
14301else
14302  AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14303fi
14304
14305else
14306  AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14307fi
14308
14309
14310
14311
14312if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14313  if test -n "$with_build_time_tools"; then
14314    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14315$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14316    if test -x $with_build_time_tools/dlltool; then
14317      DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14318      ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14319      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14320$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14321    else
14322      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14323$as_echo "no" >&6; }
14324    fi
14325  elif test $build != $host && test $have_gcc_for_target = yes; then
14326    DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14327    test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14328    test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14329  fi
14330fi
14331if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14332  # Extract the first word of "dlltool", so it can be a program name with args.
14333set dummy dlltool; ac_word=$2
14334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14335$as_echo_n "checking for $ac_word... " >&6; }
14336if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14337  $as_echo_n "(cached) " >&6
14338else
14339  case $DLLTOOL_FOR_TARGET in
14340  [\\/]* | ?:[\\/]*)
14341  ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14342  ;;
14343  *)
14344  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14345for as_dir in $gcc_cv_tool_dirs
14346do
14347  IFS=$as_save_IFS
14348  test -z "$as_dir" && as_dir=.
14349    for ac_exec_ext in '' $ac_executable_extensions; do
14350  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14351    ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14353    break 2
14354  fi
14355done
14356  done
14357IFS=$as_save_IFS
14358
14359  ;;
14360esac
14361fi
14362DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14363if test -n "$DLLTOOL_FOR_TARGET"; then
14364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14365$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14366else
14367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14368$as_echo "no" >&6; }
14369fi
14370
14371
14372fi
14373if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14374
14375
14376if test -n "$DLLTOOL_FOR_TARGET"; then
14377  ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14378elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14379  DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14380fi
14381
14382if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14383  for ncn_progname in dlltool; do
14384    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14385set dummy ${ncn_progname}; ac_word=$2
14386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14387$as_echo_n "checking for $ac_word... " >&6; }
14388if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14389  $as_echo_n "(cached) " >&6
14390else
14391  if test -n "$DLLTOOL_FOR_TARGET"; then
14392  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14393else
14394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395for as_dir in $PATH
14396do
14397  IFS=$as_save_IFS
14398  test -z "$as_dir" && as_dir=.
14399    for ac_exec_ext in '' $ac_executable_extensions; do
14400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14401    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14403    break 2
14404  fi
14405done
14406  done
14407IFS=$as_save_IFS
14408
14409fi
14410fi
14411DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14412if test -n "$DLLTOOL_FOR_TARGET"; then
14413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14414$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14415else
14416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417$as_echo "no" >&6; }
14418fi
14419
14420
14421  done
14422fi
14423
14424if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14425  for ncn_progname in dlltool; do
14426    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14427$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14428    if test -x $with_build_time_tools/${ncn_progname}; then
14429      ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14430      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14431$as_echo "yes" >&6; }
14432      break
14433    else
14434      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14435$as_echo "no" >&6; }
14436    fi
14437  done
14438fi
14439
14440if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14441  for ncn_progname in dlltool; do
14442    if test -n "$ncn_target_tool_prefix"; then
14443      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14444set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14446$as_echo_n "checking for $ac_word... " >&6; }
14447if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14448  $as_echo_n "(cached) " >&6
14449else
14450  if test -n "$DLLTOOL_FOR_TARGET"; then
14451  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14452else
14453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14454for as_dir in $PATH
14455do
14456  IFS=$as_save_IFS
14457  test -z "$as_dir" && as_dir=.
14458    for ac_exec_ext in '' $ac_executable_extensions; do
14459  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14460    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14462    break 2
14463  fi
14464done
14465  done
14466IFS=$as_save_IFS
14467
14468fi
14469fi
14470DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14471if test -n "$DLLTOOL_FOR_TARGET"; then
14472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14473$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14474else
14475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14476$as_echo "no" >&6; }
14477fi
14478
14479
14480    fi
14481    if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14482      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14483set dummy ${ncn_progname}; ac_word=$2
14484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14485$as_echo_n "checking for $ac_word... " >&6; }
14486if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14487  $as_echo_n "(cached) " >&6
14488else
14489  if test -n "$DLLTOOL_FOR_TARGET"; then
14490  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14491else
14492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14493for as_dir in $PATH
14494do
14495  IFS=$as_save_IFS
14496  test -z "$as_dir" && as_dir=.
14497    for ac_exec_ext in '' $ac_executable_extensions; do
14498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14499    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14501    break 2
14502  fi
14503done
14504  done
14505IFS=$as_save_IFS
14506
14507fi
14508fi
14509DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14510if test -n "$DLLTOOL_FOR_TARGET"; then
14511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14512$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14513else
14514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14515$as_echo "no" >&6; }
14516fi
14517
14518
14519    fi
14520    test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14521  done
14522fi
14523
14524if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14525  set dummy dlltool
14526  if test $build = $target ; then
14527    DLLTOOL_FOR_TARGET="$2"
14528  else
14529    DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14530  fi
14531else
14532  DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14533fi
14534
14535else
14536  DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14537fi
14538
14539
14540
14541
14542if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14543  if test -n "$with_build_time_tools"; then
14544    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14545$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14546    if test -x $with_build_time_tools/dsymutil; then
14547      DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14548      ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14549      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14550$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14551    else
14552      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14553$as_echo "no" >&6; }
14554    fi
14555  elif test $build != $host && test $have_gcc_for_target = yes; then
14556    DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14557    test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14558    test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14559  fi
14560fi
14561if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14562  # Extract the first word of "dsymutil", so it can be a program name with args.
14563set dummy dsymutil; ac_word=$2
14564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14565$as_echo_n "checking for $ac_word... " >&6; }
14566if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14567  $as_echo_n "(cached) " >&6
14568else
14569  case $DSYMUTIL_FOR_TARGET in
14570  [\\/]* | ?:[\\/]*)
14571  ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14572  ;;
14573  *)
14574  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14575for as_dir in $gcc_cv_tool_dirs
14576do
14577  IFS=$as_save_IFS
14578  test -z "$as_dir" && as_dir=.
14579    for ac_exec_ext in '' $ac_executable_extensions; do
14580  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14581    ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14583    break 2
14584  fi
14585done
14586  done
14587IFS=$as_save_IFS
14588
14589  ;;
14590esac
14591fi
14592DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14593if test -n "$DSYMUTIL_FOR_TARGET"; then
14594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14595$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14596else
14597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14598$as_echo "no" >&6; }
14599fi
14600
14601
14602fi
14603if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14604
14605
14606if test -n "$DSYMUTIL_FOR_TARGET"; then
14607  ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14608elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14609  DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14610fi
14611
14612if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14613  for ncn_progname in dsymutil; do
14614    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14615set dummy ${ncn_progname}; ac_word=$2
14616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14617$as_echo_n "checking for $ac_word... " >&6; }
14618if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14619  $as_echo_n "(cached) " >&6
14620else
14621  if test -n "$DSYMUTIL_FOR_TARGET"; then
14622  ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14623else
14624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625for as_dir in $PATH
14626do
14627  IFS=$as_save_IFS
14628  test -z "$as_dir" && as_dir=.
14629    for ac_exec_ext in '' $ac_executable_extensions; do
14630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14631    ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14633    break 2
14634  fi
14635done
14636  done
14637IFS=$as_save_IFS
14638
14639fi
14640fi
14641DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14642if test -n "$DSYMUTIL_FOR_TARGET"; then
14643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14644$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14645else
14646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14647$as_echo "no" >&6; }
14648fi
14649
14650
14651  done
14652fi
14653
14654if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14655  for ncn_progname in dsymutil; do
14656    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14657$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14658    if test -x $with_build_time_tools/${ncn_progname}; then
14659      ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14660      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14661$as_echo "yes" >&6; }
14662      break
14663    else
14664      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14665$as_echo "no" >&6; }
14666    fi
14667  done
14668fi
14669
14670if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14671  for ncn_progname in dsymutil; do
14672    if test -n "$ncn_target_tool_prefix"; then
14673      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14674set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14676$as_echo_n "checking for $ac_word... " >&6; }
14677if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14678  $as_echo_n "(cached) " >&6
14679else
14680  if test -n "$DSYMUTIL_FOR_TARGET"; then
14681  ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14682else
14683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14684for as_dir in $PATH
14685do
14686  IFS=$as_save_IFS
14687  test -z "$as_dir" && as_dir=.
14688    for ac_exec_ext in '' $ac_executable_extensions; do
14689  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14690    ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14692    break 2
14693  fi
14694done
14695  done
14696IFS=$as_save_IFS
14697
14698fi
14699fi
14700DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14701if test -n "$DSYMUTIL_FOR_TARGET"; then
14702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14703$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14704else
14705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14706$as_echo "no" >&6; }
14707fi
14708
14709
14710    fi
14711    if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14712      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14713set dummy ${ncn_progname}; ac_word=$2
14714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14715$as_echo_n "checking for $ac_word... " >&6; }
14716if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14717  $as_echo_n "(cached) " >&6
14718else
14719  if test -n "$DSYMUTIL_FOR_TARGET"; then
14720  ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14721else
14722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14723for as_dir in $PATH
14724do
14725  IFS=$as_save_IFS
14726  test -z "$as_dir" && as_dir=.
14727    for ac_exec_ext in '' $ac_executable_extensions; do
14728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14729    ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14731    break 2
14732  fi
14733done
14734  done
14735IFS=$as_save_IFS
14736
14737fi
14738fi
14739DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14740if test -n "$DSYMUTIL_FOR_TARGET"; then
14741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14742$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14743else
14744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14745$as_echo "no" >&6; }
14746fi
14747
14748
14749    fi
14750    test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14751  done
14752fi
14753
14754if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14755  set dummy dsymutil
14756  if test $build = $target ; then
14757    DSYMUTIL_FOR_TARGET="$2"
14758  else
14759    DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14760  fi
14761else
14762  DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14763fi
14764
14765else
14766  DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14767fi
14768
14769
14770
14771
14772if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14773  if test -n "$with_build_time_tools"; then
14774    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14775$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14776    if test -x $with_build_time_tools/ld; then
14777      LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14778      ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14779      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14780$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14781    else
14782      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14783$as_echo "no" >&6; }
14784    fi
14785  elif test $build != $host && test $have_gcc_for_target = yes; then
14786    LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14787    test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14788    test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14789  fi
14790fi
14791if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14792  # Extract the first word of "ld", so it can be a program name with args.
14793set dummy ld; ac_word=$2
14794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14795$as_echo_n "checking for $ac_word... " >&6; }
14796if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14797  $as_echo_n "(cached) " >&6
14798else
14799  case $LD_FOR_TARGET in
14800  [\\/]* | ?:[\\/]*)
14801  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14802  ;;
14803  *)
14804  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14805for as_dir in $gcc_cv_tool_dirs
14806do
14807  IFS=$as_save_IFS
14808  test -z "$as_dir" && as_dir=.
14809    for ac_exec_ext in '' $ac_executable_extensions; do
14810  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14811    ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14812    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14813    break 2
14814  fi
14815done
14816  done
14817IFS=$as_save_IFS
14818
14819  ;;
14820esac
14821fi
14822LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14823if test -n "$LD_FOR_TARGET"; then
14824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14825$as_echo "$LD_FOR_TARGET" >&6; }
14826else
14827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14828$as_echo "no" >&6; }
14829fi
14830
14831
14832fi
14833if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14834
14835
14836if test -n "$LD_FOR_TARGET"; then
14837  ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14838elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14839  LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14840fi
14841
14842if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14843  for ncn_progname in ld; do
14844    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14845set dummy ${ncn_progname}; ac_word=$2
14846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14847$as_echo_n "checking for $ac_word... " >&6; }
14848if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14849  $as_echo_n "(cached) " >&6
14850else
14851  if test -n "$LD_FOR_TARGET"; then
14852  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14853else
14854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14855for as_dir in $PATH
14856do
14857  IFS=$as_save_IFS
14858  test -z "$as_dir" && as_dir=.
14859    for ac_exec_ext in '' $ac_executable_extensions; do
14860  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14861    ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14863    break 2
14864  fi
14865done
14866  done
14867IFS=$as_save_IFS
14868
14869fi
14870fi
14871LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14872if test -n "$LD_FOR_TARGET"; then
14873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14874$as_echo "$LD_FOR_TARGET" >&6; }
14875else
14876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14877$as_echo "no" >&6; }
14878fi
14879
14880
14881  done
14882fi
14883
14884if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14885  for ncn_progname in ld; do
14886    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14887$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14888    if test -x $with_build_time_tools/${ncn_progname}; then
14889      ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14890      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14891$as_echo "yes" >&6; }
14892      break
14893    else
14894      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14895$as_echo "no" >&6; }
14896    fi
14897  done
14898fi
14899
14900if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14901  for ncn_progname in ld; do
14902    if test -n "$ncn_target_tool_prefix"; then
14903      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14904set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14906$as_echo_n "checking for $ac_word... " >&6; }
14907if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14908  $as_echo_n "(cached) " >&6
14909else
14910  if test -n "$LD_FOR_TARGET"; then
14911  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14912else
14913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14914for as_dir in $PATH
14915do
14916  IFS=$as_save_IFS
14917  test -z "$as_dir" && as_dir=.
14918    for ac_exec_ext in '' $ac_executable_extensions; do
14919  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14920    ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14922    break 2
14923  fi
14924done
14925  done
14926IFS=$as_save_IFS
14927
14928fi
14929fi
14930LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14931if test -n "$LD_FOR_TARGET"; then
14932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14933$as_echo "$LD_FOR_TARGET" >&6; }
14934else
14935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14936$as_echo "no" >&6; }
14937fi
14938
14939
14940    fi
14941    if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14942      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14943set dummy ${ncn_progname}; ac_word=$2
14944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14945$as_echo_n "checking for $ac_word... " >&6; }
14946if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14947  $as_echo_n "(cached) " >&6
14948else
14949  if test -n "$LD_FOR_TARGET"; then
14950  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14951else
14952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14953for as_dir in $PATH
14954do
14955  IFS=$as_save_IFS
14956  test -z "$as_dir" && as_dir=.
14957    for ac_exec_ext in '' $ac_executable_extensions; do
14958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14959    ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14961    break 2
14962  fi
14963done
14964  done
14965IFS=$as_save_IFS
14966
14967fi
14968fi
14969LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14970if test -n "$LD_FOR_TARGET"; then
14971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14972$as_echo "$LD_FOR_TARGET" >&6; }
14973else
14974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14975$as_echo "no" >&6; }
14976fi
14977
14978
14979    fi
14980    test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14981  done
14982fi
14983
14984if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14985  set dummy ld
14986  if test $build = $target ; then
14987    LD_FOR_TARGET="$2"
14988  else
14989    LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14990  fi
14991else
14992  LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14993fi
14994
14995else
14996  LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14997fi
14998
14999
15000
15001
15002if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15003  if test -n "$with_build_time_tools"; then
15004    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15005$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15006    if test -x $with_build_time_tools/lipo; then
15007      LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15008      ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15009      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15010$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15011    else
15012      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15013$as_echo "no" >&6; }
15014    fi
15015  elif test $build != $host && test $have_gcc_for_target = yes; then
15016    LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15017    test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15018    test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15019  fi
15020fi
15021if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15022  # Extract the first word of "lipo", so it can be a program name with args.
15023set dummy lipo; ac_word=$2
15024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15025$as_echo_n "checking for $ac_word... " >&6; }
15026if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15027  $as_echo_n "(cached) " >&6
15028else
15029  case $LIPO_FOR_TARGET in
15030  [\\/]* | ?:[\\/]*)
15031  ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15032  ;;
15033  *)
15034  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15035for as_dir in $gcc_cv_tool_dirs
15036do
15037  IFS=$as_save_IFS
15038  test -z "$as_dir" && as_dir=.
15039    for ac_exec_ext in '' $ac_executable_extensions; do
15040  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15041    ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15043    break 2
15044  fi
15045done
15046  done
15047IFS=$as_save_IFS
15048
15049  ;;
15050esac
15051fi
15052LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15053if test -n "$LIPO_FOR_TARGET"; then
15054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15055$as_echo "$LIPO_FOR_TARGET" >&6; }
15056else
15057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15058$as_echo "no" >&6; }
15059fi
15060
15061
15062fi
15063if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15064
15065
15066if test -n "$LIPO_FOR_TARGET"; then
15067  ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15068elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15069  LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15070fi
15071
15072if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15073  for ncn_progname in lipo; do
15074    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15075set dummy ${ncn_progname}; ac_word=$2
15076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15077$as_echo_n "checking for $ac_word... " >&6; }
15078if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15079  $as_echo_n "(cached) " >&6
15080else
15081  if test -n "$LIPO_FOR_TARGET"; then
15082  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15083else
15084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15085for as_dir in $PATH
15086do
15087  IFS=$as_save_IFS
15088  test -z "$as_dir" && as_dir=.
15089    for ac_exec_ext in '' $ac_executable_extensions; do
15090  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15091    ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15093    break 2
15094  fi
15095done
15096  done
15097IFS=$as_save_IFS
15098
15099fi
15100fi
15101LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15102if test -n "$LIPO_FOR_TARGET"; then
15103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15104$as_echo "$LIPO_FOR_TARGET" >&6; }
15105else
15106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15107$as_echo "no" >&6; }
15108fi
15109
15110
15111  done
15112fi
15113
15114if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15115  for ncn_progname in lipo; do
15116    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15117$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15118    if test -x $with_build_time_tools/${ncn_progname}; then
15119      ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15120      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15121$as_echo "yes" >&6; }
15122      break
15123    else
15124      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15125$as_echo "no" >&6; }
15126    fi
15127  done
15128fi
15129
15130if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15131  for ncn_progname in lipo; do
15132    if test -n "$ncn_target_tool_prefix"; then
15133      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15134set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15136$as_echo_n "checking for $ac_word... " >&6; }
15137if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15138  $as_echo_n "(cached) " >&6
15139else
15140  if test -n "$LIPO_FOR_TARGET"; then
15141  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15142else
15143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15144for as_dir in $PATH
15145do
15146  IFS=$as_save_IFS
15147  test -z "$as_dir" && as_dir=.
15148    for ac_exec_ext in '' $ac_executable_extensions; do
15149  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15150    ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15152    break 2
15153  fi
15154done
15155  done
15156IFS=$as_save_IFS
15157
15158fi
15159fi
15160LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15161if test -n "$LIPO_FOR_TARGET"; then
15162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15163$as_echo "$LIPO_FOR_TARGET" >&6; }
15164else
15165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15166$as_echo "no" >&6; }
15167fi
15168
15169
15170    fi
15171    if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15172      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15173set dummy ${ncn_progname}; ac_word=$2
15174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15175$as_echo_n "checking for $ac_word... " >&6; }
15176if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15177  $as_echo_n "(cached) " >&6
15178else
15179  if test -n "$LIPO_FOR_TARGET"; then
15180  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15181else
15182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15183for as_dir in $PATH
15184do
15185  IFS=$as_save_IFS
15186  test -z "$as_dir" && as_dir=.
15187    for ac_exec_ext in '' $ac_executable_extensions; do
15188  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15189    ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15191    break 2
15192  fi
15193done
15194  done
15195IFS=$as_save_IFS
15196
15197fi
15198fi
15199LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15200if test -n "$LIPO_FOR_TARGET"; then
15201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15202$as_echo "$LIPO_FOR_TARGET" >&6; }
15203else
15204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15205$as_echo "no" >&6; }
15206fi
15207
15208
15209    fi
15210    test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15211  done
15212fi
15213
15214if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15215  set dummy lipo
15216  if test $build = $target ; then
15217    LIPO_FOR_TARGET="$2"
15218  else
15219    LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15220  fi
15221else
15222  LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15223fi
15224
15225else
15226  LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15227fi
15228
15229
15230
15231
15232if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15233  if test -n "$with_build_time_tools"; then
15234    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15235$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15236    if test -x $with_build_time_tools/nm; then
15237      NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15238      ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15239      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15240$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15241    else
15242      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15243$as_echo "no" >&6; }
15244    fi
15245  elif test $build != $host && test $have_gcc_for_target = yes; then
15246    NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15247    test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15248    test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15249  fi
15250fi
15251if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15252  # Extract the first word of "nm", so it can be a program name with args.
15253set dummy nm; ac_word=$2
15254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15255$as_echo_n "checking for $ac_word... " >&6; }
15256if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15257  $as_echo_n "(cached) " >&6
15258else
15259  case $NM_FOR_TARGET in
15260  [\\/]* | ?:[\\/]*)
15261  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15262  ;;
15263  *)
15264  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15265for as_dir in $gcc_cv_tool_dirs
15266do
15267  IFS=$as_save_IFS
15268  test -z "$as_dir" && as_dir=.
15269    for ac_exec_ext in '' $ac_executable_extensions; do
15270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15271    ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15273    break 2
15274  fi
15275done
15276  done
15277IFS=$as_save_IFS
15278
15279  ;;
15280esac
15281fi
15282NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15283if test -n "$NM_FOR_TARGET"; then
15284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15285$as_echo "$NM_FOR_TARGET" >&6; }
15286else
15287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15288$as_echo "no" >&6; }
15289fi
15290
15291
15292fi
15293if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15294
15295
15296if test -n "$NM_FOR_TARGET"; then
15297  ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15298elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15299  NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15300fi
15301
15302if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15303  for ncn_progname in nm; do
15304    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15305set dummy ${ncn_progname}; ac_word=$2
15306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15307$as_echo_n "checking for $ac_word... " >&6; }
15308if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15309  $as_echo_n "(cached) " >&6
15310else
15311  if test -n "$NM_FOR_TARGET"; then
15312  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15313else
15314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15315for as_dir in $PATH
15316do
15317  IFS=$as_save_IFS
15318  test -z "$as_dir" && as_dir=.
15319    for ac_exec_ext in '' $ac_executable_extensions; do
15320  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15321    ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15323    break 2
15324  fi
15325done
15326  done
15327IFS=$as_save_IFS
15328
15329fi
15330fi
15331NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15332if test -n "$NM_FOR_TARGET"; then
15333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15334$as_echo "$NM_FOR_TARGET" >&6; }
15335else
15336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15337$as_echo "no" >&6; }
15338fi
15339
15340
15341  done
15342fi
15343
15344if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15345  for ncn_progname in nm; do
15346    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15347$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15348    if test -x $with_build_time_tools/${ncn_progname}; then
15349      ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15350      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15351$as_echo "yes" >&6; }
15352      break
15353    else
15354      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15355$as_echo "no" >&6; }
15356    fi
15357  done
15358fi
15359
15360if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15361  for ncn_progname in nm; do
15362    if test -n "$ncn_target_tool_prefix"; then
15363      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15364set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15366$as_echo_n "checking for $ac_word... " >&6; }
15367if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15368  $as_echo_n "(cached) " >&6
15369else
15370  if test -n "$NM_FOR_TARGET"; then
15371  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15372else
15373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15374for as_dir in $PATH
15375do
15376  IFS=$as_save_IFS
15377  test -z "$as_dir" && as_dir=.
15378    for ac_exec_ext in '' $ac_executable_extensions; do
15379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15380    ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15382    break 2
15383  fi
15384done
15385  done
15386IFS=$as_save_IFS
15387
15388fi
15389fi
15390NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15391if test -n "$NM_FOR_TARGET"; then
15392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15393$as_echo "$NM_FOR_TARGET" >&6; }
15394else
15395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15396$as_echo "no" >&6; }
15397fi
15398
15399
15400    fi
15401    if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15402      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15403set dummy ${ncn_progname}; ac_word=$2
15404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15405$as_echo_n "checking for $ac_word... " >&6; }
15406if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15407  $as_echo_n "(cached) " >&6
15408else
15409  if test -n "$NM_FOR_TARGET"; then
15410  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15411else
15412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15413for as_dir in $PATH
15414do
15415  IFS=$as_save_IFS
15416  test -z "$as_dir" && as_dir=.
15417    for ac_exec_ext in '' $ac_executable_extensions; do
15418  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15419    ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15421    break 2
15422  fi
15423done
15424  done
15425IFS=$as_save_IFS
15426
15427fi
15428fi
15429NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15430if test -n "$NM_FOR_TARGET"; then
15431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15432$as_echo "$NM_FOR_TARGET" >&6; }
15433else
15434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15435$as_echo "no" >&6; }
15436fi
15437
15438
15439    fi
15440    test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15441  done
15442fi
15443
15444if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15445  set dummy nm
15446  if test $build = $target ; then
15447    NM_FOR_TARGET="$2"
15448  else
15449    NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15450  fi
15451else
15452  NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15453fi
15454
15455else
15456  NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15457fi
15458
15459
15460
15461
15462if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15463  if test -n "$with_build_time_tools"; then
15464    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15465$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15466    if test -x $with_build_time_tools/objcopy; then
15467      OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15468      ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15469      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15470$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15471    else
15472      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15473$as_echo "no" >&6; }
15474    fi
15475  elif test $build != $host && test $have_gcc_for_target = yes; then
15476    OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15477    test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15478    test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15479  fi
15480fi
15481if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15482  # Extract the first word of "objcopy", so it can be a program name with args.
15483set dummy objcopy; ac_word=$2
15484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15485$as_echo_n "checking for $ac_word... " >&6; }
15486if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15487  $as_echo_n "(cached) " >&6
15488else
15489  case $OBJCOPY_FOR_TARGET in
15490  [\\/]* | ?:[\\/]*)
15491  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15492  ;;
15493  *)
15494  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15495for as_dir in $gcc_cv_tool_dirs
15496do
15497  IFS=$as_save_IFS
15498  test -z "$as_dir" && as_dir=.
15499    for ac_exec_ext in '' $ac_executable_extensions; do
15500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15501    ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15503    break 2
15504  fi
15505done
15506  done
15507IFS=$as_save_IFS
15508
15509  ;;
15510esac
15511fi
15512OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15513if test -n "$OBJCOPY_FOR_TARGET"; then
15514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15515$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15516else
15517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15518$as_echo "no" >&6; }
15519fi
15520
15521
15522fi
15523if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15524
15525
15526if test -n "$OBJCOPY_FOR_TARGET"; then
15527  ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15528elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15529  OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15530fi
15531
15532if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15533  for ncn_progname in objcopy; do
15534    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15535set dummy ${ncn_progname}; ac_word=$2
15536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15537$as_echo_n "checking for $ac_word... " >&6; }
15538if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15539  $as_echo_n "(cached) " >&6
15540else
15541  if test -n "$OBJCOPY_FOR_TARGET"; then
15542  ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15543else
15544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15545for as_dir in $PATH
15546do
15547  IFS=$as_save_IFS
15548  test -z "$as_dir" && as_dir=.
15549    for ac_exec_ext in '' $ac_executable_extensions; do
15550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15551    ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15553    break 2
15554  fi
15555done
15556  done
15557IFS=$as_save_IFS
15558
15559fi
15560fi
15561OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15562if test -n "$OBJCOPY_FOR_TARGET"; then
15563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15564$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15565else
15566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15567$as_echo "no" >&6; }
15568fi
15569
15570
15571  done
15572fi
15573
15574if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15575  for ncn_progname in objcopy; do
15576    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15577$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15578    if test -x $with_build_time_tools/${ncn_progname}; then
15579      ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15580      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15581$as_echo "yes" >&6; }
15582      break
15583    else
15584      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15585$as_echo "no" >&6; }
15586    fi
15587  done
15588fi
15589
15590if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15591  for ncn_progname in objcopy; do
15592    if test -n "$ncn_target_tool_prefix"; then
15593      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15594set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15596$as_echo_n "checking for $ac_word... " >&6; }
15597if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15598  $as_echo_n "(cached) " >&6
15599else
15600  if test -n "$OBJCOPY_FOR_TARGET"; then
15601  ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15602else
15603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15604for as_dir in $PATH
15605do
15606  IFS=$as_save_IFS
15607  test -z "$as_dir" && as_dir=.
15608    for ac_exec_ext in '' $ac_executable_extensions; do
15609  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15610    ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15611    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15612    break 2
15613  fi
15614done
15615  done
15616IFS=$as_save_IFS
15617
15618fi
15619fi
15620OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15621if test -n "$OBJCOPY_FOR_TARGET"; then
15622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15623$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15624else
15625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15626$as_echo "no" >&6; }
15627fi
15628
15629
15630    fi
15631    if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15632      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15633set dummy ${ncn_progname}; ac_word=$2
15634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15635$as_echo_n "checking for $ac_word... " >&6; }
15636if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15637  $as_echo_n "(cached) " >&6
15638else
15639  if test -n "$OBJCOPY_FOR_TARGET"; then
15640  ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15641else
15642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15643for as_dir in $PATH
15644do
15645  IFS=$as_save_IFS
15646  test -z "$as_dir" && as_dir=.
15647    for ac_exec_ext in '' $ac_executable_extensions; do
15648  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15649    ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15651    break 2
15652  fi
15653done
15654  done
15655IFS=$as_save_IFS
15656
15657fi
15658fi
15659OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15660if test -n "$OBJCOPY_FOR_TARGET"; then
15661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15662$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15663else
15664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15665$as_echo "no" >&6; }
15666fi
15667
15668
15669    fi
15670    test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15671  done
15672fi
15673
15674if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15675  set dummy objcopy
15676  if test $build = $target ; then
15677    OBJCOPY_FOR_TARGET="$2"
15678  else
15679    OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15680  fi
15681else
15682  OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15683fi
15684
15685else
15686  OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15687fi
15688
15689
15690
15691
15692if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15693  if test -n "$with_build_time_tools"; then
15694    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15695$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15696    if test -x $with_build_time_tools/objdump; then
15697      OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15698      ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15699      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15700$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15701    else
15702      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15703$as_echo "no" >&6; }
15704    fi
15705  elif test $build != $host && test $have_gcc_for_target = yes; then
15706    OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15707    test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15708    test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15709  fi
15710fi
15711if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15712  # Extract the first word of "objdump", so it can be a program name with args.
15713set dummy objdump; ac_word=$2
15714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15715$as_echo_n "checking for $ac_word... " >&6; }
15716if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15717  $as_echo_n "(cached) " >&6
15718else
15719  case $OBJDUMP_FOR_TARGET in
15720  [\\/]* | ?:[\\/]*)
15721  ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15722  ;;
15723  *)
15724  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15725for as_dir in $gcc_cv_tool_dirs
15726do
15727  IFS=$as_save_IFS
15728  test -z "$as_dir" && as_dir=.
15729    for ac_exec_ext in '' $ac_executable_extensions; do
15730  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15731    ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15733    break 2
15734  fi
15735done
15736  done
15737IFS=$as_save_IFS
15738
15739  ;;
15740esac
15741fi
15742OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15743if test -n "$OBJDUMP_FOR_TARGET"; then
15744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15745$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15746else
15747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15748$as_echo "no" >&6; }
15749fi
15750
15751
15752fi
15753if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15754
15755
15756if test -n "$OBJDUMP_FOR_TARGET"; then
15757  ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15758elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15759  OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15760fi
15761
15762if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15763  for ncn_progname in objdump; do
15764    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15765set dummy ${ncn_progname}; ac_word=$2
15766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15767$as_echo_n "checking for $ac_word... " >&6; }
15768if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15769  $as_echo_n "(cached) " >&6
15770else
15771  if test -n "$OBJDUMP_FOR_TARGET"; then
15772  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15773else
15774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15775for as_dir in $PATH
15776do
15777  IFS=$as_save_IFS
15778  test -z "$as_dir" && as_dir=.
15779    for ac_exec_ext in '' $ac_executable_extensions; do
15780  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15781    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15783    break 2
15784  fi
15785done
15786  done
15787IFS=$as_save_IFS
15788
15789fi
15790fi
15791OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15792if test -n "$OBJDUMP_FOR_TARGET"; then
15793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15794$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15795else
15796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15797$as_echo "no" >&6; }
15798fi
15799
15800
15801  done
15802fi
15803
15804if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15805  for ncn_progname in objdump; do
15806    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15807$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15808    if test -x $with_build_time_tools/${ncn_progname}; then
15809      ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15810      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15811$as_echo "yes" >&6; }
15812      break
15813    else
15814      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15815$as_echo "no" >&6; }
15816    fi
15817  done
15818fi
15819
15820if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15821  for ncn_progname in objdump; do
15822    if test -n "$ncn_target_tool_prefix"; then
15823      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15824set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15826$as_echo_n "checking for $ac_word... " >&6; }
15827if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15828  $as_echo_n "(cached) " >&6
15829else
15830  if test -n "$OBJDUMP_FOR_TARGET"; then
15831  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15832else
15833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15834for as_dir in $PATH
15835do
15836  IFS=$as_save_IFS
15837  test -z "$as_dir" && as_dir=.
15838    for ac_exec_ext in '' $ac_executable_extensions; do
15839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15840    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15842    break 2
15843  fi
15844done
15845  done
15846IFS=$as_save_IFS
15847
15848fi
15849fi
15850OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15851if test -n "$OBJDUMP_FOR_TARGET"; then
15852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15853$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15854else
15855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15856$as_echo "no" >&6; }
15857fi
15858
15859
15860    fi
15861    if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15862      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15863set dummy ${ncn_progname}; ac_word=$2
15864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15865$as_echo_n "checking for $ac_word... " >&6; }
15866if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15867  $as_echo_n "(cached) " >&6
15868else
15869  if test -n "$OBJDUMP_FOR_TARGET"; then
15870  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15871else
15872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15873for as_dir in $PATH
15874do
15875  IFS=$as_save_IFS
15876  test -z "$as_dir" && as_dir=.
15877    for ac_exec_ext in '' $ac_executable_extensions; do
15878  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15879    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15881    break 2
15882  fi
15883done
15884  done
15885IFS=$as_save_IFS
15886
15887fi
15888fi
15889OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15890if test -n "$OBJDUMP_FOR_TARGET"; then
15891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15892$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15893else
15894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15895$as_echo "no" >&6; }
15896fi
15897
15898
15899    fi
15900    test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15901  done
15902fi
15903
15904if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15905  set dummy objdump
15906  if test $build = $target ; then
15907    OBJDUMP_FOR_TARGET="$2"
15908  else
15909    OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15910  fi
15911else
15912  OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15913fi
15914
15915else
15916  OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15917fi
15918
15919
15920
15921
15922if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15923  if test -n "$with_build_time_tools"; then
15924    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15925$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15926    if test -x $with_build_time_tools/otool; then
15927      OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15928      ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15929      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15930$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15931    else
15932      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15933$as_echo "no" >&6; }
15934    fi
15935  elif test $build != $host && test $have_gcc_for_target = yes; then
15936    OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15937    test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15938    test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15939  fi
15940fi
15941if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15942  # Extract the first word of "otool", so it can be a program name with args.
15943set dummy otool; ac_word=$2
15944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15945$as_echo_n "checking for $ac_word... " >&6; }
15946if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15947  $as_echo_n "(cached) " >&6
15948else
15949  case $OTOOL_FOR_TARGET in
15950  [\\/]* | ?:[\\/]*)
15951  ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15952  ;;
15953  *)
15954  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15955for as_dir in $gcc_cv_tool_dirs
15956do
15957  IFS=$as_save_IFS
15958  test -z "$as_dir" && as_dir=.
15959    for ac_exec_ext in '' $ac_executable_extensions; do
15960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15961    ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15963    break 2
15964  fi
15965done
15966  done
15967IFS=$as_save_IFS
15968
15969  ;;
15970esac
15971fi
15972OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15973if test -n "$OTOOL_FOR_TARGET"; then
15974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15975$as_echo "$OTOOL_FOR_TARGET" >&6; }
15976else
15977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15978$as_echo "no" >&6; }
15979fi
15980
15981
15982fi
15983if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15984
15985
15986if test -n "$OTOOL_FOR_TARGET"; then
15987  ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15988elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15989  OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15990fi
15991
15992if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15993  for ncn_progname in otool; do
15994    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15995set dummy ${ncn_progname}; ac_word=$2
15996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15997$as_echo_n "checking for $ac_word... " >&6; }
15998if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15999  $as_echo_n "(cached) " >&6
16000else
16001  if test -n "$OTOOL_FOR_TARGET"; then
16002  ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16003else
16004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16005for as_dir in $PATH
16006do
16007  IFS=$as_save_IFS
16008  test -z "$as_dir" && as_dir=.
16009    for ac_exec_ext in '' $ac_executable_extensions; do
16010  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16011    ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16013    break 2
16014  fi
16015done
16016  done
16017IFS=$as_save_IFS
16018
16019fi
16020fi
16021OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16022if test -n "$OTOOL_FOR_TARGET"; then
16023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16024$as_echo "$OTOOL_FOR_TARGET" >&6; }
16025else
16026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16027$as_echo "no" >&6; }
16028fi
16029
16030
16031  done
16032fi
16033
16034if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16035  for ncn_progname in otool; do
16036    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16037$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16038    if test -x $with_build_time_tools/${ncn_progname}; then
16039      ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16040      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16041$as_echo "yes" >&6; }
16042      break
16043    else
16044      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16045$as_echo "no" >&6; }
16046    fi
16047  done
16048fi
16049
16050if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16051  for ncn_progname in otool; do
16052    if test -n "$ncn_target_tool_prefix"; then
16053      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16054set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16056$as_echo_n "checking for $ac_word... " >&6; }
16057if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16058  $as_echo_n "(cached) " >&6
16059else
16060  if test -n "$OTOOL_FOR_TARGET"; then
16061  ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16062else
16063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16064for as_dir in $PATH
16065do
16066  IFS=$as_save_IFS
16067  test -z "$as_dir" && as_dir=.
16068    for ac_exec_ext in '' $ac_executable_extensions; do
16069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16070    ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16072    break 2
16073  fi
16074done
16075  done
16076IFS=$as_save_IFS
16077
16078fi
16079fi
16080OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16081if test -n "$OTOOL_FOR_TARGET"; then
16082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16083$as_echo "$OTOOL_FOR_TARGET" >&6; }
16084else
16085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16086$as_echo "no" >&6; }
16087fi
16088
16089
16090    fi
16091    if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16092      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16093set dummy ${ncn_progname}; ac_word=$2
16094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16095$as_echo_n "checking for $ac_word... " >&6; }
16096if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16097  $as_echo_n "(cached) " >&6
16098else
16099  if test -n "$OTOOL_FOR_TARGET"; then
16100  ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16101else
16102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16103for as_dir in $PATH
16104do
16105  IFS=$as_save_IFS
16106  test -z "$as_dir" && as_dir=.
16107    for ac_exec_ext in '' $ac_executable_extensions; do
16108  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16109    ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16111    break 2
16112  fi
16113done
16114  done
16115IFS=$as_save_IFS
16116
16117fi
16118fi
16119OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16120if test -n "$OTOOL_FOR_TARGET"; then
16121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16122$as_echo "$OTOOL_FOR_TARGET" >&6; }
16123else
16124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16125$as_echo "no" >&6; }
16126fi
16127
16128
16129    fi
16130    test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16131  done
16132fi
16133
16134if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16135  set dummy otool
16136  if test $build = $target ; then
16137    OTOOL_FOR_TARGET="$2"
16138  else
16139    OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16140  fi
16141else
16142  OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16143fi
16144
16145else
16146  OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16147fi
16148
16149
16150
16151
16152if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16153  if test -n "$with_build_time_tools"; then
16154    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16155$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16156    if test -x $with_build_time_tools/ranlib; then
16157      RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16158      ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16159      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16160$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16161    else
16162      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16163$as_echo "no" >&6; }
16164    fi
16165  elif test $build != $host && test $have_gcc_for_target = yes; then
16166    RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16167    test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16168    test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16169  fi
16170fi
16171if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16172  # Extract the first word of "ranlib", so it can be a program name with args.
16173set dummy ranlib; ac_word=$2
16174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16175$as_echo_n "checking for $ac_word... " >&6; }
16176if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16177  $as_echo_n "(cached) " >&6
16178else
16179  case $RANLIB_FOR_TARGET in
16180  [\\/]* | ?:[\\/]*)
16181  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16182  ;;
16183  *)
16184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16185for as_dir in $gcc_cv_tool_dirs
16186do
16187  IFS=$as_save_IFS
16188  test -z "$as_dir" && as_dir=.
16189    for ac_exec_ext in '' $ac_executable_extensions; do
16190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16191    ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16193    break 2
16194  fi
16195done
16196  done
16197IFS=$as_save_IFS
16198
16199  ;;
16200esac
16201fi
16202RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16203if test -n "$RANLIB_FOR_TARGET"; then
16204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16205$as_echo "$RANLIB_FOR_TARGET" >&6; }
16206else
16207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16208$as_echo "no" >&6; }
16209fi
16210
16211
16212fi
16213if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16214
16215
16216if test -n "$RANLIB_FOR_TARGET"; then
16217  ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16218elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16219  RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16220fi
16221
16222if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16223  for ncn_progname in ranlib; do
16224    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16225set dummy ${ncn_progname}; ac_word=$2
16226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16227$as_echo_n "checking for $ac_word... " >&6; }
16228if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16229  $as_echo_n "(cached) " >&6
16230else
16231  if test -n "$RANLIB_FOR_TARGET"; then
16232  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16233else
16234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16235for as_dir in $PATH
16236do
16237  IFS=$as_save_IFS
16238  test -z "$as_dir" && as_dir=.
16239    for ac_exec_ext in '' $ac_executable_extensions; do
16240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16241    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16243    break 2
16244  fi
16245done
16246  done
16247IFS=$as_save_IFS
16248
16249fi
16250fi
16251RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16252if test -n "$RANLIB_FOR_TARGET"; then
16253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16254$as_echo "$RANLIB_FOR_TARGET" >&6; }
16255else
16256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16257$as_echo "no" >&6; }
16258fi
16259
16260
16261  done
16262fi
16263
16264if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16265  for ncn_progname in ranlib; do
16266    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16267$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16268    if test -x $with_build_time_tools/${ncn_progname}; then
16269      ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16270      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16271$as_echo "yes" >&6; }
16272      break
16273    else
16274      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16275$as_echo "no" >&6; }
16276    fi
16277  done
16278fi
16279
16280if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16281  for ncn_progname in ranlib; do
16282    if test -n "$ncn_target_tool_prefix"; then
16283      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16284set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16286$as_echo_n "checking for $ac_word... " >&6; }
16287if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16288  $as_echo_n "(cached) " >&6
16289else
16290  if test -n "$RANLIB_FOR_TARGET"; then
16291  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16292else
16293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16294for as_dir in $PATH
16295do
16296  IFS=$as_save_IFS
16297  test -z "$as_dir" && as_dir=.
16298    for ac_exec_ext in '' $ac_executable_extensions; do
16299  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16300    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16301    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16302    break 2
16303  fi
16304done
16305  done
16306IFS=$as_save_IFS
16307
16308fi
16309fi
16310RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16311if test -n "$RANLIB_FOR_TARGET"; then
16312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16313$as_echo "$RANLIB_FOR_TARGET" >&6; }
16314else
16315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16316$as_echo "no" >&6; }
16317fi
16318
16319
16320    fi
16321    if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16322      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16323set dummy ${ncn_progname}; ac_word=$2
16324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16325$as_echo_n "checking for $ac_word... " >&6; }
16326if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16327  $as_echo_n "(cached) " >&6
16328else
16329  if test -n "$RANLIB_FOR_TARGET"; then
16330  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16331else
16332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16333for as_dir in $PATH
16334do
16335  IFS=$as_save_IFS
16336  test -z "$as_dir" && as_dir=.
16337    for ac_exec_ext in '' $ac_executable_extensions; do
16338  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16339    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16341    break 2
16342  fi
16343done
16344  done
16345IFS=$as_save_IFS
16346
16347fi
16348fi
16349RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16350if test -n "$RANLIB_FOR_TARGET"; then
16351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16352$as_echo "$RANLIB_FOR_TARGET" >&6; }
16353else
16354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16355$as_echo "no" >&6; }
16356fi
16357
16358
16359    fi
16360    test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16361  done
16362fi
16363
16364if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16365  set dummy ranlib
16366  if test $build = $target ; then
16367    RANLIB_FOR_TARGET="$2"
16368  else
16369    RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16370  fi
16371else
16372  RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16373fi
16374
16375else
16376  RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16377fi
16378
16379
16380
16381
16382if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16383  if test -n "$with_build_time_tools"; then
16384    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16385$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16386    if test -x $with_build_time_tools/readelf; then
16387      READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16388      ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16389      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16390$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16391    else
16392      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16393$as_echo "no" >&6; }
16394    fi
16395  elif test $build != $host && test $have_gcc_for_target = yes; then
16396    READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16397    test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16398    test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16399  fi
16400fi
16401if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16402  # Extract the first word of "readelf", so it can be a program name with args.
16403set dummy readelf; ac_word=$2
16404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16405$as_echo_n "checking for $ac_word... " >&6; }
16406if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16407  $as_echo_n "(cached) " >&6
16408else
16409  case $READELF_FOR_TARGET in
16410  [\\/]* | ?:[\\/]*)
16411  ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16412  ;;
16413  *)
16414  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16415for as_dir in $gcc_cv_tool_dirs
16416do
16417  IFS=$as_save_IFS
16418  test -z "$as_dir" && as_dir=.
16419    for ac_exec_ext in '' $ac_executable_extensions; do
16420  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16421    ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16423    break 2
16424  fi
16425done
16426  done
16427IFS=$as_save_IFS
16428
16429  ;;
16430esac
16431fi
16432READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16433if test -n "$READELF_FOR_TARGET"; then
16434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16435$as_echo "$READELF_FOR_TARGET" >&6; }
16436else
16437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16438$as_echo "no" >&6; }
16439fi
16440
16441
16442fi
16443if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16444
16445
16446if test -n "$READELF_FOR_TARGET"; then
16447  ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16448elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16449  READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16450fi
16451
16452if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16453  for ncn_progname in readelf; do
16454    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16455set dummy ${ncn_progname}; ac_word=$2
16456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16457$as_echo_n "checking for $ac_word... " >&6; }
16458if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16459  $as_echo_n "(cached) " >&6
16460else
16461  if test -n "$READELF_FOR_TARGET"; then
16462  ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16463else
16464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16465for as_dir in $PATH
16466do
16467  IFS=$as_save_IFS
16468  test -z "$as_dir" && as_dir=.
16469    for ac_exec_ext in '' $ac_executable_extensions; do
16470  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16471    ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16473    break 2
16474  fi
16475done
16476  done
16477IFS=$as_save_IFS
16478
16479fi
16480fi
16481READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16482if test -n "$READELF_FOR_TARGET"; then
16483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16484$as_echo "$READELF_FOR_TARGET" >&6; }
16485else
16486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16487$as_echo "no" >&6; }
16488fi
16489
16490
16491  done
16492fi
16493
16494if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16495  for ncn_progname in readelf; do
16496    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16497$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16498    if test -x $with_build_time_tools/${ncn_progname}; then
16499      ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16500      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16501$as_echo "yes" >&6; }
16502      break
16503    else
16504      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16505$as_echo "no" >&6; }
16506    fi
16507  done
16508fi
16509
16510if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16511  for ncn_progname in readelf; do
16512    if test -n "$ncn_target_tool_prefix"; then
16513      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16514set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16516$as_echo_n "checking for $ac_word... " >&6; }
16517if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16518  $as_echo_n "(cached) " >&6
16519else
16520  if test -n "$READELF_FOR_TARGET"; then
16521  ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16522else
16523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16524for as_dir in $PATH
16525do
16526  IFS=$as_save_IFS
16527  test -z "$as_dir" && as_dir=.
16528    for ac_exec_ext in '' $ac_executable_extensions; do
16529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16530    ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16532    break 2
16533  fi
16534done
16535  done
16536IFS=$as_save_IFS
16537
16538fi
16539fi
16540READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16541if test -n "$READELF_FOR_TARGET"; then
16542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16543$as_echo "$READELF_FOR_TARGET" >&6; }
16544else
16545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16546$as_echo "no" >&6; }
16547fi
16548
16549
16550    fi
16551    if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16552      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16553set dummy ${ncn_progname}; ac_word=$2
16554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16555$as_echo_n "checking for $ac_word... " >&6; }
16556if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16557  $as_echo_n "(cached) " >&6
16558else
16559  if test -n "$READELF_FOR_TARGET"; then
16560  ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16561else
16562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16563for as_dir in $PATH
16564do
16565  IFS=$as_save_IFS
16566  test -z "$as_dir" && as_dir=.
16567    for ac_exec_ext in '' $ac_executable_extensions; do
16568  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16569    ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16571    break 2
16572  fi
16573done
16574  done
16575IFS=$as_save_IFS
16576
16577fi
16578fi
16579READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16580if test -n "$READELF_FOR_TARGET"; then
16581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16582$as_echo "$READELF_FOR_TARGET" >&6; }
16583else
16584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16585$as_echo "no" >&6; }
16586fi
16587
16588
16589    fi
16590    test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16591  done
16592fi
16593
16594if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16595  set dummy readelf
16596  if test $build = $target ; then
16597    READELF_FOR_TARGET="$2"
16598  else
16599    READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16600  fi
16601else
16602  READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16603fi
16604
16605else
16606  READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16607fi
16608
16609
16610
16611
16612if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16613  if test -n "$with_build_time_tools"; then
16614    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16615$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16616    if test -x $with_build_time_tools/strip; then
16617      STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16618      ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16619      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16620$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16621    else
16622      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16623$as_echo "no" >&6; }
16624    fi
16625  elif test $build != $host && test $have_gcc_for_target = yes; then
16626    STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16627    test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16628    test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16629  fi
16630fi
16631if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16632  # Extract the first word of "strip", so it can be a program name with args.
16633set dummy strip; ac_word=$2
16634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16635$as_echo_n "checking for $ac_word... " >&6; }
16636if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16637  $as_echo_n "(cached) " >&6
16638else
16639  case $STRIP_FOR_TARGET in
16640  [\\/]* | ?:[\\/]*)
16641  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16642  ;;
16643  *)
16644  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16645for as_dir in $gcc_cv_tool_dirs
16646do
16647  IFS=$as_save_IFS
16648  test -z "$as_dir" && as_dir=.
16649    for ac_exec_ext in '' $ac_executable_extensions; do
16650  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16651    ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16653    break 2
16654  fi
16655done
16656  done
16657IFS=$as_save_IFS
16658
16659  ;;
16660esac
16661fi
16662STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16663if test -n "$STRIP_FOR_TARGET"; then
16664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16665$as_echo "$STRIP_FOR_TARGET" >&6; }
16666else
16667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16668$as_echo "no" >&6; }
16669fi
16670
16671
16672fi
16673if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16674
16675
16676if test -n "$STRIP_FOR_TARGET"; then
16677  ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16678elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16679  STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16680fi
16681
16682if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16683  for ncn_progname in strip; do
16684    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16685set dummy ${ncn_progname}; ac_word=$2
16686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16687$as_echo_n "checking for $ac_word... " >&6; }
16688if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16689  $as_echo_n "(cached) " >&6
16690else
16691  if test -n "$STRIP_FOR_TARGET"; then
16692  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16693else
16694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16695for as_dir in $PATH
16696do
16697  IFS=$as_save_IFS
16698  test -z "$as_dir" && as_dir=.
16699    for ac_exec_ext in '' $ac_executable_extensions; do
16700  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16701    ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16703    break 2
16704  fi
16705done
16706  done
16707IFS=$as_save_IFS
16708
16709fi
16710fi
16711STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16712if test -n "$STRIP_FOR_TARGET"; then
16713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16714$as_echo "$STRIP_FOR_TARGET" >&6; }
16715else
16716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16717$as_echo "no" >&6; }
16718fi
16719
16720
16721  done
16722fi
16723
16724if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16725  for ncn_progname in strip; do
16726    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16727$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16728    if test -x $with_build_time_tools/${ncn_progname}; then
16729      ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16730      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16731$as_echo "yes" >&6; }
16732      break
16733    else
16734      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16735$as_echo "no" >&6; }
16736    fi
16737  done
16738fi
16739
16740if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16741  for ncn_progname in strip; do
16742    if test -n "$ncn_target_tool_prefix"; then
16743      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16744set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16746$as_echo_n "checking for $ac_word... " >&6; }
16747if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16748  $as_echo_n "(cached) " >&6
16749else
16750  if test -n "$STRIP_FOR_TARGET"; then
16751  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16752else
16753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16754for as_dir in $PATH
16755do
16756  IFS=$as_save_IFS
16757  test -z "$as_dir" && as_dir=.
16758    for ac_exec_ext in '' $ac_executable_extensions; do
16759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16760    ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16762    break 2
16763  fi
16764done
16765  done
16766IFS=$as_save_IFS
16767
16768fi
16769fi
16770STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16771if test -n "$STRIP_FOR_TARGET"; then
16772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16773$as_echo "$STRIP_FOR_TARGET" >&6; }
16774else
16775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16776$as_echo "no" >&6; }
16777fi
16778
16779
16780    fi
16781    if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16782      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16783set dummy ${ncn_progname}; ac_word=$2
16784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16785$as_echo_n "checking for $ac_word... " >&6; }
16786if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16787  $as_echo_n "(cached) " >&6
16788else
16789  if test -n "$STRIP_FOR_TARGET"; then
16790  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16791else
16792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16793for as_dir in $PATH
16794do
16795  IFS=$as_save_IFS
16796  test -z "$as_dir" && as_dir=.
16797    for ac_exec_ext in '' $ac_executable_extensions; do
16798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16799    ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16801    break 2
16802  fi
16803done
16804  done
16805IFS=$as_save_IFS
16806
16807fi
16808fi
16809STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16810if test -n "$STRIP_FOR_TARGET"; then
16811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16812$as_echo "$STRIP_FOR_TARGET" >&6; }
16813else
16814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16815$as_echo "no" >&6; }
16816fi
16817
16818
16819    fi
16820    test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16821  done
16822fi
16823
16824if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16825  set dummy strip
16826  if test $build = $target ; then
16827    STRIP_FOR_TARGET="$2"
16828  else
16829    STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16830  fi
16831else
16832  STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16833fi
16834
16835else
16836  STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16837fi
16838
16839
16840
16841
16842if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16843  if test -n "$with_build_time_tools"; then
16844    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16845$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16846    if test -x $with_build_time_tools/windres; then
16847      WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16848      ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16849      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16850$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16851    else
16852      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16853$as_echo "no" >&6; }
16854    fi
16855  elif test $build != $host && test $have_gcc_for_target = yes; then
16856    WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16857    test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16858    test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16859  fi
16860fi
16861if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16862  # Extract the first word of "windres", so it can be a program name with args.
16863set dummy windres; ac_word=$2
16864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16865$as_echo_n "checking for $ac_word... " >&6; }
16866if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16867  $as_echo_n "(cached) " >&6
16868else
16869  case $WINDRES_FOR_TARGET in
16870  [\\/]* | ?:[\\/]*)
16871  ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16872  ;;
16873  *)
16874  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16875for as_dir in $gcc_cv_tool_dirs
16876do
16877  IFS=$as_save_IFS
16878  test -z "$as_dir" && as_dir=.
16879    for ac_exec_ext in '' $ac_executable_extensions; do
16880  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16881    ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16883    break 2
16884  fi
16885done
16886  done
16887IFS=$as_save_IFS
16888
16889  ;;
16890esac
16891fi
16892WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16893if test -n "$WINDRES_FOR_TARGET"; then
16894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16895$as_echo "$WINDRES_FOR_TARGET" >&6; }
16896else
16897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16898$as_echo "no" >&6; }
16899fi
16900
16901
16902fi
16903if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16904
16905
16906if test -n "$WINDRES_FOR_TARGET"; then
16907  ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16908elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16909  WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16910fi
16911
16912if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16913  for ncn_progname in windres; do
16914    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16915set dummy ${ncn_progname}; ac_word=$2
16916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16917$as_echo_n "checking for $ac_word... " >&6; }
16918if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16919  $as_echo_n "(cached) " >&6
16920else
16921  if test -n "$WINDRES_FOR_TARGET"; then
16922  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16923else
16924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16925for as_dir in $PATH
16926do
16927  IFS=$as_save_IFS
16928  test -z "$as_dir" && as_dir=.
16929    for ac_exec_ext in '' $ac_executable_extensions; do
16930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16931    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16933    break 2
16934  fi
16935done
16936  done
16937IFS=$as_save_IFS
16938
16939fi
16940fi
16941WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16942if test -n "$WINDRES_FOR_TARGET"; then
16943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16944$as_echo "$WINDRES_FOR_TARGET" >&6; }
16945else
16946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16947$as_echo "no" >&6; }
16948fi
16949
16950
16951  done
16952fi
16953
16954if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16955  for ncn_progname in windres; do
16956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16957$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16958    if test -x $with_build_time_tools/${ncn_progname}; then
16959      ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16960      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16961$as_echo "yes" >&6; }
16962      break
16963    else
16964      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16965$as_echo "no" >&6; }
16966    fi
16967  done
16968fi
16969
16970if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16971  for ncn_progname in windres; do
16972    if test -n "$ncn_target_tool_prefix"; then
16973      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16974set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16976$as_echo_n "checking for $ac_word... " >&6; }
16977if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16978  $as_echo_n "(cached) " >&6
16979else
16980  if test -n "$WINDRES_FOR_TARGET"; then
16981  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16982else
16983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16984for as_dir in $PATH
16985do
16986  IFS=$as_save_IFS
16987  test -z "$as_dir" && as_dir=.
16988    for ac_exec_ext in '' $ac_executable_extensions; do
16989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16990    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16992    break 2
16993  fi
16994done
16995  done
16996IFS=$as_save_IFS
16997
16998fi
16999fi
17000WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17001if test -n "$WINDRES_FOR_TARGET"; then
17002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17003$as_echo "$WINDRES_FOR_TARGET" >&6; }
17004else
17005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17006$as_echo "no" >&6; }
17007fi
17008
17009
17010    fi
17011    if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17012      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17013set dummy ${ncn_progname}; ac_word=$2
17014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17015$as_echo_n "checking for $ac_word... " >&6; }
17016if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17017  $as_echo_n "(cached) " >&6
17018else
17019  if test -n "$WINDRES_FOR_TARGET"; then
17020  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17021else
17022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17023for as_dir in $PATH
17024do
17025  IFS=$as_save_IFS
17026  test -z "$as_dir" && as_dir=.
17027    for ac_exec_ext in '' $ac_executable_extensions; do
17028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17029    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17031    break 2
17032  fi
17033done
17034  done
17035IFS=$as_save_IFS
17036
17037fi
17038fi
17039WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17040if test -n "$WINDRES_FOR_TARGET"; then
17041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17042$as_echo "$WINDRES_FOR_TARGET" >&6; }
17043else
17044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17045$as_echo "no" >&6; }
17046fi
17047
17048
17049    fi
17050    test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17051  done
17052fi
17053
17054if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17055  set dummy windres
17056  if test $build = $target ; then
17057    WINDRES_FOR_TARGET="$2"
17058  else
17059    WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17060  fi
17061else
17062  WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17063fi
17064
17065else
17066  WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17067fi
17068
17069
17070
17071
17072if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17073  if test -n "$with_build_time_tools"; then
17074    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17075$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17076    if test -x $with_build_time_tools/windmc; then
17077      WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17078      ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17079      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17080$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17081    else
17082      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17083$as_echo "no" >&6; }
17084    fi
17085  elif test $build != $host && test $have_gcc_for_target = yes; then
17086    WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17087    test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17088    test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17089  fi
17090fi
17091if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17092  # Extract the first word of "windmc", so it can be a program name with args.
17093set dummy windmc; ac_word=$2
17094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17095$as_echo_n "checking for $ac_word... " >&6; }
17096if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17097  $as_echo_n "(cached) " >&6
17098else
17099  case $WINDMC_FOR_TARGET in
17100  [\\/]* | ?:[\\/]*)
17101  ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17102  ;;
17103  *)
17104  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17105for as_dir in $gcc_cv_tool_dirs
17106do
17107  IFS=$as_save_IFS
17108  test -z "$as_dir" && as_dir=.
17109    for ac_exec_ext in '' $ac_executable_extensions; do
17110  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17111    ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17113    break 2
17114  fi
17115done
17116  done
17117IFS=$as_save_IFS
17118
17119  ;;
17120esac
17121fi
17122WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17123if test -n "$WINDMC_FOR_TARGET"; then
17124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17125$as_echo "$WINDMC_FOR_TARGET" >&6; }
17126else
17127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128$as_echo "no" >&6; }
17129fi
17130
17131
17132fi
17133if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17134
17135
17136if test -n "$WINDMC_FOR_TARGET"; then
17137  ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17138elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17139  WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17140fi
17141
17142if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17143  for ncn_progname in windmc; do
17144    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17145set dummy ${ncn_progname}; ac_word=$2
17146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17147$as_echo_n "checking for $ac_word... " >&6; }
17148if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17149  $as_echo_n "(cached) " >&6
17150else
17151  if test -n "$WINDMC_FOR_TARGET"; then
17152  ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17153else
17154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17155for as_dir in $PATH
17156do
17157  IFS=$as_save_IFS
17158  test -z "$as_dir" && as_dir=.
17159    for ac_exec_ext in '' $ac_executable_extensions; do
17160  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17161    ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17163    break 2
17164  fi
17165done
17166  done
17167IFS=$as_save_IFS
17168
17169fi
17170fi
17171WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17172if test -n "$WINDMC_FOR_TARGET"; then
17173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17174$as_echo "$WINDMC_FOR_TARGET" >&6; }
17175else
17176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17177$as_echo "no" >&6; }
17178fi
17179
17180
17181  done
17182fi
17183
17184if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17185  for ncn_progname in windmc; do
17186    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17187$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17188    if test -x $with_build_time_tools/${ncn_progname}; then
17189      ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17190      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17191$as_echo "yes" >&6; }
17192      break
17193    else
17194      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17195$as_echo "no" >&6; }
17196    fi
17197  done
17198fi
17199
17200if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17201  for ncn_progname in windmc; do
17202    if test -n "$ncn_target_tool_prefix"; then
17203      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17204set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17206$as_echo_n "checking for $ac_word... " >&6; }
17207if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17208  $as_echo_n "(cached) " >&6
17209else
17210  if test -n "$WINDMC_FOR_TARGET"; then
17211  ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17212else
17213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17214for as_dir in $PATH
17215do
17216  IFS=$as_save_IFS
17217  test -z "$as_dir" && as_dir=.
17218    for ac_exec_ext in '' $ac_executable_extensions; do
17219  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17220    ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17221    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17222    break 2
17223  fi
17224done
17225  done
17226IFS=$as_save_IFS
17227
17228fi
17229fi
17230WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17231if test -n "$WINDMC_FOR_TARGET"; then
17232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17233$as_echo "$WINDMC_FOR_TARGET" >&6; }
17234else
17235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17236$as_echo "no" >&6; }
17237fi
17238
17239
17240    fi
17241    if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17242      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17243set dummy ${ncn_progname}; ac_word=$2
17244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17245$as_echo_n "checking for $ac_word... " >&6; }
17246if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17247  $as_echo_n "(cached) " >&6
17248else
17249  if test -n "$WINDMC_FOR_TARGET"; then
17250  ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17251else
17252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17253for as_dir in $PATH
17254do
17255  IFS=$as_save_IFS
17256  test -z "$as_dir" && as_dir=.
17257    for ac_exec_ext in '' $ac_executable_extensions; do
17258  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17259    ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17261    break 2
17262  fi
17263done
17264  done
17265IFS=$as_save_IFS
17266
17267fi
17268fi
17269WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17270if test -n "$WINDMC_FOR_TARGET"; then
17271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17272$as_echo "$WINDMC_FOR_TARGET" >&6; }
17273else
17274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17275$as_echo "no" >&6; }
17276fi
17277
17278
17279    fi
17280    test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17281  done
17282fi
17283
17284if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17285  set dummy windmc
17286  if test $build = $target ; then
17287    WINDMC_FOR_TARGET="$2"
17288  else
17289    WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17290  fi
17291else
17292  WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17293fi
17294
17295else
17296  WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17297fi
17298
17299
17300RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17301
17302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17303$as_echo_n "checking where to find the target ar... " >&6; }
17304if test "x${build}" != "x${host}" ; then
17305  if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17306    # We already found the complete path
17307    ac_dir=`dirname $AR_FOR_TARGET`
17308    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17309$as_echo "pre-installed in $ac_dir" >&6; }
17310  else
17311    # Canadian cross, just use what we found
17312    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17313$as_echo "pre-installed" >&6; }
17314  fi
17315else
17316  ok=yes
17317  case " ${configdirs} " in
17318    *" binutils "*) ;;
17319    *) ok=no ;;
17320  esac
17321
17322  if test $ok = yes; then
17323    # An in-tree tool is available and we can use it
17324    AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17325    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17326$as_echo "just compiled" >&6; }
17327  elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17328    # We already found the complete path
17329    ac_dir=`dirname $AR_FOR_TARGET`
17330    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17331$as_echo "pre-installed in $ac_dir" >&6; }
17332  elif test "x$target" = "x$host"; then
17333    # We can use an host tool
17334    AR_FOR_TARGET='$(AR)'
17335    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17336$as_echo "host tool" >&6; }
17337  else
17338    # We need a cross tool
17339    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17340$as_echo "pre-installed" >&6; }
17341  fi
17342fi
17343
17344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17345$as_echo_n "checking where to find the target as... " >&6; }
17346if test "x${build}" != "x${host}" ; then
17347  if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17348    # We already found the complete path
17349    ac_dir=`dirname $AS_FOR_TARGET`
17350    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17351$as_echo "pre-installed in $ac_dir" >&6; }
17352  else
17353    # Canadian cross, just use what we found
17354    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17355$as_echo "pre-installed" >&6; }
17356  fi
17357else
17358  ok=yes
17359  case " ${configdirs} " in
17360    *" gas "*) ;;
17361    *) ok=no ;;
17362  esac
17363
17364  if test $ok = yes; then
17365    # An in-tree tool is available and we can use it
17366    AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17367    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17368$as_echo "just compiled" >&6; }
17369  elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17370    # We already found the complete path
17371    ac_dir=`dirname $AS_FOR_TARGET`
17372    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17373$as_echo "pre-installed in $ac_dir" >&6; }
17374  elif test "x$target" = "x$host"; then
17375    # We can use an host tool
17376    AS_FOR_TARGET='$(AS)'
17377    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17378$as_echo "host tool" >&6; }
17379  else
17380    # We need a cross tool
17381    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17382$as_echo "pre-installed" >&6; }
17383  fi
17384fi
17385
17386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17387$as_echo_n "checking where to find the target cc... " >&6; }
17388if test "x${build}" != "x${host}" ; then
17389  if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17390    # We already found the complete path
17391    ac_dir=`dirname $CC_FOR_TARGET`
17392    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17393$as_echo "pre-installed in $ac_dir" >&6; }
17394  else
17395    # Canadian cross, just use what we found
17396    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17397$as_echo "pre-installed" >&6; }
17398  fi
17399else
17400  ok=yes
17401  case " ${configdirs} " in
17402    *" gcc "*) ;;
17403    *) ok=no ;;
17404  esac
17405
17406  if test $ok = yes; then
17407    # An in-tree tool is available and we can use it
17408    CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17409    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17410$as_echo "just compiled" >&6; }
17411  elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17412    # We already found the complete path
17413    ac_dir=`dirname $CC_FOR_TARGET`
17414    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17415$as_echo "pre-installed in $ac_dir" >&6; }
17416  elif test "x$target" = "x$host"; then
17417    # We can use an host tool
17418    CC_FOR_TARGET='$(CC)'
17419    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17420$as_echo "host tool" >&6; }
17421  else
17422    # We need a cross tool
17423    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17424$as_echo "pre-installed" >&6; }
17425  fi
17426fi
17427
17428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17429$as_echo_n "checking where to find the target c++... " >&6; }
17430if test "x${build}" != "x${host}" ; then
17431  if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17432    # We already found the complete path
17433    ac_dir=`dirname $CXX_FOR_TARGET`
17434    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17435$as_echo "pre-installed in $ac_dir" >&6; }
17436  else
17437    # Canadian cross, just use what we found
17438    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17439$as_echo "pre-installed" >&6; }
17440  fi
17441else
17442  ok=yes
17443  case " ${configdirs} " in
17444    *" gcc "*) ;;
17445    *) ok=no ;;
17446  esac
17447  case ,${enable_languages}, in
17448    *,c++,*) ;;
17449    *) ok=no ;;
17450  esac
17451  if test $ok = yes; then
17452    # An in-tree tool is available and we can use it
17453    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'
17454    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17455$as_echo "just compiled" >&6; }
17456  elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17457    # We already found the complete path
17458    ac_dir=`dirname $CXX_FOR_TARGET`
17459    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17460$as_echo "pre-installed in $ac_dir" >&6; }
17461  elif test "x$target" = "x$host"; then
17462    # We can use an host tool
17463    CXX_FOR_TARGET='$(CXX)'
17464    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17465$as_echo "host tool" >&6; }
17466  else
17467    # We need a cross tool
17468    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17469$as_echo "pre-installed" >&6; }
17470  fi
17471fi
17472
17473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17474$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17475if test "x${build}" != "x${host}" ; then
17476  if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17477    # We already found the complete path
17478    ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17479    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17480$as_echo "pre-installed in $ac_dir" >&6; }
17481  else
17482    # Canadian cross, just use what we found
17483    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17484$as_echo "pre-installed" >&6; }
17485  fi
17486else
17487  ok=yes
17488  case " ${configdirs} " in
17489    *" gcc "*) ;;
17490    *) ok=no ;;
17491  esac
17492  case ,${enable_languages}, in
17493    *,c++,*) ;;
17494    *) ok=no ;;
17495  esac
17496  if test $ok = yes; then
17497    # An in-tree tool is available and we can use it
17498    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'
17499    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17500$as_echo "just compiled" >&6; }
17501  elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17502    # We already found the complete path
17503    ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17504    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17505$as_echo "pre-installed in $ac_dir" >&6; }
17506  elif test "x$target" = "x$host"; then
17507    # We can use an host tool
17508    RAW_CXX_FOR_TARGET='$(CXX)'
17509    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17510$as_echo "host tool" >&6; }
17511  else
17512    # We need a cross tool
17513    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17514$as_echo "pre-installed" >&6; }
17515  fi
17516fi
17517
17518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17519$as_echo_n "checking where to find the target dlltool... " >&6; }
17520if test "x${build}" != "x${host}" ; then
17521  if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17522    # We already found the complete path
17523    ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17524    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17525$as_echo "pre-installed in $ac_dir" >&6; }
17526  else
17527    # Canadian cross, just use what we found
17528    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17529$as_echo "pre-installed" >&6; }
17530  fi
17531else
17532  ok=yes
17533  case " ${configdirs} " in
17534    *" binutils "*) ;;
17535    *) ok=no ;;
17536  esac
17537
17538  if test $ok = yes; then
17539    # An in-tree tool is available and we can use it
17540    DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17541    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17542$as_echo "just compiled" >&6; }
17543  elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17544    # We already found the complete path
17545    ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17546    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17547$as_echo "pre-installed in $ac_dir" >&6; }
17548  elif test "x$target" = "x$host"; then
17549    # We can use an host tool
17550    DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17551    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17552$as_echo "host tool" >&6; }
17553  else
17554    # We need a cross tool
17555    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17556$as_echo "pre-installed" >&6; }
17557  fi
17558fi
17559
17560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17561$as_echo_n "checking where to find the target dsymutil... " >&6; }
17562if test "x${build}" != "x${host}" ; then
17563  if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17564    # We already found the complete path
17565    ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17566    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17567$as_echo "pre-installed in $ac_dir" >&6; }
17568  else
17569    # Canadian cross, just use what we found
17570    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17571$as_echo "pre-installed" >&6; }
17572  fi
17573else
17574  if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17575    # We already found the complete path
17576    ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17577    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17578$as_echo "pre-installed in $ac_dir" >&6; }
17579  elif test "x$target" = "x$host"; then
17580    # We can use an host tool
17581    DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17582    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17583$as_echo "host tool" >&6; }
17584  else
17585    # We need a cross tool
17586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17587$as_echo "pre-installed" >&6; }
17588  fi
17589fi
17590
17591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17592$as_echo_n "checking where to find the target gcc... " >&6; }
17593if test "x${build}" != "x${host}" ; then
17594  if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17595    # We already found the complete path
17596    ac_dir=`dirname $GCC_FOR_TARGET`
17597    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17598$as_echo "pre-installed in $ac_dir" >&6; }
17599  else
17600    # Canadian cross, just use what we found
17601    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17602$as_echo "pre-installed" >&6; }
17603  fi
17604else
17605  ok=yes
17606  case " ${configdirs} " in
17607    *" gcc "*) ;;
17608    *) ok=no ;;
17609  esac
17610
17611  if test $ok = yes; then
17612    # An in-tree tool is available and we can use it
17613    GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17614    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17615$as_echo "just compiled" >&6; }
17616  elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17617    # We already found the complete path
17618    ac_dir=`dirname $GCC_FOR_TARGET`
17619    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17620$as_echo "pre-installed in $ac_dir" >&6; }
17621  elif test "x$target" = "x$host"; then
17622    # We can use an host tool
17623    GCC_FOR_TARGET='$()'
17624    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17625$as_echo "host tool" >&6; }
17626  else
17627    # We need a cross tool
17628    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17629$as_echo "pre-installed" >&6; }
17630  fi
17631fi
17632
17633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17634$as_echo_n "checking where to find the target gfortran... " >&6; }
17635if test "x${build}" != "x${host}" ; then
17636  if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17637    # We already found the complete path
17638    ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17639    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17640$as_echo "pre-installed in $ac_dir" >&6; }
17641  else
17642    # Canadian cross, just use what we found
17643    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17644$as_echo "pre-installed" >&6; }
17645  fi
17646else
17647  ok=yes
17648  case " ${configdirs} " in
17649    *" gcc "*) ;;
17650    *) ok=no ;;
17651  esac
17652  case ,${enable_languages}, in
17653    *,fortran,*) ;;
17654    *) ok=no ;;
17655  esac
17656  if test $ok = yes; then
17657    # An in-tree tool is available and we can use it
17658    GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17659    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17660$as_echo "just compiled" >&6; }
17661  elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17662    # We already found the complete path
17663    ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17664    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17665$as_echo "pre-installed in $ac_dir" >&6; }
17666  elif test "x$target" = "x$host"; then
17667    # We can use an host tool
17668    GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17669    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17670$as_echo "host tool" >&6; }
17671  else
17672    # We need a cross tool
17673    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17674$as_echo "pre-installed" >&6; }
17675  fi
17676fi
17677
17678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17679$as_echo_n "checking where to find the target gccgo... " >&6; }
17680if test "x${build}" != "x${host}" ; then
17681  if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17682    # We already found the complete path
17683    ac_dir=`dirname $GOC_FOR_TARGET`
17684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17685$as_echo "pre-installed in $ac_dir" >&6; }
17686  else
17687    # Canadian cross, just use what we found
17688    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17689$as_echo "pre-installed" >&6; }
17690  fi
17691else
17692  ok=yes
17693  case " ${configdirs} " in
17694    *" gcc "*) ;;
17695    *) ok=no ;;
17696  esac
17697  case ,${enable_languages}, in
17698    *,go,*) ;;
17699    *) ok=no ;;
17700  esac
17701  if test $ok = yes; then
17702    # An in-tree tool is available and we can use it
17703    GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17704    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17705$as_echo "just compiled" >&6; }
17706  elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17707    # We already found the complete path
17708    ac_dir=`dirname $GOC_FOR_TARGET`
17709    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17710$as_echo "pre-installed in $ac_dir" >&6; }
17711  elif test "x$target" = "x$host"; then
17712    # We can use an host tool
17713    GOC_FOR_TARGET='$(GOC)'
17714    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17715$as_echo "host tool" >&6; }
17716  else
17717    # We need a cross tool
17718    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17719$as_echo "pre-installed" >&6; }
17720  fi
17721fi
17722
17723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17724$as_echo_n "checking where to find the target gdc... " >&6; }
17725if test "x${build}" != "x${host}" ; then
17726  if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17727    # We already found the complete path
17728    ac_dir=`dirname $GDC_FOR_TARGET`
17729    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17730$as_echo "pre-installed in $ac_dir" >&6; }
17731  else
17732    # Canadian cross, just use what we found
17733    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17734$as_echo "pre-installed" >&6; }
17735  fi
17736else
17737  ok=yes
17738  case " ${configdirs} " in
17739    *" gcc "*) ;;
17740    *) ok=no ;;
17741  esac
17742  case ,${enable_languages}, in
17743    *,d,*) ;;
17744    *) ok=no ;;
17745  esac
17746  if test $ok = yes; then
17747    # An in-tree tool is available and we can use it
17748    GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17749    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17750$as_echo "just compiled" >&6; }
17751  elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17752    # We already found the complete path
17753    ac_dir=`dirname $GDC_FOR_TARGET`
17754    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17755$as_echo "pre-installed in $ac_dir" >&6; }
17756  elif test "x$target" = "x$host"; then
17757    # We can use an host tool
17758    GDC_FOR_TARGET='$(GDC)'
17759    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17760$as_echo "host tool" >&6; }
17761  else
17762    # We need a cross tool
17763    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17764$as_echo "pre-installed" >&6; }
17765  fi
17766fi
17767
17768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17769$as_echo_n "checking where to find the target ld... " >&6; }
17770if test "x${build}" != "x${host}" ; then
17771  if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17772    # We already found the complete path
17773    ac_dir=`dirname $LD_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  else
17777    # Canadian cross, just use what we found
17778    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17779$as_echo "pre-installed" >&6; }
17780  fi
17781else
17782  ok=yes
17783  case " ${configdirs} " in
17784    *" ld "*) ;;
17785    *) ok=no ;;
17786  esac
17787
17788  if test $ok = yes; then
17789    # An in-tree tool is available and we can use it
17790    LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17791    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17792$as_echo "just compiled" >&6; }
17793  elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17794    # We already found the complete path
17795    ac_dir=`dirname $LD_FOR_TARGET`
17796    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17797$as_echo "pre-installed in $ac_dir" >&6; }
17798  elif test "x$target" = "x$host"; then
17799    # We can use an host tool
17800    LD_FOR_TARGET='$(LD)'
17801    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17802$as_echo "host tool" >&6; }
17803  else
17804    # We need a cross tool
17805    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17806$as_echo "pre-installed" >&6; }
17807  fi
17808fi
17809
17810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17811$as_echo_n "checking where to find the target lipo... " >&6; }
17812if test "x${build}" != "x${host}" ; then
17813  if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17814    # We already found the complete path
17815    ac_dir=`dirname $LIPO_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  else
17819    # Canadian cross, just use what we found
17820    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17821$as_echo "pre-installed" >&6; }
17822  fi
17823else
17824  if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17825    # We already found the complete path
17826    ac_dir=`dirname $LIPO_FOR_TARGET`
17827    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17828$as_echo "pre-installed in $ac_dir" >&6; }
17829  elif test "x$target" = "x$host"; then
17830    # We can use an host tool
17831    LIPO_FOR_TARGET='$(LIPO)'
17832    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17833$as_echo "host tool" >&6; }
17834  else
17835    # We need a cross tool
17836    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17837$as_echo "pre-installed" >&6; }
17838  fi
17839fi
17840
17841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17842$as_echo_n "checking where to find the target nm... " >&6; }
17843if test "x${build}" != "x${host}" ; then
17844  if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17845    # We already found the complete path
17846    ac_dir=`dirname $NM_FOR_TARGET`
17847    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17848$as_echo "pre-installed in $ac_dir" >&6; }
17849  else
17850    # Canadian cross, just use what we found
17851    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17852$as_echo "pre-installed" >&6; }
17853  fi
17854else
17855  ok=yes
17856  case " ${configdirs} " in
17857    *" binutils "*) ;;
17858    *) ok=no ;;
17859  esac
17860
17861  if test $ok = yes; then
17862    # An in-tree tool is available and we can use it
17863    NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17864    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17865$as_echo "just compiled" >&6; }
17866  elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17867    # We already found the complete path
17868    ac_dir=`dirname $NM_FOR_TARGET`
17869    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17870$as_echo "pre-installed in $ac_dir" >&6; }
17871  elif test "x$target" = "x$host"; then
17872    # We can use an host tool
17873    NM_FOR_TARGET='$(NM)'
17874    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17875$as_echo "host tool" >&6; }
17876  else
17877    # We need a cross tool
17878    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17879$as_echo "pre-installed" >&6; }
17880  fi
17881fi
17882
17883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17884$as_echo_n "checking where to find the target objcopy... " >&6; }
17885if test "x${build}" != "x${host}" ; then
17886  if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17887    # We already found the complete path
17888    ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17889    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17890$as_echo "pre-installed in $ac_dir" >&6; }
17891  else
17892    # Canadian cross, just use what we found
17893    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17894$as_echo "pre-installed" >&6; }
17895  fi
17896else
17897  ok=yes
17898  case " ${configdirs} " in
17899    *" binutils "*) ;;
17900    *) ok=no ;;
17901  esac
17902
17903  if test $ok = yes; then
17904    # An in-tree tool is available and we can use it
17905    OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17906    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17907$as_echo "just compiled" >&6; }
17908  elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17909    # We already found the complete path
17910    ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17911    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17912$as_echo "pre-installed in $ac_dir" >&6; }
17913  elif test "x$target" = "x$host"; then
17914    # We can use an host tool
17915    OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17916    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17917$as_echo "host tool" >&6; }
17918  else
17919    # We need a cross tool
17920    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17921$as_echo "pre-installed" >&6; }
17922  fi
17923fi
17924
17925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17926$as_echo_n "checking where to find the target objdump... " >&6; }
17927if test "x${build}" != "x${host}" ; then
17928  if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17929    # We already found the complete path
17930    ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17931    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17932$as_echo "pre-installed in $ac_dir" >&6; }
17933  else
17934    # Canadian cross, just use what we found
17935    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17936$as_echo "pre-installed" >&6; }
17937  fi
17938else
17939  ok=yes
17940  case " ${configdirs} " in
17941    *" binutils "*) ;;
17942    *) ok=no ;;
17943  esac
17944
17945  if test $ok = yes; then
17946    # An in-tree tool is available and we can use it
17947    OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17948    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17949$as_echo "just compiled" >&6; }
17950  elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17951    # We already found the complete path
17952    ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17953    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17954$as_echo "pre-installed in $ac_dir" >&6; }
17955  elif test "x$target" = "x$host"; then
17956    # We can use an host tool
17957    OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17958    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17959$as_echo "host tool" >&6; }
17960  else
17961    # We need a cross tool
17962    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17963$as_echo "pre-installed" >&6; }
17964  fi
17965fi
17966
17967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17968$as_echo_n "checking where to find the target otool... " >&6; }
17969if test "x${build}" != "x${host}" ; then
17970  if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17971    # We already found the complete path
17972    ac_dir=`dirname $OTOOL_FOR_TARGET`
17973    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17974$as_echo "pre-installed in $ac_dir" >&6; }
17975  else
17976    # Canadian cross, just use what we found
17977    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17978$as_echo "pre-installed" >&6; }
17979  fi
17980else
17981  if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17982    # We already found the complete path
17983    ac_dir=`dirname $OTOOL_FOR_TARGET`
17984    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17985$as_echo "pre-installed in $ac_dir" >&6; }
17986  elif test "x$target" = "x$host"; then
17987    # We can use an host tool
17988    OTOOL_FOR_TARGET='$(OTOOL)'
17989    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17990$as_echo "host tool" >&6; }
17991  else
17992    # We need a cross tool
17993    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17994$as_echo "pre-installed" >&6; }
17995  fi
17996fi
17997
17998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17999$as_echo_n "checking where to find the target ranlib... " >&6; }
18000if test "x${build}" != "x${host}" ; then
18001  if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18002    # We already found the complete path
18003    ac_dir=`dirname $RANLIB_FOR_TARGET`
18004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18005$as_echo "pre-installed in $ac_dir" >&6; }
18006  else
18007    # Canadian cross, just use what we found
18008    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18009$as_echo "pre-installed" >&6; }
18010  fi
18011else
18012  ok=yes
18013  case " ${configdirs} " in
18014    *" binutils "*) ;;
18015    *) ok=no ;;
18016  esac
18017
18018  if test $ok = yes; then
18019    # An in-tree tool is available and we can use it
18020    RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18021    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18022$as_echo "just compiled" >&6; }
18023  elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18024    # We already found the complete path
18025    ac_dir=`dirname $RANLIB_FOR_TARGET`
18026    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18027$as_echo "pre-installed in $ac_dir" >&6; }
18028  elif test "x$target" = "x$host"; then
18029    # We can use an host tool
18030    RANLIB_FOR_TARGET='$(RANLIB)'
18031    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18032$as_echo "host tool" >&6; }
18033  else
18034    # We need a cross tool
18035    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18036$as_echo "pre-installed" >&6; }
18037  fi
18038fi
18039
18040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18041$as_echo_n "checking where to find the target readelf... " >&6; }
18042if test "x${build}" != "x${host}" ; then
18043  if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18044    # We already found the complete path
18045    ac_dir=`dirname $READELF_FOR_TARGET`
18046    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18047$as_echo "pre-installed in $ac_dir" >&6; }
18048  else
18049    # Canadian cross, just use what we found
18050    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18051$as_echo "pre-installed" >&6; }
18052  fi
18053else
18054  ok=yes
18055  case " ${configdirs} " in
18056    *" binutils "*) ;;
18057    *) ok=no ;;
18058  esac
18059
18060  if test $ok = yes; then
18061    # An in-tree tool is available and we can use it
18062    READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18064$as_echo "just compiled" >&6; }
18065  elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18066    # We already found the complete path
18067    ac_dir=`dirname $READELF_FOR_TARGET`
18068    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18069$as_echo "pre-installed in $ac_dir" >&6; }
18070  elif test "x$target" = "x$host"; then
18071    # We can use an host tool
18072    READELF_FOR_TARGET='$(READELF)'
18073    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18074$as_echo "host tool" >&6; }
18075  else
18076    # We need a cross tool
18077    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18078$as_echo "pre-installed" >&6; }
18079  fi
18080fi
18081
18082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18083$as_echo_n "checking where to find the target strip... " >&6; }
18084if test "x${build}" != "x${host}" ; then
18085  if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18086    # We already found the complete path
18087    ac_dir=`dirname $STRIP_FOR_TARGET`
18088    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18089$as_echo "pre-installed in $ac_dir" >&6; }
18090  else
18091    # Canadian cross, just use what we found
18092    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18093$as_echo "pre-installed" >&6; }
18094  fi
18095else
18096  ok=yes
18097  case " ${configdirs} " in
18098    *" binutils "*) ;;
18099    *) ok=no ;;
18100  esac
18101
18102  if test $ok = yes; then
18103    # An in-tree tool is available and we can use it
18104    STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18105    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18106$as_echo "just compiled" >&6; }
18107  elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18108    # We already found the complete path
18109    ac_dir=`dirname $STRIP_FOR_TARGET`
18110    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18111$as_echo "pre-installed in $ac_dir" >&6; }
18112  elif test "x$target" = "x$host"; then
18113    # We can use an host tool
18114    STRIP_FOR_TARGET='$(STRIP)'
18115    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18116$as_echo "host tool" >&6; }
18117  else
18118    # We need a cross tool
18119    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18120$as_echo "pre-installed" >&6; }
18121  fi
18122fi
18123
18124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18125$as_echo_n "checking where to find the target windres... " >&6; }
18126if test "x${build}" != "x${host}" ; then
18127  if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18128    # We already found the complete path
18129    ac_dir=`dirname $WINDRES_FOR_TARGET`
18130    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18131$as_echo "pre-installed in $ac_dir" >&6; }
18132  else
18133    # Canadian cross, just use what we found
18134    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18135$as_echo "pre-installed" >&6; }
18136  fi
18137else
18138  ok=yes
18139  case " ${configdirs} " in
18140    *" binutils "*) ;;
18141    *) ok=no ;;
18142  esac
18143
18144  if test $ok = yes; then
18145    # An in-tree tool is available and we can use it
18146    WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18147    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18148$as_echo "just compiled" >&6; }
18149  elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18150    # We already found the complete path
18151    ac_dir=`dirname $WINDRES_FOR_TARGET`
18152    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18153$as_echo "pre-installed in $ac_dir" >&6; }
18154  elif test "x$target" = "x$host"; then
18155    # We can use an host tool
18156    WINDRES_FOR_TARGET='$(WINDRES)'
18157    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18158$as_echo "host tool" >&6; }
18159  else
18160    # We need a cross tool
18161    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18162$as_echo "pre-installed" >&6; }
18163  fi
18164fi
18165
18166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18167$as_echo_n "checking where to find the target windmc... " >&6; }
18168if test "x${build}" != "x${host}" ; then
18169  if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18170    # We already found the complete path
18171    ac_dir=`dirname $WINDMC_FOR_TARGET`
18172    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18173$as_echo "pre-installed in $ac_dir" >&6; }
18174  else
18175    # Canadian cross, just use what we found
18176    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18177$as_echo "pre-installed" >&6; }
18178  fi
18179else
18180  ok=yes
18181  case " ${configdirs} " in
18182    *" binutils "*) ;;
18183    *) ok=no ;;
18184  esac
18185
18186  if test $ok = yes; then
18187    # An in-tree tool is available and we can use it
18188    WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18189    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18190$as_echo "just compiled" >&6; }
18191  elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18192    # We already found the complete path
18193    ac_dir=`dirname $WINDMC_FOR_TARGET`
18194    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18195$as_echo "pre-installed in $ac_dir" >&6; }
18196  elif test "x$target" = "x$host"; then
18197    # We can use an host tool
18198    WINDMC_FOR_TARGET='$(WINDMC)'
18199    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18200$as_echo "host tool" >&6; }
18201  else
18202    # We need a cross tool
18203    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18204$as_echo "pre-installed" >&6; }
18205  fi
18206fi
18207
18208
18209
18210
18211
18212# Certain tools may need extra flags.
18213AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18214RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18215NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18216
18217# When building target libraries, except in a Canadian cross, we use
18218# the same toolchain as the compiler we just built.
18219COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18220COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18221COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18222if test $host = $build; then
18223  case " $configdirs " in
18224    *" gcc "*)
18225      COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18226      COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18227      COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18228      ;;
18229  esac
18230fi
18231
18232
18233
18234
18235
18236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18237$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18238# Check whether --enable-maintainer-mode was given.
18239if test "${enable_maintainer_mode+set}" = set; then :
18240  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18241else
18242  USE_MAINTAINER_MODE=no
18243fi
18244
18245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18246$as_echo "$USE_MAINTAINER_MODE" >&6; }
18247
18248
18249if test "$USE_MAINTAINER_MODE" = yes; then
18250  MAINTAINER_MODE_TRUE=
18251  MAINTAINER_MODE_FALSE='#'
18252else
18253  MAINTAINER_MODE_TRUE='#'
18254  MAINTAINER_MODE_FALSE=
18255fi
18256MAINT=$MAINTAINER_MODE_TRUE
18257
18258# ---------------------
18259# GCC bootstrap support
18260# ---------------------
18261
18262# Stage specific cflags for build.
18263stage1_cflags="-g"
18264case $build in
18265  vax-*-*)
18266    case ${GCC} in
18267      yes) stage1_cflags="-g -Wa,-J" ;;
18268      *) stage1_cflags="-g -J" ;;
18269    esac ;;
18270esac
18271
18272
18273
18274# Enable --enable-checking in stage1 of the compiler.
18275# Check whether --enable-stage1-checking was given.
18276if test "${enable_stage1_checking+set}" = set; then :
18277  enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18278else
18279  if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18280  # For --disable-checking or implicit --enable-checking=release, avoid
18281  # setting --enable-checking=gc in the default stage1 checking for LTO
18282  # bootstraps.  See PR62077.
18283  case $BUILD_CONFIG in
18284    *lto*)
18285      stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18286    *)
18287      stage1_checking=--enable-checking=yes,types;;
18288  esac
18289  if test "x$enable_checking" = x && \
18290     test -d ${srcdir}/gcc && \
18291     test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18292    stage1_checking=--enable-checking=yes,types,extra
18293  fi
18294else
18295  stage1_checking=--enable-checking=$enable_checking,types
18296fi
18297fi
18298
18299
18300
18301# Enable -Werror in bootstrap stage2 and later.
18302# Check whether --enable-werror was given.
18303if test "${enable_werror+set}" = set; then :
18304  enableval=$enable_werror;
18305case ${enable_werror} in
18306  yes) stage2_werror_flag="--enable-werror-always" ;;
18307  *) stage2_werror_flag="" ;;
18308esac
18309
18310else
18311
18312if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18313  case $BUILD_CONFIG in
18314  bootstrap-debug)
18315      stage2_werror_flag="--enable-werror-always" ;;
18316  "")
18317      stage2_werror_flag="--enable-werror-always" ;;
18318  esac
18319fi
18320
18321fi
18322
18323
18324
18325
18326# Specify what files to not compare during bootstrap.
18327
18328compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18329case "$target" in
18330  hppa*64*-*-hpux*) ;;
18331  hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18332  powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18333esac
18334
18335
18336ac_config_files="$ac_config_files Makefile"
18337
18338cat >confcache <<\_ACEOF
18339# This file is a shell script that caches the results of configure
18340# tests run on this system so they can be shared between configure
18341# scripts and configure runs, see configure's option --config-cache.
18342# It is not useful on other systems.  If it contains results you don't
18343# want to keep, you may remove or edit it.
18344#
18345# config.status only pays attention to the cache file if you give it
18346# the --recheck option to rerun configure.
18347#
18348# `ac_cv_env_foo' variables (set or unset) will be overridden when
18349# loading this file, other *unset* `ac_cv_foo' will be assigned the
18350# following values.
18351
18352_ACEOF
18353
18354# The following way of writing the cache mishandles newlines in values,
18355# but we know of no workaround that is simple, portable, and efficient.
18356# So, we kill variables containing newlines.
18357# Ultrix sh set writes to stderr and can't be redirected directly,
18358# and sets the high bit in the cache file unless we assign to the vars.
18359(
18360  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18361    eval ac_val=\$$ac_var
18362    case $ac_val in #(
18363    *${as_nl}*)
18364      case $ac_var in #(
18365      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18366$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18367      esac
18368      case $ac_var in #(
18369      _ | IFS | as_nl) ;; #(
18370      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18371      *) { eval $ac_var=; unset $ac_var;} ;;
18372      esac ;;
18373    esac
18374  done
18375
18376  (set) 2>&1 |
18377    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18378    *${as_nl}ac_space=\ *)
18379      # `set' does not quote correctly, so add quotes: double-quote
18380      # substitution turns \\\\ into \\, and sed turns \\ into \.
18381      sed -n \
18382	"s/'/'\\\\''/g;
18383	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18384      ;; #(
18385    *)
18386      # `set' quotes correctly as required by POSIX, so do not add quotes.
18387      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18388      ;;
18389    esac |
18390    sort
18391) |
18392  sed '
18393     /^ac_cv_env_/b end
18394     t clear
18395     :clear
18396     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18397     t end
18398     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18399     :end' >>confcache
18400if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18401  if test -w "$cache_file"; then
18402    if test "x$cache_file" != "x/dev/null"; then
18403      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18404$as_echo "$as_me: updating cache $cache_file" >&6;}
18405      if test ! -f "$cache_file" || test -h "$cache_file"; then
18406	cat confcache >"$cache_file"
18407      else
18408        case $cache_file in #(
18409        */* | ?:*)
18410	  mv -f confcache "$cache_file"$$ &&
18411	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18412        *)
18413	  mv -f confcache "$cache_file" ;;
18414	esac
18415      fi
18416    fi
18417  else
18418    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18419$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18420  fi
18421fi
18422rm -f confcache
18423
18424test "x$prefix" = xNONE && prefix=$ac_default_prefix
18425# Let make expand exec_prefix.
18426test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18427
18428# Transform confdefs.h into DEFS.
18429# Protect against shell expansion while executing Makefile rules.
18430# Protect against Makefile macro expansion.
18431#
18432# If the first sed substitution is executed (which looks for macros that
18433# take arguments), then branch to the quote section.  Otherwise,
18434# look for a macro that doesn't take arguments.
18435ac_script='
18436:mline
18437/\\$/{
18438 N
18439 s,\\\n,,
18440 b mline
18441}
18442t clear
18443:clear
18444s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
18445t quote
18446s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
18447t quote
18448b any
18449:quote
18450s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18451s/\[/\\&/g
18452s/\]/\\&/g
18453s/\$/$$/g
18454H
18455:any
18456${
18457	g
18458	s/^\n//
18459	s/\n/ /g
18460	p
18461}
18462'
18463DEFS=`sed -n "$ac_script" confdefs.h`
18464
18465
18466ac_libobjs=
18467ac_ltlibobjs=
18468U=
18469for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18470  # 1. Remove the extension, and $U if already installed.
18471  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18472  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18473  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18474  #    will be set to the directory where LIBOBJS objects are built.
18475  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18476  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18477done
18478LIBOBJS=$ac_libobjs
18479
18480LTLIBOBJS=$ac_ltlibobjs
18481
18482
18483
18484: "${CONFIG_STATUS=./config.status}"
18485ac_write_fail=0
18486ac_clean_files_save=$ac_clean_files
18487ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18488{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18489$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18490as_write_fail=0
18491cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18492#! $SHELL
18493# Generated by $as_me.
18494# Run this file to recreate the current configuration.
18495# Compiler output produced by configure, useful for debugging
18496# configure, is in config.log if it exists.
18497
18498debug=false
18499ac_cs_recheck=false
18500ac_cs_silent=false
18501
18502SHELL=\${CONFIG_SHELL-$SHELL}
18503export SHELL
18504_ASEOF
18505cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18506## -------------------- ##
18507## M4sh Initialization. ##
18508## -------------------- ##
18509
18510# Be more Bourne compatible
18511DUALCASE=1; export DUALCASE # for MKS sh
18512if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18513  emulate sh
18514  NULLCMD=:
18515  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18516  # is contrary to our usage.  Disable this feature.
18517  alias -g '${1+"$@"}'='"$@"'
18518  setopt NO_GLOB_SUBST
18519else
18520  case `(set -o) 2>/dev/null` in #(
18521  *posix*) :
18522    set -o posix ;; #(
18523  *) :
18524     ;;
18525esac
18526fi
18527
18528
18529as_nl='
18530'
18531export as_nl
18532# Printing a long string crashes Solaris 7 /usr/bin/printf.
18533as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18534as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18535as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18536# Prefer a ksh shell builtin over an external printf program on Solaris,
18537# but without wasting forks for bash or zsh.
18538if test -z "$BASH_VERSION$ZSH_VERSION" \
18539    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18540  as_echo='print -r --'
18541  as_echo_n='print -rn --'
18542elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18543  as_echo='printf %s\n'
18544  as_echo_n='printf %s'
18545else
18546  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18547    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18548    as_echo_n='/usr/ucb/echo -n'
18549  else
18550    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18551    as_echo_n_body='eval
18552      arg=$1;
18553      case $arg in #(
18554      *"$as_nl"*)
18555	expr "X$arg" : "X\\(.*\\)$as_nl";
18556	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18557      esac;
18558      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18559    '
18560    export as_echo_n_body
18561    as_echo_n='sh -c $as_echo_n_body as_echo'
18562  fi
18563  export as_echo_body
18564  as_echo='sh -c $as_echo_body as_echo'
18565fi
18566
18567# The user is always right.
18568if test "${PATH_SEPARATOR+set}" != set; then
18569  PATH_SEPARATOR=:
18570  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18571    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18572      PATH_SEPARATOR=';'
18573  }
18574fi
18575
18576
18577# IFS
18578# We need space, tab and new line, in precisely that order.  Quoting is
18579# there to prevent editors from complaining about space-tab.
18580# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18581# splitting by setting IFS to empty value.)
18582IFS=" ""	$as_nl"
18583
18584# Find who we are.  Look in the path if we contain no directory separator.
18585as_myself=
18586case $0 in #((
18587  *[\\/]* ) as_myself=$0 ;;
18588  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18589for as_dir in $PATH
18590do
18591  IFS=$as_save_IFS
18592  test -z "$as_dir" && as_dir=.
18593    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18594  done
18595IFS=$as_save_IFS
18596
18597     ;;
18598esac
18599# We did not find ourselves, most probably we were run as `sh COMMAND'
18600# in which case we are not to be found in the path.
18601if test "x$as_myself" = x; then
18602  as_myself=$0
18603fi
18604if test ! -f "$as_myself"; then
18605  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18606  exit 1
18607fi
18608
18609# Unset variables that we do not need and which cause bugs (e.g. in
18610# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18611# suppresses any "Segmentation fault" message there.  '((' could
18612# trigger a bug in pdksh 5.2.14.
18613for as_var in BASH_ENV ENV MAIL MAILPATH
18614do eval test x\${$as_var+set} = xset \
18615  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18616done
18617PS1='$ '
18618PS2='> '
18619PS4='+ '
18620
18621# NLS nuisances.
18622LC_ALL=C
18623export LC_ALL
18624LANGUAGE=C
18625export LANGUAGE
18626
18627# CDPATH.
18628(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18629
18630
18631# as_fn_error STATUS ERROR [LINENO LOG_FD]
18632# ----------------------------------------
18633# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18634# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18635# script with STATUS, using 1 if that was 0.
18636as_fn_error ()
18637{
18638  as_status=$1; test $as_status -eq 0 && as_status=1
18639  if test "$4"; then
18640    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18641    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18642  fi
18643  $as_echo "$as_me: error: $2" >&2
18644  as_fn_exit $as_status
18645} # as_fn_error
18646
18647
18648# as_fn_set_status STATUS
18649# -----------------------
18650# Set $? to STATUS, without forking.
18651as_fn_set_status ()
18652{
18653  return $1
18654} # as_fn_set_status
18655
18656# as_fn_exit STATUS
18657# -----------------
18658# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18659as_fn_exit ()
18660{
18661  set +e
18662  as_fn_set_status $1
18663  exit $1
18664} # as_fn_exit
18665
18666# as_fn_unset VAR
18667# ---------------
18668# Portably unset VAR.
18669as_fn_unset ()
18670{
18671  { eval $1=; unset $1;}
18672}
18673as_unset=as_fn_unset
18674# as_fn_append VAR VALUE
18675# ----------------------
18676# Append the text in VALUE to the end of the definition contained in VAR. Take
18677# advantage of any shell optimizations that allow amortized linear growth over
18678# repeated appends, instead of the typical quadratic growth present in naive
18679# implementations.
18680if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18681  eval 'as_fn_append ()
18682  {
18683    eval $1+=\$2
18684  }'
18685else
18686  as_fn_append ()
18687  {
18688    eval $1=\$$1\$2
18689  }
18690fi # as_fn_append
18691
18692# as_fn_arith ARG...
18693# ------------------
18694# Perform arithmetic evaluation on the ARGs, and store the result in the
18695# global $as_val. Take advantage of shells that can avoid forks. The arguments
18696# must be portable across $(()) and expr.
18697if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18698  eval 'as_fn_arith ()
18699  {
18700    as_val=$(( $* ))
18701  }'
18702else
18703  as_fn_arith ()
18704  {
18705    as_val=`expr "$@" || test $? -eq 1`
18706  }
18707fi # as_fn_arith
18708
18709
18710if expr a : '\(a\)' >/dev/null 2>&1 &&
18711   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18712  as_expr=expr
18713else
18714  as_expr=false
18715fi
18716
18717if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18718  as_basename=basename
18719else
18720  as_basename=false
18721fi
18722
18723if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18724  as_dirname=dirname
18725else
18726  as_dirname=false
18727fi
18728
18729as_me=`$as_basename -- "$0" ||
18730$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18731	 X"$0" : 'X\(//\)$' \| \
18732	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18733$as_echo X/"$0" |
18734    sed '/^.*\/\([^/][^/]*\)\/*$/{
18735	    s//\1/
18736	    q
18737	  }
18738	  /^X\/\(\/\/\)$/{
18739	    s//\1/
18740	    q
18741	  }
18742	  /^X\/\(\/\).*/{
18743	    s//\1/
18744	    q
18745	  }
18746	  s/.*/./; q'`
18747
18748# Avoid depending upon Character Ranges.
18749as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18750as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18751as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18752as_cr_digits='0123456789'
18753as_cr_alnum=$as_cr_Letters$as_cr_digits
18754
18755ECHO_C= ECHO_N= ECHO_T=
18756case `echo -n x` in #(((((
18757-n*)
18758  case `echo 'xy\c'` in
18759  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18760  xy)  ECHO_C='\c';;
18761  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18762       ECHO_T='	';;
18763  esac;;
18764*)
18765  ECHO_N='-n';;
18766esac
18767
18768rm -f conf$$ conf$$.exe conf$$.file
18769if test -d conf$$.dir; then
18770  rm -f conf$$.dir/conf$$.file
18771else
18772  rm -f conf$$.dir
18773  mkdir conf$$.dir 2>/dev/null
18774fi
18775if (echo >conf$$.file) 2>/dev/null; then
18776  if ln -s conf$$.file conf$$ 2>/dev/null; then
18777    as_ln_s='ln -s'
18778    # ... but there are two gotchas:
18779    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18780    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18781    # In both cases, we have to default to `cp -pR'.
18782    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18783      as_ln_s='cp -pR'
18784  elif ln conf$$.file conf$$ 2>/dev/null; then
18785    as_ln_s=ln
18786  else
18787    as_ln_s='cp -pR'
18788  fi
18789else
18790  as_ln_s='cp -pR'
18791fi
18792rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18793rmdir conf$$.dir 2>/dev/null
18794
18795
18796# as_fn_mkdir_p
18797# -------------
18798# Create "$as_dir" as a directory, including parents if necessary.
18799as_fn_mkdir_p ()
18800{
18801
18802  case $as_dir in #(
18803  -*) as_dir=./$as_dir;;
18804  esac
18805  test -d "$as_dir" || eval $as_mkdir_p || {
18806    as_dirs=
18807    while :; do
18808      case $as_dir in #(
18809      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18810      *) as_qdir=$as_dir;;
18811      esac
18812      as_dirs="'$as_qdir' $as_dirs"
18813      as_dir=`$as_dirname -- "$as_dir" ||
18814$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18815	 X"$as_dir" : 'X\(//\)[^/]' \| \
18816	 X"$as_dir" : 'X\(//\)$' \| \
18817	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18818$as_echo X"$as_dir" |
18819    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18820	    s//\1/
18821	    q
18822	  }
18823	  /^X\(\/\/\)[^/].*/{
18824	    s//\1/
18825	    q
18826	  }
18827	  /^X\(\/\/\)$/{
18828	    s//\1/
18829	    q
18830	  }
18831	  /^X\(\/\).*/{
18832	    s//\1/
18833	    q
18834	  }
18835	  s/.*/./; q'`
18836      test -d "$as_dir" && break
18837    done
18838    test -z "$as_dirs" || eval "mkdir $as_dirs"
18839  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18840
18841
18842} # as_fn_mkdir_p
18843if mkdir -p . 2>/dev/null; then
18844  as_mkdir_p='mkdir -p "$as_dir"'
18845else
18846  test -d ./-p && rmdir ./-p
18847  as_mkdir_p=false
18848fi
18849
18850
18851# as_fn_executable_p FILE
18852# -----------------------
18853# Test if FILE is an executable regular file.
18854as_fn_executable_p ()
18855{
18856  test -f "$1" && test -x "$1"
18857} # as_fn_executable_p
18858as_test_x='test -x'
18859as_executable_p=as_fn_executable_p
18860
18861# Sed expression to map a string onto a valid CPP name.
18862as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18863
18864# Sed expression to map a string onto a valid variable name.
18865as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18866
18867
18868exec 6>&1
18869## ----------------------------------- ##
18870## Main body of $CONFIG_STATUS script. ##
18871## ----------------------------------- ##
18872_ASEOF
18873test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18874
18875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18876# Save the log message, to keep $0 and so on meaningful, and to
18877# report actual input values of CONFIG_FILES etc. instead of their
18878# values after options handling.
18879ac_log="
18880This file was extended by $as_me, which was
18881generated by GNU Autoconf 2.69.  Invocation command line was
18882
18883  CONFIG_FILES    = $CONFIG_FILES
18884  CONFIG_HEADERS  = $CONFIG_HEADERS
18885  CONFIG_LINKS    = $CONFIG_LINKS
18886  CONFIG_COMMANDS = $CONFIG_COMMANDS
18887  $ $0 $@
18888
18889on `(hostname || uname -n) 2>/dev/null | sed 1q`
18890"
18891
18892_ACEOF
18893
18894case $ac_config_files in *"
18895"*) set x $ac_config_files; shift; ac_config_files=$*;;
18896esac
18897
18898
18899
18900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18901# Files that config.status was made for.
18902config_files="$ac_config_files"
18903
18904_ACEOF
18905
18906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18907ac_cs_usage="\
18908\`$as_me' instantiates files and other configuration actions
18909from templates according to the current configuration.  Unless the files
18910and actions are specified as TAGs, all are instantiated by default.
18911
18912Usage: $0 [OPTION]... [TAG]...
18913
18914  -h, --help       print this help, then exit
18915  -V, --version    print version number and configuration settings, then exit
18916      --config     print configuration, then exit
18917  -q, --quiet, --silent
18918                   do not print progress messages
18919  -d, --debug      don't remove temporary files
18920      --recheck    update $as_me by reconfiguring in the same conditions
18921      --file=FILE[:TEMPLATE]
18922                   instantiate the configuration file FILE
18923
18924Configuration files:
18925$config_files
18926
18927Report bugs to the package provider."
18928
18929_ACEOF
18930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18931ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18932ac_cs_version="\\
18933config.status
18934configured by $0, generated by GNU Autoconf 2.69,
18935  with options \\"\$ac_cs_config\\"
18936
18937Copyright (C) 2012 Free Software Foundation, Inc.
18938This config.status script is free software; the Free Software Foundation
18939gives unlimited permission to copy, distribute and modify it."
18940
18941ac_pwd='$ac_pwd'
18942srcdir='$srcdir'
18943INSTALL='$INSTALL'
18944AWK='$AWK'
18945test -n "\$AWK" || AWK=awk
18946_ACEOF
18947
18948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18949# The default lists apply if the user does not specify any file.
18950ac_need_defaults=:
18951while test $# != 0
18952do
18953  case $1 in
18954  --*=?*)
18955    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18956    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18957    ac_shift=:
18958    ;;
18959  --*=)
18960    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18961    ac_optarg=
18962    ac_shift=:
18963    ;;
18964  *)
18965    ac_option=$1
18966    ac_optarg=$2
18967    ac_shift=shift
18968    ;;
18969  esac
18970
18971  case $ac_option in
18972  # Handling of the options.
18973  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18974    ac_cs_recheck=: ;;
18975  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18976    $as_echo "$ac_cs_version"; exit ;;
18977  --config | --confi | --conf | --con | --co | --c )
18978    $as_echo "$ac_cs_config"; exit ;;
18979  --debug | --debu | --deb | --de | --d | -d )
18980    debug=: ;;
18981  --file | --fil | --fi | --f )
18982    $ac_shift
18983    case $ac_optarg in
18984    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18985    '') as_fn_error $? "missing file argument" ;;
18986    esac
18987    as_fn_append CONFIG_FILES " '$ac_optarg'"
18988    ac_need_defaults=false;;
18989  --he | --h |  --help | --hel | -h )
18990    $as_echo "$ac_cs_usage"; exit ;;
18991  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18992  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18993    ac_cs_silent=: ;;
18994
18995  # This is an error.
18996  -*) as_fn_error $? "unrecognized option: \`$1'
18997Try \`$0 --help' for more information." ;;
18998
18999  *) as_fn_append ac_config_targets " $1"
19000     ac_need_defaults=false ;;
19001
19002  esac
19003  shift
19004done
19005
19006ac_configure_extra_args=
19007
19008if $ac_cs_silent; then
19009  exec 6>/dev/null
19010  ac_configure_extra_args="$ac_configure_extra_args --silent"
19011fi
19012
19013_ACEOF
19014cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19015if \$ac_cs_recheck; then
19016  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19017  shift
19018  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19019  CONFIG_SHELL='$SHELL'
19020  export CONFIG_SHELL
19021  exec "\$@"
19022fi
19023
19024_ACEOF
19025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19026exec 5>>config.log
19027{
19028  echo
19029  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19030## Running $as_me. ##
19031_ASBOX
19032  $as_echo "$ac_log"
19033} >&5
19034
19035_ACEOF
19036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19037#
19038# INIT-COMMANDS
19039#
19040extrasub_build="$extrasub_build"
19041   extrasub_host="$extrasub_host"
19042   extrasub_target="$extrasub_target"
19043
19044_ACEOF
19045
19046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19047
19048# Handling of arguments.
19049for ac_config_target in $ac_config_targets
19050do
19051  case $ac_config_target in
19052    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19053
19054  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19055  esac
19056done
19057
19058
19059# If the user did not use the arguments to specify the items to instantiate,
19060# then the envvar interface is used.  Set only those that are not.
19061# We use the long form for the default assignment because of an extremely
19062# bizarre bug on SunOS 4.1.3.
19063if $ac_need_defaults; then
19064  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19065fi
19066
19067# Have a temporary directory for convenience.  Make it in the build tree
19068# simply because there is no reason against having it here, and in addition,
19069# creating and moving files from /tmp can sometimes cause problems.
19070# Hook for its removal unless debugging.
19071# Note that there is a small window in which the directory will not be cleaned:
19072# after its creation but before its name has been assigned to `$tmp'.
19073$debug ||
19074{
19075  tmp= ac_tmp=
19076  trap 'exit_status=$?
19077  : "${ac_tmp:=$tmp}"
19078  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19079' 0
19080  trap 'as_fn_exit 1' 1 2 13 15
19081}
19082# Create a (secure) tmp directory for tmp files.
19083
19084{
19085  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19086  test -d "$tmp"
19087}  ||
19088{
19089  tmp=./conf$$-$RANDOM
19090  (umask 077 && mkdir "$tmp")
19091} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19092ac_tmp=$tmp
19093
19094# Set up the scripts for CONFIG_FILES section.
19095# No need to generate them if there are no CONFIG_FILES.
19096# This happens for instance with `./config.status config.h'.
19097if test -n "$CONFIG_FILES"; then
19098
19099if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19100  ac_cs_awk_getline=:
19101  ac_cs_awk_pipe_init=
19102  ac_cs_awk_read_file='
19103      while ((getline aline < (F[key])) > 0)
19104	print(aline)
19105      close(F[key])'
19106  ac_cs_awk_pipe_fini=
19107else
19108  ac_cs_awk_getline=false
19109  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19110  ac_cs_awk_read_file='
19111      print "|#_!!_#|"
19112      print "cat " F[key] " &&"
19113      '$ac_cs_awk_pipe_init
19114  # The final `:' finishes the AND list.
19115  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19116fi
19117ac_cr=`echo X | tr X '\015'`
19118# On cygwin, bash can eat \r inside `` if the user requested igncr.
19119# But we know of no other shell where ac_cr would be empty at this
19120# point, so we can use a bashism as a fallback.
19121if test "x$ac_cr" = x; then
19122  eval ac_cr=\$\'\\r\'
19123fi
19124ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19125if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19126  ac_cs_awk_cr='\\r'
19127else
19128  ac_cs_awk_cr=$ac_cr
19129fi
19130
19131echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19132_ACEOF
19133
19134# Create commands to substitute file output variables.
19135{
19136  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19137  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19138  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19139  echo "_ACAWK" &&
19140  echo "_ACEOF"
19141} >conf$$files.sh &&
19142. ./conf$$files.sh ||
19143  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19144rm -f conf$$files.sh
19145
19146{
19147  echo "cat >conf$$subs.awk <<_ACEOF" &&
19148  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19149  echo "_ACEOF"
19150} >conf$$subs.sh ||
19151  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19152ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19153ac_delim='%!_!# '
19154for ac_last_try in false false false false false :; do
19155  . ./conf$$subs.sh ||
19156    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19157
19158  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19159  if test $ac_delim_n = $ac_delim_num; then
19160    break
19161  elif $ac_last_try; then
19162    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19163  else
19164    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19165  fi
19166done
19167rm -f conf$$subs.sh
19168
19169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19170cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19171_ACEOF
19172sed -n '
19173h
19174s/^/S["/; s/!.*/"]=/
19175p
19176g
19177s/^[^!]*!//
19178:repl
19179t repl
19180s/'"$ac_delim"'$//
19181t delim
19182:nl
19183h
19184s/\(.\{148\}\)..*/\1/
19185t more1
19186s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19187p
19188n
19189b repl
19190:more1
19191s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19192p
19193g
19194s/.\{148\}//
19195t nl
19196:delim
19197h
19198s/\(.\{148\}\)..*/\1/
19199t more2
19200s/["\\]/\\&/g; s/^/"/; s/$/"/
19201p
19202b
19203:more2
19204s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19205p
19206g
19207s/.\{148\}//
19208t delim
19209' <conf$$subs.awk | sed '
19210/^[^""]/{
19211  N
19212  s/\n//
19213}
19214' >>$CONFIG_STATUS || ac_write_fail=1
19215rm -f conf$$subs.awk
19216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19217_ACAWK
19218cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19219  for (key in S) S_is_set[key] = 1
19220  FS = ""
19221  \$ac_cs_awk_pipe_init
19222}
19223{
19224  line = $ 0
19225  nfields = split(line, field, "@")
19226  substed = 0
19227  len = length(field[1])
19228  for (i = 2; i < nfields; i++) {
19229    key = field[i]
19230    keylen = length(key)
19231    if (S_is_set[key]) {
19232      value = S[key]
19233      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19234      len += length(value) + length(field[++i])
19235      substed = 1
19236    } else
19237      len += 1 + keylen
19238  }
19239  if (nfields == 3 && !substed) {
19240    key = field[2]
19241    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
19242      \$ac_cs_awk_read_file
19243      next
19244    }
19245  }
19246  print line
19247}
19248\$ac_cs_awk_pipe_fini
19249_ACAWK
19250_ACEOF
19251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19252if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19253  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19254else
19255  cat
19256fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19257  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19258_ACEOF
19259
19260# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19261# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19262# trailing colons and then remove the whole line if VPATH becomes empty
19263# (actually we leave an empty line to preserve line numbers).
19264if test "x$srcdir" = x.; then
19265  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19266h
19267s///
19268s/^/:/
19269s/[	 ]*$/:/
19270s/:\$(srcdir):/:/g
19271s/:\${srcdir}:/:/g
19272s/:@srcdir@:/:/g
19273s/^:*//
19274s/:*$//
19275x
19276s/\(=[	 ]*\).*/\1/
19277G
19278s/\n//
19279s/^[^=]*=[	 ]*$//
19280}'
19281fi
19282
19283cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19284fi # test -n "$CONFIG_FILES"
19285
19286
19287eval set X "  :F $CONFIG_FILES      "
19288shift
19289for ac_tag
19290do
19291  case $ac_tag in
19292  :[FHLC]) ac_mode=$ac_tag; continue;;
19293  esac
19294  case $ac_mode$ac_tag in
19295  :[FHL]*:*);;
19296  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19297  :[FH]-) ac_tag=-:-;;
19298  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19299  esac
19300  ac_save_IFS=$IFS
19301  IFS=:
19302  set x $ac_tag
19303  IFS=$ac_save_IFS
19304  shift
19305  ac_file=$1
19306  shift
19307
19308  case $ac_mode in
19309  :L) ac_source=$1;;
19310  :[FH])
19311    ac_file_inputs=
19312    for ac_f
19313    do
19314      case $ac_f in
19315      -) ac_f="$ac_tmp/stdin";;
19316      *) # Look for the file first in the build tree, then in the source tree
19317	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19318	 # because $ac_f cannot contain `:'.
19319	 test -f "$ac_f" ||
19320	   case $ac_f in
19321	   [\\/$]*) false;;
19322	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19323	   esac ||
19324	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19325      esac
19326      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19327      as_fn_append ac_file_inputs " '$ac_f'"
19328    done
19329
19330    # Let's still pretend it is `configure' which instantiates (i.e., don't
19331    # use $as_me), people would be surprised to read:
19332    #    /* config.h.  Generated by config.status.  */
19333    configure_input='Generated from '`
19334	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19335	`' by configure.'
19336    if test x"$ac_file" != x-; then
19337      configure_input="$ac_file.  $configure_input"
19338      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19339$as_echo "$as_me: creating $ac_file" >&6;}
19340    fi
19341    # Neutralize special characters interpreted by sed in replacement strings.
19342    case $configure_input in #(
19343    *\&* | *\|* | *\\* )
19344       ac_sed_conf_input=`$as_echo "$configure_input" |
19345       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19346    *) ac_sed_conf_input=$configure_input;;
19347    esac
19348
19349    case $ac_tag in
19350    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19351      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19352    esac
19353    ;;
19354  esac
19355
19356  ac_dir=`$as_dirname -- "$ac_file" ||
19357$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19358	 X"$ac_file" : 'X\(//\)[^/]' \| \
19359	 X"$ac_file" : 'X\(//\)$' \| \
19360	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19361$as_echo X"$ac_file" |
19362    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19363	    s//\1/
19364	    q
19365	  }
19366	  /^X\(\/\/\)[^/].*/{
19367	    s//\1/
19368	    q
19369	  }
19370	  /^X\(\/\/\)$/{
19371	    s//\1/
19372	    q
19373	  }
19374	  /^X\(\/\).*/{
19375	    s//\1/
19376	    q
19377	  }
19378	  s/.*/./; q'`
19379  as_dir="$ac_dir"; as_fn_mkdir_p
19380  ac_builddir=.
19381
19382case "$ac_dir" in
19383.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19384*)
19385  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19386  # A ".." for each directory in $ac_dir_suffix.
19387  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19388  case $ac_top_builddir_sub in
19389  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19390  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19391  esac ;;
19392esac
19393ac_abs_top_builddir=$ac_pwd
19394ac_abs_builddir=$ac_pwd$ac_dir_suffix
19395# for backward compatibility:
19396ac_top_builddir=$ac_top_build_prefix
19397
19398case $srcdir in
19399  .)  # We are building in place.
19400    ac_srcdir=.
19401    ac_top_srcdir=$ac_top_builddir_sub
19402    ac_abs_top_srcdir=$ac_pwd ;;
19403  [\\/]* | ?:[\\/]* )  # Absolute name.
19404    ac_srcdir=$srcdir$ac_dir_suffix;
19405    ac_top_srcdir=$srcdir
19406    ac_abs_top_srcdir=$srcdir ;;
19407  *) # Relative name.
19408    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19409    ac_top_srcdir=$ac_top_build_prefix$srcdir
19410    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19411esac
19412ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19413
19414
19415  case $ac_mode in
19416  :F)
19417  #
19418  # CONFIG_FILE
19419  #
19420
19421  case $INSTALL in
19422  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19423  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19424  esac
19425_ACEOF
19426
19427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19428# If the template does not know about datarootdir, expand it.
19429# FIXME: This hack should be removed a few years after 2.60.
19430ac_datarootdir_hack=; ac_datarootdir_seen=
19431ac_sed_dataroot='
19432/datarootdir/ {
19433  p
19434  q
19435}
19436/@datadir@/p
19437/@docdir@/p
19438/@infodir@/p
19439/@localedir@/p
19440/@mandir@/p'
19441case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19442*datarootdir*) ac_datarootdir_seen=yes;;
19443*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19444  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19445$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19446_ACEOF
19447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19448  ac_datarootdir_hack='
19449  s&@datadir@&$datadir&g
19450  s&@docdir@&$docdir&g
19451  s&@infodir@&$infodir&g
19452  s&@localedir@&$localedir&g
19453  s&@mandir@&$mandir&g
19454  s&\\\${datarootdir}&$datarootdir&g' ;;
19455esac
19456_ACEOF
19457
19458# Neutralize VPATH when `$srcdir' = `.'.
19459# Shell code in configure.ac might set extrasub.
19460# FIXME: do we really want to maintain this feature?
19461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19462ac_sed_extra="$ac_vpsub
19463$extrasub
19464_ACEOF
19465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19466:t
19467/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19468s|@configure_input@|$ac_sed_conf_input|;t t
19469s&@top_builddir@&$ac_top_builddir_sub&;t t
19470s&@top_build_prefix@&$ac_top_build_prefix&;t t
19471s&@srcdir@&$ac_srcdir&;t t
19472s&@abs_srcdir@&$ac_abs_srcdir&;t t
19473s&@top_srcdir@&$ac_top_srcdir&;t t
19474s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19475s&@builddir@&$ac_builddir&;t t
19476s&@abs_builddir@&$ac_abs_builddir&;t t
19477s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19478s&@INSTALL@&$ac_INSTALL&;t t
19479$ac_datarootdir_hack
19480"
19481eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19482if $ac_cs_awk_getline; then
19483  $AWK -f "$ac_tmp/subs.awk"
19484else
19485  $AWK -f "$ac_tmp/subs.awk" | $SHELL
19486fi \
19487  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19488
19489test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19490  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19491  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19492      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19493  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19494which seems to be undefined.  Please make sure it is defined" >&5
19495$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19496which seems to be undefined.  Please make sure it is defined" >&2;}
19497
19498  rm -f "$ac_tmp/stdin"
19499  case $ac_file in
19500  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19501  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19502  esac \
19503  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19504 ;;
19505
19506
19507
19508  esac
19509
19510
19511  case $ac_file$ac_mode in
19512    "Makefile":F) sed "$extrasub_build" Makefile |
19513   sed "$extrasub_host" |
19514   sed "$extrasub_target" > mf$$
19515   mv -f mf$$ Makefile ;;
19516
19517  esac
19518done # for ac_tag
19519
19520
19521as_fn_exit 0
19522_ACEOF
19523ac_clean_files=$ac_clean_files_save
19524
19525test $ac_write_fail = 0 ||
19526  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19527
19528
19529# configure is writing to config.log, and then calls config.status.
19530# config.status does its own redirection, appending to config.log.
19531# Unfortunately, on DOS this fails, as config.log is still kept open
19532# by configure, so config.status won't be able to write to it; its
19533# output is simply discarded.  So we exec the FD to /dev/null,
19534# effectively closing config.log, so it can be properly (re)opened and
19535# appended to by config.status.  When coming back to configure, we
19536# need to make the FD available again.
19537if test "$no_create" != yes; then
19538  ac_cs_success=:
19539  ac_config_status_args=
19540  test "$silent" = yes &&
19541    ac_config_status_args="$ac_config_status_args --quiet"
19542  exec 5>/dev/null
19543  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19544  exec 5>>config.log
19545  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19546  # would make configure fail if this is the last instruction.
19547  $ac_cs_success || as_fn_exit 1
19548fi
19549if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19550  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19551$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19552fi
19553
19554