xref: /netbsd-src/external/gpl3/gcc.old/dist/configure (revision bdc22b2e01993381dcefeff2bc9b56ca75a4235c)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
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.
90case $0 in #((
91  *[\\/]* ) as_myself=$0 ;;
92  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95  IFS=$as_save_IFS
96  test -z "$as_dir" && as_dir=.
97    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there.  '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136  emulate sh
137  NULLCMD=:
138  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139  # is contrary to our usage.  Disable this feature.
140  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141  setopt NO_GLOB_SUBST
142else
143  case \`(set -o) 2>/dev/null\` in #(
144  *posix*) :
145    set -o posix ;; #(
146  *) :
147     ;;
148esac
149fi
150"
151  as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165  exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173  if (eval "$as_required") 2>/dev/null; then :
174  as_have_required=yes
175else
176  as_have_required=no
177fi
178  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185  IFS=$as_save_IFS
186  test -z "$as_dir" && as_dir=.
187  as_found=:
188  case $as_dir in #(
189	 /*)
190	   for as_base in sh bash ksh sh5; do
191	     # Try only shells that exist, to save several forks.
192	     as_shell=$as_dir/$as_base
193	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195  CONFIG_SHELL=$as_shell as_have_required=yes
196		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  break 2
198fi
199fi
200	   done;;
201       esac
202  as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206  CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211      if test "x$CONFIG_SHELL" != x; then :
212  # We cannot yet assume a decent shell, so we have to provide a
213	# neutralization value for shells without unset; and this also
214	# works around shells that cannot unset nonexistent variables.
215	BASH_ENV=/dev/null
216	ENV=/dev/null
217	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218	export CONFIG_SHELL
219	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222    if test x$as_have_required = xno; then :
223  $as_echo "$0: This script requires a shell more modern than all"
224  $as_echo "$0: the shells that I found on your system."
225  if test x${ZSH_VERSION+set} = xset ; then
226    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228  else
229    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233  fi
234  exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252  { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261  return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269  set +e
270  as_fn_set_status $1
271  exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280  case $as_dir in #(
281  -*) as_dir=./$as_dir;;
282  esac
283  test -d "$as_dir" || eval $as_mkdir_p || {
284    as_dirs=
285    while :; do
286      case $as_dir in #(
287      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288      *) as_qdir=$as_dir;;
289      esac
290      as_dirs="'$as_qdir' $as_dirs"
291      as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293	 X"$as_dir" : 'X\(//\)[^/]' \| \
294	 X"$as_dir" : 'X\(//\)$' \| \
295	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298	    s//\1/
299	    q
300	  }
301	  /^X\(\/\/\)[^/].*/{
302	    s//\1/
303	    q
304	  }
305	  /^X\(\/\/\)$/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\).*/{
310	    s//\1/
311	    q
312	  }
313	  s/.*/./; q'`
314      test -d "$as_dir" && break
315    done
316    test -z "$as_dirs" || eval "mkdir $as_dirs"
317  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328  eval 'as_fn_append ()
329  {
330    eval $1+=\$2
331  }'
332else
333  as_fn_append ()
334  {
335    eval $1=\$$1\$2
336  }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345  eval 'as_fn_arith ()
346  {
347    as_val=$(( $* ))
348  }'
349else
350  as_fn_arith ()
351  {
352    as_val=`expr "$@" || test $? -eq 1`
353  }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364  as_status=$?; test $as_status -eq 0 && as_status=1
365  if test "$3"; then
366    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368  fi
369  $as_echo "$as_me: error: $1" >&2
370  as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374   test "X`expr 00001 : '.*\(...\)'`" = X001; then
375  as_expr=expr
376else
377  as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381  as_basename=basename
382else
383  as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387  as_dirname=dirname
388else
389  as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394	 X"$0" : 'X\(//\)$' \| \
395	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397    sed '/^.*\/\([^/][^/]*\)\/*$/{
398	    s//\1/
399	    q
400	  }
401	  /^X\/\(\/\/\)$/{
402	    s//\1/
403	    q
404	  }
405	  /^X\/\(\/\).*/{
406	    s//\1/
407	    q
408	  }
409	  s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419  as_lineno_1=$LINENO as_lineno_1a=$LINENO
420  as_lineno_2=$LINENO as_lineno_2a=$LINENO
421  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424  sed -n '
425    p
426    /[$]LINENO/=
427  ' <$as_myself |
428    sed '
429      s/[$]LINENO.*/&-/
430      t lineno
431      b
432      :lineno
433      N
434      :loop
435      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436      t loop
437      s/-\n.*//
438    ' >$as_me.lineno &&
439  chmod +x "$as_me.lineno" ||
440    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442  # Don't try to exec as it changes $[0], causing all sort of problems
443  # (the dirname of $[0] is not the place where we might find the
444  # original and so on.  Autoconf is especially sensitive to this).
445  . "./$as_me.lineno"
446  # Exit status is that of the last command.
447  exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453  case `echo 'xy\c'` in
454  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
455  xy)  ECHO_C='\c';;
456  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457       ECHO_T='	';;
458  esac;;
459*)
460  ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465  rm -f conf$$.dir/conf$$.file
466else
467  rm -f conf$$.dir
468  mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471  if ln -s conf$$.file conf$$ 2>/dev/null; then
472    as_ln_s='ln -s'
473    # ... but there are two gotchas:
474    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476    # In both cases, we have to default to `cp -p'.
477    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478      as_ln_s='cp -p'
479  elif ln conf$$.file conf$$ 2>/dev/null; then
480    as_ln_s=ln
481  else
482    as_ln_s='cp -p'
483  fi
484else
485  as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491  as_mkdir_p='mkdir -p "$as_dir"'
492else
493  test -d ./-p && rmdir ./-p
494  as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498  as_test_x='test -x'
499else
500  if ls -dL / >/dev/null 2>&1; then
501    as_ls_L_option=L
502  else
503    as_ls_L_option=
504  fi
505  as_test_x='
506    eval sh -c '\''
507      if test -d "$1"; then
508	test -d "$1/.";
509      else
510	case $1 in #(
511	-*)set "./$1";;
512	esac;
513	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514	???[sx]*):;;*)false;;esac;fi
515    '\'' sh
516  '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527exec 7<&0 </dev/null 6>&1
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
538ac_clean_files=
539ac_config_libobj_dir=.
540LIBOBJS=
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
552PACKAGE_URL=
553
554ac_unique_file="move-if-change"
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559host_shared
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
574READELF_FOR_TARGET
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
577OBJCOPY_FOR_TARGET
578NM_FOR_TARGET
579LIPO_FOR_TARGET
580LD_FOR_TARGET
581DLLTOOL_FOR_TARGET
582AS_FOR_TARGET
583AR_FOR_TARGET
584GOC_FOR_TARGET
585GFORTRAN_FOR_TARGET
586GCJ_FOR_TARGET
587GCC_FOR_TARGET
588CXX_FOR_TARGET
589CC_FOR_TARGET
590READELF
591OBJDUMP
592OBJCOPY
593WINDMC
594WINDRES
595STRIP
596RANLIB
597NM
598LIPO
599LD
600DLLTOOL
601AS
602AR
603RUNTEST
604EXPECT
605MAKEINFO
606FLEX
607LEX
608M4
609BISON
610YACC
611WINDRES_FOR_BUILD
612WINDMC_FOR_BUILD
613RANLIB_FOR_BUILD
614NM_FOR_BUILD
615LD_FOR_BUILD
616LDFLAGS_FOR_BUILD
617GOC_FOR_BUILD
618GFORTRAN_FOR_BUILD
619GCJ_FOR_BUILD
620DLLTOOL_FOR_BUILD
621CXX_FOR_BUILD
622CXXFLAGS_FOR_BUILD
623CFLAGS_FOR_BUILD
624CC_FOR_BUILD
625AS_FOR_BUILD
626AR_FOR_BUILD
627target_configdirs
628configdirs
629build_configdirs
630INSTALL_GDB_TK
631GDB_TK
632CONFIGURE_GDB_TK
633build_tooldir
634tooldir
635GCC_SHLIB_SUBDIR
636RPATH_ENVVAR
637target_configargs
638host_configargs
639build_configargs
640BUILD_CONFIG
641LDFLAGS_FOR_TARGET
642CXXFLAGS_FOR_TARGET
643CFLAGS_FOR_TARGET
644DEBUG_PREFIX_CFLAGS_FOR_TARGET
645SYSROOT_CFLAGS_FOR_TARGET
646extra_host_libiberty_configure_flags
647stage1_languages
648extra_linker_plugin_flags
649extra_linker_plugin_configure_flags
650islinc
651isllibs
652poststage1_ldflags
653poststage1_libs
654stage1_ldflags
655stage1_libs
656extra_isl_gmp_configure_flags
657extra_mpc_mpfr_configure_flags
658extra_mpc_gmp_configure_flags
659extra_mpfr_configure_flags
660gmpinc
661gmplibs
662do_compare
663GNATMAKE
664GNATBIND
665ac_ct_CXX
666CXXFLAGS
667CXX
668OBJEXT
669EXEEXT
670ac_ct_CC
671CPPFLAGS
672LDFLAGS
673CFLAGS
674CC
675EXTRA_CONFIGARGS_LIBJAVA
676extra_liboffloadmic_configure_flags
677target_subdir
678host_subdir
679build_subdir
680build_libsubdir
681AWK
682SED
683LN_S
684LN
685INSTALL_DATA
686INSTALL_SCRIPT
687INSTALL_PROGRAM
688target_os
689target_vendor
690target_cpu
691target
692host_os
693host_vendor
694host_cpu
695host
696target_noncanonical
697host_noncanonical
698build_noncanonical
699build_os
700build_vendor
701build_cpu
702build
703TOPLEVEL_CONFIGURE_ARGUMENTS
704target_alias
705host_alias
706build_alias
707LIBS
708ECHO_T
709ECHO_N
710ECHO_C
711DEFS
712mandir
713localedir
714libdir
715psdir
716pdfdir
717dvidir
718htmldir
719infodir
720docdir
721oldincludedir
722includedir
723localstatedir
724sharedstatedir
725sysconfdir
726datadir
727datarootdir
728libexecdir
729sbindir
730bindir
731program_transform_name
732prefix
733exec_prefix
734PACKAGE_URL
735PACKAGE_BUGREPORT
736PACKAGE_STRING
737PACKAGE_VERSION
738PACKAGE_TARNAME
739PACKAGE_NAME
740PATH_SEPARATOR
741SHELL'
742ac_subst_files='serialization_dependencies
743host_makefile_frag
744target_makefile_frag
745alphaieee_frag
746ospace_frag'
747ac_user_opts='
748enable_option_checking
749with_build_libsubdir
750enable_as_accelerator_for
751enable_offload_targets
752enable_gold
753enable_ld
754enable_libquadmath
755enable_libquadmath_support
756enable_libada
757enable_libssp
758enable_libstdcxx
759enable_liboffloadmic
760enable_static_libjava
761enable_bootstrap
762with_mpc
763with_mpc_include
764with_mpc_lib
765with_mpfr_dir
766with_mpfr
767with_mpfr_include
768with_mpfr_lib
769with_gmp_dir
770with_gmp
771with_gmp_include
772with_gmp_lib
773with_host_libstdcxx
774with_stage1_libs
775with_stage1_ldflags
776with_boot_libs
777with_boot_ldflags
778with_isl
779with_isl_include
780with_isl_lib
781enable_isl_version_check
782enable_lto
783enable_linker_plugin_configure_flags
784enable_linker_plugin_flags
785enable_stage1_languages
786enable_objc_gc
787with_build_sysroot
788with_debug_prefix_map
789with_build_config
790enable_vtable_verify
791enable_serial_configure
792with_build_time_tools
793enable_maintainer_mode
794enable_stage1_checking
795enable_werror
796enable_host_shared
797'
798      ac_precious_vars='build_alias
799host_alias
800target_alias
801CC
802CFLAGS
803LDFLAGS
804LIBS
805CPPFLAGS
806CXX
807CXXFLAGS
808CCC
809build_configargs
810host_configargs
811target_configargs
812AR
813AS
814DLLTOOL
815LD
816LIPO
817NM
818RANLIB
819STRIP
820WINDRES
821WINDMC
822OBJCOPY
823OBJDUMP
824READELF
825CC_FOR_TARGET
826CXX_FOR_TARGET
827GCC_FOR_TARGET
828GCJ_FOR_TARGET
829GFORTRAN_FOR_TARGET
830GOC_FOR_TARGET
831AR_FOR_TARGET
832AS_FOR_TARGET
833DLLTOOL_FOR_TARGET
834LD_FOR_TARGET
835LIPO_FOR_TARGET
836NM_FOR_TARGET
837OBJCOPY_FOR_TARGET
838OBJDUMP_FOR_TARGET
839RANLIB_FOR_TARGET
840READELF_FOR_TARGET
841STRIP_FOR_TARGET
842WINDRES_FOR_TARGET
843WINDMC_FOR_TARGET'
844
845
846# Initialize some variables set by options.
847ac_init_help=
848ac_init_version=false
849ac_unrecognized_opts=
850ac_unrecognized_sep=
851# The variables have the same names as the options, with
852# dashes changed to underlines.
853cache_file=/dev/null
854exec_prefix=NONE
855no_create=
856no_recursion=
857prefix=NONE
858program_prefix=NONE
859program_suffix=NONE
860program_transform_name=s,x,x,
861silent=
862site=
863srcdir=
864verbose=
865x_includes=NONE
866x_libraries=NONE
867
868# Installation directory options.
869# These are left unexpanded so users can "make install exec_prefix=/foo"
870# and all the variables that are supposed to be based on exec_prefix
871# by default will actually change.
872# Use braces instead of parens because sh, perl, etc. also accept them.
873# (The list follows the same order as the GNU Coding Standards.)
874bindir='${exec_prefix}/bin'
875sbindir='${exec_prefix}/sbin'
876libexecdir='${exec_prefix}/libexec'
877datarootdir='${prefix}/share'
878datadir='${datarootdir}'
879sysconfdir='${prefix}/etc'
880sharedstatedir='${prefix}/com'
881localstatedir='${prefix}/var'
882includedir='${prefix}/include'
883oldincludedir='/usr/include'
884docdir='${datarootdir}/doc/${PACKAGE}'
885infodir='${datarootdir}/info'
886htmldir='${docdir}'
887dvidir='${docdir}'
888pdfdir='${docdir}'
889psdir='${docdir}'
890libdir='${exec_prefix}/lib'
891localedir='${datarootdir}/locale'
892mandir='${datarootdir}/man'
893
894ac_prev=
895ac_dashdash=
896for ac_option
897do
898  # If the previous option needs an argument, assign it.
899  if test -n "$ac_prev"; then
900    eval $ac_prev=\$ac_option
901    ac_prev=
902    continue
903  fi
904
905  case $ac_option in
906  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907  *)	ac_optarg=yes ;;
908  esac
909
910  # Accept the important Cygnus configure options, so we can diagnose typos.
911
912  case $ac_dashdash$ac_option in
913  --)
914    ac_dashdash=yes ;;
915
916  -bindir | --bindir | --bindi | --bind | --bin | --bi)
917    ac_prev=bindir ;;
918  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919    bindir=$ac_optarg ;;
920
921  -build | --build | --buil | --bui | --bu)
922    ac_prev=build_alias ;;
923  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924    build_alias=$ac_optarg ;;
925
926  -cache-file | --cache-file | --cache-fil | --cache-fi \
927  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928    ac_prev=cache_file ;;
929  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931    cache_file=$ac_optarg ;;
932
933  --config-cache | -C)
934    cache_file=config.cache ;;
935
936  -datadir | --datadir | --datadi | --datad)
937    ac_prev=datadir ;;
938  -datadir=* | --datadir=* | --datadi=* | --datad=*)
939    datadir=$ac_optarg ;;
940
941  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942  | --dataroo | --dataro | --datar)
943    ac_prev=datarootdir ;;
944  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946    datarootdir=$ac_optarg ;;
947
948  -disable-* | --disable-*)
949    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950    # Reject names that are not valid shell variable names.
951    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952      as_fn_error "invalid feature name: $ac_useropt"
953    ac_useropt_orig=$ac_useropt
954    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955    case $ac_user_opts in
956      *"
957"enable_$ac_useropt"
958"*) ;;
959      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960	 ac_unrecognized_sep=', ';;
961    esac
962    eval enable_$ac_useropt=no ;;
963
964  -docdir | --docdir | --docdi | --doc | --do)
965    ac_prev=docdir ;;
966  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967    docdir=$ac_optarg ;;
968
969  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970    ac_prev=dvidir ;;
971  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972    dvidir=$ac_optarg ;;
973
974  -enable-* | --enable-*)
975    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976    # Reject names that are not valid shell variable names.
977    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978      as_fn_error "invalid feature name: $ac_useropt"
979    ac_useropt_orig=$ac_useropt
980    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981    case $ac_user_opts in
982      *"
983"enable_$ac_useropt"
984"*) ;;
985      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986	 ac_unrecognized_sep=', ';;
987    esac
988    eval enable_$ac_useropt=\$ac_optarg ;;
989
990  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992  | --exec | --exe | --ex)
993    ac_prev=exec_prefix ;;
994  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996  | --exec=* | --exe=* | --ex=*)
997    exec_prefix=$ac_optarg ;;
998
999  -gas | --gas | --ga | --g)
1000    # Obsolete; use --with-gas.
1001    with_gas=yes ;;
1002
1003  -help | --help | --hel | --he | -h)
1004    ac_init_help=long ;;
1005  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006    ac_init_help=recursive ;;
1007  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008    ac_init_help=short ;;
1009
1010  -host | --host | --hos | --ho)
1011    ac_prev=host_alias ;;
1012  -host=* | --host=* | --hos=* | --ho=*)
1013    host_alias=$ac_optarg ;;
1014
1015  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016    ac_prev=htmldir ;;
1017  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018  | --ht=*)
1019    htmldir=$ac_optarg ;;
1020
1021  -includedir | --includedir | --includedi | --included | --include \
1022  | --includ | --inclu | --incl | --inc)
1023    ac_prev=includedir ;;
1024  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025  | --includ=* | --inclu=* | --incl=* | --inc=*)
1026    includedir=$ac_optarg ;;
1027
1028  -infodir | --infodir | --infodi | --infod | --info | --inf)
1029    ac_prev=infodir ;;
1030  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031    infodir=$ac_optarg ;;
1032
1033  -libdir | --libdir | --libdi | --libd)
1034    ac_prev=libdir ;;
1035  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036    libdir=$ac_optarg ;;
1037
1038  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039  | --libexe | --libex | --libe)
1040    ac_prev=libexecdir ;;
1041  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042  | --libexe=* | --libex=* | --libe=*)
1043    libexecdir=$ac_optarg ;;
1044
1045  -localedir | --localedir | --localedi | --localed | --locale)
1046    ac_prev=localedir ;;
1047  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048    localedir=$ac_optarg ;;
1049
1050  -localstatedir | --localstatedir | --localstatedi | --localstated \
1051  | --localstate | --localstat | --localsta | --localst | --locals)
1052    ac_prev=localstatedir ;;
1053  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055    localstatedir=$ac_optarg ;;
1056
1057  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058    ac_prev=mandir ;;
1059  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060    mandir=$ac_optarg ;;
1061
1062  -nfp | --nfp | --nf)
1063    # Obsolete; use --without-fp.
1064    with_fp=no ;;
1065
1066  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067  | --no-cr | --no-c | -n)
1068    no_create=yes ;;
1069
1070  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072    no_recursion=yes ;;
1073
1074  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076  | --oldin | --oldi | --old | --ol | --o)
1077    ac_prev=oldincludedir ;;
1078  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081    oldincludedir=$ac_optarg ;;
1082
1083  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084    ac_prev=prefix ;;
1085  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086    prefix=$ac_optarg ;;
1087
1088  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089  | --program-pre | --program-pr | --program-p)
1090    ac_prev=program_prefix ;;
1091  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093    program_prefix=$ac_optarg ;;
1094
1095  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096  | --program-suf | --program-su | --program-s)
1097    ac_prev=program_suffix ;;
1098  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100    program_suffix=$ac_optarg ;;
1101
1102  -program-transform-name | --program-transform-name \
1103  | --program-transform-nam | --program-transform-na \
1104  | --program-transform-n | --program-transform- \
1105  | --program-transform | --program-transfor \
1106  | --program-transfo | --program-transf \
1107  | --program-trans | --program-tran \
1108  | --progr-tra | --program-tr | --program-t)
1109    ac_prev=program_transform_name ;;
1110  -program-transform-name=* | --program-transform-name=* \
1111  | --program-transform-nam=* | --program-transform-na=* \
1112  | --program-transform-n=* | --program-transform-=* \
1113  | --program-transform=* | --program-transfor=* \
1114  | --program-transfo=* | --program-transf=* \
1115  | --program-trans=* | --program-tran=* \
1116  | --progr-tra=* | --program-tr=* | --program-t=*)
1117    program_transform_name=$ac_optarg ;;
1118
1119  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120    ac_prev=pdfdir ;;
1121  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122    pdfdir=$ac_optarg ;;
1123
1124  -psdir | --psdir | --psdi | --psd | --ps)
1125    ac_prev=psdir ;;
1126  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127    psdir=$ac_optarg ;;
1128
1129  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130  | -silent | --silent | --silen | --sile | --sil)
1131    silent=yes ;;
1132
1133  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134    ac_prev=sbindir ;;
1135  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136  | --sbi=* | --sb=*)
1137    sbindir=$ac_optarg ;;
1138
1139  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141  | --sharedst | --shareds | --shared | --share | --shar \
1142  | --sha | --sh)
1143    ac_prev=sharedstatedir ;;
1144  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147  | --sha=* | --sh=*)
1148    sharedstatedir=$ac_optarg ;;
1149
1150  -site | --site | --sit)
1151    ac_prev=site ;;
1152  -site=* | --site=* | --sit=*)
1153    site=$ac_optarg ;;
1154
1155  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156    ac_prev=srcdir ;;
1157  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158    srcdir=$ac_optarg ;;
1159
1160  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161  | --syscon | --sysco | --sysc | --sys | --sy)
1162    ac_prev=sysconfdir ;;
1163  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165    sysconfdir=$ac_optarg ;;
1166
1167  -target | --target | --targe | --targ | --tar | --ta | --t)
1168    ac_prev=target_alias ;;
1169  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170    target_alias=$ac_optarg ;;
1171
1172  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173    verbose=yes ;;
1174
1175  -version | --version | --versio | --versi | --vers | -V)
1176    ac_init_version=: ;;
1177
1178  -with-* | --with-*)
1179    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180    # Reject names that are not valid shell variable names.
1181    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182      as_fn_error "invalid package name: $ac_useropt"
1183    ac_useropt_orig=$ac_useropt
1184    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185    case $ac_user_opts in
1186      *"
1187"with_$ac_useropt"
1188"*) ;;
1189      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190	 ac_unrecognized_sep=', ';;
1191    esac
1192    eval with_$ac_useropt=\$ac_optarg ;;
1193
1194  -without-* | --without-*)
1195    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196    # Reject names that are not valid shell variable names.
1197    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198      as_fn_error "invalid package name: $ac_useropt"
1199    ac_useropt_orig=$ac_useropt
1200    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201    case $ac_user_opts in
1202      *"
1203"with_$ac_useropt"
1204"*) ;;
1205      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206	 ac_unrecognized_sep=', ';;
1207    esac
1208    eval with_$ac_useropt=no ;;
1209
1210  --x)
1211    # Obsolete; use --with-x.
1212    with_x=yes ;;
1213
1214  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215  | --x-incl | --x-inc | --x-in | --x-i)
1216    ac_prev=x_includes ;;
1217  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219    x_includes=$ac_optarg ;;
1220
1221  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223    ac_prev=x_libraries ;;
1224  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226    x_libraries=$ac_optarg ;;
1227
1228  -*) as_fn_error "unrecognized option: \`$ac_option'
1229Try \`$0 --help' for more information."
1230    ;;
1231
1232  *=*)
1233    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234    # Reject names that are not valid shell variable names.
1235    case $ac_envvar in #(
1236      '' | [0-9]* | *[!_$as_cr_alnum]* )
1237      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1238    esac
1239    eval $ac_envvar=\$ac_optarg
1240    export $ac_envvar ;;
1241
1242  *)
1243    # FIXME: should be removed in autoconf 3.0.
1244    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248    ;;
1249
1250  esac
1251done
1252
1253if test -n "$ac_prev"; then
1254  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255  as_fn_error "missing argument to $ac_option"
1256fi
1257
1258if test -n "$ac_unrecognized_opts"; then
1259  case $enable_option_checking in
1260    no) ;;
1261    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1262    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263  esac
1264fi
1265
1266# Check all directory arguments for consistency.
1267for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268		datadir sysconfdir sharedstatedir localstatedir includedir \
1269		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270		libdir localedir mandir
1271do
1272  eval ac_val=\$$ac_var
1273  # Remove trailing slashes.
1274  case $ac_val in
1275    */ )
1276      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277      eval $ac_var=\$ac_val;;
1278  esac
1279  # Be sure to have absolute directory names.
1280  case $ac_val in
1281    [\\/$]* | ?:[\\/]* )  continue;;
1282    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283  esac
1284  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1285done
1286
1287# There might be people who depend on the old broken behavior: `$host'
1288# used to hold the argument of --host etc.
1289# FIXME: To remove some day.
1290build=$build_alias
1291host=$host_alias
1292target=$target_alias
1293
1294# FIXME: To remove some day.
1295if test "x$host_alias" != x; then
1296  if test "x$build_alias" = x; then
1297    cross_compiling=maybe
1298    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299    If a cross compiler is detected then cross compile mode will be used." >&2
1300  elif test "x$build_alias" != "x$host_alias"; then
1301    cross_compiling=yes
1302  fi
1303fi
1304
1305ac_tool_prefix=
1306test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308test "$silent" = yes && exec 6>/dev/null
1309
1310
1311ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312ac_ls_di=`ls -di .` &&
1313ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314  as_fn_error "working directory cannot be determined"
1315test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316  as_fn_error "pwd does not report name of working directory"
1317
1318
1319# Find the source files, if location was not specified.
1320if test -z "$srcdir"; then
1321  ac_srcdir_defaulted=yes
1322  # Try the directory containing this script, then the parent directory.
1323  ac_confdir=`$as_dirname -- "$as_myself" ||
1324$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325	 X"$as_myself" : 'X\(//\)[^/]' \| \
1326	 X"$as_myself" : 'X\(//\)$' \| \
1327	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328$as_echo X"$as_myself" |
1329    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330	    s//\1/
1331	    q
1332	  }
1333	  /^X\(\/\/\)[^/].*/{
1334	    s//\1/
1335	    q
1336	  }
1337	  /^X\(\/\/\)$/{
1338	    s//\1/
1339	    q
1340	  }
1341	  /^X\(\/\).*/{
1342	    s//\1/
1343	    q
1344	  }
1345	  s/.*/./; q'`
1346  srcdir=$ac_confdir
1347  if test ! -r "$srcdir/$ac_unique_file"; then
1348    srcdir=..
1349  fi
1350else
1351  ac_srcdir_defaulted=no
1352fi
1353if test ! -r "$srcdir/$ac_unique_file"; then
1354  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1356fi
1357ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358ac_abs_confdir=`(
1359	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1360	pwd)`
1361# When building in place, set srcdir=.
1362if test "$ac_abs_confdir" = "$ac_pwd"; then
1363  srcdir=.
1364fi
1365# Remove unnecessary trailing slashes from srcdir.
1366# Double slashes in file names in object file debugging info
1367# mess up M-x gdb in Emacs.
1368case $srcdir in
1369*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370esac
1371case $srcdir in
1372  *" "*)
1373    as_fn_error "path to source, $srcdir, contains spaces"
1374    ;;
1375esac
1376ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1377
1378for ac_var in $ac_precious_vars; do
1379  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380  eval ac_env_${ac_var}_value=\$${ac_var}
1381  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383done
1384
1385#
1386# Report the --help message.
1387#
1388if test "$ac_init_help" = "long"; then
1389  # Omit some internal or obsolete options to make the list less imposing.
1390  # This message is too long to be a string in the A/UX 3.1 sh.
1391  cat <<_ACEOF
1392\`configure' configures this package to adapt to many kinds of systems.
1393
1394Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397VAR=VALUE.  See below for descriptions of some of the useful variables.
1398
1399Defaults for the options are specified in brackets.
1400
1401Configuration:
1402  -h, --help              display this help and exit
1403      --help=short        display options specific to this package
1404      --help=recursive    display the short help of all the included packages
1405  -V, --version           display version information and exit
1406  -q, --quiet, --silent   do not print \`checking...' messages
1407      --cache-file=FILE   cache test results in FILE [disabled]
1408  -C, --config-cache      alias for \`--cache-file=config.cache'
1409  -n, --no-create         do not create output files
1410      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1411
1412Installation directories:
1413  --prefix=PREFIX         install architecture-independent files in PREFIX
1414                          [$ac_default_prefix]
1415  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1416                          [PREFIX]
1417
1418By default, \`make install' will install all the files in
1419\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1420an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421for instance \`--prefix=\$HOME'.
1422
1423For better control, use the options below.
1424
1425Fine tuning of the installation directories:
1426  --bindir=DIR            user executables [EPREFIX/bin]
1427  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1428  --libexecdir=DIR        program executables [EPREFIX/libexec]
1429  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1430  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1431  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1432  --libdir=DIR            object code libraries [EPREFIX/lib]
1433  --includedir=DIR        C header files [PREFIX/include]
1434  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1435  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1436  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1437  --infodir=DIR           info documentation [DATAROOTDIR/info]
1438  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1439  --mandir=DIR            man documentation [DATAROOTDIR/man]
1440  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1441  --htmldir=DIR           html documentation [DOCDIR]
1442  --dvidir=DIR            dvi documentation [DOCDIR]
1443  --pdfdir=DIR            pdf documentation [DOCDIR]
1444  --psdir=DIR             ps documentation [DOCDIR]
1445_ACEOF
1446
1447  cat <<\_ACEOF
1448
1449Program names:
1450  --program-prefix=PREFIX            prepend PREFIX to installed program names
1451  --program-suffix=SUFFIX            append SUFFIX to installed program names
1452  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1453
1454System types:
1455  --build=BUILD     configure for building on BUILD [guessed]
1456  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457  --target=TARGET   configure for building compilers for TARGET [HOST]
1458_ACEOF
1459fi
1460
1461if test -n "$ac_init_help"; then
1462
1463  cat <<\_ACEOF
1464
1465Optional Features:
1466  --disable-option-checking  ignore unrecognized --enable/--with options
1467  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469  --enable-as-accelerator-for=ARG
1470                          build as offload target compiler. Specify offload
1471                          host triple by ARG
1472  --enable-offload-targets=LIST
1473                          enable offloading to devices from comma-separated
1474                          LIST of TARGET[=DIR]. Use optional path to find
1475                          offload target compiler during the build
1476  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1477  --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1478  --disable-libquadmath   do not build libquadmath directory
1479  --disable-libquadmath-support
1480                          disable libquadmath support for Fortran
1481  --enable-libada         build libada directory
1482  --enable-libssp         build libssp directory
1483  --disable-libstdcxx     do not build libstdc++-v3 directory
1484  --enable-liboffloadmic=ARG
1485                          build liboffloadmic [ARG={no,host,target}]
1486  --enable-static-libjava[=ARG]
1487                          build static libjava [default=no]
1488  --enable-bootstrap      enable bootstrapping [yes if native build]
1489  --disable-isl-version-check
1490                          disable check for ISL version
1491  --enable-lto            enable link time optimization support
1492  --enable-linker-plugin-configure-flags=FLAGS
1493                          additional flags for configuring linker plugins
1494                          [none]
1495  --enable-linker-plugin-flags=FLAGS
1496                          additional flags for configuring and building linker
1497                          plugins [none]
1498  --enable-stage1-languages[=all]
1499                          choose additional languages to build during stage1.
1500                          Mostly useful for compiler development
1501  --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1502                          Objective-C runtime
1503  --enable-vtable-verify    Enable vtable verification feature
1504  --enable-serial-[{host,target,build}-]configure
1505                          force sequential configuration of sub-packages for
1506                          the host, target or build machine, or all
1507                          sub-packages
1508  --enable-maintainer-mode
1509                          enable make rules and dependencies not useful (and
1510                          sometimes confusing) to the casual installer
1511  --enable-stage1-checking[=all]
1512                          choose additional checking for stage1 of the
1513                          compiler
1514  --enable-werror         enable -Werror in bootstrap stage2 and later
1515  --enable-host-shared    build host code as shared libraries
1516
1517Optional Packages:
1518  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1519  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1520  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1521  --with-mpc=PATH         specify prefix directory for installed MPC package.
1522                          Equivalent to --with-mpc-include=PATH/include plus
1523                          --with-mpc-lib=PATH/lib
1524  --with-mpc-include=PATH specify directory for installed MPC include files
1525  --with-mpc-lib=PATH     specify directory for the installed MPC library
1526  --with-mpfr-dir=PATH    this option has been REMOVED
1527  --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1528                          Equivalent to --with-mpfr-include=PATH/include plus
1529                          --with-mpfr-lib=PATH/lib
1530  --with-mpfr-include=PATH
1531                          specify directory for installed MPFR include files
1532  --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1533  --with-gmp-dir=PATH     this option has been REMOVED
1534  --with-gmp=PATH         specify prefix directory for the installed GMP
1535                          package. Equivalent to
1536                          --with-gmp-include=PATH/include plus
1537                          --with-gmp-lib=PATH/lib
1538  --with-gmp-include=PATH specify directory for installed GMP include files
1539  --with-gmp-lib=PATH     specify directory for the installed GMP library
1540  --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1541                          linking with PPL
1542  --with-stage1-libs=LIBS libraries for stage1
1543  --with-stage1-ldflags=FLAGS
1544                          linker flags for stage1
1545  --with-boot-libs=LIBS   libraries for stage2 and later
1546  --with-boot-ldflags=FLAGS
1547                          linker flags for stage2 and later
1548  --with-isl=PATH         Specify prefix directory for the installed ISL
1549                          package. Equivalent to
1550                          --with-isl-include=PATH/include plus
1551                          --with-isl-lib=PATH/lib
1552  --with-isl-include=PATH Specify directory for installed ISL include files
1553  --with-isl-lib=PATH     Specify the directory for the installed ISL library
1554  --with-build-sysroot=SYSROOT
1555                          use sysroot as the system root during the build
1556  --with-debug-prefix-map='A=B C=D ...'
1557                          map A to B, C to D ... in debug information
1558  --with-build-config='NAME NAME2...'
1559                          use config/NAME.mk build configuration
1560  --with-build-time-tools=PATH
1561                          use given path to find target tools during the build
1562
1563Some influential environment variables:
1564  CC          C compiler command
1565  CFLAGS      C compiler flags
1566  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1567              nonstandard directory <lib dir>
1568  LIBS        libraries to pass to the linker, e.g. -l<library>
1569  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1570              you have headers in a nonstandard directory <include dir>
1571  CXX         C++ compiler command
1572  CXXFLAGS    C++ compiler flags
1573  build_configargs
1574              additional configure arguments for build directories
1575  host_configargs
1576              additional configure arguments for host directories
1577  target_configargs
1578              additional configure arguments for target directories
1579  AR          AR for the host
1580  AS          AS for the host
1581  DLLTOOL     DLLTOOL for the host
1582  LD          LD for the host
1583  LIPO        LIPO for the host
1584  NM          NM for the host
1585  RANLIB      RANLIB for the host
1586  STRIP       STRIP for the host
1587  WINDRES     WINDRES for the host
1588  WINDMC      WINDMC for the host
1589  OBJCOPY     OBJCOPY for the host
1590  OBJDUMP     OBJDUMP for the host
1591  READELF     READELF for the host
1592  CC_FOR_TARGET
1593              CC for the target
1594  CXX_FOR_TARGET
1595              CXX for the target
1596  GCC_FOR_TARGET
1597              GCC for the target
1598  GCJ_FOR_TARGET
1599              GCJ for the target
1600  GFORTRAN_FOR_TARGET
1601              GFORTRAN for the target
1602  GOC_FOR_TARGET
1603              GOC for the target
1604  AR_FOR_TARGET
1605              AR for the target
1606  AS_FOR_TARGET
1607              AS for the target
1608  DLLTOOL_FOR_TARGET
1609              DLLTOOL for the target
1610  LD_FOR_TARGET
1611              LD for the target
1612  LIPO_FOR_TARGET
1613              LIPO for the target
1614  NM_FOR_TARGET
1615              NM for the target
1616  OBJCOPY_FOR_TARGET
1617              OBJCOPY for the target
1618  OBJDUMP_FOR_TARGET
1619              OBJDUMP for the target
1620  RANLIB_FOR_TARGET
1621              RANLIB for the target
1622  READELF_FOR_TARGET
1623              READELF for the target
1624  STRIP_FOR_TARGET
1625              STRIP for the target
1626  WINDRES_FOR_TARGET
1627              WINDRES for the target
1628  WINDMC_FOR_TARGET
1629              WINDMC for the target
1630
1631Use these variables to override the choices made by `configure' or to help
1632it to find libraries and programs with nonstandard names/locations.
1633
1634Report bugs to the package provider.
1635_ACEOF
1636ac_status=$?
1637fi
1638
1639if test "$ac_init_help" = "recursive"; then
1640  # If there are subdirs, report their specific --help.
1641  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1642    test -d "$ac_dir" ||
1643      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1644      continue
1645    ac_builddir=.
1646
1647case "$ac_dir" in
1648.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649*)
1650  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1651  # A ".." for each directory in $ac_dir_suffix.
1652  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1653  case $ac_top_builddir_sub in
1654  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656  esac ;;
1657esac
1658ac_abs_top_builddir=$ac_pwd
1659ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660# for backward compatibility:
1661ac_top_builddir=$ac_top_build_prefix
1662
1663case $srcdir in
1664  .)  # We are building in place.
1665    ac_srcdir=.
1666    ac_top_srcdir=$ac_top_builddir_sub
1667    ac_abs_top_srcdir=$ac_pwd ;;
1668  [\\/]* | ?:[\\/]* )  # Absolute name.
1669    ac_srcdir=$srcdir$ac_dir_suffix;
1670    ac_top_srcdir=$srcdir
1671    ac_abs_top_srcdir=$srcdir ;;
1672  *) # Relative name.
1673    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674    ac_top_srcdir=$ac_top_build_prefix$srcdir
1675    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1676esac
1677ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678
1679    cd "$ac_dir" || { ac_status=$?; continue; }
1680    # Check for guested configure.
1681    if test -f "$ac_srcdir/configure.gnu"; then
1682      echo &&
1683      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684    elif test -f "$ac_srcdir/configure"; then
1685      echo &&
1686      $SHELL "$ac_srcdir/configure" --help=recursive
1687    else
1688      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689    fi || ac_status=$?
1690    cd "$ac_pwd" || { ac_status=$?; break; }
1691  done
1692fi
1693
1694test -n "$ac_init_help" && exit $ac_status
1695if $ac_init_version; then
1696  cat <<\_ACEOF
1697configure
1698generated by GNU Autoconf 2.64
1699
1700Copyright (C) 2009 Free Software Foundation, Inc.
1701This configure script is free software; the Free Software Foundation
1702gives unlimited permission to copy, distribute and modify it.
1703_ACEOF
1704  exit
1705fi
1706
1707## ------------------------ ##
1708## Autoconf initialization. ##
1709## ------------------------ ##
1710
1711# ac_fn_c_try_compile LINENO
1712# --------------------------
1713# Try to compile conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_c_try_compile ()
1715{
1716  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717  rm -f conftest.$ac_objext
1718  if { { ac_try="$ac_compile"
1719case "(($ac_try" in
1720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721  *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725  (eval "$ac_compile") 2>conftest.err
1726  ac_status=$?
1727  if test -s conftest.err; then
1728    grep -v '^ *+' conftest.err >conftest.er1
1729    cat conftest.er1 >&5
1730    mv -f conftest.er1 conftest.err
1731  fi
1732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733  test $ac_status = 0; } && {
1734	 test -z "$ac_c_werror_flag" ||
1735	 test ! -s conftest.err
1736       } && test -s conftest.$ac_objext; then :
1737  ac_retval=0
1738else
1739  $as_echo "$as_me: failed program was:" >&5
1740sed 's/^/| /' conftest.$ac_ext >&5
1741
1742	ac_retval=1
1743fi
1744  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745  return $ac_retval
1746
1747} # ac_fn_c_try_compile
1748
1749# ac_fn_cxx_try_compile LINENO
1750# ----------------------------
1751# Try to compile conftest.$ac_ext, and return whether this succeeded.
1752ac_fn_cxx_try_compile ()
1753{
1754  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755  rm -f conftest.$ac_objext
1756  if { { ac_try="$ac_compile"
1757case "(($ac_try" in
1758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759  *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763  (eval "$ac_compile") 2>conftest.err
1764  ac_status=$?
1765  if test -s conftest.err; then
1766    grep -v '^ *+' conftest.err >conftest.er1
1767    cat conftest.er1 >&5
1768    mv -f conftest.er1 conftest.err
1769  fi
1770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771  test $ac_status = 0; } && {
1772	 test -z "$ac_cxx_werror_flag" ||
1773	 test ! -s conftest.err
1774       } && test -s conftest.$ac_objext; then :
1775  ac_retval=0
1776else
1777  $as_echo "$as_me: failed program was:" >&5
1778sed 's/^/| /' conftest.$ac_ext >&5
1779
1780	ac_retval=1
1781fi
1782  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783  return $ac_retval
1784
1785} # ac_fn_cxx_try_compile
1786
1787# ac_fn_cxx_try_link LINENO
1788# -------------------------
1789# Try to link conftest.$ac_ext, and return whether this succeeded.
1790ac_fn_cxx_try_link ()
1791{
1792  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793  rm -f conftest.$ac_objext conftest$ac_exeext
1794  if { { ac_try="$ac_link"
1795case "(($ac_try" in
1796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797  *) ac_try_echo=$ac_try;;
1798esac
1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800$as_echo "$ac_try_echo"; } >&5
1801  (eval "$ac_link") 2>conftest.err
1802  ac_status=$?
1803  if test -s conftest.err; then
1804    grep -v '^ *+' conftest.err >conftest.er1
1805    cat conftest.er1 >&5
1806    mv -f conftest.er1 conftest.err
1807  fi
1808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809  test $ac_status = 0; } && {
1810	 test -z "$ac_cxx_werror_flag" ||
1811	 test ! -s conftest.err
1812       } && test -s conftest$ac_exeext && {
1813	 test "$cross_compiling" = yes ||
1814	 $as_test_x conftest$ac_exeext
1815       }; then :
1816  ac_retval=0
1817else
1818  $as_echo "$as_me: failed program was:" >&5
1819sed 's/^/| /' conftest.$ac_ext >&5
1820
1821	ac_retval=1
1822fi
1823  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825  # interfere with the next link command; also delete a directory that is
1826  # left behind by Apple's compiler.  We do this before executing the actions.
1827  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829  return $ac_retval
1830
1831} # ac_fn_cxx_try_link
1832
1833# ac_fn_c_try_link LINENO
1834# -----------------------
1835# Try to link conftest.$ac_ext, and return whether this succeeded.
1836ac_fn_c_try_link ()
1837{
1838  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839  rm -f conftest.$ac_objext conftest$ac_exeext
1840  if { { ac_try="$ac_link"
1841case "(($ac_try" in
1842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843  *) ac_try_echo=$ac_try;;
1844esac
1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846$as_echo "$ac_try_echo"; } >&5
1847  (eval "$ac_link") 2>conftest.err
1848  ac_status=$?
1849  if test -s conftest.err; then
1850    grep -v '^ *+' conftest.err >conftest.er1
1851    cat conftest.er1 >&5
1852    mv -f conftest.er1 conftest.err
1853  fi
1854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855  test $ac_status = 0; } && {
1856	 test -z "$ac_c_werror_flag" ||
1857	 test ! -s conftest.err
1858       } && test -s conftest$ac_exeext && {
1859	 test "$cross_compiling" = yes ||
1860	 $as_test_x conftest$ac_exeext
1861       }; then :
1862  ac_retval=0
1863else
1864  $as_echo "$as_me: failed program was:" >&5
1865sed 's/^/| /' conftest.$ac_ext >&5
1866
1867	ac_retval=1
1868fi
1869  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871  # interfere with the next link command; also delete a directory that is
1872  # left behind by Apple's compiler.  We do this before executing the actions.
1873  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875  return $ac_retval
1876
1877} # ac_fn_c_try_link
1878cat >config.log <<_ACEOF
1879This file contains any messages produced by compilers while
1880running configure, to aid debugging if configure makes a mistake.
1881
1882It was created by $as_me, which was
1883generated by GNU Autoconf 2.64.  Invocation command line was
1884
1885  $ $0 $@
1886
1887_ACEOF
1888exec 5>>config.log
1889{
1890cat <<_ASUNAME
1891## --------- ##
1892## Platform. ##
1893## --------- ##
1894
1895hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1896uname -m = `(uname -m) 2>/dev/null || echo unknown`
1897uname -r = `(uname -r) 2>/dev/null || echo unknown`
1898uname -s = `(uname -s) 2>/dev/null || echo unknown`
1899uname -v = `(uname -v) 2>/dev/null || echo unknown`
1900
1901/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1902/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1903
1904/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1905/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1906/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1907/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1908/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1909/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1910/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1911
1912_ASUNAME
1913
1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915for as_dir in $PATH
1916do
1917  IFS=$as_save_IFS
1918  test -z "$as_dir" && as_dir=.
1919    $as_echo "PATH: $as_dir"
1920  done
1921IFS=$as_save_IFS
1922
1923} >&5
1924
1925cat >&5 <<_ACEOF
1926
1927
1928## ----------- ##
1929## Core tests. ##
1930## ----------- ##
1931
1932_ACEOF
1933
1934
1935# Keep a trace of the command line.
1936# Strip out --no-create and --no-recursion so they do not pile up.
1937# Strip out --silent because we don't want to record it for future runs.
1938# Also quote any args containing shell meta-characters.
1939# Make two passes to allow for proper duplicate-argument suppression.
1940ac_configure_args=
1941ac_configure_args0=
1942ac_configure_args1=
1943ac_must_keep_next=false
1944for ac_pass in 1 2
1945do
1946  for ac_arg
1947  do
1948    case $ac_arg in
1949    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1950    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1951    | -silent | --silent | --silen | --sile | --sil)
1952      continue ;;
1953    *\'*)
1954      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1955    esac
1956    case $ac_pass in
1957    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1958    2)
1959      as_fn_append ac_configure_args1 " '$ac_arg'"
1960      if test $ac_must_keep_next = true; then
1961	ac_must_keep_next=false # Got value, back to normal.
1962      else
1963	case $ac_arg in
1964	  *=* | --config-cache | -C | -disable-* | --disable-* \
1965	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1966	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1967	  | -with-* | --with-* | -without-* | --without-* | --x)
1968	    case "$ac_configure_args0 " in
1969	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970	    esac
1971	    ;;
1972	  -* ) ac_must_keep_next=true ;;
1973	esac
1974      fi
1975      as_fn_append ac_configure_args " '$ac_arg'"
1976      ;;
1977    esac
1978  done
1979done
1980{ ac_configure_args0=; unset ac_configure_args0;}
1981{ ac_configure_args1=; unset ac_configure_args1;}
1982
1983# When interrupted or exit'd, cleanup temporary files, and complete
1984# config.log.  We remove comments because anyway the quotes in there
1985# would cause problems or look ugly.
1986# WARNING: Use '\'' to represent an apostrophe within the trap.
1987# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1988trap 'exit_status=$?
1989  # Save into config.log some information that might help in debugging.
1990  {
1991    echo
1992
1993    cat <<\_ASBOX
1994## ---------------- ##
1995## Cache variables. ##
1996## ---------------- ##
1997_ASBOX
1998    echo
1999    # The following way of writing the cache mishandles newlines in values,
2000(
2001  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2002    eval ac_val=\$$ac_var
2003    case $ac_val in #(
2004    *${as_nl}*)
2005      case $ac_var in #(
2006      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2007$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2008      esac
2009      case $ac_var in #(
2010      _ | IFS | as_nl) ;; #(
2011      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2012      *) { eval $ac_var=; unset $ac_var;} ;;
2013      esac ;;
2014    esac
2015  done
2016  (set) 2>&1 |
2017    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2018    *${as_nl}ac_space=\ *)
2019      sed -n \
2020	"s/'\''/'\''\\\\'\'''\''/g;
2021	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2022      ;; #(
2023    *)
2024      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2025      ;;
2026    esac |
2027    sort
2028)
2029    echo
2030
2031    cat <<\_ASBOX
2032## ----------------- ##
2033## Output variables. ##
2034## ----------------- ##
2035_ASBOX
2036    echo
2037    for ac_var in $ac_subst_vars
2038    do
2039      eval ac_val=\$$ac_var
2040      case $ac_val in
2041      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042      esac
2043      $as_echo "$ac_var='\''$ac_val'\''"
2044    done | sort
2045    echo
2046
2047    if test -n "$ac_subst_files"; then
2048      cat <<\_ASBOX
2049## ------------------- ##
2050## File substitutions. ##
2051## ------------------- ##
2052_ASBOX
2053      echo
2054      for ac_var in $ac_subst_files
2055      do
2056	eval ac_val=\$$ac_var
2057	case $ac_val in
2058	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2059	esac
2060	$as_echo "$ac_var='\''$ac_val'\''"
2061      done | sort
2062      echo
2063    fi
2064
2065    if test -s confdefs.h; then
2066      cat <<\_ASBOX
2067## ----------- ##
2068## confdefs.h. ##
2069## ----------- ##
2070_ASBOX
2071      echo
2072      cat confdefs.h
2073      echo
2074    fi
2075    test "$ac_signal" != 0 &&
2076      $as_echo "$as_me: caught signal $ac_signal"
2077    $as_echo "$as_me: exit $exit_status"
2078  } >&5
2079  rm -f core *.core core.conftest.* &&
2080    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2081    exit $exit_status
2082' 0
2083for ac_signal in 1 2 13 15; do
2084  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2085done
2086ac_signal=0
2087
2088# confdefs.h avoids OS command line length limits that DEFS can exceed.
2089rm -f -r conftest* confdefs.h
2090
2091$as_echo "/* confdefs.h */" > confdefs.h
2092
2093# Predefined preprocessor variables.
2094
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_NAME "$PACKAGE_NAME"
2097_ACEOF
2098
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2101_ACEOF
2102
2103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_VERSION "$PACKAGE_VERSION"
2105_ACEOF
2106
2107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_STRING "$PACKAGE_STRING"
2109_ACEOF
2110
2111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2113_ACEOF
2114
2115cat >>confdefs.h <<_ACEOF
2116#define PACKAGE_URL "$PACKAGE_URL"
2117_ACEOF
2118
2119
2120# Let the site file select an alternate cache file if it wants to.
2121# Prefer an explicitly selected file to automatically selected ones.
2122ac_site_file1=NONE
2123ac_site_file2=NONE
2124if test -n "$CONFIG_SITE"; then
2125  ac_site_file1=$CONFIG_SITE
2126elif test "x$prefix" != xNONE; then
2127  ac_site_file1=$prefix/share/config.site
2128  ac_site_file2=$prefix/etc/config.site
2129else
2130  ac_site_file1=$ac_default_prefix/share/config.site
2131  ac_site_file2=$ac_default_prefix/etc/config.site
2132fi
2133for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2134do
2135  test "x$ac_site_file" = xNONE && continue
2136  if test -r "$ac_site_file"; then
2137    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2138$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2139    sed 's/^/| /' "$ac_site_file" >&5
2140    . "$ac_site_file"
2141  fi
2142done
2143
2144if test -r "$cache_file"; then
2145  # Some versions of bash will fail to source /dev/null (special
2146  # files actually), so we avoid doing that.
2147  if test -f "$cache_file"; then
2148    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2149$as_echo "$as_me: loading cache $cache_file" >&6;}
2150    case $cache_file in
2151      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2152      *)                      . "./$cache_file";;
2153    esac
2154  fi
2155else
2156  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2157$as_echo "$as_me: creating cache $cache_file" >&6;}
2158  >$cache_file
2159fi
2160
2161# Check that the precious variables saved in the cache have kept the same
2162# value.
2163ac_cache_corrupted=false
2164for ac_var in $ac_precious_vars; do
2165  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2166  eval ac_new_set=\$ac_env_${ac_var}_set
2167  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2168  eval ac_new_val=\$ac_env_${ac_var}_value
2169  case $ac_old_set,$ac_new_set in
2170    set,)
2171      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2172$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2173      ac_cache_corrupted=: ;;
2174    ,set)
2175      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2176$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2177      ac_cache_corrupted=: ;;
2178    ,);;
2179    *)
2180      if test "x$ac_old_val" != "x$ac_new_val"; then
2181	# differences in whitespace do not lead to failure.
2182	ac_old_val_w=`echo x $ac_old_val`
2183	ac_new_val_w=`echo x $ac_new_val`
2184	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2185	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2186$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2187	  ac_cache_corrupted=:
2188	else
2189	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2190$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2191	  eval $ac_var=\$ac_old_val
2192	fi
2193	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2194$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2195	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2196$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2197      fi;;
2198  esac
2199  # Pass precious variables to config.status.
2200  if test "$ac_new_set" = set; then
2201    case $ac_new_val in
2202    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2203    *) ac_arg=$ac_var=$ac_new_val ;;
2204    esac
2205    case " $ac_configure_args " in
2206      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2207      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2208    esac
2209  fi
2210done
2211if $ac_cache_corrupted; then
2212  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2215$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2216  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2217fi
2218## -------------------- ##
2219## Main body of script. ##
2220## -------------------- ##
2221
2222ac_ext=c
2223ac_cpp='$CPP $CPPFLAGS'
2224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2226ac_compiler_gnu=$ac_cv_c_compiler_gnu
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236progname=$0
2237# if PWD already has a value, it is probably wrong.
2238if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2239
2240# Export original configure arguments for use by sub-configures.
2241# Quote arguments with shell meta charatcers.
2242TOPLEVEL_CONFIGURE_ARGUMENTS=
2243set -- "$progname" "$@"
2244for ac_arg
2245do
2246  case "$ac_arg" in
2247  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2248    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2249    # if the argument is of the form -foo=baz, quote the baz part only
2250    ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2251  *) ;;
2252  esac
2253  # Add the quoted argument to the list.
2254  TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2255done
2256if test "$silent" = yes; then
2257  TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2258fi
2259# Remove the initial space we just introduced and, as these will be
2260# expanded by make, quote '$'.
2261TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2262
2263
2264# Find the build, host, and target systems.
2265ac_aux_dir=
2266for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2267  for ac_t in install-sh install.sh shtool; do
2268    if test -f "$ac_dir/$ac_t"; then
2269      ac_aux_dir=$ac_dir
2270      ac_install_sh="$SHELL $ac_aux_dir/$ac_t -c"
2271      break 2
2272    fi
2273  done
2274done
2275if test -z "$ac_aux_dir"; then
2276  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2277fi
2278
2279# These three variables are undocumented and unsupported,
2280# and are intended to be withdrawn in a future Autoconf release.
2281# They can cause serious problems if a builder's source tree is in a directory
2282# whose full name contains unusual characters.
2283ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2284ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2285ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2286
2287
2288# Make sure we can run config.sub.
2289$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2290  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2291
2292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2293$as_echo_n "checking build system type... " >&6; }
2294if test "${ac_cv_build+set}" = set; then :
2295  $as_echo_n "(cached) " >&6
2296else
2297  ac_build_alias=$build_alias
2298test "x$ac_build_alias" = x &&
2299  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2300test "x$ac_build_alias" = x &&
2301  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2302ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2303  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2304
2305fi
2306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2307$as_echo "$ac_cv_build" >&6; }
2308case $ac_cv_build in
2309*-*-*) ;;
2310*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2311esac
2312build=$ac_cv_build
2313ac_save_IFS=$IFS; IFS='-'
2314set x $ac_cv_build
2315shift
2316build_cpu=$1
2317build_vendor=$2
2318shift; shift
2319# Remember, the first character of IFS is used to create $*,
2320# except with old shells:
2321build_os=$*
2322IFS=$ac_save_IFS
2323case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2324
2325
2326 case ${build_alias} in
2327  "") build_noncanonical=${build} ;;
2328  *) build_noncanonical=${build_alias} ;;
2329esac
2330
2331
2332
2333 case ${host_alias} in
2334  "") host_noncanonical=${build_noncanonical} ;;
2335  *) host_noncanonical=${host_alias} ;;
2336esac
2337
2338
2339
2340 case ${target_alias} in
2341  "") target_noncanonical=${host_noncanonical} ;;
2342  *) target_noncanonical=${target_alias} ;;
2343esac
2344
2345
2346
2347
2348test "$host_noncanonical" = "$target_noncanonical" &&
2349  test "$program_prefix$program_suffix$program_transform_name" = \
2350    NONENONEs,x,x, &&
2351  program_transform_name=s,y,y,
2352
2353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2354$as_echo_n "checking host system type... " >&6; }
2355if test "${ac_cv_host+set}" = set; then :
2356  $as_echo_n "(cached) " >&6
2357else
2358  if test "x$host_alias" = x; then
2359  ac_cv_host=$ac_cv_build
2360else
2361  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2362    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2363fi
2364
2365fi
2366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2367$as_echo "$ac_cv_host" >&6; }
2368case $ac_cv_host in
2369*-*-*) ;;
2370*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2371esac
2372host=$ac_cv_host
2373ac_save_IFS=$IFS; IFS='-'
2374set x $ac_cv_host
2375shift
2376host_cpu=$1
2377host_vendor=$2
2378shift; shift
2379# Remember, the first character of IFS is used to create $*,
2380# except with old shells:
2381host_os=$*
2382IFS=$ac_save_IFS
2383case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2384
2385
2386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2387$as_echo_n "checking target system type... " >&6; }
2388if test "${ac_cv_target+set}" = set; then :
2389  $as_echo_n "(cached) " >&6
2390else
2391  if test "x$target_alias" = x; then
2392  ac_cv_target=$ac_cv_host
2393else
2394  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2395    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2396fi
2397
2398fi
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2400$as_echo "$ac_cv_target" >&6; }
2401case $ac_cv_target in
2402*-*-*) ;;
2403*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2404esac
2405target=$ac_cv_target
2406ac_save_IFS=$IFS; IFS='-'
2407set x $ac_cv_target
2408shift
2409target_cpu=$1
2410target_vendor=$2
2411shift; shift
2412# Remember, the first character of IFS is used to create $*,
2413# except with old shells:
2414target_os=$*
2415IFS=$ac_save_IFS
2416case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2417
2418
2419# The aliases save the names the user supplied, while $host etc.
2420# will get canonicalized.
2421test -n "$target_alias" &&
2422  test "$program_prefix$program_suffix$program_transform_name" = \
2423    NONENONEs,x,x, &&
2424  program_prefix=${target_alias}-
2425
2426test "$program_prefix" != NONE &&
2427  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2428# Use a double $ so make ignores it.
2429test "$program_suffix" != NONE &&
2430  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2431# Double any \ or $.
2432# By default was `s,x,x', remove it if useless.
2433ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2434program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2435
2436
2437
2438# Get 'install' or 'install-sh' and its variants.
2439# Find a good install program.  We prefer a C program (faster),
2440# so one script is as good as another.  But avoid the broken or
2441# incompatible versions:
2442# SysV /etc/install, /usr/sbin/install
2443# SunOS /usr/etc/install
2444# IRIX /sbin/install
2445# AIX /bin/install
2446# AmigaOS /C/install, which installs bootblocks on floppy discs
2447# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2448# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2449# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2450# OS/2's system install, which has a completely different semantic
2451# ./install, which can be erroneously created by make from ./install.sh.
2452# Reject install programs that cannot install multiple files.
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2454$as_echo_n "checking for a BSD-compatible install... " >&6; }
2455if test -z "$INSTALL"; then
2456if test "${ac_cv_path_install+set}" = set; then :
2457  $as_echo_n "(cached) " >&6
2458else
2459  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460for as_dir in $PATH
2461do
2462  IFS=$as_save_IFS
2463  test -z "$as_dir" && as_dir=.
2464    # Account for people who put trailing slashes in PATH elements.
2465case $as_dir/ in #((
2466  ./ | .// | /[cC]/* | \
2467  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2468  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2469  /usr/ucb/* ) ;;
2470  *)
2471    # OSF1 and SCO ODT 3.0 have their own names for install.
2472    # Don't use installbsd from OSF since it installs stuff as root
2473    # by default.
2474    for ac_prog in ginstall scoinst install; do
2475      for ac_exec_ext in '' $ac_executable_extensions; do
2476	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2477	  if test $ac_prog = install &&
2478	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479	    # AIX install.  It has an incompatible calling convention.
2480	    :
2481	  elif test $ac_prog = install &&
2482	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483	    # program-specific install script used by HP pwplus--don't use.
2484	    :
2485	  else
2486	    rm -rf conftest.one conftest.two conftest.dir
2487	    echo one > conftest.one
2488	    echo two > conftest.two
2489	    mkdir conftest.dir
2490	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2491	      test -s conftest.one && test -s conftest.two &&
2492	      test -s conftest.dir/conftest.one &&
2493	      test -s conftest.dir/conftest.two
2494	    then
2495	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2496	      break 3
2497	    fi
2498	  fi
2499	fi
2500      done
2501    done
2502    ;;
2503esac
2504
2505  done
2506IFS=$as_save_IFS
2507
2508rm -rf conftest.one conftest.two conftest.dir
2509
2510fi
2511  if test "${ac_cv_path_install+set}" = set; then
2512    INSTALL=$ac_cv_path_install
2513  else
2514    # As a last resort, use the slow shell script.  Don't cache a
2515    # value for INSTALL within a source directory, because that will
2516    # break other packages using the cache if that directory is
2517    # removed, or if the value is a relative name.
2518    INSTALL=$ac_install_sh
2519  fi
2520fi
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2522$as_echo "$INSTALL" >&6; }
2523
2524# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2525# It thinks the first close brace ends the variable substitution.
2526test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2527
2528test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2529
2530test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2531
2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2533$as_echo_n "checking whether ln works... " >&6; }
2534if test "${acx_cv_prog_LN+set}" = set; then :
2535  $as_echo_n "(cached) " >&6
2536else
2537  rm -f conftestdata_t
2538echo >conftestdata_f
2539if ln conftestdata_f conftestdata_t 2>/dev/null
2540then
2541  acx_cv_prog_LN=ln
2542else
2543  acx_cv_prog_LN=no
2544fi
2545rm -f conftestdata_f conftestdata_t
2546
2547fi
2548if test $acx_cv_prog_LN = no; then
2549  LN="cp"
2550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2551$as_echo "no, using $LN" >&6; }
2552else
2553  LN="$acx_cv_prog_LN"
2554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2555$as_echo "yes" >&6; }
2556fi
2557
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2559$as_echo_n "checking whether ln -s works... " >&6; }
2560LN_S=$as_ln_s
2561if test "$LN_S" = "ln -s"; then
2562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2563$as_echo "yes" >&6; }
2564else
2565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2566$as_echo "no, using $LN_S" >&6; }
2567fi
2568
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2570$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2571if test "${ac_cv_path_SED+set}" = set; then :
2572  $as_echo_n "(cached) " >&6
2573else
2574            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2575     for ac_i in 1 2 3 4 5 6 7; do
2576       ac_script="$ac_script$as_nl$ac_script"
2577     done
2578     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2579     { ac_script=; unset ac_script;}
2580     if test -z "$SED"; then
2581  ac_path_SED_found=false
2582  # Loop through the user's path and test for each of PROGNAME-LIST
2583  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586  IFS=$as_save_IFS
2587  test -z "$as_dir" && as_dir=.
2588    for ac_prog in sed gsed; do
2589    for ac_exec_ext in '' $ac_executable_extensions; do
2590      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2591      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2592# Check for GNU ac_path_SED and select it if it is found.
2593  # Check for GNU $ac_path_SED
2594case `"$ac_path_SED" --version 2>&1` in
2595*GNU*)
2596  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2597*)
2598  ac_count=0
2599  $as_echo_n 0123456789 >"conftest.in"
2600  while :
2601  do
2602    cat "conftest.in" "conftest.in" >"conftest.tmp"
2603    mv "conftest.tmp" "conftest.in"
2604    cp "conftest.in" "conftest.nl"
2605    $as_echo '' >> "conftest.nl"
2606    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2607    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2608    as_fn_arith $ac_count + 1 && ac_count=$as_val
2609    if test $ac_count -gt ${ac_path_SED_max-0}; then
2610      # Best one so far, save it but keep looking for a better one
2611      ac_cv_path_SED="$ac_path_SED"
2612      ac_path_SED_max=$ac_count
2613    fi
2614    # 10*(2^10) chars as input seems more than enough
2615    test $ac_count -gt 10 && break
2616  done
2617  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2618esac
2619
2620      $ac_path_SED_found && break 3
2621    done
2622  done
2623  done
2624IFS=$as_save_IFS
2625  if test -z "$ac_cv_path_SED"; then
2626    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2627  fi
2628else
2629  ac_cv_path_SED=$SED
2630fi
2631
2632fi
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2634$as_echo "$ac_cv_path_SED" >&6; }
2635 SED="$ac_cv_path_SED"
2636  rm -f conftest.sed
2637
2638for ac_prog in gawk mawk nawk awk
2639do
2640  # Extract the first word of "$ac_prog", so it can be a program name with args.
2641set dummy $ac_prog; ac_word=$2
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643$as_echo_n "checking for $ac_word... " >&6; }
2644if test "${ac_cv_prog_AWK+set}" = set; then :
2645  $as_echo_n "(cached) " >&6
2646else
2647  if test -n "$AWK"; then
2648  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2649else
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653  IFS=$as_save_IFS
2654  test -z "$as_dir" && as_dir=.
2655    for ac_exec_ext in '' $ac_executable_extensions; do
2656  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657    ac_cv_prog_AWK="$ac_prog"
2658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659    break 2
2660  fi
2661done
2662  done
2663IFS=$as_save_IFS
2664
2665fi
2666fi
2667AWK=$ac_cv_prog_AWK
2668if test -n "$AWK"; then
2669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2670$as_echo "$AWK" >&6; }
2671else
2672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673$as_echo "no" >&6; }
2674fi
2675
2676
2677  test -n "$AWK" && break
2678done
2679
2680
2681srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2682
2683# We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2684# a relative path.
2685if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2686  INSTALL="${srcpwd}/install-sh -c"
2687fi
2688
2689# Set srcdir to "." if that's what it is.
2690# This is important for multilib support.
2691pwd=`${PWDCMD-pwd}`
2692if test "${pwd}" = "${srcpwd}" ; then
2693  srcdir=.
2694fi
2695
2696topsrcdir=$srcpwd
2697
2698extra_host_args=
2699
2700### To add a new directory to the tree, first choose whether it is a target
2701### or a host dependent tool.  Then put it into the appropriate list
2702### (library or tools, host or target), doing a dependency sort.
2703
2704# Subdirs will be configured in the order listed in build_configdirs,
2705# configdirs, or target_configdirs; see the serialization section below.
2706
2707# Dependency sorting is only needed when *configuration* must be done in
2708# a particular order.  In all cases a dependency should be specified in
2709# the Makefile, whether or not it's implicitly specified here.
2710
2711# Double entries in build_configdirs, configdirs, or target_configdirs may
2712# cause circular dependencies and break everything horribly.
2713
2714# these library is used by various programs built for the build
2715# environment
2716#
2717build_libs="build-libiberty build-libcpp"
2718
2719# these tools are built for the build environment
2720build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2721
2722# these libraries are used by various programs built for the host environment
2723#f
2724host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2725
2726# these tools are built for the host environment
2727# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2728# know that we are building the simulator.
2729# binutils, gas and ld appear in that order because it makes sense to run
2730# "make check" in that particular order.
2731# If --enable-gold is used, "gold" may replace "ld".
2732host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2733
2734# libgcj represents the runtime libraries only used by gcj.
2735libgcj="target-libffi \
2736	target-zlib \
2737	target-libjava"
2738
2739# these libraries are built for the target environment, and are built after
2740# the host libraries and the host tools (which may be a cross compiler)
2741# Note that libiberty is not a target library.
2742target_libraries="target-libgcc \
2743		target-libbacktrace \
2744		target-libgloss \
2745		target-newlib \
2746		target-libgomp \
2747		target-libcilkrts \
2748		target-liboffloadmic \
2749		target-libatomic \
2750		target-libitm \
2751		target-libstdc++-v3 \
2752		target-libsanitizer \
2753		target-libvtv \
2754		target-libmpx \
2755		target-libssp \
2756		target-libquadmath \
2757		target-libgfortran \
2758		target-boehm-gc \
2759		${libgcj} \
2760		target-libobjc \
2761		target-libada \
2762		target-libgo"
2763
2764# these tools are built using the target libraries, and are intended to
2765# run only in the target environment
2766#
2767# note: any program that *uses* libraries that are in the "target_libraries"
2768# list belongs in this list.
2769#
2770target_tools="target-rda"
2771
2772################################################################################
2773
2774## All tools belong in one of the four categories, and are assigned above
2775## We assign ${configdirs} this way to remove all embedded newlines.  This
2776## is important because configure will choke if they ever get through.
2777## ${configdirs} is directories we build using the host tools.
2778## ${target_configdirs} is directories we build using the target tools.
2779configdirs=`echo ${host_libs} ${host_tools}`
2780target_configdirs=`echo ${target_libraries} ${target_tools}`
2781build_configdirs=`echo ${build_libs} ${build_tools}`
2782
2783
2784
2785################################################################################
2786
2787srcname="gnu development package"
2788
2789# This gets set non-empty for some net releases of packages.
2790appdirs=""
2791
2792# Define is_cross_compiler to save on calls to 'test'.
2793is_cross_compiler=
2794if test x"${host}" = x"${target}" ; then
2795  is_cross_compiler=no
2796else
2797  is_cross_compiler=yes
2798fi
2799
2800# Find the build and target subdir names.
2801
2802# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2803# have matching libraries, they should use host libraries: Makefile.tpl
2804# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2805# However, they still use the build modules, because the corresponding
2806# host modules (e.g. bison) are only built for the host when bootstrap
2807# finishes. So:
2808# - build_subdir is where we find build modules, and never changes.
2809# - build_libsubdir is where we find build libraries, and can be overridden.
2810
2811# Prefix 'build-' so this never conflicts with target_subdir.
2812build_subdir="build-${build_noncanonical}"
2813
2814# Check whether --with-build-libsubdir was given.
2815if test "${with_build_libsubdir+set}" = set; then :
2816  withval=$with_build_libsubdir; build_libsubdir="$withval"
2817else
2818  build_libsubdir="$build_subdir"
2819fi
2820
2821# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2822if ( test $srcdir = . && test -d gcc ) \
2823   || test -d $srcdir/../host-${host_noncanonical}; then
2824  host_subdir="host-${host_noncanonical}"
2825else
2826  host_subdir=.
2827fi
2828# No prefix.
2829target_subdir=${target_noncanonical}
2830
2831# Be sure to cover against remnants of an in-tree build.
2832if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2833  as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2834Use a pristine source tree when building in a separate tree" "$LINENO" 5
2835fi
2836
2837# Skipdirs are removed silently.
2838skipdirs=
2839# Noconfigdirs are removed loudly.
2840noconfigdirs=""
2841
2842use_gnu_ld=
2843# Make sure we don't let GNU ld be added if we didn't want it.
2844if test x$with_gnu_ld = xno ; then
2845  use_gnu_ld=no
2846  noconfigdirs="$noconfigdirs ld gold"
2847fi
2848
2849use_gnu_as=
2850# Make sure we don't let GNU as be added if we didn't want it.
2851if test x$with_gnu_as = xno ; then
2852  use_gnu_as=no
2853  noconfigdirs="$noconfigdirs gas"
2854fi
2855
2856use_included_zlib=
2857# Make sure we don't let ZLIB be added if we didn't want it.
2858if test x$with_system_zlib = xyes ; then
2859  use_included_zlib=no
2860  noconfigdirs="$noconfigdirs zlib"
2861fi
2862
2863# some tools are so dependent upon X11 that if we're not building with X,
2864# it's not even worth trying to configure, much less build, that tool.
2865
2866case ${with_x} in
2867  yes | "") ;; # the default value for this tree is that X11 is available
2868  no)
2869    skipdirs="${skipdirs} tk itcl libgui"
2870    # We won't be able to build gdbtk without X.
2871    enable_gdbtk=no
2872    ;;
2873  *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2874esac
2875
2876# Some are only suitable for cross toolchains.
2877# Remove these if host=target.
2878cross_only="target-libgloss target-newlib target-opcodes"
2879
2880case $is_cross_compiler in
2881  no) skipdirs="${skipdirs} ${cross_only}" ;;
2882esac
2883
2884# If both --with-headers and --with-libs are specified, default to
2885# --without-newlib.
2886if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2887   && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2888  if test x"${with_newlib}" = x ; then
2889    with_newlib=no
2890  fi
2891fi
2892
2893# Recognize --with-newlib/--without-newlib.
2894case ${with_newlib} in
2895  no) skipdirs="${skipdirs} target-newlib" ;;
2896  yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2897esac
2898
2899# Check whether --enable-as-accelerator-for was given.
2900if test "${enable_as_accelerator_for+set}" = set; then :
2901  enableval=$enable_as_accelerator_for;
2902fi
2903
2904
2905# Check whether --enable-offload-targets was given.
2906if test "${enable_offload_targets+set}" = set; then :
2907  enableval=$enable_offload_targets;
2908  if test x"$enable_offload_targets" = x; then
2909    as_fn_error "no offload targets specified" "$LINENO" 5
2910  fi
2911
2912else
2913  enable_offload_targets=
2914fi
2915
2916
2917# Handle --enable-gold, --enable-ld.
2918# --disable-gold [--enable-ld]
2919#     Build only ld.  Default option.
2920# --enable-gold [--enable-ld]
2921#     Build both gold and ld.  Install gold as "ld.gold", install ld
2922#     as "ld.bfd" and "ld".
2923# --enable-gold=default [--enable-ld]
2924#     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2925#     install ld as "ld.bfd".
2926# --enable-gold[=default] --disable-ld
2927#     Build only gold, which is then installed as both "ld.gold" and "ld".
2928# --enable-gold --enable-ld=default
2929#     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2930#     and ld.bfd).
2931#     In other words, ld is default
2932# --enable-gold=default --enable-ld=default
2933#     Error.
2934
2935default_ld=
2936# Check whether --enable-gold was given.
2937if test "${enable_gold+set}" = set; then :
2938  enableval=$enable_gold; ENABLE_GOLD=$enableval
2939else
2940  ENABLE_GOLD=no
2941fi
2942
2943case "${ENABLE_GOLD}" in
2944  yes|default)
2945    # Check for ELF target.
2946    is_elf=no
2947    case "${target}" in
2948      *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2949      | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2950      | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2951      | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2952        case "${target}" in
2953          *-*-linux*aout* | *-*-linux*oldld*)
2954            ;;
2955          *)
2956            is_elf=yes
2957            ;;
2958        esac
2959    esac
2960
2961    if test "$is_elf" = "yes"; then
2962      # Check for target supported by gold.
2963      case "${target}" in
2964        i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2965        | aarch64*-*-* | tilegx*-*-*)
2966	  configdirs="$configdirs gold"
2967	  if test x${ENABLE_GOLD} = xdefault; then
2968	    default_ld=gold
2969	  fi
2970	  ENABLE_GOLD=yes
2971          ;;
2972      esac
2973    fi
2974    ;;
2975  no)
2976    ;;
2977  *)
2978    as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2979    ;;
2980esac
2981
2982# Check whether --enable-ld was given.
2983if test "${enable_ld+set}" = set; then :
2984  enableval=$enable_ld; ENABLE_LD=$enableval
2985else
2986  ENABLE_LD=yes
2987fi
2988
2989
2990case "${ENABLE_LD}" in
2991  default)
2992    if test x${default_ld} != x; then
2993      as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2994    fi
2995    ;;
2996  yes)
2997    ;;
2998  no)
2999    if test x${ENABLE_GOLD} != xyes; then
3000      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3001$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3002    fi
3003    configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3004    ;;
3005  *)
3006    as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3007    ;;
3008esac
3009
3010# Configure extra directories which are host specific
3011
3012case "${host}" in
3013  *-cygwin*)
3014    configdirs="$configdirs libtermcap" ;;
3015esac
3016
3017# A target can indicate whether a language isn't supported for some reason.
3018# Only spaces may be used in this macro; not newlines or tabs.
3019unsupported_languages=
3020
3021# Remove more programs from consideration, based on the host or
3022# target this usually means that a port of the program doesn't
3023# exist yet.
3024
3025case "${host}" in
3026  i[3456789]86-*-msdosdjgpp*)
3027    noconfigdirs="$noconfigdirs tcl tk itcl"
3028    ;;
3029esac
3030
3031
3032# Check whether --enable-libquadmath was given.
3033if test "${enable_libquadmath+set}" = set; then :
3034  enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3035else
3036  ENABLE_LIBQUADMATH=yes
3037fi
3038
3039if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3040  noconfigdirs="$noconfigdirs target-libquadmath"
3041fi
3042
3043
3044# Check whether --enable-libquadmath-support was given.
3045if test "${enable_libquadmath_support+set}" = set; then :
3046  enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3047else
3048  ENABLE_LIBQUADMATH_SUPPORT=yes
3049fi
3050
3051enable_libquadmath_support=
3052if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3053  enable_libquadmath_support=no
3054fi
3055
3056
3057# Check whether --enable-libada was given.
3058if test "${enable_libada+set}" = set; then :
3059  enableval=$enable_libada; ENABLE_LIBADA=$enableval
3060else
3061  ENABLE_LIBADA=yes
3062fi
3063
3064if test "${ENABLE_LIBADA}" != "yes" ; then
3065  noconfigdirs="$noconfigdirs gnattools"
3066fi
3067
3068# Check whether --enable-libssp was given.
3069if test "${enable_libssp+set}" = set; then :
3070  enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3071else
3072  ENABLE_LIBSSP=yes
3073fi
3074
3075
3076# Check whether --enable-libstdcxx was given.
3077if test "${enable_libstdcxx+set}" = set; then :
3078  enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3079else
3080  ENABLE_LIBSTDCXX=default
3081fi
3082
3083if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3084  noconfigdirs="$noconfigdirs target-libstdc++-v3"
3085fi
3086
3087# If this is accelerator compiler and its target is intelmic we enable
3088# target liboffloadmic by default.  If this is compiler with offloading
3089# for intelmic we enable host liboffloadmic by default.  Otherwise
3090# liboffloadmic is disabled by default.
3091# Check whether --enable-liboffloadmic was given.
3092if test "${enable_liboffloadmic+set}" = set; then :
3093  enableval=$enable_liboffloadmic; case "$enableval" in
3094  no | host | target)
3095    enable_liboffloadmic=$enableval ;;
3096  *)
3097    as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3098esac
3099else
3100  if test x"$enable_as_accelerator_for" != x; then
3101  case "${target}" in
3102    *-intelmic-* | *-intelmicemul-*)
3103      enable_liboffloadmic=target
3104      extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3105      ;;
3106    *)
3107      enable_liboffloadmic=no
3108      ;;
3109  esac
3110else
3111  case "${enable_offload_targets}" in
3112    *-intelmic-* | *-intelmicemul-*)
3113      enable_liboffloadmic=host
3114      extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3115      ;;
3116    *)
3117      enable_liboffloadmic=no
3118      ;;
3119    esac
3120fi
3121fi
3122
3123
3124
3125# Save it here so that, even in case of --enable-libgcj, if the Java
3126# front-end isn't enabled, we still get libgcj disabled.
3127libgcj_saved=$libgcj
3128case $enable_libgcj in
3129yes)
3130  # If we reset it here, it won't get added to noconfigdirs in the
3131  # target-specific build rules, so it will be forcibly enabled
3132  # (unless the Java language itself isn't enabled).
3133  libgcj=
3134  ;;
3135no)
3136  # Make sure we get it printed in the list of not supported target libs.
3137  # Don't disable libffi, though, other languages use it.
3138  noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3139  # Clear libgcj_saved so that even if java is enabled libffi won't be
3140  # built.
3141  libgcj_saved=
3142  ;;
3143esac
3144
3145# Check whether --enable-static-libjava was given.
3146if test "${enable_static_libjava+set}" = set; then :
3147  enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3148else
3149  ENABLE_STATIC_LIBJAVA=no
3150fi
3151
3152enable_static_libjava=
3153if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3154  enable_static_libjava=yes
3155fi
3156
3157if test x$enable_static_libjava != xyes ; then
3158  EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3159fi
3160
3161
3162# Disable libgomp on non POSIX hosted systems.
3163if test x$enable_libgomp = x ; then
3164    # Enable libgomp by default on hosted POSIX systems.
3165    case "${target}" in
3166    *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3167	;;
3168    *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3169	;;
3170    *-*-solaris2* | *-*-hpux11*)
3171	;;
3172    *-*-darwin* | *-*-aix*)
3173	;;
3174    *)
3175	noconfigdirs="$noconfigdirs target-libgomp"
3176	;;
3177    esac
3178fi
3179
3180# Disable libatomic on unsupported systems.
3181if test -d ${srcdir}/libatomic; then
3182    if test x$enable_libatomic = x; then
3183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3184$as_echo_n "checking for libatomic support... " >&6; }
3185	if (srcdir=${srcdir}/libatomic; \
3186		. ${srcdir}/configure.tgt; \
3187		test -n "$UNSUPPORTED")
3188	then
3189	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190$as_echo "no" >&6; }
3191	    noconfigdirs="$noconfigdirs target-libatomic"
3192	else
3193	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3194$as_echo "yes" >&6; }
3195	fi
3196    fi
3197fi
3198
3199# Disable libcilkrts on unsupported systems.
3200if test -d ${srcdir}/libcilkrts; then
3201    if test x$enable_libcilkrts = x; then
3202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3203$as_echo_n "checking for libcilkrts support... " >&6; }
3204	if (srcdir=${srcdir}/libcilkrts; \
3205		. ${srcdir}/configure.tgt; \
3206		test -n "$UNSUPPORTED")
3207	then
3208	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209$as_echo "no" >&6; }
3210	    noconfigdirs="$noconfigdirs target-libcilkrts"
3211	else
3212	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213$as_echo "yes" >&6; }
3214	fi
3215    fi
3216fi
3217
3218# Disable liboffloadmic on unsupported systems.
3219if test -d ${srcdir}/liboffloadmic; then
3220    if test x$enable_liboffloadmic != xno; then
3221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3222$as_echo_n "checking for liboffloadmic support... " >&6; }
3223	if (srcdir=${srcdir}/liboffloadmic; \
3224		. ${srcdir}/configure.tgt; \
3225		test -n "$UNSUPPORTED")
3226	then
3227	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228$as_echo "no" >&6; }
3229	    noconfigdirs="$noconfigdirs target-liboffloadmic"
3230	else
3231	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3232$as_echo "yes" >&6; }
3233	fi
3234    fi
3235fi
3236
3237# Disable libitm on unsupported systems.
3238if test -d ${srcdir}/libitm; then
3239    if test x$enable_libitm = x; then
3240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3241$as_echo_n "checking for libitm support... " >&6; }
3242	if (srcdir=${srcdir}/libitm; \
3243		. ${srcdir}/configure.tgt; \
3244		test -n "$UNSUPPORTED")
3245	then
3246	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247$as_echo "no" >&6; }
3248	    noconfigdirs="$noconfigdirs target-libitm"
3249	else
3250	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3251$as_echo "yes" >&6; }
3252	fi
3253    fi
3254fi
3255
3256# Disable libsanitizer on unsupported systems.
3257if test -d ${srcdir}/libsanitizer; then
3258    if test x$enable_libsanitizer = x; then
3259	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3260$as_echo_n "checking for libsanitizer support... " >&6; }
3261	if (srcdir=${srcdir}/libsanitizer; \
3262		. ${srcdir}/configure.tgt; \
3263		test -n "$UNSUPPORTED")
3264	then
3265	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266$as_echo "no" >&6; }
3267	    noconfigdirs="$noconfigdirs target-libsanitizer"
3268	else
3269	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270$as_echo "yes" >&6; }
3271	fi
3272    fi
3273fi
3274
3275# Disable libvtv on unsupported systems.
3276if test -d ${srcdir}/libvtv; then
3277    if test x$enable_libvtv = x; then
3278	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3279$as_echo_n "checking for libvtv support... " >&6; }
3280	if (srcdir=${srcdir}/libvtv; \
3281		. ${srcdir}/configure.tgt; \
3282		test "$VTV_SUPPORTED" != "yes")
3283	then
3284	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285$as_echo "no" >&6; }
3286	    noconfigdirs="$noconfigdirs target-libvtv"
3287	else
3288	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3289$as_echo "yes" >&6; }
3290	fi
3291    fi
3292fi
3293
3294
3295# Enable libmpx on supported systems by request.
3296if test -d ${srcdir}/libmpx; then
3297    if test x$enable_libmpx = xyes; then
3298       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3299$as_echo_n "checking for libmpx support... " >&6; }
3300       if (srcdir=${srcdir}/libmpx; \
3301               . ${srcdir}/configure.tgt; \
3302               test "$LIBMPX_SUPPORTED" != "yes")
3303       then
3304           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305$as_echo "no" >&6; }
3306           noconfigdirs="$noconfigdirs target-libmpx"
3307       else
3308           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3309$as_echo "yes" >&6; }
3310       fi
3311    else
3312       noconfigdirs="$noconfigdirs target-libmpx"
3313    fi
3314fi
3315
3316
3317
3318# Disable libquadmath for some systems.
3319case "${target}" in
3320  avr-*-*)
3321    noconfigdirs="$noconfigdirs target-libquadmath"
3322    ;;
3323  # libquadmath is unused on AIX and libquadmath build process use of
3324  # LD_LIBRARY_PATH can break AIX bootstrap.
3325  powerpc-*-aix* | rs6000-*-aix*)
3326    noconfigdirs="$noconfigdirs target-libquadmath"
3327    ;;
3328esac
3329
3330# Disable libssp for some systems.
3331case "${target}" in
3332  avr-*-*)
3333    # No hosted I/O support.
3334    noconfigdirs="$noconfigdirs target-libssp"
3335    ;;
3336  powerpc-*-aix* | rs6000-*-aix*)
3337    noconfigdirs="$noconfigdirs target-libssp"
3338    ;;
3339  rl78-*-*)
3340    # libssp uses a misaligned load to trigger a fault, but the RL78
3341    # doesn't fault for those - instead, it gives a build-time error
3342    # for explicit misaligned loads.
3343    noconfigdirs="$noconfigdirs target-libssp"
3344    ;;
3345  visium-*-*)
3346    # No hosted I/O support.
3347    noconfigdirs="$noconfigdirs target-libssp"
3348    ;;
3349esac
3350
3351# Disable libstdc++-v3 for some systems.
3352# Allow user to override this if they pass --enable-libstdc++-v3
3353if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3354  case "${target}" in
3355    *-*-vxworks*)
3356      # VxWorks uses the Dinkumware C++ library.
3357      noconfigdirs="$noconfigdirs target-libstdc++-v3"
3358      ;;
3359    arm*-wince-pe*)
3360      # the C++ libraries don't build on top of CE's C libraries
3361      noconfigdirs="$noconfigdirs target-libstdc++-v3"
3362      ;;
3363    avr-*-*)
3364      noconfigdirs="$noconfigdirs target-libstdc++-v3"
3365      ;;
3366  esac
3367fi
3368
3369# Disable Fortran for some systems.
3370case "${target}" in
3371  mmix-*-*)
3372    # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3373    unsupported_languages="$unsupported_languages fortran"
3374    ;;
3375esac
3376
3377# Disable Java if libffi is not supported.
3378case "${target}" in
3379  aarch64-*-*)
3380    ;;
3381  alpha*-*-*)
3382    ;;
3383  arm*-*-*)
3384    ;;
3385  cris-*-*)
3386    ;;
3387  frv-*-*)
3388    ;;
3389  hppa*-*-linux*)
3390    ;;
3391  hppa*-*-hpux*)
3392    ;;
3393  i?86-*-*)
3394    ;;
3395  ia64*-*-*)
3396    ;;
3397  m32r*-*-*)
3398    ;;
3399  m68k-*-*)
3400    ;;
3401  mips*-*-rtems*)
3402    ;;
3403  mips*-*-linux*)
3404    ;;
3405  powerpc*-*-linux*)
3406    ;;
3407  powerpc-*-darwin*)
3408    ;;
3409  powerpc-*-aix* | rs6000-*-aix*)
3410    ;;
3411  powerpc-*-freebsd*)
3412    ;;
3413  powerpc64-*-freebsd*)
3414    ;;
3415  powerpc*-*-rtems*)
3416    ;;
3417  s390-*-* | s390x-*-*)
3418    ;;
3419  sh-*-* | sh[34]*-*-*)
3420    ;;
3421  sh64-*-* | sh5*-*-*)
3422    ;;
3423  sparc*-*-*)
3424    ;;
3425  x86_64-*-*)
3426    ;;
3427  *-*-*)
3428    unsupported_languages="$unsupported_languages java"
3429    ;;
3430esac
3431
3432# Disable Java, libgcj or related libraries for some systems.
3433case "${target}" in
3434  powerpc-*-darwin*)
3435    ;;
3436  i[3456789]86-*-darwin*)
3437    ;;
3438  x86_64-*-darwin[912]*)
3439    ;;
3440  *-*-darwin*)
3441    noconfigdirs="$noconfigdirs ${libgcj}"
3442    ;;
3443  *-*-netware*)
3444    noconfigdirs="$noconfigdirs ${libgcj}"
3445    ;;
3446  *-*-rtems*)
3447    noconfigdirs="$noconfigdirs ${libgcj}"
3448    ;;
3449  *-*-tpf*)
3450    noconfigdirs="$noconfigdirs ${libgcj}"
3451    ;;
3452  *-*-uclinux*)
3453    noconfigdirs="$noconfigdirs ${libgcj}"
3454    ;;
3455  *-*-vxworks*)
3456    noconfigdirs="$noconfigdirs ${libgcj}"
3457    ;;
3458  aarch64*-*-freebsd*)
3459    noconfigdirs="$noconfigdirs ${libgcj}"
3460    ;;
3461  alpha*-*-*vms*)
3462    noconfigdirs="$noconfigdirs ${libgcj}"
3463    ;;
3464  arm*-*-freebsd*)
3465    noconfigdirs="$noconfigdirs ${libgcj}"
3466    ;;
3467  arm-wince-pe)
3468    noconfigdirs="$noconfigdirs ${libgcj}"
3469    ;;
3470  arm*-*-symbianelf*)
3471    noconfigdirs="$noconfigdirs ${libgcj}"
3472    ;;
3473  bfin-*-*)
3474    noconfigdirs="$noconfigdirs target-boehm-gc"
3475    ;;
3476  cris-*-* | crisv32-*-*)
3477    unsupported_languages="$unsupported_languages java"
3478    case "${target}" in
3479      *-*-linux*)
3480	;;
3481      *) # See PR46792 regarding target-libffi.
3482	noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3483    esac
3484    ;;
3485  hppa*64*-*-linux*)
3486    # In this case, it's because the hppa64-linux target is for
3487    # the kernel only at this point and has no libc, and thus no
3488    # headers, crt*.o, etc., all of which are needed by these.
3489    unsupported_languages="$unsupported_languages java"
3490    ;;
3491  hppa*64*-*-hpux*)
3492    noconfigdirs="$noconfigdirs ${libgcj}"
3493    ;;
3494  hppa*-hp-hpux11*)
3495    ;;
3496  hppa*-*-hpux*)
3497    # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3498    # build on HP-UX 10.20.
3499    noconfigdirs="$noconfigdirs ${libgcj}"
3500    ;;
3501  ia64*-*-*vms*)
3502    noconfigdirs="$noconfigdirs ${libgcj}"
3503    ;;
3504  i[3456789]86-w64-mingw*)
3505    noconfigdirs="$noconfigdirs ${libgcj}"
3506    ;;
3507  i[3456789]86-*-mingw*)
3508    noconfigdirs="$noconfigdirs ${libgcj}"
3509    ;;
3510  x86_64-*-mingw*)
3511    noconfigdirs="$noconfigdirs ${libgcj}"
3512    ;;
3513  mmix-*-*)
3514    noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3515    ;;
3516  powerpc-*-aix*)
3517    # copied from rs6000-*-* entry
3518    noconfigdirs="$noconfigdirs ${libgcj}"
3519    ;;
3520  rs6000-*-aix*)
3521    noconfigdirs="$noconfigdirs ${libgcj}"
3522    ;;
3523  *-*-lynxos*)
3524    noconfigdirs="$noconfigdirs ${libgcj}"
3525    ;;
3526esac
3527
3528# Disable the go frontend on systems where it is known to not work. Please keep
3529# this in sync with contrib/config-list.mk.
3530case "${target}" in
3531*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3532    unsupported_languages="$unsupported_languages go"
3533    ;;
3534esac
3535
3536# Disable libgo for some systems where it is known to not work.
3537# For testing, you can easily override this with --enable-libgo.
3538if test x$enable_libgo = x; then
3539    case "${target}" in
3540    *-*-darwin*)
3541	# PR 46986
3542	noconfigdirs="$noconfigdirs target-libgo"
3543	;;
3544    *-*-cygwin* | *-*-mingw*)
3545	noconfigdirs="$noconfigdirs target-libgo"
3546	;;
3547    *-*-aix*)
3548	noconfigdirs="$noconfigdirs target-libgo"
3549	;;
3550    esac
3551fi
3552
3553# Default libgloss CPU subdirectory.
3554libgloss_dir="$target_cpu"
3555
3556case "${target}" in
3557  sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3558    libgloss_dir=wince
3559    ;;
3560  aarch64*-*-* )
3561    libgloss_dir=aarch64
3562    ;;
3563  arm*-*-*)
3564    libgloss_dir=arm
3565    ;;
3566  cris-*-* | crisv32-*-*)
3567    libgloss_dir=cris
3568    ;;
3569  hppa*-*-*)
3570    libgloss_dir=pa
3571    ;;
3572  i[3456789]86-*-*)
3573    libgloss_dir=i386
3574    ;;
3575  m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3576    libgloss_dir=m68hc11
3577    ;;
3578  m68*-*-* | fido-*-*)
3579    libgloss_dir=m68k
3580    ;;
3581  mips*-*-*)
3582    libgloss_dir=mips
3583    ;;
3584  powerpc*-*-*)
3585    libgloss_dir=rs6000
3586    ;;
3587  sparc*-*-*)
3588    libgloss_dir=sparc
3589    ;;
3590esac
3591
3592# Disable newlib and libgloss for various target OSes.
3593case "${target}" in
3594  alpha*-dec-osf*)
3595    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596    ;;
3597  i[3456789]86-*-linux*)
3598    # This section makes it possible to build newlib natively on linux.
3599    # If we are using a cross compiler then don't configure newlib.
3600    if test x${is_cross_compiler} != xno ; then
3601      noconfigdirs="$noconfigdirs target-newlib"
3602    fi
3603    noconfigdirs="$noconfigdirs target-libgloss"
3604    # If we are not using a cross compiler, do configure newlib.
3605    # Note however, that newlib will only be configured in this situation
3606    # if the --with-newlib option has been given, because otherwise
3607    # 'target-newlib' will appear in skipdirs.
3608    ;;
3609  i[3456789]86-*-rdos*)
3610    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611    ;;
3612  sh*-*-pe|mips*-*-pe|arm-wince-pe)
3613    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3614    ;;
3615  sparc-*-sunos4*)
3616    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3617    ;;
3618  *-*-aix*)
3619    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620    ;;
3621  *-*-beos*)
3622    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623    ;;
3624  *-*-chorusos)
3625    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626    ;;
3627  *-*-dragonfly*)
3628    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629    ;;
3630  *-*-freebsd*)
3631    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632    ;;
3633  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3634    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635    ;;
3636  *-*-lynxos*)
3637    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3638    ;;
3639  *-*-mingw*)
3640    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3641    ;;
3642  *-*-netbsd*)
3643    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3644    ;;
3645  *-*-netware*)
3646    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3647    ;;
3648  *-*-tpf*)
3649    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650    ;;
3651  *-*-uclinux*)
3652    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653    ;;
3654  *-*-vxworks*)
3655    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656    ;;
3657esac
3658
3659case "${target}" in
3660  *-*-chorusos)
3661    ;;
3662  powerpc-*-darwin*)
3663    noconfigdirs="$noconfigdirs ld gas gdb gprof"
3664    noconfigdirs="$noconfigdirs sim target-rda"
3665    ;;
3666  i[3456789]86-*-darwin*)
3667    noconfigdirs="$noconfigdirs ld gprof"
3668    noconfigdirs="$noconfigdirs sim target-rda"
3669    ;;
3670  x86_64-*-darwin[912]*)
3671    noconfigdirs="$noconfigdirs ld gas gprof"
3672    noconfigdirs="$noconfigdirs sim target-rda"
3673    ;;
3674  *-*-darwin*)
3675    noconfigdirs="$noconfigdirs ld gas gdb gprof"
3676    noconfigdirs="$noconfigdirs sim target-rda"
3677    ;;
3678  *-*-dragonfly*)
3679    ;;
3680  *-*-freebsd*)
3681    if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3682	&& test -f /usr/local/include/gmp.h; then
3683      with_gmp=/usr/local
3684    fi
3685    ;;
3686  *-*-kaos*)
3687    # Remove unsupported stuff on all kaOS configurations.
3688    noconfigdirs="$noconfigdirs target-libgloss"
3689    ;;
3690  *-*-netbsd*)
3691    ;;
3692  *-*-netware*)
3693    ;;
3694  *-*-rtems*)
3695    noconfigdirs="$noconfigdirs target-libgloss"
3696    # this is not caught below because this stanza matches earlier
3697    case $target in
3698      or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3699    esac
3700    ;;
3701    # The tpf target doesn't support gdb yet.
3702  *-*-tpf*)
3703    noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3704    ;;
3705  *-*-uclinux*)
3706    noconfigdirs="$noconfigdirs target-rda"
3707    ;;
3708  *-*-vxworks*)
3709    ;;
3710  alpha*-dec-osf*)
3711    # ld works, but does not support shared libraries.
3712    # gas doesn't generate exception information.
3713    noconfigdirs="$noconfigdirs gas ld"
3714    ;;
3715  alpha*-*-*vms*)
3716    noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3717    ;;
3718  alpha*-*-*)
3719    # newlib is not 64 bit ready
3720    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3721    ;;
3722  sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3723    noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3724    ;;
3725  arc-*-*|arceb-*-*)
3726    noconfigdirs="$noconfigdirs target-libgloss"
3727    ;;
3728  arm-*-pe*)
3729    noconfigdirs="$noconfigdirs target-libgloss"
3730    ;;
3731  arm-*-riscix*)
3732    noconfigdirs="$noconfigdirs ld target-libgloss"
3733    ;;
3734  avr-*-rtems*)
3735    ;;
3736  avr-*-*)
3737    if test x${with_avrlibc} != xno; then
3738      noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3739    fi
3740    ;;
3741  c4x-*-* | tic4x-*-*)
3742    noconfigdirs="$noconfigdirs target-libgloss"
3743    ;;
3744  tic54x-*-*)
3745    noconfigdirs="$noconfigdirs target-libgloss gdb"
3746    ;;
3747  d10v-*-*)
3748    noconfigdirs="$noconfigdirs target-libgloss"
3749    ;;
3750  d30v-*-*)
3751    noconfigdirs="$noconfigdirs gdb"
3752    ;;
3753  fr30-*-elf*)
3754    noconfigdirs="$noconfigdirs gdb"
3755    ;;
3756  moxie-*-*)
3757    noconfigdirs="$noconfigdirs gprof"
3758    ;;
3759  h8300*-*-*)
3760    noconfigdirs="$noconfigdirs target-libgloss"
3761    ;;
3762  h8500-*-*)
3763    noconfigdirs="$noconfigdirs target-libgloss"
3764    ;;
3765  hppa1.1-*-osf* | hppa1.1-*-bsd* )
3766    ;;
3767  hppa*64*-*-linux*)
3768    ;;
3769  hppa*-*-linux*)
3770    ;;
3771  hppa*-*-*elf* | \
3772  hppa*-*-lites* | \
3773  hppa*-*-openbsd* | \
3774  hppa*64*-*-*)
3775    ;;
3776  hppa*-hp-hpux11*)
3777    noconfigdirs="$noconfigdirs ld"
3778    ;;
3779  hppa*-*-pro*)
3780    ;;
3781  hppa*-*-*)
3782    noconfigdirs="$noconfigdirs ld"
3783    ;;
3784  i960-*-*)
3785    noconfigdirs="$noconfigdirs gdb"
3786    ;;
3787  ia64*-*-elf*)
3788    # No gdb support yet.
3789    noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3790    ;;
3791  ia64*-**-hpux*)
3792    # No ld support yet.
3793    noconfigdirs="$noconfigdirs libgui itcl ld"
3794    ;;
3795  ia64*-*-*vms*)
3796    # No ld support yet.
3797    noconfigdirs="$noconfigdirs libgui itcl ld"
3798    ;;
3799  i[3456789]86-w64-mingw*)
3800    ;;
3801  i[3456789]86-*-mingw*)
3802    target_configdirs="$target_configdirs target-winsup"
3803    ;;
3804  *-*-cygwin*)
3805    target_configdirs="$target_configdirs target-libtermcap target-winsup"
3806    noconfigdirs="$noconfigdirs target-libgloss"
3807    # always build newlib if winsup directory is present.
3808    if test -d "$srcdir/winsup/cygwin"; then
3809      skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3810    elif test -d "$srcdir/newlib"; then
3811      echo "Warning: winsup/cygwin is missing so newlib can't be built."
3812    fi
3813    ;;
3814  i[3456789]86-*-pe)
3815    noconfigdirs="$noconfigdirs target-libgloss"
3816    ;;
3817  i[3456789]86-*-sco3.2v5*)
3818    # The linker does not yet know about weak symbols in COFF,
3819    # and is not configured to handle mixed ELF and COFF.
3820    noconfigdirs="$noconfigdirs ld target-libgloss"
3821    ;;
3822  i[3456789]86-*-sco*)
3823    noconfigdirs="$noconfigdirs gprof target-libgloss"
3824    ;;
3825  i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3826    noconfigdirs="$noconfigdirs target-libgloss"
3827    ;;
3828  i[3456789]86-*-sysv4*)
3829    noconfigdirs="$noconfigdirs target-libgloss"
3830    ;;
3831  i[3456789]86-*-beos*)
3832    noconfigdirs="$noconfigdirs gdb"
3833    ;;
3834  i[3456789]86-*-rdos*)
3835    noconfigdirs="$noconfigdirs gdb"
3836    ;;
3837  mmix-*-*)
3838    noconfigdirs="$noconfigdirs gdb"
3839    ;;
3840  mt-*-*)
3841    noconfigdirs="$noconfigdirs sim"
3842    ;;
3843  powerpc-*-aix*)
3844    # copied from rs6000-*-* entry
3845    noconfigdirs="$noconfigdirs gprof"
3846    ;;
3847  powerpc*-*-winnt* | powerpc*-*-pe*)
3848    target_configdirs="$target_configdirs target-winsup"
3849    noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3850    # always build newlib.
3851    skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3852    ;;
3853    # This is temporary until we can link against shared libraries
3854  powerpcle-*-solaris*)
3855    noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3856    ;;
3857  powerpc-*-beos*)
3858    noconfigdirs="$noconfigdirs gdb"
3859    ;;
3860  rs6000-*-lynxos*)
3861    noconfigdirs="$noconfigdirs gprof"
3862    ;;
3863  rs6000-*-aix*)
3864    noconfigdirs="$noconfigdirs gprof"
3865    ;;
3866  rs6000-*-*)
3867    noconfigdirs="$noconfigdirs gprof"
3868    ;;
3869  m68k-apollo-*)
3870    noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3871    ;;
3872  microblaze*)
3873    noconfigdirs="$noconfigdirs gprof"
3874    ;;
3875  mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3876    if test x$with_newlib = xyes; then
3877      noconfigdirs="$noconfigdirs gprof"
3878    fi
3879    ;;
3880  mips*-*-irix5*)
3881    noconfigdirs="$noconfigdirs gprof target-libgloss"
3882    ;;
3883  mips*-*-irix6*)
3884    noconfigdirs="$noconfigdirs gprof target-libgloss"
3885    ;;
3886  mips*-*-bsd*)
3887    noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3888    ;;
3889  mips*-*-linux*)
3890    ;;
3891  mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3892  | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3893    noconfigdirs="$noconfigdirs ld gas gprof"
3894    ;;
3895  mips*-*-*)
3896    noconfigdirs="$noconfigdirs gprof"
3897    ;;
3898  nds32*-*-*)
3899    noconfigdirs="$noconfigdirs gdb"
3900    ;;
3901  nvptx*-*-*)
3902    # nvptx is just a compiler
3903    noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3904    ;;
3905  or1k*-*-*)
3906    noconfigdirs="$noconfigdirs gdb"
3907    ;;
3908  sh-*-* | sh64-*-*)
3909    case "${target}" in
3910      sh*-*-elf)
3911         ;;
3912      *)
3913         noconfigdirs="$noconfigdirs target-libgloss" ;;
3914    esac
3915    ;;
3916  sparc-*-sunos4*)
3917    if test x${is_cross_compiler} = xno ; then
3918           use_gnu_ld=no
3919    fi
3920    ;;
3921  tic6x-*-*)
3922    noconfigdirs="$noconfigdirs sim"
3923    ;;
3924  tilepro*-*-* | tilegx*-*-*)
3925    noconfigdirs="$noconfigdirs sim"
3926    ;;
3927  v810-*-*)
3928    noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3929    ;;
3930  vax-*-*)
3931    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3932    ;;
3933esac
3934
3935# If we aren't building newlib, then don't build libgloss, since libgloss
3936# depends upon some newlib header files.
3937case "${noconfigdirs}" in
3938  *target-libgloss*) ;;
3939  *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3940esac
3941
3942# Work in distributions that contain no compiler tools, like Autoconf.
3943host_makefile_frag=/dev/null
3944if test -d ${srcdir}/config ; then
3945case "${host}" in
3946  i[3456789]86-*-msdosdjgpp*)
3947    host_makefile_frag="config/mh-djgpp"
3948    ;;
3949  *-cygwin*)
3950
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3952$as_echo_n "checking to see if cat works as expected... " >&6; }
3953echo a >cygwin-cat-check
3954if test `cat cygwin-cat-check` = a ; then
3955  rm cygwin-cat-check
3956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3957$as_echo "yes" >&6; }
3958else
3959  rm cygwin-cat-check
3960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961$as_echo "no" >&6; }
3962  as_fn_error "The cat command does not ignore carriage return characters.
3963  Please either mount the build directory in binary mode or run the following
3964  commands before running any configure script:
3965set -o igncr
3966export SHELLOPTS
3967  " "$LINENO" 5
3968fi
3969
3970    host_makefile_frag="config/mh-cygwin"
3971    ;;
3972  *-mingw*)
3973    host_makefile_frag="config/mh-mingw"
3974    ;;
3975  alpha*-linux*)
3976    host_makefile_frag="config/mh-alpha-linux"
3977    ;;
3978  hppa*-hp-hpux10*)
3979    host_makefile_frag="config/mh-pa-hpux10"
3980    ;;
3981  hppa*-hp-hpux*)
3982    host_makefile_frag="config/mh-pa"
3983    ;;
3984  hppa*-*)
3985    host_makefile_frag="config/mh-pa"
3986    ;;
3987  *-*-darwin*)
3988    host_makefile_frag="config/mh-darwin"
3989    ;;
3990  powerpc-*-aix*)
3991    host_makefile_frag="config/mh-ppc-aix"
3992    ;;
3993  rs6000-*-aix*)
3994    host_makefile_frag="config/mh-ppc-aix"
3995    ;;
3996esac
3997fi
3998
3999if test "${build}" != "${host}" ; then
4000  AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4001  AS_FOR_BUILD=${AS_FOR_BUILD-as}
4002  CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4003  CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4004  GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4005  GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4006  GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4007  DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4008  LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4009  NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4010  RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4011  WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4012  WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4013else
4014  AR_FOR_BUILD="\$(AR)"
4015  AS_FOR_BUILD="\$(AS)"
4016  CC_FOR_BUILD="\$(CC)"
4017  CXX_FOR_BUILD="\$(CXX)"
4018  GCJ_FOR_BUILD="\$(GCJ)"
4019  GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4020  GOC_FOR_BUILD="\$(GOC)"
4021  DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4022  LD_FOR_BUILD="\$(LD)"
4023  NM_FOR_BUILD="\$(NM)"
4024  RANLIB_FOR_BUILD="\$(RANLIB)"
4025  WINDRES_FOR_BUILD="\$(WINDRES)"
4026  WINDMC_FOR_BUILD="\$(WINDMC)"
4027fi
4028
4029ac_ext=c
4030ac_cpp='$CPP $CPPFLAGS'
4031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033ac_compiler_gnu=$ac_cv_c_compiler_gnu
4034if test -n "$ac_tool_prefix"; then
4035  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4036set dummy ${ac_tool_prefix}gcc; ac_word=$2
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038$as_echo_n "checking for $ac_word... " >&6; }
4039if test "${ac_cv_prog_CC+set}" = set; then :
4040  $as_echo_n "(cached) " >&6
4041else
4042  if test -n "$CC"; then
4043  ac_cv_prog_CC="$CC" # Let the user override the test.
4044else
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048  IFS=$as_save_IFS
4049  test -z "$as_dir" && as_dir=.
4050    for ac_exec_ext in '' $ac_executable_extensions; do
4051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054    break 2
4055  fi
4056done
4057  done
4058IFS=$as_save_IFS
4059
4060fi
4061fi
4062CC=$ac_cv_prog_CC
4063if test -n "$CC"; then
4064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4065$as_echo "$CC" >&6; }
4066else
4067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068$as_echo "no" >&6; }
4069fi
4070
4071
4072fi
4073if test -z "$ac_cv_prog_CC"; then
4074  ac_ct_CC=$CC
4075  # Extract the first word of "gcc", so it can be a program name with args.
4076set dummy gcc; ac_word=$2
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078$as_echo_n "checking for $ac_word... " >&6; }
4079if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4080  $as_echo_n "(cached) " >&6
4081else
4082  if test -n "$ac_ct_CC"; then
4083  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4084else
4085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086for as_dir in $PATH
4087do
4088  IFS=$as_save_IFS
4089  test -z "$as_dir" && as_dir=.
4090    for ac_exec_ext in '' $ac_executable_extensions; do
4091  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4092    ac_cv_prog_ac_ct_CC="gcc"
4093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4094    break 2
4095  fi
4096done
4097  done
4098IFS=$as_save_IFS
4099
4100fi
4101fi
4102ac_ct_CC=$ac_cv_prog_ac_ct_CC
4103if test -n "$ac_ct_CC"; then
4104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4105$as_echo "$ac_ct_CC" >&6; }
4106else
4107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108$as_echo "no" >&6; }
4109fi
4110
4111  if test "x$ac_ct_CC" = x; then
4112    CC=""
4113  else
4114    case $cross_compiling:$ac_tool_warned in
4115yes:)
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4118ac_tool_warned=yes ;;
4119esac
4120    CC=$ac_ct_CC
4121  fi
4122else
4123  CC="$ac_cv_prog_CC"
4124fi
4125
4126if test -z "$CC"; then
4127          if test -n "$ac_tool_prefix"; then
4128    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4129set dummy ${ac_tool_prefix}cc; ac_word=$2
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131$as_echo_n "checking for $ac_word... " >&6; }
4132if test "${ac_cv_prog_CC+set}" = set; then :
4133  $as_echo_n "(cached) " >&6
4134else
4135  if test -n "$CC"; then
4136  ac_cv_prog_CC="$CC" # Let the user override the test.
4137else
4138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139for as_dir in $PATH
4140do
4141  IFS=$as_save_IFS
4142  test -z "$as_dir" && as_dir=.
4143    for ac_exec_ext in '' $ac_executable_extensions; do
4144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4145    ac_cv_prog_CC="${ac_tool_prefix}cc"
4146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147    break 2
4148  fi
4149done
4150  done
4151IFS=$as_save_IFS
4152
4153fi
4154fi
4155CC=$ac_cv_prog_CC
4156if test -n "$CC"; then
4157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4158$as_echo "$CC" >&6; }
4159else
4160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161$as_echo "no" >&6; }
4162fi
4163
4164
4165  fi
4166fi
4167if test -z "$CC"; then
4168  # Extract the first word of "cc", so it can be a program name with args.
4169set dummy cc; ac_word=$2
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171$as_echo_n "checking for $ac_word... " >&6; }
4172if test "${ac_cv_prog_CC+set}" = set; then :
4173  $as_echo_n "(cached) " >&6
4174else
4175  if test -n "$CC"; then
4176  ac_cv_prog_CC="$CC" # Let the user override the test.
4177else
4178  ac_prog_rejected=no
4179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180for as_dir in $PATH
4181do
4182  IFS=$as_save_IFS
4183  test -z "$as_dir" && as_dir=.
4184    for ac_exec_ext in '' $ac_executable_extensions; do
4185  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4187       ac_prog_rejected=yes
4188       continue
4189     fi
4190    ac_cv_prog_CC="cc"
4191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192    break 2
4193  fi
4194done
4195  done
4196IFS=$as_save_IFS
4197
4198if test $ac_prog_rejected = yes; then
4199  # We found a bogon in the path, so make sure we never use it.
4200  set dummy $ac_cv_prog_CC
4201  shift
4202  if test $# != 0; then
4203    # We chose a different compiler from the bogus one.
4204    # However, it has the same basename, so the bogon will be chosen
4205    # first if we set CC to just the basename; use the full file name.
4206    shift
4207    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4208  fi
4209fi
4210fi
4211fi
4212CC=$ac_cv_prog_CC
4213if test -n "$CC"; then
4214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4215$as_echo "$CC" >&6; }
4216else
4217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218$as_echo "no" >&6; }
4219fi
4220
4221
4222fi
4223if test -z "$CC"; then
4224  if test -n "$ac_tool_prefix"; then
4225  for ac_prog in cl.exe
4226  do
4227    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4228set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230$as_echo_n "checking for $ac_word... " >&6; }
4231if test "${ac_cv_prog_CC+set}" = set; then :
4232  $as_echo_n "(cached) " >&6
4233else
4234  if test -n "$CC"; then
4235  ac_cv_prog_CC="$CC" # Let the user override the test.
4236else
4237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238for as_dir in $PATH
4239do
4240  IFS=$as_save_IFS
4241  test -z "$as_dir" && as_dir=.
4242    for ac_exec_ext in '' $ac_executable_extensions; do
4243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4244    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246    break 2
4247  fi
4248done
4249  done
4250IFS=$as_save_IFS
4251
4252fi
4253fi
4254CC=$ac_cv_prog_CC
4255if test -n "$CC"; then
4256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4257$as_echo "$CC" >&6; }
4258else
4259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260$as_echo "no" >&6; }
4261fi
4262
4263
4264    test -n "$CC" && break
4265  done
4266fi
4267if test -z "$CC"; then
4268  ac_ct_CC=$CC
4269  for ac_prog in cl.exe
4270do
4271  # Extract the first word of "$ac_prog", so it can be a program name with args.
4272set dummy $ac_prog; ac_word=$2
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274$as_echo_n "checking for $ac_word... " >&6; }
4275if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4276  $as_echo_n "(cached) " >&6
4277else
4278  if test -n "$ac_ct_CC"; then
4279  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4280else
4281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282for as_dir in $PATH
4283do
4284  IFS=$as_save_IFS
4285  test -z "$as_dir" && as_dir=.
4286    for ac_exec_ext in '' $ac_executable_extensions; do
4287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4288    ac_cv_prog_ac_ct_CC="$ac_prog"
4289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290    break 2
4291  fi
4292done
4293  done
4294IFS=$as_save_IFS
4295
4296fi
4297fi
4298ac_ct_CC=$ac_cv_prog_ac_ct_CC
4299if test -n "$ac_ct_CC"; then
4300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4301$as_echo "$ac_ct_CC" >&6; }
4302else
4303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304$as_echo "no" >&6; }
4305fi
4306
4307
4308  test -n "$ac_ct_CC" && break
4309done
4310
4311  if test "x$ac_ct_CC" = x; then
4312    CC=""
4313  else
4314    case $cross_compiling:$ac_tool_warned in
4315yes:)
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4318ac_tool_warned=yes ;;
4319esac
4320    CC=$ac_ct_CC
4321  fi
4322fi
4323
4324fi
4325
4326
4327test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4329as_fn_error "no acceptable C compiler found in \$PATH
4330See \`config.log' for more details." "$LINENO" 5; }
4331
4332# Provide some information about the compiler.
4333$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4334set X $ac_compile
4335ac_compiler=$2
4336for ac_option in --version -v -V -qversion; do
4337  { { ac_try="$ac_compiler $ac_option >&5"
4338case "(($ac_try" in
4339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340  *) ac_try_echo=$ac_try;;
4341esac
4342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343$as_echo "$ac_try_echo"; } >&5
4344  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4345  ac_status=$?
4346  if test -s conftest.err; then
4347    sed '10a\
4348... rest of stderr output deleted ...
4349         10q' conftest.err >conftest.er1
4350    cat conftest.er1 >&5
4351    rm -f conftest.er1 conftest.err
4352  fi
4353  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354  test $ac_status = 0; }
4355done
4356
4357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358/* end confdefs.h.  */
4359
4360int
4361main ()
4362{
4363
4364  ;
4365  return 0;
4366}
4367_ACEOF
4368ac_clean_files_save=$ac_clean_files
4369ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4370# Try to create an executable without -o first, disregard a.out.
4371# It will help us diagnose broken compilers, and finding out an intuition
4372# of exeext.
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4374$as_echo_n "checking for C compiler default output file name... " >&6; }
4375ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4376
4377# The possible output files:
4378ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4379
4380ac_rmfiles=
4381for ac_file in $ac_files
4382do
4383  case $ac_file in
4384    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4385    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4386  esac
4387done
4388rm -f $ac_rmfiles
4389
4390if { { ac_try="$ac_link_default"
4391case "(($ac_try" in
4392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393  *) ac_try_echo=$ac_try;;
4394esac
4395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396$as_echo "$ac_try_echo"; } >&5
4397  (eval "$ac_link_default") 2>&5
4398  ac_status=$?
4399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400  test $ac_status = 0; }; then :
4401  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4402# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4403# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4404# so that the user can short-circuit this test for compilers unknown to
4405# Autoconf.
4406for ac_file in $ac_files ''
4407do
4408  test -f "$ac_file" || continue
4409  case $ac_file in
4410    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4411	;;
4412    [ab].out )
4413	# We found the default executable, but exeext='' is most
4414	# certainly right.
4415	break;;
4416    *.* )
4417	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4418	then :; else
4419	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4420	fi
4421	# We set ac_cv_exeext here because the later test for it is not
4422	# safe: cross compilers may not add the suffix if given an `-o'
4423	# argument, so we may need to know it at that point already.
4424	# Even if this section looks crufty: it has the advantage of
4425	# actually working.
4426	break;;
4427    * )
4428	break;;
4429  esac
4430done
4431test "$ac_cv_exeext" = no && ac_cv_exeext=
4432
4433else
4434  ac_file=''
4435fi
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4437$as_echo "$ac_file" >&6; }
4438if test -z "$ac_file"; then :
4439  $as_echo "$as_me: failed program was:" >&5
4440sed 's/^/| /' conftest.$ac_ext >&5
4441
4442{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4444{ as_fn_set_status 77
4445as_fn_error "C compiler cannot create executables
4446See \`config.log' for more details." "$LINENO" 5; }; }
4447fi
4448ac_exeext=$ac_cv_exeext
4449
4450# Check that the compiler produces executables we can run.  If not, either
4451# the compiler is broken, or we cross compile.
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4453$as_echo_n "checking whether the C compiler works... " >&6; }
4454# If not cross compiling, check that we can run a simple program.
4455if test "$cross_compiling" != yes; then
4456  if { ac_try='./$ac_file'
4457  { { case "(($ac_try" in
4458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459  *) ac_try_echo=$ac_try;;
4460esac
4461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4462$as_echo "$ac_try_echo"; } >&5
4463  (eval "$ac_try") 2>&5
4464  ac_status=$?
4465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466  test $ac_status = 0; }; }; then
4467    cross_compiling=no
4468  else
4469    if test "$cross_compiling" = maybe; then
4470	cross_compiling=yes
4471    else
4472	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4474as_fn_error "cannot run C compiled programs.
4475If you meant to cross compile, use \`--host'.
4476See \`config.log' for more details." "$LINENO" 5; }
4477    fi
4478  fi
4479fi
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4481$as_echo "yes" >&6; }
4482
4483rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4484ac_clean_files=$ac_clean_files_save
4485# Check that the compiler produces executables we can run.  If not, either
4486# the compiler is broken, or we cross compile.
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4488$as_echo_n "checking whether we are cross compiling... " >&6; }
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4490$as_echo "$cross_compiling" >&6; }
4491
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4493$as_echo_n "checking for suffix of executables... " >&6; }
4494if { { ac_try="$ac_link"
4495case "(($ac_try" in
4496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497  *) ac_try_echo=$ac_try;;
4498esac
4499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500$as_echo "$ac_try_echo"; } >&5
4501  (eval "$ac_link") 2>&5
4502  ac_status=$?
4503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504  test $ac_status = 0; }; then :
4505  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4506# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4507# work properly (i.e., refer to `conftest.exe'), while it won't with
4508# `rm'.
4509for ac_file in conftest.exe conftest conftest.*; do
4510  test -f "$ac_file" || continue
4511  case $ac_file in
4512    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4513    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4514	  break;;
4515    * ) break;;
4516  esac
4517done
4518else
4519  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4521as_fn_error "cannot compute suffix of executables: cannot compile and link
4522See \`config.log' for more details." "$LINENO" 5; }
4523fi
4524rm -f conftest$ac_cv_exeext
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4526$as_echo "$ac_cv_exeext" >&6; }
4527
4528rm -f conftest.$ac_ext
4529EXEEXT=$ac_cv_exeext
4530ac_exeext=$EXEEXT
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4532$as_echo_n "checking for suffix of object files... " >&6; }
4533if test "${ac_cv_objext+set}" = set; then :
4534  $as_echo_n "(cached) " >&6
4535else
4536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h.  */
4538
4539int
4540main ()
4541{
4542
4543  ;
4544  return 0;
4545}
4546_ACEOF
4547rm -f conftest.o conftest.obj
4548if { { ac_try="$ac_compile"
4549case "(($ac_try" in
4550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551  *) ac_try_echo=$ac_try;;
4552esac
4553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4554$as_echo "$ac_try_echo"; } >&5
4555  (eval "$ac_compile") 2>&5
4556  ac_status=$?
4557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4558  test $ac_status = 0; }; then :
4559  for ac_file in conftest.o conftest.obj conftest.*; do
4560  test -f "$ac_file" || continue;
4561  case $ac_file in
4562    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4563    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4564       break;;
4565  esac
4566done
4567else
4568  $as_echo "$as_me: failed program was:" >&5
4569sed 's/^/| /' conftest.$ac_ext >&5
4570
4571{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4573as_fn_error "cannot compute suffix of object files: cannot compile
4574See \`config.log' for more details." "$LINENO" 5; }
4575fi
4576rm -f conftest.$ac_cv_objext conftest.$ac_ext
4577fi
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4579$as_echo "$ac_cv_objext" >&6; }
4580OBJEXT=$ac_cv_objext
4581ac_objext=$OBJEXT
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4583$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4584if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4585  $as_echo_n "(cached) " >&6
4586else
4587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588/* end confdefs.h.  */
4589
4590int
4591main ()
4592{
4593#ifndef __GNUC__
4594       choke me
4595#endif
4596
4597  ;
4598  return 0;
4599}
4600_ACEOF
4601if ac_fn_c_try_compile "$LINENO"; then :
4602  ac_compiler_gnu=yes
4603else
4604  ac_compiler_gnu=no
4605fi
4606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607ac_cv_c_compiler_gnu=$ac_compiler_gnu
4608
4609fi
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4611$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4612if test $ac_compiler_gnu = yes; then
4613  GCC=yes
4614else
4615  GCC=
4616fi
4617ac_test_CFLAGS=${CFLAGS+set}
4618ac_save_CFLAGS=$CFLAGS
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4620$as_echo_n "checking whether $CC accepts -g... " >&6; }
4621if test "${ac_cv_prog_cc_g+set}" = set; then :
4622  $as_echo_n "(cached) " >&6
4623else
4624  ac_save_c_werror_flag=$ac_c_werror_flag
4625   ac_c_werror_flag=yes
4626   ac_cv_prog_cc_g=no
4627   CFLAGS="-g"
4628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629/* end confdefs.h.  */
4630
4631int
4632main ()
4633{
4634
4635  ;
4636  return 0;
4637}
4638_ACEOF
4639if ac_fn_c_try_compile "$LINENO"; then :
4640  ac_cv_prog_cc_g=yes
4641else
4642  CFLAGS=""
4643      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644/* end confdefs.h.  */
4645
4646int
4647main ()
4648{
4649
4650  ;
4651  return 0;
4652}
4653_ACEOF
4654if ac_fn_c_try_compile "$LINENO"; then :
4655
4656else
4657  ac_c_werror_flag=$ac_save_c_werror_flag
4658	 CFLAGS="-g"
4659	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660/* end confdefs.h.  */
4661
4662int
4663main ()
4664{
4665
4666  ;
4667  return 0;
4668}
4669_ACEOF
4670if ac_fn_c_try_compile "$LINENO"; then :
4671  ac_cv_prog_cc_g=yes
4672fi
4673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674fi
4675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676fi
4677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678   ac_c_werror_flag=$ac_save_c_werror_flag
4679fi
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4681$as_echo "$ac_cv_prog_cc_g" >&6; }
4682if test "$ac_test_CFLAGS" = set; then
4683  CFLAGS=$ac_save_CFLAGS
4684elif test $ac_cv_prog_cc_g = yes; then
4685  if test "$GCC" = yes; then
4686    CFLAGS="-g -O2"
4687  else
4688    CFLAGS="-g"
4689  fi
4690else
4691  if test "$GCC" = yes; then
4692    CFLAGS="-O2"
4693  else
4694    CFLAGS=
4695  fi
4696fi
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4698$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4699if test "${ac_cv_prog_cc_c89+set}" = set; then :
4700  $as_echo_n "(cached) " >&6
4701else
4702  ac_cv_prog_cc_c89=no
4703ac_save_CC=$CC
4704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705/* end confdefs.h.  */
4706#include <stdarg.h>
4707#include <stdio.h>
4708#include <sys/types.h>
4709#include <sys/stat.h>
4710/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4711struct buf { int x; };
4712FILE * (*rcsopen) (struct buf *, struct stat *, int);
4713static char *e (p, i)
4714     char **p;
4715     int i;
4716{
4717  return p[i];
4718}
4719static char *f (char * (*g) (char **, int), char **p, ...)
4720{
4721  char *s;
4722  va_list v;
4723  va_start (v,p);
4724  s = g (p, va_arg (v,int));
4725  va_end (v);
4726  return s;
4727}
4728
4729/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4730   function prototypes and stuff, but not '\xHH' hex character constants.
4731   These don't provoke an error unfortunately, instead are silently treated
4732   as 'x'.  The following induces an error, until -std is added to get
4733   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4734   array size at least.  It's necessary to write '\x00'==0 to get something
4735   that's true only with -std.  */
4736int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4737
4738/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4739   inside strings and character constants.  */
4740#define FOO(x) 'x'
4741int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4742
4743int test (int i, double x);
4744struct s1 {int (*f) (int a);};
4745struct s2 {int (*f) (double a);};
4746int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4747int argc;
4748char **argv;
4749int
4750main ()
4751{
4752return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4753  ;
4754  return 0;
4755}
4756_ACEOF
4757for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4758	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4759do
4760  CC="$ac_save_CC $ac_arg"
4761  if ac_fn_c_try_compile "$LINENO"; then :
4762  ac_cv_prog_cc_c89=$ac_arg
4763fi
4764rm -f core conftest.err conftest.$ac_objext
4765  test "x$ac_cv_prog_cc_c89" != "xno" && break
4766done
4767rm -f conftest.$ac_ext
4768CC=$ac_save_CC
4769
4770fi
4771# AC_CACHE_VAL
4772case "x$ac_cv_prog_cc_c89" in
4773  x)
4774    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4775$as_echo "none needed" >&6; } ;;
4776  xno)
4777    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4778$as_echo "unsupported" >&6; } ;;
4779  *)
4780    CC="$CC $ac_cv_prog_cc_c89"
4781    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4782$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4783esac
4784if test "x$ac_cv_prog_cc_c89" != xno; then :
4785
4786fi
4787
4788ac_ext=c
4789ac_cpp='$CPP $CPPFLAGS'
4790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793
4794ac_ext=cpp
4795ac_cpp='$CXXCPP $CPPFLAGS'
4796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4799if test -z "$CXX"; then
4800  if test -n "$CCC"; then
4801    CXX=$CCC
4802  else
4803    if test -n "$ac_tool_prefix"; then
4804  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4805  do
4806    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4807set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809$as_echo_n "checking for $ac_word... " >&6; }
4810if test "${ac_cv_prog_CXX+set}" = set; then :
4811  $as_echo_n "(cached) " >&6
4812else
4813  if test -n "$CXX"; then
4814  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4815else
4816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817for as_dir in $PATH
4818do
4819  IFS=$as_save_IFS
4820  test -z "$as_dir" && as_dir=.
4821    for ac_exec_ext in '' $ac_executable_extensions; do
4822  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825    break 2
4826  fi
4827done
4828  done
4829IFS=$as_save_IFS
4830
4831fi
4832fi
4833CXX=$ac_cv_prog_CXX
4834if test -n "$CXX"; then
4835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4836$as_echo "$CXX" >&6; }
4837else
4838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839$as_echo "no" >&6; }
4840fi
4841
4842
4843    test -n "$CXX" && break
4844  done
4845fi
4846if test -z "$CXX"; then
4847  ac_ct_CXX=$CXX
4848  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4849do
4850  # Extract the first word of "$ac_prog", so it can be a program name with args.
4851set dummy $ac_prog; ac_word=$2
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853$as_echo_n "checking for $ac_word... " >&6; }
4854if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4855  $as_echo_n "(cached) " >&6
4856else
4857  if test -n "$ac_ct_CXX"; then
4858  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4859else
4860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH
4862do
4863  IFS=$as_save_IFS
4864  test -z "$as_dir" && as_dir=.
4865    for ac_exec_ext in '' $ac_executable_extensions; do
4866  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867    ac_cv_prog_ac_ct_CXX="$ac_prog"
4868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869    break 2
4870  fi
4871done
4872  done
4873IFS=$as_save_IFS
4874
4875fi
4876fi
4877ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4878if test -n "$ac_ct_CXX"; then
4879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4880$as_echo "$ac_ct_CXX" >&6; }
4881else
4882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883$as_echo "no" >&6; }
4884fi
4885
4886
4887  test -n "$ac_ct_CXX" && break
4888done
4889
4890  if test "x$ac_ct_CXX" = x; then
4891    CXX="g++"
4892  else
4893    case $cross_compiling:$ac_tool_warned in
4894yes:)
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4897ac_tool_warned=yes ;;
4898esac
4899    CXX=$ac_ct_CXX
4900  fi
4901fi
4902
4903  fi
4904fi
4905# Provide some information about the compiler.
4906$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4907set X $ac_compile
4908ac_compiler=$2
4909for ac_option in --version -v -V -qversion; do
4910  { { ac_try="$ac_compiler $ac_option >&5"
4911case "(($ac_try" in
4912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913  *) ac_try_echo=$ac_try;;
4914esac
4915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4916$as_echo "$ac_try_echo"; } >&5
4917  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4918  ac_status=$?
4919  if test -s conftest.err; then
4920    sed '10a\
4921... rest of stderr output deleted ...
4922         10q' conftest.err >conftest.er1
4923    cat conftest.er1 >&5
4924    rm -f conftest.er1 conftest.err
4925  fi
4926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4927  test $ac_status = 0; }
4928done
4929
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4931$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4932if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4933  $as_echo_n "(cached) " >&6
4934else
4935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936/* end confdefs.h.  */
4937
4938int
4939main ()
4940{
4941#ifndef __GNUC__
4942       choke me
4943#endif
4944
4945  ;
4946  return 0;
4947}
4948_ACEOF
4949if ac_fn_cxx_try_compile "$LINENO"; then :
4950  ac_compiler_gnu=yes
4951else
4952  ac_compiler_gnu=no
4953fi
4954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4956
4957fi
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4959$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4960if test $ac_compiler_gnu = yes; then
4961  GXX=yes
4962else
4963  GXX=
4964fi
4965ac_test_CXXFLAGS=${CXXFLAGS+set}
4966ac_save_CXXFLAGS=$CXXFLAGS
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4968$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4969if test "${ac_cv_prog_cxx_g+set}" = set; then :
4970  $as_echo_n "(cached) " >&6
4971else
4972  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4973   ac_cxx_werror_flag=yes
4974   ac_cv_prog_cxx_g=no
4975   CXXFLAGS="-g"
4976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977/* end confdefs.h.  */
4978
4979int
4980main ()
4981{
4982
4983  ;
4984  return 0;
4985}
4986_ACEOF
4987if ac_fn_cxx_try_compile "$LINENO"; then :
4988  ac_cv_prog_cxx_g=yes
4989else
4990  CXXFLAGS=""
4991      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992/* end confdefs.h.  */
4993
4994int
4995main ()
4996{
4997
4998  ;
4999  return 0;
5000}
5001_ACEOF
5002if ac_fn_cxx_try_compile "$LINENO"; then :
5003
5004else
5005  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5006	 CXXFLAGS="-g"
5007	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008/* end confdefs.h.  */
5009
5010int
5011main ()
5012{
5013
5014  ;
5015  return 0;
5016}
5017_ACEOF
5018if ac_fn_cxx_try_compile "$LINENO"; then :
5019  ac_cv_prog_cxx_g=yes
5020fi
5021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022fi
5023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024fi
5025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5027fi
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5029$as_echo "$ac_cv_prog_cxx_g" >&6; }
5030if test "$ac_test_CXXFLAGS" = set; then
5031  CXXFLAGS=$ac_save_CXXFLAGS
5032elif test $ac_cv_prog_cxx_g = yes; then
5033  if test "$GXX" = yes; then
5034    CXXFLAGS="-g -O2"
5035  else
5036    CXXFLAGS="-g"
5037  fi
5038else
5039  if test "$GXX" = yes; then
5040    CXXFLAGS="-O2"
5041  else
5042    CXXFLAGS=
5043  fi
5044fi
5045ac_ext=c
5046ac_cpp='$CPP $CPPFLAGS'
5047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049ac_compiler_gnu=$ac_cv_c_compiler_gnu
5050
5051
5052# We must set the default linker to the linker used by gcc for the correct
5053# operation of libtool.  If LD is not defined and we are using gcc, try to
5054# set the LD default to the ld used by gcc.
5055if test -z "$LD"; then
5056  if test "$GCC" = yes; then
5057    case $build in
5058    *-*-mingw*)
5059      gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5060    *)
5061      gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5062    esac
5063    case $gcc_prog_ld in
5064    # Accept absolute paths.
5065    [\\/]* | [A-Za-z]:[\\/]*)
5066      LD="$gcc_prog_ld" ;;
5067    esac
5068  fi
5069fi
5070
5071# Check whether -static-libstdc++ -static-libgcc is supported.
5072have_static_libs=no
5073if test "$GCC" = yes; then
5074  saved_LDFLAGS="$LDFLAGS"
5075
5076  LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5078$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5079  ac_ext=cpp
5080ac_cpp='$CXXCPP $CPPFLAGS'
5081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5084
5085
5086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087/* end confdefs.h.  */
5088
5089#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5090#error -static-libstdc++ not implemented
5091#endif
5092int main() {}
5093_ACEOF
5094if ac_fn_cxx_try_link "$LINENO"; then :
5095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5096$as_echo "yes" >&6; }; have_static_libs=yes
5097else
5098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099$as_echo "no" >&6; }
5100fi
5101rm -f core conftest.err conftest.$ac_objext \
5102    conftest$ac_exeext conftest.$ac_ext
5103  ac_ext=c
5104ac_cpp='$CPP $CPPFLAGS'
5105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107ac_compiler_gnu=$ac_cv_c_compiler_gnu
5108
5109
5110  LDFLAGS="$saved_LDFLAGS"
5111fi
5112
5113
5114
5115
5116if test -n "$ac_tool_prefix"; then
5117  # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5118set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120$as_echo_n "checking for $ac_word... " >&6; }
5121if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5122  $as_echo_n "(cached) " >&6
5123else
5124  if test -n "$GNATBIND"; then
5125  ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5126else
5127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128for as_dir in $PATH
5129do
5130  IFS=$as_save_IFS
5131  test -z "$as_dir" && as_dir=.
5132    for ac_exec_ext in '' $ac_executable_extensions; do
5133  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134    ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136    break 2
5137  fi
5138done
5139  done
5140IFS=$as_save_IFS
5141
5142fi
5143fi
5144GNATBIND=$ac_cv_prog_GNATBIND
5145if test -n "$GNATBIND"; then
5146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5147$as_echo "$GNATBIND" >&6; }
5148else
5149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150$as_echo "no" >&6; }
5151fi
5152
5153
5154fi
5155if test -z "$ac_cv_prog_GNATBIND"; then
5156  ac_ct_GNATBIND=$GNATBIND
5157  # Extract the first word of "gnatbind", so it can be a program name with args.
5158set dummy gnatbind; ac_word=$2
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160$as_echo_n "checking for $ac_word... " >&6; }
5161if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5162  $as_echo_n "(cached) " >&6
5163else
5164  if test -n "$ac_ct_GNATBIND"; then
5165  ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5166else
5167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168for as_dir in $PATH
5169do
5170  IFS=$as_save_IFS
5171  test -z "$as_dir" && as_dir=.
5172    for ac_exec_ext in '' $ac_executable_extensions; do
5173  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5174    ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176    break 2
5177  fi
5178done
5179  done
5180IFS=$as_save_IFS
5181
5182fi
5183fi
5184ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5185if test -n "$ac_ct_GNATBIND"; then
5186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5187$as_echo "$ac_ct_GNATBIND" >&6; }
5188else
5189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190$as_echo "no" >&6; }
5191fi
5192
5193  if test "x$ac_ct_GNATBIND" = x; then
5194    GNATBIND="no"
5195  else
5196    case $cross_compiling:$ac_tool_warned in
5197yes:)
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5200ac_tool_warned=yes ;;
5201esac
5202    GNATBIND=$ac_ct_GNATBIND
5203  fi
5204else
5205  GNATBIND="$ac_cv_prog_GNATBIND"
5206fi
5207
5208if test -n "$ac_tool_prefix"; then
5209  # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5210set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212$as_echo_n "checking for $ac_word... " >&6; }
5213if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5214  $as_echo_n "(cached) " >&6
5215else
5216  if test -n "$GNATMAKE"; then
5217  ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5218else
5219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220for as_dir in $PATH
5221do
5222  IFS=$as_save_IFS
5223  test -z "$as_dir" && as_dir=.
5224    for ac_exec_ext in '' $ac_executable_extensions; do
5225  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226    ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228    break 2
5229  fi
5230done
5231  done
5232IFS=$as_save_IFS
5233
5234fi
5235fi
5236GNATMAKE=$ac_cv_prog_GNATMAKE
5237if test -n "$GNATMAKE"; then
5238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5239$as_echo "$GNATMAKE" >&6; }
5240else
5241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242$as_echo "no" >&6; }
5243fi
5244
5245
5246fi
5247if test -z "$ac_cv_prog_GNATMAKE"; then
5248  ac_ct_GNATMAKE=$GNATMAKE
5249  # Extract the first word of "gnatmake", so it can be a program name with args.
5250set dummy gnatmake; ac_word=$2
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252$as_echo_n "checking for $ac_word... " >&6; }
5253if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5254  $as_echo_n "(cached) " >&6
5255else
5256  if test -n "$ac_ct_GNATMAKE"; then
5257  ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5258else
5259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH
5261do
5262  IFS=$as_save_IFS
5263  test -z "$as_dir" && as_dir=.
5264    for ac_exec_ext in '' $ac_executable_extensions; do
5265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266    ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268    break 2
5269  fi
5270done
5271  done
5272IFS=$as_save_IFS
5273
5274fi
5275fi
5276ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5277if test -n "$ac_ct_GNATMAKE"; then
5278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5279$as_echo "$ac_ct_GNATMAKE" >&6; }
5280else
5281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282$as_echo "no" >&6; }
5283fi
5284
5285  if test "x$ac_ct_GNATMAKE" = x; then
5286    GNATMAKE="no"
5287  else
5288    case $cross_compiling:$ac_tool_warned in
5289yes:)
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5292ac_tool_warned=yes ;;
5293esac
5294    GNATMAKE=$ac_ct_GNATMAKE
5295  fi
5296else
5297  GNATMAKE="$ac_cv_prog_GNATMAKE"
5298fi
5299
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5301$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5302if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5303  $as_echo_n "(cached) " >&6
5304else
5305  cat >conftest.adb <<EOF
5306procedure conftest is begin null; end conftest;
5307EOF
5308acx_cv_cc_gcc_supports_ada=no
5309# There is a bug in old released versions of GCC which causes the
5310# driver to exit successfully when the appropriate language module
5311# has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5312# Therefore we must check for the error message as well as an
5313# unsuccessful exit.
5314# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5315# given a .adb file, but produce no object file.  So we must check
5316# if an object file was really produced to guard against this.
5317errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5318if test x"$errors" = x && test -f conftest.$ac_objext; then
5319  acx_cv_cc_gcc_supports_ada=yes
5320fi
5321rm -f conftest.*
5322fi
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5324$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5325
5326if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5327  have_gnat=yes
5328else
5329  have_gnat=no
5330fi
5331
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5333$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5334if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5335  $as_echo_n "(cached) " >&6
5336else
5337   echo abfoo >t1
5338  echo cdfoo >t2
5339  gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5340  if cmp t1 t2 2 2 > /dev/null 2>&1; then
5341    if cmp t1 t2 1 1 > /dev/null 2>&1; then
5342      :
5343    else
5344      gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5345    fi
5346  fi
5347  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5348    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5349      :
5350    else
5351      gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5352    fi
5353  fi
5354  rm t1 t2
5355
5356fi
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5358$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5359do_compare="$gcc_cv_prog_cmp_skip"
5360
5361
5362
5363# Check whether --enable-bootstrap was given.
5364if test "${enable_bootstrap+set}" = set; then :
5365  enableval=$enable_bootstrap;
5366else
5367  enable_bootstrap=default
5368fi
5369
5370
5371# Issue errors and warnings for invalid/strange bootstrap combinations.
5372if test -r $srcdir/gcc/configure; then
5373  have_compiler=yes
5374else
5375  have_compiler=no
5376fi
5377
5378case "$have_compiler:$host:$target:$enable_bootstrap" in
5379  *:*:*:no) ;;
5380
5381  # Default behavior.  Enable bootstrap if we have a compiler
5382  # and we are in a native configuration.
5383  yes:$build:$build:default)
5384    enable_bootstrap=yes ;;
5385
5386  *:*:*:default)
5387    enable_bootstrap=no ;;
5388
5389  # We have a compiler and we are in a native configuration, bootstrap is ok
5390  yes:$build:$build:yes)
5391    ;;
5392
5393  # Other configurations, but we have a compiler.  Assume the user knows
5394  # what he's doing.
5395  yes:*:*:yes)
5396    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5397$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5398    ;;
5399
5400  # No compiler: if they passed --enable-bootstrap explicitly, fail
5401  no:*:*:yes)
5402    as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5403
5404  # Fail if wrong command line
5405  *)
5406    as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5407    ;;
5408esac
5409
5410# Used for setting $lt_cv_objdir
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5412$as_echo_n "checking for objdir... " >&6; }
5413if test "${lt_cv_objdir+set}" = set; then :
5414  $as_echo_n "(cached) " >&6
5415else
5416  rm -f .libs 2>/dev/null
5417mkdir .libs 2>/dev/null
5418if test -d .libs; then
5419  lt_cv_objdir=.libs
5420else
5421  # MS-DOS does not allow filenames that begin with a dot.
5422  lt_cv_objdir=_libs
5423fi
5424rmdir .libs 2>/dev/null
5425fi
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5427$as_echo "$lt_cv_objdir" >&6; }
5428objdir=$lt_cv_objdir
5429
5430
5431
5432
5433
5434cat >>confdefs.h <<_ACEOF
5435#define LT_OBJDIR "$lt_cv_objdir/"
5436_ACEOF
5437
5438
5439
5440# Check for GMP, MPFR and MPC
5441gmplibs="-lmpc -lmpfr -lgmp"
5442gmpinc=
5443have_gmp=no
5444
5445# Specify a location for mpc
5446# check for this first so it ends up on the link line before mpfr.
5447
5448# Check whether --with-mpc was given.
5449if test "${with_mpc+set}" = set; then :
5450  withval=$with_mpc;
5451fi
5452
5453
5454# Check whether --with-mpc-include was given.
5455if test "${with_mpc_include+set}" = set; then :
5456  withval=$with_mpc_include;
5457fi
5458
5459
5460# Check whether --with-mpc-lib was given.
5461if test "${with_mpc_lib+set}" = set; then :
5462  withval=$with_mpc_lib;
5463fi
5464
5465
5466if test "x$with_mpc" != x; then
5467  gmplibs="-L$with_mpc/lib $gmplibs"
5468  gmpinc="-I$with_mpc/include $gmpinc"
5469fi
5470if test "x$with_mpc_include" != x; then
5471  gmpinc="-I$with_mpc_include $gmpinc"
5472fi
5473if test "x$with_mpc_lib" != x; then
5474  gmplibs="-L$with_mpc_lib $gmplibs"
5475fi
5476if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5477  gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5478  gmpinc='-I$$s/mpc/src '"$gmpinc"
5479  # Do not test the mpc version.  Assume that it is sufficient, since
5480  # it is in the source tree, and the library has not been built yet
5481  # but it would be included on the link line in the version check below
5482  # hence making the test fail.
5483  have_gmp=yes
5484fi
5485
5486# Specify a location for mpfr
5487# check for this first so it ends up on the link line before gmp.
5488
5489# Check whether --with-mpfr-dir was given.
5490if test "${with_mpfr_dir+set}" = set; then :
5491  withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5492Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5493fi
5494
5495
5496
5497# Check whether --with-mpfr was given.
5498if test "${with_mpfr+set}" = set; then :
5499  withval=$with_mpfr;
5500fi
5501
5502
5503# Check whether --with-mpfr-include was given.
5504if test "${with_mpfr_include+set}" = set; then :
5505  withval=$with_mpfr_include;
5506fi
5507
5508
5509# Check whether --with-mpfr-lib was given.
5510if test "${with_mpfr_lib+set}" = set; then :
5511  withval=$with_mpfr_lib;
5512fi
5513
5514
5515if test "x$with_mpfr" != x; then
5516  gmplibs="-L$with_mpfr/lib $gmplibs"
5517  gmpinc="-I$with_mpfr/include $gmpinc"
5518fi
5519if test "x$with_mpfr_include" != x; then
5520  gmpinc="-I$with_mpfr_include $gmpinc"
5521fi
5522if test "x$with_mpfr_lib" != x; then
5523  gmplibs="-L$with_mpfr_lib $gmplibs"
5524fi
5525if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5526  # MPFR v3.1.0 moved the sources into a src sub-directory.
5527  if test -d ${srcdir}/mpfr/src; then
5528    gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5529    gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5530    extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5531  else
5532    gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5533    gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5534    extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5535  fi
5536  # Do not test the mpfr version.  Assume that it is sufficient, since
5537  # it is in the source tree, and the library has not been built yet
5538  # but it would be included on the link line in the version check below
5539  # hence making the test fail.
5540  have_gmp=yes
5541fi
5542
5543# Specify a location for gmp
5544
5545# Check whether --with-gmp-dir was given.
5546if test "${with_gmp_dir+set}" = set; then :
5547  withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5548Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5549fi
5550
5551
5552
5553# Check whether --with-gmp was given.
5554if test "${with_gmp+set}" = set; then :
5555  withval=$with_gmp;
5556fi
5557
5558
5559# Check whether --with-gmp-include was given.
5560if test "${with_gmp_include+set}" = set; then :
5561  withval=$with_gmp_include;
5562fi
5563
5564
5565# Check whether --with-gmp-lib was given.
5566if test "${with_gmp_lib+set}" = set; then :
5567  withval=$with_gmp_lib;
5568fi
5569
5570
5571
5572if test "x$with_gmp" != x; then
5573  gmplibs="-L$with_gmp/lib $gmplibs"
5574  gmpinc="-I$with_gmp/include $gmpinc"
5575fi
5576if test "x$with_gmp_include" != x; then
5577  gmpinc="-I$with_gmp_include $gmpinc"
5578fi
5579if test "x$with_gmp_lib" != x; then
5580  gmplibs="-L$with_gmp_lib $gmplibs"
5581fi
5582if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5583  gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5584  gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5585  extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5586  extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5587  extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5588  # Do not test the gmp version.  Assume that it is sufficient, since
5589  # it is in the source tree, and the library has not been built yet
5590  # but it would be included on the link line in the version check below
5591  # hence making the test fail.
5592  have_gmp=yes
5593fi
5594
5595if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5596  have_gmp=yes
5597  saved_CFLAGS="$CFLAGS"
5598  CFLAGS="$CFLAGS $gmpinc"
5599  # Check for the recommended and required versions of GMP.
5600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5601$as_echo_n "checking for the correct version of gmp.h... " >&6; }
5602
5603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604/* end confdefs.h.  */
5605#include "gmp.h"
5606int
5607main ()
5608{
5609
5610  #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5611  #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5612  #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5613  choke me
5614  #endif
5615
5616  ;
5617  return 0;
5618}
5619_ACEOF
5620if ac_fn_c_try_compile "$LINENO"; then :
5621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622/* end confdefs.h.  */
5623#include <gmp.h>
5624int
5625main ()
5626{
5627
5628  #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5629  #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5630  #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5631  choke me
5632  #endif
5633
5634  ;
5635  return 0;
5636}
5637_ACEOF
5638if ac_fn_c_try_compile "$LINENO"; then :
5639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5640$as_echo "yes" >&6; }
5641else
5642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5643$as_echo "buggy but acceptable" >&6; }
5644fi
5645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5646else
5647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648$as_echo "no" >&6; }; have_gmp=no
5649fi
5650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651
5652  # If we have GMP, check the MPFR version.
5653  if test x"$have_gmp" = xyes; then
5654    # Check for the recommended and required versions of MPFR.
5655    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5656$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5657    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658/* end confdefs.h.  */
5659#include <gmp.h>
5660    #include <mpfr.h>
5661int
5662main ()
5663{
5664
5665    #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5666    choke me
5667    #endif
5668
5669  ;
5670  return 0;
5671}
5672_ACEOF
5673if ac_fn_c_try_compile "$LINENO"; then :
5674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675/* end confdefs.h.  */
5676#include <gmp.h>
5677    #include <mpfr.h>
5678int
5679main ()
5680{
5681
5682    #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5683    choke me
5684    #endif
5685
5686  ;
5687  return 0;
5688}
5689_ACEOF
5690if ac_fn_c_try_compile "$LINENO"; then :
5691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5692$as_echo "yes" >&6; }
5693else
5694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5695$as_echo "buggy but acceptable" >&6; }
5696fi
5697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698else
5699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700$as_echo "no" >&6; }; have_gmp=no
5701fi
5702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703  fi
5704
5705  # Check for the MPC header version.
5706  if test x"$have_gmp" = xyes ; then
5707    # Check for the recommended and required versions of MPC.
5708    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5709$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5710    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711/* end confdefs.h.  */
5712#include <mpc.h>
5713int
5714main ()
5715{
5716
5717    #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5718    choke me
5719    #endif
5720
5721  ;
5722  return 0;
5723}
5724_ACEOF
5725if ac_fn_c_try_compile "$LINENO"; then :
5726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727/* end confdefs.h.  */
5728#include <mpc.h>
5729int
5730main ()
5731{
5732
5733    #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5734    choke me
5735    #endif
5736
5737  ;
5738  return 0;
5739}
5740_ACEOF
5741if ac_fn_c_try_compile "$LINENO"; then :
5742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5743$as_echo "yes" >&6; }
5744else
5745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5746$as_echo "buggy but acceptable" >&6; }
5747fi
5748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749else
5750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751$as_echo "no" >&6; }; have_gmp=no
5752fi
5753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5754  fi
5755
5756  # Now check the MPFR library.
5757  if test x"$have_gmp" = xyes; then
5758    saved_LIBS="$LIBS"
5759    LIBS="$LIBS $gmplibs"
5760    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5761$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5762    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763/* end confdefs.h.  */
5764#include <mpc.h>
5765int
5766main ()
5767{
5768
5769    mpfr_t n;
5770    mpfr_t x;
5771    mpc_t c;
5772    int t;
5773    mpfr_init (n);
5774    mpfr_init (x);
5775    mpfr_atan2 (n, n, x, GMP_RNDN);
5776    mpfr_erfc (n, x, GMP_RNDN);
5777    mpfr_subnormalize (x, t, GMP_RNDN);
5778    mpfr_clear(n);
5779    mpfr_clear(x);
5780    mpc_init2 (c, 53);
5781    mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5782    mpc_cosh (c, c, MPC_RNDNN);
5783    mpc_pow (c, c, c, MPC_RNDNN);
5784    mpc_acosh (c, c, MPC_RNDNN);
5785    mpc_clear (c);
5786
5787  ;
5788  return 0;
5789}
5790_ACEOF
5791if ac_fn_c_try_link "$LINENO"; then :
5792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5793$as_echo "yes" >&6; }
5794else
5795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796$as_echo "no" >&6; }; have_gmp=no
5797fi
5798rm -f core conftest.err conftest.$ac_objext \
5799    conftest$ac_exeext conftest.$ac_ext
5800    LIBS="$saved_LIBS"
5801  fi
5802
5803  CFLAGS="$saved_CFLAGS"
5804
5805# The library versions listed in the error message below should match
5806# the HARD-minimums enforced above.
5807  if test x$have_gmp != xyes; then
5808    as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5809Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5810their locations.  Source code for these libraries can be found at
5811their respective hosting sites as well as at
5812ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5813http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5814you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5815make sure that you have installed both the libraries and the header
5816files.  They may be located in separate packages." "$LINENO" 5
5817  fi
5818fi
5819
5820# Flags needed for both GMP, MPFR and/or MPC.
5821
5822
5823
5824
5825
5826
5827
5828# Allow host libstdc++ to be specified for static linking with PPL.
5829
5830# Check whether --with-host-libstdcxx was given.
5831if test "${with_host_libstdcxx+set}" = set; then :
5832  withval=$with_host_libstdcxx;
5833fi
5834
5835
5836case $with_host_libstdcxx in
5837  no|yes)
5838    as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5839    ;;
5840esac
5841
5842# Libraries to use for stage1 or when not bootstrapping.
5843
5844# Check whether --with-stage1-libs was given.
5845if test "${with_stage1_libs+set}" = set; then :
5846  withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5847   stage1_libs=
5848 else
5849   stage1_libs=$withval
5850 fi
5851else
5852  stage1_libs=$with_host_libstdcxx
5853fi
5854
5855
5856
5857# Linker flags to use for stage1 or when not bootstrapping.
5858
5859# Check whether --with-stage1-ldflags was given.
5860if test "${with_stage1_ldflags+set}" = set; then :
5861  withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5862   stage1_ldflags=
5863 else
5864   stage1_ldflags=$withval
5865 fi
5866else
5867  stage1_ldflags=
5868 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5869 # if supported.  But if the user explicitly specified the libraries to use,
5870 # trust that they are doing what they want.
5871 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5872   stage1_ldflags="-static-libstdc++ -static-libgcc"
5873 fi
5874fi
5875
5876
5877
5878# Libraries to use for stage2 and later builds.  This defaults to the
5879# argument passed to --with-host-libstdcxx.
5880
5881# Check whether --with-boot-libs was given.
5882if test "${with_boot_libs+set}" = set; then :
5883  withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5884   poststage1_libs=
5885 else
5886   poststage1_libs=$withval
5887 fi
5888else
5889  poststage1_libs=$with_host_libstdcxx
5890fi
5891
5892
5893
5894# Linker flags to use for stage2 and later builds.
5895
5896# Check whether --with-boot-ldflags was given.
5897if test "${with_boot_ldflags+set}" = set; then :
5898  withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5899   poststage1_ldflags=
5900 else
5901   poststage1_ldflags=$withval
5902 fi
5903else
5904  poststage1_ldflags=
5905 # In stages 2 and 3, default to linking libstdc++ and libgcc
5906 # statically.  But if the user explicitly specified the libraries to
5907 # use, trust that they are doing what they want.
5908 if test "$poststage1_libs" = ""; then
5909   poststage1_ldflags="-static-libstdc++ -static-libgcc"
5910 fi
5911fi
5912
5913
5914
5915# GCC GRAPHITE dependency ISL.
5916# Basic setup is inlined here, actual checks are in config/isl.m4
5917
5918
5919# Check whether --with-isl was given.
5920if test "${with_isl+set}" = set; then :
5921  withval=$with_isl;
5922fi
5923
5924
5925# Treat --without-isl as a request to disable
5926# GRAPHITE support and skip all following checks.
5927if test "x$with_isl" != "xno"; then
5928  # Check for ISL
5929
5930
5931# Check whether --with-isl-include was given.
5932if test "${with_isl_include+set}" = set; then :
5933  withval=$with_isl_include;
5934fi
5935
5936
5937# Check whether --with-isl-lib was given.
5938if test "${with_isl_lib+set}" = set; then :
5939  withval=$with_isl_lib;
5940fi
5941
5942
5943  # Check whether --enable-isl-version-check was given.
5944if test "${enable_isl_version_check+set}" = set; then :
5945  enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5946else
5947  ENABLE_ISL_CHECK=yes
5948fi
5949
5950
5951  # Initialize isllibs and islinc.
5952  case $with_isl in
5953    no)
5954      isllibs=
5955      islinc=
5956      ;;
5957    "" | yes)
5958      ;;
5959    *)
5960      isllibs="-L$with_isl/lib"
5961      islinc="-I$with_isl/include"
5962      ;;
5963  esac
5964  if test "x${with_isl_include}" != x ; then
5965    islinc="-I$with_isl_include"
5966  fi
5967  if test "x${with_isl_lib}" != x; then
5968    isllibs="-L$with_isl_lib"
5969  fi
5970        if test "x${islinc}" = x && test "x${isllibs}" = x \
5971     && test -d ${srcdir}/isl; then
5972    isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5973    islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5974    ENABLE_ISL_CHECK=no
5975    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5976$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5977  fi
5978
5979  isllibs="${isllibs} -lisl"
5980
5981
5982
5983  if test "${ENABLE_ISL_CHECK}" = yes ; then
5984    _isl_saved_CFLAGS=$CFLAGS
5985    _isl_saved_LDFLAGS=$LDFLAGS
5986    _isl_saved_LIBS=$LIBS
5987
5988    CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5989    LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5990    LIBS="${_isl_saved_LIBS} -lisl"
5991
5992    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5993$as_echo_n "checking for compatible ISL... " >&6; }
5994    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995/* end confdefs.h.  */
5996#include <isl/val.h>
5997int
5998main ()
5999{
6000;
6001  ;
6002  return 0;
6003}
6004_ACEOF
6005if ac_fn_c_try_link "$LINENO"; then :
6006  gcc_cv_isl=yes
6007else
6008  gcc_cv_isl=no
6009fi
6010rm -f core conftest.err conftest.$ac_objext \
6011    conftest$ac_exeext conftest.$ac_ext
6012    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6013$as_echo "$gcc_cv_isl" >&6; }
6014
6015    CFLAGS=$_isl_saved_CFLAGS
6016    LDFLAGS=$_isl_saved_LDFLAGS
6017    LIBS=$_isl_saved_LIBS
6018  fi
6019
6020
6021
6022
6023
6024
6025  if test "x${with_isl}" = xno; then
6026    graphite_requested=no
6027  elif test "x${with_isl}" != x \
6028    || test "x${with_isl_include}" != x \
6029    || test "x${with_isl_lib}" != x ; then
6030    graphite_requested=yes
6031  else
6032    graphite_requested=no
6033  fi
6034
6035
6036
6037  if test "${gcc_cv_isl}" = no ; then
6038    isllibs=
6039    islinc=
6040  fi
6041
6042  if test "${graphite_requested}" = yes \
6043    && test "x${isllibs}" = x \
6044    && test "x${islinc}" = x ; then
6045
6046    as_fn_error "Unable to find a usable ISL.  See config.log for details." "$LINENO" 5
6047  fi
6048
6049
6050fi
6051
6052# If the ISL check failed, disable builds of in-tree variant of ISL
6053if test "x$with_isl" = xno ||
6054   test "x$gcc_cv_isl" = xno; then
6055  noconfigdirs="$noconfigdirs isl"
6056  islinc=
6057fi
6058
6059
6060
6061
6062# Check for LTO support.
6063# Check whether --enable-lto was given.
6064if test "${enable_lto+set}" = set; then :
6065  enableval=$enable_lto; enable_lto=$enableval
6066else
6067  enable_lto=yes; default_enable_lto=yes
6068fi
6069
6070
6071
6072
6073
6074target_elf=no
6075case $target in
6076  *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6077  *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6078  alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6079  nvptx-*-none)
6080    target_elf=no
6081    ;;
6082  *)
6083    target_elf=yes
6084    ;;
6085esac
6086
6087if test $target_elf = yes; then :
6088  # ELF platforms build the lto-plugin always.
6089  case $target in
6090  m68010-*)
6091    build_lto_plugin=no;;
6092  *)
6093    build_lto_plugin=yes;;
6094  esac
6095
6096else
6097  if test x"$default_enable_lto" = x"yes" ; then
6098    case $target in
6099      *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6100      # On other non-ELF platforms, LTO has yet to be validated.
6101      *) enable_lto=no ;;
6102    esac
6103  else
6104  # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6105  # It would also be nice to check the binutils support, but we don't
6106  # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6107  # warn during gcc/ subconfigure; unless you're bootstrapping with
6108  # -flto it won't be needed until after installation anyway.
6109    case $target in
6110      *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6111      *) if test x"$enable_lto" = x"yes"; then
6112	as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6113        fi
6114      ;;
6115    esac
6116  fi
6117  # Among non-ELF, only Windows platforms support the lto-plugin so far.
6118  # Build it unless LTO was explicitly disabled.
6119  case $target in
6120    *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6121    *) ;;
6122  esac
6123
6124fi
6125
6126
6127# Check whether --enable-linker-plugin-configure-flags was given.
6128if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6129  enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6130else
6131  extra_linker_plugin_configure_flags=
6132fi
6133
6134
6135# Check whether --enable-linker-plugin-flags was given.
6136if test "${enable_linker_plugin_flags+set}" = set; then :
6137  enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6138else
6139  extra_linker_plugin_flags=
6140fi
6141
6142
6143
6144
6145# By default, C and C++ are the only stage 1 languages.
6146stage1_languages=,c,
6147
6148# Target libraries that we bootstrap.
6149bootstrap_target_libs=,target-libgcc,
6150
6151# Figure out what language subdirectories are present.
6152# Look if the user specified --enable-languages="..."; if not, use
6153# the environment variable $LANGUAGES if defined. $LANGUAGES might
6154# go away some day.
6155# NB:  embedded tabs in this IF block -- do not untabify
6156if test -d ${srcdir}/gcc; then
6157  if test x"${enable_languages+set}" != xset; then
6158    if test x"${LANGUAGES+set}" = xset; then
6159      enable_languages="${LANGUAGES}"
6160        echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6161    else
6162      enable_languages=all
6163    fi
6164  else
6165    if test x"${enable_languages}" = x ||
6166       test x"${enable_languages}" = xyes;
6167       then
6168      echo configure.in: --enable-languages needs at least one language argument 1>&2
6169      exit 1
6170    fi
6171  fi
6172  enable_languages=`echo "${enable_languages}" | sed -e 's/[ 	,][ 	,]*/,/g' -e 's/,$//'`
6173
6174  # 'f95' is the old name for the 'fortran' language. We issue a warning
6175  # and make the substitution.
6176  case ,${enable_languages}, in
6177    *,f95,*)
6178      echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6179      enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6180      ;;
6181  esac
6182
6183  # If bootstrapping, C++ must be enabled.
6184  case ",$enable_languages,:$enable_bootstrap" in
6185    *,c++,*:*) ;;
6186    *:yes)
6187      if test -f ${srcdir}/gcc/cp/config-lang.in; then
6188        enable_languages="${enable_languages},c++"
6189      else
6190        as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6191      fi
6192      ;;
6193  esac
6194
6195  # First scan to see if an enabled language requires some other language.
6196  # We assume that a given config-lang.in will list all the language
6197  # front ends it requires, even if some are required indirectly.
6198  for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6199    case ${lang_frag} in
6200      ..) ;;
6201      # The odd quoting in the next line works around
6202      # an apparent bug in bash 1.12 on linux.
6203      ${srcdir}/gcc/[*]/config-lang.in) ;;
6204      *)
6205        # From the config-lang.in, get $language, $lang_requires, and
6206        # $lang_requires_boot_languages.
6207        language=
6208        lang_requires=
6209        lang_requires_boot_languages=
6210        . ${lang_frag}
6211        for other in ${lang_requires} ${lang_requires_boot_languages}; do
6212          case ,${enable_languages}, in
6213	    *,$other,*) ;;
6214	    *,all,*) ;;
6215	    *,$language,*)
6216	      echo " \`$other' language required by \`$language'; enabling" 1>&2
6217	      enable_languages="${enable_languages},${other}"
6218	      ;;
6219	  esac
6220        done
6221	for other in ${lang_requires_boot_languages} ; do
6222	  if test "$other" != "c"; then
6223	    case ,${enable_stage1_languages}, in
6224	      *,$other,*) ;;
6225	      *,all,*) ;;
6226	      *)
6227		case ,${enable_languages}, in
6228		  *,$language,*)
6229		    echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6230		    enable_stage1_languages="$enable_stage1_languages,${other}"
6231		    ;;
6232		esac
6233		;;
6234	    esac
6235          fi
6236        done
6237        ;;
6238    esac
6239  done
6240
6241  new_enable_languages=,c,
6242
6243  # If LTO is enabled, add the LTO front end.
6244  if test "$enable_lto" = "yes" ; then
6245    case ,${enable_languages}, in
6246      *,lto,*) ;;
6247      *) enable_languages="${enable_languages},lto" ;;
6248    esac
6249    if test "${build_lto_plugin}" = "yes" ; then
6250      configdirs="$configdirs lto-plugin"
6251    fi
6252  fi
6253
6254  # If we're building an offloading compiler, add the LTO front end.
6255  if test x"$enable_as_accelerator_for" != x ; then
6256    case ,${enable_languages}, in
6257      *,lto,*) ;;
6258      *) enable_languages="${enable_languages},lto" ;;
6259    esac
6260  fi
6261
6262  missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6263  potential_languages=,c,
6264
6265  enabled_target_libs=
6266  disabled_target_libs=
6267
6268  for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6269    case ${lang_frag} in
6270      ..) ;;
6271      # The odd quoting in the next line works around
6272      # an apparent bug in bash 1.12 on linux.
6273      ${srcdir}/gcc/[*]/config-lang.in) ;;
6274      *)
6275        # From the config-lang.in, get $language, $target_libs,
6276        # $lang_dirs, $boot_language, and $build_by_default
6277        language=
6278        target_libs=
6279        lang_dirs=
6280        subdir_requires=
6281        boot_language=no
6282        build_by_default=yes
6283        . ${lang_frag}
6284        if test x${language} = x; then
6285          echo "${lang_frag} doesn't set \$language." 1>&2
6286          exit 1
6287        fi
6288
6289	if test "$language" = "c++"; then
6290	  boot_language=yes
6291	fi
6292
6293        add_this_lang=no
6294        case ,${enable_languages}, in
6295          *,${language},*)
6296            # Language was explicitly selected; include it
6297	    # unless it is C, which is enabled by default.
6298	    if test "$language" != "c"; then
6299	      add_this_lang=yes
6300	    fi
6301            ;;
6302          *,all,*)
6303            # 'all' was selected, select it if it is a default language
6304	    if test "$language" != "c"; then
6305	      add_this_lang=${build_by_default}
6306	    fi
6307            ;;
6308        esac
6309
6310        # Disable languages that need other directories if these aren't available.
6311	for i in $subdir_requires; do
6312	  test -f "$srcdir/gcc/$i/config-lang.in" && continue
6313	  case ,${enable_languages}, in
6314            *,${language},*)
6315              # Specifically requested language; tell them.
6316              as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6317              ;;
6318            *)
6319              # Silently disable.
6320              add_this_lang=unsupported
6321              ;;
6322          esac
6323	done
6324
6325        # Disable Ada if no preexisting GNAT is available.
6326        case ,${enable_languages},:${language}:${have_gnat} in
6327          *,${language},*:ada:no)
6328            # Specifically requested language; tell them.
6329            as_fn_error "GNAT is required to build $language" "$LINENO" 5
6330            ;;
6331          *:ada:no)
6332            # Silently disable.
6333            add_this_lang=unsupported
6334            ;;
6335        esac
6336
6337	# Disable a language that is unsupported by the target.
6338	case " $unsupported_languages " in
6339	  *" $language "*)
6340	    add_this_lang=unsupported
6341	    ;;
6342	esac
6343
6344	case $add_this_lang in
6345	  unsupported)
6346            # Remove language-dependent dirs.
6347	    disabled_target_libs="$disabled_target_libs $target_libs"
6348	    noconfigdirs="$noconfigdirs $lang_dirs"
6349	    ;;
6350	  no)
6351            # Remove language-dependent dirs; still show language as supported.
6352	    disabled_target_libs="$disabled_target_libs $target_libs"
6353	    noconfigdirs="$noconfigdirs $lang_dirs"
6354            potential_languages="${potential_languages}${language},"
6355	    ;;
6356          yes)
6357	    new_enable_languages="${new_enable_languages}${language},"
6358            potential_languages="${potential_languages}${language},"
6359	    missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6360	    enabled_target_libs="$enabled_target_libs $target_libs"
6361	    case "${boot_language}:,$enable_stage1_languages," in
6362	      yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6363		# Add to (comma-separated) list of stage 1 languages.
6364		case ",$stage1_languages," in
6365		  *,$language,* | ,yes, | ,all,) ;;
6366		  *) stage1_languages="${stage1_languages}${language}," ;;
6367		esac
6368		# We need to bootstrap any supporting libraries.
6369		bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6370		;;
6371	    esac
6372	    ;;
6373        esac
6374        ;;
6375    esac
6376  done
6377
6378  # Add target libraries which are only needed for disabled languages
6379  # to noconfigdirs.
6380  if test -n "$disabled_target_libs"; then
6381    for dir in $disabled_target_libs; do
6382      case " $enabled_target_libs " in
6383      *" ${dir} "*) ;;
6384      *) noconfigdirs="$noconfigdirs $dir" ;;
6385      esac
6386    done
6387  fi
6388
6389  # Check whether --enable-stage1-languages was given.
6390if test "${enable_stage1_languages+set}" = set; then :
6391  enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6392    ,no,|,,)
6393      # Set it to something that will have no effect in the loop below
6394      enable_stage1_languages=c ;;
6395    ,yes,)
6396      enable_stage1_languages=`echo $new_enable_languages | \
6397	sed -e "s/^,//" -e "s/,$//" ` ;;
6398    *,all,*)
6399      enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6400	sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6401  esac
6402
6403  # Add "good" languages from enable_stage1_languages to stage1_languages,
6404  # while "bad" languages go in missing_languages.  Leave no duplicates.
6405  for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6406    case $potential_languages in
6407      *,$i,*)
6408        case $stage1_languages in
6409          *,$i,*) ;;
6410          *) stage1_languages="$stage1_languages$i," ;;
6411        esac ;;
6412      *)
6413        case $missing_languages in
6414          *,$i,*) ;;
6415          *) missing_languages="$missing_languages$i," ;;
6416        esac ;;
6417     esac
6418  done
6419fi
6420
6421
6422  # Remove leading/trailing commas that were added for simplicity
6423  potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6424  missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6425  stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6426  new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6427
6428  if test "x$missing_languages" != x; then
6429    as_fn_error "
6430The following requested languages could not be built: ${missing_languages}
6431Supported languages are: ${potential_languages}" "$LINENO" 5
6432  fi
6433  if test "x$new_enable_languages" != "x$enable_languages"; then
6434    echo The following languages will be built: ${new_enable_languages}
6435    enable_languages="$new_enable_languages"
6436  fi
6437
6438
6439  ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6440fi
6441
6442# Handle --disable-<component> generically.
6443for dir in $configdirs $build_configdirs $target_configdirs ; do
6444  dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6445  varname=`echo $dirname | sed -e s/+/_/g`
6446  if eval test x\${enable_${varname}} "=" xno ; then
6447    noconfigdirs="$noconfigdirs $dir"
6448  fi
6449done
6450
6451# Check for Boehm's garbage collector
6452# Check whether --enable-objc-gc was given.
6453if test "${enable_objc_gc+set}" = set; then :
6454  enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6455  *,objc,*:*:yes:*target-boehm-gc*)
6456    as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6457    ;;
6458esac
6459fi
6460
6461
6462# Make sure we only build Boehm's garbage collector if required.
6463case ,${enable_languages},:${enable_objc_gc} in
6464  *,objc,*:yes)
6465    # Keep target-boehm-gc if requested for Objective-C.
6466    ;;
6467  *)
6468    # Otherwise remove target-boehm-gc depending on target-libjava.
6469    if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6470      noconfigdirs="$noconfigdirs target-boehm-gc"
6471    fi
6472    ;;
6473esac
6474
6475# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6476case ,${enable_languages}, in
6477  *,c++,*)
6478    # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6479    case "${noconfigdirs}" in
6480      *target-libstdc++-v3*)
6481        noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6482        ;;
6483      *) ;;
6484    esac
6485    ;;
6486  *)
6487    noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6488    ;;
6489esac
6490
6491# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6492# $build_configdirs and $target_configdirs.
6493# If we have the source for $noconfigdirs entries, add them to $notsupp.
6494
6495notsupp=""
6496for dir in . $skipdirs $noconfigdirs ; do
6497  dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6498  if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6499    configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6500    if test -r $srcdir/$dirname/configure ; then
6501      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6502	true
6503      else
6504	notsupp="$notsupp $dir"
6505      fi
6506    fi
6507  fi
6508  if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6509    build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6510    if test -r $srcdir/$dirname/configure ; then
6511      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6512	true
6513      else
6514	notsupp="$notsupp $dir"
6515      fi
6516    fi
6517  fi
6518  if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6519    target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6520    if test -r $srcdir/$dirname/configure ; then
6521      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6522	true
6523      else
6524	notsupp="$notsupp $dir"
6525      fi
6526    fi
6527  fi
6528done
6529
6530# Quietly strip out all directories which aren't configurable in this tree.
6531# This relies on all configurable subdirectories being autoconfiscated, which
6532# is now the case.
6533build_configdirs_all="$build_configdirs"
6534build_configdirs=
6535for i in ${build_configdirs_all} ; do
6536  j=`echo $i | sed -e s/build-//g`
6537  if test -f ${srcdir}/$j/configure ; then
6538    build_configdirs="${build_configdirs} $i"
6539  fi
6540done
6541
6542configdirs_all="$configdirs"
6543configdirs=
6544for i in ${configdirs_all} ; do
6545  if test -f ${srcdir}/$i/configure ; then
6546    configdirs="${configdirs} $i"
6547  fi
6548done
6549
6550target_configdirs_all="$target_configdirs"
6551target_configdirs=
6552for i in ${target_configdirs_all} ; do
6553  j=`echo $i | sed -e s/target-//g`
6554  if test -f ${srcdir}/$j/configure ; then
6555    target_configdirs="${target_configdirs} $i"
6556  fi
6557done
6558
6559# libiberty-linker-plugin is special: it doesn't have its own source directory,
6560# so we have to add it after the preceding checks.
6561if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6562then
6563  case " $configdirs " in
6564    *" libiberty "*)
6565      # If we can build libiberty, we can also build libiberty-linker-plugin.
6566      configdirs="$configdirs libiberty-linker-plugin"
6567      extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6568        --with-libiberty=../libiberty-linker-plugin";;
6569    *)
6570      as_fn_error "libiberty missing" "$LINENO" 5;;
6571  esac
6572fi
6573
6574# Sometimes we have special requirements for the host libiberty.
6575extra_host_libiberty_configure_flags=
6576case " $configdirs " in
6577  *" lto-plugin "* | *" libcc1 "*)
6578    # When these are to be built as shared libraries, the same applies to
6579    # libiberty.
6580    extra_host_libiberty_configure_flags=--enable-shared
6581    ;;
6582esac
6583
6584
6585# Produce a warning message for the subdirs we can't configure.
6586# This isn't especially interesting in the Cygnus tree, but in the individual
6587# FSF releases, it's important to let people know when their machine isn't
6588# supported by the one or two programs in a package.
6589
6590if test -n "${notsupp}" && test -z "${norecursion}" ; then
6591  # If $appdirs is non-empty, at least one of those directories must still
6592  # be configured, or we error out.  (E.g., if the gas release supports a
6593  # specified target in some subdirs but not the gas subdir, we shouldn't
6594  # pretend that all is well.)
6595  if test -n "$appdirs" ; then
6596    for dir in $appdirs ; do
6597      if test -r $dir/Makefile.in ; then
6598	if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6599	  appdirs=""
6600	  break
6601	fi
6602	if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6603	  appdirs=""
6604	  break
6605	fi
6606      fi
6607    done
6608    if test -n "$appdirs" ; then
6609      echo "*** This configuration is not supported by this package." 1>&2
6610      exit 1
6611    fi
6612  fi
6613  # Okay, some application will build, or we don't care to check.  Still
6614  # notify of subdirs not getting built.
6615  echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6616  echo "    ${notsupp}" 1>&2
6617  echo "    (Any other directories should still work fine.)" 1>&2
6618fi
6619
6620case "$host" in
6621  *msdosdjgpp*)
6622    enable_gdbtk=no ;;
6623esac
6624
6625# To find our prefix, in gcc_cv_tool_prefix.
6626
6627# The user is always right.
6628if test "${PATH_SEPARATOR+set}" != set; then
6629  echo "#! /bin/sh" >conf$$.sh
6630  echo  "exit 0"   >>conf$$.sh
6631  chmod +x conf$$.sh
6632  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6633    PATH_SEPARATOR=';'
6634  else
6635    PATH_SEPARATOR=:
6636  fi
6637  rm -f conf$$.sh
6638fi
6639
6640
6641
6642if test "x$exec_prefix" = xNONE; then
6643        if test "x$prefix" = xNONE; then
6644                gcc_cv_tool_prefix=$ac_default_prefix
6645        else
6646                gcc_cv_tool_prefix=$prefix
6647        fi
6648else
6649        gcc_cv_tool_prefix=$exec_prefix
6650fi
6651
6652# If there is no compiler in the tree, use the PATH only.  In any
6653# case, if there is no compiler in the tree nobody should use
6654# AS_FOR_TARGET and LD_FOR_TARGET.
6655if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6656    gcc_version=`cat $srcdir/gcc/BASE-VER`
6657    gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6658    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6659    gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6660    gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6661    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6662    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6663else
6664    gcc_cv_tool_dirs=
6665fi
6666
6667if test x$build = x$target && test -n "$md_exec_prefix"; then
6668        gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6669fi
6670
6671
6672
6673copy_dirs=
6674
6675
6676# Check whether --with-build-sysroot was given.
6677if test "${with_build_sysroot+set}" = set; then :
6678  withval=$with_build_sysroot; if test x"$withval" != x ; then
6679     SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6680   fi
6681else
6682  SYSROOT_CFLAGS_FOR_TARGET=
6683fi
6684
6685
6686
6687
6688# Check whether --with-debug-prefix-map was given.
6689if test "${with_debug_prefix_map+set}" = set; then :
6690  withval=$with_debug_prefix_map; if test x"$withval" != x; then
6691     DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6692     for debug_map in $withval; do
6693       DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6694     done
6695   fi
6696else
6697  DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6698fi
6699
6700
6701
6702# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6703# might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6704# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6705# We want to ensure that TARGET libraries (which we know are built with
6706# gcc) are built with "-O2 -g", so include those options when setting
6707# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6708if test "x$CFLAGS_FOR_TARGET" = x; then
6709  if test "x${is_cross_compiler}" = xyes; then
6710    CFLAGS_FOR_TARGET="-g -O2"
6711  else
6712    CFLAGS_FOR_TARGET=$CFLAGS
6713    case " $CFLAGS " in
6714      *" -O2 "*) ;;
6715      *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6716    esac
6717    case " $CFLAGS " in
6718      *" -g "* | *" -g3 "*) ;;
6719      *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6720    esac
6721  fi
6722fi
6723
6724
6725if test "x$CXXFLAGS_FOR_TARGET" = x; then
6726  if test "x${is_cross_compiler}" = xyes; then
6727    CXXFLAGS_FOR_TARGET="-g -O2"
6728  else
6729    CXXFLAGS_FOR_TARGET=$CXXFLAGS
6730    case " $CXXFLAGS " in
6731      *" -O2 "*) ;;
6732      *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6733    esac
6734    case " $CXXFLAGS " in
6735      *" -g "* | *" -g3 "*) ;;
6736      *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6737    esac
6738  fi
6739fi
6740
6741
6742
6743
6744# Handle --with-headers=XXX.  If the value is not "yes", the contents of
6745# the named directory are copied to $(tooldir)/sys-include.
6746if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6747  if test x${is_cross_compiler} = xno ; then
6748    echo 1>&2 '***' --with-headers is only supported when cross compiling
6749    exit 1
6750  fi
6751  if test x"${with_headers}" != xyes ; then
6752    x=${gcc_cv_tool_prefix}
6753    copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6754  fi
6755fi
6756
6757# Handle --with-libs=XXX.  If the value is not "yes", the contents of
6758# the name directories are copied to $(tooldir)/lib.  Multiple directories
6759# are permitted.
6760if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6761  if test x${is_cross_compiler} = xno ; then
6762    echo 1>&2 '***' --with-libs is only supported when cross compiling
6763    exit 1
6764  fi
6765  if test x"${with_libs}" != xyes ; then
6766    # Copy the libraries in reverse order, so that files in the first named
6767    # library override files in subsequent libraries.
6768    x=${gcc_cv_tool_prefix}
6769    for l in ${with_libs}; do
6770      copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6771    done
6772  fi
6773fi
6774
6775# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6776#
6777# This is done by determining whether or not the appropriate directory
6778# is available, and by checking whether or not specific configurations
6779# have requested that this magic not happen.
6780#
6781# The command line options always override the explicit settings in
6782# configure.in, and the settings in configure.in override this magic.
6783#
6784# If the default for a toolchain is to use GNU as and ld, and you don't
6785# want to do that, then you should use the --without-gnu-as and
6786# --without-gnu-ld options for the configure script.  Similarly, if
6787# the default is to use the included zlib and you don't want to do that,
6788# you should use the --with-system-zlib option for the configure script.
6789
6790if test x${use_gnu_as} = x &&
6791   echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6792  with_gnu_as=yes
6793  extra_host_args="$extra_host_args --with-gnu-as"
6794fi
6795
6796if test x${use_gnu_ld} = x &&
6797   echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6798  with_gnu_ld=yes
6799  extra_host_args="$extra_host_args --with-gnu-ld"
6800fi
6801
6802if test x${use_included_zlib} = x &&
6803   echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6804  :
6805else
6806  with_system_zlib=yes
6807  extra_host_args="$extra_host_args --with-system-zlib"
6808fi
6809
6810# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6811# can detect this case.
6812
6813if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6814  with_newlib=yes
6815  extra_host_args="$extra_host_args --with-newlib"
6816fi
6817
6818# Handle ${copy_dirs}
6819set fnord ${copy_dirs}
6820shift
6821while test $# != 0 ; do
6822  if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6823    :
6824  else
6825    echo Copying $1 to $2
6826
6827    # Use the install script to create the directory and all required
6828    # parent directories.
6829    if test -d $2 ; then
6830      :
6831    else
6832      echo >config.temp
6833      ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6834    fi
6835
6836    # Copy the directory, assuming we have tar.
6837    # FIXME: Should we use B in the second tar?  Not all systems support it.
6838    (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6839
6840    # It is the responsibility of the user to correctly adjust all
6841    # symlinks.  If somebody can figure out how to handle them correctly
6842    # here, feel free to add the code.
6843
6844    echo $1 > $2/COPIED
6845  fi
6846  shift; shift
6847done
6848
6849# Determine a target-dependent exec_prefix that the installed
6850# gcc will search in.  Keep this list sorted by triplet, with
6851# the *-*-osname triplets last.
6852md_exec_prefix=
6853case "${target}" in
6854  i[34567]86-pc-msdosdjgpp*)
6855    md_exec_prefix=/dev/env/DJDIR/bin
6856    ;;
6857  *-*-hpux* | \
6858  *-*-nto-qnx* | \
6859  *-*-solaris2*)
6860    md_exec_prefix=/usr/ccs/bin
6861    ;;
6862esac
6863
6864extra_arflags_for_target=
6865extra_nmflags_for_target=
6866extra_ranlibflags_for_target=
6867target_makefile_frag=/dev/null
6868case "${target}" in
6869  spu-*-*)
6870    target_makefile_frag="config/mt-spu"
6871    ;;
6872  mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6873    target_makefile_frag="config/mt-sde"
6874    ;;
6875  mipsisa*-*-elfoabi*)
6876    target_makefile_frag="config/mt-mips-elfoabi"
6877    ;;
6878  mips*-*-*linux* | mips*-*-gnu*)
6879    target_makefile_frag="config/mt-mips-gnu"
6880    ;;
6881  nios2-*-elf*)
6882    target_makefile_frag="config/mt-nios2-elf"
6883    ;;
6884  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6885    target_makefile_frag="config/mt-gnu"
6886    ;;
6887  *-*-aix4.[3456789]* | *-*-aix[56789].*)
6888    # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6889    # commands to handle both 32-bit and 64-bit objects.  These flags are
6890    # harmless if we're using GNU nm or ar.
6891    extra_arflags_for_target=" -X32_64"
6892    extra_nmflags_for_target=" -B -X32_64"
6893    ;;
6894esac
6895
6896alphaieee_frag=/dev/null
6897case $target in
6898  alpha*-*-*)
6899    # This just makes sure to use the -mieee option to build target libs.
6900    # This should probably be set individually by each library.
6901    alphaieee_frag="config/mt-alphaieee"
6902    ;;
6903esac
6904
6905# If --enable-target-optspace always use -Os instead of -O2 to build
6906# the target libraries, similarly if it is not specified, use -Os
6907# on selected platforms.
6908ospace_frag=/dev/null
6909case "${enable_target_optspace}:${target}" in
6910  yes:*)
6911    ospace_frag="config/mt-ospace"
6912    ;;
6913  :d30v-*)
6914    ospace_frag="config/mt-d30v"
6915    ;;
6916  :m32r-* | :d10v-* | :fr30-*)
6917    ospace_frag="config/mt-ospace"
6918    ;;
6919  no:* | :*)
6920    ;;
6921  *)
6922    echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6923    ;;
6924esac
6925
6926# Some systems (e.g., one of the i386-aix systems the gas testers are
6927# using) don't handle "\$" correctly, so don't use it here.
6928tooldir='${exec_prefix}'/${target_noncanonical}
6929build_tooldir=${tooldir}
6930
6931# Create a .gdbinit file which runs the one in srcdir
6932# and tells GDB to look there for source files.
6933
6934if test -r ${srcdir}/.gdbinit ; then
6935  case ${srcdir} in
6936    .) ;;
6937    *) cat > ./.gdbinit <<EOF
6938# ${NO_EDIT}
6939dir ${srcdir}
6940dir .
6941source ${srcdir}/.gdbinit
6942EOF
6943    ;;
6944  esac
6945fi
6946
6947# Make sure that the compiler is able to generate an executable.  If it
6948# can't, we are probably in trouble.  We don't care whether we can run the
6949# executable--we might be using a cross compiler--we only care whether it
6950# can be created.  At this point the main configure script has set CC.
6951we_are_ok=no
6952echo "int main () { return 0; }" > conftest.c
6953${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6954if test $? = 0 ; then
6955  if test -s conftest || test -s conftest.exe ; then
6956    we_are_ok=yes
6957  fi
6958fi
6959case $we_are_ok in
6960  no)
6961    echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6962    echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6963    rm -f conftest*
6964    exit 1
6965    ;;
6966esac
6967rm -f conftest*
6968
6969# Decide which environment variable is used to find dynamic libraries.
6970case "${host}" in
6971  *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6972  *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6973  *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6974  *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6975esac
6976
6977# On systems where the dynamic library environment variable is PATH,
6978# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6979# built executables to PATH.
6980if test "$RPATH_ENVVAR" = PATH; then
6981  GCC_SHLIB_SUBDIR=/shlib
6982else
6983  GCC_SHLIB_SUBDIR=
6984fi
6985
6986# Adjust the toplevel makefile according to whether bootstrap was selected.
6987case $enable_bootstrap in
6988  yes)
6989    bootstrap_suffix=bootstrap
6990    BUILD_CONFIG=bootstrap-debug
6991    ;;
6992  no)
6993    bootstrap_suffix=no-bootstrap
6994    BUILD_CONFIG=
6995    ;;
6996esac
6997
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6999$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7000
7001
7002# Check whether --with-build-config was given.
7003if test "${with_build_config+set}" = set; then :
7004  withval=$with_build_config; case $with_build_config in
7005   yes) with_build_config= ;;
7006   no) with_build_config= BUILD_CONFIG= ;;
7007   esac
7008fi
7009
7010
7011if test "x${with_build_config}" != x; then
7012  BUILD_CONFIG=$with_build_config
7013else
7014  case $BUILD_CONFIG in
7015  bootstrap-debug)
7016    if echo "int f (void) { return 0; }" > conftest.c &&
7017       ${CC} -c conftest.c &&
7018       mv conftest.o conftest.o.g0 &&
7019       ${CC} -c -g conftest.c &&
7020       mv conftest.o conftest.o.g &&
7021       ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7022      :
7023    else
7024      BUILD_CONFIG=
7025    fi
7026    rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7027    ;;
7028  esac
7029fi
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7031$as_echo "$BUILD_CONFIG" >&6; }
7032
7033
7034# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7036$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7037# Check whether --enable-vtable-verify was given.
7038if test "${enable_vtable_verify+set}" = set; then :
7039  enableval=$enable_vtable_verify; case "$enableval" in
7040 yes) enable_vtable_verify=yes ;;
7041 no)  enable_vtable_verify=no ;;
7042 *)   enable_vtable_verify=no;;
7043 esac
7044else
7045  enable_vtable_verify=no
7046fi
7047
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7049$as_echo "$enable_vtable_verify" >&6; }
7050
7051# Record target_configdirs and the configure arguments for target and
7052# build configuration in Makefile.
7053target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7054build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7055bootstrap_fixincludes=no
7056
7057# If we are building libgomp, bootstrap it.
7058if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7059  bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7060fi
7061
7062# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7063# or bootstrap-ubsan, bootstrap it.
7064if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7065  case "$BUILD_CONFIG" in
7066    *bootstrap-asan* | *bootstrap-ubsan* )
7067      bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7068      bootstrap_fixincludes=yes
7069      ;;
7070  esac
7071fi
7072
7073# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7074if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7075   test "$enable_vtable_verify" != no; then
7076  bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7077fi
7078
7079# If we are building libmpx, bootstrap it.
7080if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7081  bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7082fi
7083
7084# Determine whether gdb needs tk/tcl or not.
7085# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7086# and in that case we want gdb to be built without tk.  Ugh!
7087# In fact I believe gdb is the *only* package directly dependent on tk,
7088# so we should be able to put the 'maybe's in unconditionally and
7089# leave out the maybe dependencies when enable_gdbtk is false.  I'm not
7090# 100% sure that that's safe though.
7091
7092gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7093case "$enable_gdbtk" in
7094  no)
7095    GDB_TK="" ;;
7096  yes)
7097    GDB_TK="${gdb_tk}" ;;
7098  *)
7099    # Only add the dependency on gdbtk when GDBtk is part of the gdb
7100    # distro.  Eventually someone will fix this and move Insight, nee
7101    # gdbtk to a separate directory.
7102    if test -d ${srcdir}/gdb/gdbtk ; then
7103      GDB_TK="${gdb_tk}"
7104    else
7105      GDB_TK=""
7106    fi
7107    ;;
7108esac
7109CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7110INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7111
7112# Strip out unwanted targets.
7113
7114# While at that, we remove Makefiles if we were started for recursive
7115# configuration, so that the top-level Makefile reconfigures them,
7116# like we used to do when configure itself was recursive.
7117
7118# Loop over modules.  We used to use the "$extrasub" feature from Autoconf
7119# but now we're fixing up the Makefile ourselves with the additional
7120# commands passed to AC_CONFIG_FILES.  Use separate variables
7121# extrasub-{build,host,target} not because there is any reason to split
7122# the substitutions up that way, but only to remain below the limit of
7123# 99 commands in a script, for HP-UX sed.
7124# Do not nest @if/@endif pairs, because configure will not warn you at all.
7125
7126case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7127  yes:yes:*\ gold\ *:*,c++,*) ;;
7128  yes:yes:*\ gold\ *:*)
7129    as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7130    ;;
7131esac
7132
7133extrasub_build=
7134for module in ${build_configdirs} ; do
7135  if test -z "${no_recursion}" \
7136     && test -f ${build_subdir}/${module}/Makefile; then
7137    echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7138    rm -f ${build_subdir}/${module}/Makefile
7139  fi
7140  extrasub_build="$extrasub_build
7141/^@if build-$module\$/d
7142/^@endif build-$module\$/d
7143/^@if build-$module-$bootstrap_suffix\$/d
7144/^@endif build-$module-$bootstrap_suffix\$/d"
7145done
7146extrasub_host=
7147for module in ${configdirs} ; do
7148  if test -z "${no_recursion}"; then
7149    for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7150      if test -f ${file}; then
7151	echo 1>&2 "*** removing ${file} to force reconfigure"
7152	rm -f ${file}
7153      fi
7154    done
7155  fi
7156  case ${module},${bootstrap_fixincludes} in
7157    fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7158    *) host_bootstrap_suffix=$bootstrap_suffix ;;
7159  esac
7160  extrasub_host="$extrasub_host
7161/^@if $module\$/d
7162/^@endif $module\$/d
7163/^@if $module-$host_bootstrap_suffix\$/d
7164/^@endif $module-$host_bootstrap_suffix\$/d"
7165done
7166extrasub_target=
7167for module in ${target_configdirs} ; do
7168  if test -z "${no_recursion}" \
7169     && test -f ${target_subdir}/${module}/Makefile; then
7170    echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7171    rm -f ${target_subdir}/${module}/Makefile
7172  fi
7173
7174  # We only bootstrap target libraries listed in bootstrap_target_libs.
7175  case $bootstrap_target_libs in
7176    *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7177    *) target_bootstrap_suffix=no-bootstrap ;;
7178  esac
7179
7180  extrasub_target="$extrasub_target
7181/^@if target-$module\$/d
7182/^@endif target-$module\$/d
7183/^@if target-$module-$target_bootstrap_suffix\$/d
7184/^@endif target-$module-$target_bootstrap_suffix\$/d"
7185done
7186
7187# Do the final fixup along with target modules.
7188extrasub_target="$extrasub_target
7189/^@if /,/^@endif /d"
7190
7191# Create the serialization dependencies.  This uses a temporary file.
7192
7193# Check whether --enable-serial-configure was given.
7194if test "${enable_serial_configure+set}" = set; then :
7195  enableval=$enable_serial_configure;
7196fi
7197
7198
7199case ${enable_serial_configure} in
7200  yes)
7201    enable_serial_build_configure=yes
7202    enable_serial_host_configure=yes
7203    enable_serial_target_configure=yes
7204    ;;
7205esac
7206
7207# These force 'configure's to be done one at a time, to avoid problems
7208# with contention over a shared config.cache.
7209rm -f serdep.tmp
7210echo '# serdep.tmp' > serdep.tmp
7211olditem=
7212test "x${enable_serial_build_configure}" = xyes &&
7213for item in ${build_configdirs} ; do
7214  case ${olditem} in
7215    "") ;;
7216    *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7217  esac
7218  olditem=${item}
7219done
7220olditem=
7221test "x${enable_serial_host_configure}" = xyes &&
7222for item in ${configdirs} ; do
7223  case ${olditem} in
7224    "") ;;
7225    *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7226  esac
7227  olditem=${item}
7228done
7229olditem=
7230test "x${enable_serial_target_configure}" = xyes &&
7231for item in ${target_configdirs} ; do
7232  case ${olditem} in
7233    "") ;;
7234    *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7235  esac
7236  olditem=${item}
7237done
7238serialization_dependencies=serdep.tmp
7239
7240
7241# Base args.  Strip norecursion, cache-file, srcdir, host, build,
7242# target, nonopt, and variable assignments.  These are the ones we
7243# might not want to pass down to subconfigures.  The exception being
7244# --cache-file=/dev/null, which is used to turn off the use of cache
7245# files altogether, and which should be passed on to subconfigures.
7246# Also strip program-prefix, program-suffix, and program-transform-name,
7247# so that we can pass down a consistent program-transform-name.
7248baseargs=
7249tbaseargs=
7250keep_next=no
7251skip_next=no
7252eval "set -- $ac_configure_args"
7253for ac_arg
7254do
7255  if test X"$skip_next" = X"yes"; then
7256    skip_next=no
7257    continue
7258  fi
7259  if test X"$keep_next" = X"yes"; then
7260    case $ac_arg in
7261      *\'*)
7262	ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7263    esac
7264    baseargs="$baseargs '$ac_arg'"
7265    tbaseargs="$tbaseargs '$ac_arg'"
7266    keep_next=no
7267    continue
7268  fi
7269
7270  # Handle separated arguments.  Based on the logic generated by
7271  # autoconf 2.59.
7272  case $ac_arg in
7273    *=* | --config-cache | -C | -disable-* | --disable-* \
7274      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7275      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7276      | -with-* | --with-* | -without-* | --without-* | --x)
7277      separate_arg=no
7278      ;;
7279    -*)
7280      separate_arg=yes
7281      ;;
7282    *)
7283      separate_arg=no
7284      ;;
7285  esac
7286
7287  skip_targ=no
7288  case $ac_arg in
7289
7290  --with-* | --without-*)
7291    libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7292
7293    case $libopt in
7294    *[-_]include)
7295      lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7296      ;;
7297    *[-_]lib)
7298      lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7299      ;;
7300    *)
7301      lib=$libopt
7302      ;;
7303    esac
7304
7305
7306    case $lib in
7307    mpc | mpfr | gmp | isl)
7308      # If we're processing --with-$lib, --with-$lib-include or
7309      # --with-$lib-lib, for one of the libs above, and target is
7310      # different from host, don't pass the current argument to any
7311      # target library's configure.
7312      if test x$is_cross_compiler = xyes; then
7313        skip_targ=yes
7314      fi
7315      ;;
7316    esac
7317    ;;
7318  esac
7319
7320  case "$ac_arg" in
7321    --cache-file=/dev/null | \
7322    -cache-file=/dev/null )
7323      # Handled here to avoid the test to skip args below.
7324      baseargs="$baseargs '$ac_arg'"
7325      tbaseargs="$tbaseargs '$ac_arg'"
7326      # Assert: $separate_arg should always be no.
7327      keep_next=$separate_arg
7328      ;;
7329    --no*)
7330      continue
7331      ;;
7332    --c* | \
7333    --sr* | \
7334    --ho* | \
7335    --bu* | \
7336    --t* | \
7337    --program-* | \
7338    -cache_file* | \
7339    -srcdir* | \
7340    -host* | \
7341    -build* | \
7342    -target* | \
7343    -program-prefix* | \
7344    -program-suffix* | \
7345    -program-transform-name* )
7346      skip_next=$separate_arg
7347      continue
7348      ;;
7349    -*)
7350      # An option.  Add it.
7351      case $ac_arg in
7352	*\'*)
7353	  ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7354      esac
7355      baseargs="$baseargs '$ac_arg'"
7356      if test X"$skip_targ" = Xno; then
7357        tbaseargs="$tbaseargs '$ac_arg'"
7358      fi
7359      keep_next=$separate_arg
7360      ;;
7361    *)
7362      # Either a variable assignment, or a nonopt (triplet).  Don't
7363      # pass it down; let the Makefile handle this.
7364      continue
7365      ;;
7366  esac
7367done
7368# Remove the initial space we just introduced and, as these will be
7369# expanded by make, quote '$'.
7370baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7371
7372# Add in --program-transform-name, after --program-prefix and
7373# --program-suffix have been applied to it.  Autoconf has already
7374# doubled dollar signs and backslashes in program_transform_name; we want
7375# the backslashes un-doubled, and then the entire thing wrapped in single
7376# quotes, because this will be expanded first by make and then by the shell.
7377# Also, because we want to override the logic in subdir configure scripts to
7378# choose program_transform_name, replace any s,x,x, with s,y,y,.
7379sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7380${program_transform_name}
7381EOF_SED
7382gcc_transform_name=`cat conftestsed.out`
7383rm -f conftestsed.out
7384baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7385tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7386if test "$silent" = yes; then
7387  baseargs="$baseargs --silent"
7388  tbaseargs="$tbaseargs --silent"
7389fi
7390baseargs="$baseargs --disable-option-checking"
7391tbaseargs="$tbaseargs --disable-option-checking"
7392
7393# Record and document user additions to sub configure arguments.
7394
7395
7396
7397
7398# For the build-side libraries, we just need to pretend we're native,
7399# and not use the same cache file.  Multilibs are neither needed nor
7400# desired.  We can't even use the same cache file for all build-side
7401# libraries, as they're compiled differently; some with C, some with
7402# C++ or with different feature-enabling options.
7403build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7404
7405# For host modules, accept cache file option, or specification as blank.
7406case "${cache_file}" in
7407"") # empty
7408  cache_file_option="" ;;
7409/* | [A-Za-z]:[\\/]* ) # absolute path
7410  cache_file_option="--cache-file=${cache_file}" ;;
7411*) # relative path
7412  cache_file_option="--cache-file=../${cache_file}" ;;
7413esac
7414
7415# Host dirs don't like to share a cache file either, horribly enough.
7416# This seems to be due to autoconf 2.5x stupidity.
7417host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7418
7419target_configargs="$target_configargs ${tbaseargs}"
7420
7421# Passing a --with-cross-host argument lets the target libraries know
7422# whether they are being built with a cross-compiler or being built
7423# native.  However, it would be better to use other mechanisms to make the
7424# sorts of decisions they want to make on this basis.  Please consider
7425# this option to be deprecated.  FIXME.
7426if test x${is_cross_compiler} = xyes ; then
7427  target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7428fi
7429
7430# Special user-friendly check for native x86_64-linux build, if
7431# multilib is not explicitly enabled.
7432case "$target:$have_compiler:$host:$target:$enable_multilib" in
7433  x86_64-*linux*:yes:$build:$build:)
7434    # Make sure we have a developement environment that handles 32-bit
7435    dev64=no
7436    echo "int main () { return 0; }" > conftest.c
7437    ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7438    if test $? = 0 ; then
7439      if test -s conftest || test -s conftest.exe ; then
7440	dev64=yes
7441      fi
7442    fi
7443    rm -f conftest*
7444    if test x${dev64} != xyes ; then
7445      as_fn_error "I suspect your system does not have 32-bit developement 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
7446    fi
7447    ;;
7448esac
7449
7450# Default to --enable-multilib.
7451if test x${enable_multilib} = x ; then
7452  target_configargs="--enable-multilib ${target_configargs}"
7453fi
7454
7455# Pass --with-newlib if appropriate.  Note that target_configdirs has
7456# changed from the earlier setting of with_newlib.
7457if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7458  target_configargs="--with-newlib ${target_configargs}"
7459fi
7460
7461# Different target subdirs use different values of certain variables
7462# (notably CXX).  Worse, multilibs use *lots* of different values.
7463# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7464# it doesn't automatically accept command-line overrides of them.
7465# This means it's not safe for target subdirs to share a cache file,
7466# which is disgusting, but there you have it.  Hopefully this can be
7467# fixed in future.  It's still worthwhile to use a cache file for each
7468# directory.  I think.
7469
7470# Pass the appropriate --build, --host, --target and --cache-file arguments.
7471# We need to pass --target, as newer autoconf's requires consistency
7472# for target_alias and gcc doesn't manage it consistently.
7473target_configargs="--cache-file=./config.cache ${target_configargs}"
7474
7475FLAGS_FOR_TARGET=
7476case " $target_configdirs " in
7477 *" newlib "*)
7478  case " $target_configargs " in
7479  *" --with-newlib "*)
7480   case "$target" in
7481    *-cygwin*)
7482      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7483      ;;
7484   esac
7485
7486   # If we're not building GCC, don't discard standard headers.
7487   if test -d ${srcdir}/gcc; then
7488     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7489
7490     if test "${build}" != "${host}"; then
7491       # On Canadian crosses, CC_FOR_TARGET will have already been set
7492       # by `configure', so we won't have an opportunity to add -Bgcc/
7493       # to it.  This is right: we don't want to search that directory
7494       # for binaries, but we want the header files in there, so add
7495       # them explicitly.
7496       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7497
7498       # Someone might think of using the pre-installed headers on
7499       # Canadian crosses, in case the installed compiler is not fully
7500       # compatible with the compiler being built.  In this case, it
7501       # would be better to flag an error than risking having
7502       # incompatible object files being constructed.  We can't
7503       # guarantee that an error will be flagged, but let's hope the
7504       # compiler will do it, when presented with incompatible header
7505       # files.
7506     fi
7507   fi
7508
7509   case "${target}-${is_cross_compiler}" in
7510   i[3456789]86-*-linux*-no)
7511      # Here host == target, so we don't need to build gcc,
7512      # so we don't want to discard standard headers.
7513      FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7514      ;;
7515   *)
7516      # If we're building newlib, use its generic headers last, but search
7517      # for any libc-related directories first (so make it the last -B
7518      # switch).
7519      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7520
7521      # If we're building libgloss, find the startup file, simulator library
7522      # and linker script.
7523      case " $target_configdirs " in
7524	*" libgloss "*)
7525	# Look for startup file, simulator library and maybe linker script.
7526	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7527	# Look for libnosys.a in case the target needs it.
7528	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7529	# Most targets have the linker script in the source directory.
7530	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7531	;;
7532      esac
7533      ;;
7534   esac
7535   ;;
7536  esac
7537  ;;
7538esac
7539
7540case "$target" in
7541  x86_64-*mingw* | *-w64-mingw*)
7542  # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7543  # however, use a symlink named 'mingw' in ${prefix} .
7544    FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7545    ;;
7546  *-mingw*)
7547  # MinGW can't be handled as Cygwin above since it does not use newlib.
7548    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'
7549    ;;
7550esac
7551
7552# Allow the user to override the flags for
7553# our build compiler if desired.
7554if test x"${build}" = x"${host}" ; then
7555  CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7556  CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7557  LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7558fi
7559
7560# On Canadian crosses, we'll be searching the right directories for
7561# the previously-installed cross compiler, so don't bother to add
7562# flags for directories within the install tree of the compiler
7563# being built; programs in there won't even run.
7564if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7565  # Search for pre-installed headers if nothing else fits.
7566  FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7567fi
7568
7569if test "x${use_gnu_ld}" = x &&
7570   echo " ${configdirs} " | grep " ld " > /dev/null ; then
7571  # Arrange for us to find uninstalled linker scripts.
7572  FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7573fi
7574
7575# Search for other target-specific linker scripts and such.
7576case "${target}" in
7577  mep*)
7578    FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7579    ;;
7580esac
7581
7582# Makefile fragments.
7583for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7584do
7585  eval fragval=\$$frag
7586  if test $fragval != /dev/null; then
7587    eval $frag=${srcdir}/$fragval
7588  fi
7589done
7590
7591
7592
7593
7594
7595# Miscellanea: directories, flags, etc.
7596
7597
7598
7599
7600
7601
7602
7603
7604# Build module lists & subconfigure args.
7605
7606
7607
7608# Host module lists & subconfigure args.
7609
7610
7611
7612
7613# Target module lists & subconfigure args.
7614
7615
7616
7617# Build tools.
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635# Generate default definitions for YACC, M4, LEX and other programs that run
7636# on the build machine.  These are used if the Makefile can't locate these
7637# programs in objdir.
7638MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7639
7640for ac_prog in 'bison -y' byacc yacc
7641do
7642  # Extract the first word of "$ac_prog", so it can be a program name with args.
7643set dummy $ac_prog; ac_word=$2
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645$as_echo_n "checking for $ac_word... " >&6; }
7646if test "${ac_cv_prog_YACC+set}" = set; then :
7647  $as_echo_n "(cached) " >&6
7648else
7649  if test -n "$YACC"; then
7650  ac_cv_prog_YACC="$YACC" # Let the user override the test.
7651else
7652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653for as_dir in $PATH
7654do
7655  IFS=$as_save_IFS
7656  test -z "$as_dir" && as_dir=.
7657    for ac_exec_ext in '' $ac_executable_extensions; do
7658  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7659    ac_cv_prog_YACC="$ac_prog"
7660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661    break 2
7662  fi
7663done
7664  done
7665IFS=$as_save_IFS
7666
7667fi
7668fi
7669YACC=$ac_cv_prog_YACC
7670if test -n "$YACC"; then
7671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7672$as_echo "$YACC" >&6; }
7673else
7674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675$as_echo "no" >&6; }
7676fi
7677
7678
7679  test -n "$YACC" && break
7680done
7681test -n "$YACC" || YACC="$MISSING bison -y"
7682
7683case " $build_configdirs " in
7684  *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7685esac
7686
7687for ac_prog in bison
7688do
7689  # Extract the first word of "$ac_prog", so it can be a program name with args.
7690set dummy $ac_prog; ac_word=$2
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7692$as_echo_n "checking for $ac_word... " >&6; }
7693if test "${ac_cv_prog_BISON+set}" = set; then :
7694  $as_echo_n "(cached) " >&6
7695else
7696  if test -n "$BISON"; then
7697  ac_cv_prog_BISON="$BISON" # Let the user override the test.
7698else
7699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700for as_dir in $PATH
7701do
7702  IFS=$as_save_IFS
7703  test -z "$as_dir" && as_dir=.
7704    for ac_exec_ext in '' $ac_executable_extensions; do
7705  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7706    ac_cv_prog_BISON="$ac_prog"
7707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7708    break 2
7709  fi
7710done
7711  done
7712IFS=$as_save_IFS
7713
7714fi
7715fi
7716BISON=$ac_cv_prog_BISON
7717if test -n "$BISON"; then
7718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7719$as_echo "$BISON" >&6; }
7720else
7721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722$as_echo "no" >&6; }
7723fi
7724
7725
7726  test -n "$BISON" && break
7727done
7728test -n "$BISON" || BISON="$MISSING bison"
7729
7730case " $build_configdirs " in
7731  *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7732esac
7733
7734for ac_prog in gm4 gnum4 m4
7735do
7736  # Extract the first word of "$ac_prog", so it can be a program name with args.
7737set dummy $ac_prog; ac_word=$2
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739$as_echo_n "checking for $ac_word... " >&6; }
7740if test "${ac_cv_prog_M4+set}" = set; then :
7741  $as_echo_n "(cached) " >&6
7742else
7743  if test -n "$M4"; then
7744  ac_cv_prog_M4="$M4" # Let the user override the test.
7745else
7746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747for as_dir in $PATH
7748do
7749  IFS=$as_save_IFS
7750  test -z "$as_dir" && as_dir=.
7751    for ac_exec_ext in '' $ac_executable_extensions; do
7752  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7753    ac_cv_prog_M4="$ac_prog"
7754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755    break 2
7756  fi
7757done
7758  done
7759IFS=$as_save_IFS
7760
7761fi
7762fi
7763M4=$ac_cv_prog_M4
7764if test -n "$M4"; then
7765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7766$as_echo "$M4" >&6; }
7767else
7768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769$as_echo "no" >&6; }
7770fi
7771
7772
7773  test -n "$M4" && break
7774done
7775test -n "$M4" || M4="$MISSING m4"
7776
7777case " $build_configdirs " in
7778  *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7779esac
7780
7781for ac_prog in flex lex
7782do
7783  # Extract the first word of "$ac_prog", so it can be a program name with args.
7784set dummy $ac_prog; ac_word=$2
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786$as_echo_n "checking for $ac_word... " >&6; }
7787if test "${ac_cv_prog_LEX+set}" = set; then :
7788  $as_echo_n "(cached) " >&6
7789else
7790  if test -n "$LEX"; then
7791  ac_cv_prog_LEX="$LEX" # Let the user override the test.
7792else
7793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $PATH
7795do
7796  IFS=$as_save_IFS
7797  test -z "$as_dir" && as_dir=.
7798    for ac_exec_ext in '' $ac_executable_extensions; do
7799  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7800    ac_cv_prog_LEX="$ac_prog"
7801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802    break 2
7803  fi
7804done
7805  done
7806IFS=$as_save_IFS
7807
7808fi
7809fi
7810LEX=$ac_cv_prog_LEX
7811if test -n "$LEX"; then
7812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7813$as_echo "$LEX" >&6; }
7814else
7815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816$as_echo "no" >&6; }
7817fi
7818
7819
7820  test -n "$LEX" && break
7821done
7822test -n "$LEX" || LEX="$MISSING flex"
7823
7824case " $build_configdirs " in
7825  *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7826  *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7827esac
7828
7829for ac_prog in flex
7830do
7831  # Extract the first word of "$ac_prog", so it can be a program name with args.
7832set dummy $ac_prog; ac_word=$2
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834$as_echo_n "checking for $ac_word... " >&6; }
7835if test "${ac_cv_prog_FLEX+set}" = set; then :
7836  $as_echo_n "(cached) " >&6
7837else
7838  if test -n "$FLEX"; then
7839  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7840else
7841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844  IFS=$as_save_IFS
7845  test -z "$as_dir" && as_dir=.
7846    for ac_exec_ext in '' $ac_executable_extensions; do
7847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7848    ac_cv_prog_FLEX="$ac_prog"
7849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850    break 2
7851  fi
7852done
7853  done
7854IFS=$as_save_IFS
7855
7856fi
7857fi
7858FLEX=$ac_cv_prog_FLEX
7859if test -n "$FLEX"; then
7860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7861$as_echo "$FLEX" >&6; }
7862else
7863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864$as_echo "no" >&6; }
7865fi
7866
7867
7868  test -n "$FLEX" && break
7869done
7870test -n "$FLEX" || FLEX="$MISSING flex"
7871
7872case " $build_configdirs " in
7873  *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7874esac
7875
7876for ac_prog in makeinfo
7877do
7878  # Extract the first word of "$ac_prog", so it can be a program name with args.
7879set dummy $ac_prog; ac_word=$2
7880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881$as_echo_n "checking for $ac_word... " >&6; }
7882if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7883  $as_echo_n "(cached) " >&6
7884else
7885  if test -n "$MAKEINFO"; then
7886  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7887else
7888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889for as_dir in $PATH
7890do
7891  IFS=$as_save_IFS
7892  test -z "$as_dir" && as_dir=.
7893    for ac_exec_ext in '' $ac_executable_extensions; do
7894  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7895    ac_cv_prog_MAKEINFO="$ac_prog"
7896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897    break 2
7898  fi
7899done
7900  done
7901IFS=$as_save_IFS
7902
7903fi
7904fi
7905MAKEINFO=$ac_cv_prog_MAKEINFO
7906if test -n "$MAKEINFO"; then
7907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7908$as_echo "$MAKEINFO" >&6; }
7909else
7910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911$as_echo "no" >&6; }
7912fi
7913
7914
7915  test -n "$MAKEINFO" && break
7916done
7917test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7918
7919case " $build_configdirs " in
7920  *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7921  *)
7922
7923    # For an installed makeinfo, we require it to be from texinfo 4.7 or
7924    # higher, else we use the "missing" dummy.
7925    if ${MAKEINFO} --version \
7926       | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7927      :
7928    else
7929      MAKEINFO="$MISSING makeinfo"
7930    fi
7931    ;;
7932
7933esac
7934
7935# FIXME: expect and dejagnu may become build tools?
7936
7937for ac_prog in expect
7938do
7939  # Extract the first word of "$ac_prog", so it can be a program name with args.
7940set dummy $ac_prog; ac_word=$2
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942$as_echo_n "checking for $ac_word... " >&6; }
7943if test "${ac_cv_prog_EXPECT+set}" = set; then :
7944  $as_echo_n "(cached) " >&6
7945else
7946  if test -n "$EXPECT"; then
7947  ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7948else
7949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950for as_dir in $PATH
7951do
7952  IFS=$as_save_IFS
7953  test -z "$as_dir" && as_dir=.
7954    for ac_exec_ext in '' $ac_executable_extensions; do
7955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7956    ac_cv_prog_EXPECT="$ac_prog"
7957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958    break 2
7959  fi
7960done
7961  done
7962IFS=$as_save_IFS
7963
7964fi
7965fi
7966EXPECT=$ac_cv_prog_EXPECT
7967if test -n "$EXPECT"; then
7968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7969$as_echo "$EXPECT" >&6; }
7970else
7971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972$as_echo "no" >&6; }
7973fi
7974
7975
7976  test -n "$EXPECT" && break
7977done
7978test -n "$EXPECT" || EXPECT="expect"
7979
7980case " $configdirs " in
7981  *" expect "*)
7982    test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7983    ;;
7984esac
7985
7986for ac_prog in runtest
7987do
7988  # Extract the first word of "$ac_prog", so it can be a program name with args.
7989set dummy $ac_prog; ac_word=$2
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991$as_echo_n "checking for $ac_word... " >&6; }
7992if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7993  $as_echo_n "(cached) " >&6
7994else
7995  if test -n "$RUNTEST"; then
7996  ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7997else
7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001  IFS=$as_save_IFS
8002  test -z "$as_dir" && as_dir=.
8003    for ac_exec_ext in '' $ac_executable_extensions; do
8004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8005    ac_cv_prog_RUNTEST="$ac_prog"
8006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007    break 2
8008  fi
8009done
8010  done
8011IFS=$as_save_IFS
8012
8013fi
8014fi
8015RUNTEST=$ac_cv_prog_RUNTEST
8016if test -n "$RUNTEST"; then
8017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8018$as_echo "$RUNTEST" >&6; }
8019else
8020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021$as_echo "no" >&6; }
8022fi
8023
8024
8025  test -n "$RUNTEST" && break
8026done
8027test -n "$RUNTEST" || RUNTEST="runtest"
8028
8029case " $configdirs " in
8030  *" dejagnu "*)
8031    test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8032    ;;
8033esac
8034
8035
8036# Host tools.
8037ncn_tool_prefix=
8038test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8039ncn_target_tool_prefix=
8040test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8041
8042
8043
8044if test -n "$AR"; then
8045  ac_cv_prog_AR=$AR
8046elif test -n "$ac_cv_prog_AR"; then
8047  AR=$ac_cv_prog_AR
8048fi
8049
8050if test -n "$ac_cv_prog_AR"; then
8051  for ncn_progname in ar; do
8052    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8053set dummy ${ncn_progname}; ac_word=$2
8054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055$as_echo_n "checking for $ac_word... " >&6; }
8056if test "${ac_cv_prog_AR+set}" = set; then :
8057  $as_echo_n "(cached) " >&6
8058else
8059  if test -n "$AR"; then
8060  ac_cv_prog_AR="$AR" # Let the user override the test.
8061else
8062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063for as_dir in $PATH
8064do
8065  IFS=$as_save_IFS
8066  test -z "$as_dir" && as_dir=.
8067    for ac_exec_ext in '' $ac_executable_extensions; do
8068  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8069    ac_cv_prog_AR="${ncn_progname}"
8070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8071    break 2
8072  fi
8073done
8074  done
8075IFS=$as_save_IFS
8076
8077fi
8078fi
8079AR=$ac_cv_prog_AR
8080if test -n "$AR"; then
8081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8082$as_echo "$AR" >&6; }
8083else
8084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085$as_echo "no" >&6; }
8086fi
8087
8088
8089  done
8090fi
8091
8092for ncn_progname in ar; do
8093  if test -n "$ncn_tool_prefix"; then
8094    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8095set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8097$as_echo_n "checking for $ac_word... " >&6; }
8098if test "${ac_cv_prog_AR+set}" = set; then :
8099  $as_echo_n "(cached) " >&6
8100else
8101  if test -n "$AR"; then
8102  ac_cv_prog_AR="$AR" # Let the user override the test.
8103else
8104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105for as_dir in $PATH
8106do
8107  IFS=$as_save_IFS
8108  test -z "$as_dir" && as_dir=.
8109    for ac_exec_ext in '' $ac_executable_extensions; do
8110  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8111    ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8113    break 2
8114  fi
8115done
8116  done
8117IFS=$as_save_IFS
8118
8119fi
8120fi
8121AR=$ac_cv_prog_AR
8122if test -n "$AR"; then
8123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8124$as_echo "$AR" >&6; }
8125else
8126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127$as_echo "no" >&6; }
8128fi
8129
8130
8131  fi
8132  if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8133    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8134set dummy ${ncn_progname}; ac_word=$2
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136$as_echo_n "checking for $ac_word... " >&6; }
8137if test "${ac_cv_prog_AR+set}" = set; then :
8138  $as_echo_n "(cached) " >&6
8139else
8140  if test -n "$AR"; then
8141  ac_cv_prog_AR="$AR" # Let the user override the test.
8142else
8143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144for as_dir in $PATH
8145do
8146  IFS=$as_save_IFS
8147  test -z "$as_dir" && as_dir=.
8148    for ac_exec_ext in '' $ac_executable_extensions; do
8149  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8150    ac_cv_prog_AR="${ncn_progname}"
8151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8152    break 2
8153  fi
8154done
8155  done
8156IFS=$as_save_IFS
8157
8158fi
8159fi
8160AR=$ac_cv_prog_AR
8161if test -n "$AR"; then
8162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8163$as_echo "$AR" >&6; }
8164else
8165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166$as_echo "no" >&6; }
8167fi
8168
8169
8170  fi
8171  test -n "$ac_cv_prog_AR" && break
8172done
8173
8174if test -z "$ac_cv_prog_AR" ; then
8175  set dummy ar
8176  if test $build = $host ; then
8177    AR="$2"
8178  else
8179    AR="${ncn_tool_prefix}$2"
8180  fi
8181fi
8182
8183
8184
8185if test -n "$AS"; then
8186  ac_cv_prog_AS=$AS
8187elif test -n "$ac_cv_prog_AS"; then
8188  AS=$ac_cv_prog_AS
8189fi
8190
8191if test -n "$ac_cv_prog_AS"; then
8192  for ncn_progname in as; do
8193    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8194set dummy ${ncn_progname}; ac_word=$2
8195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196$as_echo_n "checking for $ac_word... " >&6; }
8197if test "${ac_cv_prog_AS+set}" = set; then :
8198  $as_echo_n "(cached) " >&6
8199else
8200  if test -n "$AS"; then
8201  ac_cv_prog_AS="$AS" # Let the user override the test.
8202else
8203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204for as_dir in $PATH
8205do
8206  IFS=$as_save_IFS
8207  test -z "$as_dir" && as_dir=.
8208    for ac_exec_ext in '' $ac_executable_extensions; do
8209  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8210    ac_cv_prog_AS="${ncn_progname}"
8211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212    break 2
8213  fi
8214done
8215  done
8216IFS=$as_save_IFS
8217
8218fi
8219fi
8220AS=$ac_cv_prog_AS
8221if test -n "$AS"; then
8222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8223$as_echo "$AS" >&6; }
8224else
8225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226$as_echo "no" >&6; }
8227fi
8228
8229
8230  done
8231fi
8232
8233for ncn_progname in as; do
8234  if test -n "$ncn_tool_prefix"; then
8235    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8236set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238$as_echo_n "checking for $ac_word... " >&6; }
8239if test "${ac_cv_prog_AS+set}" = set; then :
8240  $as_echo_n "(cached) " >&6
8241else
8242  if test -n "$AS"; then
8243  ac_cv_prog_AS="$AS" # Let the user override the test.
8244else
8245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246for as_dir in $PATH
8247do
8248  IFS=$as_save_IFS
8249  test -z "$as_dir" && as_dir=.
8250    for ac_exec_ext in '' $ac_executable_extensions; do
8251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8252    ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8254    break 2
8255  fi
8256done
8257  done
8258IFS=$as_save_IFS
8259
8260fi
8261fi
8262AS=$ac_cv_prog_AS
8263if test -n "$AS"; then
8264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8265$as_echo "$AS" >&6; }
8266else
8267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268$as_echo "no" >&6; }
8269fi
8270
8271
8272  fi
8273  if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8274    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8275set dummy ${ncn_progname}; ac_word=$2
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277$as_echo_n "checking for $ac_word... " >&6; }
8278if test "${ac_cv_prog_AS+set}" = set; then :
8279  $as_echo_n "(cached) " >&6
8280else
8281  if test -n "$AS"; then
8282  ac_cv_prog_AS="$AS" # Let the user override the test.
8283else
8284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285for as_dir in $PATH
8286do
8287  IFS=$as_save_IFS
8288  test -z "$as_dir" && as_dir=.
8289    for ac_exec_ext in '' $ac_executable_extensions; do
8290  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8291    ac_cv_prog_AS="${ncn_progname}"
8292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8293    break 2
8294  fi
8295done
8296  done
8297IFS=$as_save_IFS
8298
8299fi
8300fi
8301AS=$ac_cv_prog_AS
8302if test -n "$AS"; then
8303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8304$as_echo "$AS" >&6; }
8305else
8306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307$as_echo "no" >&6; }
8308fi
8309
8310
8311  fi
8312  test -n "$ac_cv_prog_AS" && break
8313done
8314
8315if test -z "$ac_cv_prog_AS" ; then
8316  set dummy as
8317  if test $build = $host ; then
8318    AS="$2"
8319  else
8320    AS="${ncn_tool_prefix}$2"
8321  fi
8322fi
8323
8324
8325
8326if test -n "$DLLTOOL"; then
8327  ac_cv_prog_DLLTOOL=$DLLTOOL
8328elif test -n "$ac_cv_prog_DLLTOOL"; then
8329  DLLTOOL=$ac_cv_prog_DLLTOOL
8330fi
8331
8332if test -n "$ac_cv_prog_DLLTOOL"; then
8333  for ncn_progname in dlltool; do
8334    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8335set dummy ${ncn_progname}; ac_word=$2
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8337$as_echo_n "checking for $ac_word... " >&6; }
8338if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8339  $as_echo_n "(cached) " >&6
8340else
8341  if test -n "$DLLTOOL"; then
8342  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8343else
8344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345for as_dir in $PATH
8346do
8347  IFS=$as_save_IFS
8348  test -z "$as_dir" && as_dir=.
8349    for ac_exec_ext in '' $ac_executable_extensions; do
8350  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8351    ac_cv_prog_DLLTOOL="${ncn_progname}"
8352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8353    break 2
8354  fi
8355done
8356  done
8357IFS=$as_save_IFS
8358
8359fi
8360fi
8361DLLTOOL=$ac_cv_prog_DLLTOOL
8362if test -n "$DLLTOOL"; then
8363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8364$as_echo "$DLLTOOL" >&6; }
8365else
8366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367$as_echo "no" >&6; }
8368fi
8369
8370
8371  done
8372fi
8373
8374for ncn_progname in dlltool; do
8375  if test -n "$ncn_tool_prefix"; then
8376    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8377set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379$as_echo_n "checking for $ac_word... " >&6; }
8380if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8381  $as_echo_n "(cached) " >&6
8382else
8383  if test -n "$DLLTOOL"; then
8384  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8385else
8386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387for as_dir in $PATH
8388do
8389  IFS=$as_save_IFS
8390  test -z "$as_dir" && as_dir=.
8391    for ac_exec_ext in '' $ac_executable_extensions; do
8392  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8393    ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8394    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8395    break 2
8396  fi
8397done
8398  done
8399IFS=$as_save_IFS
8400
8401fi
8402fi
8403DLLTOOL=$ac_cv_prog_DLLTOOL
8404if test -n "$DLLTOOL"; then
8405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8406$as_echo "$DLLTOOL" >&6; }
8407else
8408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409$as_echo "no" >&6; }
8410fi
8411
8412
8413  fi
8414  if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8415    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8416set dummy ${ncn_progname}; ac_word=$2
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418$as_echo_n "checking for $ac_word... " >&6; }
8419if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8420  $as_echo_n "(cached) " >&6
8421else
8422  if test -n "$DLLTOOL"; then
8423  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8424else
8425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426for as_dir in $PATH
8427do
8428  IFS=$as_save_IFS
8429  test -z "$as_dir" && as_dir=.
8430    for ac_exec_ext in '' $ac_executable_extensions; do
8431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8432    ac_cv_prog_DLLTOOL="${ncn_progname}"
8433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8434    break 2
8435  fi
8436done
8437  done
8438IFS=$as_save_IFS
8439
8440fi
8441fi
8442DLLTOOL=$ac_cv_prog_DLLTOOL
8443if test -n "$DLLTOOL"; then
8444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8445$as_echo "$DLLTOOL" >&6; }
8446else
8447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448$as_echo "no" >&6; }
8449fi
8450
8451
8452  fi
8453  test -n "$ac_cv_prog_DLLTOOL" && break
8454done
8455
8456if test -z "$ac_cv_prog_DLLTOOL" ; then
8457  set dummy dlltool
8458  if test $build = $host ; then
8459    DLLTOOL="$2"
8460  else
8461    DLLTOOL="${ncn_tool_prefix}$2"
8462  fi
8463fi
8464
8465
8466
8467if test -n "$LD"; then
8468  ac_cv_prog_LD=$LD
8469elif test -n "$ac_cv_prog_LD"; then
8470  LD=$ac_cv_prog_LD
8471fi
8472
8473if test -n "$ac_cv_prog_LD"; then
8474  for ncn_progname in ld; do
8475    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8476set dummy ${ncn_progname}; ac_word=$2
8477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8478$as_echo_n "checking for $ac_word... " >&6; }
8479if test "${ac_cv_prog_LD+set}" = set; then :
8480  $as_echo_n "(cached) " >&6
8481else
8482  if test -n "$LD"; then
8483  ac_cv_prog_LD="$LD" # Let the user override the test.
8484else
8485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486for as_dir in $PATH
8487do
8488  IFS=$as_save_IFS
8489  test -z "$as_dir" && as_dir=.
8490    for ac_exec_ext in '' $ac_executable_extensions; do
8491  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8492    ac_cv_prog_LD="${ncn_progname}"
8493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8494    break 2
8495  fi
8496done
8497  done
8498IFS=$as_save_IFS
8499
8500fi
8501fi
8502LD=$ac_cv_prog_LD
8503if test -n "$LD"; then
8504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8505$as_echo "$LD" >&6; }
8506else
8507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508$as_echo "no" >&6; }
8509fi
8510
8511
8512  done
8513fi
8514
8515for ncn_progname in ld; do
8516  if test -n "$ncn_tool_prefix"; then
8517    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8518set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520$as_echo_n "checking for $ac_word... " >&6; }
8521if test "${ac_cv_prog_LD+set}" = set; then :
8522  $as_echo_n "(cached) " >&6
8523else
8524  if test -n "$LD"; then
8525  ac_cv_prog_LD="$LD" # Let the user override the test.
8526else
8527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528for as_dir in $PATH
8529do
8530  IFS=$as_save_IFS
8531  test -z "$as_dir" && as_dir=.
8532    for ac_exec_ext in '' $ac_executable_extensions; do
8533  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8534    ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536    break 2
8537  fi
8538done
8539  done
8540IFS=$as_save_IFS
8541
8542fi
8543fi
8544LD=$ac_cv_prog_LD
8545if test -n "$LD"; then
8546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8547$as_echo "$LD" >&6; }
8548else
8549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550$as_echo "no" >&6; }
8551fi
8552
8553
8554  fi
8555  if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8556    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8557set dummy ${ncn_progname}; ac_word=$2
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559$as_echo_n "checking for $ac_word... " >&6; }
8560if test "${ac_cv_prog_LD+set}" = set; then :
8561  $as_echo_n "(cached) " >&6
8562else
8563  if test -n "$LD"; then
8564  ac_cv_prog_LD="$LD" # Let the user override the test.
8565else
8566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567for as_dir in $PATH
8568do
8569  IFS=$as_save_IFS
8570  test -z "$as_dir" && as_dir=.
8571    for ac_exec_ext in '' $ac_executable_extensions; do
8572  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8573    ac_cv_prog_LD="${ncn_progname}"
8574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8575    break 2
8576  fi
8577done
8578  done
8579IFS=$as_save_IFS
8580
8581fi
8582fi
8583LD=$ac_cv_prog_LD
8584if test -n "$LD"; then
8585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8586$as_echo "$LD" >&6; }
8587else
8588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589$as_echo "no" >&6; }
8590fi
8591
8592
8593  fi
8594  test -n "$ac_cv_prog_LD" && break
8595done
8596
8597if test -z "$ac_cv_prog_LD" ; then
8598  set dummy ld
8599  if test $build = $host ; then
8600    LD="$2"
8601  else
8602    LD="${ncn_tool_prefix}$2"
8603  fi
8604fi
8605
8606
8607
8608if test -n "$LIPO"; then
8609  ac_cv_prog_LIPO=$LIPO
8610elif test -n "$ac_cv_prog_LIPO"; then
8611  LIPO=$ac_cv_prog_LIPO
8612fi
8613
8614if test -n "$ac_cv_prog_LIPO"; then
8615  for ncn_progname in lipo; do
8616    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8617set dummy ${ncn_progname}; ac_word=$2
8618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8619$as_echo_n "checking for $ac_word... " >&6; }
8620if test "${ac_cv_prog_LIPO+set}" = set; then :
8621  $as_echo_n "(cached) " >&6
8622else
8623  if test -n "$LIPO"; then
8624  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8625else
8626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627for as_dir in $PATH
8628do
8629  IFS=$as_save_IFS
8630  test -z "$as_dir" && as_dir=.
8631    for ac_exec_ext in '' $ac_executable_extensions; do
8632  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8633    ac_cv_prog_LIPO="${ncn_progname}"
8634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8635    break 2
8636  fi
8637done
8638  done
8639IFS=$as_save_IFS
8640
8641fi
8642fi
8643LIPO=$ac_cv_prog_LIPO
8644if test -n "$LIPO"; then
8645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8646$as_echo "$LIPO" >&6; }
8647else
8648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649$as_echo "no" >&6; }
8650fi
8651
8652
8653  done
8654fi
8655
8656for ncn_progname in lipo; do
8657  if test -n "$ncn_tool_prefix"; then
8658    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8659set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8661$as_echo_n "checking for $ac_word... " >&6; }
8662if test "${ac_cv_prog_LIPO+set}" = set; then :
8663  $as_echo_n "(cached) " >&6
8664else
8665  if test -n "$LIPO"; then
8666  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8667else
8668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669for as_dir in $PATH
8670do
8671  IFS=$as_save_IFS
8672  test -z "$as_dir" && as_dir=.
8673    for ac_exec_ext in '' $ac_executable_extensions; do
8674  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8675    ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8677    break 2
8678  fi
8679done
8680  done
8681IFS=$as_save_IFS
8682
8683fi
8684fi
8685LIPO=$ac_cv_prog_LIPO
8686if test -n "$LIPO"; then
8687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8688$as_echo "$LIPO" >&6; }
8689else
8690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691$as_echo "no" >&6; }
8692fi
8693
8694
8695  fi
8696  if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8697    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8698set dummy ${ncn_progname}; ac_word=$2
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8700$as_echo_n "checking for $ac_word... " >&6; }
8701if test "${ac_cv_prog_LIPO+set}" = set; then :
8702  $as_echo_n "(cached) " >&6
8703else
8704  if test -n "$LIPO"; then
8705  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8706else
8707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708for as_dir in $PATH
8709do
8710  IFS=$as_save_IFS
8711  test -z "$as_dir" && as_dir=.
8712    for ac_exec_ext in '' $ac_executable_extensions; do
8713  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8714    ac_cv_prog_LIPO="${ncn_progname}"
8715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8716    break 2
8717  fi
8718done
8719  done
8720IFS=$as_save_IFS
8721
8722fi
8723fi
8724LIPO=$ac_cv_prog_LIPO
8725if test -n "$LIPO"; then
8726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8727$as_echo "$LIPO" >&6; }
8728else
8729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730$as_echo "no" >&6; }
8731fi
8732
8733
8734  fi
8735  test -n "$ac_cv_prog_LIPO" && break
8736done
8737
8738if test -z "$ac_cv_prog_LIPO" ; then
8739  set dummy lipo
8740  if test $build = $host ; then
8741    LIPO="$2"
8742  else
8743    LIPO="${ncn_tool_prefix}$2"
8744  fi
8745fi
8746
8747
8748
8749if test -n "$NM"; then
8750  ac_cv_prog_NM=$NM
8751elif test -n "$ac_cv_prog_NM"; then
8752  NM=$ac_cv_prog_NM
8753fi
8754
8755if test -n "$ac_cv_prog_NM"; then
8756  for ncn_progname in nm; do
8757    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8758set dummy ${ncn_progname}; ac_word=$2
8759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8760$as_echo_n "checking for $ac_word... " >&6; }
8761if test "${ac_cv_prog_NM+set}" = set; then :
8762  $as_echo_n "(cached) " >&6
8763else
8764  if test -n "$NM"; then
8765  ac_cv_prog_NM="$NM" # Let the user override the test.
8766else
8767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8768for as_dir in $PATH
8769do
8770  IFS=$as_save_IFS
8771  test -z "$as_dir" && as_dir=.
8772    for ac_exec_ext in '' $ac_executable_extensions; do
8773  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8774    ac_cv_prog_NM="${ncn_progname}"
8775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8776    break 2
8777  fi
8778done
8779  done
8780IFS=$as_save_IFS
8781
8782fi
8783fi
8784NM=$ac_cv_prog_NM
8785if test -n "$NM"; then
8786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8787$as_echo "$NM" >&6; }
8788else
8789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8790$as_echo "no" >&6; }
8791fi
8792
8793
8794  done
8795fi
8796
8797for ncn_progname in nm; do
8798  if test -n "$ncn_tool_prefix"; then
8799    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8800set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8802$as_echo_n "checking for $ac_word... " >&6; }
8803if test "${ac_cv_prog_NM+set}" = set; then :
8804  $as_echo_n "(cached) " >&6
8805else
8806  if test -n "$NM"; then
8807  ac_cv_prog_NM="$NM" # Let the user override the test.
8808else
8809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810for as_dir in $PATH
8811do
8812  IFS=$as_save_IFS
8813  test -z "$as_dir" && as_dir=.
8814    for ac_exec_ext in '' $ac_executable_extensions; do
8815  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8816    ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8818    break 2
8819  fi
8820done
8821  done
8822IFS=$as_save_IFS
8823
8824fi
8825fi
8826NM=$ac_cv_prog_NM
8827if test -n "$NM"; then
8828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8829$as_echo "$NM" >&6; }
8830else
8831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8832$as_echo "no" >&6; }
8833fi
8834
8835
8836  fi
8837  if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8838    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8839set dummy ${ncn_progname}; ac_word=$2
8840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841$as_echo_n "checking for $ac_word... " >&6; }
8842if test "${ac_cv_prog_NM+set}" = set; then :
8843  $as_echo_n "(cached) " >&6
8844else
8845  if test -n "$NM"; then
8846  ac_cv_prog_NM="$NM" # Let the user override the test.
8847else
8848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849for as_dir in $PATH
8850do
8851  IFS=$as_save_IFS
8852  test -z "$as_dir" && as_dir=.
8853    for ac_exec_ext in '' $ac_executable_extensions; do
8854  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8855    ac_cv_prog_NM="${ncn_progname}"
8856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8857    break 2
8858  fi
8859done
8860  done
8861IFS=$as_save_IFS
8862
8863fi
8864fi
8865NM=$ac_cv_prog_NM
8866if test -n "$NM"; then
8867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8868$as_echo "$NM" >&6; }
8869else
8870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871$as_echo "no" >&6; }
8872fi
8873
8874
8875  fi
8876  test -n "$ac_cv_prog_NM" && break
8877done
8878
8879if test -z "$ac_cv_prog_NM" ; then
8880  set dummy nm
8881  if test $build = $host ; then
8882    NM="$2"
8883  else
8884    NM="${ncn_tool_prefix}$2"
8885  fi
8886fi
8887
8888
8889
8890if test -n "$RANLIB"; then
8891  ac_cv_prog_RANLIB=$RANLIB
8892elif test -n "$ac_cv_prog_RANLIB"; then
8893  RANLIB=$ac_cv_prog_RANLIB
8894fi
8895
8896if test -n "$ac_cv_prog_RANLIB"; then
8897  for ncn_progname in ranlib; do
8898    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8899set dummy ${ncn_progname}; ac_word=$2
8900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8901$as_echo_n "checking for $ac_word... " >&6; }
8902if test "${ac_cv_prog_RANLIB+set}" = set; then :
8903  $as_echo_n "(cached) " >&6
8904else
8905  if test -n "$RANLIB"; then
8906  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8907else
8908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909for as_dir in $PATH
8910do
8911  IFS=$as_save_IFS
8912  test -z "$as_dir" && as_dir=.
8913    for ac_exec_ext in '' $ac_executable_extensions; do
8914  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8915    ac_cv_prog_RANLIB="${ncn_progname}"
8916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8917    break 2
8918  fi
8919done
8920  done
8921IFS=$as_save_IFS
8922
8923fi
8924fi
8925RANLIB=$ac_cv_prog_RANLIB
8926if test -n "$RANLIB"; then
8927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8928$as_echo "$RANLIB" >&6; }
8929else
8930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931$as_echo "no" >&6; }
8932fi
8933
8934
8935  done
8936fi
8937
8938for ncn_progname in ranlib; do
8939  if test -n "$ncn_tool_prefix"; then
8940    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8941set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8943$as_echo_n "checking for $ac_word... " >&6; }
8944if test "${ac_cv_prog_RANLIB+set}" = set; then :
8945  $as_echo_n "(cached) " >&6
8946else
8947  if test -n "$RANLIB"; then
8948  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8949else
8950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951for as_dir in $PATH
8952do
8953  IFS=$as_save_IFS
8954  test -z "$as_dir" && as_dir=.
8955    for ac_exec_ext in '' $ac_executable_extensions; do
8956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8957    ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8959    break 2
8960  fi
8961done
8962  done
8963IFS=$as_save_IFS
8964
8965fi
8966fi
8967RANLIB=$ac_cv_prog_RANLIB
8968if test -n "$RANLIB"; then
8969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8970$as_echo "$RANLIB" >&6; }
8971else
8972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973$as_echo "no" >&6; }
8974fi
8975
8976
8977  fi
8978  if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8979    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8980set dummy ${ncn_progname}; ac_word=$2
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8982$as_echo_n "checking for $ac_word... " >&6; }
8983if test "${ac_cv_prog_RANLIB+set}" = set; then :
8984  $as_echo_n "(cached) " >&6
8985else
8986  if test -n "$RANLIB"; then
8987  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8988else
8989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990for as_dir in $PATH
8991do
8992  IFS=$as_save_IFS
8993  test -z "$as_dir" && as_dir=.
8994    for ac_exec_ext in '' $ac_executable_extensions; do
8995  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8996    ac_cv_prog_RANLIB="${ncn_progname}"
8997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8998    break 2
8999  fi
9000done
9001  done
9002IFS=$as_save_IFS
9003
9004fi
9005fi
9006RANLIB=$ac_cv_prog_RANLIB
9007if test -n "$RANLIB"; then
9008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9009$as_echo "$RANLIB" >&6; }
9010else
9011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012$as_echo "no" >&6; }
9013fi
9014
9015
9016  fi
9017  test -n "$ac_cv_prog_RANLIB" && break
9018done
9019
9020if test -z "$ac_cv_prog_RANLIB" ; then
9021  RANLIB="true"
9022fi
9023
9024
9025
9026if test -n "$STRIP"; then
9027  ac_cv_prog_STRIP=$STRIP
9028elif test -n "$ac_cv_prog_STRIP"; then
9029  STRIP=$ac_cv_prog_STRIP
9030fi
9031
9032if test -n "$ac_cv_prog_STRIP"; then
9033  for ncn_progname in strip; do
9034    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9035set dummy ${ncn_progname}; ac_word=$2
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9037$as_echo_n "checking for $ac_word... " >&6; }
9038if test "${ac_cv_prog_STRIP+set}" = set; then :
9039  $as_echo_n "(cached) " >&6
9040else
9041  if test -n "$STRIP"; then
9042  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9043else
9044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045for as_dir in $PATH
9046do
9047  IFS=$as_save_IFS
9048  test -z "$as_dir" && as_dir=.
9049    for ac_exec_ext in '' $ac_executable_extensions; do
9050  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9051    ac_cv_prog_STRIP="${ncn_progname}"
9052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9053    break 2
9054  fi
9055done
9056  done
9057IFS=$as_save_IFS
9058
9059fi
9060fi
9061STRIP=$ac_cv_prog_STRIP
9062if test -n "$STRIP"; then
9063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9064$as_echo "$STRIP" >&6; }
9065else
9066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067$as_echo "no" >&6; }
9068fi
9069
9070
9071  done
9072fi
9073
9074for ncn_progname in strip; do
9075  if test -n "$ncn_tool_prefix"; then
9076    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9077set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9079$as_echo_n "checking for $ac_word... " >&6; }
9080if test "${ac_cv_prog_STRIP+set}" = set; then :
9081  $as_echo_n "(cached) " >&6
9082else
9083  if test -n "$STRIP"; then
9084  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9085else
9086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087for as_dir in $PATH
9088do
9089  IFS=$as_save_IFS
9090  test -z "$as_dir" && as_dir=.
9091    for ac_exec_ext in '' $ac_executable_extensions; do
9092  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9093    ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9095    break 2
9096  fi
9097done
9098  done
9099IFS=$as_save_IFS
9100
9101fi
9102fi
9103STRIP=$ac_cv_prog_STRIP
9104if test -n "$STRIP"; then
9105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9106$as_echo "$STRIP" >&6; }
9107else
9108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109$as_echo "no" >&6; }
9110fi
9111
9112
9113  fi
9114  if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9115    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9116set dummy ${ncn_progname}; ac_word=$2
9117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9118$as_echo_n "checking for $ac_word... " >&6; }
9119if test "${ac_cv_prog_STRIP+set}" = set; then :
9120  $as_echo_n "(cached) " >&6
9121else
9122  if test -n "$STRIP"; then
9123  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9124else
9125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126for as_dir in $PATH
9127do
9128  IFS=$as_save_IFS
9129  test -z "$as_dir" && as_dir=.
9130    for ac_exec_ext in '' $ac_executable_extensions; do
9131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9132    ac_cv_prog_STRIP="${ncn_progname}"
9133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9134    break 2
9135  fi
9136done
9137  done
9138IFS=$as_save_IFS
9139
9140fi
9141fi
9142STRIP=$ac_cv_prog_STRIP
9143if test -n "$STRIP"; then
9144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9145$as_echo "$STRIP" >&6; }
9146else
9147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9148$as_echo "no" >&6; }
9149fi
9150
9151
9152  fi
9153  test -n "$ac_cv_prog_STRIP" && break
9154done
9155
9156if test -z "$ac_cv_prog_STRIP" ; then
9157  STRIP="true"
9158fi
9159
9160
9161
9162if test -n "$WINDRES"; then
9163  ac_cv_prog_WINDRES=$WINDRES
9164elif test -n "$ac_cv_prog_WINDRES"; then
9165  WINDRES=$ac_cv_prog_WINDRES
9166fi
9167
9168if test -n "$ac_cv_prog_WINDRES"; then
9169  for ncn_progname in windres; do
9170    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9171set dummy ${ncn_progname}; ac_word=$2
9172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9173$as_echo_n "checking for $ac_word... " >&6; }
9174if test "${ac_cv_prog_WINDRES+set}" = set; then :
9175  $as_echo_n "(cached) " >&6
9176else
9177  if test -n "$WINDRES"; then
9178  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9179else
9180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9181for as_dir in $PATH
9182do
9183  IFS=$as_save_IFS
9184  test -z "$as_dir" && as_dir=.
9185    for ac_exec_ext in '' $ac_executable_extensions; do
9186  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9187    ac_cv_prog_WINDRES="${ncn_progname}"
9188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9189    break 2
9190  fi
9191done
9192  done
9193IFS=$as_save_IFS
9194
9195fi
9196fi
9197WINDRES=$ac_cv_prog_WINDRES
9198if test -n "$WINDRES"; then
9199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9200$as_echo "$WINDRES" >&6; }
9201else
9202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203$as_echo "no" >&6; }
9204fi
9205
9206
9207  done
9208fi
9209
9210for ncn_progname in windres; do
9211  if test -n "$ncn_tool_prefix"; then
9212    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9213set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9215$as_echo_n "checking for $ac_word... " >&6; }
9216if test "${ac_cv_prog_WINDRES+set}" = set; then :
9217  $as_echo_n "(cached) " >&6
9218else
9219  if test -n "$WINDRES"; then
9220  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9221else
9222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9223for as_dir in $PATH
9224do
9225  IFS=$as_save_IFS
9226  test -z "$as_dir" && as_dir=.
9227    for ac_exec_ext in '' $ac_executable_extensions; do
9228  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9229    ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9231    break 2
9232  fi
9233done
9234  done
9235IFS=$as_save_IFS
9236
9237fi
9238fi
9239WINDRES=$ac_cv_prog_WINDRES
9240if test -n "$WINDRES"; then
9241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9242$as_echo "$WINDRES" >&6; }
9243else
9244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9245$as_echo "no" >&6; }
9246fi
9247
9248
9249  fi
9250  if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9251    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9252set dummy ${ncn_progname}; ac_word=$2
9253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9254$as_echo_n "checking for $ac_word... " >&6; }
9255if test "${ac_cv_prog_WINDRES+set}" = set; then :
9256  $as_echo_n "(cached) " >&6
9257else
9258  if test -n "$WINDRES"; then
9259  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9260else
9261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262for as_dir in $PATH
9263do
9264  IFS=$as_save_IFS
9265  test -z "$as_dir" && as_dir=.
9266    for ac_exec_ext in '' $ac_executable_extensions; do
9267  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9268    ac_cv_prog_WINDRES="${ncn_progname}"
9269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9270    break 2
9271  fi
9272done
9273  done
9274IFS=$as_save_IFS
9275
9276fi
9277fi
9278WINDRES=$ac_cv_prog_WINDRES
9279if test -n "$WINDRES"; then
9280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9281$as_echo "$WINDRES" >&6; }
9282else
9283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284$as_echo "no" >&6; }
9285fi
9286
9287
9288  fi
9289  test -n "$ac_cv_prog_WINDRES" && break
9290done
9291
9292if test -z "$ac_cv_prog_WINDRES" ; then
9293  set dummy windres
9294  if test $build = $host ; then
9295    WINDRES="$2"
9296  else
9297    WINDRES="${ncn_tool_prefix}$2"
9298  fi
9299fi
9300
9301
9302
9303if test -n "$WINDMC"; then
9304  ac_cv_prog_WINDMC=$WINDMC
9305elif test -n "$ac_cv_prog_WINDMC"; then
9306  WINDMC=$ac_cv_prog_WINDMC
9307fi
9308
9309if test -n "$ac_cv_prog_WINDMC"; then
9310  for ncn_progname in windmc; do
9311    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9312set dummy ${ncn_progname}; ac_word=$2
9313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9314$as_echo_n "checking for $ac_word... " >&6; }
9315if test "${ac_cv_prog_WINDMC+set}" = set; then :
9316  $as_echo_n "(cached) " >&6
9317else
9318  if test -n "$WINDMC"; then
9319  ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9320else
9321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9322for as_dir in $PATH
9323do
9324  IFS=$as_save_IFS
9325  test -z "$as_dir" && as_dir=.
9326    for ac_exec_ext in '' $ac_executable_extensions; do
9327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9328    ac_cv_prog_WINDMC="${ncn_progname}"
9329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9330    break 2
9331  fi
9332done
9333  done
9334IFS=$as_save_IFS
9335
9336fi
9337fi
9338WINDMC=$ac_cv_prog_WINDMC
9339if test -n "$WINDMC"; then
9340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9341$as_echo "$WINDMC" >&6; }
9342else
9343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9344$as_echo "no" >&6; }
9345fi
9346
9347
9348  done
9349fi
9350
9351for ncn_progname in windmc; do
9352  if test -n "$ncn_tool_prefix"; then
9353    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9354set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9356$as_echo_n "checking for $ac_word... " >&6; }
9357if test "${ac_cv_prog_WINDMC+set}" = set; then :
9358  $as_echo_n "(cached) " >&6
9359else
9360  if test -n "$WINDMC"; then
9361  ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9362else
9363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9364for as_dir in $PATH
9365do
9366  IFS=$as_save_IFS
9367  test -z "$as_dir" && as_dir=.
9368    for ac_exec_ext in '' $ac_executable_extensions; do
9369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9370    ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9372    break 2
9373  fi
9374done
9375  done
9376IFS=$as_save_IFS
9377
9378fi
9379fi
9380WINDMC=$ac_cv_prog_WINDMC
9381if test -n "$WINDMC"; then
9382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9383$as_echo "$WINDMC" >&6; }
9384else
9385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9386$as_echo "no" >&6; }
9387fi
9388
9389
9390  fi
9391  if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9392    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9393set dummy ${ncn_progname}; ac_word=$2
9394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9395$as_echo_n "checking for $ac_word... " >&6; }
9396if test "${ac_cv_prog_WINDMC+set}" = set; then :
9397  $as_echo_n "(cached) " >&6
9398else
9399  if test -n "$WINDMC"; then
9400  ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9401else
9402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403for as_dir in $PATH
9404do
9405  IFS=$as_save_IFS
9406  test -z "$as_dir" && as_dir=.
9407    for ac_exec_ext in '' $ac_executable_extensions; do
9408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9409    ac_cv_prog_WINDMC="${ncn_progname}"
9410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9411    break 2
9412  fi
9413done
9414  done
9415IFS=$as_save_IFS
9416
9417fi
9418fi
9419WINDMC=$ac_cv_prog_WINDMC
9420if test -n "$WINDMC"; then
9421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9422$as_echo "$WINDMC" >&6; }
9423else
9424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425$as_echo "no" >&6; }
9426fi
9427
9428
9429  fi
9430  test -n "$ac_cv_prog_WINDMC" && break
9431done
9432
9433if test -z "$ac_cv_prog_WINDMC" ; then
9434  set dummy windmc
9435  if test $build = $host ; then
9436    WINDMC="$2"
9437  else
9438    WINDMC="${ncn_tool_prefix}$2"
9439  fi
9440fi
9441
9442
9443
9444if test -n "$OBJCOPY"; then
9445  ac_cv_prog_OBJCOPY=$OBJCOPY
9446elif test -n "$ac_cv_prog_OBJCOPY"; then
9447  OBJCOPY=$ac_cv_prog_OBJCOPY
9448fi
9449
9450if test -n "$ac_cv_prog_OBJCOPY"; then
9451  for ncn_progname in objcopy; do
9452    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9453set dummy ${ncn_progname}; ac_word=$2
9454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9455$as_echo_n "checking for $ac_word... " >&6; }
9456if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9457  $as_echo_n "(cached) " >&6
9458else
9459  if test -n "$OBJCOPY"; then
9460  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9461else
9462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463for as_dir in $PATH
9464do
9465  IFS=$as_save_IFS
9466  test -z "$as_dir" && as_dir=.
9467    for ac_exec_ext in '' $ac_executable_extensions; do
9468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9469    ac_cv_prog_OBJCOPY="${ncn_progname}"
9470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9471    break 2
9472  fi
9473done
9474  done
9475IFS=$as_save_IFS
9476
9477fi
9478fi
9479OBJCOPY=$ac_cv_prog_OBJCOPY
9480if test -n "$OBJCOPY"; then
9481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9482$as_echo "$OBJCOPY" >&6; }
9483else
9484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485$as_echo "no" >&6; }
9486fi
9487
9488
9489  done
9490fi
9491
9492for ncn_progname in objcopy; do
9493  if test -n "$ncn_tool_prefix"; then
9494    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9495set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9497$as_echo_n "checking for $ac_word... " >&6; }
9498if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9499  $as_echo_n "(cached) " >&6
9500else
9501  if test -n "$OBJCOPY"; then
9502  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9503else
9504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9505for as_dir in $PATH
9506do
9507  IFS=$as_save_IFS
9508  test -z "$as_dir" && as_dir=.
9509    for ac_exec_ext in '' $ac_executable_extensions; do
9510  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9511    ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9513    break 2
9514  fi
9515done
9516  done
9517IFS=$as_save_IFS
9518
9519fi
9520fi
9521OBJCOPY=$ac_cv_prog_OBJCOPY
9522if test -n "$OBJCOPY"; then
9523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9524$as_echo "$OBJCOPY" >&6; }
9525else
9526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9527$as_echo "no" >&6; }
9528fi
9529
9530
9531  fi
9532  if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9533    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9534set dummy ${ncn_progname}; ac_word=$2
9535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9536$as_echo_n "checking for $ac_word... " >&6; }
9537if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9538  $as_echo_n "(cached) " >&6
9539else
9540  if test -n "$OBJCOPY"; then
9541  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9542else
9543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544for as_dir in $PATH
9545do
9546  IFS=$as_save_IFS
9547  test -z "$as_dir" && as_dir=.
9548    for ac_exec_ext in '' $ac_executable_extensions; do
9549  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9550    ac_cv_prog_OBJCOPY="${ncn_progname}"
9551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9552    break 2
9553  fi
9554done
9555  done
9556IFS=$as_save_IFS
9557
9558fi
9559fi
9560OBJCOPY=$ac_cv_prog_OBJCOPY
9561if test -n "$OBJCOPY"; then
9562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9563$as_echo "$OBJCOPY" >&6; }
9564else
9565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566$as_echo "no" >&6; }
9567fi
9568
9569
9570  fi
9571  test -n "$ac_cv_prog_OBJCOPY" && break
9572done
9573
9574if test -z "$ac_cv_prog_OBJCOPY" ; then
9575  set dummy objcopy
9576  if test $build = $host ; then
9577    OBJCOPY="$2"
9578  else
9579    OBJCOPY="${ncn_tool_prefix}$2"
9580  fi
9581fi
9582
9583
9584
9585if test -n "$OBJDUMP"; then
9586  ac_cv_prog_OBJDUMP=$OBJDUMP
9587elif test -n "$ac_cv_prog_OBJDUMP"; then
9588  OBJDUMP=$ac_cv_prog_OBJDUMP
9589fi
9590
9591if test -n "$ac_cv_prog_OBJDUMP"; then
9592  for ncn_progname in objdump; do
9593    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9594set dummy ${ncn_progname}; ac_word=$2
9595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9596$as_echo_n "checking for $ac_word... " >&6; }
9597if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9598  $as_echo_n "(cached) " >&6
9599else
9600  if test -n "$OBJDUMP"; then
9601  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9602else
9603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9604for as_dir in $PATH
9605do
9606  IFS=$as_save_IFS
9607  test -z "$as_dir" && as_dir=.
9608    for ac_exec_ext in '' $ac_executable_extensions; do
9609  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9610    ac_cv_prog_OBJDUMP="${ncn_progname}"
9611    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9612    break 2
9613  fi
9614done
9615  done
9616IFS=$as_save_IFS
9617
9618fi
9619fi
9620OBJDUMP=$ac_cv_prog_OBJDUMP
9621if test -n "$OBJDUMP"; then
9622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9623$as_echo "$OBJDUMP" >&6; }
9624else
9625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9626$as_echo "no" >&6; }
9627fi
9628
9629
9630  done
9631fi
9632
9633for ncn_progname in objdump; do
9634  if test -n "$ncn_tool_prefix"; then
9635    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9636set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9638$as_echo_n "checking for $ac_word... " >&6; }
9639if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9640  $as_echo_n "(cached) " >&6
9641else
9642  if test -n "$OBJDUMP"; then
9643  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9644else
9645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646for as_dir in $PATH
9647do
9648  IFS=$as_save_IFS
9649  test -z "$as_dir" && as_dir=.
9650    for ac_exec_ext in '' $ac_executable_extensions; do
9651  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9652    ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9654    break 2
9655  fi
9656done
9657  done
9658IFS=$as_save_IFS
9659
9660fi
9661fi
9662OBJDUMP=$ac_cv_prog_OBJDUMP
9663if test -n "$OBJDUMP"; then
9664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9665$as_echo "$OBJDUMP" >&6; }
9666else
9667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9668$as_echo "no" >&6; }
9669fi
9670
9671
9672  fi
9673  if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9674    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9675set dummy ${ncn_progname}; ac_word=$2
9676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9677$as_echo_n "checking for $ac_word... " >&6; }
9678if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9679  $as_echo_n "(cached) " >&6
9680else
9681  if test -n "$OBJDUMP"; then
9682  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9683else
9684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9685for as_dir in $PATH
9686do
9687  IFS=$as_save_IFS
9688  test -z "$as_dir" && as_dir=.
9689    for ac_exec_ext in '' $ac_executable_extensions; do
9690  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9691    ac_cv_prog_OBJDUMP="${ncn_progname}"
9692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9693    break 2
9694  fi
9695done
9696  done
9697IFS=$as_save_IFS
9698
9699fi
9700fi
9701OBJDUMP=$ac_cv_prog_OBJDUMP
9702if test -n "$OBJDUMP"; then
9703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9704$as_echo "$OBJDUMP" >&6; }
9705else
9706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9707$as_echo "no" >&6; }
9708fi
9709
9710
9711  fi
9712  test -n "$ac_cv_prog_OBJDUMP" && break
9713done
9714
9715if test -z "$ac_cv_prog_OBJDUMP" ; then
9716  set dummy objdump
9717  if test $build = $host ; then
9718    OBJDUMP="$2"
9719  else
9720    OBJDUMP="${ncn_tool_prefix}$2"
9721  fi
9722fi
9723
9724
9725
9726if test -n "$READELF"; then
9727  ac_cv_prog_READELF=$READELF
9728elif test -n "$ac_cv_prog_READELF"; then
9729  READELF=$ac_cv_prog_READELF
9730fi
9731
9732if test -n "$ac_cv_prog_READELF"; then
9733  for ncn_progname in readelf; do
9734    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9735set dummy ${ncn_progname}; ac_word=$2
9736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9737$as_echo_n "checking for $ac_word... " >&6; }
9738if test "${ac_cv_prog_READELF+set}" = set; then :
9739  $as_echo_n "(cached) " >&6
9740else
9741  if test -n "$READELF"; then
9742  ac_cv_prog_READELF="$READELF" # Let the user override the test.
9743else
9744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745for as_dir in $PATH
9746do
9747  IFS=$as_save_IFS
9748  test -z "$as_dir" && as_dir=.
9749    for ac_exec_ext in '' $ac_executable_extensions; do
9750  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9751    ac_cv_prog_READELF="${ncn_progname}"
9752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9753    break 2
9754  fi
9755done
9756  done
9757IFS=$as_save_IFS
9758
9759fi
9760fi
9761READELF=$ac_cv_prog_READELF
9762if test -n "$READELF"; then
9763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9764$as_echo "$READELF" >&6; }
9765else
9766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767$as_echo "no" >&6; }
9768fi
9769
9770
9771  done
9772fi
9773
9774for ncn_progname in readelf; do
9775  if test -n "$ncn_tool_prefix"; then
9776    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9777set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9779$as_echo_n "checking for $ac_word... " >&6; }
9780if test "${ac_cv_prog_READELF+set}" = set; then :
9781  $as_echo_n "(cached) " >&6
9782else
9783  if test -n "$READELF"; then
9784  ac_cv_prog_READELF="$READELF" # Let the user override the test.
9785else
9786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787for as_dir in $PATH
9788do
9789  IFS=$as_save_IFS
9790  test -z "$as_dir" && as_dir=.
9791    for ac_exec_ext in '' $ac_executable_extensions; do
9792  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9793    ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9795    break 2
9796  fi
9797done
9798  done
9799IFS=$as_save_IFS
9800
9801fi
9802fi
9803READELF=$ac_cv_prog_READELF
9804if test -n "$READELF"; then
9805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9806$as_echo "$READELF" >&6; }
9807else
9808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9809$as_echo "no" >&6; }
9810fi
9811
9812
9813  fi
9814  if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9815    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9816set dummy ${ncn_progname}; ac_word=$2
9817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9818$as_echo_n "checking for $ac_word... " >&6; }
9819if test "${ac_cv_prog_READELF+set}" = set; then :
9820  $as_echo_n "(cached) " >&6
9821else
9822  if test -n "$READELF"; then
9823  ac_cv_prog_READELF="$READELF" # Let the user override the test.
9824else
9825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826for as_dir in $PATH
9827do
9828  IFS=$as_save_IFS
9829  test -z "$as_dir" && as_dir=.
9830    for ac_exec_ext in '' $ac_executable_extensions; do
9831  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9832    ac_cv_prog_READELF="${ncn_progname}"
9833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9834    break 2
9835  fi
9836done
9837  done
9838IFS=$as_save_IFS
9839
9840fi
9841fi
9842READELF=$ac_cv_prog_READELF
9843if test -n "$READELF"; then
9844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9845$as_echo "$READELF" >&6; }
9846else
9847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848$as_echo "no" >&6; }
9849fi
9850
9851
9852  fi
9853  test -n "$ac_cv_prog_READELF" && break
9854done
9855
9856if test -z "$ac_cv_prog_READELF" ; then
9857  set dummy readelf
9858  if test $build = $host ; then
9859    READELF="$2"
9860  else
9861    READELF="${ncn_tool_prefix}$2"
9862  fi
9863fi
9864
9865
9866
9867
9868
9869
9870# Target tools.
9871
9872# Check whether --with-build-time-tools was given.
9873if test "${with_build_time_tools+set}" = set; then :
9874  withval=$with_build_time_tools; case x"$withval" in
9875     x/*) ;;
9876     *)
9877       with_build_time_tools=
9878       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9879$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9880       ;;
9881   esac
9882else
9883  with_build_time_tools=
9884fi
9885
9886
9887
9888
9889if test -n "$CC_FOR_TARGET"; then
9890  ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9891elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9892  CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9893fi
9894
9895if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9896  for ncn_progname in cc gcc; do
9897    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9898set dummy ${ncn_progname}; ac_word=$2
9899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9900$as_echo_n "checking for $ac_word... " >&6; }
9901if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9902  $as_echo_n "(cached) " >&6
9903else
9904  if test -n "$CC_FOR_TARGET"; then
9905  ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9906else
9907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9908for as_dir in $PATH
9909do
9910  IFS=$as_save_IFS
9911  test -z "$as_dir" && as_dir=.
9912    for ac_exec_ext in '' $ac_executable_extensions; do
9913  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9914    ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9916    break 2
9917  fi
9918done
9919  done
9920IFS=$as_save_IFS
9921
9922fi
9923fi
9924CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9925if test -n "$CC_FOR_TARGET"; then
9926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9927$as_echo "$CC_FOR_TARGET" >&6; }
9928else
9929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930$as_echo "no" >&6; }
9931fi
9932
9933
9934  done
9935fi
9936
9937if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9938  for ncn_progname in cc gcc; do
9939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9940$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9941    if test -x $with_build_time_tools/${ncn_progname}; then
9942      ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9943      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9944$as_echo "yes" >&6; }
9945      break
9946    else
9947      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948$as_echo "no" >&6; }
9949    fi
9950  done
9951fi
9952
9953if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9954  for ncn_progname in cc gcc; do
9955    if test -n "$ncn_target_tool_prefix"; then
9956      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9957set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9959$as_echo_n "checking for $ac_word... " >&6; }
9960if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9961  $as_echo_n "(cached) " >&6
9962else
9963  if test -n "$CC_FOR_TARGET"; then
9964  ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9965else
9966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967for as_dir in $PATH
9968do
9969  IFS=$as_save_IFS
9970  test -z "$as_dir" && as_dir=.
9971    for ac_exec_ext in '' $ac_executable_extensions; do
9972  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9973    ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9975    break 2
9976  fi
9977done
9978  done
9979IFS=$as_save_IFS
9980
9981fi
9982fi
9983CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9984if test -n "$CC_FOR_TARGET"; then
9985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9986$as_echo "$CC_FOR_TARGET" >&6; }
9987else
9988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989$as_echo "no" >&6; }
9990fi
9991
9992
9993    fi
9994    if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9995      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9996set dummy ${ncn_progname}; ac_word=$2
9997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9998$as_echo_n "checking for $ac_word... " >&6; }
9999if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10000  $as_echo_n "(cached) " >&6
10001else
10002  if test -n "$CC_FOR_TARGET"; then
10003  ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10004else
10005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006for as_dir in $PATH
10007do
10008  IFS=$as_save_IFS
10009  test -z "$as_dir" && as_dir=.
10010    for ac_exec_ext in '' $ac_executable_extensions; do
10011  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10012    ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10013    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10014    break 2
10015  fi
10016done
10017  done
10018IFS=$as_save_IFS
10019
10020fi
10021fi
10022CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10023if test -n "$CC_FOR_TARGET"; then
10024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10025$as_echo "$CC_FOR_TARGET" >&6; }
10026else
10027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10028$as_echo "no" >&6; }
10029fi
10030
10031
10032    fi
10033    test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10034  done
10035fi
10036
10037if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10038  set dummy cc gcc
10039  if test $build = $target ; then
10040    CC_FOR_TARGET="$2"
10041  else
10042    CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10043  fi
10044else
10045  CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10046fi
10047
10048
10049
10050if test -n "$CXX_FOR_TARGET"; then
10051  ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10052elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10053  CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10054fi
10055
10056if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10057  for ncn_progname in c++ g++ cxx gxx; do
10058    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10059set dummy ${ncn_progname}; ac_word=$2
10060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10061$as_echo_n "checking for $ac_word... " >&6; }
10062if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10063  $as_echo_n "(cached) " >&6
10064else
10065  if test -n "$CXX_FOR_TARGET"; then
10066  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10067else
10068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10069for as_dir in $PATH
10070do
10071  IFS=$as_save_IFS
10072  test -z "$as_dir" && as_dir=.
10073    for ac_exec_ext in '' $ac_executable_extensions; do
10074  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10075    ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10077    break 2
10078  fi
10079done
10080  done
10081IFS=$as_save_IFS
10082
10083fi
10084fi
10085CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10086if test -n "$CXX_FOR_TARGET"; then
10087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10088$as_echo "$CXX_FOR_TARGET" >&6; }
10089else
10090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10091$as_echo "no" >&6; }
10092fi
10093
10094
10095  done
10096fi
10097
10098if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10099  for ncn_progname in c++ g++ cxx gxx; do
10100    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10101$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10102    if test -x $with_build_time_tools/${ncn_progname}; then
10103      ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10104      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10105$as_echo "yes" >&6; }
10106      break
10107    else
10108      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109$as_echo "no" >&6; }
10110    fi
10111  done
10112fi
10113
10114if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10115  for ncn_progname in c++ g++ cxx gxx; do
10116    if test -n "$ncn_target_tool_prefix"; then
10117      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10118set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10120$as_echo_n "checking for $ac_word... " >&6; }
10121if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10122  $as_echo_n "(cached) " >&6
10123else
10124  if test -n "$CXX_FOR_TARGET"; then
10125  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10126else
10127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10128for as_dir in $PATH
10129do
10130  IFS=$as_save_IFS
10131  test -z "$as_dir" && as_dir=.
10132    for ac_exec_ext in '' $ac_executable_extensions; do
10133  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10134    ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10136    break 2
10137  fi
10138done
10139  done
10140IFS=$as_save_IFS
10141
10142fi
10143fi
10144CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10145if test -n "$CXX_FOR_TARGET"; then
10146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10147$as_echo "$CXX_FOR_TARGET" >&6; }
10148else
10149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10150$as_echo "no" >&6; }
10151fi
10152
10153
10154    fi
10155    if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10156      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10157set dummy ${ncn_progname}; ac_word=$2
10158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10159$as_echo_n "checking for $ac_word... " >&6; }
10160if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10161  $as_echo_n "(cached) " >&6
10162else
10163  if test -n "$CXX_FOR_TARGET"; then
10164  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10165else
10166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167for as_dir in $PATH
10168do
10169  IFS=$as_save_IFS
10170  test -z "$as_dir" && as_dir=.
10171    for ac_exec_ext in '' $ac_executable_extensions; do
10172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10173    ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10175    break 2
10176  fi
10177done
10178  done
10179IFS=$as_save_IFS
10180
10181fi
10182fi
10183CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10184if test -n "$CXX_FOR_TARGET"; then
10185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10186$as_echo "$CXX_FOR_TARGET" >&6; }
10187else
10188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189$as_echo "no" >&6; }
10190fi
10191
10192
10193    fi
10194    test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10195  done
10196fi
10197
10198if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10199  set dummy c++ g++ cxx gxx
10200  if test $build = $target ; then
10201    CXX_FOR_TARGET="$2"
10202  else
10203    CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10204  fi
10205else
10206  CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10207fi
10208
10209
10210
10211if test -n "$GCC_FOR_TARGET"; then
10212  ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10213elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10214  GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10215fi
10216
10217if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10218  for ncn_progname in gcc; do
10219    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10220set dummy ${ncn_progname}; ac_word=$2
10221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10222$as_echo_n "checking for $ac_word... " >&6; }
10223if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10224  $as_echo_n "(cached) " >&6
10225else
10226  if test -n "$GCC_FOR_TARGET"; then
10227  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10228else
10229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230for as_dir in $PATH
10231do
10232  IFS=$as_save_IFS
10233  test -z "$as_dir" && as_dir=.
10234    for ac_exec_ext in '' $ac_executable_extensions; do
10235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10236    ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10238    break 2
10239  fi
10240done
10241  done
10242IFS=$as_save_IFS
10243
10244fi
10245fi
10246GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10247if test -n "$GCC_FOR_TARGET"; then
10248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10249$as_echo "$GCC_FOR_TARGET" >&6; }
10250else
10251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10252$as_echo "no" >&6; }
10253fi
10254
10255
10256  done
10257fi
10258
10259if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10260  for ncn_progname in gcc; do
10261    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10262$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10263    if test -x $with_build_time_tools/${ncn_progname}; then
10264      ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10265      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10266$as_echo "yes" >&6; }
10267      break
10268    else
10269      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270$as_echo "no" >&6; }
10271    fi
10272  done
10273fi
10274
10275if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10276  for ncn_progname in gcc; do
10277    if test -n "$ncn_target_tool_prefix"; then
10278      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10279set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10281$as_echo_n "checking for $ac_word... " >&6; }
10282if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10283  $as_echo_n "(cached) " >&6
10284else
10285  if test -n "$GCC_FOR_TARGET"; then
10286  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10287else
10288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289for as_dir in $PATH
10290do
10291  IFS=$as_save_IFS
10292  test -z "$as_dir" && as_dir=.
10293    for ac_exec_ext in '' $ac_executable_extensions; do
10294  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10295    ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10297    break 2
10298  fi
10299done
10300  done
10301IFS=$as_save_IFS
10302
10303fi
10304fi
10305GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10306if test -n "$GCC_FOR_TARGET"; then
10307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10308$as_echo "$GCC_FOR_TARGET" >&6; }
10309else
10310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10311$as_echo "no" >&6; }
10312fi
10313
10314
10315    fi
10316    if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10317      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10318set dummy ${ncn_progname}; ac_word=$2
10319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10320$as_echo_n "checking for $ac_word... " >&6; }
10321if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10322  $as_echo_n "(cached) " >&6
10323else
10324  if test -n "$GCC_FOR_TARGET"; then
10325  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10326else
10327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10328for as_dir in $PATH
10329do
10330  IFS=$as_save_IFS
10331  test -z "$as_dir" && as_dir=.
10332    for ac_exec_ext in '' $ac_executable_extensions; do
10333  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10334    ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10336    break 2
10337  fi
10338done
10339  done
10340IFS=$as_save_IFS
10341
10342fi
10343fi
10344GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10345if test -n "$GCC_FOR_TARGET"; then
10346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10347$as_echo "$GCC_FOR_TARGET" >&6; }
10348else
10349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350$as_echo "no" >&6; }
10351fi
10352
10353
10354    fi
10355    test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10356  done
10357fi
10358
10359if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10360  GCC_FOR_TARGET="${CC_FOR_TARGET}"
10361else
10362  GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10363fi
10364
10365
10366
10367if test -n "$GCJ_FOR_TARGET"; then
10368  ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10369elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10370  GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10371fi
10372
10373if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10374  for ncn_progname in gcj; do
10375    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10376set dummy ${ncn_progname}; ac_word=$2
10377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10378$as_echo_n "checking for $ac_word... " >&6; }
10379if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10380  $as_echo_n "(cached) " >&6
10381else
10382  if test -n "$GCJ_FOR_TARGET"; then
10383  ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10384else
10385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386for as_dir in $PATH
10387do
10388  IFS=$as_save_IFS
10389  test -z "$as_dir" && as_dir=.
10390    for ac_exec_ext in '' $ac_executable_extensions; do
10391  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10392    ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10394    break 2
10395  fi
10396done
10397  done
10398IFS=$as_save_IFS
10399
10400fi
10401fi
10402GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10403if test -n "$GCJ_FOR_TARGET"; then
10404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10405$as_echo "$GCJ_FOR_TARGET" >&6; }
10406else
10407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408$as_echo "no" >&6; }
10409fi
10410
10411
10412  done
10413fi
10414
10415if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10416  for ncn_progname in gcj; do
10417    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10418$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10419    if test -x $with_build_time_tools/${ncn_progname}; then
10420      ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10421      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10422$as_echo "yes" >&6; }
10423      break
10424    else
10425      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10426$as_echo "no" >&6; }
10427    fi
10428  done
10429fi
10430
10431if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10432  for ncn_progname in gcj; do
10433    if test -n "$ncn_target_tool_prefix"; then
10434      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10435set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10437$as_echo_n "checking for $ac_word... " >&6; }
10438if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10439  $as_echo_n "(cached) " >&6
10440else
10441  if test -n "$GCJ_FOR_TARGET"; then
10442  ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10443else
10444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10445for as_dir in $PATH
10446do
10447  IFS=$as_save_IFS
10448  test -z "$as_dir" && as_dir=.
10449    for ac_exec_ext in '' $ac_executable_extensions; do
10450  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10451    ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10453    break 2
10454  fi
10455done
10456  done
10457IFS=$as_save_IFS
10458
10459fi
10460fi
10461GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10462if test -n "$GCJ_FOR_TARGET"; then
10463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10464$as_echo "$GCJ_FOR_TARGET" >&6; }
10465else
10466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467$as_echo "no" >&6; }
10468fi
10469
10470
10471    fi
10472    if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10473      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10474set dummy ${ncn_progname}; ac_word=$2
10475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10476$as_echo_n "checking for $ac_word... " >&6; }
10477if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10478  $as_echo_n "(cached) " >&6
10479else
10480  if test -n "$GCJ_FOR_TARGET"; then
10481  ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10482else
10483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484for as_dir in $PATH
10485do
10486  IFS=$as_save_IFS
10487  test -z "$as_dir" && as_dir=.
10488    for ac_exec_ext in '' $ac_executable_extensions; do
10489  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10490    ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10492    break 2
10493  fi
10494done
10495  done
10496IFS=$as_save_IFS
10497
10498fi
10499fi
10500GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10501if test -n "$GCJ_FOR_TARGET"; then
10502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10503$as_echo "$GCJ_FOR_TARGET" >&6; }
10504else
10505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506$as_echo "no" >&6; }
10507fi
10508
10509
10510    fi
10511    test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10512  done
10513fi
10514
10515if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10516  set dummy gcj
10517  if test $build = $target ; then
10518    GCJ_FOR_TARGET="$2"
10519  else
10520    GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10521  fi
10522else
10523  GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10524fi
10525
10526
10527
10528if test -n "$GFORTRAN_FOR_TARGET"; then
10529  ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10530elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10531  GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10532fi
10533
10534if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10535  for ncn_progname in gfortran; do
10536    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10537set dummy ${ncn_progname}; ac_word=$2
10538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10539$as_echo_n "checking for $ac_word... " >&6; }
10540if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10541  $as_echo_n "(cached) " >&6
10542else
10543  if test -n "$GFORTRAN_FOR_TARGET"; then
10544  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10545else
10546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547for as_dir in $PATH
10548do
10549  IFS=$as_save_IFS
10550  test -z "$as_dir" && as_dir=.
10551    for ac_exec_ext in '' $ac_executable_extensions; do
10552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10553    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10555    break 2
10556  fi
10557done
10558  done
10559IFS=$as_save_IFS
10560
10561fi
10562fi
10563GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10564if test -n "$GFORTRAN_FOR_TARGET"; then
10565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10566$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10567else
10568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569$as_echo "no" >&6; }
10570fi
10571
10572
10573  done
10574fi
10575
10576if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10577  for ncn_progname in gfortran; do
10578    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10579$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10580    if test -x $with_build_time_tools/${ncn_progname}; then
10581      ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10582      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10583$as_echo "yes" >&6; }
10584      break
10585    else
10586      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10587$as_echo "no" >&6; }
10588    fi
10589  done
10590fi
10591
10592if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10593  for ncn_progname in gfortran; do
10594    if test -n "$ncn_target_tool_prefix"; then
10595      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10596set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10598$as_echo_n "checking for $ac_word... " >&6; }
10599if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10600  $as_echo_n "(cached) " >&6
10601else
10602  if test -n "$GFORTRAN_FOR_TARGET"; then
10603  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10604else
10605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606for as_dir in $PATH
10607do
10608  IFS=$as_save_IFS
10609  test -z "$as_dir" && as_dir=.
10610    for ac_exec_ext in '' $ac_executable_extensions; do
10611  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10612    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10614    break 2
10615  fi
10616done
10617  done
10618IFS=$as_save_IFS
10619
10620fi
10621fi
10622GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10623if test -n "$GFORTRAN_FOR_TARGET"; then
10624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10625$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10626else
10627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628$as_echo "no" >&6; }
10629fi
10630
10631
10632    fi
10633    if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10634      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10635set dummy ${ncn_progname}; ac_word=$2
10636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10637$as_echo_n "checking for $ac_word... " >&6; }
10638if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10639  $as_echo_n "(cached) " >&6
10640else
10641  if test -n "$GFORTRAN_FOR_TARGET"; then
10642  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10643else
10644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10645for as_dir in $PATH
10646do
10647  IFS=$as_save_IFS
10648  test -z "$as_dir" && as_dir=.
10649    for ac_exec_ext in '' $ac_executable_extensions; do
10650  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10651    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10653    break 2
10654  fi
10655done
10656  done
10657IFS=$as_save_IFS
10658
10659fi
10660fi
10661GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10662if test -n "$GFORTRAN_FOR_TARGET"; then
10663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10664$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10665else
10666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667$as_echo "no" >&6; }
10668fi
10669
10670
10671    fi
10672    test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10673  done
10674fi
10675
10676if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10677  set dummy gfortran
10678  if test $build = $target ; then
10679    GFORTRAN_FOR_TARGET="$2"
10680  else
10681    GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10682  fi
10683else
10684  GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10685fi
10686
10687
10688
10689if test -n "$GOC_FOR_TARGET"; then
10690  ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10691elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10692  GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10693fi
10694
10695if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10696  for ncn_progname in gccgo; do
10697    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10698set dummy ${ncn_progname}; ac_word=$2
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10700$as_echo_n "checking for $ac_word... " >&6; }
10701if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10702  $as_echo_n "(cached) " >&6
10703else
10704  if test -n "$GOC_FOR_TARGET"; then
10705  ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10706else
10707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708for as_dir in $PATH
10709do
10710  IFS=$as_save_IFS
10711  test -z "$as_dir" && as_dir=.
10712    for ac_exec_ext in '' $ac_executable_extensions; do
10713  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10714    ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10716    break 2
10717  fi
10718done
10719  done
10720IFS=$as_save_IFS
10721
10722fi
10723fi
10724GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10725if test -n "$GOC_FOR_TARGET"; then
10726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10727$as_echo "$GOC_FOR_TARGET" >&6; }
10728else
10729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730$as_echo "no" >&6; }
10731fi
10732
10733
10734  done
10735fi
10736
10737if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10738  for ncn_progname in gccgo; do
10739    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10740$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10741    if test -x $with_build_time_tools/${ncn_progname}; then
10742      ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10743      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10744$as_echo "yes" >&6; }
10745      break
10746    else
10747      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748$as_echo "no" >&6; }
10749    fi
10750  done
10751fi
10752
10753if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10754  for ncn_progname in gccgo; do
10755    if test -n "$ncn_target_tool_prefix"; then
10756      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10757set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10759$as_echo_n "checking for $ac_word... " >&6; }
10760if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10761  $as_echo_n "(cached) " >&6
10762else
10763  if test -n "$GOC_FOR_TARGET"; then
10764  ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10765else
10766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10767for as_dir in $PATH
10768do
10769  IFS=$as_save_IFS
10770  test -z "$as_dir" && as_dir=.
10771    for ac_exec_ext in '' $ac_executable_extensions; do
10772  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10773    ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10775    break 2
10776  fi
10777done
10778  done
10779IFS=$as_save_IFS
10780
10781fi
10782fi
10783GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10784if test -n "$GOC_FOR_TARGET"; then
10785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10786$as_echo "$GOC_FOR_TARGET" >&6; }
10787else
10788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789$as_echo "no" >&6; }
10790fi
10791
10792
10793    fi
10794    if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10795      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10796set dummy ${ncn_progname}; ac_word=$2
10797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10798$as_echo_n "checking for $ac_word... " >&6; }
10799if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10800  $as_echo_n "(cached) " >&6
10801else
10802  if test -n "$GOC_FOR_TARGET"; then
10803  ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10804else
10805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10806for as_dir in $PATH
10807do
10808  IFS=$as_save_IFS
10809  test -z "$as_dir" && as_dir=.
10810    for ac_exec_ext in '' $ac_executable_extensions; do
10811  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10812    ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10813    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10814    break 2
10815  fi
10816done
10817  done
10818IFS=$as_save_IFS
10819
10820fi
10821fi
10822GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10823if test -n "$GOC_FOR_TARGET"; then
10824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10825$as_echo "$GOC_FOR_TARGET" >&6; }
10826else
10827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828$as_echo "no" >&6; }
10829fi
10830
10831
10832    fi
10833    test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10834  done
10835fi
10836
10837if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10838  set dummy gccgo
10839  if test $build = $target ; then
10840    GOC_FOR_TARGET="$2"
10841  else
10842    GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10843  fi
10844else
10845  GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10846fi
10847
10848
10849
10850cat > conftest.c << \EOF
10851#ifdef __GNUC__
10852  gcc_yay;
10853#endif
10854EOF
10855if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10856  have_gcc_for_target=yes
10857else
10858  GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10859  have_gcc_for_target=no
10860fi
10861rm conftest.c
10862
10863
10864
10865
10866if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10867  if test -n "$with_build_time_tools"; then
10868    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10869$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10870    if test -x $with_build_time_tools/ar; then
10871      AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10872      ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10873      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10874$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10875    else
10876      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877$as_echo "no" >&6; }
10878    fi
10879  elif test $build != $host && test $have_gcc_for_target = yes; then
10880    AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10881    test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10882    test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10883  fi
10884fi
10885if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10886  # Extract the first word of "ar", so it can be a program name with args.
10887set dummy ar; ac_word=$2
10888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10889$as_echo_n "checking for $ac_word... " >&6; }
10890if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10891  $as_echo_n "(cached) " >&6
10892else
10893  case $AR_FOR_TARGET in
10894  [\\/]* | ?:[\\/]*)
10895  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10896  ;;
10897  *)
10898  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899for as_dir in $gcc_cv_tool_dirs
10900do
10901  IFS=$as_save_IFS
10902  test -z "$as_dir" && as_dir=.
10903    for ac_exec_ext in '' $ac_executable_extensions; do
10904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10905    ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10907    break 2
10908  fi
10909done
10910  done
10911IFS=$as_save_IFS
10912
10913  ;;
10914esac
10915fi
10916AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10917if test -n "$AR_FOR_TARGET"; then
10918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10919$as_echo "$AR_FOR_TARGET" >&6; }
10920else
10921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10922$as_echo "no" >&6; }
10923fi
10924
10925
10926fi
10927if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10928
10929
10930if test -n "$AR_FOR_TARGET"; then
10931  ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10932elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10933  AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10934fi
10935
10936if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10937  for ncn_progname in ar; do
10938    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10939set dummy ${ncn_progname}; ac_word=$2
10940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10941$as_echo_n "checking for $ac_word... " >&6; }
10942if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10943  $as_echo_n "(cached) " >&6
10944else
10945  if test -n "$AR_FOR_TARGET"; then
10946  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10947else
10948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10949for as_dir in $PATH
10950do
10951  IFS=$as_save_IFS
10952  test -z "$as_dir" && as_dir=.
10953    for ac_exec_ext in '' $ac_executable_extensions; do
10954  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10955    ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10957    break 2
10958  fi
10959done
10960  done
10961IFS=$as_save_IFS
10962
10963fi
10964fi
10965AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10966if test -n "$AR_FOR_TARGET"; then
10967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10968$as_echo "$AR_FOR_TARGET" >&6; }
10969else
10970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971$as_echo "no" >&6; }
10972fi
10973
10974
10975  done
10976fi
10977
10978if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10979  for ncn_progname in ar; do
10980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10981$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10982    if test -x $with_build_time_tools/${ncn_progname}; then
10983      ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10984      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10985$as_echo "yes" >&6; }
10986      break
10987    else
10988      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10989$as_echo "no" >&6; }
10990    fi
10991  done
10992fi
10993
10994if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10995  for ncn_progname in ar; do
10996    if test -n "$ncn_target_tool_prefix"; then
10997      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10998set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11000$as_echo_n "checking for $ac_word... " >&6; }
11001if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11002  $as_echo_n "(cached) " >&6
11003else
11004  if test -n "$AR_FOR_TARGET"; then
11005  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11006else
11007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11008for as_dir in $PATH
11009do
11010  IFS=$as_save_IFS
11011  test -z "$as_dir" && as_dir=.
11012    for ac_exec_ext in '' $ac_executable_extensions; do
11013  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11014    ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11016    break 2
11017  fi
11018done
11019  done
11020IFS=$as_save_IFS
11021
11022fi
11023fi
11024AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11025if test -n "$AR_FOR_TARGET"; then
11026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11027$as_echo "$AR_FOR_TARGET" >&6; }
11028else
11029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030$as_echo "no" >&6; }
11031fi
11032
11033
11034    fi
11035    if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
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 test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11041  $as_echo_n "(cached) " >&6
11042else
11043  if test -n "$AR_FOR_TARGET"; then
11044  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11053    ac_cv_prog_AR_FOR_TARGET="${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
11063AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11064if test -n "$AR_FOR_TARGET"; then
11065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11066$as_echo "$AR_FOR_TARGET" >&6; }
11067else
11068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11069$as_echo "no" >&6; }
11070fi
11071
11072
11073    fi
11074    test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11075  done
11076fi
11077
11078if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11079  set dummy ar
11080  if test $build = $target ; then
11081    AR_FOR_TARGET="$2"
11082  else
11083    AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11084  fi
11085else
11086  AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11087fi
11088
11089else
11090  AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11091fi
11092
11093
11094
11095
11096if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11097  if test -n "$with_build_time_tools"; then
11098    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11099$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11100    if test -x $with_build_time_tools/as; then
11101      AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11102      ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11103      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11104$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11105    else
11106      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11107$as_echo "no" >&6; }
11108    fi
11109  elif test $build != $host && test $have_gcc_for_target = yes; then
11110    AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11111    test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11112    test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11113  fi
11114fi
11115if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11116  # Extract the first word of "as", so it can be a program name with args.
11117set dummy as; ac_word=$2
11118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11119$as_echo_n "checking for $ac_word... " >&6; }
11120if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11121  $as_echo_n "(cached) " >&6
11122else
11123  case $AS_FOR_TARGET in
11124  [\\/]* | ?:[\\/]*)
11125  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11126  ;;
11127  *)
11128  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129for as_dir in $gcc_cv_tool_dirs
11130do
11131  IFS=$as_save_IFS
11132  test -z "$as_dir" && as_dir=.
11133    for ac_exec_ext in '' $ac_executable_extensions; do
11134  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11135    ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11137    break 2
11138  fi
11139done
11140  done
11141IFS=$as_save_IFS
11142
11143  ;;
11144esac
11145fi
11146AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11147if test -n "$AS_FOR_TARGET"; then
11148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11149$as_echo "$AS_FOR_TARGET" >&6; }
11150else
11151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152$as_echo "no" >&6; }
11153fi
11154
11155
11156fi
11157if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11158
11159
11160if test -n "$AS_FOR_TARGET"; then
11161  ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11162elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11163  AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11164fi
11165
11166if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11167  for ncn_progname in as; do
11168    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11169set dummy ${ncn_progname}; ac_word=$2
11170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11171$as_echo_n "checking for $ac_word... " >&6; }
11172if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11173  $as_echo_n "(cached) " >&6
11174else
11175  if test -n "$AS_FOR_TARGET"; then
11176  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11177else
11178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11179for as_dir in $PATH
11180do
11181  IFS=$as_save_IFS
11182  test -z "$as_dir" && as_dir=.
11183    for ac_exec_ext in '' $ac_executable_extensions; do
11184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11185    ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11187    break 2
11188  fi
11189done
11190  done
11191IFS=$as_save_IFS
11192
11193fi
11194fi
11195AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11196if test -n "$AS_FOR_TARGET"; then
11197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11198$as_echo "$AS_FOR_TARGET" >&6; }
11199else
11200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201$as_echo "no" >&6; }
11202fi
11203
11204
11205  done
11206fi
11207
11208if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11209  for ncn_progname in as; do
11210    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11211$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11212    if test -x $with_build_time_tools/${ncn_progname}; then
11213      ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11214      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11215$as_echo "yes" >&6; }
11216      break
11217    else
11218      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219$as_echo "no" >&6; }
11220    fi
11221  done
11222fi
11223
11224if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11225  for ncn_progname in as; do
11226    if test -n "$ncn_target_tool_prefix"; then
11227      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11228set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11230$as_echo_n "checking for $ac_word... " >&6; }
11231if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11232  $as_echo_n "(cached) " >&6
11233else
11234  if test -n "$AS_FOR_TARGET"; then
11235  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11236else
11237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11238for as_dir in $PATH
11239do
11240  IFS=$as_save_IFS
11241  test -z "$as_dir" && as_dir=.
11242    for ac_exec_ext in '' $ac_executable_extensions; do
11243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11244    ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11246    break 2
11247  fi
11248done
11249  done
11250IFS=$as_save_IFS
11251
11252fi
11253fi
11254AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11255if test -n "$AS_FOR_TARGET"; then
11256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11257$as_echo "$AS_FOR_TARGET" >&6; }
11258else
11259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11260$as_echo "no" >&6; }
11261fi
11262
11263
11264    fi
11265    if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11266      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11267set dummy ${ncn_progname}; ac_word=$2
11268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11269$as_echo_n "checking for $ac_word... " >&6; }
11270if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11271  $as_echo_n "(cached) " >&6
11272else
11273  if test -n "$AS_FOR_TARGET"; then
11274  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11275else
11276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11277for as_dir in $PATH
11278do
11279  IFS=$as_save_IFS
11280  test -z "$as_dir" && as_dir=.
11281    for ac_exec_ext in '' $ac_executable_extensions; do
11282  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11283    ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11285    break 2
11286  fi
11287done
11288  done
11289IFS=$as_save_IFS
11290
11291fi
11292fi
11293AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11294if test -n "$AS_FOR_TARGET"; then
11295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11296$as_echo "$AS_FOR_TARGET" >&6; }
11297else
11298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11299$as_echo "no" >&6; }
11300fi
11301
11302
11303    fi
11304    test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11305  done
11306fi
11307
11308if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11309  set dummy as
11310  if test $build = $target ; then
11311    AS_FOR_TARGET="$2"
11312  else
11313    AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11314  fi
11315else
11316  AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11317fi
11318
11319else
11320  AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11321fi
11322
11323
11324
11325
11326if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11327  if test -n "$with_build_time_tools"; then
11328    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11329$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11330    if test -x $with_build_time_tools/dlltool; then
11331      DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11332      ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11333      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11334$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11335    else
11336      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337$as_echo "no" >&6; }
11338    fi
11339  elif test $build != $host && test $have_gcc_for_target = yes; then
11340    DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11341    test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11342    test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11343  fi
11344fi
11345if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11346  # Extract the first word of "dlltool", so it can be a program name with args.
11347set dummy dlltool; ac_word=$2
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11349$as_echo_n "checking for $ac_word... " >&6; }
11350if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11351  $as_echo_n "(cached) " >&6
11352else
11353  case $DLLTOOL_FOR_TARGET in
11354  [\\/]* | ?:[\\/]*)
11355  ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11356  ;;
11357  *)
11358  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11359for as_dir in $gcc_cv_tool_dirs
11360do
11361  IFS=$as_save_IFS
11362  test -z "$as_dir" && as_dir=.
11363    for ac_exec_ext in '' $ac_executable_extensions; do
11364  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11365    ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11367    break 2
11368  fi
11369done
11370  done
11371IFS=$as_save_IFS
11372
11373  ;;
11374esac
11375fi
11376DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11377if test -n "$DLLTOOL_FOR_TARGET"; then
11378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11379$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11380else
11381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382$as_echo "no" >&6; }
11383fi
11384
11385
11386fi
11387if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11388
11389
11390if test -n "$DLLTOOL_FOR_TARGET"; then
11391  ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11392elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11393  DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11394fi
11395
11396if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11397  for ncn_progname in dlltool; do
11398    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11399set dummy ${ncn_progname}; ac_word=$2
11400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11401$as_echo_n "checking for $ac_word... " >&6; }
11402if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11403  $as_echo_n "(cached) " >&6
11404else
11405  if test -n "$DLLTOOL_FOR_TARGET"; then
11406  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11407else
11408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409for as_dir in $PATH
11410do
11411  IFS=$as_save_IFS
11412  test -z "$as_dir" && as_dir=.
11413    for ac_exec_ext in '' $ac_executable_extensions; do
11414  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11415    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11417    break 2
11418  fi
11419done
11420  done
11421IFS=$as_save_IFS
11422
11423fi
11424fi
11425DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11426if test -n "$DLLTOOL_FOR_TARGET"; then
11427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11428$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11429else
11430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431$as_echo "no" >&6; }
11432fi
11433
11434
11435  done
11436fi
11437
11438if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11439  for ncn_progname in dlltool; do
11440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11441$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11442    if test -x $with_build_time_tools/${ncn_progname}; then
11443      ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11444      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11445$as_echo "yes" >&6; }
11446      break
11447    else
11448      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11449$as_echo "no" >&6; }
11450    fi
11451  done
11452fi
11453
11454if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11455  for ncn_progname in dlltool; do
11456    if test -n "$ncn_target_tool_prefix"; then
11457      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11458set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11460$as_echo_n "checking for $ac_word... " >&6; }
11461if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11462  $as_echo_n "(cached) " >&6
11463else
11464  if test -n "$DLLTOOL_FOR_TARGET"; then
11465  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11466else
11467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468for as_dir in $PATH
11469do
11470  IFS=$as_save_IFS
11471  test -z "$as_dir" && as_dir=.
11472    for ac_exec_ext in '' $ac_executable_extensions; do
11473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11474    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11476    break 2
11477  fi
11478done
11479  done
11480IFS=$as_save_IFS
11481
11482fi
11483fi
11484DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11485if test -n "$DLLTOOL_FOR_TARGET"; then
11486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11487$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11488else
11489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490$as_echo "no" >&6; }
11491fi
11492
11493
11494    fi
11495    if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11496      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11497set dummy ${ncn_progname}; ac_word=$2
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499$as_echo_n "checking for $ac_word... " >&6; }
11500if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11501  $as_echo_n "(cached) " >&6
11502else
11503  if test -n "$DLLTOOL_FOR_TARGET"; then
11504  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11505else
11506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507for as_dir in $PATH
11508do
11509  IFS=$as_save_IFS
11510  test -z "$as_dir" && as_dir=.
11511    for ac_exec_ext in '' $ac_executable_extensions; do
11512  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11513    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11515    break 2
11516  fi
11517done
11518  done
11519IFS=$as_save_IFS
11520
11521fi
11522fi
11523DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11524if test -n "$DLLTOOL_FOR_TARGET"; then
11525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11526$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11527else
11528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529$as_echo "no" >&6; }
11530fi
11531
11532
11533    fi
11534    test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11535  done
11536fi
11537
11538if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11539  set dummy dlltool
11540  if test $build = $target ; then
11541    DLLTOOL_FOR_TARGET="$2"
11542  else
11543    DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11544  fi
11545else
11546  DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11547fi
11548
11549else
11550  DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11551fi
11552
11553
11554
11555
11556if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11557  if test -n "$with_build_time_tools"; then
11558    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11559$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11560    if test -x $with_build_time_tools/ld; then
11561      LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11562      ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11563      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11564$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11565    else
11566      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567$as_echo "no" >&6; }
11568    fi
11569  elif test $build != $host && test $have_gcc_for_target = yes; then
11570    LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11571    test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11572    test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11573  fi
11574fi
11575if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11576  # Extract the first word of "ld", so it can be a program name with args.
11577set dummy ld; ac_word=$2
11578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579$as_echo_n "checking for $ac_word... " >&6; }
11580if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11581  $as_echo_n "(cached) " >&6
11582else
11583  case $LD_FOR_TARGET in
11584  [\\/]* | ?:[\\/]*)
11585  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11586  ;;
11587  *)
11588  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589for as_dir in $gcc_cv_tool_dirs
11590do
11591  IFS=$as_save_IFS
11592  test -z "$as_dir" && as_dir=.
11593    for ac_exec_ext in '' $ac_executable_extensions; do
11594  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11595    ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11597    break 2
11598  fi
11599done
11600  done
11601IFS=$as_save_IFS
11602
11603  ;;
11604esac
11605fi
11606LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11607if test -n "$LD_FOR_TARGET"; then
11608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11609$as_echo "$LD_FOR_TARGET" >&6; }
11610else
11611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612$as_echo "no" >&6; }
11613fi
11614
11615
11616fi
11617if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11618
11619
11620if test -n "$LD_FOR_TARGET"; then
11621  ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11622elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11623  LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11624fi
11625
11626if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11627  for ncn_progname in ld; do
11628    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11629set dummy ${ncn_progname}; ac_word=$2
11630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11631$as_echo_n "checking for $ac_word... " >&6; }
11632if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11633  $as_echo_n "(cached) " >&6
11634else
11635  if test -n "$LD_FOR_TARGET"; then
11636  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11637else
11638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11639for as_dir in $PATH
11640do
11641  IFS=$as_save_IFS
11642  test -z "$as_dir" && as_dir=.
11643    for ac_exec_ext in '' $ac_executable_extensions; do
11644  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11645    ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11647    break 2
11648  fi
11649done
11650  done
11651IFS=$as_save_IFS
11652
11653fi
11654fi
11655LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11656if test -n "$LD_FOR_TARGET"; then
11657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11658$as_echo "$LD_FOR_TARGET" >&6; }
11659else
11660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661$as_echo "no" >&6; }
11662fi
11663
11664
11665  done
11666fi
11667
11668if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11669  for ncn_progname in ld; do
11670    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11671$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11672    if test -x $with_build_time_tools/${ncn_progname}; then
11673      ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11674      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11675$as_echo "yes" >&6; }
11676      break
11677    else
11678      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679$as_echo "no" >&6; }
11680    fi
11681  done
11682fi
11683
11684if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11685  for ncn_progname in ld; do
11686    if test -n "$ncn_target_tool_prefix"; then
11687      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11688set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11690$as_echo_n "checking for $ac_word... " >&6; }
11691if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11692  $as_echo_n "(cached) " >&6
11693else
11694  if test -n "$LD_FOR_TARGET"; then
11695  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11696else
11697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698for as_dir in $PATH
11699do
11700  IFS=$as_save_IFS
11701  test -z "$as_dir" && as_dir=.
11702    for ac_exec_ext in '' $ac_executable_extensions; do
11703  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11704    ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11706    break 2
11707  fi
11708done
11709  done
11710IFS=$as_save_IFS
11711
11712fi
11713fi
11714LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11715if test -n "$LD_FOR_TARGET"; then
11716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11717$as_echo "$LD_FOR_TARGET" >&6; }
11718else
11719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11720$as_echo "no" >&6; }
11721fi
11722
11723
11724    fi
11725    if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11726      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11727set dummy ${ncn_progname}; ac_word=$2
11728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729$as_echo_n "checking for $ac_word... " >&6; }
11730if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11731  $as_echo_n "(cached) " >&6
11732else
11733  if test -n "$LD_FOR_TARGET"; then
11734  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11735else
11736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737for as_dir in $PATH
11738do
11739  IFS=$as_save_IFS
11740  test -z "$as_dir" && as_dir=.
11741    for ac_exec_ext in '' $ac_executable_extensions; do
11742  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11743    ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11745    break 2
11746  fi
11747done
11748  done
11749IFS=$as_save_IFS
11750
11751fi
11752fi
11753LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11754if test -n "$LD_FOR_TARGET"; then
11755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11756$as_echo "$LD_FOR_TARGET" >&6; }
11757else
11758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759$as_echo "no" >&6; }
11760fi
11761
11762
11763    fi
11764    test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11765  done
11766fi
11767
11768if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11769  set dummy ld
11770  if test $build = $target ; then
11771    LD_FOR_TARGET="$2"
11772  else
11773    LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11774  fi
11775else
11776  LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11777fi
11778
11779else
11780  LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11781fi
11782
11783
11784
11785
11786if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11787  if test -n "$with_build_time_tools"; then
11788    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11789$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11790    if test -x $with_build_time_tools/lipo; then
11791      LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11792      ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11793      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11794$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11795    else
11796      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797$as_echo "no" >&6; }
11798    fi
11799  elif test $build != $host && test $have_gcc_for_target = yes; then
11800    LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11801    test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11802    test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11803  fi
11804fi
11805if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11806  # Extract the first word of "lipo", so it can be a program name with args.
11807set dummy lipo; ac_word=$2
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809$as_echo_n "checking for $ac_word... " >&6; }
11810if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11811  $as_echo_n "(cached) " >&6
11812else
11813  case $LIPO_FOR_TARGET in
11814  [\\/]* | ?:[\\/]*)
11815  ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11816  ;;
11817  *)
11818  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819for as_dir in $gcc_cv_tool_dirs
11820do
11821  IFS=$as_save_IFS
11822  test -z "$as_dir" && as_dir=.
11823    for ac_exec_ext in '' $ac_executable_extensions; do
11824  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11825    ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11827    break 2
11828  fi
11829done
11830  done
11831IFS=$as_save_IFS
11832
11833  ;;
11834esac
11835fi
11836LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11837if test -n "$LIPO_FOR_TARGET"; then
11838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11839$as_echo "$LIPO_FOR_TARGET" >&6; }
11840else
11841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842$as_echo "no" >&6; }
11843fi
11844
11845
11846fi
11847if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11848
11849
11850if test -n "$LIPO_FOR_TARGET"; then
11851  ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11852elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11853  LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11854fi
11855
11856if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11857  for ncn_progname in lipo; do
11858    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11859set dummy ${ncn_progname}; ac_word=$2
11860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861$as_echo_n "checking for $ac_word... " >&6; }
11862if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11863  $as_echo_n "(cached) " >&6
11864else
11865  if test -n "$LIPO_FOR_TARGET"; then
11866  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11867else
11868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869for as_dir in $PATH
11870do
11871  IFS=$as_save_IFS
11872  test -z "$as_dir" && as_dir=.
11873    for ac_exec_ext in '' $ac_executable_extensions; do
11874  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11875    ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11877    break 2
11878  fi
11879done
11880  done
11881IFS=$as_save_IFS
11882
11883fi
11884fi
11885LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11886if test -n "$LIPO_FOR_TARGET"; then
11887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11888$as_echo "$LIPO_FOR_TARGET" >&6; }
11889else
11890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891$as_echo "no" >&6; }
11892fi
11893
11894
11895  done
11896fi
11897
11898if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11899  for ncn_progname in lipo; do
11900    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11901$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11902    if test -x $with_build_time_tools/${ncn_progname}; then
11903      ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11904      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11905$as_echo "yes" >&6; }
11906      break
11907    else
11908      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909$as_echo "no" >&6; }
11910    fi
11911  done
11912fi
11913
11914if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11915  for ncn_progname in lipo; do
11916    if test -n "$ncn_target_tool_prefix"; then
11917      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11918set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11920$as_echo_n "checking for $ac_word... " >&6; }
11921if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11922  $as_echo_n "(cached) " >&6
11923else
11924  if test -n "$LIPO_FOR_TARGET"; then
11925  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11926else
11927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928for as_dir in $PATH
11929do
11930  IFS=$as_save_IFS
11931  test -z "$as_dir" && as_dir=.
11932    for ac_exec_ext in '' $ac_executable_extensions; do
11933  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11934    ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11936    break 2
11937  fi
11938done
11939  done
11940IFS=$as_save_IFS
11941
11942fi
11943fi
11944LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11945if test -n "$LIPO_FOR_TARGET"; then
11946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11947$as_echo "$LIPO_FOR_TARGET" >&6; }
11948else
11949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950$as_echo "no" >&6; }
11951fi
11952
11953
11954    fi
11955    if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11956      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11957set dummy ${ncn_progname}; ac_word=$2
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959$as_echo_n "checking for $ac_word... " >&6; }
11960if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11961  $as_echo_n "(cached) " >&6
11962else
11963  if test -n "$LIPO_FOR_TARGET"; then
11964  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11965else
11966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967for as_dir in $PATH
11968do
11969  IFS=$as_save_IFS
11970  test -z "$as_dir" && as_dir=.
11971    for ac_exec_ext in '' $ac_executable_extensions; do
11972  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11973    ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11975    break 2
11976  fi
11977done
11978  done
11979IFS=$as_save_IFS
11980
11981fi
11982fi
11983LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11984if test -n "$LIPO_FOR_TARGET"; then
11985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11986$as_echo "$LIPO_FOR_TARGET" >&6; }
11987else
11988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989$as_echo "no" >&6; }
11990fi
11991
11992
11993    fi
11994    test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11995  done
11996fi
11997
11998if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11999  set dummy lipo
12000  if test $build = $target ; then
12001    LIPO_FOR_TARGET="$2"
12002  else
12003    LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12004  fi
12005else
12006  LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12007fi
12008
12009else
12010  LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12011fi
12012
12013
12014
12015
12016if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12017  if test -n "$with_build_time_tools"; then
12018    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12019$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12020    if test -x $with_build_time_tools/nm; then
12021      NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12022      ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12023      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12024$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12025    else
12026      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027$as_echo "no" >&6; }
12028    fi
12029  elif test $build != $host && test $have_gcc_for_target = yes; then
12030    NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12031    test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12032    test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12033  fi
12034fi
12035if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12036  # Extract the first word of "nm", so it can be a program name with args.
12037set dummy nm; ac_word=$2
12038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12039$as_echo_n "checking for $ac_word... " >&6; }
12040if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12041  $as_echo_n "(cached) " >&6
12042else
12043  case $NM_FOR_TARGET in
12044  [\\/]* | ?:[\\/]*)
12045  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12046  ;;
12047  *)
12048  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049for as_dir in $gcc_cv_tool_dirs
12050do
12051  IFS=$as_save_IFS
12052  test -z "$as_dir" && as_dir=.
12053    for ac_exec_ext in '' $ac_executable_extensions; do
12054  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12055    ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12057    break 2
12058  fi
12059done
12060  done
12061IFS=$as_save_IFS
12062
12063  ;;
12064esac
12065fi
12066NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12067if test -n "$NM_FOR_TARGET"; then
12068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12069$as_echo "$NM_FOR_TARGET" >&6; }
12070else
12071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072$as_echo "no" >&6; }
12073fi
12074
12075
12076fi
12077if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12078
12079
12080if test -n "$NM_FOR_TARGET"; then
12081  ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12082elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12083  NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12084fi
12085
12086if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12087  for ncn_progname in nm; do
12088    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12089set dummy ${ncn_progname}; ac_word=$2
12090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12091$as_echo_n "checking for $ac_word... " >&6; }
12092if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12093  $as_echo_n "(cached) " >&6
12094else
12095  if test -n "$NM_FOR_TARGET"; then
12096  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12097else
12098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099for as_dir in $PATH
12100do
12101  IFS=$as_save_IFS
12102  test -z "$as_dir" && as_dir=.
12103    for ac_exec_ext in '' $ac_executable_extensions; do
12104  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12105    ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12107    break 2
12108  fi
12109done
12110  done
12111IFS=$as_save_IFS
12112
12113fi
12114fi
12115NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12116if test -n "$NM_FOR_TARGET"; then
12117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12118$as_echo "$NM_FOR_TARGET" >&6; }
12119else
12120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121$as_echo "no" >&6; }
12122fi
12123
12124
12125  done
12126fi
12127
12128if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12129  for ncn_progname in nm; do
12130    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12131$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12132    if test -x $with_build_time_tools/${ncn_progname}; then
12133      ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12134      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12135$as_echo "yes" >&6; }
12136      break
12137    else
12138      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139$as_echo "no" >&6; }
12140    fi
12141  done
12142fi
12143
12144if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12145  for ncn_progname in nm; do
12146    if test -n "$ncn_target_tool_prefix"; then
12147      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12148set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12150$as_echo_n "checking for $ac_word... " >&6; }
12151if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12152  $as_echo_n "(cached) " >&6
12153else
12154  if test -n "$NM_FOR_TARGET"; then
12155  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12156else
12157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12158for as_dir in $PATH
12159do
12160  IFS=$as_save_IFS
12161  test -z "$as_dir" && as_dir=.
12162    for ac_exec_ext in '' $ac_executable_extensions; do
12163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12164    ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12166    break 2
12167  fi
12168done
12169  done
12170IFS=$as_save_IFS
12171
12172fi
12173fi
12174NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12175if test -n "$NM_FOR_TARGET"; then
12176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12177$as_echo "$NM_FOR_TARGET" >&6; }
12178else
12179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12180$as_echo "no" >&6; }
12181fi
12182
12183
12184    fi
12185    if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12186      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12187set dummy ${ncn_progname}; ac_word=$2
12188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12189$as_echo_n "checking for $ac_word... " >&6; }
12190if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12191  $as_echo_n "(cached) " >&6
12192else
12193  if test -n "$NM_FOR_TARGET"; then
12194  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12195else
12196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12197for as_dir in $PATH
12198do
12199  IFS=$as_save_IFS
12200  test -z "$as_dir" && as_dir=.
12201    for ac_exec_ext in '' $ac_executable_extensions; do
12202  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12203    ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12205    break 2
12206  fi
12207done
12208  done
12209IFS=$as_save_IFS
12210
12211fi
12212fi
12213NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12214if test -n "$NM_FOR_TARGET"; then
12215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12216$as_echo "$NM_FOR_TARGET" >&6; }
12217else
12218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219$as_echo "no" >&6; }
12220fi
12221
12222
12223    fi
12224    test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12225  done
12226fi
12227
12228if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12229  set dummy nm
12230  if test $build = $target ; then
12231    NM_FOR_TARGET="$2"
12232  else
12233    NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12234  fi
12235else
12236  NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12237fi
12238
12239else
12240  NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12241fi
12242
12243
12244
12245
12246if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12247  if test -n "$with_build_time_tools"; then
12248    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12249$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12250    if test -x $with_build_time_tools/objcopy; then
12251      OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12252      ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12253      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12254$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12255    else
12256      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257$as_echo "no" >&6; }
12258    fi
12259  elif test $build != $host && test $have_gcc_for_target = yes; then
12260    OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12261    test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12262    test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12263  fi
12264fi
12265if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12266  # Extract the first word of "objcopy", so it can be a program name with args.
12267set dummy objcopy; ac_word=$2
12268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269$as_echo_n "checking for $ac_word... " >&6; }
12270if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12271  $as_echo_n "(cached) " >&6
12272else
12273  case $OBJCOPY_FOR_TARGET in
12274  [\\/]* | ?:[\\/]*)
12275  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12276  ;;
12277  *)
12278  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279for as_dir in $gcc_cv_tool_dirs
12280do
12281  IFS=$as_save_IFS
12282  test -z "$as_dir" && as_dir=.
12283    for ac_exec_ext in '' $ac_executable_extensions; do
12284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12285    ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12287    break 2
12288  fi
12289done
12290  done
12291IFS=$as_save_IFS
12292
12293  ;;
12294esac
12295fi
12296OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12297if test -n "$OBJCOPY_FOR_TARGET"; then
12298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12299$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12300else
12301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302$as_echo "no" >&6; }
12303fi
12304
12305
12306fi
12307if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12308
12309
12310if test -n "$OBJCOPY_FOR_TARGET"; then
12311  ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12312elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12313  OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12314fi
12315
12316if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12317  for ncn_progname in objcopy; do
12318    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12319set dummy ${ncn_progname}; ac_word=$2
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321$as_echo_n "checking for $ac_word... " >&6; }
12322if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12323  $as_echo_n "(cached) " >&6
12324else
12325  if test -n "$OBJCOPY_FOR_TARGET"; then
12326  ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12327else
12328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329for as_dir in $PATH
12330do
12331  IFS=$as_save_IFS
12332  test -z "$as_dir" && as_dir=.
12333    for ac_exec_ext in '' $ac_executable_extensions; do
12334  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12335    ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337    break 2
12338  fi
12339done
12340  done
12341IFS=$as_save_IFS
12342
12343fi
12344fi
12345OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12346if test -n "$OBJCOPY_FOR_TARGET"; then
12347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12348$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12349else
12350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351$as_echo "no" >&6; }
12352fi
12353
12354
12355  done
12356fi
12357
12358if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12359  for ncn_progname in objcopy; do
12360    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12361$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12362    if test -x $with_build_time_tools/${ncn_progname}; then
12363      ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12364      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12365$as_echo "yes" >&6; }
12366      break
12367    else
12368      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369$as_echo "no" >&6; }
12370    fi
12371  done
12372fi
12373
12374if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12375  for ncn_progname in objcopy; do
12376    if test -n "$ncn_target_tool_prefix"; then
12377      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12378set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12380$as_echo_n "checking for $ac_word... " >&6; }
12381if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12382  $as_echo_n "(cached) " >&6
12383else
12384  if test -n "$OBJCOPY_FOR_TARGET"; then
12385  ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12386else
12387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388for as_dir in $PATH
12389do
12390  IFS=$as_save_IFS
12391  test -z "$as_dir" && as_dir=.
12392    for ac_exec_ext in '' $ac_executable_extensions; do
12393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12394    ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12396    break 2
12397  fi
12398done
12399  done
12400IFS=$as_save_IFS
12401
12402fi
12403fi
12404OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12405if test -n "$OBJCOPY_FOR_TARGET"; then
12406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12407$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12408else
12409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410$as_echo "no" >&6; }
12411fi
12412
12413
12414    fi
12415    if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12416      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12417set dummy ${ncn_progname}; ac_word=$2
12418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12419$as_echo_n "checking for $ac_word... " >&6; }
12420if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12421  $as_echo_n "(cached) " >&6
12422else
12423  if test -n "$OBJCOPY_FOR_TARGET"; then
12424  ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12425else
12426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12427for as_dir in $PATH
12428do
12429  IFS=$as_save_IFS
12430  test -z "$as_dir" && as_dir=.
12431    for ac_exec_ext in '' $ac_executable_extensions; do
12432  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12433    ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12434    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12435    break 2
12436  fi
12437done
12438  done
12439IFS=$as_save_IFS
12440
12441fi
12442fi
12443OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12444if test -n "$OBJCOPY_FOR_TARGET"; then
12445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12446$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12447else
12448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12449$as_echo "no" >&6; }
12450fi
12451
12452
12453    fi
12454    test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12455  done
12456fi
12457
12458if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12459  set dummy objcopy
12460  if test $build = $target ; then
12461    OBJCOPY_FOR_TARGET="$2"
12462  else
12463    OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12464  fi
12465else
12466  OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12467fi
12468
12469else
12470  OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12471fi
12472
12473
12474
12475
12476if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12477  if test -n "$with_build_time_tools"; then
12478    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12479$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12480    if test -x $with_build_time_tools/objdump; then
12481      OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12482      ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12483      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12484$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12485    else
12486      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487$as_echo "no" >&6; }
12488    fi
12489  elif test $build != $host && test $have_gcc_for_target = yes; then
12490    OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12491    test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12492    test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12493  fi
12494fi
12495if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12496  # Extract the first word of "objdump", so it can be a program name with args.
12497set dummy objdump; ac_word=$2
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12499$as_echo_n "checking for $ac_word... " >&6; }
12500if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12501  $as_echo_n "(cached) " >&6
12502else
12503  case $OBJDUMP_FOR_TARGET in
12504  [\\/]* | ?:[\\/]*)
12505  ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12506  ;;
12507  *)
12508  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509for as_dir in $gcc_cv_tool_dirs
12510do
12511  IFS=$as_save_IFS
12512  test -z "$as_dir" && as_dir=.
12513    for ac_exec_ext in '' $ac_executable_extensions; do
12514  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12515    ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12517    break 2
12518  fi
12519done
12520  done
12521IFS=$as_save_IFS
12522
12523  ;;
12524esac
12525fi
12526OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12527if test -n "$OBJDUMP_FOR_TARGET"; then
12528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12529$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12530else
12531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532$as_echo "no" >&6; }
12533fi
12534
12535
12536fi
12537if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12538
12539
12540if test -n "$OBJDUMP_FOR_TARGET"; then
12541  ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12542elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12543  OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12544fi
12545
12546if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12547  for ncn_progname in objdump; do
12548    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12549set dummy ${ncn_progname}; ac_word=$2
12550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12551$as_echo_n "checking for $ac_word... " >&6; }
12552if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12553  $as_echo_n "(cached) " >&6
12554else
12555  if test -n "$OBJDUMP_FOR_TARGET"; then
12556  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12557else
12558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559for as_dir in $PATH
12560do
12561  IFS=$as_save_IFS
12562  test -z "$as_dir" && as_dir=.
12563    for ac_exec_ext in '' $ac_executable_extensions; do
12564  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12565    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12567    break 2
12568  fi
12569done
12570  done
12571IFS=$as_save_IFS
12572
12573fi
12574fi
12575OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12576if test -n "$OBJDUMP_FOR_TARGET"; then
12577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12578$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12579else
12580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581$as_echo "no" >&6; }
12582fi
12583
12584
12585  done
12586fi
12587
12588if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12589  for ncn_progname in objdump; do
12590    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12591$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12592    if test -x $with_build_time_tools/${ncn_progname}; then
12593      ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12594      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12595$as_echo "yes" >&6; }
12596      break
12597    else
12598      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12599$as_echo "no" >&6; }
12600    fi
12601  done
12602fi
12603
12604if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12605  for ncn_progname in objdump; do
12606    if test -n "$ncn_target_tool_prefix"; then
12607      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12608set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12610$as_echo_n "checking for $ac_word... " >&6; }
12611if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12612  $as_echo_n "(cached) " >&6
12613else
12614  if test -n "$OBJDUMP_FOR_TARGET"; then
12615  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12616else
12617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12618for as_dir in $PATH
12619do
12620  IFS=$as_save_IFS
12621  test -z "$as_dir" && as_dir=.
12622    for ac_exec_ext in '' $ac_executable_extensions; do
12623  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12624    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12626    break 2
12627  fi
12628done
12629  done
12630IFS=$as_save_IFS
12631
12632fi
12633fi
12634OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12635if test -n "$OBJDUMP_FOR_TARGET"; then
12636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12637$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12638else
12639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12640$as_echo "no" >&6; }
12641fi
12642
12643
12644    fi
12645    if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12646      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12647set dummy ${ncn_progname}; ac_word=$2
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12649$as_echo_n "checking for $ac_word... " >&6; }
12650if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12651  $as_echo_n "(cached) " >&6
12652else
12653  if test -n "$OBJDUMP_FOR_TARGET"; then
12654  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12655else
12656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657for as_dir in $PATH
12658do
12659  IFS=$as_save_IFS
12660  test -z "$as_dir" && as_dir=.
12661    for ac_exec_ext in '' $ac_executable_extensions; do
12662  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12663    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12664    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12665    break 2
12666  fi
12667done
12668  done
12669IFS=$as_save_IFS
12670
12671fi
12672fi
12673OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12674if test -n "$OBJDUMP_FOR_TARGET"; then
12675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12676$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12677else
12678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679$as_echo "no" >&6; }
12680fi
12681
12682
12683    fi
12684    test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12685  done
12686fi
12687
12688if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12689  set dummy objdump
12690  if test $build = $target ; then
12691    OBJDUMP_FOR_TARGET="$2"
12692  else
12693    OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12694  fi
12695else
12696  OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12697fi
12698
12699else
12700  OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12701fi
12702
12703
12704
12705
12706if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12707  if test -n "$with_build_time_tools"; then
12708    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12709$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12710    if test -x $with_build_time_tools/ranlib; then
12711      RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12712      ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12713      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12714$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12715    else
12716      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717$as_echo "no" >&6; }
12718    fi
12719  elif test $build != $host && test $have_gcc_for_target = yes; then
12720    RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12721    test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12722    test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12723  fi
12724fi
12725if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12726  # Extract the first word of "ranlib", so it can be a program name with args.
12727set dummy ranlib; ac_word=$2
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12729$as_echo_n "checking for $ac_word... " >&6; }
12730if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12731  $as_echo_n "(cached) " >&6
12732else
12733  case $RANLIB_FOR_TARGET in
12734  [\\/]* | ?:[\\/]*)
12735  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12736  ;;
12737  *)
12738  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12739for as_dir in $gcc_cv_tool_dirs
12740do
12741  IFS=$as_save_IFS
12742  test -z "$as_dir" && as_dir=.
12743    for ac_exec_ext in '' $ac_executable_extensions; do
12744  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12745    ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12747    break 2
12748  fi
12749done
12750  done
12751IFS=$as_save_IFS
12752
12753  ;;
12754esac
12755fi
12756RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12757if test -n "$RANLIB_FOR_TARGET"; then
12758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12759$as_echo "$RANLIB_FOR_TARGET" >&6; }
12760else
12761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762$as_echo "no" >&6; }
12763fi
12764
12765
12766fi
12767if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12768
12769
12770if test -n "$RANLIB_FOR_TARGET"; then
12771  ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12772elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12773  RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12774fi
12775
12776if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12777  for ncn_progname in ranlib; do
12778    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12779set dummy ${ncn_progname}; ac_word=$2
12780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12781$as_echo_n "checking for $ac_word... " >&6; }
12782if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12783  $as_echo_n "(cached) " >&6
12784else
12785  if test -n "$RANLIB_FOR_TARGET"; then
12786  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12787else
12788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12789for as_dir in $PATH
12790do
12791  IFS=$as_save_IFS
12792  test -z "$as_dir" && as_dir=.
12793    for ac_exec_ext in '' $ac_executable_extensions; do
12794  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12795    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12797    break 2
12798  fi
12799done
12800  done
12801IFS=$as_save_IFS
12802
12803fi
12804fi
12805RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12806if test -n "$RANLIB_FOR_TARGET"; then
12807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12808$as_echo "$RANLIB_FOR_TARGET" >&6; }
12809else
12810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811$as_echo "no" >&6; }
12812fi
12813
12814
12815  done
12816fi
12817
12818if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12819  for ncn_progname in ranlib; do
12820    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12821$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12822    if test -x $with_build_time_tools/${ncn_progname}; then
12823      ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12824      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12825$as_echo "yes" >&6; }
12826      break
12827    else
12828      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829$as_echo "no" >&6; }
12830    fi
12831  done
12832fi
12833
12834if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12835  for ncn_progname in ranlib; do
12836    if test -n "$ncn_target_tool_prefix"; then
12837      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12838set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12840$as_echo_n "checking for $ac_word... " >&6; }
12841if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12842  $as_echo_n "(cached) " >&6
12843else
12844  if test -n "$RANLIB_FOR_TARGET"; then
12845  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12846else
12847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12848for as_dir in $PATH
12849do
12850  IFS=$as_save_IFS
12851  test -z "$as_dir" && as_dir=.
12852    for ac_exec_ext in '' $ac_executable_extensions; do
12853  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12854    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12856    break 2
12857  fi
12858done
12859  done
12860IFS=$as_save_IFS
12861
12862fi
12863fi
12864RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12865if test -n "$RANLIB_FOR_TARGET"; then
12866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12867$as_echo "$RANLIB_FOR_TARGET" >&6; }
12868else
12869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870$as_echo "no" >&6; }
12871fi
12872
12873
12874    fi
12875    if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12876      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12877set dummy ${ncn_progname}; ac_word=$2
12878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12879$as_echo_n "checking for $ac_word... " >&6; }
12880if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12881  $as_echo_n "(cached) " >&6
12882else
12883  if test -n "$RANLIB_FOR_TARGET"; then
12884  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12885else
12886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12887for as_dir in $PATH
12888do
12889  IFS=$as_save_IFS
12890  test -z "$as_dir" && as_dir=.
12891    for ac_exec_ext in '' $ac_executable_extensions; do
12892  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12893    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12895    break 2
12896  fi
12897done
12898  done
12899IFS=$as_save_IFS
12900
12901fi
12902fi
12903RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12904if test -n "$RANLIB_FOR_TARGET"; then
12905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12906$as_echo "$RANLIB_FOR_TARGET" >&6; }
12907else
12908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909$as_echo "no" >&6; }
12910fi
12911
12912
12913    fi
12914    test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12915  done
12916fi
12917
12918if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12919  set dummy ranlib
12920  if test $build = $target ; then
12921    RANLIB_FOR_TARGET="$2"
12922  else
12923    RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12924  fi
12925else
12926  RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12927fi
12928
12929else
12930  RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12931fi
12932
12933
12934
12935
12936if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12937  if test -n "$with_build_time_tools"; then
12938    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12939$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12940    if test -x $with_build_time_tools/readelf; then
12941      READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12942      ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12943      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12944$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12945    else
12946      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12947$as_echo "no" >&6; }
12948    fi
12949  elif test $build != $host && test $have_gcc_for_target = yes; then
12950    READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12951    test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12952    test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12953  fi
12954fi
12955if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12956  # Extract the first word of "readelf", so it can be a program name with args.
12957set dummy readelf; ac_word=$2
12958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12959$as_echo_n "checking for $ac_word... " >&6; }
12960if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12961  $as_echo_n "(cached) " >&6
12962else
12963  case $READELF_FOR_TARGET in
12964  [\\/]* | ?:[\\/]*)
12965  ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12966  ;;
12967  *)
12968  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12969for as_dir in $gcc_cv_tool_dirs
12970do
12971  IFS=$as_save_IFS
12972  test -z "$as_dir" && as_dir=.
12973    for ac_exec_ext in '' $ac_executable_extensions; do
12974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12975    ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12977    break 2
12978  fi
12979done
12980  done
12981IFS=$as_save_IFS
12982
12983  ;;
12984esac
12985fi
12986READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12987if test -n "$READELF_FOR_TARGET"; then
12988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12989$as_echo "$READELF_FOR_TARGET" >&6; }
12990else
12991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12992$as_echo "no" >&6; }
12993fi
12994
12995
12996fi
12997if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12998
12999
13000if test -n "$READELF_FOR_TARGET"; then
13001  ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13002elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13003  READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13004fi
13005
13006if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13007  for ncn_progname in readelf; do
13008    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13009set dummy ${ncn_progname}; ac_word=$2
13010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13011$as_echo_n "checking for $ac_word... " >&6; }
13012if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13013  $as_echo_n "(cached) " >&6
13014else
13015  if test -n "$READELF_FOR_TARGET"; then
13016  ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13017else
13018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019for as_dir in $PATH
13020do
13021  IFS=$as_save_IFS
13022  test -z "$as_dir" && as_dir=.
13023    for ac_exec_ext in '' $ac_executable_extensions; do
13024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13025    ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13027    break 2
13028  fi
13029done
13030  done
13031IFS=$as_save_IFS
13032
13033fi
13034fi
13035READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13036if test -n "$READELF_FOR_TARGET"; then
13037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13038$as_echo "$READELF_FOR_TARGET" >&6; }
13039else
13040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041$as_echo "no" >&6; }
13042fi
13043
13044
13045  done
13046fi
13047
13048if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13049  for ncn_progname in readelf; do
13050    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13051$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13052    if test -x $with_build_time_tools/${ncn_progname}; then
13053      ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13054      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13055$as_echo "yes" >&6; }
13056      break
13057    else
13058      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059$as_echo "no" >&6; }
13060    fi
13061  done
13062fi
13063
13064if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13065  for ncn_progname in readelf; do
13066    if test -n "$ncn_target_tool_prefix"; then
13067      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13068set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13070$as_echo_n "checking for $ac_word... " >&6; }
13071if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13072  $as_echo_n "(cached) " >&6
13073else
13074  if test -n "$READELF_FOR_TARGET"; then
13075  ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13076else
13077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13078for as_dir in $PATH
13079do
13080  IFS=$as_save_IFS
13081  test -z "$as_dir" && as_dir=.
13082    for ac_exec_ext in '' $ac_executable_extensions; do
13083  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13084    ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13086    break 2
13087  fi
13088done
13089  done
13090IFS=$as_save_IFS
13091
13092fi
13093fi
13094READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13095if test -n "$READELF_FOR_TARGET"; then
13096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13097$as_echo "$READELF_FOR_TARGET" >&6; }
13098else
13099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100$as_echo "no" >&6; }
13101fi
13102
13103
13104    fi
13105    if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13106      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13107set dummy ${ncn_progname}; ac_word=$2
13108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13109$as_echo_n "checking for $ac_word... " >&6; }
13110if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13111  $as_echo_n "(cached) " >&6
13112else
13113  if test -n "$READELF_FOR_TARGET"; then
13114  ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13115else
13116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117for as_dir in $PATH
13118do
13119  IFS=$as_save_IFS
13120  test -z "$as_dir" && as_dir=.
13121    for ac_exec_ext in '' $ac_executable_extensions; do
13122  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13123    ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13125    break 2
13126  fi
13127done
13128  done
13129IFS=$as_save_IFS
13130
13131fi
13132fi
13133READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13134if test -n "$READELF_FOR_TARGET"; then
13135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13136$as_echo "$READELF_FOR_TARGET" >&6; }
13137else
13138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13139$as_echo "no" >&6; }
13140fi
13141
13142
13143    fi
13144    test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13145  done
13146fi
13147
13148if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13149  set dummy readelf
13150  if test $build = $target ; then
13151    READELF_FOR_TARGET="$2"
13152  else
13153    READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13154  fi
13155else
13156  READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13157fi
13158
13159else
13160  READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13161fi
13162
13163
13164
13165
13166if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13167  if test -n "$with_build_time_tools"; then
13168    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13169$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13170    if test -x $with_build_time_tools/strip; then
13171      STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13172      ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13173      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13174$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13175    else
13176      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13177$as_echo "no" >&6; }
13178    fi
13179  elif test $build != $host && test $have_gcc_for_target = yes; then
13180    STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13181    test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13182    test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13183  fi
13184fi
13185if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13186  # Extract the first word of "strip", so it can be a program name with args.
13187set dummy strip; ac_word=$2
13188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13189$as_echo_n "checking for $ac_word... " >&6; }
13190if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13191  $as_echo_n "(cached) " >&6
13192else
13193  case $STRIP_FOR_TARGET in
13194  [\\/]* | ?:[\\/]*)
13195  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13196  ;;
13197  *)
13198  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13199for as_dir in $gcc_cv_tool_dirs
13200do
13201  IFS=$as_save_IFS
13202  test -z "$as_dir" && as_dir=.
13203    for ac_exec_ext in '' $ac_executable_extensions; do
13204  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13205    ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13207    break 2
13208  fi
13209done
13210  done
13211IFS=$as_save_IFS
13212
13213  ;;
13214esac
13215fi
13216STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13217if test -n "$STRIP_FOR_TARGET"; then
13218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13219$as_echo "$STRIP_FOR_TARGET" >&6; }
13220else
13221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222$as_echo "no" >&6; }
13223fi
13224
13225
13226fi
13227if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13228
13229
13230if test -n "$STRIP_FOR_TARGET"; then
13231  ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13232elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13233  STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13234fi
13235
13236if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13237  for ncn_progname in strip; do
13238    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13239set dummy ${ncn_progname}; ac_word=$2
13240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13241$as_echo_n "checking for $ac_word... " >&6; }
13242if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13243  $as_echo_n "(cached) " >&6
13244else
13245  if test -n "$STRIP_FOR_TARGET"; then
13246  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13247else
13248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13249for as_dir in $PATH
13250do
13251  IFS=$as_save_IFS
13252  test -z "$as_dir" && as_dir=.
13253    for ac_exec_ext in '' $ac_executable_extensions; do
13254  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13255    ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13257    break 2
13258  fi
13259done
13260  done
13261IFS=$as_save_IFS
13262
13263fi
13264fi
13265STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13266if test -n "$STRIP_FOR_TARGET"; then
13267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13268$as_echo "$STRIP_FOR_TARGET" >&6; }
13269else
13270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13271$as_echo "no" >&6; }
13272fi
13273
13274
13275  done
13276fi
13277
13278if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13279  for ncn_progname in strip; do
13280    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13281$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13282    if test -x $with_build_time_tools/${ncn_progname}; then
13283      ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13284      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13285$as_echo "yes" >&6; }
13286      break
13287    else
13288      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289$as_echo "no" >&6; }
13290    fi
13291  done
13292fi
13293
13294if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13295  for ncn_progname in strip; do
13296    if test -n "$ncn_target_tool_prefix"; then
13297      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13298set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13300$as_echo_n "checking for $ac_word... " >&6; }
13301if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13302  $as_echo_n "(cached) " >&6
13303else
13304  if test -n "$STRIP_FOR_TARGET"; then
13305  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13306else
13307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13308for as_dir in $PATH
13309do
13310  IFS=$as_save_IFS
13311  test -z "$as_dir" && as_dir=.
13312    for ac_exec_ext in '' $ac_executable_extensions; do
13313  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13314    ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13316    break 2
13317  fi
13318done
13319  done
13320IFS=$as_save_IFS
13321
13322fi
13323fi
13324STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13325if test -n "$STRIP_FOR_TARGET"; then
13326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13327$as_echo "$STRIP_FOR_TARGET" >&6; }
13328else
13329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13330$as_echo "no" >&6; }
13331fi
13332
13333
13334    fi
13335    if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13336      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13337set dummy ${ncn_progname}; ac_word=$2
13338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13339$as_echo_n "checking for $ac_word... " >&6; }
13340if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13341  $as_echo_n "(cached) " >&6
13342else
13343  if test -n "$STRIP_FOR_TARGET"; then
13344  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13345else
13346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347for as_dir in $PATH
13348do
13349  IFS=$as_save_IFS
13350  test -z "$as_dir" && as_dir=.
13351    for ac_exec_ext in '' $ac_executable_extensions; do
13352  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13353    ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13355    break 2
13356  fi
13357done
13358  done
13359IFS=$as_save_IFS
13360
13361fi
13362fi
13363STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13364if test -n "$STRIP_FOR_TARGET"; then
13365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13366$as_echo "$STRIP_FOR_TARGET" >&6; }
13367else
13368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369$as_echo "no" >&6; }
13370fi
13371
13372
13373    fi
13374    test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13375  done
13376fi
13377
13378if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13379  set dummy strip
13380  if test $build = $target ; then
13381    STRIP_FOR_TARGET="$2"
13382  else
13383    STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13384  fi
13385else
13386  STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13387fi
13388
13389else
13390  STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13391fi
13392
13393
13394
13395
13396if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13397  if test -n "$with_build_time_tools"; then
13398    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13399$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13400    if test -x $with_build_time_tools/windres; then
13401      WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13402      ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13403      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13404$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13405    else
13406      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13407$as_echo "no" >&6; }
13408    fi
13409  elif test $build != $host && test $have_gcc_for_target = yes; then
13410    WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13411    test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13412    test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13413  fi
13414fi
13415if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13416  # Extract the first word of "windres", so it can be a program name with args.
13417set dummy windres; ac_word=$2
13418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13419$as_echo_n "checking for $ac_word... " >&6; }
13420if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13421  $as_echo_n "(cached) " >&6
13422else
13423  case $WINDRES_FOR_TARGET in
13424  [\\/]* | ?:[\\/]*)
13425  ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13426  ;;
13427  *)
13428  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429for as_dir in $gcc_cv_tool_dirs
13430do
13431  IFS=$as_save_IFS
13432  test -z "$as_dir" && as_dir=.
13433    for ac_exec_ext in '' $ac_executable_extensions; do
13434  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13435    ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13437    break 2
13438  fi
13439done
13440  done
13441IFS=$as_save_IFS
13442
13443  ;;
13444esac
13445fi
13446WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13447if test -n "$WINDRES_FOR_TARGET"; then
13448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13449$as_echo "$WINDRES_FOR_TARGET" >&6; }
13450else
13451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13452$as_echo "no" >&6; }
13453fi
13454
13455
13456fi
13457if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13458
13459
13460if test -n "$WINDRES_FOR_TARGET"; then
13461  ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13462elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13463  WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13464fi
13465
13466if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13467  for ncn_progname in windres; do
13468    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13469set dummy ${ncn_progname}; ac_word=$2
13470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13471$as_echo_n "checking for $ac_word... " >&6; }
13472if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13473  $as_echo_n "(cached) " >&6
13474else
13475  if test -n "$WINDRES_FOR_TARGET"; then
13476  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13477else
13478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13479for as_dir in $PATH
13480do
13481  IFS=$as_save_IFS
13482  test -z "$as_dir" && as_dir=.
13483    for ac_exec_ext in '' $ac_executable_extensions; do
13484  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13485    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13487    break 2
13488  fi
13489done
13490  done
13491IFS=$as_save_IFS
13492
13493fi
13494fi
13495WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13496if test -n "$WINDRES_FOR_TARGET"; then
13497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13498$as_echo "$WINDRES_FOR_TARGET" >&6; }
13499else
13500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13501$as_echo "no" >&6; }
13502fi
13503
13504
13505  done
13506fi
13507
13508if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13509  for ncn_progname in windres; do
13510    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13511$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13512    if test -x $with_build_time_tools/${ncn_progname}; then
13513      ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13514      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13515$as_echo "yes" >&6; }
13516      break
13517    else
13518      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13519$as_echo "no" >&6; }
13520    fi
13521  done
13522fi
13523
13524if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13525  for ncn_progname in windres; do
13526    if test -n "$ncn_target_tool_prefix"; then
13527      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13528set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13530$as_echo_n "checking for $ac_word... " >&6; }
13531if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13532  $as_echo_n "(cached) " >&6
13533else
13534  if test -n "$WINDRES_FOR_TARGET"; then
13535  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13536else
13537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13538for as_dir in $PATH
13539do
13540  IFS=$as_save_IFS
13541  test -z "$as_dir" && as_dir=.
13542    for ac_exec_ext in '' $ac_executable_extensions; do
13543  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13544    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13545    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13546    break 2
13547  fi
13548done
13549  done
13550IFS=$as_save_IFS
13551
13552fi
13553fi
13554WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13555if test -n "$WINDRES_FOR_TARGET"; then
13556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13557$as_echo "$WINDRES_FOR_TARGET" >&6; }
13558else
13559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13560$as_echo "no" >&6; }
13561fi
13562
13563
13564    fi
13565    if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13566      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13567set dummy ${ncn_progname}; ac_word=$2
13568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13569$as_echo_n "checking for $ac_word... " >&6; }
13570if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13571  $as_echo_n "(cached) " >&6
13572else
13573  if test -n "$WINDRES_FOR_TARGET"; then
13574  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13575else
13576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13577for as_dir in $PATH
13578do
13579  IFS=$as_save_IFS
13580  test -z "$as_dir" && as_dir=.
13581    for ac_exec_ext in '' $ac_executable_extensions; do
13582  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13583    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13585    break 2
13586  fi
13587done
13588  done
13589IFS=$as_save_IFS
13590
13591fi
13592fi
13593WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13594if test -n "$WINDRES_FOR_TARGET"; then
13595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13596$as_echo "$WINDRES_FOR_TARGET" >&6; }
13597else
13598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599$as_echo "no" >&6; }
13600fi
13601
13602
13603    fi
13604    test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13605  done
13606fi
13607
13608if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13609  set dummy windres
13610  if test $build = $target ; then
13611    WINDRES_FOR_TARGET="$2"
13612  else
13613    WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13614  fi
13615else
13616  WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13617fi
13618
13619else
13620  WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13621fi
13622
13623
13624
13625
13626if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13627  if test -n "$with_build_time_tools"; then
13628    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13629$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13630    if test -x $with_build_time_tools/windmc; then
13631      WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13632      ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13633      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13634$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13635    else
13636      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637$as_echo "no" >&6; }
13638    fi
13639  elif test $build != $host && test $have_gcc_for_target = yes; then
13640    WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13641    test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13642    test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13643  fi
13644fi
13645if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13646  # Extract the first word of "windmc", so it can be a program name with args.
13647set dummy windmc; ac_word=$2
13648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13649$as_echo_n "checking for $ac_word... " >&6; }
13650if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13651  $as_echo_n "(cached) " >&6
13652else
13653  case $WINDMC_FOR_TARGET in
13654  [\\/]* | ?:[\\/]*)
13655  ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13656  ;;
13657  *)
13658  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659for as_dir in $gcc_cv_tool_dirs
13660do
13661  IFS=$as_save_IFS
13662  test -z "$as_dir" && as_dir=.
13663    for ac_exec_ext in '' $ac_executable_extensions; do
13664  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13665    ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13667    break 2
13668  fi
13669done
13670  done
13671IFS=$as_save_IFS
13672
13673  ;;
13674esac
13675fi
13676WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13677if test -n "$WINDMC_FOR_TARGET"; then
13678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13679$as_echo "$WINDMC_FOR_TARGET" >&6; }
13680else
13681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13682$as_echo "no" >&6; }
13683fi
13684
13685
13686fi
13687if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13688
13689
13690if test -n "$WINDMC_FOR_TARGET"; then
13691  ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13692elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13693  WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13694fi
13695
13696if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13697  for ncn_progname in windmc; do
13698    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13699set dummy ${ncn_progname}; ac_word=$2
13700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13701$as_echo_n "checking for $ac_word... " >&6; }
13702if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13703  $as_echo_n "(cached) " >&6
13704else
13705  if test -n "$WINDMC_FOR_TARGET"; then
13706  ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13707else
13708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13709for as_dir in $PATH
13710do
13711  IFS=$as_save_IFS
13712  test -z "$as_dir" && as_dir=.
13713    for ac_exec_ext in '' $ac_executable_extensions; do
13714  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13715    ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13717    break 2
13718  fi
13719done
13720  done
13721IFS=$as_save_IFS
13722
13723fi
13724fi
13725WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13726if test -n "$WINDMC_FOR_TARGET"; then
13727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13728$as_echo "$WINDMC_FOR_TARGET" >&6; }
13729else
13730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13731$as_echo "no" >&6; }
13732fi
13733
13734
13735  done
13736fi
13737
13738if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13739  for ncn_progname in windmc; do
13740    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13741$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13742    if test -x $with_build_time_tools/${ncn_progname}; then
13743      ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13744      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13745$as_echo "yes" >&6; }
13746      break
13747    else
13748      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13749$as_echo "no" >&6; }
13750    fi
13751  done
13752fi
13753
13754if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13755  for ncn_progname in windmc; do
13756    if test -n "$ncn_target_tool_prefix"; then
13757      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13758set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13760$as_echo_n "checking for $ac_word... " >&6; }
13761if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13762  $as_echo_n "(cached) " >&6
13763else
13764  if test -n "$WINDMC_FOR_TARGET"; then
13765  ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13766else
13767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13768for as_dir in $PATH
13769do
13770  IFS=$as_save_IFS
13771  test -z "$as_dir" && as_dir=.
13772    for ac_exec_ext in '' $ac_executable_extensions; do
13773  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13774    ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13776    break 2
13777  fi
13778done
13779  done
13780IFS=$as_save_IFS
13781
13782fi
13783fi
13784WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13785if test -n "$WINDMC_FOR_TARGET"; then
13786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13787$as_echo "$WINDMC_FOR_TARGET" >&6; }
13788else
13789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13790$as_echo "no" >&6; }
13791fi
13792
13793
13794    fi
13795    if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13796      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13797set dummy ${ncn_progname}; ac_word=$2
13798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13799$as_echo_n "checking for $ac_word... " >&6; }
13800if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13801  $as_echo_n "(cached) " >&6
13802else
13803  if test -n "$WINDMC_FOR_TARGET"; then
13804  ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13805else
13806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13807for as_dir in $PATH
13808do
13809  IFS=$as_save_IFS
13810  test -z "$as_dir" && as_dir=.
13811    for ac_exec_ext in '' $ac_executable_extensions; do
13812  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13813    ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13815    break 2
13816  fi
13817done
13818  done
13819IFS=$as_save_IFS
13820
13821fi
13822fi
13823WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13824if test -n "$WINDMC_FOR_TARGET"; then
13825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13826$as_echo "$WINDMC_FOR_TARGET" >&6; }
13827else
13828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13829$as_echo "no" >&6; }
13830fi
13831
13832
13833    fi
13834    test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13835  done
13836fi
13837
13838if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13839  set dummy windmc
13840  if test $build = $target ; then
13841    WINDMC_FOR_TARGET="$2"
13842  else
13843    WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13844  fi
13845else
13846  WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13847fi
13848
13849else
13850  WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13851fi
13852
13853
13854RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13855
13856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13857$as_echo_n "checking where to find the target ar... " >&6; }
13858if test "x${build}" != "x${host}" ; then
13859  if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13860    # We already found the complete path
13861    ac_dir=`dirname $AR_FOR_TARGET`
13862    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13863$as_echo "pre-installed in $ac_dir" >&6; }
13864  else
13865    # Canadian cross, just use what we found
13866    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13867$as_echo "pre-installed" >&6; }
13868  fi
13869else
13870  ok=yes
13871  case " ${configdirs} " in
13872    *" binutils "*) ;;
13873    *) ok=no ;;
13874  esac
13875
13876  if test $ok = yes; then
13877    # An in-tree tool is available and we can use it
13878    AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13879    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13880$as_echo "just compiled" >&6; }
13881  elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13882    # We already found the complete path
13883    ac_dir=`dirname $AR_FOR_TARGET`
13884    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13885$as_echo "pre-installed in $ac_dir" >&6; }
13886  elif test "x$target" = "x$host"; then
13887    # We can use an host tool
13888    AR_FOR_TARGET='$(AR)'
13889    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13890$as_echo "host tool" >&6; }
13891  else
13892    # We need a cross tool
13893    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13894$as_echo "pre-installed" >&6; }
13895  fi
13896fi
13897
13898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13899$as_echo_n "checking where to find the target as... " >&6; }
13900if test "x${build}" != "x${host}" ; then
13901  if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13902    # We already found the complete path
13903    ac_dir=`dirname $AS_FOR_TARGET`
13904    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13905$as_echo "pre-installed in $ac_dir" >&6; }
13906  else
13907    # Canadian cross, just use what we found
13908    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13909$as_echo "pre-installed" >&6; }
13910  fi
13911else
13912  ok=yes
13913  case " ${configdirs} " in
13914    *" gas "*) ;;
13915    *) ok=no ;;
13916  esac
13917
13918  if test $ok = yes; then
13919    # An in-tree tool is available and we can use it
13920    AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13921    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13922$as_echo "just compiled" >&6; }
13923  elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13924    # We already found the complete path
13925    ac_dir=`dirname $AS_FOR_TARGET`
13926    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13927$as_echo "pre-installed in $ac_dir" >&6; }
13928  elif test "x$target" = "x$host"; then
13929    # We can use an host tool
13930    AS_FOR_TARGET='$(AS)'
13931    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13932$as_echo "host tool" >&6; }
13933  else
13934    # We need a cross tool
13935    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13936$as_echo "pre-installed" >&6; }
13937  fi
13938fi
13939
13940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13941$as_echo_n "checking where to find the target cc... " >&6; }
13942if test "x${build}" != "x${host}" ; then
13943  if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13944    # We already found the complete path
13945    ac_dir=`dirname $CC_FOR_TARGET`
13946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13947$as_echo "pre-installed in $ac_dir" >&6; }
13948  else
13949    # Canadian cross, just use what we found
13950    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13951$as_echo "pre-installed" >&6; }
13952  fi
13953else
13954  ok=yes
13955  case " ${configdirs} " in
13956    *" gcc "*) ;;
13957    *) ok=no ;;
13958  esac
13959
13960  if test $ok = yes; then
13961    # An in-tree tool is available and we can use it
13962    CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13963    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13964$as_echo "just compiled" >&6; }
13965  elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13966    # We already found the complete path
13967    ac_dir=`dirname $CC_FOR_TARGET`
13968    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13969$as_echo "pre-installed in $ac_dir" >&6; }
13970  elif test "x$target" = "x$host"; then
13971    # We can use an host tool
13972    CC_FOR_TARGET='$(CC)'
13973    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13974$as_echo "host tool" >&6; }
13975  else
13976    # We need a cross tool
13977    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13978$as_echo "pre-installed" >&6; }
13979  fi
13980fi
13981
13982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13983$as_echo_n "checking where to find the target c++... " >&6; }
13984if test "x${build}" != "x${host}" ; then
13985  if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13986    # We already found the complete path
13987    ac_dir=`dirname $CXX_FOR_TARGET`
13988    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13989$as_echo "pre-installed in $ac_dir" >&6; }
13990  else
13991    # Canadian cross, just use what we found
13992    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13993$as_echo "pre-installed" >&6; }
13994  fi
13995else
13996  ok=yes
13997  case " ${configdirs} " in
13998    *" gcc "*) ;;
13999    *) ok=no ;;
14000  esac
14001  case ,${enable_languages}, in
14002    *,c++,*) ;;
14003    *) ok=no ;;
14004  esac
14005  if test $ok = yes; then
14006    # An in-tree tool is available and we can use it
14007    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'
14008    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14009$as_echo "just compiled" >&6; }
14010  elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14011    # We already found the complete path
14012    ac_dir=`dirname $CXX_FOR_TARGET`
14013    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14014$as_echo "pre-installed in $ac_dir" >&6; }
14015  elif test "x$target" = "x$host"; then
14016    # We can use an host tool
14017    CXX_FOR_TARGET='$(CXX)'
14018    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14019$as_echo "host tool" >&6; }
14020  else
14021    # We need a cross tool
14022    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14023$as_echo "pre-installed" >&6; }
14024  fi
14025fi
14026
14027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14028$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14029if test "x${build}" != "x${host}" ; then
14030  if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14031    # We already found the complete path
14032    ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14033    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14034$as_echo "pre-installed in $ac_dir" >&6; }
14035  else
14036    # Canadian cross, just use what we found
14037    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14038$as_echo "pre-installed" >&6; }
14039  fi
14040else
14041  ok=yes
14042  case " ${configdirs} " in
14043    *" gcc "*) ;;
14044    *) ok=no ;;
14045  esac
14046  case ,${enable_languages}, in
14047    *,c++,*) ;;
14048    *) ok=no ;;
14049  esac
14050  if test $ok = yes; then
14051    # An in-tree tool is available and we can use it
14052    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'
14053    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14054$as_echo "just compiled" >&6; }
14055  elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14056    # We already found the complete path
14057    ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14058    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14059$as_echo "pre-installed in $ac_dir" >&6; }
14060  elif test "x$target" = "x$host"; then
14061    # We can use an host tool
14062    RAW_CXX_FOR_TARGET='$(CXX)'
14063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14064$as_echo "host tool" >&6; }
14065  else
14066    # We need a cross tool
14067    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14068$as_echo "pre-installed" >&6; }
14069  fi
14070fi
14071
14072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14073$as_echo_n "checking where to find the target dlltool... " >&6; }
14074if test "x${build}" != "x${host}" ; then
14075  if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14076    # We already found the complete path
14077    ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14078    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14079$as_echo "pre-installed in $ac_dir" >&6; }
14080  else
14081    # Canadian cross, just use what we found
14082    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14083$as_echo "pre-installed" >&6; }
14084  fi
14085else
14086  ok=yes
14087  case " ${configdirs} " in
14088    *" binutils "*) ;;
14089    *) ok=no ;;
14090  esac
14091
14092  if test $ok = yes; then
14093    # An in-tree tool is available and we can use it
14094    DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14095    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14096$as_echo "just compiled" >&6; }
14097  elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14098    # We already found the complete path
14099    ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14100    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14101$as_echo "pre-installed in $ac_dir" >&6; }
14102  elif test "x$target" = "x$host"; then
14103    # We can use an host tool
14104    DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14105    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14106$as_echo "host tool" >&6; }
14107  else
14108    # We need a cross tool
14109    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14110$as_echo "pre-installed" >&6; }
14111  fi
14112fi
14113
14114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14115$as_echo_n "checking where to find the target gcc... " >&6; }
14116if test "x${build}" != "x${host}" ; then
14117  if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14118    # We already found the complete path
14119    ac_dir=`dirname $GCC_FOR_TARGET`
14120    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14121$as_echo "pre-installed in $ac_dir" >&6; }
14122  else
14123    # Canadian cross, just use what we found
14124    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14125$as_echo "pre-installed" >&6; }
14126  fi
14127else
14128  ok=yes
14129  case " ${configdirs} " in
14130    *" gcc "*) ;;
14131    *) ok=no ;;
14132  esac
14133
14134  if test $ok = yes; then
14135    # An in-tree tool is available and we can use it
14136    GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14137    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14138$as_echo "just compiled" >&6; }
14139  elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14140    # We already found the complete path
14141    ac_dir=`dirname $GCC_FOR_TARGET`
14142    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14143$as_echo "pre-installed in $ac_dir" >&6; }
14144  elif test "x$target" = "x$host"; then
14145    # We can use an host tool
14146    GCC_FOR_TARGET='$()'
14147    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14148$as_echo "host tool" >&6; }
14149  else
14150    # We need a cross tool
14151    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14152$as_echo "pre-installed" >&6; }
14153  fi
14154fi
14155
14156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14157$as_echo_n "checking where to find the target gcj... " >&6; }
14158if test "x${build}" != "x${host}" ; then
14159  if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14160    # We already found the complete path
14161    ac_dir=`dirname $GCJ_FOR_TARGET`
14162    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14163$as_echo "pre-installed in $ac_dir" >&6; }
14164  else
14165    # Canadian cross, just use what we found
14166    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14167$as_echo "pre-installed" >&6; }
14168  fi
14169else
14170  ok=yes
14171  case " ${configdirs} " in
14172    *" gcc "*) ;;
14173    *) ok=no ;;
14174  esac
14175  case ,${enable_languages}, in
14176    *,java,*) ;;
14177    *) ok=no ;;
14178  esac
14179  if test $ok = yes; then
14180    # An in-tree tool is available and we can use it
14181    GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14182    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14183$as_echo "just compiled" >&6; }
14184  elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14185    # We already found the complete path
14186    ac_dir=`dirname $GCJ_FOR_TARGET`
14187    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14188$as_echo "pre-installed in $ac_dir" >&6; }
14189  elif test "x$target" = "x$host"; then
14190    # We can use an host tool
14191    GCJ_FOR_TARGET='$(GCJ)'
14192    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14193$as_echo "host tool" >&6; }
14194  else
14195    # We need a cross tool
14196    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14197$as_echo "pre-installed" >&6; }
14198  fi
14199fi
14200
14201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14202$as_echo_n "checking where to find the target gfortran... " >&6; }
14203if test "x${build}" != "x${host}" ; then
14204  if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14205    # We already found the complete path
14206    ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14207    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14208$as_echo "pre-installed in $ac_dir" >&6; }
14209  else
14210    # Canadian cross, just use what we found
14211    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14212$as_echo "pre-installed" >&6; }
14213  fi
14214else
14215  ok=yes
14216  case " ${configdirs} " in
14217    *" gcc "*) ;;
14218    *) ok=no ;;
14219  esac
14220  case ,${enable_languages}, in
14221    *,fortran,*) ;;
14222    *) ok=no ;;
14223  esac
14224  if test $ok = yes; then
14225    # An in-tree tool is available and we can use it
14226    GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14227    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14228$as_echo "just compiled" >&6; }
14229  elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14230    # We already found the complete path
14231    ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14232    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14233$as_echo "pre-installed in $ac_dir" >&6; }
14234  elif test "x$target" = "x$host"; then
14235    # We can use an host tool
14236    GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14237    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14238$as_echo "host tool" >&6; }
14239  else
14240    # We need a cross tool
14241    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14242$as_echo "pre-installed" >&6; }
14243  fi
14244fi
14245
14246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14247$as_echo_n "checking where to find the target gccgo... " >&6; }
14248if test "x${build}" != "x${host}" ; then
14249  if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14250    # We already found the complete path
14251    ac_dir=`dirname $GOC_FOR_TARGET`
14252    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14253$as_echo "pre-installed in $ac_dir" >&6; }
14254  else
14255    # Canadian cross, just use what we found
14256    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14257$as_echo "pre-installed" >&6; }
14258  fi
14259else
14260  ok=yes
14261  case " ${configdirs} " in
14262    *" gcc "*) ;;
14263    *) ok=no ;;
14264  esac
14265  case ,${enable_languages}, in
14266    *,go,*) ;;
14267    *) ok=no ;;
14268  esac
14269  if test $ok = yes; then
14270    # An in-tree tool is available and we can use it
14271    GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14272    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14273$as_echo "just compiled" >&6; }
14274  elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14275    # We already found the complete path
14276    ac_dir=`dirname $GOC_FOR_TARGET`
14277    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14278$as_echo "pre-installed in $ac_dir" >&6; }
14279  elif test "x$target" = "x$host"; then
14280    # We can use an host tool
14281    GOC_FOR_TARGET='$(GOC)'
14282    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14283$as_echo "host tool" >&6; }
14284  else
14285    # We need a cross tool
14286    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14287$as_echo "pre-installed" >&6; }
14288  fi
14289fi
14290
14291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14292$as_echo_n "checking where to find the target ld... " >&6; }
14293if test "x${build}" != "x${host}" ; then
14294  if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14295    # We already found the complete path
14296    ac_dir=`dirname $LD_FOR_TARGET`
14297    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14298$as_echo "pre-installed in $ac_dir" >&6; }
14299  else
14300    # Canadian cross, just use what we found
14301    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14302$as_echo "pre-installed" >&6; }
14303  fi
14304else
14305  ok=yes
14306  case " ${configdirs} " in
14307    *" ld "*) ;;
14308    *) ok=no ;;
14309  esac
14310
14311  if test $ok = yes; then
14312    # An in-tree tool is available and we can use it
14313    LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14314    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14315$as_echo "just compiled" >&6; }
14316  elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14317    # We already found the complete path
14318    ac_dir=`dirname $LD_FOR_TARGET`
14319    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14320$as_echo "pre-installed in $ac_dir" >&6; }
14321  elif test "x$target" = "x$host"; then
14322    # We can use an host tool
14323    LD_FOR_TARGET='$(LD)'
14324    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14325$as_echo "host tool" >&6; }
14326  else
14327    # We need a cross tool
14328    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14329$as_echo "pre-installed" >&6; }
14330  fi
14331fi
14332
14333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14334$as_echo_n "checking where to find the target lipo... " >&6; }
14335if test "x${build}" != "x${host}" ; then
14336  if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14337    # We already found the complete path
14338    ac_dir=`dirname $LIPO_FOR_TARGET`
14339    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14340$as_echo "pre-installed in $ac_dir" >&6; }
14341  else
14342    # Canadian cross, just use what we found
14343    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14344$as_echo "pre-installed" >&6; }
14345  fi
14346else
14347  if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14348    # We already found the complete path
14349    ac_dir=`dirname $LIPO_FOR_TARGET`
14350    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14351$as_echo "pre-installed in $ac_dir" >&6; }
14352  elif test "x$target" = "x$host"; then
14353    # We can use an host tool
14354    LIPO_FOR_TARGET='$(LIPO)'
14355    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14356$as_echo "host tool" >&6; }
14357  else
14358    # We need a cross tool
14359    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14360$as_echo "pre-installed" >&6; }
14361  fi
14362fi
14363
14364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14365$as_echo_n "checking where to find the target nm... " >&6; }
14366if test "x${build}" != "x${host}" ; then
14367  if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14368    # We already found the complete path
14369    ac_dir=`dirname $NM_FOR_TARGET`
14370    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14371$as_echo "pre-installed in $ac_dir" >&6; }
14372  else
14373    # Canadian cross, just use what we found
14374    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14375$as_echo "pre-installed" >&6; }
14376  fi
14377else
14378  ok=yes
14379  case " ${configdirs} " in
14380    *" binutils "*) ;;
14381    *) ok=no ;;
14382  esac
14383
14384  if test $ok = yes; then
14385    # An in-tree tool is available and we can use it
14386    NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14387    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14388$as_echo "just compiled" >&6; }
14389  elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14390    # We already found the complete path
14391    ac_dir=`dirname $NM_FOR_TARGET`
14392    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14393$as_echo "pre-installed in $ac_dir" >&6; }
14394  elif test "x$target" = "x$host"; then
14395    # We can use an host tool
14396    NM_FOR_TARGET='$(NM)'
14397    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14398$as_echo "host tool" >&6; }
14399  else
14400    # We need a cross tool
14401    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14402$as_echo "pre-installed" >&6; }
14403  fi
14404fi
14405
14406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14407$as_echo_n "checking where to find the target objcopy... " >&6; }
14408if test "x${build}" != "x${host}" ; then
14409  if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14410    # We already found the complete path
14411    ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14412    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14413$as_echo "pre-installed in $ac_dir" >&6; }
14414  else
14415    # Canadian cross, just use what we found
14416    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14417$as_echo "pre-installed" >&6; }
14418  fi
14419else
14420  ok=yes
14421  case " ${configdirs} " in
14422    *" binutils "*) ;;
14423    *) ok=no ;;
14424  esac
14425
14426  if test $ok = yes; then
14427    # An in-tree tool is available and we can use it
14428    OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14429    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14430$as_echo "just compiled" >&6; }
14431  elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14432    # We already found the complete path
14433    ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14434    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14435$as_echo "pre-installed in $ac_dir" >&6; }
14436  elif test "x$target" = "x$host"; then
14437    # We can use an host tool
14438    OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14439    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14440$as_echo "host tool" >&6; }
14441  else
14442    # We need a cross tool
14443    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14444$as_echo "pre-installed" >&6; }
14445  fi
14446fi
14447
14448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14449$as_echo_n "checking where to find the target objdump... " >&6; }
14450if test "x${build}" != "x${host}" ; then
14451  if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14452    # We already found the complete path
14453    ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14454    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14455$as_echo "pre-installed in $ac_dir" >&6; }
14456  else
14457    # Canadian cross, just use what we found
14458    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14459$as_echo "pre-installed" >&6; }
14460  fi
14461else
14462  ok=yes
14463  case " ${configdirs} " in
14464    *" binutils "*) ;;
14465    *) ok=no ;;
14466  esac
14467
14468  if test $ok = yes; then
14469    # An in-tree tool is available and we can use it
14470    OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14471    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14472$as_echo "just compiled" >&6; }
14473  elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14474    # We already found the complete path
14475    ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14476    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14477$as_echo "pre-installed in $ac_dir" >&6; }
14478  elif test "x$target" = "x$host"; then
14479    # We can use an host tool
14480    OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14481    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14482$as_echo "host tool" >&6; }
14483  else
14484    # We need a cross tool
14485    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14486$as_echo "pre-installed" >&6; }
14487  fi
14488fi
14489
14490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14491$as_echo_n "checking where to find the target ranlib... " >&6; }
14492if test "x${build}" != "x${host}" ; then
14493  if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14494    # We already found the complete path
14495    ac_dir=`dirname $RANLIB_FOR_TARGET`
14496    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14497$as_echo "pre-installed in $ac_dir" >&6; }
14498  else
14499    # Canadian cross, just use what we found
14500    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14501$as_echo "pre-installed" >&6; }
14502  fi
14503else
14504  ok=yes
14505  case " ${configdirs} " in
14506    *" binutils "*) ;;
14507    *) ok=no ;;
14508  esac
14509
14510  if test $ok = yes; then
14511    # An in-tree tool is available and we can use it
14512    RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14513    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14514$as_echo "just compiled" >&6; }
14515  elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14516    # We already found the complete path
14517    ac_dir=`dirname $RANLIB_FOR_TARGET`
14518    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14519$as_echo "pre-installed in $ac_dir" >&6; }
14520  elif test "x$target" = "x$host"; then
14521    # We can use an host tool
14522    RANLIB_FOR_TARGET='$(RANLIB)'
14523    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14524$as_echo "host tool" >&6; }
14525  else
14526    # We need a cross tool
14527    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14528$as_echo "pre-installed" >&6; }
14529  fi
14530fi
14531
14532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14533$as_echo_n "checking where to find the target readelf... " >&6; }
14534if test "x${build}" != "x${host}" ; then
14535  if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14536    # We already found the complete path
14537    ac_dir=`dirname $READELF_FOR_TARGET`
14538    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14539$as_echo "pre-installed in $ac_dir" >&6; }
14540  else
14541    # Canadian cross, just use what we found
14542    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14543$as_echo "pre-installed" >&6; }
14544  fi
14545else
14546  ok=yes
14547  case " ${configdirs} " in
14548    *" binutils "*) ;;
14549    *) ok=no ;;
14550  esac
14551
14552  if test $ok = yes; then
14553    # An in-tree tool is available and we can use it
14554    READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14555    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14556$as_echo "just compiled" >&6; }
14557  elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14558    # We already found the complete path
14559    ac_dir=`dirname $READELF_FOR_TARGET`
14560    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14561$as_echo "pre-installed in $ac_dir" >&6; }
14562  elif test "x$target" = "x$host"; then
14563    # We can use an host tool
14564    READELF_FOR_TARGET='$(READELF)'
14565    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14566$as_echo "host tool" >&6; }
14567  else
14568    # We need a cross tool
14569    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14570$as_echo "pre-installed" >&6; }
14571  fi
14572fi
14573
14574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14575$as_echo_n "checking where to find the target strip... " >&6; }
14576if test "x${build}" != "x${host}" ; then
14577  if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14578    # We already found the complete path
14579    ac_dir=`dirname $STRIP_FOR_TARGET`
14580    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14581$as_echo "pre-installed in $ac_dir" >&6; }
14582  else
14583    # Canadian cross, just use what we found
14584    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14585$as_echo "pre-installed" >&6; }
14586  fi
14587else
14588  ok=yes
14589  case " ${configdirs} " in
14590    *" binutils "*) ;;
14591    *) ok=no ;;
14592  esac
14593
14594  if test $ok = yes; then
14595    # An in-tree tool is available and we can use it
14596    STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14597    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14598$as_echo "just compiled" >&6; }
14599  elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14600    # We already found the complete path
14601    ac_dir=`dirname $STRIP_FOR_TARGET`
14602    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14603$as_echo "pre-installed in $ac_dir" >&6; }
14604  elif test "x$target" = "x$host"; then
14605    # We can use an host tool
14606    STRIP_FOR_TARGET='$(STRIP)'
14607    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14608$as_echo "host tool" >&6; }
14609  else
14610    # We need a cross tool
14611    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14612$as_echo "pre-installed" >&6; }
14613  fi
14614fi
14615
14616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14617$as_echo_n "checking where to find the target windres... " >&6; }
14618if test "x${build}" != "x${host}" ; then
14619  if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14620    # We already found the complete path
14621    ac_dir=`dirname $WINDRES_FOR_TARGET`
14622    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14623$as_echo "pre-installed in $ac_dir" >&6; }
14624  else
14625    # Canadian cross, just use what we found
14626    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14627$as_echo "pre-installed" >&6; }
14628  fi
14629else
14630  ok=yes
14631  case " ${configdirs} " in
14632    *" binutils "*) ;;
14633    *) ok=no ;;
14634  esac
14635
14636  if test $ok = yes; then
14637    # An in-tree tool is available and we can use it
14638    WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14639    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14640$as_echo "just compiled" >&6; }
14641  elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14642    # We already found the complete path
14643    ac_dir=`dirname $WINDRES_FOR_TARGET`
14644    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14645$as_echo "pre-installed in $ac_dir" >&6; }
14646  elif test "x$target" = "x$host"; then
14647    # We can use an host tool
14648    WINDRES_FOR_TARGET='$(WINDRES)'
14649    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14650$as_echo "host tool" >&6; }
14651  else
14652    # We need a cross tool
14653    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14654$as_echo "pre-installed" >&6; }
14655  fi
14656fi
14657
14658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14659$as_echo_n "checking where to find the target windmc... " >&6; }
14660if test "x${build}" != "x${host}" ; then
14661  if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14662    # We already found the complete path
14663    ac_dir=`dirname $WINDMC_FOR_TARGET`
14664    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14665$as_echo "pre-installed in $ac_dir" >&6; }
14666  else
14667    # Canadian cross, just use what we found
14668    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14669$as_echo "pre-installed" >&6; }
14670  fi
14671else
14672  ok=yes
14673  case " ${configdirs} " in
14674    *" binutils "*) ;;
14675    *) ok=no ;;
14676  esac
14677
14678  if test $ok = yes; then
14679    # An in-tree tool is available and we can use it
14680    WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14681    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14682$as_echo "just compiled" >&6; }
14683  elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14684    # We already found the complete path
14685    ac_dir=`dirname $WINDMC_FOR_TARGET`
14686    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14687$as_echo "pre-installed in $ac_dir" >&6; }
14688  elif test "x$target" = "x$host"; then
14689    # We can use an host tool
14690    WINDMC_FOR_TARGET='$(WINDMC)'
14691    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14692$as_echo "host tool" >&6; }
14693  else
14694    # We need a cross tool
14695    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14696$as_echo "pre-installed" >&6; }
14697  fi
14698fi
14699
14700
14701
14702
14703
14704# Certain tools may need extra flags.
14705AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14706RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14707NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14708
14709# When building target libraries, except in a Canadian cross, we use
14710# the same toolchain as the compiler we just built.
14711COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14712COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14713COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14714if test $host = $build; then
14715  case " $configdirs " in
14716    *" gcc "*)
14717      COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14718      COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14719      COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14720      ;;
14721  esac
14722fi
14723
14724
14725
14726
14727
14728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14729$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14730# Check whether --enable-maintainer-mode was given.
14731if test "${enable_maintainer_mode+set}" = set; then :
14732  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14733else
14734  USE_MAINTAINER_MODE=no
14735fi
14736
14737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14738$as_echo "$USE_MAINTAINER_MODE" >&6; }
14739
14740
14741if test "$USE_MAINTAINER_MODE" = yes; then
14742  MAINTAINER_MODE_TRUE=
14743  MAINTAINER_MODE_FALSE='#'
14744else
14745  MAINTAINER_MODE_TRUE='#'
14746  MAINTAINER_MODE_FALSE=
14747fi
14748MAINT=$MAINTAINER_MODE_TRUE
14749
14750# ---------------------
14751# GCC bootstrap support
14752# ---------------------
14753
14754# Stage specific cflags for build.
14755stage1_cflags="-g"
14756case $build in
14757  vax-*-*)
14758    case ${GCC} in
14759      yes) stage1_cflags="-g -Wa,-J" ;;
14760      *) stage1_cflags="-g -J" ;;
14761    esac ;;
14762esac
14763
14764
14765
14766# Enable --enable-checking in stage1 of the compiler.
14767# Check whether --enable-stage1-checking was given.
14768if test "${enable_stage1_checking+set}" = set; then :
14769  enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14770else
14771  if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14772  # For --disable-checking or implicit --enable-checking=release, avoid
14773  # setting --enable-checking=gc in the default stage1 checking for LTO
14774  # bootstraps.  See PR62077.
14775  stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
14776  case $BUILD_CONFIG in
14777    *lto*)
14778      if test "x$enable_checking" = x && \
14779	 test -d ${srcdir}/gcc && \
14780	 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14781	stage1_checking=--enable-checking=yes,types
14782      fi;;
14783    *) stage1_checking=--enable-checking=yes,types;;
14784  esac
14785else
14786  stage1_checking=--enable-checking=$enable_checking,types
14787fi
14788fi
14789
14790
14791
14792# Enable -Werror in bootstrap stage2 and later.
14793# Check whether --enable-werror was given.
14794if test "${enable_werror+set}" = set; then :
14795  enableval=$enable_werror;
14796else
14797  if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14798  enable_werror=yes
14799else
14800  enable_werror=no
14801fi
14802fi
14803
14804case ${enable_werror} in
14805  yes) stage2_werror_flag="--enable-werror-always" ;;
14806  *) stage2_werror_flag="" ;;
14807esac
14808
14809
14810# Enable --enable-host-shared.
14811# Check whether --enable-host-shared was given.
14812if test "${enable_host_shared+set}" = set; then :
14813  enableval=$enable_host_shared; host_shared=$enableval
14814else
14815  host_shared=no
14816fi
14817
14818
14819
14820# PR jit/64780: Require the user to explicitly specify
14821# --enable-host-shared if the jit is enabled, hinting
14822# that they might want to do a separate configure/build of
14823# the jit, to avoid users from slowing down the rest of the
14824# compiler by enabling the jit.
14825if test ${host_shared} = "no" ; then
14826  case "${enable_languages}" in
14827    *jit*)
14828      as_fn_error "
14829Enabling language \"jit\" requires --enable-host-shared.
14830
14831--enable-host-shared typically slows the rest of the compiler down by
14832a few %, so you must explicitly enable it.
14833
14834If you want to build both the jit and the regular compiler, it is often
14835best to do this via two separate configure/builds, in separate
14836directories, to avoid imposing the performance cost of
14837--enable-host-shared on the regular compiler." "$LINENO" 5
14838      ;;
14839    *)
14840      ;;
14841  esac
14842fi
14843
14844# Specify what files to not compare during bootstrap.
14845
14846compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14847case "$target" in
14848  hppa*64*-*-hpux*) ;;
14849  hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14850  powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14851esac
14852
14853
14854ac_config_files="$ac_config_files Makefile"
14855
14856cat >confcache <<\_ACEOF
14857# This file is a shell script that caches the results of configure
14858# tests run on this system so they can be shared between configure
14859# scripts and configure runs, see configure's option --config-cache.
14860# It is not useful on other systems.  If it contains results you don't
14861# want to keep, you may remove or edit it.
14862#
14863# config.status only pays attention to the cache file if you give it
14864# the --recheck option to rerun configure.
14865#
14866# `ac_cv_env_foo' variables (set or unset) will be overridden when
14867# loading this file, other *unset* `ac_cv_foo' will be assigned the
14868# following values.
14869
14870_ACEOF
14871
14872# The following way of writing the cache mishandles newlines in values,
14873# but we know of no workaround that is simple, portable, and efficient.
14874# So, we kill variables containing newlines.
14875# Ultrix sh set writes to stderr and can't be redirected directly,
14876# and sets the high bit in the cache file unless we assign to the vars.
14877(
14878  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14879    eval ac_val=\$$ac_var
14880    case $ac_val in #(
14881    *${as_nl}*)
14882      case $ac_var in #(
14883      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14884$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14885      esac
14886      case $ac_var in #(
14887      _ | IFS | as_nl) ;; #(
14888      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14889      *) { eval $ac_var=; unset $ac_var;} ;;
14890      esac ;;
14891    esac
14892  done
14893
14894  (set) 2>&1 |
14895    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14896    *${as_nl}ac_space=\ *)
14897      # `set' does not quote correctly, so add quotes: double-quote
14898      # substitution turns \\\\ into \\, and sed turns \\ into \.
14899      sed -n \
14900	"s/'/'\\\\''/g;
14901	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14902      ;; #(
14903    *)
14904      # `set' quotes correctly as required by POSIX, so do not add quotes.
14905      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14906      ;;
14907    esac |
14908    sort
14909) |
14910  sed '
14911     /^ac_cv_env_/b end
14912     t clear
14913     :clear
14914     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14915     t end
14916     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14917     :end' >>confcache
14918if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14919  if test -w "$cache_file"; then
14920    test "x$cache_file" != "x/dev/null" &&
14921      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14922$as_echo "$as_me: updating cache $cache_file" >&6;}
14923    cat confcache >$cache_file
14924  else
14925    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14926$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14927  fi
14928fi
14929rm -f confcache
14930
14931test "x$prefix" = xNONE && prefix=$ac_default_prefix
14932# Let make expand exec_prefix.
14933test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14934
14935# Transform confdefs.h into DEFS.
14936# Protect against shell expansion while executing Makefile rules.
14937# Protect against Makefile macro expansion.
14938#
14939# If the first sed substitution is executed (which looks for macros that
14940# take arguments), then branch to the quote section.  Otherwise,
14941# look for a macro that doesn't take arguments.
14942ac_script='
14943:mline
14944/\\$/{
14945 N
14946 s,\\\n,,
14947 b mline
14948}
14949t clear
14950:clear
14951s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
14952t quote
14953s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
14954t quote
14955b any
14956:quote
14957s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14958s/\[/\\&/g
14959s/\]/\\&/g
14960s/\$/$$/g
14961H
14962:any
14963${
14964	g
14965	s/^\n//
14966	s/\n/ /g
14967	p
14968}
14969'
14970DEFS=`sed -n "$ac_script" confdefs.h`
14971
14972
14973ac_libobjs=
14974ac_ltlibobjs=
14975for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14976  # 1. Remove the extension, and $U if already installed.
14977  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14978  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14979  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14980  #    will be set to the directory where LIBOBJS objects are built.
14981  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14982  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14983done
14984LIBOBJS=$ac_libobjs
14985
14986LTLIBOBJS=$ac_ltlibobjs
14987
14988
14989
14990: ${CONFIG_STATUS=./config.status}
14991ac_write_fail=0
14992ac_clean_files_save=$ac_clean_files
14993ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14994{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14995$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14996as_write_fail=0
14997cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14998#! $SHELL
14999# Generated by $as_me.
15000# Run this file to recreate the current configuration.
15001# Compiler output produced by configure, useful for debugging
15002# configure, is in config.log if it exists.
15003
15004debug=false
15005ac_cs_recheck=false
15006ac_cs_silent=false
15007
15008SHELL=\${CONFIG_SHELL-$SHELL}
15009export SHELL
15010_ASEOF
15011cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15012## -------------------- ##
15013## M4sh Initialization. ##
15014## -------------------- ##
15015
15016# Be more Bourne compatible
15017DUALCASE=1; export DUALCASE # for MKS sh
15018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15019  emulate sh
15020  NULLCMD=:
15021  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15022  # is contrary to our usage.  Disable this feature.
15023  alias -g '${1+"$@"}'='"$@"'
15024  setopt NO_GLOB_SUBST
15025else
15026  case `(set -o) 2>/dev/null` in #(
15027  *posix*) :
15028    set -o posix ;; #(
15029  *) :
15030     ;;
15031esac
15032fi
15033
15034
15035as_nl='
15036'
15037export as_nl
15038# Printing a long string crashes Solaris 7 /usr/bin/printf.
15039as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15040as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15041as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15042# Prefer a ksh shell builtin over an external printf program on Solaris,
15043# but without wasting forks for bash or zsh.
15044if test -z "$BASH_VERSION$ZSH_VERSION" \
15045    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15046  as_echo='print -r --'
15047  as_echo_n='print -rn --'
15048elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15049  as_echo='printf %s\n'
15050  as_echo_n='printf %s'
15051else
15052  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15053    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15054    as_echo_n='/usr/ucb/echo -n'
15055  else
15056    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15057    as_echo_n_body='eval
15058      arg=$1;
15059      case $arg in #(
15060      *"$as_nl"*)
15061	expr "X$arg" : "X\\(.*\\)$as_nl";
15062	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15063      esac;
15064      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15065    '
15066    export as_echo_n_body
15067    as_echo_n='sh -c $as_echo_n_body as_echo'
15068  fi
15069  export as_echo_body
15070  as_echo='sh -c $as_echo_body as_echo'
15071fi
15072
15073# The user is always right.
15074if test "${PATH_SEPARATOR+set}" != set; then
15075  PATH_SEPARATOR=:
15076  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15077    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15078      PATH_SEPARATOR=';'
15079  }
15080fi
15081
15082
15083# IFS
15084# We need space, tab and new line, in precisely that order.  Quoting is
15085# there to prevent editors from complaining about space-tab.
15086# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15087# splitting by setting IFS to empty value.)
15088IFS=" ""	$as_nl"
15089
15090# Find who we are.  Look in the path if we contain no directory separator.
15091case $0 in #((
15092  *[\\/]* ) as_myself=$0 ;;
15093  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15094for as_dir in $PATH
15095do
15096  IFS=$as_save_IFS
15097  test -z "$as_dir" && as_dir=.
15098    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15099  done
15100IFS=$as_save_IFS
15101
15102     ;;
15103esac
15104# We did not find ourselves, most probably we were run as `sh COMMAND'
15105# in which case we are not to be found in the path.
15106if test "x$as_myself" = x; then
15107  as_myself=$0
15108fi
15109if test ! -f "$as_myself"; then
15110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15111  exit 1
15112fi
15113
15114# Unset variables that we do not need and which cause bugs (e.g. in
15115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15116# suppresses any "Segmentation fault" message there.  '((' could
15117# trigger a bug in pdksh 5.2.14.
15118for as_var in BASH_ENV ENV MAIL MAILPATH
15119do eval test x\${$as_var+set} = xset \
15120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15121done
15122PS1='$ '
15123PS2='> '
15124PS4='+ '
15125
15126# NLS nuisances.
15127LC_ALL=C
15128export LC_ALL
15129LANGUAGE=C
15130export LANGUAGE
15131
15132# CDPATH.
15133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15134
15135
15136# as_fn_error ERROR [LINENO LOG_FD]
15137# ---------------------------------
15138# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15139# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15140# script with status $?, using 1 if that was 0.
15141as_fn_error ()
15142{
15143  as_status=$?; test $as_status -eq 0 && as_status=1
15144  if test "$3"; then
15145    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15146    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15147  fi
15148  $as_echo "$as_me: error: $1" >&2
15149  as_fn_exit $as_status
15150} # as_fn_error
15151
15152
15153# as_fn_set_status STATUS
15154# -----------------------
15155# Set $? to STATUS, without forking.
15156as_fn_set_status ()
15157{
15158  return $1
15159} # as_fn_set_status
15160
15161# as_fn_exit STATUS
15162# -----------------
15163# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15164as_fn_exit ()
15165{
15166  set +e
15167  as_fn_set_status $1
15168  exit $1
15169} # as_fn_exit
15170
15171# as_fn_unset VAR
15172# ---------------
15173# Portably unset VAR.
15174as_fn_unset ()
15175{
15176  { eval $1=; unset $1;}
15177}
15178as_unset=as_fn_unset
15179# as_fn_append VAR VALUE
15180# ----------------------
15181# Append the text in VALUE to the end of the definition contained in VAR. Take
15182# advantage of any shell optimizations that allow amortized linear growth over
15183# repeated appends, instead of the typical quadratic growth present in naive
15184# implementations.
15185if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15186  eval 'as_fn_append ()
15187  {
15188    eval $1+=\$2
15189  }'
15190else
15191  as_fn_append ()
15192  {
15193    eval $1=\$$1\$2
15194  }
15195fi # as_fn_append
15196
15197# as_fn_arith ARG...
15198# ------------------
15199# Perform arithmetic evaluation on the ARGs, and store the result in the
15200# global $as_val. Take advantage of shells that can avoid forks. The arguments
15201# must be portable across $(()) and expr.
15202if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15203  eval 'as_fn_arith ()
15204  {
15205    as_val=$(( $* ))
15206  }'
15207else
15208  as_fn_arith ()
15209  {
15210    as_val=`expr "$@" || test $? -eq 1`
15211  }
15212fi # as_fn_arith
15213
15214
15215if expr a : '\(a\)' >/dev/null 2>&1 &&
15216   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15217  as_expr=expr
15218else
15219  as_expr=false
15220fi
15221
15222if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15223  as_basename=basename
15224else
15225  as_basename=false
15226fi
15227
15228if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15229  as_dirname=dirname
15230else
15231  as_dirname=false
15232fi
15233
15234as_me=`$as_basename -- "$0" ||
15235$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15236	 X"$0" : 'X\(//\)$' \| \
15237	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15238$as_echo X/"$0" |
15239    sed '/^.*\/\([^/][^/]*\)\/*$/{
15240	    s//\1/
15241	    q
15242	  }
15243	  /^X\/\(\/\/\)$/{
15244	    s//\1/
15245	    q
15246	  }
15247	  /^X\/\(\/\).*/{
15248	    s//\1/
15249	    q
15250	  }
15251	  s/.*/./; q'`
15252
15253# Avoid depending upon Character Ranges.
15254as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15255as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15256as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15257as_cr_digits='0123456789'
15258as_cr_alnum=$as_cr_Letters$as_cr_digits
15259
15260ECHO_C= ECHO_N= ECHO_T=
15261case `echo -n x` in #(((((
15262-n*)
15263  case `echo 'xy\c'` in
15264  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15265  xy)  ECHO_C='\c';;
15266  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15267       ECHO_T='	';;
15268  esac;;
15269*)
15270  ECHO_N='-n';;
15271esac
15272
15273rm -f conf$$ conf$$.exe conf$$.file
15274if test -d conf$$.dir; then
15275  rm -f conf$$.dir/conf$$.file
15276else
15277  rm -f conf$$.dir
15278  mkdir conf$$.dir 2>/dev/null
15279fi
15280if (echo >conf$$.file) 2>/dev/null; then
15281  if ln -s conf$$.file conf$$ 2>/dev/null; then
15282    as_ln_s='ln -s'
15283    # ... but there are two gotchas:
15284    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15285    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15286    # In both cases, we have to default to `cp -p'.
15287    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15288      as_ln_s='cp -p'
15289  elif ln conf$$.file conf$$ 2>/dev/null; then
15290    as_ln_s=ln
15291  else
15292    as_ln_s='cp -p'
15293  fi
15294else
15295  as_ln_s='cp -p'
15296fi
15297rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15298rmdir conf$$.dir 2>/dev/null
15299
15300
15301# as_fn_mkdir_p
15302# -------------
15303# Create "$as_dir" as a directory, including parents if necessary.
15304as_fn_mkdir_p ()
15305{
15306
15307  case $as_dir in #(
15308  -*) as_dir=./$as_dir;;
15309  esac
15310  test -d "$as_dir" || eval $as_mkdir_p || {
15311    as_dirs=
15312    while :; do
15313      case $as_dir in #(
15314      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15315      *) as_qdir=$as_dir;;
15316      esac
15317      as_dirs="'$as_qdir' $as_dirs"
15318      as_dir=`$as_dirname -- "$as_dir" ||
15319$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15320	 X"$as_dir" : 'X\(//\)[^/]' \| \
15321	 X"$as_dir" : 'X\(//\)$' \| \
15322	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15323$as_echo X"$as_dir" |
15324    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15325	    s//\1/
15326	    q
15327	  }
15328	  /^X\(\/\/\)[^/].*/{
15329	    s//\1/
15330	    q
15331	  }
15332	  /^X\(\/\/\)$/{
15333	    s//\1/
15334	    q
15335	  }
15336	  /^X\(\/\).*/{
15337	    s//\1/
15338	    q
15339	  }
15340	  s/.*/./; q'`
15341      test -d "$as_dir" && break
15342    done
15343    test -z "$as_dirs" || eval "mkdir $as_dirs"
15344  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15345
15346
15347} # as_fn_mkdir_p
15348if mkdir -p . 2>/dev/null; then
15349  as_mkdir_p='mkdir -p "$as_dir"'
15350else
15351  test -d ./-p && rmdir ./-p
15352  as_mkdir_p=false
15353fi
15354
15355if test -x / >/dev/null 2>&1; then
15356  as_test_x='test -x'
15357else
15358  if ls -dL / >/dev/null 2>&1; then
15359    as_ls_L_option=L
15360  else
15361    as_ls_L_option=
15362  fi
15363  as_test_x='
15364    eval sh -c '\''
15365      if test -d "$1"; then
15366	test -d "$1/.";
15367      else
15368	case $1 in #(
15369	-*)set "./$1";;
15370	esac;
15371	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15372	???[sx]*):;;*)false;;esac;fi
15373    '\'' sh
15374  '
15375fi
15376as_executable_p=$as_test_x
15377
15378# Sed expression to map a string onto a valid CPP name.
15379as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15380
15381# Sed expression to map a string onto a valid variable name.
15382as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15383
15384
15385exec 6>&1
15386## ----------------------------------- ##
15387## Main body of $CONFIG_STATUS script. ##
15388## ----------------------------------- ##
15389_ASEOF
15390test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15391
15392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15393# Save the log message, to keep $0 and so on meaningful, and to
15394# report actual input values of CONFIG_FILES etc. instead of their
15395# values after options handling.
15396ac_log="
15397This file was extended by $as_me, which was
15398generated by GNU Autoconf 2.64.  Invocation command line was
15399
15400  CONFIG_FILES    = $CONFIG_FILES
15401  CONFIG_HEADERS  = $CONFIG_HEADERS
15402  CONFIG_LINKS    = $CONFIG_LINKS
15403  CONFIG_COMMANDS = $CONFIG_COMMANDS
15404  $ $0 $@
15405
15406on `(hostname || uname -n) 2>/dev/null | sed 1q`
15407"
15408
15409_ACEOF
15410
15411case $ac_config_files in *"
15412"*) set x $ac_config_files; shift; ac_config_files=$*;;
15413esac
15414
15415
15416
15417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15418# Files that config.status was made for.
15419config_files="$ac_config_files"
15420
15421_ACEOF
15422
15423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15424ac_cs_usage="\
15425\`$as_me' instantiates files and other configuration actions
15426from templates according to the current configuration.  Unless the files
15427and actions are specified as TAGs, all are instantiated by default.
15428
15429Usage: $0 [OPTION]... [TAG]...
15430
15431  -h, --help       print this help, then exit
15432  -V, --version    print version number and configuration settings, then exit
15433  -q, --quiet, --silent
15434                   do not print progress messages
15435  -d, --debug      don't remove temporary files
15436      --recheck    update $as_me by reconfiguring in the same conditions
15437      --file=FILE[:TEMPLATE]
15438                   instantiate the configuration file FILE
15439
15440Configuration files:
15441$config_files
15442
15443Report bugs to the package provider."
15444
15445_ACEOF
15446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15447ac_cs_version="\\
15448config.status
15449configured by $0, generated by GNU Autoconf 2.64,
15450  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15451
15452Copyright (C) 2009 Free Software Foundation, Inc.
15453This config.status script is free software; the Free Software Foundation
15454gives unlimited permission to copy, distribute and modify it."
15455
15456ac_pwd='$ac_pwd'
15457srcdir='$srcdir'
15458INSTALL='$INSTALL'
15459AWK='$AWK'
15460test -n "\$AWK" || AWK=awk
15461_ACEOF
15462
15463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15464# The default lists apply if the user does not specify any file.
15465ac_need_defaults=:
15466while test $# != 0
15467do
15468  case $1 in
15469  --*=*)
15470    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15471    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15472    ac_shift=:
15473    ;;
15474  *)
15475    ac_option=$1
15476    ac_optarg=$2
15477    ac_shift=shift
15478    ;;
15479  esac
15480
15481  case $ac_option in
15482  # Handling of the options.
15483  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15484    ac_cs_recheck=: ;;
15485  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15486    $as_echo "$ac_cs_version"; exit ;;
15487  --debug | --debu | --deb | --de | --d | -d )
15488    debug=: ;;
15489  --file | --fil | --fi | --f )
15490    $ac_shift
15491    case $ac_optarg in
15492    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15493    esac
15494    as_fn_append CONFIG_FILES " '$ac_optarg'"
15495    ac_need_defaults=false;;
15496  --he | --h |  --help | --hel | -h )
15497    $as_echo "$ac_cs_usage"; exit ;;
15498  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15499  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15500    ac_cs_silent=: ;;
15501
15502  # This is an error.
15503  -*) as_fn_error "unrecognized option: \`$1'
15504Try \`$0 --help' for more information." ;;
15505
15506  *) as_fn_append ac_config_targets " $1"
15507     ac_need_defaults=false ;;
15508
15509  esac
15510  shift
15511done
15512
15513ac_configure_extra_args=
15514
15515if $ac_cs_silent; then
15516  exec 6>/dev/null
15517  ac_configure_extra_args="$ac_configure_extra_args --silent"
15518fi
15519
15520_ACEOF
15521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15522if \$ac_cs_recheck; then
15523  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15524  shift
15525  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15526  CONFIG_SHELL='$SHELL'
15527  export CONFIG_SHELL
15528  exec "\$@"
15529fi
15530
15531_ACEOF
15532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15533exec 5>>config.log
15534{
15535  echo
15536  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15537## Running $as_me. ##
15538_ASBOX
15539  $as_echo "$ac_log"
15540} >&5
15541
15542_ACEOF
15543cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15544#
15545# INIT-COMMANDS
15546#
15547extrasub_build="$extrasub_build"
15548   extrasub_host="$extrasub_host"
15549   extrasub_target="$extrasub_target"
15550
15551_ACEOF
15552
15553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15554
15555# Handling of arguments.
15556for ac_config_target in $ac_config_targets
15557do
15558  case $ac_config_target in
15559    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15560
15561  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15562  esac
15563done
15564
15565
15566# If the user did not use the arguments to specify the items to instantiate,
15567# then the envvar interface is used.  Set only those that are not.
15568# We use the long form for the default assignment because of an extremely
15569# bizarre bug on SunOS 4.1.3.
15570if $ac_need_defaults; then
15571  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15572fi
15573
15574# Have a temporary directory for convenience.  Make it in the build tree
15575# simply because there is no reason against having it here, and in addition,
15576# creating and moving files from /tmp can sometimes cause problems.
15577# Hook for its removal unless debugging.
15578# Note that there is a small window in which the directory will not be cleaned:
15579# after its creation but before its name has been assigned to `$tmp'.
15580$debug ||
15581{
15582  tmp=
15583  trap 'exit_status=$?
15584  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15585' 0
15586  trap 'as_fn_exit 1' 1 2 13 15
15587}
15588# Create a (secure) tmp directory for tmp files.
15589
15590{
15591  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15592  test -n "$tmp" && test -d "$tmp"
15593}  ||
15594{
15595  tmp=./conf$$-$RANDOM
15596  (umask 077 && mkdir "$tmp")
15597} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15598
15599# Set up the scripts for CONFIG_FILES section.
15600# No need to generate them if there are no CONFIG_FILES.
15601# This happens for instance with `./config.status config.h'.
15602if test -n "$CONFIG_FILES"; then
15603
15604if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15605  ac_cs_awk_getline=:
15606  ac_cs_awk_pipe_init=
15607  ac_cs_awk_read_file='
15608      while ((getline aline < (F[key])) > 0)
15609	print(aline)
15610      close(F[key])'
15611  ac_cs_awk_pipe_fini=
15612else
15613  ac_cs_awk_getline=false
15614  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15615  ac_cs_awk_read_file='
15616      print "|#_!!_#|"
15617      print "cat " F[key] " &&"
15618      '$ac_cs_awk_pipe_init
15619  # The final `:' finishes the AND list.
15620  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15621fi
15622ac_cr=`echo X | tr X '\015'`
15623# On cygwin, bash can eat \r inside `` if the user requested igncr.
15624# But we know of no other shell where ac_cr would be empty at this
15625# point, so we can use a bashism as a fallback.
15626if test "x$ac_cr" = x; then
15627  eval ac_cr=\$\'\\r\'
15628fi
15629ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15630if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15631  ac_cs_awk_cr='\r'
15632else
15633  ac_cs_awk_cr=$ac_cr
15634fi
15635
15636echo 'BEGIN {' >"$tmp/subs1.awk" &&
15637_ACEOF
15638
15639# Create commands to substitute file output variables.
15640{
15641  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15642  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15643  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15644  echo "_ACAWK" &&
15645  echo "_ACEOF"
15646} >conf$$files.sh &&
15647. ./conf$$files.sh ||
15648  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15649rm -f conf$$files.sh
15650
15651{
15652  echo "cat >conf$$subs.awk <<_ACEOF" &&
15653  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15654  echo "_ACEOF"
15655} >conf$$subs.sh ||
15656  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15657ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15658ac_delim='%!_!# '
15659for ac_last_try in false false false false false :; do
15660  . ./conf$$subs.sh ||
15661    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15662
15663  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15664  if test $ac_delim_n = $ac_delim_num; then
15665    break
15666  elif $ac_last_try; then
15667    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15668  else
15669    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15670  fi
15671done
15672rm -f conf$$subs.sh
15673
15674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15675cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15676_ACEOF
15677sed -n '
15678h
15679s/^/S["/; s/!.*/"]=/
15680p
15681g
15682s/^[^!]*!//
15683:repl
15684t repl
15685s/'"$ac_delim"'$//
15686t delim
15687:nl
15688h
15689s/\(.\{148\}\).*/\1/
15690t more1
15691s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15692p
15693n
15694b repl
15695:more1
15696s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15697p
15698g
15699s/.\{148\}//
15700t nl
15701:delim
15702h
15703s/\(.\{148\}\).*/\1/
15704t more2
15705s/["\\]/\\&/g; s/^/"/; s/$/"/
15706p
15707b
15708:more2
15709s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15710p
15711g
15712s/.\{148\}//
15713t delim
15714' <conf$$subs.awk | sed '
15715/^[^""]/{
15716  N
15717  s/\n//
15718}
15719' >>$CONFIG_STATUS || ac_write_fail=1
15720rm -f conf$$subs.awk
15721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15722_ACAWK
15723cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15724  for (key in S) S_is_set[key] = 1
15725  FS = ""
15726  \$ac_cs_awk_pipe_init
15727}
15728{
15729  line = $ 0
15730  nfields = split(line, field, "@")
15731  substed = 0
15732  len = length(field[1])
15733  for (i = 2; i < nfields; i++) {
15734    key = field[i]
15735    keylen = length(key)
15736    if (S_is_set[key]) {
15737      value = S[key]
15738      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15739      len += length(value) + length(field[++i])
15740      substed = 1
15741    } else
15742      len += 1 + keylen
15743  }
15744  if (nfields == 3 && !substed) {
15745    key = field[2]
15746    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
15747      \$ac_cs_awk_read_file
15748      next
15749    }
15750  }
15751  print line
15752}
15753\$ac_cs_awk_pipe_fini
15754_ACAWK
15755_ACEOF
15756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15757if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15758  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15759else
15760  cat
15761fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15762  || as_fn_error "could not setup config files machinery" "$LINENO" 5
15763_ACEOF
15764
15765# VPATH may cause trouble with some makes, so we remove $(srcdir),
15766# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15767# trailing colons and then remove the whole line if VPATH becomes empty
15768# (actually we leave an empty line to preserve line numbers).
15769if test "x$srcdir" = x.; then
15770  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15771s/:*\$(srcdir):*/:/
15772s/:*\${srcdir}:*/:/
15773s/:*@srcdir@:*/:/
15774s/^\([^=]*=[	 ]*\):*/\1/
15775s/:*$//
15776s/^[^=]*=[	 ]*$//
15777}'
15778fi
15779
15780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15781fi # test -n "$CONFIG_FILES"
15782
15783
15784eval set X "  :F $CONFIG_FILES      "
15785shift
15786for ac_tag
15787do
15788  case $ac_tag in
15789  :[FHLC]) ac_mode=$ac_tag; continue;;
15790  esac
15791  case $ac_mode$ac_tag in
15792  :[FHL]*:*);;
15793  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15794  :[FH]-) ac_tag=-:-;;
15795  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15796  esac
15797  ac_save_IFS=$IFS
15798  IFS=:
15799  set x $ac_tag
15800  IFS=$ac_save_IFS
15801  shift
15802  ac_file=$1
15803  shift
15804
15805  case $ac_mode in
15806  :L) ac_source=$1;;
15807  :[FH])
15808    ac_file_inputs=
15809    for ac_f
15810    do
15811      case $ac_f in
15812      -) ac_f="$tmp/stdin";;
15813      *) # Look for the file first in the build tree, then in the source tree
15814	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15815	 # because $ac_f cannot contain `:'.
15816	 test -f "$ac_f" ||
15817	   case $ac_f in
15818	   [\\/$]*) false;;
15819	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15820	   esac ||
15821	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15822      esac
15823      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15824      as_fn_append ac_file_inputs " '$ac_f'"
15825    done
15826
15827    # Let's still pretend it is `configure' which instantiates (i.e., don't
15828    # use $as_me), people would be surprised to read:
15829    #    /* config.h.  Generated by config.status.  */
15830    configure_input='Generated from '`
15831	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15832	`' by configure.'
15833    if test x"$ac_file" != x-; then
15834      configure_input="$ac_file.  $configure_input"
15835      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15836$as_echo "$as_me: creating $ac_file" >&6;}
15837    fi
15838    # Neutralize special characters interpreted by sed in replacement strings.
15839    case $configure_input in #(
15840    *\&* | *\|* | *\\* )
15841       ac_sed_conf_input=`$as_echo "$configure_input" |
15842       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15843    *) ac_sed_conf_input=$configure_input;;
15844    esac
15845
15846    case $ac_tag in
15847    *:-:* | *:-) cat >"$tmp/stdin" \
15848      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15849    esac
15850    ;;
15851  esac
15852
15853  ac_dir=`$as_dirname -- "$ac_file" ||
15854$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15855	 X"$ac_file" : 'X\(//\)[^/]' \| \
15856	 X"$ac_file" : 'X\(//\)$' \| \
15857	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15858$as_echo X"$ac_file" |
15859    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15860	    s//\1/
15861	    q
15862	  }
15863	  /^X\(\/\/\)[^/].*/{
15864	    s//\1/
15865	    q
15866	  }
15867	  /^X\(\/\/\)$/{
15868	    s//\1/
15869	    q
15870	  }
15871	  /^X\(\/\).*/{
15872	    s//\1/
15873	    q
15874	  }
15875	  s/.*/./; q'`
15876  as_dir="$ac_dir"; as_fn_mkdir_p
15877  ac_builddir=.
15878
15879case "$ac_dir" in
15880.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15881*)
15882  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15883  # A ".." for each directory in $ac_dir_suffix.
15884  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15885  case $ac_top_builddir_sub in
15886  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15887  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15888  esac ;;
15889esac
15890ac_abs_top_builddir=$ac_pwd
15891ac_abs_builddir=$ac_pwd$ac_dir_suffix
15892# for backward compatibility:
15893ac_top_builddir=$ac_top_build_prefix
15894
15895case $srcdir in
15896  .)  # We are building in place.
15897    ac_srcdir=.
15898    ac_top_srcdir=$ac_top_builddir_sub
15899    ac_abs_top_srcdir=$ac_pwd ;;
15900  [\\/]* | ?:[\\/]* )  # Absolute name.
15901    ac_srcdir=$srcdir$ac_dir_suffix;
15902    ac_top_srcdir=$srcdir
15903    ac_abs_top_srcdir=$srcdir ;;
15904  *) # Relative name.
15905    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15906    ac_top_srcdir=$ac_top_build_prefix$srcdir
15907    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15908esac
15909ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15910
15911
15912  case $ac_mode in
15913  :F)
15914  #
15915  # CONFIG_FILE
15916  #
15917
15918  case $INSTALL in
15919  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15920  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15921  esac
15922_ACEOF
15923
15924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15925# If the template does not know about datarootdir, expand it.
15926# FIXME: This hack should be removed a few years after 2.60.
15927ac_datarootdir_hack=; ac_datarootdir_seen=
15928ac_sed_dataroot='
15929/datarootdir/ {
15930  p
15931  q
15932}
15933/@datadir@/p
15934/@docdir@/p
15935/@infodir@/p
15936/@localedir@/p
15937/@mandir@/p'
15938case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15939*datarootdir*) ac_datarootdir_seen=yes;;
15940*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15941  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15942$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15943_ACEOF
15944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15945  ac_datarootdir_hack='
15946  s&@datadir@&$datadir&g
15947  s&@docdir@&$docdir&g
15948  s&@infodir@&$infodir&g
15949  s&@localedir@&$localedir&g
15950  s&@mandir@&$mandir&g
15951  s&\\\${datarootdir}&$datarootdir&g' ;;
15952esac
15953_ACEOF
15954
15955# Neutralize VPATH when `$srcdir' = `.'.
15956# Shell code in configure.ac might set extrasub.
15957# FIXME: do we really want to maintain this feature?
15958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15959ac_sed_extra="$ac_vpsub
15960$extrasub
15961_ACEOF
15962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15963:t
15964/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15965s|@configure_input@|$ac_sed_conf_input|;t t
15966s&@top_builddir@&$ac_top_builddir_sub&;t t
15967s&@top_build_prefix@&$ac_top_build_prefix&;t t
15968s&@srcdir@&$ac_srcdir&;t t
15969s&@abs_srcdir@&$ac_abs_srcdir&;t t
15970s&@top_srcdir@&$ac_top_srcdir&;t t
15971s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15972s&@builddir@&$ac_builddir&;t t
15973s&@abs_builddir@&$ac_abs_builddir&;t t
15974s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15975s&@INSTALL@&$ac_INSTALL&;t t
15976$ac_datarootdir_hack
15977"
15978eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15979if $ac_cs_awk_getline; then
15980  $AWK -f "$tmp/subs.awk"
15981else
15982  $AWK -f "$tmp/subs.awk" | $SHELL
15983fi >$tmp/out \
15984  || as_fn_error "could not create $ac_file" "$LINENO" 5
15985
15986test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15987  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15988  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15989  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15990which seems to be undefined.  Please make sure it is defined." >&5
15991$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15992which seems to be undefined.  Please make sure it is defined." >&2;}
15993
15994  rm -f "$tmp/stdin"
15995  case $ac_file in
15996  -) cat "$tmp/out" && rm -f "$tmp/out";;
15997  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15998  esac \
15999  || as_fn_error "could not create $ac_file" "$LINENO" 5
16000 ;;
16001
16002
16003
16004  esac
16005
16006
16007  case $ac_file$ac_mode in
16008    "Makefile":F) sed "$extrasub_build" Makefile |
16009   sed "$extrasub_host" |
16010   sed "$extrasub_target" > mf$$
16011   mv -f mf$$ Makefile ;;
16012
16013  esac
16014done # for ac_tag
16015
16016
16017as_fn_exit 0
16018_ACEOF
16019ac_clean_files=$ac_clean_files_save
16020
16021test $ac_write_fail = 0 ||
16022  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16023
16024
16025# configure is writing to config.log, and then calls config.status.
16026# config.status does its own redirection, appending to config.log.
16027# Unfortunately, on DOS this fails, as config.log is still kept open
16028# by configure, so config.status won't be able to write to it; its
16029# output is simply discarded.  So we exec the FD to /dev/null,
16030# effectively closing config.log, so it can be properly (re)opened and
16031# appended to by config.status.  When coming back to configure, we
16032# need to make the FD available again.
16033if test "$no_create" != yes; then
16034  ac_cs_success=:
16035  ac_config_status_args=
16036  test "$silent" = yes &&
16037    ac_config_status_args="$ac_config_status_args --quiet"
16038  exec 5>/dev/null
16039  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16040  exec 5>>config.log
16041  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16042  # would make configure fail if this is the last instruction.
16043  $ac_cs_success || as_fn_exit $?
16044fi
16045if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16046  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16047$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16048fi
16049
16050