xref: /netbsd-src/external/gpl3/gcc.old/dist/configure (revision b7b7574d3bf8eeb51a1fa3977b59142ec6434a55)
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
556# Factoring default headers for most tests.
557ac_includes_default="\
558#include <stdio.h>
559#ifdef HAVE_SYS_TYPES_H
560# include <sys/types.h>
561#endif
562#ifdef HAVE_SYS_STAT_H
563# include <sys/stat.h>
564#endif
565#ifdef STDC_HEADERS
566# include <stdlib.h>
567# include <stddef.h>
568#else
569# ifdef HAVE_STDLIB_H
570#  include <stdlib.h>
571# endif
572#endif
573#ifdef HAVE_STRING_H
574# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
575#  include <memory.h>
576# endif
577# include <string.h>
578#endif
579#ifdef HAVE_STRINGS_H
580# include <strings.h>
581#endif
582#ifdef HAVE_INTTYPES_H
583# include <inttypes.h>
584#endif
585#ifdef HAVE_STDINT_H
586# include <stdint.h>
587#endif
588#ifdef HAVE_UNISTD_H
589# include <unistd.h>
590#endif"
591
592ac_subst_vars='LTLIBOBJS
593LIBOBJS
594compare_exclusions
595stage2_werror_flag
596stage1_checking
597stage1_cflags
598MAINT
599MAINTAINER_MODE_FALSE
600MAINTAINER_MODE_TRUE
601COMPILER_NM_FOR_TARGET
602COMPILER_LD_FOR_TARGET
603COMPILER_AS_FOR_TARGET
604FLAGS_FOR_TARGET
605RAW_CXX_FOR_TARGET
606WINDMC_FOR_TARGET
607WINDRES_FOR_TARGET
608STRIP_FOR_TARGET
609RANLIB_FOR_TARGET
610OBJDUMP_FOR_TARGET
611NM_FOR_TARGET
612LIPO_FOR_TARGET
613LD_FOR_TARGET
614DLLTOOL_FOR_TARGET
615AS_FOR_TARGET
616AR_FOR_TARGET
617GFORTRAN_FOR_TARGET
618GCJ_FOR_TARGET
619GCC_FOR_TARGET
620CXX_FOR_TARGET
621CC_FOR_TARGET
622OBJDUMP
623OBJCOPY
624WINDMC
625WINDRES
626STRIP
627RANLIB
628NM
629LIPO
630LD
631DLLTOOL
632AS
633AR
634RUNTEST
635EXPECT
636MAKEINFO
637FLEX
638LEX
639M4
640BISON
641YACC
642config_shell
643WINDRES_FOR_BUILD
644WINDMC_FOR_BUILD
645RANLIB_FOR_BUILD
646NM_FOR_BUILD
647LD_FOR_BUILD
648LDFLAGS_FOR_BUILD
649GFORTRAN_FOR_BUILD
650GCJ_FOR_BUILD
651DLLTOOL_FOR_BUILD
652CXX_FOR_BUILD
653CXXFLAGS_FOR_BUILD
654CFLAGS_FOR_BUILD
655CC_FOR_BUILD
656AS_FOR_BUILD
657AR_FOR_BUILD
658target_configargs
659target_configdirs
660configdirs
661host_configargs
662build_configdirs
663build_configargs
664INSTALL_GDB_TK
665GDB_TK
666CONFIGURE_GDB_TK
667build_tooldir
668tooldir
669GCC_SHLIB_SUBDIR
670RPATH_ENVVAR
671BUILD_CONFIG
672CXXFLAGS_FOR_TARGET
673CFLAGS_FOR_TARGET
674DEBUG_PREFIX_CFLAGS_FOR_TARGET
675SYSROOT_CFLAGS_FOR_TARGET
676stage1_languages
677extra_host_libiberty_configure_flags
678libelfinc
679libelflibs
680EGREP
681GREP
682CPP
683clooginc
684clooglibs
685pplinc
686ppllibs
687poststage1_ldflags
688poststage1_libs
689stage1_libs
690stage1_ldflags
691extra_mpc_mpfr_configure_flags
692extra_mpc_gmp_configure_flags
693extra_mpfr_configure_flags
694gmpinc
695gmplibs
696do_compare
697GNATMAKE
698GNATBIND
699ac_ct_CXX
700CXXFLAGS
701CXX
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
709target_subdir
710host_subdir
711build_subdir
712build_libsubdir
713AWK
714SED
715LN_S
716LN
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720target_os
721target_vendor
722target_cpu
723target
724host_os
725host_vendor
726host_cpu
727host
728target_noncanonical
729host_noncanonical
730build_noncanonical
731build_os
732build_vendor
733build_cpu
734build
735TOPLEVEL_CONFIGURE_ARGUMENTS
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
766PACKAGE_URL
767PACKAGE_BUGREPORT
768PACKAGE_STRING
769PACKAGE_VERSION
770PACKAGE_TARNAME
771PACKAGE_NAME
772PATH_SEPARATOR
773SHELL'
774ac_subst_files='serialization_dependencies
775host_makefile_frag
776target_makefile_frag
777alphaieee_frag
778ospace_frag'
779ac_user_opts='
780enable_option_checking
781with_build_libsubdir
782enable_gold
783enable_libada
784enable_libssp
785enable_build_with_cxx
786with_mpc
787with_mpc_include
788with_mpc_lib
789with_mpfr_dir
790with_mpfr
791with_mpfr_include
792with_mpfr_lib
793with_gmp_dir
794with_gmp
795with_gmp_include
796with_gmp_lib
797with_host_libstdcxx
798with_stage1_ldflags
799with_stage1_libs
800with_boot_libs
801with_boot_ldflags
802with_ppl
803with_ppl_include
804with_ppl_lib
805enable_ppl_version_check
806with_cloog
807with_cloog_include
808with_cloog_lib
809enable_cloog_version_check
810enable_lto
811with_libelf
812with_libelf_include
813with_libelf_lib
814enable_stage1_languages
815enable_objc_gc
816with_build_sysroot
817with_debug_prefix_map
818enable_bootstrap
819with_build_config
820enable_serial_configure
821with_build_time_tools
822enable_maintainer_mode
823enable_stage1_checking
824enable_werror
825'
826      ac_precious_vars='build_alias
827host_alias
828target_alias
829CC
830CFLAGS
831LDFLAGS
832LIBS
833CPPFLAGS
834CXX
835CXXFLAGS
836CCC
837CPP
838AR
839AS
840DLLTOOL
841LD
842LIPO
843NM
844RANLIB
845STRIP
846WINDRES
847WINDMC
848OBJCOPY
849OBJDUMP
850CC_FOR_TARGET
851CXX_FOR_TARGET
852GCC_FOR_TARGET
853GCJ_FOR_TARGET
854GFORTRAN_FOR_TARGET
855AR_FOR_TARGET
856AS_FOR_TARGET
857DLLTOOL_FOR_TARGET
858LD_FOR_TARGET
859LIPO_FOR_TARGET
860NM_FOR_TARGET
861OBJDUMP_FOR_TARGET
862RANLIB_FOR_TARGET
863STRIP_FOR_TARGET
864WINDRES_FOR_TARGET
865WINDMC_FOR_TARGET'
866
867
868# Initialize some variables set by options.
869ac_init_help=
870ac_init_version=false
871ac_unrecognized_opts=
872ac_unrecognized_sep=
873# The variables have the same names as the options, with
874# dashes changed to underlines.
875cache_file=/dev/null
876exec_prefix=NONE
877no_create=
878no_recursion=
879prefix=NONE
880program_prefix=NONE
881program_suffix=NONE
882program_transform_name=s,x,x,
883silent=
884site=
885srcdir=
886verbose=
887x_includes=NONE
888x_libraries=NONE
889
890# Installation directory options.
891# These are left unexpanded so users can "make install exec_prefix=/foo"
892# and all the variables that are supposed to be based on exec_prefix
893# by default will actually change.
894# Use braces instead of parens because sh, perl, etc. also accept them.
895# (The list follows the same order as the GNU Coding Standards.)
896bindir='${exec_prefix}/bin'
897sbindir='${exec_prefix}/sbin'
898libexecdir='${exec_prefix}/libexec'
899datarootdir='${prefix}/share'
900datadir='${datarootdir}'
901sysconfdir='${prefix}/etc'
902sharedstatedir='${prefix}/com'
903localstatedir='${prefix}/var'
904includedir='${prefix}/include'
905oldincludedir='/usr/include'
906docdir='${datarootdir}/doc/${PACKAGE}'
907infodir='${datarootdir}/info'
908htmldir='${docdir}'
909dvidir='${docdir}'
910pdfdir='${docdir}'
911psdir='${docdir}'
912libdir='${exec_prefix}/lib'
913localedir='${datarootdir}/locale'
914mandir='${datarootdir}/man'
915
916ac_prev=
917ac_dashdash=
918for ac_option
919do
920  # If the previous option needs an argument, assign it.
921  if test -n "$ac_prev"; then
922    eval $ac_prev=\$ac_option
923    ac_prev=
924    continue
925  fi
926
927  case $ac_option in
928  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929  *)	ac_optarg=yes ;;
930  esac
931
932  # Accept the important Cygnus configure options, so we can diagnose typos.
933
934  case $ac_dashdash$ac_option in
935  --)
936    ac_dashdash=yes ;;
937
938  -bindir | --bindir | --bindi | --bind | --bin | --bi)
939    ac_prev=bindir ;;
940  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941    bindir=$ac_optarg ;;
942
943  -build | --build | --buil | --bui | --bu)
944    ac_prev=build_alias ;;
945  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946    build_alias=$ac_optarg ;;
947
948  -cache-file | --cache-file | --cache-fil | --cache-fi \
949  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950    ac_prev=cache_file ;;
951  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953    cache_file=$ac_optarg ;;
954
955  --config-cache | -C)
956    cache_file=config.cache ;;
957
958  -datadir | --datadir | --datadi | --datad)
959    ac_prev=datadir ;;
960  -datadir=* | --datadir=* | --datadi=* | --datad=*)
961    datadir=$ac_optarg ;;
962
963  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964  | --dataroo | --dataro | --datar)
965    ac_prev=datarootdir ;;
966  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968    datarootdir=$ac_optarg ;;
969
970  -disable-* | --disable-*)
971    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972    # Reject names that are not valid shell variable names.
973    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974      as_fn_error "invalid feature name: $ac_useropt"
975    ac_useropt_orig=$ac_useropt
976    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977    case $ac_user_opts in
978      *"
979"enable_$ac_useropt"
980"*) ;;
981      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982	 ac_unrecognized_sep=', ';;
983    esac
984    eval enable_$ac_useropt=no ;;
985
986  -docdir | --docdir | --docdi | --doc | --do)
987    ac_prev=docdir ;;
988  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989    docdir=$ac_optarg ;;
990
991  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992    ac_prev=dvidir ;;
993  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994    dvidir=$ac_optarg ;;
995
996  -enable-* | --enable-*)
997    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998    # Reject names that are not valid shell variable names.
999    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000      as_fn_error "invalid feature name: $ac_useropt"
1001    ac_useropt_orig=$ac_useropt
1002    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003    case $ac_user_opts in
1004      *"
1005"enable_$ac_useropt"
1006"*) ;;
1007      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008	 ac_unrecognized_sep=', ';;
1009    esac
1010    eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014  | --exec | --exe | --ex)
1015    ac_prev=exec_prefix ;;
1016  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018  | --exec=* | --exe=* | --ex=*)
1019    exec_prefix=$ac_optarg ;;
1020
1021  -gas | --gas | --ga | --g)
1022    # Obsolete; use --with-gas.
1023    with_gas=yes ;;
1024
1025  -help | --help | --hel | --he | -h)
1026    ac_init_help=long ;;
1027  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028    ac_init_help=recursive ;;
1029  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030    ac_init_help=short ;;
1031
1032  -host | --host | --hos | --ho)
1033    ac_prev=host_alias ;;
1034  -host=* | --host=* | --hos=* | --ho=*)
1035    host_alias=$ac_optarg ;;
1036
1037  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038    ac_prev=htmldir ;;
1039  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040  | --ht=*)
1041    htmldir=$ac_optarg ;;
1042
1043  -includedir | --includedir | --includedi | --included | --include \
1044  | --includ | --inclu | --incl | --inc)
1045    ac_prev=includedir ;;
1046  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047  | --includ=* | --inclu=* | --incl=* | --inc=*)
1048    includedir=$ac_optarg ;;
1049
1050  -infodir | --infodir | --infodi | --infod | --info | --inf)
1051    ac_prev=infodir ;;
1052  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053    infodir=$ac_optarg ;;
1054
1055  -libdir | --libdir | --libdi | --libd)
1056    ac_prev=libdir ;;
1057  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058    libdir=$ac_optarg ;;
1059
1060  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061  | --libexe | --libex | --libe)
1062    ac_prev=libexecdir ;;
1063  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064  | --libexe=* | --libex=* | --libe=*)
1065    libexecdir=$ac_optarg ;;
1066
1067  -localedir | --localedir | --localedi | --localed | --locale)
1068    ac_prev=localedir ;;
1069  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070    localedir=$ac_optarg ;;
1071
1072  -localstatedir | --localstatedir | --localstatedi | --localstated \
1073  | --localstate | --localstat | --localsta | --localst | --locals)
1074    ac_prev=localstatedir ;;
1075  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077    localstatedir=$ac_optarg ;;
1078
1079  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080    ac_prev=mandir ;;
1081  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082    mandir=$ac_optarg ;;
1083
1084  -nfp | --nfp | --nf)
1085    # Obsolete; use --without-fp.
1086    with_fp=no ;;
1087
1088  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089  | --no-cr | --no-c | -n)
1090    no_create=yes ;;
1091
1092  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094    no_recursion=yes ;;
1095
1096  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098  | --oldin | --oldi | --old | --ol | --o)
1099    ac_prev=oldincludedir ;;
1100  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103    oldincludedir=$ac_optarg ;;
1104
1105  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106    ac_prev=prefix ;;
1107  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108    prefix=$ac_optarg ;;
1109
1110  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111  | --program-pre | --program-pr | --program-p)
1112    ac_prev=program_prefix ;;
1113  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115    program_prefix=$ac_optarg ;;
1116
1117  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118  | --program-suf | --program-su | --program-s)
1119    ac_prev=program_suffix ;;
1120  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122    program_suffix=$ac_optarg ;;
1123
1124  -program-transform-name | --program-transform-name \
1125  | --program-transform-nam | --program-transform-na \
1126  | --program-transform-n | --program-transform- \
1127  | --program-transform | --program-transfor \
1128  | --program-transfo | --program-transf \
1129  | --program-trans | --program-tran \
1130  | --progr-tra | --program-tr | --program-t)
1131    ac_prev=program_transform_name ;;
1132  -program-transform-name=* | --program-transform-name=* \
1133  | --program-transform-nam=* | --program-transform-na=* \
1134  | --program-transform-n=* | --program-transform-=* \
1135  | --program-transform=* | --program-transfor=* \
1136  | --program-transfo=* | --program-transf=* \
1137  | --program-trans=* | --program-tran=* \
1138  | --progr-tra=* | --program-tr=* | --program-t=*)
1139    program_transform_name=$ac_optarg ;;
1140
1141  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142    ac_prev=pdfdir ;;
1143  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144    pdfdir=$ac_optarg ;;
1145
1146  -psdir | --psdir | --psdi | --psd | --ps)
1147    ac_prev=psdir ;;
1148  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149    psdir=$ac_optarg ;;
1150
1151  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152  | -silent | --silent | --silen | --sile | --sil)
1153    silent=yes ;;
1154
1155  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156    ac_prev=sbindir ;;
1157  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158  | --sbi=* | --sb=*)
1159    sbindir=$ac_optarg ;;
1160
1161  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163  | --sharedst | --shareds | --shared | --share | --shar \
1164  | --sha | --sh)
1165    ac_prev=sharedstatedir ;;
1166  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169  | --sha=* | --sh=*)
1170    sharedstatedir=$ac_optarg ;;
1171
1172  -site | --site | --sit)
1173    ac_prev=site ;;
1174  -site=* | --site=* | --sit=*)
1175    site=$ac_optarg ;;
1176
1177  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178    ac_prev=srcdir ;;
1179  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180    srcdir=$ac_optarg ;;
1181
1182  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183  | --syscon | --sysco | --sysc | --sys | --sy)
1184    ac_prev=sysconfdir ;;
1185  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187    sysconfdir=$ac_optarg ;;
1188
1189  -target | --target | --targe | --targ | --tar | --ta | --t)
1190    ac_prev=target_alias ;;
1191  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192    target_alias=$ac_optarg ;;
1193
1194  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195    verbose=yes ;;
1196
1197  -version | --version | --versio | --versi | --vers | -V)
1198    ac_init_version=: ;;
1199
1200  -with-* | --with-*)
1201    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202    # Reject names that are not valid shell variable names.
1203    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204      as_fn_error "invalid package name: $ac_useropt"
1205    ac_useropt_orig=$ac_useropt
1206    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207    case $ac_user_opts in
1208      *"
1209"with_$ac_useropt"
1210"*) ;;
1211      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212	 ac_unrecognized_sep=', ';;
1213    esac
1214    eval with_$ac_useropt=\$ac_optarg ;;
1215
1216  -without-* | --without-*)
1217    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218    # Reject names that are not valid shell variable names.
1219    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220      as_fn_error "invalid package name: $ac_useropt"
1221    ac_useropt_orig=$ac_useropt
1222    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223    case $ac_user_opts in
1224      *"
1225"with_$ac_useropt"
1226"*) ;;
1227      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228	 ac_unrecognized_sep=', ';;
1229    esac
1230    eval with_$ac_useropt=no ;;
1231
1232  --x)
1233    # Obsolete; use --with-x.
1234    with_x=yes ;;
1235
1236  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237  | --x-incl | --x-inc | --x-in | --x-i)
1238    ac_prev=x_includes ;;
1239  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241    x_includes=$ac_optarg ;;
1242
1243  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245    ac_prev=x_libraries ;;
1246  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248    x_libraries=$ac_optarg ;;
1249
1250  -*) as_fn_error "unrecognized option: \`$ac_option'
1251Try \`$0 --help' for more information."
1252    ;;
1253
1254  *=*)
1255    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256    # Reject names that are not valid shell variable names.
1257    case $ac_envvar in #(
1258      '' | [0-9]* | *[!_$as_cr_alnum]* )
1259      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1260    esac
1261    eval $ac_envvar=\$ac_optarg
1262    export $ac_envvar ;;
1263
1264  *)
1265    # FIXME: should be removed in autoconf 3.0.
1266    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270    ;;
1271
1272  esac
1273done
1274
1275if test -n "$ac_prev"; then
1276  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277  as_fn_error "missing argument to $ac_option"
1278fi
1279
1280if test -n "$ac_unrecognized_opts"; then
1281  case $enable_option_checking in
1282    no) ;;
1283    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1284    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285  esac
1286fi
1287
1288# Check all directory arguments for consistency.
1289for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290		datadir sysconfdir sharedstatedir localstatedir includedir \
1291		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292		libdir localedir mandir
1293do
1294  eval ac_val=\$$ac_var
1295  # Remove trailing slashes.
1296  case $ac_val in
1297    */ )
1298      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299      eval $ac_var=\$ac_val;;
1300  esac
1301  # Be sure to have absolute directory names.
1302  case $ac_val in
1303    [\\/$]* | ?:[\\/]* )  continue;;
1304    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305  esac
1306  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1307done
1308
1309# There might be people who depend on the old broken behavior: `$host'
1310# used to hold the argument of --host etc.
1311# FIXME: To remove some day.
1312build=$build_alias
1313host=$host_alias
1314target=$target_alias
1315
1316# FIXME: To remove some day.
1317if test "x$host_alias" != x; then
1318  if test "x$build_alias" = x; then
1319    cross_compiling=maybe
1320    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1321    If a cross compiler is detected then cross compile mode will be used." >&2
1322  elif test "x$build_alias" != "x$host_alias"; then
1323    cross_compiling=yes
1324  fi
1325fi
1326
1327ac_tool_prefix=
1328test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330test "$silent" = yes && exec 6>/dev/null
1331
1332
1333ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334ac_ls_di=`ls -di .` &&
1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336  as_fn_error "working directory cannot be determined"
1337test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338  as_fn_error "pwd does not report name of working directory"
1339
1340
1341# Find the source files, if location was not specified.
1342if test -z "$srcdir"; then
1343  ac_srcdir_defaulted=yes
1344  # Try the directory containing this script, then the parent directory.
1345  ac_confdir=`$as_dirname -- "$as_myself" ||
1346$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347	 X"$as_myself" : 'X\(//\)[^/]' \| \
1348	 X"$as_myself" : 'X\(//\)$' \| \
1349	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350$as_echo X"$as_myself" |
1351    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352	    s//\1/
1353	    q
1354	  }
1355	  /^X\(\/\/\)[^/].*/{
1356	    s//\1/
1357	    q
1358	  }
1359	  /^X\(\/\/\)$/{
1360	    s//\1/
1361	    q
1362	  }
1363	  /^X\(\/\).*/{
1364	    s//\1/
1365	    q
1366	  }
1367	  s/.*/./; q'`
1368  srcdir=$ac_confdir
1369  if test ! -r "$srcdir/$ac_unique_file"; then
1370    srcdir=..
1371  fi
1372else
1373  ac_srcdir_defaulted=no
1374fi
1375if test ! -r "$srcdir/$ac_unique_file"; then
1376  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1378fi
1379ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380ac_abs_confdir=`(
1381	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1382	pwd)`
1383# When building in place, set srcdir=.
1384if test "$ac_abs_confdir" = "$ac_pwd"; then
1385  srcdir=.
1386fi
1387# Remove unnecessary trailing slashes from srcdir.
1388# Double slashes in file names in object file debugging info
1389# mess up M-x gdb in Emacs.
1390case $srcdir in
1391*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392esac
1393ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1394
1395for ac_var in $ac_precious_vars; do
1396  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397  eval ac_env_${ac_var}_value=\$${ac_var}
1398  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400done
1401
1402#
1403# Report the --help message.
1404#
1405if test "$ac_init_help" = "long"; then
1406  # Omit some internal or obsolete options to make the list less imposing.
1407  # This message is too long to be a string in the A/UX 3.1 sh.
1408  cat <<_ACEOF
1409\`configure' configures this package to adapt to many kinds of systems.
1410
1411Usage: $0 [OPTION]... [VAR=VALUE]...
1412
1413To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414VAR=VALUE.  See below for descriptions of some of the useful variables.
1415
1416Defaults for the options are specified in brackets.
1417
1418Configuration:
1419  -h, --help              display this help and exit
1420      --help=short        display options specific to this package
1421      --help=recursive    display the short help of all the included packages
1422  -V, --version           display version information and exit
1423  -q, --quiet, --silent   do not print \`checking...' messages
1424      --cache-file=FILE   cache test results in FILE [disabled]
1425  -C, --config-cache      alias for \`--cache-file=config.cache'
1426  -n, --no-create         do not create output files
1427      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1428
1429Installation directories:
1430  --prefix=PREFIX         install architecture-independent files in PREFIX
1431                          [$ac_default_prefix]
1432  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1433                          [PREFIX]
1434
1435By default, \`make install' will install all the files in
1436\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1437an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438for instance \`--prefix=\$HOME'.
1439
1440For better control, use the options below.
1441
1442Fine tuning of the installation directories:
1443  --bindir=DIR            user executables [EPREFIX/bin]
1444  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1445  --libexecdir=DIR        program executables [EPREFIX/libexec]
1446  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1447  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1448  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1449  --libdir=DIR            object code libraries [EPREFIX/lib]
1450  --includedir=DIR        C header files [PREFIX/include]
1451  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1452  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1453  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1454  --infodir=DIR           info documentation [DATAROOTDIR/info]
1455  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1456  --mandir=DIR            man documentation [DATAROOTDIR/man]
1457  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1458  --htmldir=DIR           html documentation [DOCDIR]
1459  --dvidir=DIR            dvi documentation [DOCDIR]
1460  --pdfdir=DIR            pdf documentation [DOCDIR]
1461  --psdir=DIR             ps documentation [DOCDIR]
1462_ACEOF
1463
1464  cat <<\_ACEOF
1465
1466Program names:
1467  --program-prefix=PREFIX            prepend PREFIX to installed program names
1468  --program-suffix=SUFFIX            append SUFFIX to installed program names
1469  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1470
1471System types:
1472  --build=BUILD     configure for building on BUILD [guessed]
1473  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1474  --target=TARGET   configure for building compilers for TARGET [HOST]
1475_ACEOF
1476fi
1477
1478if test -n "$ac_init_help"; then
1479
1480  cat <<\_ACEOF
1481
1482Optional Features:
1483  --disable-option-checking  ignore unrecognized --enable/--with options
1484  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1485  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1486  --enable-gold           use gold instead of ld
1487  --enable-libada         build libada directory
1488  --enable-libssp         build libssp directory
1489  --enable-build-with-cxx build with C++ compiler instead of C compiler
1490  --disable-ppl-version-check    disable check for PPL version
1491  --disable-cloog-version-check  disable check for CLooG version
1492  --enable-lto            enable link time optimization support
1493  --enable-stage1-languages[=all]   choose additional languages to build during
1494                          stage1.  Mostly useful for compiler development.
1495  --enable-objc-gc        enable use of Boehm's garbage collector with the
1496                          GNU Objective-C runtime
1497  --enable-bootstrap      enable bootstrapping [yes if native build]
1498  --enable-serial-[{host,target,build}-]configure
1499                          force sequential configuration of
1500                          sub-packages for the host, target or build
1501                          machine, or all sub-packages
1502  --enable-maintainer-mode enable make rules and dependencies not useful
1503                          (and sometimes confusing) to the casual installer
1504  --enable-stage1-checking[=all]   choose additional checking for stage1
1505                          of the compiler
1506  --enable-werror         enable -Werror in bootstrap stage2 and later
1507
1508Optional Packages:
1509  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1510  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1511  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1512  --with-mpc=PATH        specify prefix directory for installed MPC package.
1513                          Equivalent to --with-mpc-include=PATH/include
1514                          plus --with-mpc-lib=PATH/lib
1515  --with-mpc-include=PATH
1516                          specify directory for installed MPC include files
1517  --with-mpc-lib=PATH    specify directory for the installed MPC library
1518  --with-mpfr-dir=PATH    this option has been REMOVED
1519  --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1520                          Equivalent to --with-mpfr-include=PATH/include
1521                          plus --with-mpfr-lib=PATH/lib
1522  --with-mpfr-include=PATH
1523                          specify directory for installed MPFR include files
1524  --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1525  --with-gmp-dir=PATH     this option has been REMOVED
1526  --with-gmp=PATH         specify prefix directory for the installed GMP package.
1527                          Equivalent to --with-gmp-include=PATH/include
1528                          plus --with-gmp-lib=PATH/lib
1529  --with-gmp-include=PATH specify directory for installed GMP include files
1530  --with-gmp-lib=PATH     specify directory for the installed GMP library
1531  --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1532                          when linking with PPL
1533  --with-stage1-ldflags=FLAGS Linker flags for stage1
1534  -with-stage1-libs=LIBS      Libraries for stage1
1535  --with-boot-libs=LIBS     Libraries for stage2 and later
1536  --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1537  --with-ppl=PATH         Specify prefix directory for the installed PPL package
1538                          Equivalent to --with-ppl-include=PATH/include
1539                          plus --with-ppl-lib=PATH/lib
1540  --with-ppl-include=PATH Specify directory for installed PPL include files
1541  --with-ppl-lib=PATH     Specify the directory for the installed PPL library
1542  --with-cloog=PATH       Specify prefix directory for the installed CLooG-PPL package
1543                          Equivalent to --with-cloog-include=PATH/include
1544                          plus --with-cloog-lib=PATH/lib
1545  --with-cloog-include=PATH Specify directory for installed CLooG include files
1546  --with-cloog-lib=PATH   Specify the directory for the installed CLooG library
1547  --with-libelf=PATH       Specify prefix directory for the installed libelf package
1548                          Equivalent to --with-libelf-include=PATH/include
1549                          plus --with-libelf-lib=PATH/lib
1550  --with-libelf-include=PATH Specify directory for installed libelf include files
1551  --with-libelf-lib=PATH   Specify the directory for the installed libelf library
1552  --with-build-sysroot=SYSROOT
1553                          use sysroot as the system root during the build
1554  --with-debug-prefix-map='A=B C=D ...'
1555                             map A to B, C to D ... in debug information
1556--with-build-config='NAME NAME2...'
1557                          Use config/NAME.mk build configuration
1558  --with-build-time-tools=PATH
1559                          use given path to find target tools during the build
1560
1561Some influential environment variables:
1562  CC          C compiler command
1563  CFLAGS      C compiler flags
1564  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1565              nonstandard directory <lib dir>
1566  LIBS        libraries to pass to the linker, e.g. -l<library>
1567  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1568              you have headers in a nonstandard directory <include dir>
1569  CXX         C++ compiler command
1570  CXXFLAGS    C++ compiler flags
1571  CPP         C preprocessor
1572  AR          AR for the host
1573  AS          AS for the host
1574  DLLTOOL     DLLTOOL for the host
1575  LD          LD for the host
1576  LIPO        LIPO for the host
1577  NM          NM for the host
1578  RANLIB      RANLIB for the host
1579  STRIP       STRIP for the host
1580  WINDRES     WINDRES for the host
1581  WINDMC      WINDMC for the host
1582  OBJCOPY     OBJCOPY for the host
1583  OBJDUMP     OBJDUMP for the host
1584  CC_FOR_TARGET
1585              CC for the target
1586  CXX_FOR_TARGET
1587              CXX for the target
1588  GCC_FOR_TARGET
1589              GCC for the target
1590  GCJ_FOR_TARGET
1591              GCJ for the target
1592  GFORTRAN_FOR_TARGET
1593              GFORTRAN for the target
1594  AR_FOR_TARGET
1595              AR for the target
1596  AS_FOR_TARGET
1597              AS for the target
1598  DLLTOOL_FOR_TARGET
1599              DLLTOOL for the target
1600  LD_FOR_TARGET
1601              LD for the target
1602  LIPO_FOR_TARGET
1603              LIPO for the target
1604  NM_FOR_TARGET
1605              NM for the target
1606  OBJDUMP_FOR_TARGET
1607              OBJDUMP for the target
1608  RANLIB_FOR_TARGET
1609              RANLIB for the target
1610  STRIP_FOR_TARGET
1611              STRIP for the target
1612  WINDRES_FOR_TARGET
1613              WINDRES for the target
1614  WINDMC_FOR_TARGET
1615              WINDMC for the target
1616
1617Use these variables to override the choices made by `configure' or to help
1618it to find libraries and programs with nonstandard names/locations.
1619
1620Report bugs to the package provider.
1621_ACEOF
1622ac_status=$?
1623fi
1624
1625if test "$ac_init_help" = "recursive"; then
1626  # If there are subdirs, report their specific --help.
1627  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628    test -d "$ac_dir" ||
1629      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1630      continue
1631    ac_builddir=.
1632
1633case "$ac_dir" in
1634.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635*)
1636  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1637  # A ".." for each directory in $ac_dir_suffix.
1638  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1639  case $ac_top_builddir_sub in
1640  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642  esac ;;
1643esac
1644ac_abs_top_builddir=$ac_pwd
1645ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646# for backward compatibility:
1647ac_top_builddir=$ac_top_build_prefix
1648
1649case $srcdir in
1650  .)  # We are building in place.
1651    ac_srcdir=.
1652    ac_top_srcdir=$ac_top_builddir_sub
1653    ac_abs_top_srcdir=$ac_pwd ;;
1654  [\\/]* | ?:[\\/]* )  # Absolute name.
1655    ac_srcdir=$srcdir$ac_dir_suffix;
1656    ac_top_srcdir=$srcdir
1657    ac_abs_top_srcdir=$srcdir ;;
1658  *) # Relative name.
1659    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660    ac_top_srcdir=$ac_top_build_prefix$srcdir
1661    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1662esac
1663ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1664
1665    cd "$ac_dir" || { ac_status=$?; continue; }
1666    # Check for guested configure.
1667    if test -f "$ac_srcdir/configure.gnu"; then
1668      echo &&
1669      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670    elif test -f "$ac_srcdir/configure"; then
1671      echo &&
1672      $SHELL "$ac_srcdir/configure" --help=recursive
1673    else
1674      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675    fi || ac_status=$?
1676    cd "$ac_pwd" || { ac_status=$?; break; }
1677  done
1678fi
1679
1680test -n "$ac_init_help" && exit $ac_status
1681if $ac_init_version; then
1682  cat <<\_ACEOF
1683configure
1684generated by GNU Autoconf 2.64
1685
1686Copyright (C) 2009 Free Software Foundation, Inc.
1687This configure script is free software; the Free Software Foundation
1688gives unlimited permission to copy, distribute and modify it.
1689_ACEOF
1690  exit
1691fi
1692
1693## ------------------------ ##
1694## Autoconf initialization. ##
1695## ------------------------ ##
1696
1697# ac_fn_c_try_compile LINENO
1698# --------------------------
1699# Try to compile conftest.$ac_ext, and return whether this succeeded.
1700ac_fn_c_try_compile ()
1701{
1702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703  rm -f conftest.$ac_objext
1704  if { { ac_try="$ac_compile"
1705case "(($ac_try" in
1706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707  *) ac_try_echo=$ac_try;;
1708esac
1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710$as_echo "$ac_try_echo"; } >&5
1711  (eval "$ac_compile") 2>conftest.err
1712  ac_status=$?
1713  if test -s conftest.err; then
1714    grep -v '^ *+' conftest.err >conftest.er1
1715    cat conftest.er1 >&5
1716    mv -f conftest.er1 conftest.err
1717  fi
1718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719  test $ac_status = 0; } && {
1720	 test -z "$ac_c_werror_flag" ||
1721	 test ! -s conftest.err
1722       } && test -s conftest.$ac_objext; then :
1723  ac_retval=0
1724else
1725  $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728	ac_retval=1
1729fi
1730  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731  return $ac_retval
1732
1733} # ac_fn_c_try_compile
1734
1735# ac_fn_cxx_try_compile LINENO
1736# ----------------------------
1737# Try to compile conftest.$ac_ext, and return whether this succeeded.
1738ac_fn_cxx_try_compile ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  rm -f conftest.$ac_objext
1742  if { { ac_try="$ac_compile"
1743case "(($ac_try" in
1744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745  *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749  (eval "$ac_compile") 2>conftest.err
1750  ac_status=$?
1751  if test -s conftest.err; then
1752    grep -v '^ *+' conftest.err >conftest.er1
1753    cat conftest.er1 >&5
1754    mv -f conftest.er1 conftest.err
1755  fi
1756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757  test $ac_status = 0; } && {
1758	 test -z "$ac_cxx_werror_flag" ||
1759	 test ! -s conftest.err
1760       } && test -s conftest.$ac_objext; then :
1761  ac_retval=0
1762else
1763  $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766	ac_retval=1
1767fi
1768  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769  return $ac_retval
1770
1771} # ac_fn_cxx_try_compile
1772
1773# ac_fn_c_try_link LINENO
1774# -----------------------
1775# Try to link conftest.$ac_ext, and return whether this succeeded.
1776ac_fn_c_try_link ()
1777{
1778  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779  rm -f conftest.$ac_objext conftest$ac_exeext
1780  if { { ac_try="$ac_link"
1781case "(($ac_try" in
1782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783  *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787  (eval "$ac_link") 2>conftest.err
1788  ac_status=$?
1789  if test -s conftest.err; then
1790    grep -v '^ *+' conftest.err >conftest.er1
1791    cat conftest.er1 >&5
1792    mv -f conftest.er1 conftest.err
1793  fi
1794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795  test $ac_status = 0; } && {
1796	 test -z "$ac_c_werror_flag" ||
1797	 test ! -s conftest.err
1798       } && test -s conftest$ac_exeext && {
1799	 test "$cross_compiling" = yes ||
1800	 $as_test_x conftest$ac_exeext
1801       }; then :
1802  ac_retval=0
1803else
1804  $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
1806
1807	ac_retval=1
1808fi
1809  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1810  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1811  # interfere with the next link command; also delete a directory that is
1812  # left behind by Apple's compiler.  We do this before executing the actions.
1813  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815  return $ac_retval
1816
1817} # ac_fn_c_try_link
1818
1819# ac_fn_c_try_cpp LINENO
1820# ----------------------
1821# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1822ac_fn_c_try_cpp ()
1823{
1824  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825  if { { ac_try="$ac_cpp conftest.$ac_ext"
1826case "(($ac_try" in
1827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828  *) ac_try_echo=$ac_try;;
1829esac
1830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831$as_echo "$ac_try_echo"; } >&5
1832  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1833  ac_status=$?
1834  if test -s conftest.err; then
1835    grep -v '^ *+' conftest.err >conftest.er1
1836    cat conftest.er1 >&5
1837    mv -f conftest.er1 conftest.err
1838  fi
1839  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840  test $ac_status = 0; } >/dev/null && {
1841	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1842	 test ! -s conftest.err
1843       }; then :
1844  ac_retval=0
1845else
1846  $as_echo "$as_me: failed program was:" >&5
1847sed 's/^/| /' conftest.$ac_ext >&5
1848
1849    ac_retval=1
1850fi
1851  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852  return $ac_retval
1853
1854} # ac_fn_c_try_cpp
1855
1856# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1857# -------------------------------------------------------
1858# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1859# the include files in INCLUDES and setting the cache variable VAR
1860# accordingly.
1861ac_fn_c_check_header_mongrel ()
1862{
1863  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866$as_echo_n "checking for $2... " >&6; }
1867if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868  $as_echo_n "(cached) " >&6
1869fi
1870eval ac_res=\$$3
1871	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872$as_echo "$ac_res" >&6; }
1873else
1874  # Is the header compilable?
1875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1876$as_echo_n "checking $2 usability... " >&6; }
1877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878/* end confdefs.h.  */
1879$4
1880#include <$2>
1881_ACEOF
1882if ac_fn_c_try_compile "$LINENO"; then :
1883  ac_header_compiler=yes
1884else
1885  ac_header_compiler=no
1886fi
1887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1889$as_echo "$ac_header_compiler" >&6; }
1890
1891# Is the header present?
1892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1893$as_echo_n "checking $2 presence... " >&6; }
1894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895/* end confdefs.h.  */
1896#include <$2>
1897_ACEOF
1898if ac_fn_c_try_cpp "$LINENO"; then :
1899  ac_header_preproc=yes
1900else
1901  ac_header_preproc=no
1902fi
1903rm -f conftest.err conftest.$ac_ext
1904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1905$as_echo "$ac_header_preproc" >&6; }
1906
1907# So?  What about this header?
1908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1909  yes:no: )
1910    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1911$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1912    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1913$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1914    ;;
1915  no:yes:* )
1916    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1917$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1918    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1919$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1920    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1921$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1922    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1923$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1924    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1925$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1926    ;;
1927esac
1928  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929$as_echo_n "checking for $2... " >&6; }
1930if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931  $as_echo_n "(cached) " >&6
1932else
1933  eval "$3=\$ac_header_compiler"
1934fi
1935eval ac_res=\$$3
1936	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938fi
1939  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940
1941} # ac_fn_c_check_header_mongrel
1942
1943# ac_fn_c_try_run LINENO
1944# ----------------------
1945# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1946# that executables *can* be run.
1947ac_fn_c_try_run ()
1948{
1949  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950  if { { ac_try="$ac_link"
1951case "(($ac_try" in
1952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953  *) ac_try_echo=$ac_try;;
1954esac
1955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956$as_echo "$ac_try_echo"; } >&5
1957  (eval "$ac_link") 2>&5
1958  ac_status=$?
1959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1961  { { case "(($ac_try" in
1962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963  *) ac_try_echo=$ac_try;;
1964esac
1965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966$as_echo "$ac_try_echo"; } >&5
1967  (eval "$ac_try") 2>&5
1968  ac_status=$?
1969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970  test $ac_status = 0; }; }; then :
1971  ac_retval=0
1972else
1973  $as_echo "$as_me: program exited with status $ac_status" >&5
1974       $as_echo "$as_me: failed program was:" >&5
1975sed 's/^/| /' conftest.$ac_ext >&5
1976
1977       ac_retval=$ac_status
1978fi
1979  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981  return $ac_retval
1982
1983} # ac_fn_c_try_run
1984
1985# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1986# -------------------------------------------------------
1987# Tests whether HEADER exists and can be compiled using the include files in
1988# INCLUDES, setting the cache variable VAR accordingly.
1989ac_fn_c_check_header_compile ()
1990{
1991  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993$as_echo_n "checking for $2... " >&6; }
1994if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1995  $as_echo_n "(cached) " >&6
1996else
1997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h.  */
1999$4
2000#include <$2>
2001_ACEOF
2002if ac_fn_c_try_compile "$LINENO"; then :
2003  eval "$3=yes"
2004else
2005  eval "$3=no"
2006fi
2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008fi
2009eval ac_res=\$$3
2010	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011$as_echo "$ac_res" >&6; }
2012  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013
2014} # ac_fn_c_check_header_compile
2015cat >config.log <<_ACEOF
2016This file contains any messages produced by compilers while
2017running configure, to aid debugging if configure makes a mistake.
2018
2019It was created by $as_me, which was
2020generated by GNU Autoconf 2.64.  Invocation command line was
2021
2022  $ $0 $@
2023
2024_ACEOF
2025exec 5>>config.log
2026{
2027cat <<_ASUNAME
2028## --------- ##
2029## Platform. ##
2030## --------- ##
2031
2032hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2033uname -m = `(uname -m) 2>/dev/null || echo unknown`
2034uname -r = `(uname -r) 2>/dev/null || echo unknown`
2035uname -s = `(uname -s) 2>/dev/null || echo unknown`
2036uname -v = `(uname -v) 2>/dev/null || echo unknown`
2037
2038/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2039/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2040
2041/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2042/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2043/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2044/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2045/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2046/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2047/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2048
2049_ASUNAME
2050
2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052for as_dir in $PATH
2053do
2054  IFS=$as_save_IFS
2055  test -z "$as_dir" && as_dir=.
2056    $as_echo "PATH: $as_dir"
2057  done
2058IFS=$as_save_IFS
2059
2060} >&5
2061
2062cat >&5 <<_ACEOF
2063
2064
2065## ----------- ##
2066## Core tests. ##
2067## ----------- ##
2068
2069_ACEOF
2070
2071
2072# Keep a trace of the command line.
2073# Strip out --no-create and --no-recursion so they do not pile up.
2074# Strip out --silent because we don't want to record it for future runs.
2075# Also quote any args containing shell meta-characters.
2076# Make two passes to allow for proper duplicate-argument suppression.
2077ac_configure_args=
2078ac_configure_args0=
2079ac_configure_args1=
2080ac_must_keep_next=false
2081for ac_pass in 1 2
2082do
2083  for ac_arg
2084  do
2085    case $ac_arg in
2086    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2087    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2088    | -silent | --silent | --silen | --sile | --sil)
2089      continue ;;
2090    *\'*)
2091      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2092    esac
2093    case $ac_pass in
2094    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2095    2)
2096      as_fn_append ac_configure_args1 " '$ac_arg'"
2097      if test $ac_must_keep_next = true; then
2098	ac_must_keep_next=false # Got value, back to normal.
2099      else
2100	case $ac_arg in
2101	  *=* | --config-cache | -C | -disable-* | --disable-* \
2102	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2103	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2104	  | -with-* | --with-* | -without-* | --without-* | --x)
2105	    case "$ac_configure_args0 " in
2106	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2107	    esac
2108	    ;;
2109	  -* ) ac_must_keep_next=true ;;
2110	esac
2111      fi
2112      as_fn_append ac_configure_args " '$ac_arg'"
2113      ;;
2114    esac
2115  done
2116done
2117{ ac_configure_args0=; unset ac_configure_args0;}
2118{ ac_configure_args1=; unset ac_configure_args1;}
2119
2120# When interrupted or exit'd, cleanup temporary files, and complete
2121# config.log.  We remove comments because anyway the quotes in there
2122# would cause problems or look ugly.
2123# WARNING: Use '\'' to represent an apostrophe within the trap.
2124# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2125trap 'exit_status=$?
2126  # Save into config.log some information that might help in debugging.
2127  {
2128    echo
2129
2130    cat <<\_ASBOX
2131## ---------------- ##
2132## Cache variables. ##
2133## ---------------- ##
2134_ASBOX
2135    echo
2136    # The following way of writing the cache mishandles newlines in values,
2137(
2138  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2139    eval ac_val=\$$ac_var
2140    case $ac_val in #(
2141    *${as_nl}*)
2142      case $ac_var in #(
2143      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2144$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2145      esac
2146      case $ac_var in #(
2147      _ | IFS | as_nl) ;; #(
2148      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2149      *) { eval $ac_var=; unset $ac_var;} ;;
2150      esac ;;
2151    esac
2152  done
2153  (set) 2>&1 |
2154    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2155    *${as_nl}ac_space=\ *)
2156      sed -n \
2157	"s/'\''/'\''\\\\'\'''\''/g;
2158	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2159      ;; #(
2160    *)
2161      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2162      ;;
2163    esac |
2164    sort
2165)
2166    echo
2167
2168    cat <<\_ASBOX
2169## ----------------- ##
2170## Output variables. ##
2171## ----------------- ##
2172_ASBOX
2173    echo
2174    for ac_var in $ac_subst_vars
2175    do
2176      eval ac_val=\$$ac_var
2177      case $ac_val in
2178      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2179      esac
2180      $as_echo "$ac_var='\''$ac_val'\''"
2181    done | sort
2182    echo
2183
2184    if test -n "$ac_subst_files"; then
2185      cat <<\_ASBOX
2186## ------------------- ##
2187## File substitutions. ##
2188## ------------------- ##
2189_ASBOX
2190      echo
2191      for ac_var in $ac_subst_files
2192      do
2193	eval ac_val=\$$ac_var
2194	case $ac_val in
2195	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2196	esac
2197	$as_echo "$ac_var='\''$ac_val'\''"
2198      done | sort
2199      echo
2200    fi
2201
2202    if test -s confdefs.h; then
2203      cat <<\_ASBOX
2204## ----------- ##
2205## confdefs.h. ##
2206## ----------- ##
2207_ASBOX
2208      echo
2209      cat confdefs.h
2210      echo
2211    fi
2212    test "$ac_signal" != 0 &&
2213      $as_echo "$as_me: caught signal $ac_signal"
2214    $as_echo "$as_me: exit $exit_status"
2215  } >&5
2216  rm -f core *.core core.conftest.* &&
2217    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2218    exit $exit_status
2219' 0
2220for ac_signal in 1 2 13 15; do
2221  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2222done
2223ac_signal=0
2224
2225# confdefs.h avoids OS command line length limits that DEFS can exceed.
2226rm -f -r conftest* confdefs.h
2227
2228$as_echo "/* confdefs.h */" > confdefs.h
2229
2230# Predefined preprocessor variables.
2231
2232cat >>confdefs.h <<_ACEOF
2233#define PACKAGE_NAME "$PACKAGE_NAME"
2234_ACEOF
2235
2236cat >>confdefs.h <<_ACEOF
2237#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2238_ACEOF
2239
2240cat >>confdefs.h <<_ACEOF
2241#define PACKAGE_VERSION "$PACKAGE_VERSION"
2242_ACEOF
2243
2244cat >>confdefs.h <<_ACEOF
2245#define PACKAGE_STRING "$PACKAGE_STRING"
2246_ACEOF
2247
2248cat >>confdefs.h <<_ACEOF
2249#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2250_ACEOF
2251
2252cat >>confdefs.h <<_ACEOF
2253#define PACKAGE_URL "$PACKAGE_URL"
2254_ACEOF
2255
2256
2257# Let the site file select an alternate cache file if it wants to.
2258# Prefer an explicitly selected file to automatically selected ones.
2259ac_site_file1=NONE
2260ac_site_file2=NONE
2261if test -n "$CONFIG_SITE"; then
2262  ac_site_file1=$CONFIG_SITE
2263elif test "x$prefix" != xNONE; then
2264  ac_site_file1=$prefix/share/config.site
2265  ac_site_file2=$prefix/etc/config.site
2266else
2267  ac_site_file1=$ac_default_prefix/share/config.site
2268  ac_site_file2=$ac_default_prefix/etc/config.site
2269fi
2270for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2271do
2272  test "x$ac_site_file" = xNONE && continue
2273  if test -r "$ac_site_file"; then
2274    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2275$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2276    sed 's/^/| /' "$ac_site_file" >&5
2277    . "$ac_site_file"
2278  fi
2279done
2280
2281if test -r "$cache_file"; then
2282  # Some versions of bash will fail to source /dev/null (special
2283  # files actually), so we avoid doing that.
2284  if test -f "$cache_file"; then
2285    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2286$as_echo "$as_me: loading cache $cache_file" >&6;}
2287    case $cache_file in
2288      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2289      *)                      . "./$cache_file";;
2290    esac
2291  fi
2292else
2293  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2294$as_echo "$as_me: creating cache $cache_file" >&6;}
2295  >$cache_file
2296fi
2297
2298# Check that the precious variables saved in the cache have kept the same
2299# value.
2300ac_cache_corrupted=false
2301for ac_var in $ac_precious_vars; do
2302  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2303  eval ac_new_set=\$ac_env_${ac_var}_set
2304  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2305  eval ac_new_val=\$ac_env_${ac_var}_value
2306  case $ac_old_set,$ac_new_set in
2307    set,)
2308      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2309$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2310      ac_cache_corrupted=: ;;
2311    ,set)
2312      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2313$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2314      ac_cache_corrupted=: ;;
2315    ,);;
2316    *)
2317      if test "x$ac_old_val" != "x$ac_new_val"; then
2318	# differences in whitespace do not lead to failure.
2319	ac_old_val_w=`echo x $ac_old_val`
2320	ac_new_val_w=`echo x $ac_new_val`
2321	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2322	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2323$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2324	  ac_cache_corrupted=:
2325	else
2326	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2327$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2328	  eval $ac_var=\$ac_old_val
2329	fi
2330	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2331$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2332	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2333$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2334      fi;;
2335  esac
2336  # Pass precious variables to config.status.
2337  if test "$ac_new_set" = set; then
2338    case $ac_new_val in
2339    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2340    *) ac_arg=$ac_var=$ac_new_val ;;
2341    esac
2342    case " $ac_configure_args " in
2343      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2344      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2345    esac
2346  fi
2347done
2348if $ac_cache_corrupted; then
2349  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2351  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2352$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2353  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2354fi
2355## -------------------- ##
2356## Main body of script. ##
2357## -------------------- ##
2358
2359ac_ext=c
2360ac_cpp='$CPP $CPPFLAGS'
2361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373progname=$0
2374# if PWD already has a value, it is probably wrong.
2375if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2376
2377# Export original configure arguments for use by sub-configures.
2378# Quote arguments with shell meta charatcers.
2379TOPLEVEL_CONFIGURE_ARGUMENTS=
2380set -- "$progname" "$@"
2381for ac_arg
2382do
2383  case "$ac_arg" in
2384  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2385    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2386    # if the argument is of the form -foo=baz, quote the baz part only
2387    ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2388  *) ;;
2389  esac
2390  # Add the quoted argument to the list.
2391  TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2392done
2393if test "$silent" = yes; then
2394  TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2395fi
2396# Remove the initial space we just introduced and, as these will be
2397# expanded by make, quote '$'.
2398TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2399
2400
2401# Find the build, host, and target systems.
2402ac_aux_dir=
2403for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2404  for ac_t in install-sh install.sh shtool; do
2405    if test -f "$ac_dir/$ac_t"; then
2406      ac_aux_dir=$ac_dir
2407      ac_install_sh="$SHELL $ac_aux_dir/$ac_t -c"
2408      break 2
2409    fi
2410  done
2411done
2412if test -z "$ac_aux_dir"; then
2413  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2414fi
2415
2416# These three variables are undocumented and unsupported,
2417# and are intended to be withdrawn in a future Autoconf release.
2418# They can cause serious problems if a builder's source tree is in a directory
2419# whose full name contains unusual characters.
2420ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2421ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2422ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2423
2424
2425# Make sure we can run config.sub.
2426$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2427  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2428
2429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2430$as_echo_n "checking build system type... " >&6; }
2431if test "${ac_cv_build+set}" = set; then :
2432  $as_echo_n "(cached) " >&6
2433else
2434  ac_build_alias=$build_alias
2435test "x$ac_build_alias" = x &&
2436  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2437test "x$ac_build_alias" = x &&
2438  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2439ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2440  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2441
2442fi
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2444$as_echo "$ac_cv_build" >&6; }
2445case $ac_cv_build in
2446*-*-*) ;;
2447*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2448esac
2449build=$ac_cv_build
2450ac_save_IFS=$IFS; IFS='-'
2451set x $ac_cv_build
2452shift
2453build_cpu=$1
2454build_vendor=$2
2455shift; shift
2456# Remember, the first character of IFS is used to create $*,
2457# except with old shells:
2458build_os=$*
2459IFS=$ac_save_IFS
2460case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2461
2462
2463 case ${build_alias} in
2464  "") build_noncanonical=${build} ;;
2465  *) build_noncanonical=${build_alias} ;;
2466esac
2467
2468
2469
2470 case ${host_alias} in
2471  "") host_noncanonical=${build_noncanonical} ;;
2472  *) host_noncanonical=${host_alias} ;;
2473esac
2474
2475
2476
2477 case ${target_alias} in
2478  "") target_noncanonical=${host_noncanonical} ;;
2479  *) target_noncanonical=${target_alias} ;;
2480esac
2481
2482
2483
2484
2485test "$host_noncanonical" = "$target_noncanonical" &&
2486  test "$program_prefix$program_suffix$program_transform_name" = \
2487    NONENONEs,x,x, &&
2488  program_transform_name=s,y,y,
2489
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2491$as_echo_n "checking host system type... " >&6; }
2492if test "${ac_cv_host+set}" = set; then :
2493  $as_echo_n "(cached) " >&6
2494else
2495  if test "x$host_alias" = x; then
2496  ac_cv_host=$ac_cv_build
2497else
2498  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2499    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2500fi
2501
2502fi
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2504$as_echo "$ac_cv_host" >&6; }
2505case $ac_cv_host in
2506*-*-*) ;;
2507*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2508esac
2509host=$ac_cv_host
2510ac_save_IFS=$IFS; IFS='-'
2511set x $ac_cv_host
2512shift
2513host_cpu=$1
2514host_vendor=$2
2515shift; shift
2516# Remember, the first character of IFS is used to create $*,
2517# except with old shells:
2518host_os=$*
2519IFS=$ac_save_IFS
2520case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2521
2522
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2524$as_echo_n "checking target system type... " >&6; }
2525if test "${ac_cv_target+set}" = set; then :
2526  $as_echo_n "(cached) " >&6
2527else
2528  if test "x$target_alias" = x; then
2529  ac_cv_target=$ac_cv_host
2530else
2531  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2532    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2533fi
2534
2535fi
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2537$as_echo "$ac_cv_target" >&6; }
2538case $ac_cv_target in
2539*-*-*) ;;
2540*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2541esac
2542target=$ac_cv_target
2543ac_save_IFS=$IFS; IFS='-'
2544set x $ac_cv_target
2545shift
2546target_cpu=$1
2547target_vendor=$2
2548shift; shift
2549# Remember, the first character of IFS is used to create $*,
2550# except with old shells:
2551target_os=$*
2552IFS=$ac_save_IFS
2553case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2554
2555
2556# The aliases save the names the user supplied, while $host etc.
2557# will get canonicalized.
2558test -n "$target_alias" &&
2559  test "$program_prefix$program_suffix$program_transform_name" = \
2560    NONENONEs,x,x, &&
2561  program_prefix=${target_alias}-
2562
2563test "$program_prefix" != NONE &&
2564  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2565# Use a double $ so make ignores it.
2566test "$program_suffix" != NONE &&
2567  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2568# Double any \ or $.
2569# By default was `s,x,x', remove it if useless.
2570ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2571program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2572
2573
2574
2575# Get 'install' or 'install-sh' and its variants.
2576# Find a good install program.  We prefer a C program (faster),
2577# so one script is as good as another.  But avoid the broken or
2578# incompatible versions:
2579# SysV /etc/install, /usr/sbin/install
2580# SunOS /usr/etc/install
2581# IRIX /sbin/install
2582# AIX /bin/install
2583# AmigaOS /C/install, which installs bootblocks on floppy discs
2584# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2585# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2586# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2587# OS/2's system install, which has a completely different semantic
2588# ./install, which can be erroneously created by make from ./install.sh.
2589# Reject install programs that cannot install multiple files.
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2591$as_echo_n "checking for a BSD-compatible install... " >&6; }
2592if test -z "$INSTALL"; then
2593if test "${ac_cv_path_install+set}" = set; then :
2594  $as_echo_n "(cached) " >&6
2595else
2596  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597for as_dir in $PATH
2598do
2599  IFS=$as_save_IFS
2600  test -z "$as_dir" && as_dir=.
2601    # Account for people who put trailing slashes in PATH elements.
2602case $as_dir/ in #((
2603  ./ | .// | /[cC]/* | \
2604  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2605  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2606  /usr/ucb/* ) ;;
2607  *)
2608    # OSF1 and SCO ODT 3.0 have their own names for install.
2609    # Don't use installbsd from OSF since it installs stuff as root
2610    # by default.
2611    for ac_prog in ginstall scoinst install; do
2612      for ac_exec_ext in '' $ac_executable_extensions; do
2613	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2614	  if test $ac_prog = install &&
2615	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2616	    # AIX install.  It has an incompatible calling convention.
2617	    :
2618	  elif test $ac_prog = install &&
2619	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2620	    # program-specific install script used by HP pwplus--don't use.
2621	    :
2622	  else
2623	    rm -rf conftest.one conftest.two conftest.dir
2624	    echo one > conftest.one
2625	    echo two > conftest.two
2626	    mkdir conftest.dir
2627	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2628	      test -s conftest.one && test -s conftest.two &&
2629	      test -s conftest.dir/conftest.one &&
2630	      test -s conftest.dir/conftest.two
2631	    then
2632	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2633	      break 3
2634	    fi
2635	  fi
2636	fi
2637      done
2638    done
2639    ;;
2640esac
2641
2642  done
2643IFS=$as_save_IFS
2644
2645rm -rf conftest.one conftest.two conftest.dir
2646
2647fi
2648  if test "${ac_cv_path_install+set}" = set; then
2649    INSTALL=$ac_cv_path_install
2650  else
2651    # As a last resort, use the slow shell script.  Don't cache a
2652    # value for INSTALL within a source directory, because that will
2653    # break other packages using the cache if that directory is
2654    # removed, or if the value is a relative name.
2655    INSTALL=$ac_install_sh
2656  fi
2657fi
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2659$as_echo "$INSTALL" >&6; }
2660
2661# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2662# It thinks the first close brace ends the variable substitution.
2663test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2664
2665test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2666
2667test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2668
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2670$as_echo_n "checking whether ln works... " >&6; }
2671if test "${acx_cv_prog_LN+set}" = set; then :
2672  $as_echo_n "(cached) " >&6
2673else
2674  rm -f conftestdata_t
2675echo >conftestdata_f
2676if ln conftestdata_f conftestdata_t 2>/dev/null
2677then
2678  acx_cv_prog_LN=ln
2679else
2680  acx_cv_prog_LN=no
2681fi
2682rm -f conftestdata_f conftestdata_t
2683
2684fi
2685if test $acx_cv_prog_LN = no; then
2686  LN="cp"
2687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2688$as_echo "no, using $LN" >&6; }
2689else
2690  LN="$acx_cv_prog_LN"
2691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2692$as_echo "yes" >&6; }
2693fi
2694
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2696$as_echo_n "checking whether ln -s works... " >&6; }
2697LN_S=$as_ln_s
2698if test "$LN_S" = "ln -s"; then
2699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2700$as_echo "yes" >&6; }
2701else
2702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2703$as_echo "no, using $LN_S" >&6; }
2704fi
2705
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2707$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2708if test "${ac_cv_path_SED+set}" = set; then :
2709  $as_echo_n "(cached) " >&6
2710else
2711            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2712     for ac_i in 1 2 3 4 5 6 7; do
2713       ac_script="$ac_script$as_nl$ac_script"
2714     done
2715     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2716     { ac_script=; unset ac_script;}
2717     if test -z "$SED"; then
2718  ac_path_SED_found=false
2719  # Loop through the user's path and test for each of PROGNAME-LIST
2720  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721for as_dir in $PATH
2722do
2723  IFS=$as_save_IFS
2724  test -z "$as_dir" && as_dir=.
2725    for ac_prog in sed gsed; do
2726    for ac_exec_ext in '' $ac_executable_extensions; do
2727      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2728      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2729# Check for GNU ac_path_SED and select it if it is found.
2730  # Check for GNU $ac_path_SED
2731case `"$ac_path_SED" --version 2>&1` in
2732*GNU*)
2733  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2734*)
2735  ac_count=0
2736  $as_echo_n 0123456789 >"conftest.in"
2737  while :
2738  do
2739    cat "conftest.in" "conftest.in" >"conftest.tmp"
2740    mv "conftest.tmp" "conftest.in"
2741    cp "conftest.in" "conftest.nl"
2742    $as_echo '' >> "conftest.nl"
2743    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2744    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2745    as_fn_arith $ac_count + 1 && ac_count=$as_val
2746    if test $ac_count -gt ${ac_path_SED_max-0}; then
2747      # Best one so far, save it but keep looking for a better one
2748      ac_cv_path_SED="$ac_path_SED"
2749      ac_path_SED_max=$ac_count
2750    fi
2751    # 10*(2^10) chars as input seems more than enough
2752    test $ac_count -gt 10 && break
2753  done
2754  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2755esac
2756
2757      $ac_path_SED_found && break 3
2758    done
2759  done
2760  done
2761IFS=$as_save_IFS
2762  if test -z "$ac_cv_path_SED"; then
2763    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2764  fi
2765else
2766  ac_cv_path_SED=$SED
2767fi
2768
2769fi
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2771$as_echo "$ac_cv_path_SED" >&6; }
2772 SED="$ac_cv_path_SED"
2773  rm -f conftest.sed
2774
2775for ac_prog in gawk mawk nawk awk
2776do
2777  # Extract the first word of "$ac_prog", so it can be a program name with args.
2778set dummy $ac_prog; ac_word=$2
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780$as_echo_n "checking for $ac_word... " >&6; }
2781if test "${ac_cv_prog_AWK+set}" = set; then :
2782  $as_echo_n "(cached) " >&6
2783else
2784  if test -n "$AWK"; then
2785  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790  IFS=$as_save_IFS
2791  test -z "$as_dir" && as_dir=.
2792    for ac_exec_ext in '' $ac_executable_extensions; do
2793  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794    ac_cv_prog_AWK="$ac_prog"
2795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796    break 2
2797  fi
2798done
2799  done
2800IFS=$as_save_IFS
2801
2802fi
2803fi
2804AWK=$ac_cv_prog_AWK
2805if test -n "$AWK"; then
2806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2807$as_echo "$AWK" >&6; }
2808else
2809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810$as_echo "no" >&6; }
2811fi
2812
2813
2814  test -n "$AWK" && break
2815done
2816
2817
2818### we might need to use some other shell than /bin/sh for running subshells
2819### If we are on Windows, search for the shell.  This will permit people
2820### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2821### without also having to set CONFIG_SHELL.  This code will work when
2822### using bash, which sets OSTYPE.
2823case "${OSTYPE}" in
2824*win32*)
2825  if test x${CONFIG_SHELL} = x ; then
2826    if test ! -f /bin/sh ; then
2827      if test x${SHELL} != x && test -f ${SHELL} ; then
2828	CONFIG_SHELL=${SHELL}
2829	export CONFIG_SHELL
2830      else
2831	for prog in sh sh.exe bash bash.exe; do
2832	  IFS="${IFS=	}"; save_ifs="$IFS"; IFS="${IFS}:"
2833	  for dir in $PATH; do
2834	    test -z "$dir" && dir=.
2835	    if test -f $dir/$prog; then
2836	      CONFIG_SHELL=$dir/$prog
2837	      export CONFIG_SHELL
2838	      break
2839	    fi
2840	  done
2841	  IFS="$save_ifs"
2842	  test -n "${CONFIG_SHELL}" && break
2843	done
2844      fi
2845    fi
2846  fi
2847  ;;
2848esac
2849
2850config_shell=${CONFIG_SHELL-/bin/sh}
2851
2852moveifchange=${srcdir}/move-if-change
2853
2854srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2855
2856# We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2857# a relative path.
2858if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2859  INSTALL="${srcpwd}/install-sh -c"
2860fi
2861
2862# Set srcdir to "." if that's what it is.
2863# This is important for multilib support.
2864pwd=`${PWDCMD-pwd}`
2865if test "${pwd}" = "${srcpwd}" ; then
2866  srcdir=.
2867fi
2868
2869topsrcdir=$srcpwd
2870
2871extra_host_args=
2872
2873### To add a new directory to the tree, first choose whether it is a target
2874### or a host dependent tool.  Then put it into the appropriate list
2875### (library or tools, host or target), doing a dependency sort.
2876
2877# Subdirs will be configured in the order listed in build_configdirs,
2878# configdirs, or target_configdirs; see the serialization section below.
2879
2880# Dependency sorting is only needed when *configuration* must be done in
2881# a particular order.  In all cases a dependency should be specified in
2882# the Makefile, whether or not it's implicitly specified here.
2883
2884# Double entries in build_configdirs, configdirs, or target_configdirs may
2885# cause circular dependencies and break everything horribly.
2886
2887# these library is used by various programs built for the build
2888# environment
2889#
2890build_libs="build-libiberty"
2891
2892# these tools are built for the build environment
2893build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2894
2895# these libraries are used by various programs built for the host environment
2896#
2897host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2898
2899# these tools are built for the host environment
2900# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2901# know that we are building the simulator.
2902# binutils, gas and ld appear in that order because it makes sense to run
2903# "make check" in that particular order.
2904# If --enable-gold is used, "gold" will replace "ld".
2905host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2906
2907# libgcj represents the runtime libraries only used by gcj.
2908libgcj="target-libffi \
2909	target-zlib \
2910	target-qthreads \
2911	target-libjava"
2912
2913# these libraries are built for the target environment, and are built after
2914# the host libraries and the host tools (which may be a cross compiler)
2915# Note that libiberty is not a target library.
2916target_libraries="target-libgcc \
2917		target-libgloss \
2918		target-newlib \
2919		target-libgomp \
2920		target-libstdc++-v3 \
2921		target-libmudflap \
2922		target-libssp \
2923		target-libgfortran \
2924		target-boehm-gc \
2925		${libgcj} \
2926		target-libobjc \
2927		target-libada"
2928
2929# these tools are built using the target libraries, and are intended to
2930# run only in the target environment
2931#
2932# note: any program that *uses* libraries that are in the "target_libraries"
2933# list belongs in this list.  those programs are also very likely
2934# candidates for the "native_only" list which follows
2935#
2936target_tools="target-examples target-groff target-gperf target-rda"
2937
2938################################################################################
2939
2940## All tools belong in one of the four categories, and are assigned above
2941## We assign ${configdirs} this way to remove all embedded newlines.  This
2942## is important because configure will choke if they ever get through.
2943## ${configdirs} is directories we build using the host tools.
2944## ${target_configdirs} is directories we build using the target tools.
2945configdirs=`echo ${host_libs} ${host_tools}`
2946target_configdirs=`echo ${target_libraries} ${target_tools}`
2947build_configdirs=`echo ${build_libs} ${build_tools}`
2948
2949
2950
2951################################################################################
2952
2953srcname="gnu development package"
2954
2955# This gets set non-empty for some net releases of packages.
2956appdirs=""
2957
2958# Define is_cross_compiler to save on calls to 'test'.
2959is_cross_compiler=
2960if test x"${host}" = x"${target}" ; then
2961  is_cross_compiler=no
2962else
2963  is_cross_compiler=yes
2964fi
2965
2966# Find the build and target subdir names.
2967
2968# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2969# have matching libraries, they should use host libraries: Makefile.tpl
2970# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2971# However, they still use the build modules, because the corresponding
2972# host modules (e.g. bison) are only built for the host when bootstrap
2973# finishes. So:
2974# - build_subdir is where we find build modules, and never changes.
2975# - build_libsubdir is where we find build libraries, and can be overridden.
2976
2977# Prefix 'build-' so this never conflicts with target_subdir.
2978build_subdir="build-${build_noncanonical}"
2979
2980# Check whether --with-build-libsubdir was given.
2981if test "${with_build_libsubdir+set}" = set; then :
2982  withval=$with_build_libsubdir; build_libsubdir="$withval"
2983else
2984  build_libsubdir="$build_subdir"
2985fi
2986
2987# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2988if ( test $srcdir = . && test -d gcc ) \
2989   || test -d $srcdir/../host-${host_noncanonical}; then
2990  host_subdir="host-${host_noncanonical}"
2991else
2992  host_subdir=.
2993fi
2994# No prefix.
2995target_subdir=${target_noncanonical}
2996
2997# Be sure to cover against remnants of an in-tree build.
2998if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2999  as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
3000Use a pristine source tree when building in a separate tree" "$LINENO" 5
3001fi
3002
3003# Skipdirs are removed silently.
3004skipdirs=
3005# Noconfigdirs are removed loudly.
3006noconfigdirs=""
3007
3008use_gnu_ld=
3009# Make sure we don't let GNU ld be added if we didn't want it.
3010if test x$with_gnu_ld = xno ; then
3011  use_gnu_ld=no
3012  noconfigdirs="$noconfigdirs ld gold"
3013fi
3014
3015use_gnu_as=
3016# Make sure we don't let GNU as be added if we didn't want it.
3017if test x$with_gnu_as = xno ; then
3018  use_gnu_as=no
3019  noconfigdirs="$noconfigdirs gas"
3020fi
3021
3022use_included_zlib=
3023# Make sure we don't let ZLIB be added if we didn't want it.
3024if test x$with_system_zlib = xyes ; then
3025  use_included_zlib=no
3026  noconfigdirs="$noconfigdirs zlib"
3027fi
3028
3029# some tools are so dependent upon X11 that if we're not building with X,
3030# it's not even worth trying to configure, much less build, that tool.
3031
3032case ${with_x} in
3033  yes | "") ;; # the default value for this tree is that X11 is available
3034  no)
3035    skipdirs="${skipdirs} tk itcl libgui"
3036    # We won't be able to build gdbtk without X.
3037    enable_gdbtk=no
3038    ;;
3039  *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3040esac
3041
3042# Some tools are only suitable for building in a "native" situation.
3043# Remove these if host!=target.
3044native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
3045
3046# Similarly, some are only suitable for cross toolchains.
3047# Remove these if host=target.
3048cross_only="target-libgloss target-newlib target-opcodes"
3049
3050case $is_cross_compiler in
3051  no) skipdirs="${skipdirs} ${cross_only}" ;;
3052  yes) skipdirs="${skipdirs} ${native_only}" ;;
3053esac
3054
3055# If both --with-headers and --with-libs are specified, default to
3056# --without-newlib.
3057if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3058   && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
3059  if test x"${with_newlib}" = x ; then
3060    with_newlib=no
3061  fi
3062fi
3063
3064# Recognize --with-newlib/--without-newlib.
3065case ${with_newlib} in
3066  no) skipdirs="${skipdirs} target-newlib" ;;
3067  yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3068esac
3069
3070# Handle --enable-gold.
3071
3072# Check whether --enable-gold was given.
3073if test "${enable_gold+set}" = set; then :
3074  enableval=$enable_gold; ENABLE_GOLD=$enableval
3075else
3076  ENABLE_GOLD=no
3077fi
3078
3079if test "${ENABLE_GOLD}" = "yes"; then
3080  # Check for ELF target.
3081  is_elf=no
3082  case "${target}" in
3083    *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3084    | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3085    | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
3086      case "${target}" in
3087        *-*-linux*aout* | *-*-linux*oldld*)
3088          ;;
3089        *)
3090          is_elf=yes
3091          ;;
3092      esac
3093  esac
3094
3095  if test "$is_elf" = "yes"; then
3096    # Check for target supported by gold.
3097    case "${target}" in
3098      i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
3099        configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
3100        ;;
3101    esac
3102  fi
3103fi
3104
3105# Configure extra directories which are host specific
3106
3107case "${host}" in
3108  *-cygwin*)
3109    configdirs="$configdirs libtermcap" ;;
3110esac
3111
3112# A target can indicate whether a language isn't supported for some reason.
3113# Only spaces may be used in this macro; not newlines or tabs.
3114unsupported_languages=
3115
3116# Remove more programs from consideration, based on the host or
3117# target this usually means that a port of the program doesn't
3118# exist yet.
3119
3120case "${host}" in
3121  hppa*64*-*-*)
3122    noconfigdirs="$noconfigdirs byacc"
3123    ;;
3124  i[3456789]86-*-vsta)
3125    noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
3126    ;;
3127  i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
3128    noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3129    ;;
3130  x86_64-*-mingw*)
3131    noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3132    ;;
3133  i[3456789]86-*-mingw32*)
3134    # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
3135    noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3136    ;;
3137  i[3456789]86-*-beos*)
3138    noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3139    ;;
3140  *-*-cygwin*)
3141    noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
3142    ;;
3143  *-*-netbsd*)
3144    noconfigdirs="$noconfigdirs rcs"
3145    ;;
3146  ppc*-*-pe)
3147    noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
3148    ;;
3149  powerpc-*-beos*)
3150    noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
3151    ;;
3152esac
3153
3154
3155# Check whether --enable-libada was given.
3156if test "${enable_libada+set}" = set; then :
3157  enableval=$enable_libada; ENABLE_LIBADA=$enableval
3158else
3159  ENABLE_LIBADA=yes
3160fi
3161
3162if test "${ENABLE_LIBADA}" != "yes" ; then
3163  noconfigdirs="$noconfigdirs gnattools"
3164fi
3165
3166# Check whether --enable-libssp was given.
3167if test "${enable_libssp+set}" = set; then :
3168  enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3169else
3170  ENABLE_LIBSSP=yes
3171fi
3172
3173
3174# Save it here so that, even in case of --enable-libgcj, if the Java
3175# front-end isn't enabled, we still get libgcj disabled.
3176libgcj_saved=$libgcj
3177case $enable_libgcj in
3178yes)
3179  # If we reset it here, it won't get added to noconfigdirs in the
3180  # target-specific build rules, so it will be forcibly enabled
3181  # (unless the Java language itself isn't enabled).
3182  libgcj=
3183  ;;
3184no)
3185  # Make sure we get it printed in the list of not supported target libs.
3186  noconfigdirs="$noconfigdirs ${libgcj}"
3187  ;;
3188esac
3189
3190
3191# Disable libmudflap on some systems.
3192if test x$enable_libmudflap = x ; then
3193    case "${target}" in
3194    *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3195        # Enable libmudflap by default in GNU and friends.
3196	;;
3197    *-*-freebsd*)
3198        # Enable libmudflap by default in FreeBSD.
3199	;;
3200    *)
3201        # Disable it by default everywhere else.
3202	noconfigdirs="$noconfigdirs target-libmudflap"
3203	;;
3204    esac
3205fi
3206
3207# Disable libgomp on non POSIX hosted systems.
3208if test x$enable_libgomp = x ; then
3209    # Enable libgomp by default on hosted POSIX systems.
3210    case "${target}" in
3211    *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3212	;;
3213    *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3214	;;
3215    *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3216	;;
3217    *-*-darwin* | *-*-aix*)
3218	;;
3219    *)
3220	noconfigdirs="$noconfigdirs target-libgomp"
3221	;;
3222    esac
3223fi
3224
3225# Default libgloss CPU subdirectory.
3226libgloss_dir="$target_cpu"
3227
3228case "${target}" in
3229  *-*-chorusos)
3230    noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3231    ;;
3232  powerpc-*-darwin*)
3233    noconfigdirs="$noconfigdirs ld gas gdb gprof"
3234    noconfigdirs="$noconfigdirs sim target-rda"
3235    ;;
3236  i[3456789]86-*-darwin*)
3237    noconfigdirs="$noconfigdirs ld gprof"
3238    noconfigdirs="$noconfigdirs sim target-rda"
3239    ;;
3240  x86_64-*-darwin[912]*)
3241    noconfigdirs="$noconfigdirs ld gas gprof"
3242    noconfigdirs="$noconfigdirs sim target-rda"
3243    ;;
3244  *-*-darwin*)
3245    noconfigdirs="$noconfigdirs ld gas gdb gprof"
3246    noconfigdirs="$noconfigdirs sim target-rda"
3247    noconfigdirs="$noconfigdirs ${libgcj}"
3248    ;;
3249  *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3250    noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3251    ;;
3252  *-*-freebsd*)
3253    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3254    if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3255	&& test -f /usr/local/include/gmp.h; then
3256      with_gmp=/usr/local
3257    fi
3258
3259    # Skip some stuff that's unsupported on some FreeBSD configurations.
3260    case "${target}" in
3261      i*86-*-*) ;;
3262      alpha*-*-*) ;;
3263      x86_64-*-*) ;;
3264      *)
3265	noconfigdirs="$noconfigdirs ${libgcj}"
3266	;;
3267    esac
3268    ;;
3269  *-*-kaos*)
3270    # Remove unsupported stuff on all kaOS configurations.
3271    skipdirs="${libgcj} target-libstdc++-v3 target-librx"
3272    skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3273    skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3274    noconfigdirs="$noconfigdirs target-libgloss"
3275    ;;
3276  *-*-netbsd*)
3277    # Skip some stuff on all NetBSD configurations.
3278    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3279
3280    # Skip some stuff that's unsupported on some NetBSD configurations.
3281    case "${target}" in
3282      i*86-*-netbsdelf*) ;;
3283      arm*-*-netbsdelf*) ;;
3284      *)
3285	noconfigdirs="$noconfigdirs ${libgcj}"
3286	;;
3287    esac
3288    ;;
3289  *-*-netware*)
3290    noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj} target-libmudflap"
3291    ;;
3292  *-*-rtems*)
3293    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3294    ;;
3295    # The tpf target doesn't support gdb yet.
3296  *-*-tpf*)
3297    noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3298    ;;
3299  *-*-uclinux*)
3300    noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3301    ;;
3302  *-*-vxworks*)
3303    noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libstdc++-v3 ${libgcj}"
3304    ;;
3305  alpha*-dec-osf*)
3306    # ld works, but does not support shared libraries.
3307    # newlib is not 64 bit ready.  I'm not sure about fileutils.
3308    # gas doesn't generate exception information.
3309    noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3310    ;;
3311  alpha*-*-*vms*)
3312    noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
3313    ;;
3314  alpha*-*-linux*)
3315    # newlib is not 64 bit ready
3316    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3317    ;;
3318  alpha*-*-*)
3319    # newlib is not 64 bit ready
3320    noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3321    ;;
3322  am33_2.0-*-linux*)
3323    noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3324    ;;
3325  sh-*-linux*)
3326    noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3327    ;;
3328  sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3329    noconfigdirs="$noconfigdirs ${libgcj}"
3330    noconfigdirs="$noconfigdirs target-examples"
3331    noconfigdirs="$noconfigdirs texinfo send-pr"
3332    noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3333    noconfigdirs="$noconfigdirs expect dejagnu"
3334    # the C++ libraries don't build on top of CE's C libraries
3335    noconfigdirs="$noconfigdirs target-libstdc++-v3"
3336    noconfigdirs="$noconfigdirs target-newlib"
3337    case "${host}" in
3338      *-*-cygwin*) ;; # keep gdb and readline
3339      *) noconfigdirs="$noconfigdirs gdb readline"
3340	 ;;
3341    esac
3342    libgloss_dir=wince
3343    ;;
3344  arc-*-*)
3345    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3346    ;;
3347  arm-semi-aof )
3348    ;;
3349  arm-*-coff | strongarm-*-coff | xscale-*-coff)
3350    noconfigdirs="$noconfigdirs ${libgcj}"
3351    libgloss_dir=arm
3352    ;;
3353  arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3354    noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3355    libgloss_dir=arm
3356    ;;
3357  arm*-*-linux-gnueabi)
3358    noconfigdirs="$noconfigdirs target-qthreads"
3359    case ${with_newlib} in
3360      no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3361    esac
3362    libgloss_dir=arm
3363    ;;
3364  arm*-*-symbianelf*)
3365    noconfigdirs="$noconfigdirs ${libgcj}"
3366    libgloss_dir=arm
3367    ;;
3368  arm-*-pe*)
3369    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3370    ;;
3371  thumb-*-coff)
3372    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3373    ;;
3374  thumb-*-elf)
3375    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3376    ;;
3377  thumb-*-pe)
3378    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3379    ;;
3380  arm-*-riscix*)
3381    noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3382    ;;
3383  avr-*-*)
3384    noconfigdirs="$noconfigdirs target-libstdc++-v3 ${libgcj} target-libssp"
3385    ;;
3386  bfin-*-*)
3387    unsupported_languages="$unsupported_languages java"
3388    noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3389    if test x${is_cross_compiler} != xno ; then
3390      target_configdirs="${target_configdirs} target-bsp target-cygmon"
3391    fi
3392    ;;
3393  c4x-*-* | tic4x-*-*)
3394    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3395    ;;
3396  c54x*-*-* | tic54x-*-*)
3397    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3398    ;;
3399  cr16-*-*)
3400    noconfigdirs="$noconfigdirs ${libgcj} gdb"
3401    ;;
3402  cris-*-* | crisv32-*-*)
3403    unsupported_languages="$unsupported_languages java"
3404    case "${target}" in
3405      *-*-aout)
3406	unsupported_languages="$unsupported_languages fortran"
3407	noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3408      *-*-elf)
3409	noconfigdirs="$noconfigdirs target-boehm-gc";;
3410      *-*-linux*)
3411	noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3412      *)
3413	unsupported_languages="$unsupported_languages fortran"
3414	noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3415    esac
3416    libgloss_dir=cris
3417    ;;
3418  crx-*-*)
3419    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3420    ;;
3421  d10v-*-*)
3422    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3423    ;;
3424  d30v-*-*)
3425    noconfigdirs="$noconfigdirs ${libgcj} gdb"
3426    ;;
3427  ep9312-*-elf | ep9312-*-coff)
3428    libgloss_dir=arm
3429    ;;
3430  fr30-*-elf*)
3431    noconfigdirs="$noconfigdirs ${libgcj} gdb"
3432    ;;
3433  frv-*-*)
3434    noconfigdirs="$noconfigdirs ${libgcj}"
3435    ;;
3436  moxie-*-*)
3437    noconfigdirs="$noconfigdirs ${libgcj}"
3438    noconfigdirs="$noconfigdirs gprof"
3439    ;;
3440  h8300*-*-*)
3441    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3442    ;;
3443  h8500-*-*)
3444    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3445    ;;
3446  hppa1.1-*-osf* | hppa1.1-*-bsd* )
3447    ;;
3448  hppa*64*-*-linux* | parisc*64*-*-linux*)
3449    # In this case, it's because the hppa64-linux target is for
3450    # the kernel only at this point and has no libc, and thus no
3451    # headers, crt*.o, etc., all of which are needed by these.
3452    noconfigdirs="$noconfigdirs target-zlib"
3453    ;;
3454  parisc*-*-linux* | hppa*-*-linux*)
3455    ;;
3456  hppa*-*-*elf* | \
3457  hppa*-*-lites* | \
3458  hppa*-*-openbsd* | \
3459  hppa*64*-*-*)
3460    noconfigdirs="$noconfigdirs ${libgcj}"
3461    ;;
3462  hppa*-hp-hpux11*)
3463    noconfigdirs="$noconfigdirs ld shellutils"
3464    ;;
3465  hppa*-*-pro*)
3466    libgloss_dir=pa
3467    ;;
3468  hppa*-*-*)
3469    # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3470    # build on HP-UX 10.20.
3471    noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3472    ;;
3473  i960-*-*)
3474    noconfigdirs="$noconfigdirs ${libgcj} gdb"
3475    ;;
3476  ia64*-*-elf*)
3477    # No gdb support yet.
3478    noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3479    ;;
3480  ia64*-**-hpux*)
3481    # No gdb or ld support yet.
3482    noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3483    ;;
3484  ia64*-*-*vms*)
3485    # No gdb or ld support yet.
3486    noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3487    ;;
3488  i370-*-opened*)
3489    ;;
3490  i[3456789]86-*-coff | i[3456789]86-*-elf)
3491    noconfigdirs="$noconfigdirs ${libgcj}"
3492    libgloss_dir=i386
3493    ;;
3494  i[3456789]86-*-linux*)
3495    # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3496    # not build java stuff by default.
3497    case "${target}" in
3498      *-*-*libc1*)
3499	noconfigdirs="$noconfigdirs ${libgcj}";;
3500    esac
3501
3502    # This section makes it possible to build newlib natively on linux.
3503    # If we are using a cross compiler then don't configure newlib.
3504    if test x${is_cross_compiler} != xno ; then
3505      noconfigdirs="$noconfigdirs target-newlib"
3506    fi
3507    noconfigdirs="$noconfigdirs target-libgloss"
3508    # If we are not using a cross compiler, do configure newlib.
3509    # Note however, that newlib will only be configured in this situation
3510    # if the --with-newlib option has been given, because otherwise
3511    # 'target-newlib' will appear in skipdirs.
3512    ;;
3513  i[3456789]86-w64-mingw*)
3514    noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3515    ;;
3516  i[3456789]86-*-mingw*)
3517    target_configdirs="$target_configdirs target-winsup"
3518    noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3519    ;;
3520  x86_64-*-mingw*)
3521    noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3522    ;;
3523  *-*-cygwin*)
3524    target_configdirs="$target_configdirs target-libtermcap target-winsup"
3525    noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3526    # always build newlib if winsup directory is present.
3527    if test -d "$srcdir/winsup/cygwin"; then
3528      skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3529    elif test -d "$srcdir/newlib"; then
3530      echo "Warning: winsup/cygwin is missing so newlib can't be built."
3531    fi
3532    ;;
3533  i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3534  i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3535    ;;
3536  i[3456789]86-*-pe)
3537    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3538    ;;
3539  i[3456789]86-*-sco3.2v5*)
3540    # The linker does not yet know about weak symbols in COFF,
3541    # and is not configured to handle mixed ELF and COFF.
3542    noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3543    ;;
3544  i[3456789]86-*-sco*)
3545    noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3546    ;;
3547  i[3456789]86-*-solaris2*)
3548    noconfigdirs="$noconfigdirs target-libgloss"
3549    ;;
3550  i[3456789]86-*-sysv4*)
3551    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3552    ;;
3553  i[3456789]86-*-beos*)
3554    noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3555    ;;
3556  i[3456789]86-*-rdos*)
3557    noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3558    ;;
3559  m32r-*-*)
3560    noconfigdirs="$noconfigdirs ${libgcj}"
3561    ;;
3562  m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3563    noconfigdirs="$noconfigdirs target-libstdc++-v3 ${libgcj}"
3564    libgloss_dir=m68hc11
3565    ;;
3566  m68k-*-elf*)
3567    noconfigdirs="$noconfigdirs ${libgcj}"
3568    ;;
3569  m68k-*-coff*)
3570    noconfigdirs="$noconfigdirs ${libgcj}"
3571    ;;
3572  m68*-*-* | fido-*-*)
3573    libgloss_dir=m68k
3574    ;;
3575  mcore-*-pe*)
3576  # The EPOC C++ environment does not support exceptions or rtti,
3577  # and so building libstdc++-v3 tends not to always work.
3578    noconfigdirs="$noconfigdirs target-libstdc++-v3"
3579    ;;
3580  mmix-*-*)
3581    noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3582    unsupported_languages="$unsupported_languages fortran java"
3583    ;;
3584  mn10200-*-*)
3585    noconfigdirs="$noconfigdirs ${libgcj}"
3586    ;;
3587  mn10300-*-*)
3588    noconfigdirs="$noconfigdirs ${libgcj}"
3589    ;;
3590  mt-*-*)
3591    noconfigdirs="$noconfigdirs sim"
3592    ;;
3593  powerpc-*-aix*)
3594    # copied from rs6000-*-* entry
3595    noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3596    ;;
3597  powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3598    target_configdirs="$target_configdirs target-winsup"
3599    noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3600    # always build newlib.
3601    skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3602    ;;
3603    # This is temporary until we can link against shared libraries
3604  powerpcle-*-solaris*)
3605    noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3606    libgloss_dir=rs6000
3607    ;;
3608  powerpc-*-beos*)
3609    noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3610    ;;
3611  powerpc-*-eabi)
3612    noconfigdirs="$noconfigdirs ${libgcj}"
3613    libgloss_dir=rs6000
3614    ;;
3615  powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3616    libgloss_dir=rs6000
3617    ;;
3618  rs6000-*-lynxos*)
3619    noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3620    ;;
3621  rs6000-*-aix*)
3622    noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3623    ;;
3624  rs6000-*-*)
3625    noconfigdirs="$noconfigdirs gprof ${libgcj}"
3626    ;;
3627  m68k-apollo-*)
3628    noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3629    ;;
3630  microblaze*)
3631    noconfigdirs="$noconfigdirs gprof ${libgcj}"
3632    ;;
3633  mips*-sde-elf*)
3634    noconfigdirs="$noconfigdirs ${libgcj}"
3635    if test x$with_newlib = xyes; then
3636      noconfigdirs="$noconfigdirs gprof"
3637    fi
3638    libgloss_dir=mips
3639    ;;
3640  mips*-*-irix5*)
3641    noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3642    ;;
3643  mips*-*-irix6*)
3644    # Linking libjava exceeds command-line length limits on at least
3645    # IRIX 6.2, but not on IRIX 6.5.
3646    # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3647    # <oldham@codesourcery.com>
3648    noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3649    ;;
3650  mips*-*-bsd*)
3651    noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3652    ;;
3653  mips*-*-linux*)
3654    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3655    ;;
3656  mips*-*-*)
3657    noconfigdirs="$noconfigdirs gprof ${libgcj}"
3658    libgloss_dir=mips
3659    ;;
3660  romp-*-*)
3661    noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3662    ;;
3663  sh-*-* | sh64-*-*)
3664    case "${host}" in
3665      i[3456789]86-*-vsta) ;; # don't add gprof back in
3666      i[3456789]86-*-go32*) ;; # don't add gprof back in
3667      i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3668      *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3669    esac
3670    case "${target}" in
3671      sh*-*-elf)
3672         noconfigdirs="$noconfigdirs ${libgcj}" ;;
3673      *)
3674         noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3675    esac
3676    ;;
3677  sparclet-*-aout* | sparc86x-*-*)
3678    libgloss_dir=sparc
3679    ;;
3680  sparc-*-elf*)
3681    noconfigdirs="$noconfigdirs ${libgcj}"
3682    ;;
3683  sparc64-*-elf*)
3684    noconfigdirs="$noconfigdirs ${libgcj}"
3685    libgloss_dir=sparc
3686    ;;
3687  sparclite-*-*)
3688    noconfigdirs="$noconfigdirs ${libgcj}"
3689    libgloss_dir=sparc
3690    ;;
3691  sparc-*-sunos4*)
3692    noconfigdirs="$noconfigdirs ${libgcj}"
3693    if test x${is_cross_compiler} != xno ; then
3694           noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3695    else
3696           use_gnu_ld=no
3697    fi
3698    ;;
3699  sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3700    noconfigdirs="$noconfigdirs ${libgcj}"
3701    ;;
3702  sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3703    ;;
3704  tic6x-*-*)
3705    noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3706    ;;
3707  v810-*-*)
3708    noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3709    ;;
3710  v850-*-*)
3711    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3712    ;;
3713  v850e-*-*)
3714    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3715    ;;
3716  v850ea-*-*)
3717    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3718    ;;
3719  vax-*-vms)
3720    noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3721    ;;
3722  vax-*-*)
3723    noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3724    ;;
3725  xtensa*-*-*)
3726    noconfigdirs="$noconfigdirs ${libgcj}"
3727    ;;
3728  ip2k-*-*)
3729    noconfigdirs="$noconfigdirs target-libstdc++-v3 ${libgcj}"
3730    ;;
3731  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3732    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3733    ;;
3734  *-*-lynxos*)
3735    noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3736    ;;
3737  *-*-*)
3738    noconfigdirs="$noconfigdirs ${libgcj}"
3739    ;;
3740esac
3741
3742# If we aren't building newlib, then don't build libgloss, since libgloss
3743# depends upon some newlib header files.
3744case "${noconfigdirs}" in
3745  *target-libgloss*) ;;
3746  *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3747esac
3748
3749# Work in distributions that contain no compiler tools, like Autoconf.
3750tentative_cc=""
3751host_makefile_frag=/dev/null
3752if test -d ${srcdir}/config ; then
3753case "${host}" in
3754  m68k-hp-hpux*)
3755    # Avoid "too much defining" errors from HPUX compiler.
3756    tentative_cc="cc -Wp,-H256000"
3757    # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3758    # If it's HP/UX ar, this should be harmless.
3759    RANLIB="ar ts"
3760    ;;
3761  m68k-apollo-sysv*)
3762    tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3763    ;;
3764  m68k-apollo-bsd*)
3765    #None of the Apollo compilers can compile gas or binutils.  The preprocessor
3766    # chokes on bfd, the compiler won't let you assign integers to enums, and
3767    # other problems.  Defining CC to gcc is a questionable way to say "don't use
3768    # the apollo compiler" (the preferred version of GCC could be called cc,
3769    # or whatever), but I'm not sure leaving CC as cc is any better...
3770    #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3771    # Used to have BISON=yacc.
3772    tentative_cc=gcc
3773    ;;
3774  m88k-dg-dgux*)
3775    tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3776    ;;
3777  m88k-harris-cxux*)
3778    # Under CX/UX, we want to tell the compiler to use ANSI mode.
3779    tentative_cc="cc -Xa"
3780    host_makefile_frag="config/mh-cxux"
3781    ;;
3782  m88k-motorola-sysv*)
3783    ;;
3784  mips*-dec-ultrix*)
3785    tentative_cc="cc -Wf,-XNg1000"
3786    host_makefile_frag="config/mh-decstation"
3787    ;;
3788  mips*-nec-sysv4*)
3789    # The C compiler on NEC MIPS SVR4 needs bigger tables.
3790    tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3791    host_makefile_frag="config/mh-necv4"
3792    ;;
3793  mips*-sgi-irix4*)
3794    # Tell compiler to use K&R C.  We can't compile under the SGI Ansi
3795    # environment.  Also bump switch table size so that cp-parse will
3796    # compile.  Bump string length limit so linker builds.
3797    tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3798    ;;
3799  mips*-*-sysv4*)
3800    host_makefile_frag="config/mh-sysv4"
3801    ;;
3802  mips*-*-sysv*)
3803    # This is for a MIPS running RISC/os 4.52C.
3804
3805    # This is needed for GDB, but needs to be in the top-level make because
3806    # if a library is compiled with the bsd headers and gets linked with the
3807    # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3808    # a different size).
3809    # ptrace(2) apparently has problems in the BSD environment.  No workaround is
3810    # known except to select the sysv environment.  Could we use /proc instead?
3811    # These "sysv environments" and "bsd environments" often end up being a pain.
3812    #
3813    # This is not part of CFLAGS because perhaps not all C compilers have this
3814    # option.
3815    tentative_cc="cc -systype sysv"
3816    ;;
3817  i370-ibm-opened*)
3818    tentative_cc="c89"
3819    ;;
3820  i[3456789]86-*-sysv5*)
3821    host_makefile_frag="config/mh-sysv5"
3822    ;;
3823  i[3456789]86-*-dgux*)
3824    tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3825    host_makefile_frag="config/mh-dgux386"
3826    ;;
3827  i[3456789]86-ncr-sysv4.3*)
3828    # The MetaWare compiler will generate a copyright message unless you
3829    # turn it off by adding the -Hnocopyr flag.
3830    tentative_cc="cc -Hnocopyr"
3831    ;;
3832  i[3456789]86-ncr-sysv4*)
3833    # for an NCR 3000 (i486/SVR4) system.
3834    # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3835    # This compiler not only emits obnoxious copyright messages every time
3836    # you run it, but it chokes and dies on a whole bunch of GNU source
3837    # files.  Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3838    tentative_cc="/usr/ccs/ATT/cc"
3839    host_makefile_frag="config/mh-ncr3000"
3840    ;;
3841  i[3456789]86-*-sco3.2v5*)
3842    ;;
3843  i[3456789]86-*-sco*)
3844    # The native C compiler botches some simple uses of const.  Unfortunately,
3845    # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3846    tentative_cc="cc -Dconst="
3847    host_makefile_frag="config/mh-sco"
3848    ;;
3849  i[3456789]86-*-udk*)
3850    host_makefile_frag="config/mh-sysv5"
3851    ;;
3852  i[3456789]86-*-solaris2*)
3853    host_makefile_frag="config/mh-sysv4"
3854    ;;
3855  i[3456789]86-*-msdosdjgpp*)
3856    host_makefile_frag="config/mh-djgpp"
3857    ;;
3858  *-cygwin*)
3859
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3861$as_echo_n "checking to see if cat works as expected... " >&6; }
3862echo a >cygwin-cat-check
3863if test `cat cygwin-cat-check` = a ; then
3864  rm cygwin-cat-check
3865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3866$as_echo "yes" >&6; }
3867else
3868  rm cygwin-cat-check
3869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870$as_echo "no" >&6; }
3871  as_fn_error "The cat command does not ignore carriage return characters.
3872  Please either mount the build directory in binary mode or run the following
3873  commands before running any configure script:
3874set -o igncr
3875export SHELLOPTS
3876  " "$LINENO" 5
3877fi
3878
3879    host_makefile_frag="config/mh-cygwin"
3880    ;;
3881  *-mingw*)
3882    host_makefile_frag="config/mh-mingw"
3883    ;;
3884  *-interix*)
3885    host_makefile_frag="config/mh-interix"
3886    ;;
3887  vax-*-ultrix2*)
3888    # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3889    tentative_cc=gcc
3890    ;;
3891  *-*-solaris2*)
3892    host_makefile_frag="config/mh-solaris"
3893    ;;
3894  m68k-sun-sunos*)
3895    # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3896    # without overflowing the jump tables (-J says to use a 32 bit table)
3897    tentative_cc="cc -J"
3898    ;;
3899  hppa*-hp-hpux10*)
3900    tentative_cc="cc -Wp,-H256000"
3901    host_makefile_frag="config/mh-pa-hpux10"
3902    ;;
3903  hppa*-hp-hpux* | hppa*-*-hiux*)
3904    tentative_cc="cc -Wp,-H256000"
3905    host_makefile_frag="config/mh-pa"
3906    ;;
3907  hppa*-*)
3908    host_makefile_frag="config/mh-pa"
3909    ;;
3910  *-hp-hpux* | *-*-hiux*)
3911    tentative_cc="cc -Wp,-H256000"
3912    ;;
3913  rs6000-*-lynxos*)
3914    # /bin/cc is less than useful for our purposes.  Always use GCC
3915    tentative_cc="/usr/cygnus/progressive/bin/gcc"
3916    host_makefile_frag="config/mh-lynxrs6k"
3917    ;;
3918  i[3456789]86-*-darwin* | x86_64-*-darwin*)
3919    host_makefile_frag="config/mh-x86-darwin"
3920    ;;
3921  powerpc-*-darwin*)
3922    host_makefile_frag="config/mh-ppc-darwin"
3923    ;;
3924  powerpc-*-aix*)
3925    host_makefile_frag="config/mh-ppc-aix"
3926    ;;
3927  rs6000-*-aix*)
3928    host_makefile_frag="config/mh-ppc-aix"
3929    ;;
3930  *-*-lynxos*)
3931    # /bin/cc is less than useful for our purposes.  Always use GCC
3932    tentative_cc="/bin/gcc"
3933    ;;
3934  *-*-sysv4*)
3935    host_makefile_frag="config/mh-sysv4"
3936    ;;
3937  # This is placed last to prevent interfering with the cases above.
3938  i[3456789]86-*-*)
3939    # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3940    host_makefile_frag="config/mh-x86omitfp"
3941    ;;
3942esac
3943fi
3944
3945# If we aren't going to be using gcc, see if we can extract a definition
3946# of CC from the fragment.
3947# Actually, use the 'pre-extracted' version above.
3948if test -z "${CC}" && test "${build}" = "${host}" ; then
3949  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}:"
3950  found=
3951  for dir in $PATH; do
3952    test -z "$dir" && dir=.
3953    if test -f $dir/gcc; then
3954      found=yes
3955      break
3956    fi
3957  done
3958  IFS="$save_ifs"
3959  if test -z "${found}" && test -n "${tentative_cc}" ; then
3960    CC=$tentative_cc
3961  fi
3962fi
3963
3964if test "${build}" != "${host}" ; then
3965  AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3966  AS_FOR_BUILD=${AS_FOR_BUILD-as}
3967  CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3968  CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3969  GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3970  GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3971  DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3972  LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3973  NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3974  RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3975  WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3976  WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3977else
3978  AR_FOR_BUILD="\$(AR)"
3979  AS_FOR_BUILD="\$(AS)"
3980  CC_FOR_BUILD="\$(CC)"
3981  CXX_FOR_BUILD="\$(CXX)"
3982  GCJ_FOR_BUILD="\$(GCJ)"
3983  GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3984  DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3985  LD_FOR_BUILD="\$(LD)"
3986  NM_FOR_BUILD="\$(NM)"
3987  RANLIB_FOR_BUILD="\$(RANLIB)"
3988  WINDRES_FOR_BUILD="\$(WINDRES)"
3989  WINDMC_FOR_BUILD="\$(WINDMC)"
3990fi
3991
3992ac_ext=c
3993ac_cpp='$CPP $CPPFLAGS'
3994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997if test -n "$ac_tool_prefix"; then
3998  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3999set dummy ${ac_tool_prefix}gcc; ac_word=$2
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001$as_echo_n "checking for $ac_word... " >&6; }
4002if test "${ac_cv_prog_CC+set}" = set; then :
4003  $as_echo_n "(cached) " >&6
4004else
4005  if test -n "$CC"; then
4006  ac_cv_prog_CC="$CC" # Let the user override the test.
4007else
4008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009for as_dir in $PATH
4010do
4011  IFS=$as_save_IFS
4012  test -z "$as_dir" && as_dir=.
4013    for ac_exec_ext in '' $ac_executable_extensions; do
4014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4015    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017    break 2
4018  fi
4019done
4020  done
4021IFS=$as_save_IFS
4022
4023fi
4024fi
4025CC=$ac_cv_prog_CC
4026if test -n "$CC"; then
4027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4028$as_echo "$CC" >&6; }
4029else
4030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031$as_echo "no" >&6; }
4032fi
4033
4034
4035fi
4036if test -z "$ac_cv_prog_CC"; then
4037  ac_ct_CC=$CC
4038  # Extract the first word of "gcc", so it can be a program name with args.
4039set dummy gcc; ac_word=$2
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4041$as_echo_n "checking for $ac_word... " >&6; }
4042if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4043  $as_echo_n "(cached) " >&6
4044else
4045  if test -n "$ac_ct_CC"; then
4046  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4047else
4048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049for as_dir in $PATH
4050do
4051  IFS=$as_save_IFS
4052  test -z "$as_dir" && as_dir=.
4053    for ac_exec_ext in '' $ac_executable_extensions; do
4054  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4055    ac_cv_prog_ac_ct_CC="gcc"
4056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4057    break 2
4058  fi
4059done
4060  done
4061IFS=$as_save_IFS
4062
4063fi
4064fi
4065ac_ct_CC=$ac_cv_prog_ac_ct_CC
4066if test -n "$ac_ct_CC"; then
4067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4068$as_echo "$ac_ct_CC" >&6; }
4069else
4070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071$as_echo "no" >&6; }
4072fi
4073
4074  if test "x$ac_ct_CC" = x; then
4075    CC=""
4076  else
4077    case $cross_compiling:$ac_tool_warned in
4078yes:)
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4081ac_tool_warned=yes ;;
4082esac
4083    CC=$ac_ct_CC
4084  fi
4085else
4086  CC="$ac_cv_prog_CC"
4087fi
4088
4089if test -z "$CC"; then
4090          if test -n "$ac_tool_prefix"; then
4091    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4092set dummy ${ac_tool_prefix}cc; ac_word=$2
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094$as_echo_n "checking for $ac_word... " >&6; }
4095if test "${ac_cv_prog_CC+set}" = set; then :
4096  $as_echo_n "(cached) " >&6
4097else
4098  if test -n "$CC"; then
4099  ac_cv_prog_CC="$CC" # Let the user override the test.
4100else
4101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH
4103do
4104  IFS=$as_save_IFS
4105  test -z "$as_dir" && as_dir=.
4106    for ac_exec_ext in '' $ac_executable_extensions; do
4107  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4108    ac_cv_prog_CC="${ac_tool_prefix}cc"
4109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4110    break 2
4111  fi
4112done
4113  done
4114IFS=$as_save_IFS
4115
4116fi
4117fi
4118CC=$ac_cv_prog_CC
4119if test -n "$CC"; then
4120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4121$as_echo "$CC" >&6; }
4122else
4123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124$as_echo "no" >&6; }
4125fi
4126
4127
4128  fi
4129fi
4130if test -z "$CC"; then
4131  # Extract the first word of "cc", so it can be a program name with args.
4132set dummy cc; ac_word=$2
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134$as_echo_n "checking for $ac_word... " >&6; }
4135if test "${ac_cv_prog_CC+set}" = set; then :
4136  $as_echo_n "(cached) " >&6
4137else
4138  if test -n "$CC"; then
4139  ac_cv_prog_CC="$CC" # Let the user override the test.
4140else
4141  ac_prog_rejected=no
4142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143for as_dir in $PATH
4144do
4145  IFS=$as_save_IFS
4146  test -z "$as_dir" && as_dir=.
4147    for ac_exec_ext in '' $ac_executable_extensions; do
4148  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4149    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4150       ac_prog_rejected=yes
4151       continue
4152     fi
4153    ac_cv_prog_CC="cc"
4154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155    break 2
4156  fi
4157done
4158  done
4159IFS=$as_save_IFS
4160
4161if test $ac_prog_rejected = yes; then
4162  # We found a bogon in the path, so make sure we never use it.
4163  set dummy $ac_cv_prog_CC
4164  shift
4165  if test $# != 0; then
4166    # We chose a different compiler from the bogus one.
4167    # However, it has the same basename, so the bogon will be chosen
4168    # first if we set CC to just the basename; use the full file name.
4169    shift
4170    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4171  fi
4172fi
4173fi
4174fi
4175CC=$ac_cv_prog_CC
4176if test -n "$CC"; then
4177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4178$as_echo "$CC" >&6; }
4179else
4180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181$as_echo "no" >&6; }
4182fi
4183
4184
4185fi
4186if test -z "$CC"; then
4187  if test -n "$ac_tool_prefix"; then
4188  for ac_prog in cl.exe
4189  do
4190    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4191set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193$as_echo_n "checking for $ac_word... " >&6; }
4194if test "${ac_cv_prog_CC+set}" = set; then :
4195  $as_echo_n "(cached) " >&6
4196else
4197  if test -n "$CC"; then
4198  ac_cv_prog_CC="$CC" # Let the user override the test.
4199else
4200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201for as_dir in $PATH
4202do
4203  IFS=$as_save_IFS
4204  test -z "$as_dir" && as_dir=.
4205    for ac_exec_ext in '' $ac_executable_extensions; do
4206  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4208    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4209    break 2
4210  fi
4211done
4212  done
4213IFS=$as_save_IFS
4214
4215fi
4216fi
4217CC=$ac_cv_prog_CC
4218if test -n "$CC"; then
4219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4220$as_echo "$CC" >&6; }
4221else
4222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223$as_echo "no" >&6; }
4224fi
4225
4226
4227    test -n "$CC" && break
4228  done
4229fi
4230if test -z "$CC"; then
4231  ac_ct_CC=$CC
4232  for ac_prog in cl.exe
4233do
4234  # Extract the first word of "$ac_prog", so it can be a program name with args.
4235set dummy $ac_prog; ac_word=$2
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237$as_echo_n "checking for $ac_word... " >&6; }
4238if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4239  $as_echo_n "(cached) " >&6
4240else
4241  if test -n "$ac_ct_CC"; then
4242  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4243else
4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH
4246do
4247  IFS=$as_save_IFS
4248  test -z "$as_dir" && as_dir=.
4249    for ac_exec_ext in '' $ac_executable_extensions; do
4250  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251    ac_cv_prog_ac_ct_CC="$ac_prog"
4252    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253    break 2
4254  fi
4255done
4256  done
4257IFS=$as_save_IFS
4258
4259fi
4260fi
4261ac_ct_CC=$ac_cv_prog_ac_ct_CC
4262if test -n "$ac_ct_CC"; then
4263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4264$as_echo "$ac_ct_CC" >&6; }
4265else
4266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267$as_echo "no" >&6; }
4268fi
4269
4270
4271  test -n "$ac_ct_CC" && break
4272done
4273
4274  if test "x$ac_ct_CC" = x; then
4275    CC=""
4276  else
4277    case $cross_compiling:$ac_tool_warned in
4278yes:)
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4281ac_tool_warned=yes ;;
4282esac
4283    CC=$ac_ct_CC
4284  fi
4285fi
4286
4287fi
4288
4289
4290test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292as_fn_error "no acceptable C compiler found in \$PATH
4293See \`config.log' for more details." "$LINENO" 5; }
4294
4295# Provide some information about the compiler.
4296$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4297set X $ac_compile
4298ac_compiler=$2
4299for ac_option in --version -v -V -qversion; do
4300  { { ac_try="$ac_compiler $ac_option >&5"
4301case "(($ac_try" in
4302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303  *) ac_try_echo=$ac_try;;
4304esac
4305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306$as_echo "$ac_try_echo"; } >&5
4307  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4308  ac_status=$?
4309  if test -s conftest.err; then
4310    sed '10a\
4311... rest of stderr output deleted ...
4312         10q' conftest.err >conftest.er1
4313    cat conftest.er1 >&5
4314    rm -f conftest.er1 conftest.err
4315  fi
4316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317  test $ac_status = 0; }
4318done
4319
4320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321/* end confdefs.h.  */
4322
4323int
4324main ()
4325{
4326
4327  ;
4328  return 0;
4329}
4330_ACEOF
4331ac_clean_files_save=$ac_clean_files
4332ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4333# Try to create an executable without -o first, disregard a.out.
4334# It will help us diagnose broken compilers, and finding out an intuition
4335# of exeext.
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4337$as_echo_n "checking for C compiler default output file name... " >&6; }
4338ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4339
4340# The possible output files:
4341ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4342
4343ac_rmfiles=
4344for ac_file in $ac_files
4345do
4346  case $ac_file in
4347    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4348    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4349  esac
4350done
4351rm -f $ac_rmfiles
4352
4353if { { ac_try="$ac_link_default"
4354case "(($ac_try" in
4355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356  *) ac_try_echo=$ac_try;;
4357esac
4358eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4359$as_echo "$ac_try_echo"; } >&5
4360  (eval "$ac_link_default") 2>&5
4361  ac_status=$?
4362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363  test $ac_status = 0; }; then :
4364  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4365# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4366# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4367# so that the user can short-circuit this test for compilers unknown to
4368# Autoconf.
4369for ac_file in $ac_files ''
4370do
4371  test -f "$ac_file" || continue
4372  case $ac_file in
4373    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4374	;;
4375    [ab].out )
4376	# We found the default executable, but exeext='' is most
4377	# certainly right.
4378	break;;
4379    *.* )
4380	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4381	then :; else
4382	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4383	fi
4384	# We set ac_cv_exeext here because the later test for it is not
4385	# safe: cross compilers may not add the suffix if given an `-o'
4386	# argument, so we may need to know it at that point already.
4387	# Even if this section looks crufty: it has the advantage of
4388	# actually working.
4389	break;;
4390    * )
4391	break;;
4392  esac
4393done
4394test "$ac_cv_exeext" = no && ac_cv_exeext=
4395
4396else
4397  ac_file=''
4398fi
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4400$as_echo "$ac_file" >&6; }
4401if test -z "$ac_file"; then :
4402  $as_echo "$as_me: failed program was:" >&5
4403sed 's/^/| /' conftest.$ac_ext >&5
4404
4405{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4407{ as_fn_set_status 77
4408as_fn_error "C compiler cannot create executables
4409See \`config.log' for more details." "$LINENO" 5; }; }
4410fi
4411ac_exeext=$ac_cv_exeext
4412
4413# Check that the compiler produces executables we can run.  If not, either
4414# the compiler is broken, or we cross compile.
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4416$as_echo_n "checking whether the C compiler works... " >&6; }
4417# If not cross compiling, check that we can run a simple program.
4418if test "$cross_compiling" != yes; then
4419  if { ac_try='./$ac_file'
4420  { { case "(($ac_try" in
4421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422  *) ac_try_echo=$ac_try;;
4423esac
4424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425$as_echo "$ac_try_echo"; } >&5
4426  (eval "$ac_try") 2>&5
4427  ac_status=$?
4428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429  test $ac_status = 0; }; }; then
4430    cross_compiling=no
4431  else
4432    if test "$cross_compiling" = maybe; then
4433	cross_compiling=yes
4434    else
4435	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4437as_fn_error "cannot run C compiled programs.
4438If you meant to cross compile, use \`--host'.
4439See \`config.log' for more details." "$LINENO" 5; }
4440    fi
4441  fi
4442fi
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4444$as_echo "yes" >&6; }
4445
4446rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4447ac_clean_files=$ac_clean_files_save
4448# Check that the compiler produces executables we can run.  If not, either
4449# the compiler is broken, or we cross compile.
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4451$as_echo_n "checking whether we are cross compiling... " >&6; }
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4453$as_echo "$cross_compiling" >&6; }
4454
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4456$as_echo_n "checking for suffix of executables... " >&6; }
4457if { { ac_try="$ac_link"
4458case "(($ac_try" in
4459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460  *) ac_try_echo=$ac_try;;
4461esac
4462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463$as_echo "$ac_try_echo"; } >&5
4464  (eval "$ac_link") 2>&5
4465  ac_status=$?
4466  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467  test $ac_status = 0; }; then :
4468  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4469# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4470# work properly (i.e., refer to `conftest.exe'), while it won't with
4471# `rm'.
4472for ac_file in conftest.exe conftest conftest.*; do
4473  test -f "$ac_file" || continue
4474  case $ac_file in
4475    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4476    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4477	  break;;
4478    * ) break;;
4479  esac
4480done
4481else
4482  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4484as_fn_error "cannot compute suffix of executables: cannot compile and link
4485See \`config.log' for more details." "$LINENO" 5; }
4486fi
4487rm -f conftest$ac_cv_exeext
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4489$as_echo "$ac_cv_exeext" >&6; }
4490
4491rm -f conftest.$ac_ext
4492EXEEXT=$ac_cv_exeext
4493ac_exeext=$EXEEXT
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4495$as_echo_n "checking for suffix of object files... " >&6; }
4496if test "${ac_cv_objext+set}" = set; then :
4497  $as_echo_n "(cached) " >&6
4498else
4499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500/* end confdefs.h.  */
4501
4502int
4503main ()
4504{
4505
4506  ;
4507  return 0;
4508}
4509_ACEOF
4510rm -f conftest.o conftest.obj
4511if { { ac_try="$ac_compile"
4512case "(($ac_try" in
4513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514  *) ac_try_echo=$ac_try;;
4515esac
4516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4517$as_echo "$ac_try_echo"; } >&5
4518  (eval "$ac_compile") 2>&5
4519  ac_status=$?
4520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521  test $ac_status = 0; }; then :
4522  for ac_file in conftest.o conftest.obj conftest.*; do
4523  test -f "$ac_file" || continue;
4524  case $ac_file in
4525    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4526    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4527       break;;
4528  esac
4529done
4530else
4531  $as_echo "$as_me: failed program was:" >&5
4532sed 's/^/| /' conftest.$ac_ext >&5
4533
4534{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536as_fn_error "cannot compute suffix of object files: cannot compile
4537See \`config.log' for more details." "$LINENO" 5; }
4538fi
4539rm -f conftest.$ac_cv_objext conftest.$ac_ext
4540fi
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4542$as_echo "$ac_cv_objext" >&6; }
4543OBJEXT=$ac_cv_objext
4544ac_objext=$OBJEXT
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4546$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4547if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4548  $as_echo_n "(cached) " >&6
4549else
4550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551/* end confdefs.h.  */
4552
4553int
4554main ()
4555{
4556#ifndef __GNUC__
4557       choke me
4558#endif
4559
4560  ;
4561  return 0;
4562}
4563_ACEOF
4564if ac_fn_c_try_compile "$LINENO"; then :
4565  ac_compiler_gnu=yes
4566else
4567  ac_compiler_gnu=no
4568fi
4569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570ac_cv_c_compiler_gnu=$ac_compiler_gnu
4571
4572fi
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4574$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4575if test $ac_compiler_gnu = yes; then
4576  GCC=yes
4577else
4578  GCC=
4579fi
4580ac_test_CFLAGS=${CFLAGS+set}
4581ac_save_CFLAGS=$CFLAGS
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4583$as_echo_n "checking whether $CC accepts -g... " >&6; }
4584if test "${ac_cv_prog_cc_g+set}" = set; then :
4585  $as_echo_n "(cached) " >&6
4586else
4587  ac_save_c_werror_flag=$ac_c_werror_flag
4588   ac_c_werror_flag=yes
4589   ac_cv_prog_cc_g=no
4590   CFLAGS="-g"
4591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592/* end confdefs.h.  */
4593
4594int
4595main ()
4596{
4597
4598  ;
4599  return 0;
4600}
4601_ACEOF
4602if ac_fn_c_try_compile "$LINENO"; then :
4603  ac_cv_prog_cc_g=yes
4604else
4605  CFLAGS=""
4606      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607/* end confdefs.h.  */
4608
4609int
4610main ()
4611{
4612
4613  ;
4614  return 0;
4615}
4616_ACEOF
4617if ac_fn_c_try_compile "$LINENO"; then :
4618
4619else
4620  ac_c_werror_flag=$ac_save_c_werror_flag
4621	 CFLAGS="-g"
4622	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623/* end confdefs.h.  */
4624
4625int
4626main ()
4627{
4628
4629  ;
4630  return 0;
4631}
4632_ACEOF
4633if ac_fn_c_try_compile "$LINENO"; then :
4634  ac_cv_prog_cc_g=yes
4635fi
4636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637fi
4638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639fi
4640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641   ac_c_werror_flag=$ac_save_c_werror_flag
4642fi
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4644$as_echo "$ac_cv_prog_cc_g" >&6; }
4645if test "$ac_test_CFLAGS" = set; then
4646  CFLAGS=$ac_save_CFLAGS
4647elif test $ac_cv_prog_cc_g = yes; then
4648  if test "$GCC" = yes; then
4649    CFLAGS="-g -O2"
4650  else
4651    CFLAGS="-g"
4652  fi
4653else
4654  if test "$GCC" = yes; then
4655    CFLAGS="-O2"
4656  else
4657    CFLAGS=
4658  fi
4659fi
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4661$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4662if test "${ac_cv_prog_cc_c89+set}" = set; then :
4663  $as_echo_n "(cached) " >&6
4664else
4665  ac_cv_prog_cc_c89=no
4666ac_save_CC=$CC
4667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668/* end confdefs.h.  */
4669#include <stdarg.h>
4670#include <stdio.h>
4671#include <sys/types.h>
4672#include <sys/stat.h>
4673/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4674struct buf { int x; };
4675FILE * (*rcsopen) (struct buf *, struct stat *, int);
4676static char *e (p, i)
4677     char **p;
4678     int i;
4679{
4680  return p[i];
4681}
4682static char *f (char * (*g) (char **, int), char **p, ...)
4683{
4684  char *s;
4685  va_list v;
4686  va_start (v,p);
4687  s = g (p, va_arg (v,int));
4688  va_end (v);
4689  return s;
4690}
4691
4692/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4693   function prototypes and stuff, but not '\xHH' hex character constants.
4694   These don't provoke an error unfortunately, instead are silently treated
4695   as 'x'.  The following induces an error, until -std is added to get
4696   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4697   array size at least.  It's necessary to write '\x00'==0 to get something
4698   that's true only with -std.  */
4699int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4700
4701/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4702   inside strings and character constants.  */
4703#define FOO(x) 'x'
4704int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4705
4706int test (int i, double x);
4707struct s1 {int (*f) (int a);};
4708struct s2 {int (*f) (double a);};
4709int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4710int argc;
4711char **argv;
4712int
4713main ()
4714{
4715return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4716  ;
4717  return 0;
4718}
4719_ACEOF
4720for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4721	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4722do
4723  CC="$ac_save_CC $ac_arg"
4724  if ac_fn_c_try_compile "$LINENO"; then :
4725  ac_cv_prog_cc_c89=$ac_arg
4726fi
4727rm -f core conftest.err conftest.$ac_objext
4728  test "x$ac_cv_prog_cc_c89" != "xno" && break
4729done
4730rm -f conftest.$ac_ext
4731CC=$ac_save_CC
4732
4733fi
4734# AC_CACHE_VAL
4735case "x$ac_cv_prog_cc_c89" in
4736  x)
4737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4738$as_echo "none needed" >&6; } ;;
4739  xno)
4740    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4741$as_echo "unsupported" >&6; } ;;
4742  *)
4743    CC="$CC $ac_cv_prog_cc_c89"
4744    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4745$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4746esac
4747if test "x$ac_cv_prog_cc_c89" != xno; then :
4748
4749fi
4750
4751ac_ext=c
4752ac_cpp='$CPP $CPPFLAGS'
4753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755ac_compiler_gnu=$ac_cv_c_compiler_gnu
4756
4757ac_ext=cpp
4758ac_cpp='$CXXCPP $CPPFLAGS'
4759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4762if test -z "$CXX"; then
4763  if test -n "$CCC"; then
4764    CXX=$CCC
4765  else
4766    if test -n "$ac_tool_prefix"; then
4767  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4768  do
4769    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4770set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772$as_echo_n "checking for $ac_word... " >&6; }
4773if test "${ac_cv_prog_CXX+set}" = set; then :
4774  $as_echo_n "(cached) " >&6
4775else
4776  if test -n "$CXX"; then
4777  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4778else
4779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780for as_dir in $PATH
4781do
4782  IFS=$as_save_IFS
4783  test -z "$as_dir" && as_dir=.
4784    for ac_exec_ext in '' $ac_executable_extensions; do
4785  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788    break 2
4789  fi
4790done
4791  done
4792IFS=$as_save_IFS
4793
4794fi
4795fi
4796CXX=$ac_cv_prog_CXX
4797if test -n "$CXX"; then
4798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4799$as_echo "$CXX" >&6; }
4800else
4801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802$as_echo "no" >&6; }
4803fi
4804
4805
4806    test -n "$CXX" && break
4807  done
4808fi
4809if test -z "$CXX"; then
4810  ac_ct_CXX=$CXX
4811  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4812do
4813  # Extract the first word of "$ac_prog", so it can be a program name with args.
4814set dummy $ac_prog; ac_word=$2
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816$as_echo_n "checking for $ac_word... " >&6; }
4817if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820  if test -n "$ac_ct_CXX"; then
4821  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4822else
4823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824for as_dir in $PATH
4825do
4826  IFS=$as_save_IFS
4827  test -z "$as_dir" && as_dir=.
4828    for ac_exec_ext in '' $ac_executable_extensions; do
4829  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830    ac_cv_prog_ac_ct_CXX="$ac_prog"
4831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832    break 2
4833  fi
4834done
4835  done
4836IFS=$as_save_IFS
4837
4838fi
4839fi
4840ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4841if test -n "$ac_ct_CXX"; then
4842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4843$as_echo "$ac_ct_CXX" >&6; }
4844else
4845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846$as_echo "no" >&6; }
4847fi
4848
4849
4850  test -n "$ac_ct_CXX" && break
4851done
4852
4853  if test "x$ac_ct_CXX" = x; then
4854    CXX="g++"
4855  else
4856    case $cross_compiling:$ac_tool_warned in
4857yes:)
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4860ac_tool_warned=yes ;;
4861esac
4862    CXX=$ac_ct_CXX
4863  fi
4864fi
4865
4866  fi
4867fi
4868# Provide some information about the compiler.
4869$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4870set X $ac_compile
4871ac_compiler=$2
4872for ac_option in --version -v -V -qversion; do
4873  { { ac_try="$ac_compiler $ac_option >&5"
4874case "(($ac_try" in
4875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876  *) ac_try_echo=$ac_try;;
4877esac
4878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4879$as_echo "$ac_try_echo"; } >&5
4880  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4881  ac_status=$?
4882  if test -s conftest.err; then
4883    sed '10a\
4884... rest of stderr output deleted ...
4885         10q' conftest.err >conftest.er1
4886    cat conftest.er1 >&5
4887    rm -f conftest.er1 conftest.err
4888  fi
4889  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4890  test $ac_status = 0; }
4891done
4892
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4894$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4895if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4896  $as_echo_n "(cached) " >&6
4897else
4898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899/* end confdefs.h.  */
4900
4901int
4902main ()
4903{
4904#ifndef __GNUC__
4905       choke me
4906#endif
4907
4908  ;
4909  return 0;
4910}
4911_ACEOF
4912if ac_fn_cxx_try_compile "$LINENO"; then :
4913  ac_compiler_gnu=yes
4914else
4915  ac_compiler_gnu=no
4916fi
4917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4919
4920fi
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4922$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4923if test $ac_compiler_gnu = yes; then
4924  GXX=yes
4925else
4926  GXX=
4927fi
4928ac_test_CXXFLAGS=${CXXFLAGS+set}
4929ac_save_CXXFLAGS=$CXXFLAGS
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4931$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4932if test "${ac_cv_prog_cxx_g+set}" = set; then :
4933  $as_echo_n "(cached) " >&6
4934else
4935  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4936   ac_cxx_werror_flag=yes
4937   ac_cv_prog_cxx_g=no
4938   CXXFLAGS="-g"
4939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940/* end confdefs.h.  */
4941
4942int
4943main ()
4944{
4945
4946  ;
4947  return 0;
4948}
4949_ACEOF
4950if ac_fn_cxx_try_compile "$LINENO"; then :
4951  ac_cv_prog_cxx_g=yes
4952else
4953  CXXFLAGS=""
4954      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955/* end confdefs.h.  */
4956
4957int
4958main ()
4959{
4960
4961  ;
4962  return 0;
4963}
4964_ACEOF
4965if ac_fn_cxx_try_compile "$LINENO"; then :
4966
4967else
4968  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4969	 CXXFLAGS="-g"
4970	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971/* end confdefs.h.  */
4972
4973int
4974main ()
4975{
4976
4977  ;
4978  return 0;
4979}
4980_ACEOF
4981if ac_fn_cxx_try_compile "$LINENO"; then :
4982  ac_cv_prog_cxx_g=yes
4983fi
4984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985fi
4986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987fi
4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4990fi
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4992$as_echo "$ac_cv_prog_cxx_g" >&6; }
4993if test "$ac_test_CXXFLAGS" = set; then
4994  CXXFLAGS=$ac_save_CXXFLAGS
4995elif test $ac_cv_prog_cxx_g = yes; then
4996  if test "$GXX" = yes; then
4997    CXXFLAGS="-g -O2"
4998  else
4999    CXXFLAGS="-g"
5000  fi
5001else
5002  if test "$GXX" = yes; then
5003    CXXFLAGS="-O2"
5004  else
5005    CXXFLAGS=
5006  fi
5007fi
5008ac_ext=c
5009ac_cpp='$CPP $CPPFLAGS'
5010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013
5014
5015# We must set the default linker to the linker used by gcc for the correct
5016# operation of libtool.  If LD is not defined and we are using gcc, try to
5017# set the LD default to the ld used by gcc.
5018if test -z "$LD"; then
5019  if test "$GCC" = yes; then
5020    case $build in
5021    *-*-mingw*)
5022      gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5023    *)
5024      gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5025    esac
5026    case $gcc_prog_ld in
5027    # Accept absolute paths.
5028    [\\/]* | [A-Za-z]:[\\/]*)
5029      LD="$gcc_prog_ld" ;;
5030    esac
5031  fi
5032fi
5033
5034
5035
5036
5037if test -n "$ac_tool_prefix"; then
5038  # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5039set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041$as_echo_n "checking for $ac_word... " >&6; }
5042if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5043  $as_echo_n "(cached) " >&6
5044else
5045  if test -n "$GNATBIND"; then
5046  ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5047else
5048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049for as_dir in $PATH
5050do
5051  IFS=$as_save_IFS
5052  test -z "$as_dir" && as_dir=.
5053    for ac_exec_ext in '' $ac_executable_extensions; do
5054  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055    ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057    break 2
5058  fi
5059done
5060  done
5061IFS=$as_save_IFS
5062
5063fi
5064fi
5065GNATBIND=$ac_cv_prog_GNATBIND
5066if test -n "$GNATBIND"; then
5067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5068$as_echo "$GNATBIND" >&6; }
5069else
5070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071$as_echo "no" >&6; }
5072fi
5073
5074
5075fi
5076if test -z "$ac_cv_prog_GNATBIND"; then
5077  ac_ct_GNATBIND=$GNATBIND
5078  # Extract the first word of "gnatbind", so it can be a program name with args.
5079set dummy gnatbind; ac_word=$2
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081$as_echo_n "checking for $ac_word... " >&6; }
5082if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5083  $as_echo_n "(cached) " >&6
5084else
5085  if test -n "$ac_ct_GNATBIND"; then
5086  ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5087else
5088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089for as_dir in $PATH
5090do
5091  IFS=$as_save_IFS
5092  test -z "$as_dir" && as_dir=.
5093    for ac_exec_ext in '' $ac_executable_extensions; do
5094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095    ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097    break 2
5098  fi
5099done
5100  done
5101IFS=$as_save_IFS
5102
5103fi
5104fi
5105ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5106if test -n "$ac_ct_GNATBIND"; then
5107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5108$as_echo "$ac_ct_GNATBIND" >&6; }
5109else
5110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111$as_echo "no" >&6; }
5112fi
5113
5114  if test "x$ac_ct_GNATBIND" = x; then
5115    GNATBIND="no"
5116  else
5117    case $cross_compiling:$ac_tool_warned in
5118yes:)
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5121ac_tool_warned=yes ;;
5122esac
5123    GNATBIND=$ac_ct_GNATBIND
5124  fi
5125else
5126  GNATBIND="$ac_cv_prog_GNATBIND"
5127fi
5128
5129if test -n "$ac_tool_prefix"; then
5130  # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5131set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133$as_echo_n "checking for $ac_word... " >&6; }
5134if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5135  $as_echo_n "(cached) " >&6
5136else
5137  if test -n "$GNATMAKE"; then
5138  ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5139else
5140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141for as_dir in $PATH
5142do
5143  IFS=$as_save_IFS
5144  test -z "$as_dir" && as_dir=.
5145    for ac_exec_ext in '' $ac_executable_extensions; do
5146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147    ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149    break 2
5150  fi
5151done
5152  done
5153IFS=$as_save_IFS
5154
5155fi
5156fi
5157GNATMAKE=$ac_cv_prog_GNATMAKE
5158if test -n "$GNATMAKE"; then
5159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5160$as_echo "$GNATMAKE" >&6; }
5161else
5162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163$as_echo "no" >&6; }
5164fi
5165
5166
5167fi
5168if test -z "$ac_cv_prog_GNATMAKE"; then
5169  ac_ct_GNATMAKE=$GNATMAKE
5170  # Extract the first word of "gnatmake", so it can be a program name with args.
5171set dummy gnatmake; ac_word=$2
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173$as_echo_n "checking for $ac_word... " >&6; }
5174if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5175  $as_echo_n "(cached) " >&6
5176else
5177  if test -n "$ac_ct_GNATMAKE"; then
5178  ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5179else
5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183  IFS=$as_save_IFS
5184  test -z "$as_dir" && as_dir=.
5185    for ac_exec_ext in '' $ac_executable_extensions; do
5186  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187    ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189    break 2
5190  fi
5191done
5192  done
5193IFS=$as_save_IFS
5194
5195fi
5196fi
5197ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5198if test -n "$ac_ct_GNATMAKE"; then
5199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5200$as_echo "$ac_ct_GNATMAKE" >&6; }
5201else
5202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203$as_echo "no" >&6; }
5204fi
5205
5206  if test "x$ac_ct_GNATMAKE" = x; then
5207    GNATMAKE="no"
5208  else
5209    case $cross_compiling:$ac_tool_warned in
5210yes:)
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5213ac_tool_warned=yes ;;
5214esac
5215    GNATMAKE=$ac_ct_GNATMAKE
5216  fi
5217else
5218  GNATMAKE="$ac_cv_prog_GNATMAKE"
5219fi
5220
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5222$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5223if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5224  $as_echo_n "(cached) " >&6
5225else
5226  cat >conftest.adb <<EOF
5227procedure conftest is begin null; end conftest;
5228EOF
5229acx_cv_cc_gcc_supports_ada=no
5230# There is a bug in old released versions of GCC which causes the
5231# driver to exit successfully when the appropriate language module
5232# has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5233# Therefore we must check for the error message as well as an
5234# unsuccessful exit.
5235# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5236# given a .adb file, but produce no object file.  So we must check
5237# if an object file was really produced to guard against this.
5238errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5239if test x"$errors" = x && test -f conftest.$ac_objext; then
5240  acx_cv_cc_gcc_supports_ada=yes
5241fi
5242rm -f conftest.*
5243fi
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5245$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5246
5247if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5248  have_gnat=yes
5249else
5250  have_gnat=no
5251fi
5252
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5254$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5255if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5256  $as_echo_n "(cached) " >&6
5257else
5258   echo abfoo >t1
5259  echo cdfoo >t2
5260  gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5261  if cmp t1 t2 2 2 > /dev/null 2>&1; then
5262    if cmp t1 t2 1 1 > /dev/null 2>&1; then
5263      :
5264    else
5265      gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5266    fi
5267  fi
5268  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5269    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5270      :
5271    else
5272      gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5273    fi
5274  fi
5275  rm t1 t2
5276
5277fi
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5279$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5280do_compare="$gcc_cv_prog_cmp_skip"
5281
5282
5283
5284# See if we are building gcc with C++.
5285# Check whether --enable-build-with-cxx was given.
5286if test "${enable_build_with_cxx+set}" = set; then :
5287  enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5288else
5289  ENABLE_BUILD_WITH_CXX=no
5290fi
5291
5292
5293# Used for setting $lt_cv_objdir
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5295$as_echo_n "checking for objdir... " >&6; }
5296if test "${lt_cv_objdir+set}" = set; then :
5297  $as_echo_n "(cached) " >&6
5298else
5299  rm -f .libs 2>/dev/null
5300mkdir .libs 2>/dev/null
5301if test -d .libs; then
5302  lt_cv_objdir=.libs
5303else
5304  # MS-DOS does not allow filenames that begin with a dot.
5305  lt_cv_objdir=_libs
5306fi
5307rmdir .libs 2>/dev/null
5308fi
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5310$as_echo "$lt_cv_objdir" >&6; }
5311objdir=$lt_cv_objdir
5312
5313
5314
5315
5316
5317cat >>confdefs.h <<_ACEOF
5318#define LT_OBJDIR "$lt_cv_objdir/"
5319_ACEOF
5320
5321
5322
5323# Check for GMP, MPFR and MPC
5324gmplibs="-lmpc -lmpfr -lgmp"
5325gmpinc=
5326have_gmp=no
5327
5328# Specify a location for mpc
5329# check for this first so it ends up on the link line before mpfr.
5330
5331# Check whether --with-mpc was given.
5332if test "${with_mpc+set}" = set; then :
5333  withval=$with_mpc;
5334fi
5335
5336
5337# Check whether --with-mpc_include was given.
5338if test "${with_mpc_include+set}" = set; then :
5339  withval=$with_mpc_include;
5340fi
5341
5342
5343# Check whether --with-mpc_lib was given.
5344if test "${with_mpc_lib+set}" = set; then :
5345  withval=$with_mpc_lib;
5346fi
5347
5348
5349if test "x$with_mpc" != x; then
5350  gmplibs="-L$with_mpc/lib $gmplibs"
5351  gmpinc="-I$with_mpc/include $gmpinc"
5352fi
5353if test "x$with_mpc_include" != x; then
5354  gmpinc="-I$with_mpc_include $gmpinc"
5355fi
5356if test "x$with_mpc_lib" != x; then
5357  gmplibs="-L$with_mpc_lib $gmplibs"
5358fi
5359if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5360  gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5361  gmpinc='-I$$s/mpc/src '"$gmpinc"
5362  # Do not test the mpc version.  Assume that it is sufficient, since
5363  # it is in the source tree, and the library has not been built yet
5364  # but it would be included on the link line in the version check below
5365  # hence making the test fail.
5366  have_gmp=yes
5367fi
5368
5369# Specify a location for mpfr
5370# check for this first so it ends up on the link line before gmp.
5371
5372# Check whether --with-mpfr-dir was given.
5373if test "${with_mpfr_dir+set}" = set; then :
5374  withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5375Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5376fi
5377
5378
5379
5380# Check whether --with-mpfr was given.
5381if test "${with_mpfr+set}" = set; then :
5382  withval=$with_mpfr;
5383fi
5384
5385
5386# Check whether --with-mpfr_include was given.
5387if test "${with_mpfr_include+set}" = set; then :
5388  withval=$with_mpfr_include;
5389fi
5390
5391
5392# Check whether --with-mpfr_lib was given.
5393if test "${with_mpfr_lib+set}" = set; then :
5394  withval=$with_mpfr_lib;
5395fi
5396
5397
5398if test "x$with_mpfr" != x; then
5399  gmplibs="-L$with_mpfr/lib $gmplibs"
5400  gmpinc="-I$with_mpfr/include $gmpinc"
5401fi
5402if test "x$with_mpfr_include" != x; then
5403  gmpinc="-I$with_mpfr_include $gmpinc"
5404fi
5405if test "x$with_mpfr_lib" != x; then
5406  gmplibs="-L$with_mpfr_lib $gmplibs"
5407fi
5408if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5409  gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5410  gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5411  extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5412  # Do not test the mpfr version.  Assume that it is sufficient, since
5413  # it is in the source tree, and the library has not been built yet
5414  # but it would be included on the link line in the version check below
5415  # hence making the test fail.
5416  have_gmp=yes
5417fi
5418
5419# Specify a location for gmp
5420
5421# Check whether --with-gmp-dir was given.
5422if test "${with_gmp_dir+set}" = set; then :
5423  withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5424Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5425fi
5426
5427
5428
5429# Check whether --with-gmp was given.
5430if test "${with_gmp+set}" = set; then :
5431  withval=$with_gmp;
5432fi
5433
5434
5435# Check whether --with-gmp_include was given.
5436if test "${with_gmp_include+set}" = set; then :
5437  withval=$with_gmp_include;
5438fi
5439
5440
5441# Check whether --with-gmp_lib was given.
5442if test "${with_gmp_lib+set}" = set; then :
5443  withval=$with_gmp_lib;
5444fi
5445
5446
5447
5448if test "x$with_gmp" != x; then
5449  gmplibs="-L$with_gmp/lib $gmplibs"
5450  gmpinc="-I$with_gmp/include $gmpinc"
5451fi
5452if test "x$with_gmp_include" != x; then
5453  gmpinc="-I$with_gmp_include $gmpinc"
5454fi
5455if test "x$with_gmp_lib" != x; then
5456  gmplibs="-L$with_gmp_lib $gmplibs"
5457fi
5458if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5459  gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5460  gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5461  extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5462  extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5463  # Do not test the gmp version.  Assume that it is sufficient, since
5464  # it is in the source tree, and the library has not been built yet
5465  # but it would be included on the link line in the version check below
5466  # hence making the test fail.
5467  have_gmp=yes
5468fi
5469
5470if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5471  have_gmp=yes
5472  saved_CFLAGS="$CFLAGS"
5473  CFLAGS="$CFLAGS $gmpinc"
5474  # Check for the recommended and required versions of GMP.
5475  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5476$as_echo_n "checking for the correct version of gmp.h... " >&6; }
5477
5478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479/* end confdefs.h.  */
5480#include "gmp.h"
5481int
5482main ()
5483{
5484
5485  #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5486  #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5487  #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5488  choke me
5489  #endif
5490
5491  ;
5492  return 0;
5493}
5494_ACEOF
5495if ac_fn_c_try_compile "$LINENO"; then :
5496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497/* end confdefs.h.  */
5498#include <gmp.h>
5499int
5500main ()
5501{
5502
5503  #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5504  #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5505  #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5506  choke me
5507  #endif
5508
5509  ;
5510  return 0;
5511}
5512_ACEOF
5513if ac_fn_c_try_compile "$LINENO"; then :
5514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5515$as_echo "yes" >&6; }
5516else
5517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5518$as_echo "buggy but acceptable" >&6; }
5519fi
5520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521else
5522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523$as_echo "no" >&6; }; have_gmp=no
5524fi
5525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526
5527  # If we have GMP, check the MPFR version.
5528  if test x"$have_gmp" = xyes; then
5529    # Check for the recommended and required versions of MPFR.
5530    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5531$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5532    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533/* end confdefs.h.  */
5534#include <gmp.h>
5535    #include <mpfr.h>
5536int
5537main ()
5538{
5539
5540    #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5541    choke me
5542    #endif
5543
5544  ;
5545  return 0;
5546}
5547_ACEOF
5548if ac_fn_c_try_compile "$LINENO"; then :
5549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550/* end confdefs.h.  */
5551#include <gmp.h>
5552    #include <mpfr.h>
5553int
5554main ()
5555{
5556
5557    #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5558    choke me
5559    #endif
5560
5561  ;
5562  return 0;
5563}
5564_ACEOF
5565if ac_fn_c_try_compile "$LINENO"; then :
5566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5567$as_echo "yes" >&6; }
5568else
5569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5570$as_echo "buggy but acceptable" >&6; }
5571fi
5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573else
5574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575$as_echo "no" >&6; }; have_gmp=no
5576fi
5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578  fi
5579
5580  # Check for the MPC header version.
5581  if test x"$have_gmp" = xyes ; then
5582    # Check for the recommended and required versions of MPC.
5583    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5584$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5585    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586/* end confdefs.h.  */
5587#include <mpc.h>
5588int
5589main ()
5590{
5591
5592    #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5593    choke me
5594    #endif
5595
5596  ;
5597  return 0;
5598}
5599_ACEOF
5600if ac_fn_c_try_compile "$LINENO"; then :
5601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602/* end confdefs.h.  */
5603#include <mpc.h>
5604int
5605main ()
5606{
5607
5608    #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5609    choke me
5610    #endif
5611
5612  ;
5613  return 0;
5614}
5615_ACEOF
5616if ac_fn_c_try_compile "$LINENO"; then :
5617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5618$as_echo "yes" >&6; }
5619else
5620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5621$as_echo "buggy but acceptable" >&6; }
5622fi
5623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624else
5625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626$as_echo "no" >&6; }; have_gmp=no
5627fi
5628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629  fi
5630
5631  # Now check the MPFR library.
5632  if test x"$have_gmp" = xyes; then
5633    saved_LIBS="$LIBS"
5634    LIBS="$LIBS $gmplibs"
5635    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5636$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5637    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638/* end confdefs.h.  */
5639#include <mpc.h>
5640int
5641main ()
5642{
5643
5644    mpfr_t n;
5645    mpfr_t x;
5646    mpc_t c;
5647    int t;
5648    mpfr_init (n);
5649    mpfr_init (x);
5650    mpfr_atan2 (n, n, x, GMP_RNDN);
5651    mpfr_erfc (n, x, GMP_RNDN);
5652    mpfr_subnormalize (x, t, GMP_RNDN);
5653    mpfr_clear(n);
5654    mpfr_clear(x);
5655    mpc_init2 (c, 53);
5656    mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5657    mpc_cosh (c, c, MPC_RNDNN);
5658    mpc_pow (c, c, c, MPC_RNDNN);
5659    mpc_acosh (c, c, MPC_RNDNN);
5660    mpc_clear (c);
5661
5662  ;
5663  return 0;
5664}
5665_ACEOF
5666if ac_fn_c_try_link "$LINENO"; then :
5667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5668$as_echo "yes" >&6; }
5669else
5670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671$as_echo "no" >&6; }; have_gmp=no
5672fi
5673rm -f core conftest.err conftest.$ac_objext \
5674    conftest$ac_exeext conftest.$ac_ext
5675    LIBS="$saved_LIBS"
5676  fi
5677
5678  CFLAGS="$saved_CFLAGS"
5679
5680# The library versions listed in the error message below should match
5681# the HARD-minimums enforced above.
5682  if test x$have_gmp != xyes; then
5683    as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5684Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5685their locations.  Source code for these libraries can be found at
5686their respective hosting sites as well as at
5687ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5688http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5689you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5690make sure that you have installed both the libraries and the header
5691files.  They may be located in separate packages." "$LINENO" 5
5692  fi
5693fi
5694
5695# Flags needed for both GMP, MPFR and/or MPC.
5696
5697
5698
5699
5700
5701
5702# Allow host libstdc++ to be specified for static linking with PPL.
5703
5704# Check whether --with-host-libstdcxx was given.
5705if test "${with_host_libstdcxx+set}" = set; then :
5706  withval=$with_host_libstdcxx;
5707fi
5708
5709
5710case $with_host_libstdcxx in
5711  no|yes)
5712    as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5713    ;;
5714esac
5715
5716# Linker flags to use for stage1 or when not boostrapping.
5717
5718# Check whether --with-stage1-ldflags was given.
5719if test "${with_stage1_ldflags+set}" = set; then :
5720  withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5721   stage1_ldflags=
5722 else
5723   stage1_ldflags=$withval
5724 fi
5725else
5726  stage1_ldflags=
5727fi
5728
5729
5730
5731# Libraries to use for stage1 or when not bootstrapping.
5732
5733# Check whether --with-stage1-libs was given.
5734if test "${with_stage1_libs+set}" = set; then :
5735  withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5736   stage1_libs=
5737 else
5738   stage1_libs=$withval
5739 fi
5740else
5741  stage1_libs=$with_host_libstdcxx
5742fi
5743
5744
5745
5746# Libraries to use for stage2 and later builds.  This defaults to the
5747# argument passed to --with-host-libstdcxx.
5748
5749# Check whether --with-boot-libs was given.
5750if test "${with_boot_libs+set}" = set; then :
5751  withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5752   poststage1_libs=
5753 else
5754   poststage1_libs=$withval
5755 fi
5756else
5757  poststage1_libs=$with_host_libstdcxx
5758fi
5759
5760
5761
5762# Linker flags to use for stage2 and later builds.
5763
5764# Check whether --with-boot-ldflags was given.
5765if test "${with_boot_ldflags+set}" = set; then :
5766  withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5767   poststage1_ldflags=
5768 else
5769   poststage1_ldflags=$withval
5770 fi
5771else
5772  poststage1_ldflags=
5773 # With --enable-build-with-cxx, default to linking libstdc++ and
5774 # libgcc statically.  But if the user explicitly specified the
5775 # libraries to use, trust that they are doing what they want.
5776 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5777   poststage1_ldflags="-static-libstdc++ -static-libgcc"
5778 fi
5779fi
5780
5781
5782
5783# Check for PPL
5784ppllibs=" -lppl_c -lppl -lgmpxx"
5785pplinc=
5786
5787
5788# Check whether --with-ppl was given.
5789if test "${with_ppl+set}" = set; then :
5790  withval=$with_ppl;
5791fi
5792
5793
5794# Check whether --with-ppl_include was given.
5795if test "${with_ppl_include+set}" = set; then :
5796  withval=$with_ppl_include;
5797fi
5798
5799
5800# Check whether --with-ppl_lib was given.
5801if test "${with_ppl_lib+set}" = set; then :
5802  withval=$with_ppl_lib;
5803fi
5804
5805
5806case $with_ppl in
5807  no)
5808    ppllibs=
5809    ;;
5810  "" | yes)
5811    ;;
5812  *)
5813    ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5814    pplinc="-I$with_ppl/include $pplinc"
5815    ;;
5816esac
5817if test "x$with_ppl_include" != x; then
5818  pplinc="-I$with_ppl_include $pplinc"
5819fi
5820if test "x$with_ppl_lib" != x; then
5821  ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5822fi
5823if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5824  ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5825  pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5826  enable_ppl_version_check=no
5827fi
5828
5829# Check whether --enable-ppl-version-check was given.
5830if test "${enable_ppl_version_check+set}" = set; then :
5831  enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5832else
5833  ENABLE_PPL_CHECK=yes
5834fi
5835
5836
5837if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5838  saved_CFLAGS="$CFLAGS"
5839  CFLAGS="$CFLAGS $pplinc $gmpinc"
5840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5841$as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843/* end confdefs.h.  */
5844#include "ppl_c.h"
5845int
5846main ()
5847{
5848
5849  #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5850  choke me
5851  #endif
5852
5853  ;
5854  return 0;
5855}
5856_ACEOF
5857if ac_fn_c_try_compile "$LINENO"; then :
5858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5859$as_echo "yes" >&6; }
5860else
5861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5863fi
5864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865  CFLAGS="$saved_CFLAGS"
5866fi
5867
5868# Flags needed for PPL
5869
5870
5871
5872
5873# Check for CLOOG
5874clooglibs=" -lcloog "
5875clooginc=" -DCLOOG_PPL_BACKEND "
5876
5877
5878# Check whether --with-cloog was given.
5879if test "${with_cloog+set}" = set; then :
5880  withval=$with_cloog;
5881fi
5882
5883
5884# Check whether --with-cloog_include was given.
5885if test "${with_cloog_include+set}" = set; then :
5886  withval=$with_cloog_include;
5887fi
5888
5889
5890# Check whether --with-cloog_lib was given.
5891if test "${with_cloog_lib+set}" = set; then :
5892  withval=$with_cloog_lib;
5893fi
5894
5895
5896if test "x$with_ppl" = "xno"; then
5897  with_cloog=no
5898fi
5899
5900case $with_cloog in
5901  no)
5902    clooglibs=
5903    clooginc=
5904    ;;
5905  "" | yes)
5906    ;;
5907  *)
5908    clooglibs="-L$with_cloog/lib -lcloog"
5909    clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5910    ;;
5911esac
5912if test "x$with_cloog_include" != x; then
5913  clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5914fi
5915if test "x$with_cloog_lib" != x; then
5916  clooglibs="-L$with_cloog_lib -lcloog"
5917fi
5918if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5919  clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' -lcloog '
5920  clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5921  enable_cloog_version_check=no
5922fi
5923
5924# Check whether --enable-cloog-version-check was given.
5925if test "${enable_cloog_version_check+set}" = set; then :
5926  enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5927else
5928  ENABLE_CLOOG_CHECK=yes
5929fi
5930
5931
5932if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
5933  saved_CFLAGS="$CFLAGS"
5934  CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5936$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938/* end confdefs.h.  */
5939#include "cloog/cloog.h"
5940int
5941main ()
5942{
5943
5944  #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 5
5945  choke me
5946  #endif
5947
5948  ;
5949  return 0;
5950}
5951_ACEOF
5952if ac_fn_c_try_compile "$LINENO"; then :
5953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954/* end confdefs.h.  */
5955#include "cloog/cloog.h"
5956int
5957main ()
5958{
5959
5960  #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 9
5961  choke me
5962  #endif
5963
5964  ;
5965  return 0;
5966}
5967_ACEOF
5968if ac_fn_c_try_compile "$LINENO"; then :
5969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5970$as_echo "yes" >&6; }
5971else
5972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5973$as_echo "buggy but acceptable" >&6; }
5974fi
5975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976else
5977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978$as_echo "no" >&6; }; clooglibs= ; clooginc=
5979fi
5980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981  CFLAGS="$saved_CFLAGS"
5982fi
5983
5984# Flags needed for CLOOG
5985
5986
5987
5988# Check for LTO support.
5989# Check whether --enable-lto was given.
5990if test "${enable_lto+set}" = set; then :
5991  enableval=$enable_lto; enable_lto=$enableval
5992else
5993  enable_lto=yes; default_enable_lto=yes
5994fi
5995
5996
5997
5998ac_ext=c
5999ac_cpp='$CPP $CPPFLAGS'
6000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6002ac_compiler_gnu=$ac_cv_c_compiler_gnu
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6004$as_echo_n "checking how to run the C preprocessor... " >&6; }
6005# On Suns, sometimes $CPP names a directory.
6006if test -n "$CPP" && test -d "$CPP"; then
6007  CPP=
6008fi
6009if test -z "$CPP"; then
6010  if test "${ac_cv_prog_CPP+set}" = set; then :
6011  $as_echo_n "(cached) " >&6
6012else
6013      # Double quotes because CPP needs to be expanded
6014    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6015    do
6016      ac_preproc_ok=false
6017for ac_c_preproc_warn_flag in '' yes
6018do
6019  # Use a header file that comes with gcc, so configuring glibc
6020  # with a fresh cross-compiler works.
6021  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6022  # <limits.h> exists even on freestanding compilers.
6023  # On the NeXT, cc -E runs the code through the compiler's parser,
6024  # not just through cpp. "Syntax error" is here to catch this case.
6025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026/* end confdefs.h.  */
6027#ifdef __STDC__
6028# include <limits.h>
6029#else
6030# include <assert.h>
6031#endif
6032		     Syntax error
6033_ACEOF
6034if ac_fn_c_try_cpp "$LINENO"; then :
6035
6036else
6037  # Broken: fails on valid input.
6038continue
6039fi
6040rm -f conftest.err conftest.$ac_ext
6041
6042  # OK, works on sane cases.  Now check whether nonexistent headers
6043  # can be detected and how.
6044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045/* end confdefs.h.  */
6046#include <ac_nonexistent.h>
6047_ACEOF
6048if ac_fn_c_try_cpp "$LINENO"; then :
6049  # Broken: success on invalid input.
6050continue
6051else
6052  # Passes both tests.
6053ac_preproc_ok=:
6054break
6055fi
6056rm -f conftest.err conftest.$ac_ext
6057
6058done
6059# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6060rm -f conftest.err conftest.$ac_ext
6061if $ac_preproc_ok; then :
6062  break
6063fi
6064
6065    done
6066    ac_cv_prog_CPP=$CPP
6067
6068fi
6069  CPP=$ac_cv_prog_CPP
6070else
6071  ac_cv_prog_CPP=$CPP
6072fi
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6074$as_echo "$CPP" >&6; }
6075ac_preproc_ok=false
6076for ac_c_preproc_warn_flag in '' yes
6077do
6078  # Use a header file that comes with gcc, so configuring glibc
6079  # with a fresh cross-compiler works.
6080  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6081  # <limits.h> exists even on freestanding compilers.
6082  # On the NeXT, cc -E runs the code through the compiler's parser,
6083  # not just through cpp. "Syntax error" is here to catch this case.
6084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085/* end confdefs.h.  */
6086#ifdef __STDC__
6087# include <limits.h>
6088#else
6089# include <assert.h>
6090#endif
6091		     Syntax error
6092_ACEOF
6093if ac_fn_c_try_cpp "$LINENO"; then :
6094
6095else
6096  # Broken: fails on valid input.
6097continue
6098fi
6099rm -f conftest.err conftest.$ac_ext
6100
6101  # OK, works on sane cases.  Now check whether nonexistent headers
6102  # can be detected and how.
6103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104/* end confdefs.h.  */
6105#include <ac_nonexistent.h>
6106_ACEOF
6107if ac_fn_c_try_cpp "$LINENO"; then :
6108  # Broken: success on invalid input.
6109continue
6110else
6111  # Passes both tests.
6112ac_preproc_ok=:
6113break
6114fi
6115rm -f conftest.err conftest.$ac_ext
6116
6117done
6118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6119rm -f conftest.err conftest.$ac_ext
6120if $ac_preproc_ok; then :
6121
6122else
6123  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6125as_fn_error "C preprocessor \"$CPP\" fails sanity check
6126See \`config.log' for more details." "$LINENO" 5; }
6127fi
6128
6129ac_ext=c
6130ac_cpp='$CPP $CPPFLAGS'
6131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133ac_compiler_gnu=$ac_cv_c_compiler_gnu
6134
6135
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6137$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6138if test "${ac_cv_path_GREP+set}" = set; then :
6139  $as_echo_n "(cached) " >&6
6140else
6141  if test -z "$GREP"; then
6142  ac_path_GREP_found=false
6143  # Loop through the user's path and test for each of PROGNAME-LIST
6144  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6146do
6147  IFS=$as_save_IFS
6148  test -z "$as_dir" && as_dir=.
6149    for ac_prog in grep ggrep; do
6150    for ac_exec_ext in '' $ac_executable_extensions; do
6151      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6152      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6153# Check for GNU ac_path_GREP and select it if it is found.
6154  # Check for GNU $ac_path_GREP
6155case `"$ac_path_GREP" --version 2>&1` in
6156*GNU*)
6157  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6158*)
6159  ac_count=0
6160  $as_echo_n 0123456789 >"conftest.in"
6161  while :
6162  do
6163    cat "conftest.in" "conftest.in" >"conftest.tmp"
6164    mv "conftest.tmp" "conftest.in"
6165    cp "conftest.in" "conftest.nl"
6166    $as_echo 'GREP' >> "conftest.nl"
6167    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6168    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6169    as_fn_arith $ac_count + 1 && ac_count=$as_val
6170    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6171      # Best one so far, save it but keep looking for a better one
6172      ac_cv_path_GREP="$ac_path_GREP"
6173      ac_path_GREP_max=$ac_count
6174    fi
6175    # 10*(2^10) chars as input seems more than enough
6176    test $ac_count -gt 10 && break
6177  done
6178  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6179esac
6180
6181      $ac_path_GREP_found && break 3
6182    done
6183  done
6184  done
6185IFS=$as_save_IFS
6186  if test -z "$ac_cv_path_GREP"; then
6187    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6188  fi
6189else
6190  ac_cv_path_GREP=$GREP
6191fi
6192
6193fi
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6195$as_echo "$ac_cv_path_GREP" >&6; }
6196 GREP="$ac_cv_path_GREP"
6197
6198
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6200$as_echo_n "checking for egrep... " >&6; }
6201if test "${ac_cv_path_EGREP+set}" = set; then :
6202  $as_echo_n "(cached) " >&6
6203else
6204  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6205   then ac_cv_path_EGREP="$GREP -E"
6206   else
6207     if test -z "$EGREP"; then
6208  ac_path_EGREP_found=false
6209  # Loop through the user's path and test for each of PROGNAME-LIST
6210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6212do
6213  IFS=$as_save_IFS
6214  test -z "$as_dir" && as_dir=.
6215    for ac_prog in egrep; do
6216    for ac_exec_ext in '' $ac_executable_extensions; do
6217      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6218      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6219# Check for GNU ac_path_EGREP and select it if it is found.
6220  # Check for GNU $ac_path_EGREP
6221case `"$ac_path_EGREP" --version 2>&1` in
6222*GNU*)
6223  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6224*)
6225  ac_count=0
6226  $as_echo_n 0123456789 >"conftest.in"
6227  while :
6228  do
6229    cat "conftest.in" "conftest.in" >"conftest.tmp"
6230    mv "conftest.tmp" "conftest.in"
6231    cp "conftest.in" "conftest.nl"
6232    $as_echo 'EGREP' >> "conftest.nl"
6233    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6234    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6235    as_fn_arith $ac_count + 1 && ac_count=$as_val
6236    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6237      # Best one so far, save it but keep looking for a better one
6238      ac_cv_path_EGREP="$ac_path_EGREP"
6239      ac_path_EGREP_max=$ac_count
6240    fi
6241    # 10*(2^10) chars as input seems more than enough
6242    test $ac_count -gt 10 && break
6243  done
6244  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6245esac
6246
6247      $ac_path_EGREP_found && break 3
6248    done
6249  done
6250  done
6251IFS=$as_save_IFS
6252  if test -z "$ac_cv_path_EGREP"; then
6253    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6254  fi
6255else
6256  ac_cv_path_EGREP=$EGREP
6257fi
6258
6259   fi
6260fi
6261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6262$as_echo "$ac_cv_path_EGREP" >&6; }
6263 EGREP="$ac_cv_path_EGREP"
6264
6265
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6267$as_echo_n "checking for ANSI C header files... " >&6; }
6268if test "${ac_cv_header_stdc+set}" = set; then :
6269  $as_echo_n "(cached) " >&6
6270else
6271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272/* end confdefs.h.  */
6273#include <stdlib.h>
6274#include <stdarg.h>
6275#include <string.h>
6276#include <float.h>
6277
6278int
6279main ()
6280{
6281
6282  ;
6283  return 0;
6284}
6285_ACEOF
6286if ac_fn_c_try_compile "$LINENO"; then :
6287  ac_cv_header_stdc=yes
6288else
6289  ac_cv_header_stdc=no
6290fi
6291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292
6293if test $ac_cv_header_stdc = yes; then
6294  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296/* end confdefs.h.  */
6297#include <string.h>
6298
6299_ACEOF
6300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6301  $EGREP "memchr" >/dev/null 2>&1; then :
6302
6303else
6304  ac_cv_header_stdc=no
6305fi
6306rm -f conftest*
6307
6308fi
6309
6310if test $ac_cv_header_stdc = yes; then
6311  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313/* end confdefs.h.  */
6314#include <stdlib.h>
6315
6316_ACEOF
6317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6318  $EGREP "free" >/dev/null 2>&1; then :
6319
6320else
6321  ac_cv_header_stdc=no
6322fi
6323rm -f conftest*
6324
6325fi
6326
6327if test $ac_cv_header_stdc = yes; then
6328  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6329  if test "$cross_compiling" = yes; then :
6330  :
6331else
6332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333/* end confdefs.h.  */
6334#include <ctype.h>
6335#include <stdlib.h>
6336#if ((' ' & 0x0FF) == 0x020)
6337# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6338# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6339#else
6340# define ISLOWER(c) \
6341		   (('a' <= (c) && (c) <= 'i') \
6342		     || ('j' <= (c) && (c) <= 'r') \
6343		     || ('s' <= (c) && (c) <= 'z'))
6344# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6345#endif
6346
6347#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6348int
6349main ()
6350{
6351  int i;
6352  for (i = 0; i < 256; i++)
6353    if (XOR (islower (i), ISLOWER (i))
6354	|| toupper (i) != TOUPPER (i))
6355      return 2;
6356  return 0;
6357}
6358_ACEOF
6359if ac_fn_c_try_run "$LINENO"; then :
6360
6361else
6362  ac_cv_header_stdc=no
6363fi
6364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6365  conftest.$ac_objext conftest.beam conftest.$ac_ext
6366fi
6367
6368fi
6369fi
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6371$as_echo "$ac_cv_header_stdc" >&6; }
6372if test $ac_cv_header_stdc = yes; then
6373
6374$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6375
6376fi
6377
6378# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6379for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6380		  inttypes.h stdint.h unistd.h
6381do :
6382  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6383ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6384"
6385eval as_val=\$$as_ac_Header
6386   if test "x$as_val" = x""yes; then :
6387  cat >>confdefs.h <<_ACEOF
6388#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6389_ACEOF
6390
6391fi
6392
6393done
6394
6395
6396
6397
6398
6399target_elf=no
6400case $target in
6401  *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6402  *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6403  alpha*-dec-osf* | *-interix*)
6404    target_elf=no
6405    ;;
6406  *)
6407    target_elf=yes
6408    ;;
6409esac
6410
6411if test $target_elf = yes; then :
6412  if test x"$enable_lto" = x"yes" ; then
6413  # Make sure that libelf.h and gelf.h are available.
6414
6415# Check whether --with-libelf was given.
6416if test "${with_libelf+set}" = set; then :
6417  withval=$with_libelf;
6418fi
6419
6420
6421
6422# Check whether --with-libelf_include was given.
6423if test "${with_libelf_include+set}" = set; then :
6424  withval=$with_libelf_include;
6425fi
6426
6427
6428
6429# Check whether --with-libelf_lib was given.
6430if test "${with_libelf_lib+set}" = set; then :
6431  withval=$with_libelf_lib;
6432fi
6433
6434
6435  saved_CFLAGS="$CFLAGS"
6436  saved_CPPFLAGS="$CPPFLAGS"
6437  saved_LIBS="$LIBS"
6438
6439  case $with_libelf in
6440    "")
6441      libelflibs="-lelf"
6442      libelfinc="-I/usr/include/libelf"
6443      ;;
6444    *)
6445      libelflibs="-L$with_libelf/lib -lelf"
6446      libelfinc="-I$with_libelf/include -I$with_libelf/include/libelf"
6447      LIBS="$libelflibs $LIBS"
6448      ;;
6449  esac
6450
6451  if test "x$with_libelf_include" != x; then
6452    libelfinc="-I$with_libelf_include"
6453  fi
6454
6455  if test "x$with_libelf_lib" != x; then
6456    libelflibs="-L$with_libelf_lib -lelf"
6457    LIBS="$libelflibs $LIBS"
6458  fi
6459
6460  if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \
6461     && test -d ${srcdir}/libelf; then
6462    libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/lib -lelf '
6463    libelfinc='-D__LIBELF_INTERNAL__ -I$$r/$(HOST_SUBDIR)/libelf/lib -I$$s/libelf/lib'
6464    LIBS="$libelflibs $LIBS"
6465
6466 else
6467
6468  CFLAGS="$CFLAGS $libelfinc"
6469  CPPFLAGS="$CPPFLAGS $libelfinc"
6470  LIBS="$LIBS $libelflibs"
6471
6472  for ac_header in libelf.h
6473do :
6474  ac_fn_c_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default"
6475if test "x$ac_cv_header_libelf_h" = x""yes; then :
6476  cat >>confdefs.h <<_ACEOF
6477#define HAVE_LIBELF_H 1
6478_ACEOF
6479 have_libelf_h=yes
6480fi
6481
6482done
6483
6484  for ac_header in gelf.h
6485do :
6486  ac_fn_c_check_header_mongrel "$LINENO" "gelf.h" "ac_cv_header_gelf_h" "$ac_includes_default"
6487if test "x$ac_cv_header_gelf_h" = x""yes; then :
6488  cat >>confdefs.h <<_ACEOF
6489#define HAVE_GELF_H 1
6490_ACEOF
6491 have_gelf_h=yes
6492fi
6493
6494done
6495
6496
6497  for ac_header in libelf/libelf.h
6498do :
6499  ac_fn_c_check_header_mongrel "$LINENO" "libelf/libelf.h" "ac_cv_header_libelf_libelf_h" "$ac_includes_default"
6500if test "x$ac_cv_header_libelf_libelf_h" = x""yes; then :
6501  cat >>confdefs.h <<_ACEOF
6502#define HAVE_LIBELF_LIBELF_H 1
6503_ACEOF
6504 have_libelf_libelf_h=yes
6505fi
6506
6507done
6508
6509  for ac_header in libelf/gelf.h
6510do :
6511  ac_fn_c_check_header_mongrel "$LINENO" "libelf/gelf.h" "ac_cv_header_libelf_gelf_h" "$ac_includes_default"
6512if test "x$ac_cv_header_libelf_gelf_h" = x""yes; then :
6513  cat >>confdefs.h <<_ACEOF
6514#define HAVE_LIBELF_GELF_H 1
6515_ACEOF
6516 have_libelf_gelf_h=yes
6517fi
6518
6519done
6520
6521
6522  # If we couldn't find libelf.h and the user forced it, emit an error.
6523  if test x"$have_libelf_h" != x"yes" \
6524     && test x"$have_libelf_libelf_h" != x"yes" ; then
6525    if test x"$default_enable_lto" != x"yes" ; then
6526      as_fn_error "LTO support requires libelf.h or libelf/libelf.h." "$LINENO" 5
6527    else
6528      enable_lto=no
6529      libelflibs=
6530      libelfinc=
6531    fi
6532  fi
6533
6534  # If we couldn't find gelf.h and the user forced it, emit an error.
6535  if test x"$have_gelf_h" != x"yes" \
6536     && test x"$have_libelf_gelf_h" != x"yes" ; then
6537    if test x"$default_enable_lto" != x"yes" ; then
6538      as_fn_error "LTO support requires gelf.h or libelf/gelf.h." "$LINENO" 5
6539    else
6540      enable_lto=no
6541      libelflibs=
6542      libelfinc=
6543    fi
6544  fi
6545
6546  # Check that the detected libelf has the functions we need.  We cannot
6547  # rely on just detecting the headers since they do not include
6548  # versioning information.  Add functions, if needed.
6549  if test x"$enable_lto" = x"yes" ; then
6550    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of libelf" >&5
6551$as_echo_n "checking for the correct version of libelf... " >&6; }
6552    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553/* end confdefs.h.  */
6554#include <libelf.h>
6555int
6556main ()
6557{
6558
6559      elf_errmsg (0);
6560      elf_getscn (0, 0);
6561      elf_nextscn (0, 0);
6562      elf_strptr (0, 0, 0);
6563      elf_getident (0, 0);
6564      elf_begin (0, 0, 0);
6565      elf_ndxscn (0);
6566      elf_end (0);
6567
6568  ;
6569  return 0;
6570}
6571_ACEOF
6572if ac_fn_c_try_link "$LINENO"; then :
6573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6574$as_echo "yes" >&6; };
6575else
6576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577$as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc=
6578
6579fi
6580rm -f core conftest.err conftest.$ac_objext \
6581    conftest$ac_exeext conftest.$ac_ext
6582
6583    # Check for elf_getshdrstrndx or elf_getshstrndx.  The latter's flavor
6584    # is determined in gcc/configure.ac.
6585    if test x"$enable_lto" = x"yes" ; then
6586      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx" >&5
6587$as_echo_n "checking for elf_getshdrstrndx... " >&6; }
6588      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589/* end confdefs.h.  */
6590#include <libelf.h>
6591int
6592main ()
6593{
6594
6595	elf_getshdrstrndx (0, 0);
6596
6597  ;
6598  return 0;
6599}
6600_ACEOF
6601if ac_fn_c_try_link "$LINENO"; then :
6602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6603$as_echo "yes" >&6; };
6604else
6605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606$as_echo "no" >&6; };
6607	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshstrndx" >&5
6608$as_echo_n "checking for elf_getshstrndx... " >&6; }
6609         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610/* end confdefs.h.  */
6611#include <libelf.h>
6612int
6613main ()
6614{
6615
6616	   elf_getshstrndx (0, 0);
6617
6618  ;
6619  return 0;
6620}
6621_ACEOF
6622if ac_fn_c_try_link "$LINENO"; then :
6623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6624$as_echo "yes" >&6; };
6625else
6626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627$as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc=
6628
6629fi
6630rm -f core conftest.err conftest.$ac_objext \
6631    conftest$ac_exeext conftest.$ac_ext
6632
6633fi
6634rm -f core conftest.err conftest.$ac_objext \
6635    conftest$ac_exeext conftest.$ac_ext
6636    fi
6637
6638    # If we couldn't enable LTO and the user forced it, emit an error.
6639    if test x"$enable_lto" = x"no" \
6640       && test x"$default_enable_lto" != x"yes" ; then
6641      as_fn_error "To enable LTO, GCC requires libelf v0.8.12+.
6642Try the --with-libelf, --with-libelf-include and --with-libelf-lib options
6643to specify its location." "$LINENO" 5
6644    fi
6645  fi
6646
6647  CFLAGS="$saved_CFLAGS"
6648  CPPFLAGS="$saved_CPPFLAGS"
6649  LIBS="$saved_LIBS"
6650
6651 fi
6652
6653  # Flags needed for libelf.
6654
6655
6656fi
6657else
6658  if test x"$default_enable_lto" = x"yes" ; then
6659    # On non-ELF platforms, LTO must be explicitly enabled.
6660    enable_lto=no
6661  else
6662  # Apart from ELF platforms, only Windows supports LTO so far.  It
6663  # would also be nice to check the binutils support, but we don't
6664  # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6665  # warn during gcc/ subconfigure; unless you're bootstrapping with
6666  # -flto it won't be needed until after installation anyway.
6667    case $target in
6668      *-cygwin*|*-mingw*) ;;
6669      x86_64-apple-darwin*) ;;
6670      *) if test x"$enable_lto" = x"yes"; then
6671	as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6672        fi
6673      ;;
6674    esac
6675  fi
6676  default_enable_lto=no
6677fi
6678
6679
6680
6681# By default, C is the only stage 1 language.
6682stage1_languages=,c,
6683
6684# Target libraries that we bootstrap.
6685bootstrap_target_libs=,target-libgcc,
6686
6687# Figure out what language subdirectories are present.
6688# Look if the user specified --enable-languages="..."; if not, use
6689# the environment variable $LANGUAGES if defined. $LANGUAGES might
6690# go away some day.
6691# NB:  embedded tabs in this IF block -- do not untabify
6692if test -d ${srcdir}/gcc; then
6693  if test x"${enable_languages+set}" != xset; then
6694    if test x"${LANGUAGES+set}" = xset; then
6695      enable_languages="${LANGUAGES}"
6696        echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6697    else
6698      enable_languages=all
6699    fi
6700  else
6701    if test x"${enable_languages}" = x ||
6702       test x"${enable_languages}" = xyes;
6703       then
6704      echo configure.in: --enable-languages needs at least one language argument 1>&2
6705      exit 1
6706    fi
6707  fi
6708  enable_languages=`echo "${enable_languages}" | sed -e 's/[ 	,][ 	,]*/,/g' -e 's/,$//'`
6709
6710  # 'f95' is the old name for the 'fortran' language. We issue a warning
6711  # and make the substitution.
6712  case ,${enable_languages}, in
6713    *,f95,*)
6714      echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6715      enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6716      ;;
6717  esac
6718
6719  # First scan to see if an enabled language requires some other language.
6720  # We assume that a given config-lang.in will list all the language
6721  # front ends it requires, even if some are required indirectly.
6722  for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6723    case ${lang_frag} in
6724      ..) ;;
6725      # The odd quoting in the next line works around
6726      # an apparent bug in bash 1.12 on linux.
6727      ${srcdir}/gcc/[*]/config-lang.in) ;;
6728      *)
6729        # From the config-lang.in, get $language, $lang_requires
6730        language=
6731        lang_requires=
6732        . ${lang_frag}
6733        for other in ${lang_requires} ; do
6734          case ,${enable_languages}, in
6735	    *,$other,*) ;;
6736	    *,all,*) ;;
6737	    *,$language,*)
6738	      echo " \`$other' language required by \`$language'; enabling" 1>&2
6739	      enable_languages="${enable_languages},${other}"
6740	      ;;
6741	  esac
6742        done
6743        ;;
6744    esac
6745  done
6746
6747  new_enable_languages=,c,
6748
6749  # If LTO is enabled, add the LTO front end.
6750  extra_host_libiberty_configure_flags=
6751  if test "$enable_lto" = "yes" ; then
6752    case ,${enable_languages}, in
6753      *,lto,*) ;;
6754      *) enable_languages="${enable_languages},lto" ;;
6755    esac
6756    if test "${ENABLE_GOLD}" = "yes" ; then
6757      configdirs="$configdirs lto-plugin"
6758      extra_host_libiberty_configure_flags=--enable-shared
6759    fi
6760  fi
6761
6762
6763  missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6764  potential_languages=,c,
6765
6766  for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6767    case ${lang_frag} in
6768      ..) ;;
6769      # The odd quoting in the next line works around
6770      # an apparent bug in bash 1.12 on linux.
6771      ${srcdir}/gcc/[*]/config-lang.in) ;;
6772      *)
6773        # From the config-lang.in, get $language, $target_libs,
6774        # $lang_dirs, $boot_language, and $build_by_default
6775        language=
6776        target_libs=
6777        lang_dirs=
6778        subdir_requires=
6779        boot_language=no
6780        build_by_default=yes
6781        . ${lang_frag}
6782        if test x${language} = x; then
6783          echo "${lang_frag} doesn't set \$language." 1>&2
6784          exit 1
6785        fi
6786
6787	if test "$language" = "c++" \
6788	   && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6789	  boot_language=yes
6790	fi
6791
6792        case ,${enable_languages}, in
6793          *,${language},*)
6794            # Language was explicitly selected; include it.
6795            add_this_lang=yes
6796            ;;
6797          *,all,*)
6798            # 'all' was selected, select it if it is a default language
6799            add_this_lang=${build_by_default}
6800            ;;
6801          *)
6802            add_this_lang=no
6803            ;;
6804        esac
6805
6806        # Disable languages that need other directories if these aren't available.
6807	for i in $subdir_requires; do
6808	  test -f "$srcdir/gcc/$i/config-lang.in" && continue
6809	  case ,${enable_languages}, in
6810            *,${language},*)
6811              # Specifically requested language; tell them.
6812              as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6813              ;;
6814            *)
6815              # Silently disable.
6816              add_this_lang=unsupported
6817              ;;
6818          esac
6819	done
6820
6821        # Disable Ada if no preexisting GNAT is available.
6822        case ,${enable_languages},:${language}:${have_gnat} in
6823          *,${language},*:ada:no)
6824            # Specifically requested language; tell them.
6825            as_fn_error "GNAT is required to build $language" "$LINENO" 5
6826            ;;
6827          *:ada:no)
6828            # Silently disable.
6829            add_this_lang=unsupported
6830            ;;
6831        esac
6832
6833	# Disable a language that is unsupported by the target.
6834	case " $unsupported_languages " in
6835	  *" $language "*)
6836	    add_this_lang=unsupported
6837	    ;;
6838	esac
6839
6840	case $add_this_lang in
6841	  unsupported)
6842            # Remove language-dependent dirs.
6843            eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6844	    ;;
6845	  no)
6846            # Remove language-dependent dirs; still show language as supported.
6847            eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6848            potential_languages="${potential_languages}${language},"
6849	    ;;
6850          yes)
6851	    new_enable_languages="${new_enable_languages}${language},"
6852            potential_languages="${potential_languages}${language},"
6853	    missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6854	    case "${boot_language}:,$enable_stage1_languages," in
6855	      yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6856		# Add to (comma-separated) list of stage 1 languages.
6857		case ",$stage1_languages," in
6858		  *,$language,* | ,yes, | ,all,) ;;
6859		  *) stage1_languages="${stage1_languages}${language}," ;;
6860		esac
6861		# We need to bootstrap any supporting libraries.
6862		bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6863		;;
6864	    esac
6865	    ;;
6866        esac
6867        ;;
6868    esac
6869  done
6870
6871  # Check whether --enable-stage1-languages was given.
6872if test "${enable_stage1_languages+set}" = set; then :
6873  enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6874    ,no,|,,)
6875      # Set it to something that will have no effect in the loop below
6876      enable_stage1_languages=c ;;
6877    ,yes,)
6878      enable_stage1_languages=`echo $new_enable_languages | \
6879	sed -e "s/^,//" -e "s/,$//" ` ;;
6880    *,all,*)
6881      enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6882	sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6883  esac
6884
6885  # Add "good" languages from enable_stage1_languages to stage1_languages,
6886  # while "bad" languages go in missing_languages.  Leave no duplicates.
6887  for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6888    case $potential_languages in
6889      *,$i,*)
6890        case $stage1_languages in
6891          *,$i,*) ;;
6892          *) stage1_languages="$stage1_languages$i," ;;
6893        esac ;;
6894      *)
6895        case $missing_languages in
6896          *,$i,*) ;;
6897          *) missing_languages="$missing_languages$i," ;;
6898        esac ;;
6899     esac
6900  done
6901fi
6902
6903
6904  # Remove leading/trailing commas that were added for simplicity
6905  potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6906  missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6907  stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6908  new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6909
6910  if test "x$missing_languages" != x; then
6911    as_fn_error "
6912The following requested languages could not be built: ${missing_languages}
6913Supported languages are: ${potential_languages}" "$LINENO" 5
6914  fi
6915  if test "x$new_enable_languages" != "x$enable_languages"; then
6916    echo The following languages will be built: ${new_enable_languages}
6917    enable_languages="$new_enable_languages"
6918  fi
6919
6920
6921  ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6922fi
6923
6924# Handle --disable-<component> generically.
6925for dir in $configdirs $build_configdirs $target_configdirs ; do
6926  dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6927  varname=`echo $dirname | sed -e s/+/_/g`
6928  if eval test x\${enable_${varname}} "=" xno ; then
6929    noconfigdirs="$noconfigdirs $dir"
6930  fi
6931done
6932
6933# Check for Boehm's garbage collector
6934# Check whether --enable-objc-gc was given.
6935if test "${enable_objc_gc+set}" = set; then :
6936  enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6937  *,objc,*:*:yes:*target-boehm-gc*)
6938    as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6939    ;;
6940esac
6941fi
6942
6943
6944# Make sure we only build Boehm's garbage collector if required.
6945case ,${enable_languages},:${enable_objc_gc} in
6946  *,objc,*:yes)
6947    # Keep target-boehm-gc if requested for Objective-C.
6948    ;;
6949  *)
6950    # Otherwise remove target-boehm-gc depending on target-libjava.
6951    if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6952      noconfigdirs="$noconfigdirs target-boehm-gc"
6953    fi
6954    ;;
6955esac
6956
6957# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6958# $build_configdirs and $target_configdirs.
6959# If we have the source for $noconfigdirs entries, add them to $notsupp.
6960
6961notsupp=""
6962for dir in . $skipdirs $noconfigdirs ; do
6963  dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6964  if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6965    configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6966    if test -r $srcdir/$dirname/configure ; then
6967      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6968	true
6969      else
6970	notsupp="$notsupp $dir"
6971      fi
6972    fi
6973  fi
6974  if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6975    build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6976    if test -r $srcdir/$dirname/configure ; then
6977      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6978	true
6979      else
6980	notsupp="$notsupp $dir"
6981      fi
6982    fi
6983  fi
6984  if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6985    target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6986    if test -r $srcdir/$dirname/configure ; then
6987      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6988	true
6989      else
6990	notsupp="$notsupp $dir"
6991      fi
6992    fi
6993  fi
6994done
6995
6996# Quietly strip out all directories which aren't configurable in this tree.
6997# This relies on all configurable subdirectories being autoconfiscated, which
6998# is now the case.
6999build_configdirs_all="$build_configdirs"
7000build_configdirs=
7001for i in ${build_configdirs_all} ; do
7002  j=`echo $i | sed -e s/build-//g`
7003  if test -f ${srcdir}/$j/configure ; then
7004    build_configdirs="${build_configdirs} $i"
7005  fi
7006done
7007
7008configdirs_all="$configdirs"
7009configdirs=
7010for i in ${configdirs_all} ; do
7011  if test -f ${srcdir}/$i/configure ; then
7012    configdirs="${configdirs} $i"
7013  fi
7014done
7015
7016target_configdirs_all="$target_configdirs"
7017target_configdirs=
7018for i in ${target_configdirs_all} ; do
7019  j=`echo $i | sed -e s/target-//g`
7020  if test -f ${srcdir}/$j/configure ; then
7021    target_configdirs="${target_configdirs} $i"
7022  fi
7023done
7024
7025# Produce a warning message for the subdirs we can't configure.
7026# This isn't especially interesting in the Cygnus tree, but in the individual
7027# FSF releases, it's important to let people know when their machine isn't
7028# supported by the one or two programs in a package.
7029
7030if test -n "${notsupp}" && test -z "${norecursion}" ; then
7031  # If $appdirs is non-empty, at least one of those directories must still
7032  # be configured, or we error out.  (E.g., if the gas release supports a
7033  # specified target in some subdirs but not the gas subdir, we shouldn't
7034  # pretend that all is well.)
7035  if test -n "$appdirs" ; then
7036    for dir in $appdirs ; do
7037      if test -r $dir/Makefile.in ; then
7038	if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7039	  appdirs=""
7040	  break
7041	fi
7042	if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
7043	  appdirs=""
7044	  break
7045	fi
7046      fi
7047    done
7048    if test -n "$appdirs" ; then
7049      echo "*** This configuration is not supported by this package." 1>&2
7050      exit 1
7051    fi
7052  fi
7053  # Okay, some application will build, or we don't care to check.  Still
7054  # notify of subdirs not getting built.
7055  echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7056  echo "    ${notsupp}" 1>&2
7057  echo "    (Any other directories should still work fine.)" 1>&2
7058fi
7059
7060case "$host" in
7061  *msdosdjgpp*)
7062    enable_gdbtk=no ;;
7063esac
7064
7065# To find our prefix, in gcc_cv_tool_prefix.
7066
7067# The user is always right.
7068if test "${PATH_SEPARATOR+set}" != set; then
7069  echo "#! /bin/sh" >conf$$.sh
7070  echo  "exit 0"   >>conf$$.sh
7071  chmod +x conf$$.sh
7072  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7073    PATH_SEPARATOR=';'
7074  else
7075    PATH_SEPARATOR=:
7076  fi
7077  rm -f conf$$.sh
7078fi
7079
7080
7081
7082if test "x$exec_prefix" = xNONE; then
7083        if test "x$prefix" = xNONE; then
7084                gcc_cv_tool_prefix=$ac_default_prefix
7085        else
7086                gcc_cv_tool_prefix=$prefix
7087        fi
7088else
7089        gcc_cv_tool_prefix=$exec_prefix
7090fi
7091
7092# If there is no compiler in the tree, use the PATH only.  In any
7093# case, if there is no compiler in the tree nobody should use
7094# AS_FOR_TARGET and LD_FOR_TARGET.
7095if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7096    gcc_version=`cat $srcdir/gcc/BASE-VER`
7097    gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7098    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7099    gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7100    gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7101    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7102    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7103else
7104    gcc_cv_tool_dirs=
7105fi
7106
7107if test x$build = x$target && test -n "$md_exec_prefix"; then
7108        gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7109fi
7110
7111
7112
7113copy_dirs=
7114
7115
7116# Check whether --with-build-sysroot was given.
7117if test "${with_build_sysroot+set}" = set; then :
7118  withval=$with_build_sysroot; if test x"$withval" != x ; then
7119     SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7120   fi
7121else
7122  SYSROOT_CFLAGS_FOR_TARGET=
7123fi
7124
7125
7126
7127
7128# Check whether --with-debug-prefix-map was given.
7129if test "${with_debug_prefix_map+set}" = set; then :
7130  withval=$with_debug_prefix_map; if test x"$withval" != x; then
7131     DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7132     for debug_map in $withval; do
7133       DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7134     done
7135   fi
7136else
7137  DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7138fi
7139
7140
7141
7142# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7143# might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
7144# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7145# We want to ensure that TARGET libraries (which we know are built with
7146# gcc) are built with "-O2 -g", so include those options when setting
7147# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7148if test "x$CFLAGS_FOR_TARGET" = x; then
7149  CFLAGS_FOR_TARGET=$CFLAGS
7150  case " $CFLAGS " in
7151    *" -O2 "*) ;;
7152    *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
7153  esac
7154  case " $CFLAGS " in
7155    *" -g "* | *" -g3 "*) ;;
7156    *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
7157  esac
7158fi
7159
7160
7161if test "x$CXXFLAGS_FOR_TARGET" = x; then
7162  CXXFLAGS_FOR_TARGET=$CXXFLAGS
7163  case " $CXXFLAGS " in
7164    *" -O2 "*) ;;
7165    *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
7166  esac
7167  case " $CXXFLAGS " in
7168    *" -g "* | *" -g3 "*) ;;
7169    *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
7170  esac
7171fi
7172
7173
7174# Handle --with-headers=XXX.  If the value is not "yes", the contents of
7175# the named directory are copied to $(tooldir)/sys-include.
7176if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7177  if test x${is_cross_compiler} = xno ; then
7178    echo 1>&2 '***' --with-headers is only supported when cross compiling
7179    exit 1
7180  fi
7181  if test x"${with_headers}" != xyes ; then
7182    x=${gcc_cv_tool_prefix}
7183    copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
7184  fi
7185fi
7186
7187# Handle --with-libs=XXX.  If the value is not "yes", the contents of
7188# the name directories are copied to $(tooldir)/lib.  Multiple directories
7189# are permitted.
7190if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7191  if test x${is_cross_compiler} = xno ; then
7192    echo 1>&2 '***' --with-libs is only supported when cross compiling
7193    exit 1
7194  fi
7195  if test x"${with_libs}" != xyes ; then
7196    # Copy the libraries in reverse order, so that files in the first named
7197    # library override files in subsequent libraries.
7198    x=${gcc_cv_tool_prefix}
7199    for l in ${with_libs}; do
7200      copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7201    done
7202  fi
7203fi
7204
7205# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7206#
7207# This is done by determining whether or not the appropriate directory
7208# is available, and by checking whether or not specific configurations
7209# have requested that this magic not happen.
7210#
7211# The command line options always override the explicit settings in
7212# configure.in, and the settings in configure.in override this magic.
7213#
7214# If the default for a toolchain is to use GNU as and ld, and you don't
7215# want to do that, then you should use the --without-gnu-as and
7216# --without-gnu-ld options for the configure script.  Similarly, if
7217# the default is to use the included zlib and you don't want to do that,
7218# you should use the --with-system-zlib option for the configure script.
7219
7220if test x${use_gnu_as} = x &&
7221   echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7222  with_gnu_as=yes
7223  extra_host_args="$extra_host_args --with-gnu-as"
7224fi
7225
7226if test x${use_gnu_ld} = x &&
7227   echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7228  with_gnu_ld=yes
7229  extra_host_args="$extra_host_args --with-gnu-ld"
7230fi
7231
7232if test x${use_included_zlib} = x &&
7233   echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7234  :
7235else
7236  with_system_zlib=yes
7237  extra_host_args="$extra_host_args --with-system-zlib"
7238fi
7239
7240# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7241# can detect this case.
7242
7243if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7244  with_newlib=yes
7245  extra_host_args="$extra_host_args --with-newlib"
7246fi
7247
7248# Handle ${copy_dirs}
7249set fnord ${copy_dirs}
7250shift
7251while test $# != 0 ; do
7252  if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7253    :
7254  else
7255    echo Copying $1 to $2
7256
7257    # Use the install script to create the directory and all required
7258    # parent directories.
7259    if test -d $2 ; then
7260      :
7261    else
7262      echo >config.temp
7263      ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7264    fi
7265
7266    # Copy the directory, assuming we have tar.
7267    # FIXME: Should we use B in the second tar?  Not all systems support it.
7268    (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7269
7270    # It is the responsibility of the user to correctly adjust all
7271    # symlinks.  If somebody can figure out how to handle them correctly
7272    # here, feel free to add the code.
7273
7274    echo $1 > $2/COPIED
7275  fi
7276  shift; shift
7277done
7278
7279# Determine a target-dependent exec_prefix that the installed
7280# gcc will search in.  Keep this list sorted by triplet, with
7281# the *-*-osname triplets last.
7282md_exec_prefix=
7283case "${target}" in
7284  alpha*-*-*vms*)
7285    md_exec_prefix=/gnu/lib/gcc-lib
7286    ;;
7287  i[34567]86-pc-msdosdjgpp*)
7288    md_exec_prefix=/dev/env/DJDIR/bin
7289    ;;
7290  i[34567]86-*-sco3.2v5*)
7291    if test $with_gnu_as = yes; then
7292      md_exec_prefix=/usr/gnu/bin
7293    else
7294      md_exec_prefix=/usr/ccs/bin/elf
7295    fi
7296    ;;
7297
7298  mn10300-*-* | \
7299  powerpc-*-chorusos* | \
7300  powerpc*-*-eabi* | \
7301  powerpc*-*-sysv* | \
7302  powerpc*-*-kaos* | \
7303  s390x-ibm-tpf*)
7304    md_exec_prefix=/usr/ccs/bin
7305    ;;
7306  sparc64-*-elf*)
7307    ;;
7308  v850*-*-*)
7309    md_exec_prefix=/usr/ccs/bin
7310    ;;
7311  xtensa*-*-elf*)
7312    ;;
7313
7314  *-*-beos* | \
7315  *-*-elf* | \
7316  *-*-hpux* | \
7317  *-*-netware* | \
7318  *-*-nto-qnx* | \
7319  *-*-rtems* | \
7320  *-*-solaris2* | \
7321  *-*-sysv[45]* | \
7322  *-*-vxworks* | \
7323  *-wrs-windiss)
7324    md_exec_prefix=/usr/ccs/bin
7325    ;;
7326esac
7327
7328extra_arflags_for_target=
7329extra_nmflags_for_target=
7330extra_ranlibflags_for_target=
7331target_makefile_frag=/dev/null
7332case "${target}" in
7333  mep*-*-*)
7334    target_makefile_frag="config/mt-mep"
7335    ;;
7336  spu-*-*)
7337    target_makefile_frag="config/mt-spu"
7338    ;;
7339  mips*-sde-elf*)
7340    target_makefile_frag="config/mt-sde"
7341    ;;
7342  mipsisa*-*-elfoabi*)
7343    target_makefile_frag="config/mt-mips-elfoabi"
7344    ;;
7345  mips*-*-*linux* | mips*-*-gnu*)
7346    target_makefile_frag="config/mt-mips-gnu"
7347    ;;
7348  *-*-netware*)
7349    target_makefile_frag="config/mt-netware"
7350    ;;
7351  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7352    target_makefile_frag="config/mt-gnu"
7353    ;;
7354  *-*-aix4.[3456789]* | *-*-aix[56789].*)
7355    # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7356    # commands to handle both 32-bit and 64-bit objects.  These flags are
7357    # harmless if we're using GNU nm or ar.
7358    extra_arflags_for_target=" -X32_64"
7359    extra_nmflags_for_target=" -B -X32_64"
7360    ;;
7361  *-*-darwin[3-9]*)
7362    # ranlib before Darwin10 requires the -c flag to look at common symbols.
7363    extra_ranlibflags_for_target=" -c"
7364    ;;
7365  mips*-*-pe | sh*-*-pe | *arm-wince-pe)
7366    target_makefile_frag="config/mt-wince"
7367    ;;
7368esac
7369
7370alphaieee_frag=/dev/null
7371case $target in
7372  alpha*-*-*)
7373    # This just makes sure to use the -mieee option to build target libs.
7374    # This should probably be set individually by each library.
7375    alphaieee_frag="config/mt-alphaieee"
7376    ;;
7377esac
7378
7379# If --enable-target-optspace always use -Os instead of -O2 to build
7380# the target libraries, similarly if it is not specified, use -Os
7381# on selected platforms.
7382ospace_frag=/dev/null
7383case "${enable_target_optspace}:${target}" in
7384  yes:*)
7385    ospace_frag="config/mt-ospace"
7386    ;;
7387  :d30v-*)
7388    ospace_frag="config/mt-d30v"
7389    ;;
7390  :m32r-* | :d10v-* | :fr30-*)
7391    ospace_frag="config/mt-ospace"
7392    ;;
7393  no:* | :*)
7394    ;;
7395  *)
7396    echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7397    ;;
7398esac
7399
7400# Default to using --with-stabs for certain targets.
7401if test x${with_stabs} = x ; then
7402  case "${target}" in
7403  mips*-*-irix[56]*)
7404    ;;
7405  mips*-*-* | alpha*-*-osf*)
7406    with_stabs=yes;
7407    extra_host_args="${extra_host_args} --with-stabs"
7408    ;;
7409  esac
7410fi
7411
7412# hpux11 in 64bit mode has libraries in a weird place.  Arrange to find
7413# them automatically.
7414case "${host}" in
7415  hppa*64*-*-hpux11*)
7416    extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
7417    ;;
7418esac
7419
7420# Some systems (e.g., one of the i386-aix systems the gas testers are
7421# using) don't handle "\$" correctly, so don't use it here.
7422tooldir='${exec_prefix}'/${target_noncanonical}
7423build_tooldir=${tooldir}
7424
7425# Create a .gdbinit file which runs the one in srcdir
7426# and tells GDB to look there for source files.
7427
7428if test -r ${srcdir}/.gdbinit ; then
7429  case ${srcdir} in
7430    .) ;;
7431    *) cat > ./.gdbinit <<EOF
7432# ${NO_EDIT}
7433dir ${srcdir}
7434dir .
7435source ${srcdir}/.gdbinit
7436EOF
7437    ;;
7438  esac
7439fi
7440
7441# Make sure that the compiler is able to generate an executable.  If it
7442# can't, we are probably in trouble.  We don't care whether we can run the
7443# executable--we might be using a cross compiler--we only care whether it
7444# can be created.  At this point the main configure script has set CC.
7445we_are_ok=no
7446echo "int main () { return 0; }" > conftest.c
7447${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7448if test $? = 0 ; then
7449  if test -s conftest || test -s conftest.exe ; then
7450    we_are_ok=yes
7451  fi
7452fi
7453case $we_are_ok in
7454  no)
7455    echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7456    echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7457    rm -f conftest*
7458    exit 1
7459    ;;
7460esac
7461rm -f conftest*
7462
7463# The Solaris /usr/ucb/cc compiler does not appear to work.
7464case "${host}" in
7465  sparc-sun-solaris2*)
7466      CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
7467      if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
7468          could_use=
7469          test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
7470          if test -d /opt/cygnus/bin ; then
7471              if test "$could_use" = "" ; then
7472                  could_use="/opt/cygnus/bin"
7473              else
7474                  could_use="$could_use or /opt/cygnus/bin"
7475              fi
7476          fi
7477        if test "$could_use" = "" ; then
7478            echo "Warning: compilation may fail because you're using"
7479            echo "/usr/ucb/cc.  You should change your PATH or CC "
7480            echo "variable and rerun configure."
7481        else
7482            echo "Warning: compilation may fail because you're using"
7483            echo "/usr/ucb/cc, when you should use the C compiler from"
7484            echo "$could_use.  You should change your"
7485            echo "PATH or CC variable and rerun configure."
7486        fi
7487      fi
7488  ;;
7489esac
7490
7491# Decide which environment variable is used to find dynamic libraries.
7492case "${host}" in
7493  *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7494  *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7495  *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7496  *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7497esac
7498
7499# On systems where the dynamic library environment variable is PATH,
7500# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7501# built executables to PATH.
7502if test "$RPATH_ENVVAR" = PATH; then
7503  GCC_SHLIB_SUBDIR=/shlib
7504else
7505  GCC_SHLIB_SUBDIR=
7506fi
7507
7508# Record target_configdirs and the configure arguments for target and
7509# build configuration in Makefile.
7510target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7511build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7512
7513# If we are building libgomp, bootstrap it.
7514if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7515  bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7516fi
7517
7518# Determine whether gdb needs tk/tcl or not.
7519# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7520# and in that case we want gdb to be built without tk.  Ugh!
7521# In fact I believe gdb is the *only* package directly dependent on tk,
7522# so we should be able to put the 'maybe's in unconditionally and
7523# leave out the maybe dependencies when enable_gdbtk is false.  I'm not
7524# 100% sure that that's safe though.
7525
7526gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7527case "$enable_gdbtk" in
7528  no)
7529    GDB_TK="" ;;
7530  yes)
7531    GDB_TK="${gdb_tk}" ;;
7532  *)
7533    # Only add the dependency on gdbtk when GDBtk is part of the gdb
7534    # distro.  Eventually someone will fix this and move Insight, nee
7535    # gdbtk to a separate directory.
7536    if test -d ${srcdir}/gdb/gdbtk ; then
7537      GDB_TK="${gdb_tk}"
7538    else
7539      GDB_TK=""
7540    fi
7541    ;;
7542esac
7543CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7544INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7545
7546# Strip out unwanted targets.
7547
7548# While at that, we remove Makefiles if we were started for recursive
7549# configuration, so that the top-level Makefile reconfigures them,
7550# like we used to do when configure itself was recursive.
7551
7552# Loop over modules.  We used to use the "$extrasub" feature from Autoconf
7553# but now we're fixing up the Makefile ourselves with the additional
7554# commands passed to AC_CONFIG_FILES.  Use separate variables
7555# extrasub-{build,host,target} not because there is any reason to split
7556# the substitutions up that way, but only to remain below the limit of
7557# 99 commands in a script, for HP-UX sed.
7558# Do not nest @if/@endif pairs, because configure will not warn you at all.
7559
7560# Check whether --enable-bootstrap was given.
7561if test "${enable_bootstrap+set}" = set; then :
7562  enableval=$enable_bootstrap;
7563else
7564  enable_bootstrap=default
7565fi
7566
7567
7568# Issue errors and warnings for invalid/strange bootstrap combinations.
7569case "$configdirs" in
7570  *gcc*) have_compiler=yes ;;
7571  *) have_compiler=no ;;
7572esac
7573
7574case "$have_compiler:$host:$target:$enable_bootstrap" in
7575  *:*:*:no) ;;
7576
7577  # Default behavior.  Enable bootstrap if we have a compiler
7578  # and we are in a native configuration.
7579  yes:$build:$build:default)
7580    enable_bootstrap=yes ;;
7581
7582  *:*:*:default)
7583    enable_bootstrap=no ;;
7584
7585  # We have a compiler and we are in a native configuration, bootstrap is ok
7586  yes:$build:$build:yes)
7587    ;;
7588
7589  # Other configurations, but we have a compiler.  Assume the user knows
7590  # what he's doing.
7591  yes:*:*:yes)
7592    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7593$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
7594    ;;
7595
7596  # No compiler: if they passed --enable-bootstrap explicitly, fail
7597  no:*:*:yes)
7598    as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
7599
7600  # Fail if wrong command line
7601  *)
7602    as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
7603    ;;
7604esac
7605
7606case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7607  *,c++,*:yes:yes) ;;
7608  *:yes:yes)
7609    as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7610    ;;
7611esac
7612
7613case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7614  yes:yes:*\ gold\ *:*,c++,*) ;;
7615  yes:yes:*\ gold\ *:*)
7616    as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7617    ;;
7618esac
7619
7620# Adjust the toplevel makefile according to whether bootstrap was selected.
7621case $enable_bootstrap in
7622  yes)
7623    bootstrap_suffix=bootstrap
7624    BUILD_CONFIG=bootstrap-debug
7625    ;;
7626  no)
7627    bootstrap_suffix=no-bootstrap
7628    BUILD_CONFIG=
7629    ;;
7630esac
7631
7632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7633$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7634
7635
7636# Check whether --with-build-config was given.
7637if test "${with_build_config+set}" = set; then :
7638  withval=$with_build_config; case $with_build_config in
7639   yes) with_build_config= ;;
7640   no) with_build_config= BUILD_CONFIG= ;;
7641   esac
7642fi
7643
7644
7645if test "x${with_build_config}" != x; then
7646  BUILD_CONFIG=$with_build_config
7647else
7648  case $BUILD_CONFIG in
7649  bootstrap-debug)
7650    if echo "int f (void) { return 0; }" > conftest.c &&
7651       ${CC} -c conftest.c &&
7652       mv conftest.o conftest.o.g0 &&
7653       ${CC} -c -g conftest.c &&
7654       mv conftest.o conftest.o.g &&
7655       ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7656      :
7657    else
7658      BUILD_CONFIG=
7659    fi
7660    rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7661    ;;
7662  esac
7663fi
7664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7665$as_echo "$BUILD_CONFIG" >&6; }
7666
7667
7668extrasub_build=
7669for module in ${build_configdirs} ; do
7670  if test -z "${no_recursion}" \
7671     && test -f ${build_subdir}/${module}/Makefile; then
7672    echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7673    rm -f ${build_subdir}/${module}/Makefile
7674  fi
7675  extrasub_build="$extrasub_build
7676/^@if build-$module\$/d
7677/^@endif build-$module\$/d
7678/^@if build-$module-$bootstrap_suffix\$/d
7679/^@endif build-$module-$bootstrap_suffix\$/d"
7680done
7681extrasub_host=
7682for module in ${configdirs} ; do
7683  if test -z "${no_recursion}"; then
7684    for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7685      if test -f ${file}; then
7686	echo 1>&2 "*** removing ${file} to force reconfigure"
7687	rm -f ${file}
7688      fi
7689    done
7690  fi
7691  extrasub_host="$extrasub_host
7692/^@if $module\$/d
7693/^@endif $module\$/d
7694/^@if $module-$bootstrap_suffix\$/d
7695/^@endif $module-$bootstrap_suffix\$/d"
7696done
7697extrasub_target=
7698for module in ${target_configdirs} ; do
7699  if test -z "${no_recursion}" \
7700     && test -f ${target_subdir}/${module}/Makefile; then
7701    echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7702    rm -f ${target_subdir}/${module}/Makefile
7703  fi
7704
7705  # We only bootstrap target libraries listed in bootstrap_target_libs.
7706  case $bootstrap_target_libs in
7707    *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7708    *) target_bootstrap_suffix=no-bootstrap ;;
7709  esac
7710
7711  extrasub_target="$extrasub_target
7712/^@if target-$module\$/d
7713/^@endif target-$module\$/d
7714/^@if target-$module-$target_bootstrap_suffix\$/d
7715/^@endif target-$module-$target_bootstrap_suffix\$/d"
7716done
7717
7718# Do the final fixup along with target modules.
7719extrasub_target="$extrasub_target
7720/^@if /,/^@endif /d"
7721
7722# Create the serialization dependencies.  This uses a temporary file.
7723
7724# Check whether --enable-serial-configure was given.
7725if test "${enable_serial_configure+set}" = set; then :
7726  enableval=$enable_serial_configure;
7727fi
7728
7729
7730case ${enable_serial_configure} in
7731  yes)
7732    enable_serial_build_configure=yes
7733    enable_serial_host_configure=yes
7734    enable_serial_target_configure=yes
7735    ;;
7736esac
7737
7738# These force 'configure's to be done one at a time, to avoid problems
7739# with contention over a shared config.cache.
7740rm -f serdep.tmp
7741echo '# serdep.tmp' > serdep.tmp
7742olditem=
7743test "x${enable_serial_build_configure}" = xyes &&
7744for item in ${build_configdirs} ; do
7745  case ${olditem} in
7746    "") ;;
7747    *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7748  esac
7749  olditem=${item}
7750done
7751olditem=
7752test "x${enable_serial_host_configure}" = xyes &&
7753for item in ${configdirs} ; do
7754  case ${olditem} in
7755    "") ;;
7756    *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7757  esac
7758  olditem=${item}
7759done
7760olditem=
7761test "x${enable_serial_target_configure}" = xyes &&
7762for item in ${target_configdirs} ; do
7763  case ${olditem} in
7764    "") ;;
7765    *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7766  esac
7767  olditem=${item}
7768done
7769serialization_dependencies=serdep.tmp
7770
7771
7772# Base args.  Strip norecursion, cache-file, srcdir, host, build,
7773# target, nonopt, and variable assignments.  These are the ones we
7774# might not want to pass down to subconfigures.  The exception being
7775# --cache-file=/dev/null, which is used to turn off the use of cache
7776# files altogether, and which should be passed on to subconfigures.
7777# Also strip program-prefix, program-suffix, and program-transform-name,
7778# so that we can pass down a consistent program-transform-name.
7779baseargs=
7780keep_next=no
7781skip_next=no
7782eval "set -- $ac_configure_args"
7783for ac_arg
7784do
7785  if test X"$skip_next" = X"yes"; then
7786    skip_next=no
7787    continue
7788  fi
7789  if test X"$keep_next" = X"yes"; then
7790    case $ac_arg in
7791      *\'*)
7792	ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7793    esac
7794    baseargs="$baseargs '$ac_arg'"
7795    keep_next=no
7796    continue
7797  fi
7798
7799  # Handle separated arguments.  Based on the logic generated by
7800  # autoconf 2.59.
7801  case $ac_arg in
7802    *=* | --config-cache | -C | -disable-* | --disable-* \
7803      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7804      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7805      | -with-* | --with-* | -without-* | --without-* | --x)
7806      separate_arg=no
7807      ;;
7808    -*)
7809      separate_arg=yes
7810      ;;
7811    *)
7812      separate_arg=no
7813      ;;
7814  esac
7815
7816  case "$ac_arg" in
7817    --cache-file=/dev/null | \
7818    -cache-file=/dev/null )
7819      # Handled here to avoid the test to skip args below.
7820      baseargs="$baseargs '$ac_arg'"
7821      # Assert: $separate_arg should always be no.
7822      keep_next=$separate_arg
7823      ;;
7824    --no*)
7825      continue
7826      ;;
7827    --c* | \
7828    --sr* | \
7829    --ho* | \
7830    --bu* | \
7831    --t* | \
7832    --program-* | \
7833    -cache_file* | \
7834    -srcdir* | \
7835    -host* | \
7836    -build* | \
7837    -target* | \
7838    -program-prefix* | \
7839    -program-suffix* | \
7840    -program-transform-name* )
7841      skip_next=$separate_arg
7842      continue
7843      ;;
7844    -*)
7845      # An option.  Add it.
7846      case $ac_arg in
7847	*\'*)
7848	  ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7849      esac
7850      baseargs="$baseargs '$ac_arg'"
7851      keep_next=$separate_arg
7852      ;;
7853    *)
7854      # Either a variable assignment, or a nonopt (triplet).  Don't
7855      # pass it down; let the Makefile handle this.
7856      continue
7857      ;;
7858  esac
7859done
7860# Remove the initial space we just introduced and, as these will be
7861# expanded by make, quote '$'.
7862baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7863
7864# Add in --program-transform-name, after --program-prefix and
7865# --program-suffix have been applied to it.  Autoconf has already
7866# doubled dollar signs and backslashes in program_transform_name; we want
7867# the backslashes un-doubled, and then the entire thing wrapped in single
7868# quotes, because this will be expanded first by make and then by the shell.
7869# Also, because we want to override the logic in subdir configure scripts to
7870# choose program_transform_name, replace any s,x,x, with s,y,y,.
7871sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7872${program_transform_name}
7873EOF_SED
7874gcc_transform_name=`cat conftestsed.out`
7875rm -f conftestsed.out
7876baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7877if test "$silent" = yes; then
7878  baseargs="$baseargs --silent"
7879fi
7880baseargs="$baseargs --disable-option-checking"
7881
7882# For the build-side libraries, we just need to pretend we're native,
7883# and not use the same cache file.  Multilibs are neither needed nor
7884# desired.
7885build_configargs="--cache-file=../config.cache ${baseargs}"
7886
7887# For host modules, accept cache file option, or specification as blank.
7888case "${cache_file}" in
7889"") # empty
7890  cache_file_option="" ;;
7891/* | [A-Za-z]:[\\/]* ) # absolute path
7892  cache_file_option="--cache-file=${cache_file}" ;;
7893*) # relative path
7894  cache_file_option="--cache-file=../${cache_file}" ;;
7895esac
7896
7897# Host dirs don't like to share a cache file either, horribly enough.
7898# This seems to be due to autoconf 2.5x stupidity.
7899host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
7900
7901target_configargs=${baseargs}
7902
7903# Passing a --with-cross-host argument lets the target libraries know
7904# whether they are being built with a cross-compiler or being built
7905# native.  However, it would be better to use other mechanisms to make the
7906# sorts of decisions they want to make on this basis.  Please consider
7907# this option to be deprecated.  FIXME.
7908if test x${is_cross_compiler} = xyes ; then
7909  target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7910fi
7911
7912# Default to --enable-multilib.
7913if test x${enable_multilib} = x ; then
7914  target_configargs="--enable-multilib ${target_configargs}"
7915fi
7916
7917# Pass --with-newlib if appropriate.  Note that target_configdirs has
7918# changed from the earlier setting of with_newlib.
7919if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7920  target_configargs="--with-newlib ${target_configargs}"
7921fi
7922
7923# Different target subdirs use different values of certain variables
7924# (notably CXX).  Worse, multilibs use *lots* of different values.
7925# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7926# it doesn't automatically accept command-line overrides of them.
7927# This means it's not safe for target subdirs to share a cache file,
7928# which is disgusting, but there you have it.  Hopefully this can be
7929# fixed in future.  It's still worthwhile to use a cache file for each
7930# directory.  I think.
7931
7932# Pass the appropriate --build, --host, --target and --cache-file arguments.
7933# We need to pass --target, as newer autoconf's requires consistency
7934# for target_alias and gcc doesn't manage it consistently.
7935target_configargs="--cache-file=./config.cache ${target_configargs}"
7936
7937FLAGS_FOR_TARGET=
7938case " $target_configdirs " in
7939 *" newlib "*)
7940  case " $target_configargs " in
7941  *" --with-newlib "*)
7942   case "$target" in
7943    *-cygwin*)
7944      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7945      ;;
7946   esac
7947
7948   # If we're not building GCC, don't discard standard headers.
7949   if test -d ${srcdir}/gcc; then
7950     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7951
7952     if test "${build}" != "${host}"; then
7953       # On Canadian crosses, CC_FOR_TARGET will have already been set
7954       # by `configure', so we won't have an opportunity to add -Bgcc/
7955       # to it.  This is right: we don't want to search that directory
7956       # for binaries, but we want the header files in there, so add
7957       # them explicitly.
7958       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
7959
7960       # Someone might think of using the pre-installed headers on
7961       # Canadian crosses, in case the installed compiler is not fully
7962       # compatible with the compiler being built.  In this case, it
7963       # would be better to flag an error than risking having
7964       # incompatible object files being constructed.  We can't
7965       # guarantee that an error will be flagged, but let's hope the
7966       # compiler will do it, when presented with incompatible header
7967       # files.
7968     fi
7969   fi
7970
7971   case "${target}-${is_cross_compiler}" in
7972   i[3456789]86-*-linux*-no)
7973      # Here host == target, so we don't need to build gcc,
7974      # so we don't want to discard standard headers.
7975      FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7976      ;;
7977   *)
7978      # If we're building newlib, use its generic headers last, but search
7979      # for any libc-related directories first (so make it the last -B
7980      # switch).
7981      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7982
7983      # If we're building libgloss, find the startup file, simulator library
7984      # and linker script.
7985      case " $target_configdirs " in
7986	*" libgloss "*)
7987	# Look for startup file, simulator library and maybe linker script.
7988	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7989	# Look for libnosys.a in case the target needs it.
7990	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7991	# Most targets have the linker script in the source directory.
7992	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7993	;;
7994      esac
7995      ;;
7996   esac
7997   ;;
7998  esac
7999  ;;
8000esac
8001
8002case "$target" in
8003  x86_64-*mingw* | *-w64-mingw*)
8004  # MinGW-w64 does not use newlib, nor does it use winsup. It may,
8005  # however, use a symlink named 'mingw' in ${prefix} .
8006    FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
8007    ;;
8008  *-mingw*)
8009  # MinGW can't be handled as Cygwin above since it does not use newlib.
8010    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'
8011    ;;
8012esac
8013
8014# Allow the user to override the flags for
8015# our build compiler if desired.
8016if test x"${build}" = x"${host}" ; then
8017  CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
8018  CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8019  LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8020fi
8021
8022# On Canadian crosses, we'll be searching the right directories for
8023# the previously-installed cross compiler, so don't bother to add
8024# flags for directories within the install tree of the compiler
8025# being built; programs in there won't even run.
8026if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8027  # Search for pre-installed headers if nothing else fits.
8028  FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
8029fi
8030
8031if test "x${use_gnu_ld}" = x &&
8032   echo " ${configdirs} " | grep " ld " > /dev/null ; then
8033  # Arrange for us to find uninstalled linker scripts.
8034  FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
8035fi
8036
8037# Search for other target-specific linker scripts and such.
8038case "${target}" in
8039  mep*)
8040    FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8041    ;;
8042esac
8043
8044# Makefile fragments.
8045for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8046do
8047  eval fragval=\$$frag
8048  if test $fragval != /dev/null; then
8049    eval $frag=${srcdir}/$fragval
8050  fi
8051done
8052
8053
8054
8055
8056
8057# Miscellanea: directories, flags, etc.
8058
8059
8060
8061
8062
8063
8064
8065
8066# Build module lists & subconfigure args.
8067
8068
8069
8070# Host module lists & subconfigure args.
8071
8072
8073
8074
8075# Target module lists & subconfigure args.
8076
8077
8078
8079# Build tools.
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097# Generate default definitions for YACC, M4, LEX and other programs that run
8098# on the build machine.  These are used if the Makefile can't locate these
8099# programs in objdir.
8100MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8101
8102for ac_prog in 'bison -y' byacc yacc
8103do
8104  # Extract the first word of "$ac_prog", so it can be a program name with args.
8105set dummy $ac_prog; ac_word=$2
8106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107$as_echo_n "checking for $ac_word... " >&6; }
8108if test "${ac_cv_prog_YACC+set}" = set; then :
8109  $as_echo_n "(cached) " >&6
8110else
8111  if test -n "$YACC"; then
8112  ac_cv_prog_YACC="$YACC" # Let the user override the test.
8113else
8114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115for as_dir in $PATH
8116do
8117  IFS=$as_save_IFS
8118  test -z "$as_dir" && as_dir=.
8119    for ac_exec_ext in '' $ac_executable_extensions; do
8120  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8121    ac_cv_prog_YACC="$ac_prog"
8122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8123    break 2
8124  fi
8125done
8126  done
8127IFS=$as_save_IFS
8128
8129fi
8130fi
8131YACC=$ac_cv_prog_YACC
8132if test -n "$YACC"; then
8133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8134$as_echo "$YACC" >&6; }
8135else
8136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137$as_echo "no" >&6; }
8138fi
8139
8140
8141  test -n "$YACC" && break
8142done
8143test -n "$YACC" || YACC="$MISSING bison -y"
8144
8145case " $build_configdirs " in
8146  *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8147  *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
8148esac
8149
8150for ac_prog in bison
8151do
8152  # Extract the first word of "$ac_prog", so it can be a program name with args.
8153set dummy $ac_prog; ac_word=$2
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155$as_echo_n "checking for $ac_word... " >&6; }
8156if test "${ac_cv_prog_BISON+set}" = set; then :
8157  $as_echo_n "(cached) " >&6
8158else
8159  if test -n "$BISON"; then
8160  ac_cv_prog_BISON="$BISON" # Let the user override the test.
8161else
8162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163for as_dir in $PATH
8164do
8165  IFS=$as_save_IFS
8166  test -z "$as_dir" && as_dir=.
8167    for ac_exec_ext in '' $ac_executable_extensions; do
8168  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8169    ac_cv_prog_BISON="$ac_prog"
8170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8171    break 2
8172  fi
8173done
8174  done
8175IFS=$as_save_IFS
8176
8177fi
8178fi
8179BISON=$ac_cv_prog_BISON
8180if test -n "$BISON"; then
8181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8182$as_echo "$BISON" >&6; }
8183else
8184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185$as_echo "no" >&6; }
8186fi
8187
8188
8189  test -n "$BISON" && break
8190done
8191test -n "$BISON" || BISON="$MISSING bison"
8192
8193case " $build_configdirs " in
8194  *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8195esac
8196
8197for ac_prog in gm4 gnum4 m4
8198do
8199  # Extract the first word of "$ac_prog", so it can be a program name with args.
8200set dummy $ac_prog; ac_word=$2
8201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202$as_echo_n "checking for $ac_word... " >&6; }
8203if test "${ac_cv_prog_M4+set}" = set; then :
8204  $as_echo_n "(cached) " >&6
8205else
8206  if test -n "$M4"; then
8207  ac_cv_prog_M4="$M4" # Let the user override the test.
8208else
8209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210for as_dir in $PATH
8211do
8212  IFS=$as_save_IFS
8213  test -z "$as_dir" && as_dir=.
8214    for ac_exec_ext in '' $ac_executable_extensions; do
8215  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8216    ac_cv_prog_M4="$ac_prog"
8217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218    break 2
8219  fi
8220done
8221  done
8222IFS=$as_save_IFS
8223
8224fi
8225fi
8226M4=$ac_cv_prog_M4
8227if test -n "$M4"; then
8228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8229$as_echo "$M4" >&6; }
8230else
8231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232$as_echo "no" >&6; }
8233fi
8234
8235
8236  test -n "$M4" && break
8237done
8238test -n "$M4" || M4="$MISSING m4"
8239
8240case " $build_configdirs " in
8241  *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8242esac
8243
8244for ac_prog in flex lex
8245do
8246  # Extract the first word of "$ac_prog", so it can be a program name with args.
8247set dummy $ac_prog; ac_word=$2
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249$as_echo_n "checking for $ac_word... " >&6; }
8250if test "${ac_cv_prog_LEX+set}" = set; then :
8251  $as_echo_n "(cached) " >&6
8252else
8253  if test -n "$LEX"; then
8254  ac_cv_prog_LEX="$LEX" # Let the user override the test.
8255else
8256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257for as_dir in $PATH
8258do
8259  IFS=$as_save_IFS
8260  test -z "$as_dir" && as_dir=.
8261    for ac_exec_ext in '' $ac_executable_extensions; do
8262  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8263    ac_cv_prog_LEX="$ac_prog"
8264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265    break 2
8266  fi
8267done
8268  done
8269IFS=$as_save_IFS
8270
8271fi
8272fi
8273LEX=$ac_cv_prog_LEX
8274if test -n "$LEX"; then
8275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8276$as_echo "$LEX" >&6; }
8277else
8278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279$as_echo "no" >&6; }
8280fi
8281
8282
8283  test -n "$LEX" && break
8284done
8285test -n "$LEX" || LEX="$MISSING flex"
8286
8287case " $build_configdirs " in
8288  *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8289  *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8290esac
8291
8292for ac_prog in flex
8293do
8294  # Extract the first word of "$ac_prog", so it can be a program name with args.
8295set dummy $ac_prog; ac_word=$2
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297$as_echo_n "checking for $ac_word... " >&6; }
8298if test "${ac_cv_prog_FLEX+set}" = set; then :
8299  $as_echo_n "(cached) " >&6
8300else
8301  if test -n "$FLEX"; then
8302  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8303else
8304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305for as_dir in $PATH
8306do
8307  IFS=$as_save_IFS
8308  test -z "$as_dir" && as_dir=.
8309    for ac_exec_ext in '' $ac_executable_extensions; do
8310  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311    ac_cv_prog_FLEX="$ac_prog"
8312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313    break 2
8314  fi
8315done
8316  done
8317IFS=$as_save_IFS
8318
8319fi
8320fi
8321FLEX=$ac_cv_prog_FLEX
8322if test -n "$FLEX"; then
8323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8324$as_echo "$FLEX" >&6; }
8325else
8326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327$as_echo "no" >&6; }
8328fi
8329
8330
8331  test -n "$FLEX" && break
8332done
8333test -n "$FLEX" || FLEX="$MISSING flex"
8334
8335case " $build_configdirs " in
8336  *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8337esac
8338
8339for ac_prog in makeinfo
8340do
8341  # Extract the first word of "$ac_prog", so it can be a program name with args.
8342set dummy $ac_prog; ac_word=$2
8343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344$as_echo_n "checking for $ac_word... " >&6; }
8345if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8346  $as_echo_n "(cached) " >&6
8347else
8348  if test -n "$MAKEINFO"; then
8349  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8350else
8351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352for as_dir in $PATH
8353do
8354  IFS=$as_save_IFS
8355  test -z "$as_dir" && as_dir=.
8356    for ac_exec_ext in '' $ac_executable_extensions; do
8357  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8358    ac_cv_prog_MAKEINFO="$ac_prog"
8359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360    break 2
8361  fi
8362done
8363  done
8364IFS=$as_save_IFS
8365
8366fi
8367fi
8368MAKEINFO=$ac_cv_prog_MAKEINFO
8369if test -n "$MAKEINFO"; then
8370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8371$as_echo "$MAKEINFO" >&6; }
8372else
8373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374$as_echo "no" >&6; }
8375fi
8376
8377
8378  test -n "$MAKEINFO" && break
8379done
8380test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8381
8382case " $build_configdirs " in
8383  *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8384  *)
8385
8386    # For an installed makeinfo, we require it to be from texinfo 4.7 or
8387    # higher, else we use the "missing" dummy.
8388    if ${MAKEINFO} --version \
8389       | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8390      :
8391    else
8392      MAKEINFO="$MISSING makeinfo"
8393    fi
8394    ;;
8395
8396esac
8397
8398# FIXME: expect and dejagnu may become build tools?
8399
8400for ac_prog in expect
8401do
8402  # Extract the first word of "$ac_prog", so it can be a program name with args.
8403set dummy $ac_prog; ac_word=$2
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405$as_echo_n "checking for $ac_word... " >&6; }
8406if test "${ac_cv_prog_EXPECT+set}" = set; then :
8407  $as_echo_n "(cached) " >&6
8408else
8409  if test -n "$EXPECT"; then
8410  ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8411else
8412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413for as_dir in $PATH
8414do
8415  IFS=$as_save_IFS
8416  test -z "$as_dir" && as_dir=.
8417    for ac_exec_ext in '' $ac_executable_extensions; do
8418  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8419    ac_cv_prog_EXPECT="$ac_prog"
8420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8421    break 2
8422  fi
8423done
8424  done
8425IFS=$as_save_IFS
8426
8427fi
8428fi
8429EXPECT=$ac_cv_prog_EXPECT
8430if test -n "$EXPECT"; then
8431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8432$as_echo "$EXPECT" >&6; }
8433else
8434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435$as_echo "no" >&6; }
8436fi
8437
8438
8439  test -n "$EXPECT" && break
8440done
8441test -n "$EXPECT" || EXPECT="expect"
8442
8443case " $configdirs " in
8444  *" expect "*)
8445    test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8446    ;;
8447esac
8448
8449for ac_prog in runtest
8450do
8451  # Extract the first word of "$ac_prog", so it can be a program name with args.
8452set dummy $ac_prog; ac_word=$2
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454$as_echo_n "checking for $ac_word... " >&6; }
8455if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8456  $as_echo_n "(cached) " >&6
8457else
8458  if test -n "$RUNTEST"; then
8459  ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8460else
8461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462for as_dir in $PATH
8463do
8464  IFS=$as_save_IFS
8465  test -z "$as_dir" && as_dir=.
8466    for ac_exec_ext in '' $ac_executable_extensions; do
8467  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8468    ac_cv_prog_RUNTEST="$ac_prog"
8469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470    break 2
8471  fi
8472done
8473  done
8474IFS=$as_save_IFS
8475
8476fi
8477fi
8478RUNTEST=$ac_cv_prog_RUNTEST
8479if test -n "$RUNTEST"; then
8480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8481$as_echo "$RUNTEST" >&6; }
8482else
8483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484$as_echo "no" >&6; }
8485fi
8486
8487
8488  test -n "$RUNTEST" && break
8489done
8490test -n "$RUNTEST" || RUNTEST="runtest"
8491
8492case " $configdirs " in
8493  *" dejagnu "*)
8494    test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8495    ;;
8496esac
8497
8498
8499# Host tools.
8500ncn_tool_prefix=
8501test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8502ncn_target_tool_prefix=
8503test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8504
8505
8506
8507if test -n "$AR"; then
8508  ac_cv_prog_AR=$AR
8509elif test -n "$ac_cv_prog_AR"; then
8510  AR=$ac_cv_prog_AR
8511fi
8512
8513if test -n "$ac_cv_prog_AR"; then
8514  for ncn_progname in ar; do
8515    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8516set dummy ${ncn_progname}; ac_word=$2
8517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518$as_echo_n "checking for $ac_word... " >&6; }
8519if test "${ac_cv_prog_AR+set}" = set; then :
8520  $as_echo_n "(cached) " >&6
8521else
8522  if test -n "$AR"; then
8523  ac_cv_prog_AR="$AR" # Let the user override the test.
8524else
8525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526for as_dir in $PATH
8527do
8528  IFS=$as_save_IFS
8529  test -z "$as_dir" && as_dir=.
8530    for ac_exec_ext in '' $ac_executable_extensions; do
8531  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8532    ac_cv_prog_AR="${ncn_progname}"
8533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534    break 2
8535  fi
8536done
8537  done
8538IFS=$as_save_IFS
8539
8540fi
8541fi
8542AR=$ac_cv_prog_AR
8543if test -n "$AR"; then
8544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8545$as_echo "$AR" >&6; }
8546else
8547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548$as_echo "no" >&6; }
8549fi
8550
8551
8552  done
8553fi
8554
8555for ncn_progname in ar; do
8556  if test -n "$ncn_tool_prefix"; then
8557    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8558set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560$as_echo_n "checking for $ac_word... " >&6; }
8561if test "${ac_cv_prog_AR+set}" = set; then :
8562  $as_echo_n "(cached) " >&6
8563else
8564  if test -n "$AR"; then
8565  ac_cv_prog_AR="$AR" # Let the user override the test.
8566else
8567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568for as_dir in $PATH
8569do
8570  IFS=$as_save_IFS
8571  test -z "$as_dir" && as_dir=.
8572    for ac_exec_ext in '' $ac_executable_extensions; do
8573  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8574    ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576    break 2
8577  fi
8578done
8579  done
8580IFS=$as_save_IFS
8581
8582fi
8583fi
8584AR=$ac_cv_prog_AR
8585if test -n "$AR"; then
8586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8587$as_echo "$AR" >&6; }
8588else
8589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590$as_echo "no" >&6; }
8591fi
8592
8593
8594  fi
8595  if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8596    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8597set dummy ${ncn_progname}; ac_word=$2
8598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599$as_echo_n "checking for $ac_word... " >&6; }
8600if test "${ac_cv_prog_AR+set}" = set; then :
8601  $as_echo_n "(cached) " >&6
8602else
8603  if test -n "$AR"; then
8604  ac_cv_prog_AR="$AR" # Let the user override the test.
8605else
8606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607for as_dir in $PATH
8608do
8609  IFS=$as_save_IFS
8610  test -z "$as_dir" && as_dir=.
8611    for ac_exec_ext in '' $ac_executable_extensions; do
8612  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8613    ac_cv_prog_AR="${ncn_progname}"
8614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615    break 2
8616  fi
8617done
8618  done
8619IFS=$as_save_IFS
8620
8621fi
8622fi
8623AR=$ac_cv_prog_AR
8624if test -n "$AR"; then
8625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8626$as_echo "$AR" >&6; }
8627else
8628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629$as_echo "no" >&6; }
8630fi
8631
8632
8633  fi
8634  test -n "$ac_cv_prog_AR" && break
8635done
8636
8637if test -z "$ac_cv_prog_AR" ; then
8638  set dummy ar
8639  if test $build = $host ; then
8640    AR="$2"
8641  else
8642    AR="${ncn_tool_prefix}$2"
8643  fi
8644fi
8645
8646
8647
8648if test -n "$AS"; then
8649  ac_cv_prog_AS=$AS
8650elif test -n "$ac_cv_prog_AS"; then
8651  AS=$ac_cv_prog_AS
8652fi
8653
8654if test -n "$ac_cv_prog_AS"; then
8655  for ncn_progname in as; do
8656    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8657set dummy ${ncn_progname}; ac_word=$2
8658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8659$as_echo_n "checking for $ac_word... " >&6; }
8660if test "${ac_cv_prog_AS+set}" = set; then :
8661  $as_echo_n "(cached) " >&6
8662else
8663  if test -n "$AS"; then
8664  ac_cv_prog_AS="$AS" # Let the user override the test.
8665else
8666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8667for as_dir in $PATH
8668do
8669  IFS=$as_save_IFS
8670  test -z "$as_dir" && as_dir=.
8671    for ac_exec_ext in '' $ac_executable_extensions; do
8672  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8673    ac_cv_prog_AS="${ncn_progname}"
8674    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8675    break 2
8676  fi
8677done
8678  done
8679IFS=$as_save_IFS
8680
8681fi
8682fi
8683AS=$ac_cv_prog_AS
8684if test -n "$AS"; then
8685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8686$as_echo "$AS" >&6; }
8687else
8688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8689$as_echo "no" >&6; }
8690fi
8691
8692
8693  done
8694fi
8695
8696for ncn_progname in as; do
8697  if test -n "$ncn_tool_prefix"; then
8698    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8699set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701$as_echo_n "checking for $ac_word... " >&6; }
8702if test "${ac_cv_prog_AS+set}" = set; then :
8703  $as_echo_n "(cached) " >&6
8704else
8705  if test -n "$AS"; then
8706  ac_cv_prog_AS="$AS" # Let the user override the test.
8707else
8708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8709for as_dir in $PATH
8710do
8711  IFS=$as_save_IFS
8712  test -z "$as_dir" && as_dir=.
8713    for ac_exec_ext in '' $ac_executable_extensions; do
8714  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8715    ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8717    break 2
8718  fi
8719done
8720  done
8721IFS=$as_save_IFS
8722
8723fi
8724fi
8725AS=$ac_cv_prog_AS
8726if test -n "$AS"; then
8727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8728$as_echo "$AS" >&6; }
8729else
8730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731$as_echo "no" >&6; }
8732fi
8733
8734
8735  fi
8736  if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8737    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8738set dummy ${ncn_progname}; ac_word=$2
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740$as_echo_n "checking for $ac_word... " >&6; }
8741if test "${ac_cv_prog_AS+set}" = set; then :
8742  $as_echo_n "(cached) " >&6
8743else
8744  if test -n "$AS"; then
8745  ac_cv_prog_AS="$AS" # Let the user override the test.
8746else
8747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748for as_dir in $PATH
8749do
8750  IFS=$as_save_IFS
8751  test -z "$as_dir" && as_dir=.
8752    for ac_exec_ext in '' $ac_executable_extensions; do
8753  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8754    ac_cv_prog_AS="${ncn_progname}"
8755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756    break 2
8757  fi
8758done
8759  done
8760IFS=$as_save_IFS
8761
8762fi
8763fi
8764AS=$ac_cv_prog_AS
8765if test -n "$AS"; then
8766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8767$as_echo "$AS" >&6; }
8768else
8769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770$as_echo "no" >&6; }
8771fi
8772
8773
8774  fi
8775  test -n "$ac_cv_prog_AS" && break
8776done
8777
8778if test -z "$ac_cv_prog_AS" ; then
8779  set dummy as
8780  if test $build = $host ; then
8781    AS="$2"
8782  else
8783    AS="${ncn_tool_prefix}$2"
8784  fi
8785fi
8786
8787
8788
8789if test -n "$DLLTOOL"; then
8790  ac_cv_prog_DLLTOOL=$DLLTOOL
8791elif test -n "$ac_cv_prog_DLLTOOL"; then
8792  DLLTOOL=$ac_cv_prog_DLLTOOL
8793fi
8794
8795if test -n "$ac_cv_prog_DLLTOOL"; then
8796  for ncn_progname in dlltool; do
8797    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8798set dummy ${ncn_progname}; ac_word=$2
8799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8800$as_echo_n "checking for $ac_word... " >&6; }
8801if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8802  $as_echo_n "(cached) " >&6
8803else
8804  if test -n "$DLLTOOL"; then
8805  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8806else
8807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808for as_dir in $PATH
8809do
8810  IFS=$as_save_IFS
8811  test -z "$as_dir" && as_dir=.
8812    for ac_exec_ext in '' $ac_executable_extensions; do
8813  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8814    ac_cv_prog_DLLTOOL="${ncn_progname}"
8815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8816    break 2
8817  fi
8818done
8819  done
8820IFS=$as_save_IFS
8821
8822fi
8823fi
8824DLLTOOL=$ac_cv_prog_DLLTOOL
8825if test -n "$DLLTOOL"; then
8826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8827$as_echo "$DLLTOOL" >&6; }
8828else
8829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830$as_echo "no" >&6; }
8831fi
8832
8833
8834  done
8835fi
8836
8837for ncn_progname in dlltool; do
8838  if test -n "$ncn_tool_prefix"; then
8839    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8840set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8842$as_echo_n "checking for $ac_word... " >&6; }
8843if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8844  $as_echo_n "(cached) " >&6
8845else
8846  if test -n "$DLLTOOL"; then
8847  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8848else
8849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850for as_dir in $PATH
8851do
8852  IFS=$as_save_IFS
8853  test -z "$as_dir" && as_dir=.
8854    for ac_exec_ext in '' $ac_executable_extensions; do
8855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8856    ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8858    break 2
8859  fi
8860done
8861  done
8862IFS=$as_save_IFS
8863
8864fi
8865fi
8866DLLTOOL=$ac_cv_prog_DLLTOOL
8867if test -n "$DLLTOOL"; then
8868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8869$as_echo "$DLLTOOL" >&6; }
8870else
8871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872$as_echo "no" >&6; }
8873fi
8874
8875
8876  fi
8877  if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8878    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8879set dummy ${ncn_progname}; ac_word=$2
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881$as_echo_n "checking for $ac_word... " >&6; }
8882if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8883  $as_echo_n "(cached) " >&6
8884else
8885  if test -n "$DLLTOOL"; then
8886  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8887else
8888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889for as_dir in $PATH
8890do
8891  IFS=$as_save_IFS
8892  test -z "$as_dir" && as_dir=.
8893    for ac_exec_ext in '' $ac_executable_extensions; do
8894  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8895    ac_cv_prog_DLLTOOL="${ncn_progname}"
8896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8897    break 2
8898  fi
8899done
8900  done
8901IFS=$as_save_IFS
8902
8903fi
8904fi
8905DLLTOOL=$ac_cv_prog_DLLTOOL
8906if test -n "$DLLTOOL"; then
8907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8908$as_echo "$DLLTOOL" >&6; }
8909else
8910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911$as_echo "no" >&6; }
8912fi
8913
8914
8915  fi
8916  test -n "$ac_cv_prog_DLLTOOL" && break
8917done
8918
8919if test -z "$ac_cv_prog_DLLTOOL" ; then
8920  set dummy dlltool
8921  if test $build = $host ; then
8922    DLLTOOL="$2"
8923  else
8924    DLLTOOL="${ncn_tool_prefix}$2"
8925  fi
8926fi
8927
8928
8929
8930if test -n "$LD"; then
8931  ac_cv_prog_LD=$LD
8932elif test -n "$ac_cv_prog_LD"; then
8933  LD=$ac_cv_prog_LD
8934fi
8935
8936if test -n "$ac_cv_prog_LD"; then
8937  for ncn_progname in ld; do
8938    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8939set dummy ${ncn_progname}; ac_word=$2
8940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941$as_echo_n "checking for $ac_word... " >&6; }
8942if test "${ac_cv_prog_LD+set}" = set; then :
8943  $as_echo_n "(cached) " >&6
8944else
8945  if test -n "$LD"; then
8946  ac_cv_prog_LD="$LD" # Let the user override the test.
8947else
8948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949for as_dir in $PATH
8950do
8951  IFS=$as_save_IFS
8952  test -z "$as_dir" && as_dir=.
8953    for ac_exec_ext in '' $ac_executable_extensions; do
8954  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8955    ac_cv_prog_LD="${ncn_progname}"
8956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8957    break 2
8958  fi
8959done
8960  done
8961IFS=$as_save_IFS
8962
8963fi
8964fi
8965LD=$ac_cv_prog_LD
8966if test -n "$LD"; then
8967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8968$as_echo "$LD" >&6; }
8969else
8970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971$as_echo "no" >&6; }
8972fi
8973
8974
8975  done
8976fi
8977
8978for ncn_progname in ld; do
8979  if test -n "$ncn_tool_prefix"; then
8980    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8981set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8983$as_echo_n "checking for $ac_word... " >&6; }
8984if test "${ac_cv_prog_LD+set}" = set; then :
8985  $as_echo_n "(cached) " >&6
8986else
8987  if test -n "$LD"; then
8988  ac_cv_prog_LD="$LD" # Let the user override the test.
8989else
8990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8991for as_dir in $PATH
8992do
8993  IFS=$as_save_IFS
8994  test -z "$as_dir" && as_dir=.
8995    for ac_exec_ext in '' $ac_executable_extensions; do
8996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8997    ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8999    break 2
9000  fi
9001done
9002  done
9003IFS=$as_save_IFS
9004
9005fi
9006fi
9007LD=$ac_cv_prog_LD
9008if test -n "$LD"; then
9009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9010$as_echo "$LD" >&6; }
9011else
9012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9013$as_echo "no" >&6; }
9014fi
9015
9016
9017  fi
9018  if test -z "$ac_cv_prog_LD" && test $build = $host ; then
9019    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9020set dummy ${ncn_progname}; ac_word=$2
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022$as_echo_n "checking for $ac_word... " >&6; }
9023if test "${ac_cv_prog_LD+set}" = set; then :
9024  $as_echo_n "(cached) " >&6
9025else
9026  if test -n "$LD"; then
9027  ac_cv_prog_LD="$LD" # Let the user override the test.
9028else
9029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030for as_dir in $PATH
9031do
9032  IFS=$as_save_IFS
9033  test -z "$as_dir" && as_dir=.
9034    for ac_exec_ext in '' $ac_executable_extensions; do
9035  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9036    ac_cv_prog_LD="${ncn_progname}"
9037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9038    break 2
9039  fi
9040done
9041  done
9042IFS=$as_save_IFS
9043
9044fi
9045fi
9046LD=$ac_cv_prog_LD
9047if test -n "$LD"; then
9048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9049$as_echo "$LD" >&6; }
9050else
9051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052$as_echo "no" >&6; }
9053fi
9054
9055
9056  fi
9057  test -n "$ac_cv_prog_LD" && break
9058done
9059
9060if test -z "$ac_cv_prog_LD" ; then
9061  set dummy ld
9062  if test $build = $host ; then
9063    LD="$2"
9064  else
9065    LD="${ncn_tool_prefix}$2"
9066  fi
9067fi
9068
9069
9070
9071if test -n "$LIPO"; then
9072  ac_cv_prog_LIPO=$LIPO
9073elif test -n "$ac_cv_prog_LIPO"; then
9074  LIPO=$ac_cv_prog_LIPO
9075fi
9076
9077if test -n "$ac_cv_prog_LIPO"; then
9078  for ncn_progname in lipo; do
9079    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9080set dummy ${ncn_progname}; ac_word=$2
9081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9082$as_echo_n "checking for $ac_word... " >&6; }
9083if test "${ac_cv_prog_LIPO+set}" = set; then :
9084  $as_echo_n "(cached) " >&6
9085else
9086  if test -n "$LIPO"; then
9087  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9088else
9089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090for as_dir in $PATH
9091do
9092  IFS=$as_save_IFS
9093  test -z "$as_dir" && as_dir=.
9094    for ac_exec_ext in '' $ac_executable_extensions; do
9095  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9096    ac_cv_prog_LIPO="${ncn_progname}"
9097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9098    break 2
9099  fi
9100done
9101  done
9102IFS=$as_save_IFS
9103
9104fi
9105fi
9106LIPO=$ac_cv_prog_LIPO
9107if test -n "$LIPO"; then
9108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9109$as_echo "$LIPO" >&6; }
9110else
9111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112$as_echo "no" >&6; }
9113fi
9114
9115
9116  done
9117fi
9118
9119for ncn_progname in lipo; do
9120  if test -n "$ncn_tool_prefix"; then
9121    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9122set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9124$as_echo_n "checking for $ac_word... " >&6; }
9125if test "${ac_cv_prog_LIPO+set}" = set; then :
9126  $as_echo_n "(cached) " >&6
9127else
9128  if test -n "$LIPO"; then
9129  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9130else
9131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132for as_dir in $PATH
9133do
9134  IFS=$as_save_IFS
9135  test -z "$as_dir" && as_dir=.
9136    for ac_exec_ext in '' $ac_executable_extensions; do
9137  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9138    ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
9139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9140    break 2
9141  fi
9142done
9143  done
9144IFS=$as_save_IFS
9145
9146fi
9147fi
9148LIPO=$ac_cv_prog_LIPO
9149if test -n "$LIPO"; then
9150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9151$as_echo "$LIPO" >&6; }
9152else
9153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154$as_echo "no" >&6; }
9155fi
9156
9157
9158  fi
9159  if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9160    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9161set dummy ${ncn_progname}; ac_word=$2
9162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163$as_echo_n "checking for $ac_word... " >&6; }
9164if test "${ac_cv_prog_LIPO+set}" = set; then :
9165  $as_echo_n "(cached) " >&6
9166else
9167  if test -n "$LIPO"; then
9168  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9169else
9170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171for as_dir in $PATH
9172do
9173  IFS=$as_save_IFS
9174  test -z "$as_dir" && as_dir=.
9175    for ac_exec_ext in '' $ac_executable_extensions; do
9176  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9177    ac_cv_prog_LIPO="${ncn_progname}"
9178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9179    break 2
9180  fi
9181done
9182  done
9183IFS=$as_save_IFS
9184
9185fi
9186fi
9187LIPO=$ac_cv_prog_LIPO
9188if test -n "$LIPO"; then
9189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9190$as_echo "$LIPO" >&6; }
9191else
9192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193$as_echo "no" >&6; }
9194fi
9195
9196
9197  fi
9198  test -n "$ac_cv_prog_LIPO" && break
9199done
9200
9201if test -z "$ac_cv_prog_LIPO" ; then
9202  set dummy lipo
9203  if test $build = $host ; then
9204    LIPO="$2"
9205  else
9206    LIPO="${ncn_tool_prefix}$2"
9207  fi
9208fi
9209
9210
9211
9212if test -n "$NM"; then
9213  ac_cv_prog_NM=$NM
9214elif test -n "$ac_cv_prog_NM"; then
9215  NM=$ac_cv_prog_NM
9216fi
9217
9218if test -n "$ac_cv_prog_NM"; then
9219  for ncn_progname in nm; do
9220    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9221set dummy ${ncn_progname}; ac_word=$2
9222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9223$as_echo_n "checking for $ac_word... " >&6; }
9224if test "${ac_cv_prog_NM+set}" = set; then :
9225  $as_echo_n "(cached) " >&6
9226else
9227  if test -n "$NM"; then
9228  ac_cv_prog_NM="$NM" # Let the user override the test.
9229else
9230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231for as_dir in $PATH
9232do
9233  IFS=$as_save_IFS
9234  test -z "$as_dir" && as_dir=.
9235    for ac_exec_ext in '' $ac_executable_extensions; do
9236  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9237    ac_cv_prog_NM="${ncn_progname}"
9238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9239    break 2
9240  fi
9241done
9242  done
9243IFS=$as_save_IFS
9244
9245fi
9246fi
9247NM=$ac_cv_prog_NM
9248if test -n "$NM"; then
9249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9250$as_echo "$NM" >&6; }
9251else
9252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253$as_echo "no" >&6; }
9254fi
9255
9256
9257  done
9258fi
9259
9260for ncn_progname in nm; do
9261  if test -n "$ncn_tool_prefix"; then
9262    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9263set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9265$as_echo_n "checking for $ac_word... " >&6; }
9266if test "${ac_cv_prog_NM+set}" = set; then :
9267  $as_echo_n "(cached) " >&6
9268else
9269  if test -n "$NM"; then
9270  ac_cv_prog_NM="$NM" # Let the user override the test.
9271else
9272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9273for as_dir in $PATH
9274do
9275  IFS=$as_save_IFS
9276  test -z "$as_dir" && as_dir=.
9277    for ac_exec_ext in '' $ac_executable_extensions; do
9278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9279    ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9281    break 2
9282  fi
9283done
9284  done
9285IFS=$as_save_IFS
9286
9287fi
9288fi
9289NM=$ac_cv_prog_NM
9290if test -n "$NM"; then
9291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9292$as_echo "$NM" >&6; }
9293else
9294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295$as_echo "no" >&6; }
9296fi
9297
9298
9299  fi
9300  if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9301    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9302set dummy ${ncn_progname}; ac_word=$2
9303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304$as_echo_n "checking for $ac_word... " >&6; }
9305if test "${ac_cv_prog_NM+set}" = set; then :
9306  $as_echo_n "(cached) " >&6
9307else
9308  if test -n "$NM"; then
9309  ac_cv_prog_NM="$NM" # Let the user override the test.
9310else
9311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312for as_dir in $PATH
9313do
9314  IFS=$as_save_IFS
9315  test -z "$as_dir" && as_dir=.
9316    for ac_exec_ext in '' $ac_executable_extensions; do
9317  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9318    ac_cv_prog_NM="${ncn_progname}"
9319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9320    break 2
9321  fi
9322done
9323  done
9324IFS=$as_save_IFS
9325
9326fi
9327fi
9328NM=$ac_cv_prog_NM
9329if test -n "$NM"; then
9330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9331$as_echo "$NM" >&6; }
9332else
9333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334$as_echo "no" >&6; }
9335fi
9336
9337
9338  fi
9339  test -n "$ac_cv_prog_NM" && break
9340done
9341
9342if test -z "$ac_cv_prog_NM" ; then
9343  set dummy nm
9344  if test $build = $host ; then
9345    NM="$2"
9346  else
9347    NM="${ncn_tool_prefix}$2"
9348  fi
9349fi
9350
9351
9352
9353if test -n "$RANLIB"; then
9354  ac_cv_prog_RANLIB=$RANLIB
9355elif test -n "$ac_cv_prog_RANLIB"; then
9356  RANLIB=$ac_cv_prog_RANLIB
9357fi
9358
9359if test -n "$ac_cv_prog_RANLIB"; then
9360  for ncn_progname in ranlib; do
9361    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9362set dummy ${ncn_progname}; ac_word=$2
9363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9364$as_echo_n "checking for $ac_word... " >&6; }
9365if test "${ac_cv_prog_RANLIB+set}" = set; then :
9366  $as_echo_n "(cached) " >&6
9367else
9368  if test -n "$RANLIB"; then
9369  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9370else
9371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372for as_dir in $PATH
9373do
9374  IFS=$as_save_IFS
9375  test -z "$as_dir" && as_dir=.
9376    for ac_exec_ext in '' $ac_executable_extensions; do
9377  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9378    ac_cv_prog_RANLIB="${ncn_progname}"
9379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9380    break 2
9381  fi
9382done
9383  done
9384IFS=$as_save_IFS
9385
9386fi
9387fi
9388RANLIB=$ac_cv_prog_RANLIB
9389if test -n "$RANLIB"; then
9390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9391$as_echo "$RANLIB" >&6; }
9392else
9393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9394$as_echo "no" >&6; }
9395fi
9396
9397
9398  done
9399fi
9400
9401for ncn_progname in ranlib; do
9402  if test -n "$ncn_tool_prefix"; then
9403    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9404set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406$as_echo_n "checking for $ac_word... " >&6; }
9407if test "${ac_cv_prog_RANLIB+set}" = set; then :
9408  $as_echo_n "(cached) " >&6
9409else
9410  if test -n "$RANLIB"; then
9411  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9412else
9413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9414for as_dir in $PATH
9415do
9416  IFS=$as_save_IFS
9417  test -z "$as_dir" && as_dir=.
9418    for ac_exec_ext in '' $ac_executable_extensions; do
9419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9420    ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9422    break 2
9423  fi
9424done
9425  done
9426IFS=$as_save_IFS
9427
9428fi
9429fi
9430RANLIB=$ac_cv_prog_RANLIB
9431if test -n "$RANLIB"; then
9432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9433$as_echo "$RANLIB" >&6; }
9434else
9435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9436$as_echo "no" >&6; }
9437fi
9438
9439
9440  fi
9441  if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9442    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9443set dummy ${ncn_progname}; ac_word=$2
9444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9445$as_echo_n "checking for $ac_word... " >&6; }
9446if test "${ac_cv_prog_RANLIB+set}" = set; then :
9447  $as_echo_n "(cached) " >&6
9448else
9449  if test -n "$RANLIB"; then
9450  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9451else
9452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453for as_dir in $PATH
9454do
9455  IFS=$as_save_IFS
9456  test -z "$as_dir" && as_dir=.
9457    for ac_exec_ext in '' $ac_executable_extensions; do
9458  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9459    ac_cv_prog_RANLIB="${ncn_progname}"
9460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9461    break 2
9462  fi
9463done
9464  done
9465IFS=$as_save_IFS
9466
9467fi
9468fi
9469RANLIB=$ac_cv_prog_RANLIB
9470if test -n "$RANLIB"; then
9471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9472$as_echo "$RANLIB" >&6; }
9473else
9474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475$as_echo "no" >&6; }
9476fi
9477
9478
9479  fi
9480  test -n "$ac_cv_prog_RANLIB" && break
9481done
9482
9483if test -z "$ac_cv_prog_RANLIB" ; then
9484  RANLIB="true"
9485fi
9486
9487
9488
9489if test -n "$STRIP"; then
9490  ac_cv_prog_STRIP=$STRIP
9491elif test -n "$ac_cv_prog_STRIP"; then
9492  STRIP=$ac_cv_prog_STRIP
9493fi
9494
9495if test -n "$ac_cv_prog_STRIP"; then
9496  for ncn_progname in strip; do
9497    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9498set dummy ${ncn_progname}; ac_word=$2
9499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9500$as_echo_n "checking for $ac_word... " >&6; }
9501if test "${ac_cv_prog_STRIP+set}" = set; then :
9502  $as_echo_n "(cached) " >&6
9503else
9504  if test -n "$STRIP"; then
9505  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9506else
9507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508for as_dir in $PATH
9509do
9510  IFS=$as_save_IFS
9511  test -z "$as_dir" && as_dir=.
9512    for ac_exec_ext in '' $ac_executable_extensions; do
9513  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9514    ac_cv_prog_STRIP="${ncn_progname}"
9515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9516    break 2
9517  fi
9518done
9519  done
9520IFS=$as_save_IFS
9521
9522fi
9523fi
9524STRIP=$ac_cv_prog_STRIP
9525if test -n "$STRIP"; then
9526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9527$as_echo "$STRIP" >&6; }
9528else
9529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530$as_echo "no" >&6; }
9531fi
9532
9533
9534  done
9535fi
9536
9537for ncn_progname in strip; do
9538  if test -n "$ncn_tool_prefix"; then
9539    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9540set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9542$as_echo_n "checking for $ac_word... " >&6; }
9543if test "${ac_cv_prog_STRIP+set}" = set; then :
9544  $as_echo_n "(cached) " >&6
9545else
9546  if test -n "$STRIP"; then
9547  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9548else
9549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550for as_dir in $PATH
9551do
9552  IFS=$as_save_IFS
9553  test -z "$as_dir" && as_dir=.
9554    for ac_exec_ext in '' $ac_executable_extensions; do
9555  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9556    ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9557    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9558    break 2
9559  fi
9560done
9561  done
9562IFS=$as_save_IFS
9563
9564fi
9565fi
9566STRIP=$ac_cv_prog_STRIP
9567if test -n "$STRIP"; then
9568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9569$as_echo "$STRIP" >&6; }
9570else
9571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572$as_echo "no" >&6; }
9573fi
9574
9575
9576  fi
9577  if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9578    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9579set dummy ${ncn_progname}; ac_word=$2
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581$as_echo_n "checking for $ac_word... " >&6; }
9582if test "${ac_cv_prog_STRIP+set}" = set; then :
9583  $as_echo_n "(cached) " >&6
9584else
9585  if test -n "$STRIP"; then
9586  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9587else
9588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $PATH
9590do
9591  IFS=$as_save_IFS
9592  test -z "$as_dir" && as_dir=.
9593    for ac_exec_ext in '' $ac_executable_extensions; do
9594  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9595    ac_cv_prog_STRIP="${ncn_progname}"
9596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9597    break 2
9598  fi
9599done
9600  done
9601IFS=$as_save_IFS
9602
9603fi
9604fi
9605STRIP=$ac_cv_prog_STRIP
9606if test -n "$STRIP"; then
9607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9608$as_echo "$STRIP" >&6; }
9609else
9610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611$as_echo "no" >&6; }
9612fi
9613
9614
9615  fi
9616  test -n "$ac_cv_prog_STRIP" && break
9617done
9618
9619if test -z "$ac_cv_prog_STRIP" ; then
9620  STRIP="true"
9621fi
9622
9623
9624
9625if test -n "$WINDRES"; then
9626  ac_cv_prog_WINDRES=$WINDRES
9627elif test -n "$ac_cv_prog_WINDRES"; then
9628  WINDRES=$ac_cv_prog_WINDRES
9629fi
9630
9631if test -n "$ac_cv_prog_WINDRES"; then
9632  for ncn_progname in windres; do
9633    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9634set dummy ${ncn_progname}; ac_word=$2
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636$as_echo_n "checking for $ac_word... " >&6; }
9637if test "${ac_cv_prog_WINDRES+set}" = set; then :
9638  $as_echo_n "(cached) " >&6
9639else
9640  if test -n "$WINDRES"; then
9641  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9642else
9643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644for as_dir in $PATH
9645do
9646  IFS=$as_save_IFS
9647  test -z "$as_dir" && as_dir=.
9648    for ac_exec_ext in '' $ac_executable_extensions; do
9649  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9650    ac_cv_prog_WINDRES="${ncn_progname}"
9651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9652    break 2
9653  fi
9654done
9655  done
9656IFS=$as_save_IFS
9657
9658fi
9659fi
9660WINDRES=$ac_cv_prog_WINDRES
9661if test -n "$WINDRES"; then
9662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9663$as_echo "$WINDRES" >&6; }
9664else
9665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9666$as_echo "no" >&6; }
9667fi
9668
9669
9670  done
9671fi
9672
9673for ncn_progname in windres; do
9674  if test -n "$ncn_tool_prefix"; then
9675    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9676set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678$as_echo_n "checking for $ac_word... " >&6; }
9679if test "${ac_cv_prog_WINDRES+set}" = set; then :
9680  $as_echo_n "(cached) " >&6
9681else
9682  if test -n "$WINDRES"; then
9683  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9684else
9685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686for as_dir in $PATH
9687do
9688  IFS=$as_save_IFS
9689  test -z "$as_dir" && as_dir=.
9690    for ac_exec_ext in '' $ac_executable_extensions; do
9691  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9692    ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9694    break 2
9695  fi
9696done
9697  done
9698IFS=$as_save_IFS
9699
9700fi
9701fi
9702WINDRES=$ac_cv_prog_WINDRES
9703if test -n "$WINDRES"; then
9704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9705$as_echo "$WINDRES" >&6; }
9706else
9707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708$as_echo "no" >&6; }
9709fi
9710
9711
9712  fi
9713  if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9714    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9715set dummy ${ncn_progname}; ac_word=$2
9716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717$as_echo_n "checking for $ac_word... " >&6; }
9718if test "${ac_cv_prog_WINDRES+set}" = set; then :
9719  $as_echo_n "(cached) " >&6
9720else
9721  if test -n "$WINDRES"; then
9722  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9723else
9724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725for as_dir in $PATH
9726do
9727  IFS=$as_save_IFS
9728  test -z "$as_dir" && as_dir=.
9729    for ac_exec_ext in '' $ac_executable_extensions; do
9730  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9731    ac_cv_prog_WINDRES="${ncn_progname}"
9732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9733    break 2
9734  fi
9735done
9736  done
9737IFS=$as_save_IFS
9738
9739fi
9740fi
9741WINDRES=$ac_cv_prog_WINDRES
9742if test -n "$WINDRES"; then
9743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9744$as_echo "$WINDRES" >&6; }
9745else
9746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747$as_echo "no" >&6; }
9748fi
9749
9750
9751  fi
9752  test -n "$ac_cv_prog_WINDRES" && break
9753done
9754
9755if test -z "$ac_cv_prog_WINDRES" ; then
9756  set dummy windres
9757  if test $build = $host ; then
9758    WINDRES="$2"
9759  else
9760    WINDRES="${ncn_tool_prefix}$2"
9761  fi
9762fi
9763
9764
9765
9766if test -n "$WINDMC"; then
9767  ac_cv_prog_WINDMC=$WINDMC
9768elif test -n "$ac_cv_prog_WINDMC"; then
9769  WINDMC=$ac_cv_prog_WINDMC
9770fi
9771
9772if test -n "$ac_cv_prog_WINDMC"; then
9773  for ncn_progname in windmc; do
9774    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9775set dummy ${ncn_progname}; ac_word=$2
9776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9777$as_echo_n "checking for $ac_word... " >&6; }
9778if test "${ac_cv_prog_WINDMC+set}" = set; then :
9779  $as_echo_n "(cached) " >&6
9780else
9781  if test -n "$WINDMC"; then
9782  ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9783else
9784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785for as_dir in $PATH
9786do
9787  IFS=$as_save_IFS
9788  test -z "$as_dir" && as_dir=.
9789    for ac_exec_ext in '' $ac_executable_extensions; do
9790  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9791    ac_cv_prog_WINDMC="${ncn_progname}"
9792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9793    break 2
9794  fi
9795done
9796  done
9797IFS=$as_save_IFS
9798
9799fi
9800fi
9801WINDMC=$ac_cv_prog_WINDMC
9802if test -n "$WINDMC"; then
9803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9804$as_echo "$WINDMC" >&6; }
9805else
9806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807$as_echo "no" >&6; }
9808fi
9809
9810
9811  done
9812fi
9813
9814for ncn_progname in windmc; do
9815  if test -n "$ncn_tool_prefix"; then
9816    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9817set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9819$as_echo_n "checking for $ac_word... " >&6; }
9820if test "${ac_cv_prog_WINDMC+set}" = set; then :
9821  $as_echo_n "(cached) " >&6
9822else
9823  if test -n "$WINDMC"; then
9824  ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9825else
9826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827for as_dir in $PATH
9828do
9829  IFS=$as_save_IFS
9830  test -z "$as_dir" && as_dir=.
9831    for ac_exec_ext in '' $ac_executable_extensions; do
9832  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9833    ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9835    break 2
9836  fi
9837done
9838  done
9839IFS=$as_save_IFS
9840
9841fi
9842fi
9843WINDMC=$ac_cv_prog_WINDMC
9844if test -n "$WINDMC"; then
9845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9846$as_echo "$WINDMC" >&6; }
9847else
9848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9849$as_echo "no" >&6; }
9850fi
9851
9852
9853  fi
9854  if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9855    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9856set dummy ${ncn_progname}; ac_word=$2
9857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9858$as_echo_n "checking for $ac_word... " >&6; }
9859if test "${ac_cv_prog_WINDMC+set}" = set; then :
9860  $as_echo_n "(cached) " >&6
9861else
9862  if test -n "$WINDMC"; then
9863  ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9864else
9865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866for as_dir in $PATH
9867do
9868  IFS=$as_save_IFS
9869  test -z "$as_dir" && as_dir=.
9870    for ac_exec_ext in '' $ac_executable_extensions; do
9871  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9872    ac_cv_prog_WINDMC="${ncn_progname}"
9873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9874    break 2
9875  fi
9876done
9877  done
9878IFS=$as_save_IFS
9879
9880fi
9881fi
9882WINDMC=$ac_cv_prog_WINDMC
9883if test -n "$WINDMC"; then
9884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9885$as_echo "$WINDMC" >&6; }
9886else
9887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9888$as_echo "no" >&6; }
9889fi
9890
9891
9892  fi
9893  test -n "$ac_cv_prog_WINDMC" && break
9894done
9895
9896if test -z "$ac_cv_prog_WINDMC" ; then
9897  set dummy windmc
9898  if test $build = $host ; then
9899    WINDMC="$2"
9900  else
9901    WINDMC="${ncn_tool_prefix}$2"
9902  fi
9903fi
9904
9905
9906
9907if test -n "$OBJCOPY"; then
9908  ac_cv_prog_OBJCOPY=$OBJCOPY
9909elif test -n "$ac_cv_prog_OBJCOPY"; then
9910  OBJCOPY=$ac_cv_prog_OBJCOPY
9911fi
9912
9913if test -n "$ac_cv_prog_OBJCOPY"; then
9914  for ncn_progname in objcopy; do
9915    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9916set dummy ${ncn_progname}; ac_word=$2
9917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9918$as_echo_n "checking for $ac_word... " >&6; }
9919if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9920  $as_echo_n "(cached) " >&6
9921else
9922  if test -n "$OBJCOPY"; then
9923  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9924else
9925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9926for as_dir in $PATH
9927do
9928  IFS=$as_save_IFS
9929  test -z "$as_dir" && as_dir=.
9930    for ac_exec_ext in '' $ac_executable_extensions; do
9931  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9932    ac_cv_prog_OBJCOPY="${ncn_progname}"
9933    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9934    break 2
9935  fi
9936done
9937  done
9938IFS=$as_save_IFS
9939
9940fi
9941fi
9942OBJCOPY=$ac_cv_prog_OBJCOPY
9943if test -n "$OBJCOPY"; then
9944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9945$as_echo "$OBJCOPY" >&6; }
9946else
9947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948$as_echo "no" >&6; }
9949fi
9950
9951
9952  done
9953fi
9954
9955for ncn_progname in objcopy; do
9956  if test -n "$ncn_tool_prefix"; then
9957    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9958set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9960$as_echo_n "checking for $ac_word... " >&6; }
9961if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9962  $as_echo_n "(cached) " >&6
9963else
9964  if test -n "$OBJCOPY"; then
9965  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9966else
9967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968for as_dir in $PATH
9969do
9970  IFS=$as_save_IFS
9971  test -z "$as_dir" && as_dir=.
9972    for ac_exec_ext in '' $ac_executable_extensions; do
9973  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9974    ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9976    break 2
9977  fi
9978done
9979  done
9980IFS=$as_save_IFS
9981
9982fi
9983fi
9984OBJCOPY=$ac_cv_prog_OBJCOPY
9985if test -n "$OBJCOPY"; then
9986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9987$as_echo "$OBJCOPY" >&6; }
9988else
9989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9990$as_echo "no" >&6; }
9991fi
9992
9993
9994  fi
9995  if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9996    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9997set dummy ${ncn_progname}; ac_word=$2
9998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9999$as_echo_n "checking for $ac_word... " >&6; }
10000if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
10001  $as_echo_n "(cached) " >&6
10002else
10003  if test -n "$OBJCOPY"; then
10004  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
10005else
10006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007for as_dir in $PATH
10008do
10009  IFS=$as_save_IFS
10010  test -z "$as_dir" && as_dir=.
10011    for ac_exec_ext in '' $ac_executable_extensions; do
10012  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10013    ac_cv_prog_OBJCOPY="${ncn_progname}"
10014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10015    break 2
10016  fi
10017done
10018  done
10019IFS=$as_save_IFS
10020
10021fi
10022fi
10023OBJCOPY=$ac_cv_prog_OBJCOPY
10024if test -n "$OBJCOPY"; then
10025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10026$as_echo "$OBJCOPY" >&6; }
10027else
10028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029$as_echo "no" >&6; }
10030fi
10031
10032
10033  fi
10034  test -n "$ac_cv_prog_OBJCOPY" && break
10035done
10036
10037if test -z "$ac_cv_prog_OBJCOPY" ; then
10038  set dummy objcopy
10039  if test $build = $host ; then
10040    OBJCOPY="$2"
10041  else
10042    OBJCOPY="${ncn_tool_prefix}$2"
10043  fi
10044fi
10045
10046
10047
10048if test -n "$OBJDUMP"; then
10049  ac_cv_prog_OBJDUMP=$OBJDUMP
10050elif test -n "$ac_cv_prog_OBJDUMP"; then
10051  OBJDUMP=$ac_cv_prog_OBJDUMP
10052fi
10053
10054if test -n "$ac_cv_prog_OBJDUMP"; then
10055  for ncn_progname in objdump; do
10056    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10057set dummy ${ncn_progname}; ac_word=$2
10058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10059$as_echo_n "checking for $ac_word... " >&6; }
10060if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10061  $as_echo_n "(cached) " >&6
10062else
10063  if test -n "$OBJDUMP"; then
10064  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10065else
10066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10067for as_dir in $PATH
10068do
10069  IFS=$as_save_IFS
10070  test -z "$as_dir" && as_dir=.
10071    for ac_exec_ext in '' $ac_executable_extensions; do
10072  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10073    ac_cv_prog_OBJDUMP="${ncn_progname}"
10074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10075    break 2
10076  fi
10077done
10078  done
10079IFS=$as_save_IFS
10080
10081fi
10082fi
10083OBJDUMP=$ac_cv_prog_OBJDUMP
10084if test -n "$OBJDUMP"; then
10085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10086$as_echo "$OBJDUMP" >&6; }
10087else
10088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10089$as_echo "no" >&6; }
10090fi
10091
10092
10093  done
10094fi
10095
10096for ncn_progname in objdump; do
10097  if test -n "$ncn_tool_prefix"; then
10098    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10099set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10101$as_echo_n "checking for $ac_word... " >&6; }
10102if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10103  $as_echo_n "(cached) " >&6
10104else
10105  if test -n "$OBJDUMP"; then
10106  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10107else
10108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109for as_dir in $PATH
10110do
10111  IFS=$as_save_IFS
10112  test -z "$as_dir" && as_dir=.
10113    for ac_exec_ext in '' $ac_executable_extensions; do
10114  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10115    ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
10116    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10117    break 2
10118  fi
10119done
10120  done
10121IFS=$as_save_IFS
10122
10123fi
10124fi
10125OBJDUMP=$ac_cv_prog_OBJDUMP
10126if test -n "$OBJDUMP"; then
10127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10128$as_echo "$OBJDUMP" >&6; }
10129else
10130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131$as_echo "no" >&6; }
10132fi
10133
10134
10135  fi
10136  if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10137    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10138set dummy ${ncn_progname}; ac_word=$2
10139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10140$as_echo_n "checking for $ac_word... " >&6; }
10141if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10142  $as_echo_n "(cached) " >&6
10143else
10144  if test -n "$OBJDUMP"; then
10145  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10146else
10147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148for as_dir in $PATH
10149do
10150  IFS=$as_save_IFS
10151  test -z "$as_dir" && as_dir=.
10152    for ac_exec_ext in '' $ac_executable_extensions; do
10153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10154    ac_cv_prog_OBJDUMP="${ncn_progname}"
10155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10156    break 2
10157  fi
10158done
10159  done
10160IFS=$as_save_IFS
10161
10162fi
10163fi
10164OBJDUMP=$ac_cv_prog_OBJDUMP
10165if test -n "$OBJDUMP"; then
10166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10167$as_echo "$OBJDUMP" >&6; }
10168else
10169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170$as_echo "no" >&6; }
10171fi
10172
10173
10174  fi
10175  test -n "$ac_cv_prog_OBJDUMP" && break
10176done
10177
10178if test -z "$ac_cv_prog_OBJDUMP" ; then
10179  set dummy objdump
10180  if test $build = $host ; then
10181    OBJDUMP="$2"
10182  else
10183    OBJDUMP="${ncn_tool_prefix}$2"
10184  fi
10185fi
10186
10187
10188
10189
10190
10191
10192# Target tools.
10193
10194# Check whether --with-build-time-tools was given.
10195if test "${with_build_time_tools+set}" = set; then :
10196  withval=$with_build_time_tools; case x"$withval" in
10197     x/*) ;;
10198     *)
10199       with_build_time_tools=
10200       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10201$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10202       ;;
10203   esac
10204else
10205  with_build_time_tools=
10206fi
10207
10208
10209
10210
10211if test -n "$CC_FOR_TARGET"; then
10212  ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10213elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10214  CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10215fi
10216
10217if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10218  for ncn_progname in cc 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_CC_FOR_TARGET+set}" = set; then :
10224  $as_echo_n "(cached) " >&6
10225else
10226  if test -n "$CC_FOR_TARGET"; then
10227  ac_cv_prog_CC_FOR_TARGET="$CC_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_CC_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
10246CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10247if test -n "$CC_FOR_TARGET"; then
10248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10249$as_echo "$CC_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_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10260  for ncn_progname in cc 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_CC_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_CC_FOR_TARGET"; then
10276  for ncn_progname in cc 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_CC_FOR_TARGET+set}" = set; then :
10283  $as_echo_n "(cached) " >&6
10284else
10285  if test -n "$CC_FOR_TARGET"; then
10286  ac_cv_prog_CC_FOR_TARGET="$CC_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_CC_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
10305CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10306if test -n "$CC_FOR_TARGET"; then
10307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10308$as_echo "$CC_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_CC_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_CC_FOR_TARGET+set}" = set; then :
10322  $as_echo_n "(cached) " >&6
10323else
10324  if test -n "$CC_FOR_TARGET"; then
10325  ac_cv_prog_CC_FOR_TARGET="$CC_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_CC_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
10344CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10345if test -n "$CC_FOR_TARGET"; then
10346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10347$as_echo "$CC_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_CC_FOR_TARGET" && break
10356  done
10357fi
10358
10359if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10360  set dummy cc gcc
10361  if test $build = $target ; then
10362    CC_FOR_TARGET="$2"
10363  else
10364    CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10365  fi
10366else
10367  CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10368fi
10369
10370
10371
10372if test -n "$CXX_FOR_TARGET"; then
10373  ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10374elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10375  CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10376fi
10377
10378if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10379  for ncn_progname in c++ g++ cxx gxx; do
10380    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10381set dummy ${ncn_progname}; ac_word=$2
10382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383$as_echo_n "checking for $ac_word... " >&6; }
10384if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10385  $as_echo_n "(cached) " >&6
10386else
10387  if test -n "$CXX_FOR_TARGET"; then
10388  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10389else
10390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10391for as_dir in $PATH
10392do
10393  IFS=$as_save_IFS
10394  test -z "$as_dir" && as_dir=.
10395    for ac_exec_ext in '' $ac_executable_extensions; do
10396  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10397    ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10399    break 2
10400  fi
10401done
10402  done
10403IFS=$as_save_IFS
10404
10405fi
10406fi
10407CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10408if test -n "$CXX_FOR_TARGET"; then
10409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10410$as_echo "$CXX_FOR_TARGET" >&6; }
10411else
10412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413$as_echo "no" >&6; }
10414fi
10415
10416
10417  done
10418fi
10419
10420if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10421  for ncn_progname in c++ g++ cxx gxx; do
10422    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10423$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10424    if test -x $with_build_time_tools/${ncn_progname}; then
10425      ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10426      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10427$as_echo "yes" >&6; }
10428      break
10429    else
10430      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431$as_echo "no" >&6; }
10432    fi
10433  done
10434fi
10435
10436if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10437  for ncn_progname in c++ g++ cxx gxx; do
10438    if test -n "$ncn_target_tool_prefix"; then
10439      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10440set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10442$as_echo_n "checking for $ac_word... " >&6; }
10443if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10444  $as_echo_n "(cached) " >&6
10445else
10446  if test -n "$CXX_FOR_TARGET"; then
10447  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10448else
10449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450for as_dir in $PATH
10451do
10452  IFS=$as_save_IFS
10453  test -z "$as_dir" && as_dir=.
10454    for ac_exec_ext in '' $ac_executable_extensions; do
10455  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10456    ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10458    break 2
10459  fi
10460done
10461  done
10462IFS=$as_save_IFS
10463
10464fi
10465fi
10466CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10467if test -n "$CXX_FOR_TARGET"; then
10468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10469$as_echo "$CXX_FOR_TARGET" >&6; }
10470else
10471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472$as_echo "no" >&6; }
10473fi
10474
10475
10476    fi
10477    if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10478      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10479set dummy ${ncn_progname}; ac_word=$2
10480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481$as_echo_n "checking for $ac_word... " >&6; }
10482if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10483  $as_echo_n "(cached) " >&6
10484else
10485  if test -n "$CXX_FOR_TARGET"; then
10486  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10487else
10488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489for as_dir in $PATH
10490do
10491  IFS=$as_save_IFS
10492  test -z "$as_dir" && as_dir=.
10493    for ac_exec_ext in '' $ac_executable_extensions; do
10494  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10495    ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10497    break 2
10498  fi
10499done
10500  done
10501IFS=$as_save_IFS
10502
10503fi
10504fi
10505CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10506if test -n "$CXX_FOR_TARGET"; then
10507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10508$as_echo "$CXX_FOR_TARGET" >&6; }
10509else
10510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511$as_echo "no" >&6; }
10512fi
10513
10514
10515    fi
10516    test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10517  done
10518fi
10519
10520if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10521  set dummy c++ g++ cxx gxx
10522  if test $build = $target ; then
10523    CXX_FOR_TARGET="$2"
10524  else
10525    CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10526  fi
10527else
10528  CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10529fi
10530
10531
10532
10533if test -n "$GCC_FOR_TARGET"; then
10534  ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10535elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10536  GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10537fi
10538
10539if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10540  for ncn_progname in gcc; do
10541    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10542set dummy ${ncn_progname}; ac_word=$2
10543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544$as_echo_n "checking for $ac_word... " >&6; }
10545if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10546  $as_echo_n "(cached) " >&6
10547else
10548  if test -n "$GCC_FOR_TARGET"; then
10549  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10550else
10551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552for as_dir in $PATH
10553do
10554  IFS=$as_save_IFS
10555  test -z "$as_dir" && as_dir=.
10556    for ac_exec_ext in '' $ac_executable_extensions; do
10557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10558    ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10560    break 2
10561  fi
10562done
10563  done
10564IFS=$as_save_IFS
10565
10566fi
10567fi
10568GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10569if test -n "$GCC_FOR_TARGET"; then
10570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10571$as_echo "$GCC_FOR_TARGET" >&6; }
10572else
10573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574$as_echo "no" >&6; }
10575fi
10576
10577
10578  done
10579fi
10580
10581if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10582  for ncn_progname in gcc; do
10583    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10584$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10585    if test -x $with_build_time_tools/${ncn_progname}; then
10586      ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10587      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10588$as_echo "yes" >&6; }
10589      break
10590    else
10591      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592$as_echo "no" >&6; }
10593    fi
10594  done
10595fi
10596
10597if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10598  for ncn_progname in gcc; do
10599    if test -n "$ncn_target_tool_prefix"; then
10600      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10601set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603$as_echo_n "checking for $ac_word... " >&6; }
10604if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10605  $as_echo_n "(cached) " >&6
10606else
10607  if test -n "$GCC_FOR_TARGET"; then
10608  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10609else
10610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611for as_dir in $PATH
10612do
10613  IFS=$as_save_IFS
10614  test -z "$as_dir" && as_dir=.
10615    for ac_exec_ext in '' $ac_executable_extensions; do
10616  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10617    ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10619    break 2
10620  fi
10621done
10622  done
10623IFS=$as_save_IFS
10624
10625fi
10626fi
10627GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10628if test -n "$GCC_FOR_TARGET"; then
10629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10630$as_echo "$GCC_FOR_TARGET" >&6; }
10631else
10632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633$as_echo "no" >&6; }
10634fi
10635
10636
10637    fi
10638    if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10639      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10640set dummy ${ncn_progname}; ac_word=$2
10641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10642$as_echo_n "checking for $ac_word... " >&6; }
10643if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10644  $as_echo_n "(cached) " >&6
10645else
10646  if test -n "$GCC_FOR_TARGET"; then
10647  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10648else
10649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650for as_dir in $PATH
10651do
10652  IFS=$as_save_IFS
10653  test -z "$as_dir" && as_dir=.
10654    for ac_exec_ext in '' $ac_executable_extensions; do
10655  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10656    ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10657    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10658    break 2
10659  fi
10660done
10661  done
10662IFS=$as_save_IFS
10663
10664fi
10665fi
10666GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10667if test -n "$GCC_FOR_TARGET"; then
10668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10669$as_echo "$GCC_FOR_TARGET" >&6; }
10670else
10671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672$as_echo "no" >&6; }
10673fi
10674
10675
10676    fi
10677    test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10678  done
10679fi
10680
10681if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10682  GCC_FOR_TARGET="${CC_FOR_TARGET}"
10683else
10684  GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10685fi
10686
10687
10688
10689if test -n "$GCJ_FOR_TARGET"; then
10690  ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10691elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10692  GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10693fi
10694
10695if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10696  for ncn_progname in gcj; 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_GCJ_FOR_TARGET+set}" = set; then :
10702  $as_echo_n "(cached) " >&6
10703else
10704  if test -n "$GCJ_FOR_TARGET"; then
10705  ac_cv_prog_GCJ_FOR_TARGET="$GCJ_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_GCJ_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
10724GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10725if test -n "$GCJ_FOR_TARGET"; then
10726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10727$as_echo "$GCJ_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_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10738  for ncn_progname in gcj; 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_GCJ_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_GCJ_FOR_TARGET"; then
10754  for ncn_progname in gcj; 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_GCJ_FOR_TARGET+set}" = set; then :
10761  $as_echo_n "(cached) " >&6
10762else
10763  if test -n "$GCJ_FOR_TARGET"; then
10764  ac_cv_prog_GCJ_FOR_TARGET="$GCJ_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_GCJ_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
10783GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10784if test -n "$GCJ_FOR_TARGET"; then
10785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10786$as_echo "$GCJ_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_GCJ_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_GCJ_FOR_TARGET+set}" = set; then :
10800  $as_echo_n "(cached) " >&6
10801else
10802  if test -n "$GCJ_FOR_TARGET"; then
10803  ac_cv_prog_GCJ_FOR_TARGET="$GCJ_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_GCJ_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
10822GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10823if test -n "$GCJ_FOR_TARGET"; then
10824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10825$as_echo "$GCJ_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_GCJ_FOR_TARGET" && break
10834  done
10835fi
10836
10837if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10838  set dummy gcj
10839  if test $build = $target ; then
10840    GCJ_FOR_TARGET="$2"
10841  else
10842    GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10843  fi
10844else
10845  GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10846fi
10847
10848
10849
10850if test -n "$GFORTRAN_FOR_TARGET"; then
10851  ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10852elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10853  GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10854fi
10855
10856if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10857  for ncn_progname in gfortran; do
10858    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10859set dummy ${ncn_progname}; ac_word=$2
10860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10861$as_echo_n "checking for $ac_word... " >&6; }
10862if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10863  $as_echo_n "(cached) " >&6
10864else
10865  if test -n "$GFORTRAN_FOR_TARGET"; then
10866  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10867else
10868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869for as_dir in $PATH
10870do
10871  IFS=$as_save_IFS
10872  test -z "$as_dir" && as_dir=.
10873    for ac_exec_ext in '' $ac_executable_extensions; do
10874  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10875    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10877    break 2
10878  fi
10879done
10880  done
10881IFS=$as_save_IFS
10882
10883fi
10884fi
10885GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10886if test -n "$GFORTRAN_FOR_TARGET"; then
10887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10888$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10889else
10890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891$as_echo "no" >&6; }
10892fi
10893
10894
10895  done
10896fi
10897
10898if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10899  for ncn_progname in gfortran; do
10900    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10901$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10902    if test -x $with_build_time_tools/${ncn_progname}; then
10903      ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10904      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10905$as_echo "yes" >&6; }
10906      break
10907    else
10908      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909$as_echo "no" >&6; }
10910    fi
10911  done
10912fi
10913
10914if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10915  for ncn_progname in gfortran; do
10916    if test -n "$ncn_target_tool_prefix"; then
10917      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10918set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920$as_echo_n "checking for $ac_word... " >&6; }
10921if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10922  $as_echo_n "(cached) " >&6
10923else
10924  if test -n "$GFORTRAN_FOR_TARGET"; then
10925  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10926else
10927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928for as_dir in $PATH
10929do
10930  IFS=$as_save_IFS
10931  test -z "$as_dir" && as_dir=.
10932    for ac_exec_ext in '' $ac_executable_extensions; do
10933  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10934    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10936    break 2
10937  fi
10938done
10939  done
10940IFS=$as_save_IFS
10941
10942fi
10943fi
10944GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10945if test -n "$GFORTRAN_FOR_TARGET"; then
10946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10947$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10948else
10949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950$as_echo "no" >&6; }
10951fi
10952
10953
10954    fi
10955    if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10956      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10957set dummy ${ncn_progname}; ac_word=$2
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10959$as_echo_n "checking for $ac_word... " >&6; }
10960if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10961  $as_echo_n "(cached) " >&6
10962else
10963  if test -n "$GFORTRAN_FOR_TARGET"; then
10964  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10965else
10966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10967for as_dir in $PATH
10968do
10969  IFS=$as_save_IFS
10970  test -z "$as_dir" && as_dir=.
10971    for ac_exec_ext in '' $ac_executable_extensions; do
10972  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10973    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10975    break 2
10976  fi
10977done
10978  done
10979IFS=$as_save_IFS
10980
10981fi
10982fi
10983GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10984if test -n "$GFORTRAN_FOR_TARGET"; then
10985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10986$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10987else
10988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10989$as_echo "no" >&6; }
10990fi
10991
10992
10993    fi
10994    test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10995  done
10996fi
10997
10998if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10999  set dummy gfortran
11000  if test $build = $target ; then
11001    GFORTRAN_FOR_TARGET="$2"
11002  else
11003    GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11004  fi
11005else
11006  GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
11007fi
11008
11009
11010
11011cat > conftest.c << \EOF
11012#ifdef __GNUC__
11013  gcc_yay;
11014#endif
11015EOF
11016if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11017  have_gcc_for_target=yes
11018else
11019  GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11020  have_gcc_for_target=no
11021fi
11022rm conftest.c
11023
11024
11025
11026
11027if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11028  if test -n "$with_build_time_tools"; then
11029    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11030$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11031    if test -x $with_build_time_tools/ar; then
11032      AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11033      ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11034      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11035$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11036    else
11037      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038$as_echo "no" >&6; }
11039    fi
11040  elif test $build != $host && test $have_gcc_for_target = yes; then
11041    AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11042    test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11043    test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11044  fi
11045fi
11046if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11047  # Extract the first word of "ar", so it can be a program name with args.
11048set dummy ar; ac_word=$2
11049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11050$as_echo_n "checking for $ac_word... " >&6; }
11051if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11052  $as_echo_n "(cached) " >&6
11053else
11054  case $AR_FOR_TARGET in
11055  [\\/]* | ?:[\\/]*)
11056  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11057  ;;
11058  *)
11059  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11060for as_dir in $gcc_cv_tool_dirs
11061do
11062  IFS=$as_save_IFS
11063  test -z "$as_dir" && as_dir=.
11064    for ac_exec_ext in '' $ac_executable_extensions; do
11065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11066    ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11068    break 2
11069  fi
11070done
11071  done
11072IFS=$as_save_IFS
11073
11074  ;;
11075esac
11076fi
11077AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11078if test -n "$AR_FOR_TARGET"; then
11079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11080$as_echo "$AR_FOR_TARGET" >&6; }
11081else
11082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11083$as_echo "no" >&6; }
11084fi
11085
11086
11087fi
11088if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11089
11090
11091if test -n "$AR_FOR_TARGET"; then
11092  ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11093elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11094  AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11095fi
11096
11097if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11098  for ncn_progname in ar; do
11099    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11100set dummy ${ncn_progname}; ac_word=$2
11101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11102$as_echo_n "checking for $ac_word... " >&6; }
11103if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11104  $as_echo_n "(cached) " >&6
11105else
11106  if test -n "$AR_FOR_TARGET"; then
11107  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11108else
11109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11110for as_dir in $PATH
11111do
11112  IFS=$as_save_IFS
11113  test -z "$as_dir" && as_dir=.
11114    for ac_exec_ext in '' $ac_executable_extensions; do
11115  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11116    ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11118    break 2
11119  fi
11120done
11121  done
11122IFS=$as_save_IFS
11123
11124fi
11125fi
11126AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11127if test -n "$AR_FOR_TARGET"; then
11128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11129$as_echo "$AR_FOR_TARGET" >&6; }
11130else
11131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132$as_echo "no" >&6; }
11133fi
11134
11135
11136  done
11137fi
11138
11139if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11140  for ncn_progname in ar; do
11141    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11142$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11143    if test -x $with_build_time_tools/${ncn_progname}; then
11144      ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11145      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11146$as_echo "yes" >&6; }
11147      break
11148    else
11149      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150$as_echo "no" >&6; }
11151    fi
11152  done
11153fi
11154
11155if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11156  for ncn_progname in ar; do
11157    if test -n "$ncn_target_tool_prefix"; then
11158      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11159set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11161$as_echo_n "checking for $ac_word... " >&6; }
11162if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11163  $as_echo_n "(cached) " >&6
11164else
11165  if test -n "$AR_FOR_TARGET"; then
11166  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11167else
11168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169for as_dir in $PATH
11170do
11171  IFS=$as_save_IFS
11172  test -z "$as_dir" && as_dir=.
11173    for ac_exec_ext in '' $ac_executable_extensions; do
11174  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11175    ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11177    break 2
11178  fi
11179done
11180  done
11181IFS=$as_save_IFS
11182
11183fi
11184fi
11185AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11186if test -n "$AR_FOR_TARGET"; then
11187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11188$as_echo "$AR_FOR_TARGET" >&6; }
11189else
11190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191$as_echo "no" >&6; }
11192fi
11193
11194
11195    fi
11196    if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11197      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11198set dummy ${ncn_progname}; ac_word=$2
11199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200$as_echo_n "checking for $ac_word... " >&6; }
11201if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11202  $as_echo_n "(cached) " >&6
11203else
11204  if test -n "$AR_FOR_TARGET"; then
11205  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11206else
11207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208for as_dir in $PATH
11209do
11210  IFS=$as_save_IFS
11211  test -z "$as_dir" && as_dir=.
11212    for ac_exec_ext in '' $ac_executable_extensions; do
11213  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11214    ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11215    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216    break 2
11217  fi
11218done
11219  done
11220IFS=$as_save_IFS
11221
11222fi
11223fi
11224AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11225if test -n "$AR_FOR_TARGET"; then
11226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11227$as_echo "$AR_FOR_TARGET" >&6; }
11228else
11229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230$as_echo "no" >&6; }
11231fi
11232
11233
11234    fi
11235    test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11236  done
11237fi
11238
11239if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11240  set dummy ar
11241  if test $build = $target ; then
11242    AR_FOR_TARGET="$2"
11243  else
11244    AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11245  fi
11246else
11247  AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11248fi
11249
11250else
11251  AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11252fi
11253
11254
11255
11256
11257if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11258  if test -n "$with_build_time_tools"; then
11259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11260$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11261    if test -x $with_build_time_tools/as; then
11262      AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11263      ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11264      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11265$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11266    else
11267      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268$as_echo "no" >&6; }
11269    fi
11270  elif test $build != $host && test $have_gcc_for_target = yes; then
11271    AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11272    test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11273    test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11274  fi
11275fi
11276if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11277  # Extract the first word of "as", so it can be a program name with args.
11278set dummy as; ac_word=$2
11279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280$as_echo_n "checking for $ac_word... " >&6; }
11281if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11282  $as_echo_n "(cached) " >&6
11283else
11284  case $AS_FOR_TARGET in
11285  [\\/]* | ?:[\\/]*)
11286  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11287  ;;
11288  *)
11289  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290for as_dir in $gcc_cv_tool_dirs
11291do
11292  IFS=$as_save_IFS
11293  test -z "$as_dir" && as_dir=.
11294    for ac_exec_ext in '' $ac_executable_extensions; do
11295  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11296    ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11298    break 2
11299  fi
11300done
11301  done
11302IFS=$as_save_IFS
11303
11304  ;;
11305esac
11306fi
11307AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11308if test -n "$AS_FOR_TARGET"; then
11309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11310$as_echo "$AS_FOR_TARGET" >&6; }
11311else
11312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313$as_echo "no" >&6; }
11314fi
11315
11316
11317fi
11318if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11319
11320
11321if test -n "$AS_FOR_TARGET"; then
11322  ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11323elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11324  AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11325fi
11326
11327if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11328  for ncn_progname in as; do
11329    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11330set dummy ${ncn_progname}; ac_word=$2
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11332$as_echo_n "checking for $ac_word... " >&6; }
11333if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11334  $as_echo_n "(cached) " >&6
11335else
11336  if test -n "$AS_FOR_TARGET"; then
11337  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11338else
11339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340for as_dir in $PATH
11341do
11342  IFS=$as_save_IFS
11343  test -z "$as_dir" && as_dir=.
11344    for ac_exec_ext in '' $ac_executable_extensions; do
11345  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11346    ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11348    break 2
11349  fi
11350done
11351  done
11352IFS=$as_save_IFS
11353
11354fi
11355fi
11356AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11357if test -n "$AS_FOR_TARGET"; then
11358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11359$as_echo "$AS_FOR_TARGET" >&6; }
11360else
11361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362$as_echo "no" >&6; }
11363fi
11364
11365
11366  done
11367fi
11368
11369if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11370  for ncn_progname in as; do
11371    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11372$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11373    if test -x $with_build_time_tools/${ncn_progname}; then
11374      ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11375      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11376$as_echo "yes" >&6; }
11377      break
11378    else
11379      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11380$as_echo "no" >&6; }
11381    fi
11382  done
11383fi
11384
11385if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11386  for ncn_progname in as; do
11387    if test -n "$ncn_target_tool_prefix"; then
11388      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11389set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11391$as_echo_n "checking for $ac_word... " >&6; }
11392if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11393  $as_echo_n "(cached) " >&6
11394else
11395  if test -n "$AS_FOR_TARGET"; then
11396  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11397else
11398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399for as_dir in $PATH
11400do
11401  IFS=$as_save_IFS
11402  test -z "$as_dir" && as_dir=.
11403    for ac_exec_ext in '' $ac_executable_extensions; do
11404  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11405    ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11407    break 2
11408  fi
11409done
11410  done
11411IFS=$as_save_IFS
11412
11413fi
11414fi
11415AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11416if test -n "$AS_FOR_TARGET"; then
11417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11418$as_echo "$AS_FOR_TARGET" >&6; }
11419else
11420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421$as_echo "no" >&6; }
11422fi
11423
11424
11425    fi
11426    if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11427      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11428set dummy ${ncn_progname}; ac_word=$2
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11430$as_echo_n "checking for $ac_word... " >&6; }
11431if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11432  $as_echo_n "(cached) " >&6
11433else
11434  if test -n "$AS_FOR_TARGET"; then
11435  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11436else
11437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438for as_dir in $PATH
11439do
11440  IFS=$as_save_IFS
11441  test -z "$as_dir" && as_dir=.
11442    for ac_exec_ext in '' $ac_executable_extensions; do
11443  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11444    ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11446    break 2
11447  fi
11448done
11449  done
11450IFS=$as_save_IFS
11451
11452fi
11453fi
11454AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11455if test -n "$AS_FOR_TARGET"; then
11456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11457$as_echo "$AS_FOR_TARGET" >&6; }
11458else
11459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460$as_echo "no" >&6; }
11461fi
11462
11463
11464    fi
11465    test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11466  done
11467fi
11468
11469if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11470  set dummy as
11471  if test $build = $target ; then
11472    AS_FOR_TARGET="$2"
11473  else
11474    AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11475  fi
11476else
11477  AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11478fi
11479
11480else
11481  AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11482fi
11483
11484
11485
11486
11487if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11488  if test -n "$with_build_time_tools"; then
11489    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11490$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11491    if test -x $with_build_time_tools/dlltool; then
11492      DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11493      ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11494      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11495$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11496    else
11497      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498$as_echo "no" >&6; }
11499    fi
11500  elif test $build != $host && test $have_gcc_for_target = yes; then
11501    DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11502    test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11503    test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11504  fi
11505fi
11506if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11507  # Extract the first word of "dlltool", so it can be a program name with args.
11508set dummy dlltool; ac_word=$2
11509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11510$as_echo_n "checking for $ac_word... " >&6; }
11511if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11512  $as_echo_n "(cached) " >&6
11513else
11514  case $DLLTOOL_FOR_TARGET in
11515  [\\/]* | ?:[\\/]*)
11516  ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11517  ;;
11518  *)
11519  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520for as_dir in $gcc_cv_tool_dirs
11521do
11522  IFS=$as_save_IFS
11523  test -z "$as_dir" && as_dir=.
11524    for ac_exec_ext in '' $ac_executable_extensions; do
11525  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11526    ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11528    break 2
11529  fi
11530done
11531  done
11532IFS=$as_save_IFS
11533
11534  ;;
11535esac
11536fi
11537DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11538if test -n "$DLLTOOL_FOR_TARGET"; then
11539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11540$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11541else
11542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543$as_echo "no" >&6; }
11544fi
11545
11546
11547fi
11548if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11549
11550
11551if test -n "$DLLTOOL_FOR_TARGET"; then
11552  ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11553elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11554  DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11555fi
11556
11557if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11558  for ncn_progname in dlltool; do
11559    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11560set dummy ${ncn_progname}; ac_word=$2
11561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562$as_echo_n "checking for $ac_word... " >&6; }
11563if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11564  $as_echo_n "(cached) " >&6
11565else
11566  if test -n "$DLLTOOL_FOR_TARGET"; then
11567  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11568else
11569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11570for as_dir in $PATH
11571do
11572  IFS=$as_save_IFS
11573  test -z "$as_dir" && as_dir=.
11574    for ac_exec_ext in '' $ac_executable_extensions; do
11575  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11576    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11578    break 2
11579  fi
11580done
11581  done
11582IFS=$as_save_IFS
11583
11584fi
11585fi
11586DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11587if test -n "$DLLTOOL_FOR_TARGET"; then
11588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11589$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11590else
11591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592$as_echo "no" >&6; }
11593fi
11594
11595
11596  done
11597fi
11598
11599if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11600  for ncn_progname in dlltool; do
11601    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11602$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11603    if test -x $with_build_time_tools/${ncn_progname}; then
11604      ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11605      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11606$as_echo "yes" >&6; }
11607      break
11608    else
11609      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610$as_echo "no" >&6; }
11611    fi
11612  done
11613fi
11614
11615if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11616  for ncn_progname in dlltool; do
11617    if test -n "$ncn_target_tool_prefix"; then
11618      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11619set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11621$as_echo_n "checking for $ac_word... " >&6; }
11622if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11623  $as_echo_n "(cached) " >&6
11624else
11625  if test -n "$DLLTOOL_FOR_TARGET"; then
11626  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11627else
11628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11629for as_dir in $PATH
11630do
11631  IFS=$as_save_IFS
11632  test -z "$as_dir" && as_dir=.
11633    for ac_exec_ext in '' $ac_executable_extensions; do
11634  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11635    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11637    break 2
11638  fi
11639done
11640  done
11641IFS=$as_save_IFS
11642
11643fi
11644fi
11645DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11646if test -n "$DLLTOOL_FOR_TARGET"; then
11647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11648$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11649else
11650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651$as_echo "no" >&6; }
11652fi
11653
11654
11655    fi
11656    if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11657      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11658set dummy ${ncn_progname}; ac_word=$2
11659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11660$as_echo_n "checking for $ac_word... " >&6; }
11661if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11662  $as_echo_n "(cached) " >&6
11663else
11664  if test -n "$DLLTOOL_FOR_TARGET"; then
11665  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11666else
11667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668for as_dir in $PATH
11669do
11670  IFS=$as_save_IFS
11671  test -z "$as_dir" && as_dir=.
11672    for ac_exec_ext in '' $ac_executable_extensions; do
11673  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11674    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11676    break 2
11677  fi
11678done
11679  done
11680IFS=$as_save_IFS
11681
11682fi
11683fi
11684DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11685if test -n "$DLLTOOL_FOR_TARGET"; then
11686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11687$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11688else
11689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690$as_echo "no" >&6; }
11691fi
11692
11693
11694    fi
11695    test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11696  done
11697fi
11698
11699if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11700  set dummy dlltool
11701  if test $build = $target ; then
11702    DLLTOOL_FOR_TARGET="$2"
11703  else
11704    DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11705  fi
11706else
11707  DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11708fi
11709
11710else
11711  DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11712fi
11713
11714
11715
11716
11717if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11718  if test -n "$with_build_time_tools"; then
11719    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11720$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11721    if test -x $with_build_time_tools/ld; then
11722      LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11723      ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11724      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11725$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11726    else
11727      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728$as_echo "no" >&6; }
11729    fi
11730  elif test $build != $host && test $have_gcc_for_target = yes; then
11731    LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11732    test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11733    test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11734  fi
11735fi
11736if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11737  # Extract the first word of "ld", so it can be a program name with args.
11738set dummy ld; ac_word=$2
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740$as_echo_n "checking for $ac_word... " >&6; }
11741if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11742  $as_echo_n "(cached) " >&6
11743else
11744  case $LD_FOR_TARGET in
11745  [\\/]* | ?:[\\/]*)
11746  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11747  ;;
11748  *)
11749  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750for as_dir in $gcc_cv_tool_dirs
11751do
11752  IFS=$as_save_IFS
11753  test -z "$as_dir" && as_dir=.
11754    for ac_exec_ext in '' $ac_executable_extensions; do
11755  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11756    ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758    break 2
11759  fi
11760done
11761  done
11762IFS=$as_save_IFS
11763
11764  ;;
11765esac
11766fi
11767LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11768if test -n "$LD_FOR_TARGET"; then
11769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11770$as_echo "$LD_FOR_TARGET" >&6; }
11771else
11772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773$as_echo "no" >&6; }
11774fi
11775
11776
11777fi
11778if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11779
11780
11781if test -n "$LD_FOR_TARGET"; then
11782  ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11783elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11784  LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11785fi
11786
11787if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11788  for ncn_progname in ld; do
11789    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11790set dummy ${ncn_progname}; ac_word=$2
11791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11792$as_echo_n "checking for $ac_word... " >&6; }
11793if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11794  $as_echo_n "(cached) " >&6
11795else
11796  if test -n "$LD_FOR_TARGET"; then
11797  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11798else
11799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11800for as_dir in $PATH
11801do
11802  IFS=$as_save_IFS
11803  test -z "$as_dir" && as_dir=.
11804    for ac_exec_ext in '' $ac_executable_extensions; do
11805  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11806    ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11808    break 2
11809  fi
11810done
11811  done
11812IFS=$as_save_IFS
11813
11814fi
11815fi
11816LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11817if test -n "$LD_FOR_TARGET"; then
11818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11819$as_echo "$LD_FOR_TARGET" >&6; }
11820else
11821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822$as_echo "no" >&6; }
11823fi
11824
11825
11826  done
11827fi
11828
11829if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11830  for ncn_progname in ld; do
11831    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11832$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11833    if test -x $with_build_time_tools/${ncn_progname}; then
11834      ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11835      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11836$as_echo "yes" >&6; }
11837      break
11838    else
11839      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840$as_echo "no" >&6; }
11841    fi
11842  done
11843fi
11844
11845if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11846  for ncn_progname in ld; do
11847    if test -n "$ncn_target_tool_prefix"; then
11848      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11849set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851$as_echo_n "checking for $ac_word... " >&6; }
11852if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11853  $as_echo_n "(cached) " >&6
11854else
11855  if test -n "$LD_FOR_TARGET"; then
11856  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11857else
11858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859for as_dir in $PATH
11860do
11861  IFS=$as_save_IFS
11862  test -z "$as_dir" && as_dir=.
11863    for ac_exec_ext in '' $ac_executable_extensions; do
11864  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11865    ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11867    break 2
11868  fi
11869done
11870  done
11871IFS=$as_save_IFS
11872
11873fi
11874fi
11875LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11876if test -n "$LD_FOR_TARGET"; then
11877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11878$as_echo "$LD_FOR_TARGET" >&6; }
11879else
11880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881$as_echo "no" >&6; }
11882fi
11883
11884
11885    fi
11886    if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11887      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11888set dummy ${ncn_progname}; ac_word=$2
11889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890$as_echo_n "checking for $ac_word... " >&6; }
11891if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11892  $as_echo_n "(cached) " >&6
11893else
11894  if test -n "$LD_FOR_TARGET"; then
11895  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11896else
11897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898for as_dir in $PATH
11899do
11900  IFS=$as_save_IFS
11901  test -z "$as_dir" && as_dir=.
11902    for ac_exec_ext in '' $ac_executable_extensions; do
11903  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11904    ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906    break 2
11907  fi
11908done
11909  done
11910IFS=$as_save_IFS
11911
11912fi
11913fi
11914LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11915if test -n "$LD_FOR_TARGET"; then
11916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11917$as_echo "$LD_FOR_TARGET" >&6; }
11918else
11919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920$as_echo "no" >&6; }
11921fi
11922
11923
11924    fi
11925    test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11926  done
11927fi
11928
11929if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11930  set dummy ld
11931  if test $build = $target ; then
11932    LD_FOR_TARGET="$2"
11933  else
11934    LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11935  fi
11936else
11937  LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11938fi
11939
11940else
11941  LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11942fi
11943
11944
11945
11946
11947if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11948  if test -n "$with_build_time_tools"; then
11949    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11950$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11951    if test -x $with_build_time_tools/lipo; then
11952      LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11953      ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11954      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11955$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11956    else
11957      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958$as_echo "no" >&6; }
11959    fi
11960  elif test $build != $host && test $have_gcc_for_target = yes; then
11961    LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11962    test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11963    test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11964  fi
11965fi
11966if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11967  # Extract the first word of "lipo", so it can be a program name with args.
11968set dummy lipo; ac_word=$2
11969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11970$as_echo_n "checking for $ac_word... " >&6; }
11971if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11972  $as_echo_n "(cached) " >&6
11973else
11974  case $LIPO_FOR_TARGET in
11975  [\\/]* | ?:[\\/]*)
11976  ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11977  ;;
11978  *)
11979  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11980for as_dir in $gcc_cv_tool_dirs
11981do
11982  IFS=$as_save_IFS
11983  test -z "$as_dir" && as_dir=.
11984    for ac_exec_ext in '' $ac_executable_extensions; do
11985  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11986    ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11988    break 2
11989  fi
11990done
11991  done
11992IFS=$as_save_IFS
11993
11994  ;;
11995esac
11996fi
11997LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11998if test -n "$LIPO_FOR_TARGET"; then
11999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12000$as_echo "$LIPO_FOR_TARGET" >&6; }
12001else
12002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12003$as_echo "no" >&6; }
12004fi
12005
12006
12007fi
12008if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12009
12010
12011if test -n "$LIPO_FOR_TARGET"; then
12012  ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12013elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12014  LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12015fi
12016
12017if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12018  for ncn_progname in lipo; do
12019    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12020set dummy ${ncn_progname}; ac_word=$2
12021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12022$as_echo_n "checking for $ac_word... " >&6; }
12023if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12024  $as_echo_n "(cached) " >&6
12025else
12026  if test -n "$LIPO_FOR_TARGET"; then
12027  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12028else
12029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030for as_dir in $PATH
12031do
12032  IFS=$as_save_IFS
12033  test -z "$as_dir" && as_dir=.
12034    for ac_exec_ext in '' $ac_executable_extensions; do
12035  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12036    ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12038    break 2
12039  fi
12040done
12041  done
12042IFS=$as_save_IFS
12043
12044fi
12045fi
12046LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12047if test -n "$LIPO_FOR_TARGET"; then
12048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12049$as_echo "$LIPO_FOR_TARGET" >&6; }
12050else
12051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052$as_echo "no" >&6; }
12053fi
12054
12055
12056  done
12057fi
12058
12059if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12060  for ncn_progname in lipo; do
12061    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12062$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12063    if test -x $with_build_time_tools/${ncn_progname}; then
12064      ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12065      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12066$as_echo "yes" >&6; }
12067      break
12068    else
12069      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12070$as_echo "no" >&6; }
12071    fi
12072  done
12073fi
12074
12075if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12076  for ncn_progname in lipo; do
12077    if test -n "$ncn_target_tool_prefix"; then
12078      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12079set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12081$as_echo_n "checking for $ac_word... " >&6; }
12082if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12083  $as_echo_n "(cached) " >&6
12084else
12085  if test -n "$LIPO_FOR_TARGET"; then
12086  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12087else
12088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089for as_dir in $PATH
12090do
12091  IFS=$as_save_IFS
12092  test -z "$as_dir" && as_dir=.
12093    for ac_exec_ext in '' $ac_executable_extensions; do
12094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12095    ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12097    break 2
12098  fi
12099done
12100  done
12101IFS=$as_save_IFS
12102
12103fi
12104fi
12105LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12106if test -n "$LIPO_FOR_TARGET"; then
12107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12108$as_echo "$LIPO_FOR_TARGET" >&6; }
12109else
12110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111$as_echo "no" >&6; }
12112fi
12113
12114
12115    fi
12116    if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12117      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12118set dummy ${ncn_progname}; ac_word=$2
12119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120$as_echo_n "checking for $ac_word... " >&6; }
12121if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12122  $as_echo_n "(cached) " >&6
12123else
12124  if test -n "$LIPO_FOR_TARGET"; then
12125  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12126else
12127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128for as_dir in $PATH
12129do
12130  IFS=$as_save_IFS
12131  test -z "$as_dir" && as_dir=.
12132    for ac_exec_ext in '' $ac_executable_extensions; do
12133  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12134    ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136    break 2
12137  fi
12138done
12139  done
12140IFS=$as_save_IFS
12141
12142fi
12143fi
12144LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12145if test -n "$LIPO_FOR_TARGET"; then
12146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12147$as_echo "$LIPO_FOR_TARGET" >&6; }
12148else
12149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150$as_echo "no" >&6; }
12151fi
12152
12153
12154    fi
12155    test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12156  done
12157fi
12158
12159if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12160  set dummy lipo
12161  if test $build = $target ; then
12162    LIPO_FOR_TARGET="$2"
12163  else
12164    LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12165  fi
12166else
12167  LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12168fi
12169
12170else
12171  LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12172fi
12173
12174
12175
12176
12177if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12178  if test -n "$with_build_time_tools"; then
12179    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12180$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12181    if test -x $with_build_time_tools/nm; then
12182      NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12183      ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12184      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12185$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12186    else
12187      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188$as_echo "no" >&6; }
12189    fi
12190  elif test $build != $host && test $have_gcc_for_target = yes; then
12191    NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12192    test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12193    test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12194  fi
12195fi
12196if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12197  # Extract the first word of "nm", so it can be a program name with args.
12198set dummy nm; ac_word=$2
12199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12200$as_echo_n "checking for $ac_word... " >&6; }
12201if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12202  $as_echo_n "(cached) " >&6
12203else
12204  case $NM_FOR_TARGET in
12205  [\\/]* | ?:[\\/]*)
12206  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12207  ;;
12208  *)
12209  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12210for as_dir in $gcc_cv_tool_dirs
12211do
12212  IFS=$as_save_IFS
12213  test -z "$as_dir" && as_dir=.
12214    for ac_exec_ext in '' $ac_executable_extensions; do
12215  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12216    ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12218    break 2
12219  fi
12220done
12221  done
12222IFS=$as_save_IFS
12223
12224  ;;
12225esac
12226fi
12227NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12228if test -n "$NM_FOR_TARGET"; then
12229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12230$as_echo "$NM_FOR_TARGET" >&6; }
12231else
12232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233$as_echo "no" >&6; }
12234fi
12235
12236
12237fi
12238if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12239
12240
12241if test -n "$NM_FOR_TARGET"; then
12242  ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12243elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12244  NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12245fi
12246
12247if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12248  for ncn_progname in nm; do
12249    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12250set dummy ${ncn_progname}; ac_word=$2
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252$as_echo_n "checking for $ac_word... " >&6; }
12253if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12254  $as_echo_n "(cached) " >&6
12255else
12256  if test -n "$NM_FOR_TARGET"; then
12257  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12258else
12259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260for as_dir in $PATH
12261do
12262  IFS=$as_save_IFS
12263  test -z "$as_dir" && as_dir=.
12264    for ac_exec_ext in '' $ac_executable_extensions; do
12265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12266    ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12268    break 2
12269  fi
12270done
12271  done
12272IFS=$as_save_IFS
12273
12274fi
12275fi
12276NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12277if test -n "$NM_FOR_TARGET"; then
12278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12279$as_echo "$NM_FOR_TARGET" >&6; }
12280else
12281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282$as_echo "no" >&6; }
12283fi
12284
12285
12286  done
12287fi
12288
12289if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12290  for ncn_progname in nm; do
12291    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12292$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12293    if test -x $with_build_time_tools/${ncn_progname}; then
12294      ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12295      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12296$as_echo "yes" >&6; }
12297      break
12298    else
12299      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300$as_echo "no" >&6; }
12301    fi
12302  done
12303fi
12304
12305if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12306  for ncn_progname in nm; do
12307    if test -n "$ncn_target_tool_prefix"; then
12308      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12309set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12311$as_echo_n "checking for $ac_word... " >&6; }
12312if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12313  $as_echo_n "(cached) " >&6
12314else
12315  if test -n "$NM_FOR_TARGET"; then
12316  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12317else
12318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319for as_dir in $PATH
12320do
12321  IFS=$as_save_IFS
12322  test -z "$as_dir" && as_dir=.
12323    for ac_exec_ext in '' $ac_executable_extensions; do
12324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12325    ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12327    break 2
12328  fi
12329done
12330  done
12331IFS=$as_save_IFS
12332
12333fi
12334fi
12335NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12336if test -n "$NM_FOR_TARGET"; then
12337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12338$as_echo "$NM_FOR_TARGET" >&6; }
12339else
12340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341$as_echo "no" >&6; }
12342fi
12343
12344
12345    fi
12346    if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12347      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12348set dummy ${ncn_progname}; ac_word=$2
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350$as_echo_n "checking for $ac_word... " >&6; }
12351if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12352  $as_echo_n "(cached) " >&6
12353else
12354  if test -n "$NM_FOR_TARGET"; then
12355  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12356else
12357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358for as_dir in $PATH
12359do
12360  IFS=$as_save_IFS
12361  test -z "$as_dir" && as_dir=.
12362    for ac_exec_ext in '' $ac_executable_extensions; do
12363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12364    ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12366    break 2
12367  fi
12368done
12369  done
12370IFS=$as_save_IFS
12371
12372fi
12373fi
12374NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12375if test -n "$NM_FOR_TARGET"; then
12376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12377$as_echo "$NM_FOR_TARGET" >&6; }
12378else
12379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380$as_echo "no" >&6; }
12381fi
12382
12383
12384    fi
12385    test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12386  done
12387fi
12388
12389if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12390  set dummy nm
12391  if test $build = $target ; then
12392    NM_FOR_TARGET="$2"
12393  else
12394    NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12395  fi
12396else
12397  NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12398fi
12399
12400else
12401  NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12402fi
12403
12404
12405
12406
12407if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12408  if test -n "$with_build_time_tools"; then
12409    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12410$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12411    if test -x $with_build_time_tools/objdump; then
12412      OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12413      ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12414      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12415$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12416    else
12417      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418$as_echo "no" >&6; }
12419    fi
12420  elif test $build != $host && test $have_gcc_for_target = yes; then
12421    OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12422    test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12423    test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12424  fi
12425fi
12426if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12427  # Extract the first word of "objdump", so it can be a program name with args.
12428set dummy objdump; ac_word=$2
12429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12430$as_echo_n "checking for $ac_word... " >&6; }
12431if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12432  $as_echo_n "(cached) " >&6
12433else
12434  case $OBJDUMP_FOR_TARGET in
12435  [\\/]* | ?:[\\/]*)
12436  ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12437  ;;
12438  *)
12439  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440for as_dir in $gcc_cv_tool_dirs
12441do
12442  IFS=$as_save_IFS
12443  test -z "$as_dir" && as_dir=.
12444    for ac_exec_ext in '' $ac_executable_extensions; do
12445  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12446    ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12448    break 2
12449  fi
12450done
12451  done
12452IFS=$as_save_IFS
12453
12454  ;;
12455esac
12456fi
12457OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12458if test -n "$OBJDUMP_FOR_TARGET"; then
12459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12460$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12461else
12462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463$as_echo "no" >&6; }
12464fi
12465
12466
12467fi
12468if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12469
12470
12471if test -n "$OBJDUMP_FOR_TARGET"; then
12472  ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12473elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12474  OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12475fi
12476
12477if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12478  for ncn_progname in objdump; do
12479    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12480set dummy ${ncn_progname}; ac_word=$2
12481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12482$as_echo_n "checking for $ac_word... " >&6; }
12483if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12484  $as_echo_n "(cached) " >&6
12485else
12486  if test -n "$OBJDUMP_FOR_TARGET"; then
12487  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12488else
12489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12490for as_dir in $PATH
12491do
12492  IFS=$as_save_IFS
12493  test -z "$as_dir" && as_dir=.
12494    for ac_exec_ext in '' $ac_executable_extensions; do
12495  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12496    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12498    break 2
12499  fi
12500done
12501  done
12502IFS=$as_save_IFS
12503
12504fi
12505fi
12506OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12507if test -n "$OBJDUMP_FOR_TARGET"; then
12508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12509$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12510else
12511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512$as_echo "no" >&6; }
12513fi
12514
12515
12516  done
12517fi
12518
12519if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12520  for ncn_progname in objdump; do
12521    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12522$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12523    if test -x $with_build_time_tools/${ncn_progname}; then
12524      ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12525      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12526$as_echo "yes" >&6; }
12527      break
12528    else
12529      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12530$as_echo "no" >&6; }
12531    fi
12532  done
12533fi
12534
12535if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12536  for ncn_progname in objdump; do
12537    if test -n "$ncn_target_tool_prefix"; then
12538      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12539set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12541$as_echo_n "checking for $ac_word... " >&6; }
12542if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12543  $as_echo_n "(cached) " >&6
12544else
12545  if test -n "$OBJDUMP_FOR_TARGET"; then
12546  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12547else
12548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549for as_dir in $PATH
12550do
12551  IFS=$as_save_IFS
12552  test -z "$as_dir" && as_dir=.
12553    for ac_exec_ext in '' $ac_executable_extensions; do
12554  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12555    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12557    break 2
12558  fi
12559done
12560  done
12561IFS=$as_save_IFS
12562
12563fi
12564fi
12565OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12566if test -n "$OBJDUMP_FOR_TARGET"; then
12567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12568$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12569else
12570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571$as_echo "no" >&6; }
12572fi
12573
12574
12575    fi
12576    if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12577      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12578set dummy ${ncn_progname}; ac_word=$2
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580$as_echo_n "checking for $ac_word... " >&6; }
12581if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12582  $as_echo_n "(cached) " >&6
12583else
12584  if test -n "$OBJDUMP_FOR_TARGET"; then
12585  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12586else
12587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588for as_dir in $PATH
12589do
12590  IFS=$as_save_IFS
12591  test -z "$as_dir" && as_dir=.
12592    for ac_exec_ext in '' $ac_executable_extensions; do
12593  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12594    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12596    break 2
12597  fi
12598done
12599  done
12600IFS=$as_save_IFS
12601
12602fi
12603fi
12604OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12605if test -n "$OBJDUMP_FOR_TARGET"; then
12606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12607$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12608else
12609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610$as_echo "no" >&6; }
12611fi
12612
12613
12614    fi
12615    test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12616  done
12617fi
12618
12619if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12620  set dummy objdump
12621  if test $build = $target ; then
12622    OBJDUMP_FOR_TARGET="$2"
12623  else
12624    OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12625  fi
12626else
12627  OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12628fi
12629
12630else
12631  OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12632fi
12633
12634
12635
12636
12637if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12638  if test -n "$with_build_time_tools"; then
12639    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12640$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12641    if test -x $with_build_time_tools/ranlib; then
12642      RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12643      ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12644      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12645$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12646    else
12647      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648$as_echo "no" >&6; }
12649    fi
12650  elif test $build != $host && test $have_gcc_for_target = yes; then
12651    RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12652    test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12653    test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12654  fi
12655fi
12656if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12657  # Extract the first word of "ranlib", so it can be a program name with args.
12658set dummy ranlib; ac_word=$2
12659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12660$as_echo_n "checking for $ac_word... " >&6; }
12661if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12662  $as_echo_n "(cached) " >&6
12663else
12664  case $RANLIB_FOR_TARGET in
12665  [\\/]* | ?:[\\/]*)
12666  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12667  ;;
12668  *)
12669  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12670for as_dir in $gcc_cv_tool_dirs
12671do
12672  IFS=$as_save_IFS
12673  test -z "$as_dir" && as_dir=.
12674    for ac_exec_ext in '' $ac_executable_extensions; do
12675  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12676    ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12678    break 2
12679  fi
12680done
12681  done
12682IFS=$as_save_IFS
12683
12684  ;;
12685esac
12686fi
12687RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12688if test -n "$RANLIB_FOR_TARGET"; then
12689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12690$as_echo "$RANLIB_FOR_TARGET" >&6; }
12691else
12692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693$as_echo "no" >&6; }
12694fi
12695
12696
12697fi
12698if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12699
12700
12701if test -n "$RANLIB_FOR_TARGET"; then
12702  ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12703elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12704  RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12705fi
12706
12707if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12708  for ncn_progname in ranlib; do
12709    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12710set dummy ${ncn_progname}; ac_word=$2
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12712$as_echo_n "checking for $ac_word... " >&6; }
12713if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12714  $as_echo_n "(cached) " >&6
12715else
12716  if test -n "$RANLIB_FOR_TARGET"; then
12717  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12718else
12719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12720for as_dir in $PATH
12721do
12722  IFS=$as_save_IFS
12723  test -z "$as_dir" && as_dir=.
12724    for ac_exec_ext in '' $ac_executable_extensions; do
12725  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12726    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12728    break 2
12729  fi
12730done
12731  done
12732IFS=$as_save_IFS
12733
12734fi
12735fi
12736RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12737if test -n "$RANLIB_FOR_TARGET"; then
12738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12739$as_echo "$RANLIB_FOR_TARGET" >&6; }
12740else
12741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742$as_echo "no" >&6; }
12743fi
12744
12745
12746  done
12747fi
12748
12749if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12750  for ncn_progname in ranlib; do
12751    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12752$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12753    if test -x $with_build_time_tools/${ncn_progname}; then
12754      ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12755      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12756$as_echo "yes" >&6; }
12757      break
12758    else
12759      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760$as_echo "no" >&6; }
12761    fi
12762  done
12763fi
12764
12765if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12766  for ncn_progname in ranlib; do
12767    if test -n "$ncn_target_tool_prefix"; then
12768      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12769set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12771$as_echo_n "checking for $ac_word... " >&6; }
12772if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12773  $as_echo_n "(cached) " >&6
12774else
12775  if test -n "$RANLIB_FOR_TARGET"; then
12776  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12777else
12778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12779for as_dir in $PATH
12780do
12781  IFS=$as_save_IFS
12782  test -z "$as_dir" && as_dir=.
12783    for ac_exec_ext in '' $ac_executable_extensions; do
12784  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12785    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12787    break 2
12788  fi
12789done
12790  done
12791IFS=$as_save_IFS
12792
12793fi
12794fi
12795RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12796if test -n "$RANLIB_FOR_TARGET"; then
12797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12798$as_echo "$RANLIB_FOR_TARGET" >&6; }
12799else
12800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801$as_echo "no" >&6; }
12802fi
12803
12804
12805    fi
12806    if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12807      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12808set dummy ${ncn_progname}; ac_word=$2
12809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12810$as_echo_n "checking for $ac_word... " >&6; }
12811if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12812  $as_echo_n "(cached) " >&6
12813else
12814  if test -n "$RANLIB_FOR_TARGET"; then
12815  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12816else
12817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818for as_dir in $PATH
12819do
12820  IFS=$as_save_IFS
12821  test -z "$as_dir" && as_dir=.
12822    for ac_exec_ext in '' $ac_executable_extensions; do
12823  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12824    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12826    break 2
12827  fi
12828done
12829  done
12830IFS=$as_save_IFS
12831
12832fi
12833fi
12834RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12835if test -n "$RANLIB_FOR_TARGET"; then
12836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12837$as_echo "$RANLIB_FOR_TARGET" >&6; }
12838else
12839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840$as_echo "no" >&6; }
12841fi
12842
12843
12844    fi
12845    test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12846  done
12847fi
12848
12849if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12850  set dummy ranlib
12851  if test $build = $target ; then
12852    RANLIB_FOR_TARGET="$2"
12853  else
12854    RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12855  fi
12856else
12857  RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12858fi
12859
12860else
12861  RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12862fi
12863
12864
12865
12866
12867if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12868  if test -n "$with_build_time_tools"; then
12869    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12870$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12871    if test -x $with_build_time_tools/strip; then
12872      STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12873      ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12874      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12875$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12876    else
12877      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878$as_echo "no" >&6; }
12879    fi
12880  elif test $build != $host && test $have_gcc_for_target = yes; then
12881    STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12882    test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12883    test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12884  fi
12885fi
12886if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12887  # Extract the first word of "strip", so it can be a program name with args.
12888set dummy strip; ac_word=$2
12889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12890$as_echo_n "checking for $ac_word... " >&6; }
12891if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12892  $as_echo_n "(cached) " >&6
12893else
12894  case $STRIP_FOR_TARGET in
12895  [\\/]* | ?:[\\/]*)
12896  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12897  ;;
12898  *)
12899  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900for as_dir in $gcc_cv_tool_dirs
12901do
12902  IFS=$as_save_IFS
12903  test -z "$as_dir" && as_dir=.
12904    for ac_exec_ext in '' $ac_executable_extensions; do
12905  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12906    ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12908    break 2
12909  fi
12910done
12911  done
12912IFS=$as_save_IFS
12913
12914  ;;
12915esac
12916fi
12917STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12918if test -n "$STRIP_FOR_TARGET"; then
12919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12920$as_echo "$STRIP_FOR_TARGET" >&6; }
12921else
12922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923$as_echo "no" >&6; }
12924fi
12925
12926
12927fi
12928if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12929
12930
12931if test -n "$STRIP_FOR_TARGET"; then
12932  ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12933elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12934  STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12935fi
12936
12937if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12938  for ncn_progname in strip; do
12939    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12940set dummy ${ncn_progname}; ac_word=$2
12941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12942$as_echo_n "checking for $ac_word... " >&6; }
12943if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12944  $as_echo_n "(cached) " >&6
12945else
12946  if test -n "$STRIP_FOR_TARGET"; then
12947  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12948else
12949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12950for as_dir in $PATH
12951do
12952  IFS=$as_save_IFS
12953  test -z "$as_dir" && as_dir=.
12954    for ac_exec_ext in '' $ac_executable_extensions; do
12955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12956    ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12958    break 2
12959  fi
12960done
12961  done
12962IFS=$as_save_IFS
12963
12964fi
12965fi
12966STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12967if test -n "$STRIP_FOR_TARGET"; then
12968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12969$as_echo "$STRIP_FOR_TARGET" >&6; }
12970else
12971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972$as_echo "no" >&6; }
12973fi
12974
12975
12976  done
12977fi
12978
12979if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12980  for ncn_progname in strip; do
12981    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12982$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12983    if test -x $with_build_time_tools/${ncn_progname}; then
12984      ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12985      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12986$as_echo "yes" >&6; }
12987      break
12988    else
12989      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990$as_echo "no" >&6; }
12991    fi
12992  done
12993fi
12994
12995if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12996  for ncn_progname in strip; do
12997    if test -n "$ncn_target_tool_prefix"; then
12998      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12999set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13001$as_echo_n "checking for $ac_word... " >&6; }
13002if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13003  $as_echo_n "(cached) " >&6
13004else
13005  if test -n "$STRIP_FOR_TARGET"; then
13006  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13007else
13008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009for as_dir in $PATH
13010do
13011  IFS=$as_save_IFS
13012  test -z "$as_dir" && as_dir=.
13013    for ac_exec_ext in '' $ac_executable_extensions; do
13014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13015    ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13017    break 2
13018  fi
13019done
13020  done
13021IFS=$as_save_IFS
13022
13023fi
13024fi
13025STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13026if test -n "$STRIP_FOR_TARGET"; then
13027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13028$as_echo "$STRIP_FOR_TARGET" >&6; }
13029else
13030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031$as_echo "no" >&6; }
13032fi
13033
13034
13035    fi
13036    if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13037      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13038set dummy ${ncn_progname}; ac_word=$2
13039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040$as_echo_n "checking for $ac_word... " >&6; }
13041if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13042  $as_echo_n "(cached) " >&6
13043else
13044  if test -n "$STRIP_FOR_TARGET"; then
13045  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13046else
13047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048for as_dir in $PATH
13049do
13050  IFS=$as_save_IFS
13051  test -z "$as_dir" && as_dir=.
13052    for ac_exec_ext in '' $ac_executable_extensions; do
13053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13054    ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056    break 2
13057  fi
13058done
13059  done
13060IFS=$as_save_IFS
13061
13062fi
13063fi
13064STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13065if test -n "$STRIP_FOR_TARGET"; then
13066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13067$as_echo "$STRIP_FOR_TARGET" >&6; }
13068else
13069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070$as_echo "no" >&6; }
13071fi
13072
13073
13074    fi
13075    test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13076  done
13077fi
13078
13079if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13080  set dummy strip
13081  if test $build = $target ; then
13082    STRIP_FOR_TARGET="$2"
13083  else
13084    STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13085  fi
13086else
13087  STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13088fi
13089
13090else
13091  STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13092fi
13093
13094
13095
13096
13097if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13098  if test -n "$with_build_time_tools"; then
13099    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13100$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13101    if test -x $with_build_time_tools/windres; then
13102      WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13103      ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13104      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13105$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13106    else
13107      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108$as_echo "no" >&6; }
13109    fi
13110  elif test $build != $host && test $have_gcc_for_target = yes; then
13111    WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13112    test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13113    test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13114  fi
13115fi
13116if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13117  # Extract the first word of "windres", so it can be a program name with args.
13118set dummy windres; ac_word=$2
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13120$as_echo_n "checking for $ac_word... " >&6; }
13121if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13122  $as_echo_n "(cached) " >&6
13123else
13124  case $WINDRES_FOR_TARGET in
13125  [\\/]* | ?:[\\/]*)
13126  ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13127  ;;
13128  *)
13129  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130for as_dir in $gcc_cv_tool_dirs
13131do
13132  IFS=$as_save_IFS
13133  test -z "$as_dir" && as_dir=.
13134    for ac_exec_ext in '' $ac_executable_extensions; do
13135  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13136    ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13138    break 2
13139  fi
13140done
13141  done
13142IFS=$as_save_IFS
13143
13144  ;;
13145esac
13146fi
13147WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13148if test -n "$WINDRES_FOR_TARGET"; then
13149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13150$as_echo "$WINDRES_FOR_TARGET" >&6; }
13151else
13152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153$as_echo "no" >&6; }
13154fi
13155
13156
13157fi
13158if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13159
13160
13161if test -n "$WINDRES_FOR_TARGET"; then
13162  ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13163elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13164  WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13165fi
13166
13167if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13168  for ncn_progname in windres; do
13169    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13170set dummy ${ncn_progname}; ac_word=$2
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13172$as_echo_n "checking for $ac_word... " >&6; }
13173if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13174  $as_echo_n "(cached) " >&6
13175else
13176  if test -n "$WINDRES_FOR_TARGET"; then
13177  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13178else
13179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180for as_dir in $PATH
13181do
13182  IFS=$as_save_IFS
13183  test -z "$as_dir" && as_dir=.
13184    for ac_exec_ext in '' $ac_executable_extensions; do
13185  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13186    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13188    break 2
13189  fi
13190done
13191  done
13192IFS=$as_save_IFS
13193
13194fi
13195fi
13196WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13197if test -n "$WINDRES_FOR_TARGET"; then
13198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13199$as_echo "$WINDRES_FOR_TARGET" >&6; }
13200else
13201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202$as_echo "no" >&6; }
13203fi
13204
13205
13206  done
13207fi
13208
13209if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13210  for ncn_progname in windres; do
13211    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13212$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13213    if test -x $with_build_time_tools/${ncn_progname}; then
13214      ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13215      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13216$as_echo "yes" >&6; }
13217      break
13218    else
13219      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220$as_echo "no" >&6; }
13221    fi
13222  done
13223fi
13224
13225if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13226  for ncn_progname in windres; do
13227    if test -n "$ncn_target_tool_prefix"; then
13228      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13229set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13231$as_echo_n "checking for $ac_word... " >&6; }
13232if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13233  $as_echo_n "(cached) " >&6
13234else
13235  if test -n "$WINDRES_FOR_TARGET"; then
13236  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13237else
13238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239for as_dir in $PATH
13240do
13241  IFS=$as_save_IFS
13242  test -z "$as_dir" && as_dir=.
13243    for ac_exec_ext in '' $ac_executable_extensions; do
13244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13245    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13247    break 2
13248  fi
13249done
13250  done
13251IFS=$as_save_IFS
13252
13253fi
13254fi
13255WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13256if test -n "$WINDRES_FOR_TARGET"; then
13257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13258$as_echo "$WINDRES_FOR_TARGET" >&6; }
13259else
13260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261$as_echo "no" >&6; }
13262fi
13263
13264
13265    fi
13266    if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13267      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13268set dummy ${ncn_progname}; ac_word=$2
13269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13270$as_echo_n "checking for $ac_word... " >&6; }
13271if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13272  $as_echo_n "(cached) " >&6
13273else
13274  if test -n "$WINDRES_FOR_TARGET"; then
13275  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13276else
13277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13278for as_dir in $PATH
13279do
13280  IFS=$as_save_IFS
13281  test -z "$as_dir" && as_dir=.
13282    for ac_exec_ext in '' $ac_executable_extensions; do
13283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13284    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13286    break 2
13287  fi
13288done
13289  done
13290IFS=$as_save_IFS
13291
13292fi
13293fi
13294WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13295if test -n "$WINDRES_FOR_TARGET"; then
13296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13297$as_echo "$WINDRES_FOR_TARGET" >&6; }
13298else
13299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300$as_echo "no" >&6; }
13301fi
13302
13303
13304    fi
13305    test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13306  done
13307fi
13308
13309if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13310  set dummy windres
13311  if test $build = $target ; then
13312    WINDRES_FOR_TARGET="$2"
13313  else
13314    WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13315  fi
13316else
13317  WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13318fi
13319
13320else
13321  WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13322fi
13323
13324
13325
13326
13327if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13328  if test -n "$with_build_time_tools"; then
13329    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13330$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13331    if test -x $with_build_time_tools/windmc; then
13332      WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13333      ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13334      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13335$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13336    else
13337      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338$as_echo "no" >&6; }
13339    fi
13340  elif test $build != $host && test $have_gcc_for_target = yes; then
13341    WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13342    test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13343    test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13344  fi
13345fi
13346if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13347  # Extract the first word of "windmc", so it can be a program name with args.
13348set dummy windmc; ac_word=$2
13349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13350$as_echo_n "checking for $ac_word... " >&6; }
13351if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13352  $as_echo_n "(cached) " >&6
13353else
13354  case $WINDMC_FOR_TARGET in
13355  [\\/]* | ?:[\\/]*)
13356  ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13357  ;;
13358  *)
13359  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13360for as_dir in $gcc_cv_tool_dirs
13361do
13362  IFS=$as_save_IFS
13363  test -z "$as_dir" && as_dir=.
13364    for ac_exec_ext in '' $ac_executable_extensions; do
13365  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13366    ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13368    break 2
13369  fi
13370done
13371  done
13372IFS=$as_save_IFS
13373
13374  ;;
13375esac
13376fi
13377WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13378if test -n "$WINDMC_FOR_TARGET"; then
13379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13380$as_echo "$WINDMC_FOR_TARGET" >&6; }
13381else
13382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13383$as_echo "no" >&6; }
13384fi
13385
13386
13387fi
13388if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13389
13390
13391if test -n "$WINDMC_FOR_TARGET"; then
13392  ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13393elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13394  WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13395fi
13396
13397if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13398  for ncn_progname in windmc; do
13399    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13400set dummy ${ncn_progname}; ac_word=$2
13401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13402$as_echo_n "checking for $ac_word... " >&6; }
13403if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13404  $as_echo_n "(cached) " >&6
13405else
13406  if test -n "$WINDMC_FOR_TARGET"; then
13407  ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13408else
13409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13410for as_dir in $PATH
13411do
13412  IFS=$as_save_IFS
13413  test -z "$as_dir" && as_dir=.
13414    for ac_exec_ext in '' $ac_executable_extensions; do
13415  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13416    ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13418    break 2
13419  fi
13420done
13421  done
13422IFS=$as_save_IFS
13423
13424fi
13425fi
13426WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13427if test -n "$WINDMC_FOR_TARGET"; then
13428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13429$as_echo "$WINDMC_FOR_TARGET" >&6; }
13430else
13431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432$as_echo "no" >&6; }
13433fi
13434
13435
13436  done
13437fi
13438
13439if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13440  for ncn_progname in windmc; do
13441    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13442$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13443    if test -x $with_build_time_tools/${ncn_progname}; then
13444      ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13445      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13446$as_echo "yes" >&6; }
13447      break
13448    else
13449      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13450$as_echo "no" >&6; }
13451    fi
13452  done
13453fi
13454
13455if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13456  for ncn_progname in windmc; do
13457    if test -n "$ncn_target_tool_prefix"; then
13458      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13459set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13461$as_echo_n "checking for $ac_word... " >&6; }
13462if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13463  $as_echo_n "(cached) " >&6
13464else
13465  if test -n "$WINDMC_FOR_TARGET"; then
13466  ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13467else
13468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469for as_dir in $PATH
13470do
13471  IFS=$as_save_IFS
13472  test -z "$as_dir" && as_dir=.
13473    for ac_exec_ext in '' $ac_executable_extensions; do
13474  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13475    ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13477    break 2
13478  fi
13479done
13480  done
13481IFS=$as_save_IFS
13482
13483fi
13484fi
13485WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13486if test -n "$WINDMC_FOR_TARGET"; then
13487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13488$as_echo "$WINDMC_FOR_TARGET" >&6; }
13489else
13490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491$as_echo "no" >&6; }
13492fi
13493
13494
13495    fi
13496    if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13497      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13498set dummy ${ncn_progname}; ac_word=$2
13499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13500$as_echo_n "checking for $ac_word... " >&6; }
13501if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13502  $as_echo_n "(cached) " >&6
13503else
13504  if test -n "$WINDMC_FOR_TARGET"; then
13505  ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13506else
13507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13508for as_dir in $PATH
13509do
13510  IFS=$as_save_IFS
13511  test -z "$as_dir" && as_dir=.
13512    for ac_exec_ext in '' $ac_executable_extensions; do
13513  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13514    ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13516    break 2
13517  fi
13518done
13519  done
13520IFS=$as_save_IFS
13521
13522fi
13523fi
13524WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13525if test -n "$WINDMC_FOR_TARGET"; then
13526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13527$as_echo "$WINDMC_FOR_TARGET" >&6; }
13528else
13529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530$as_echo "no" >&6; }
13531fi
13532
13533
13534    fi
13535    test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13536  done
13537fi
13538
13539if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13540  set dummy windmc
13541  if test $build = $target ; then
13542    WINDMC_FOR_TARGET="$2"
13543  else
13544    WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13545  fi
13546else
13547  WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13548fi
13549
13550else
13551  WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13552fi
13553
13554
13555RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13556
13557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13558$as_echo_n "checking where to find the target ar... " >&6; }
13559if test "x${build}" != "x${host}" ; then
13560  if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13561    # We already found the complete path
13562    ac_dir=`dirname $AR_FOR_TARGET`
13563    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13564$as_echo "pre-installed in $ac_dir" >&6; }
13565  else
13566    # Canadian cross, just use what we found
13567    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13568$as_echo "pre-installed" >&6; }
13569  fi
13570else
13571  ok=yes
13572  case " ${configdirs} " in
13573    *" binutils "*) ;;
13574    *) ok=no ;;
13575  esac
13576
13577  if test $ok = yes; then
13578    # An in-tree tool is available and we can use it
13579    AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13580    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13581$as_echo "just compiled" >&6; }
13582  elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13583    # We already found the complete path
13584    ac_dir=`dirname $AR_FOR_TARGET`
13585    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13586$as_echo "pre-installed in $ac_dir" >&6; }
13587  elif test "x$target" = "x$host"; then
13588    # We can use an host tool
13589    AR_FOR_TARGET='$(AR)'
13590    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13591$as_echo "host tool" >&6; }
13592  else
13593    # We need a cross tool
13594    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13595$as_echo "pre-installed" >&6; }
13596  fi
13597fi
13598
13599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13600$as_echo_n "checking where to find the target as... " >&6; }
13601if test "x${build}" != "x${host}" ; then
13602  if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13603    # We already found the complete path
13604    ac_dir=`dirname $AS_FOR_TARGET`
13605    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13606$as_echo "pre-installed in $ac_dir" >&6; }
13607  else
13608    # Canadian cross, just use what we found
13609    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13610$as_echo "pre-installed" >&6; }
13611  fi
13612else
13613  ok=yes
13614  case " ${configdirs} " in
13615    *" gas "*) ;;
13616    *) ok=no ;;
13617  esac
13618
13619  if test $ok = yes; then
13620    # An in-tree tool is available and we can use it
13621    AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13622    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13623$as_echo "just compiled" >&6; }
13624  elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13625    # We already found the complete path
13626    ac_dir=`dirname $AS_FOR_TARGET`
13627    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13628$as_echo "pre-installed in $ac_dir" >&6; }
13629  elif test "x$target" = "x$host"; then
13630    # We can use an host tool
13631    AS_FOR_TARGET='$(AS)'
13632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13633$as_echo "host tool" >&6; }
13634  else
13635    # We need a cross tool
13636    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13637$as_echo "pre-installed" >&6; }
13638  fi
13639fi
13640
13641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13642$as_echo_n "checking where to find the target cc... " >&6; }
13643if test "x${build}" != "x${host}" ; then
13644  if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13645    # We already found the complete path
13646    ac_dir=`dirname $CC_FOR_TARGET`
13647    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13648$as_echo "pre-installed in $ac_dir" >&6; }
13649  else
13650    # Canadian cross, just use what we found
13651    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13652$as_echo "pre-installed" >&6; }
13653  fi
13654else
13655  ok=yes
13656  case " ${configdirs} " in
13657    *" gcc "*) ;;
13658    *) ok=no ;;
13659  esac
13660
13661  if test $ok = yes; then
13662    # An in-tree tool is available and we can use it
13663    CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13664    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13665$as_echo "just compiled" >&6; }
13666  elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13667    # We already found the complete path
13668    ac_dir=`dirname $CC_FOR_TARGET`
13669    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13670$as_echo "pre-installed in $ac_dir" >&6; }
13671  elif test "x$target" = "x$host"; then
13672    # We can use an host tool
13673    CC_FOR_TARGET='$(CC)'
13674    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13675$as_echo "host tool" >&6; }
13676  else
13677    # We need a cross tool
13678    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13679$as_echo "pre-installed" >&6; }
13680  fi
13681fi
13682
13683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13684$as_echo_n "checking where to find the target c++... " >&6; }
13685if test "x${build}" != "x${host}" ; then
13686  if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13687    # We already found the complete path
13688    ac_dir=`dirname $CXX_FOR_TARGET`
13689    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13690$as_echo "pre-installed in $ac_dir" >&6; }
13691  else
13692    # Canadian cross, just use what we found
13693    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13694$as_echo "pre-installed" >&6; }
13695  fi
13696else
13697  ok=yes
13698  case " ${configdirs} " in
13699    *" gcc "*) ;;
13700    *) ok=no ;;
13701  esac
13702  case ,${enable_languages}, in
13703    *,c++,*) ;;
13704    *) ok=no ;;
13705  esac
13706  if test $ok = yes; then
13707    # An in-tree tool is available and we can use it
13708    CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13709    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13710$as_echo "just compiled" >&6; }
13711  elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13712    # We already found the complete path
13713    ac_dir=`dirname $CXX_FOR_TARGET`
13714    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13715$as_echo "pre-installed in $ac_dir" >&6; }
13716  elif test "x$target" = "x$host"; then
13717    # We can use an host tool
13718    CXX_FOR_TARGET='$(CXX)'
13719    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13720$as_echo "host tool" >&6; }
13721  else
13722    # We need a cross tool
13723    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13724$as_echo "pre-installed" >&6; }
13725  fi
13726fi
13727
13728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13729$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13730if test "x${build}" != "x${host}" ; then
13731  if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13732    # We already found the complete path
13733    ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13734    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13735$as_echo "pre-installed in $ac_dir" >&6; }
13736  else
13737    # Canadian cross, just use what we found
13738    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13739$as_echo "pre-installed" >&6; }
13740  fi
13741else
13742  ok=yes
13743  case " ${configdirs} " in
13744    *" gcc "*) ;;
13745    *) ok=no ;;
13746  esac
13747  case ,${enable_languages}, in
13748    *,c++,*) ;;
13749    *) ok=no ;;
13750  esac
13751  if test $ok = yes; then
13752    # An in-tree tool is available and we can use it
13753    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'
13754    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13755$as_echo "just compiled" >&6; }
13756  elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13757    # We already found the complete path
13758    ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13759    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13760$as_echo "pre-installed in $ac_dir" >&6; }
13761  elif test "x$target" = "x$host"; then
13762    # We can use an host tool
13763    RAW_CXX_FOR_TARGET='$(CXX)'
13764    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13765$as_echo "host tool" >&6; }
13766  else
13767    # We need a cross tool
13768    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13769$as_echo "pre-installed" >&6; }
13770  fi
13771fi
13772
13773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13774$as_echo_n "checking where to find the target dlltool... " >&6; }
13775if test "x${build}" != "x${host}" ; then
13776  if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13777    # We already found the complete path
13778    ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13780$as_echo "pre-installed in $ac_dir" >&6; }
13781  else
13782    # Canadian cross, just use what we found
13783    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13784$as_echo "pre-installed" >&6; }
13785  fi
13786else
13787  ok=yes
13788  case " ${configdirs} " in
13789    *" binutils "*) ;;
13790    *) ok=no ;;
13791  esac
13792
13793  if test $ok = yes; then
13794    # An in-tree tool is available and we can use it
13795    DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13796    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13797$as_echo "just compiled" >&6; }
13798  elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13799    # We already found the complete path
13800    ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13801    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13802$as_echo "pre-installed in $ac_dir" >&6; }
13803  elif test "x$target" = "x$host"; then
13804    # We can use an host tool
13805    DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13806    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13807$as_echo "host tool" >&6; }
13808  else
13809    # We need a cross tool
13810    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13811$as_echo "pre-installed" >&6; }
13812  fi
13813fi
13814
13815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13816$as_echo_n "checking where to find the target gcc... " >&6; }
13817if test "x${build}" != "x${host}" ; then
13818  if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13819    # We already found the complete path
13820    ac_dir=`dirname $GCC_FOR_TARGET`
13821    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13822$as_echo "pre-installed in $ac_dir" >&6; }
13823  else
13824    # Canadian cross, just use what we found
13825    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13826$as_echo "pre-installed" >&6; }
13827  fi
13828else
13829  ok=yes
13830  case " ${configdirs} " in
13831    *" gcc "*) ;;
13832    *) ok=no ;;
13833  esac
13834
13835  if test $ok = yes; then
13836    # An in-tree tool is available and we can use it
13837    GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13838    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13839$as_echo "just compiled" >&6; }
13840  elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13841    # We already found the complete path
13842    ac_dir=`dirname $GCC_FOR_TARGET`
13843    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13844$as_echo "pre-installed in $ac_dir" >&6; }
13845  elif test "x$target" = "x$host"; then
13846    # We can use an host tool
13847    GCC_FOR_TARGET='$()'
13848    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13849$as_echo "host tool" >&6; }
13850  else
13851    # We need a cross tool
13852    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13853$as_echo "pre-installed" >&6; }
13854  fi
13855fi
13856
13857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13858$as_echo_n "checking where to find the target gcj... " >&6; }
13859if test "x${build}" != "x${host}" ; then
13860  if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13861    # We already found the complete path
13862    ac_dir=`dirname $GCJ_FOR_TARGET`
13863    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13864$as_echo "pre-installed in $ac_dir" >&6; }
13865  else
13866    # Canadian cross, just use what we found
13867    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13868$as_echo "pre-installed" >&6; }
13869  fi
13870else
13871  ok=yes
13872  case " ${configdirs} " in
13873    *" gcc "*) ;;
13874    *) ok=no ;;
13875  esac
13876  case ,${enable_languages}, in
13877    *,java,*) ;;
13878    *) ok=no ;;
13879  esac
13880  if test $ok = yes; then
13881    # An in-tree tool is available and we can use it
13882    GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13883    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13884$as_echo "just compiled" >&6; }
13885  elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13886    # We already found the complete path
13887    ac_dir=`dirname $GCJ_FOR_TARGET`
13888    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13889$as_echo "pre-installed in $ac_dir" >&6; }
13890  elif test "x$target" = "x$host"; then
13891    # We can use an host tool
13892    GCJ_FOR_TARGET='$(GCJ)'
13893    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13894$as_echo "host tool" >&6; }
13895  else
13896    # We need a cross tool
13897    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13898$as_echo "pre-installed" >&6; }
13899  fi
13900fi
13901
13902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13903$as_echo_n "checking where to find the target gfortran... " >&6; }
13904if test "x${build}" != "x${host}" ; then
13905  if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13906    # We already found the complete path
13907    ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13908    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13909$as_echo "pre-installed in $ac_dir" >&6; }
13910  else
13911    # Canadian cross, just use what we found
13912    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13913$as_echo "pre-installed" >&6; }
13914  fi
13915else
13916  ok=yes
13917  case " ${configdirs} " in
13918    *" gcc "*) ;;
13919    *) ok=no ;;
13920  esac
13921  case ,${enable_languages}, in
13922    *,fortran,*) ;;
13923    *) ok=no ;;
13924  esac
13925  if test $ok = yes; then
13926    # An in-tree tool is available and we can use it
13927    GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13928    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13929$as_echo "just compiled" >&6; }
13930  elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13931    # We already found the complete path
13932    ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13933    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13934$as_echo "pre-installed in $ac_dir" >&6; }
13935  elif test "x$target" = "x$host"; then
13936    # We can use an host tool
13937    GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13938    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13939$as_echo "host tool" >&6; }
13940  else
13941    # We need a cross tool
13942    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13943$as_echo "pre-installed" >&6; }
13944  fi
13945fi
13946
13947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13948$as_echo_n "checking where to find the target ld... " >&6; }
13949if test "x${build}" != "x${host}" ; then
13950  if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13951    # We already found the complete path
13952    ac_dir=`dirname $LD_FOR_TARGET`
13953    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13954$as_echo "pre-installed in $ac_dir" >&6; }
13955  else
13956    # Canadian cross, just use what we found
13957    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13958$as_echo "pre-installed" >&6; }
13959  fi
13960else
13961  ok=yes
13962  case " ${configdirs} " in
13963    *" ld "*) ;;
13964    *) ok=no ;;
13965  esac
13966
13967  if test $ok = yes; then
13968    # An in-tree tool is available and we can use it
13969    LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13970    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13971$as_echo "just compiled" >&6; }
13972  elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13973    # We already found the complete path
13974    ac_dir=`dirname $LD_FOR_TARGET`
13975    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13976$as_echo "pre-installed in $ac_dir" >&6; }
13977  elif test "x$target" = "x$host"; then
13978    # We can use an host tool
13979    LD_FOR_TARGET='$(LD)'
13980    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13981$as_echo "host tool" >&6; }
13982  else
13983    # We need a cross tool
13984    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13985$as_echo "pre-installed" >&6; }
13986  fi
13987fi
13988
13989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13990$as_echo_n "checking where to find the target lipo... " >&6; }
13991if test "x${build}" != "x${host}" ; then
13992  if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13993    # We already found the complete path
13994    ac_dir=`dirname $LIPO_FOR_TARGET`
13995    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13996$as_echo "pre-installed in $ac_dir" >&6; }
13997  else
13998    # Canadian cross, just use what we found
13999    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14000$as_echo "pre-installed" >&6; }
14001  fi
14002else
14003  if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14004    # We already found the complete path
14005    ac_dir=`dirname $LIPO_FOR_TARGET`
14006    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14007$as_echo "pre-installed in $ac_dir" >&6; }
14008  elif test "x$target" = "x$host"; then
14009    # We can use an host tool
14010    LIPO_FOR_TARGET='$(LIPO)'
14011    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14012$as_echo "host tool" >&6; }
14013  else
14014    # We need a cross tool
14015    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14016$as_echo "pre-installed" >&6; }
14017  fi
14018fi
14019
14020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14021$as_echo_n "checking where to find the target nm... " >&6; }
14022if test "x${build}" != "x${host}" ; then
14023  if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14024    # We already found the complete path
14025    ac_dir=`dirname $NM_FOR_TARGET`
14026    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14027$as_echo "pre-installed in $ac_dir" >&6; }
14028  else
14029    # Canadian cross, just use what we found
14030    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14031$as_echo "pre-installed" >&6; }
14032  fi
14033else
14034  ok=yes
14035  case " ${configdirs} " in
14036    *" binutils "*) ;;
14037    *) ok=no ;;
14038  esac
14039
14040  if test $ok = yes; then
14041    # An in-tree tool is available and we can use it
14042    NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14043    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14044$as_echo "just compiled" >&6; }
14045  elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14046    # We already found the complete path
14047    ac_dir=`dirname $NM_FOR_TARGET`
14048    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14049$as_echo "pre-installed in $ac_dir" >&6; }
14050  elif test "x$target" = "x$host"; then
14051    # We can use an host tool
14052    NM_FOR_TARGET='$(NM)'
14053    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14054$as_echo "host tool" >&6; }
14055  else
14056    # We need a cross tool
14057    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14058$as_echo "pre-installed" >&6; }
14059  fi
14060fi
14061
14062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14063$as_echo_n "checking where to find the target objdump... " >&6; }
14064if test "x${build}" != "x${host}" ; then
14065  if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14066    # We already found the complete path
14067    ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14068    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14069$as_echo "pre-installed in $ac_dir" >&6; }
14070  else
14071    # Canadian cross, just use what we found
14072    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14073$as_echo "pre-installed" >&6; }
14074  fi
14075else
14076  ok=yes
14077  case " ${configdirs} " in
14078    *" binutils "*) ;;
14079    *) ok=no ;;
14080  esac
14081
14082  if test $ok = yes; then
14083    # An in-tree tool is available and we can use it
14084    OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14085    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14086$as_echo "just compiled" >&6; }
14087  elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14088    # We already found the complete path
14089    ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14090    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14091$as_echo "pre-installed in $ac_dir" >&6; }
14092  elif test "x$target" = "x$host"; then
14093    # We can use an host tool
14094    OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14095    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14096$as_echo "host tool" >&6; }
14097  else
14098    # We need a cross tool
14099    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14100$as_echo "pre-installed" >&6; }
14101  fi
14102fi
14103
14104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14105$as_echo_n "checking where to find the target ranlib... " >&6; }
14106if test "x${build}" != "x${host}" ; then
14107  if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14108    # We already found the complete path
14109    ac_dir=`dirname $RANLIB_FOR_TARGET`
14110    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14111$as_echo "pre-installed in $ac_dir" >&6; }
14112  else
14113    # Canadian cross, just use what we found
14114    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14115$as_echo "pre-installed" >&6; }
14116  fi
14117else
14118  ok=yes
14119  case " ${configdirs} " in
14120    *" binutils "*) ;;
14121    *) ok=no ;;
14122  esac
14123
14124  if test $ok = yes; then
14125    # An in-tree tool is available and we can use it
14126    RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14127    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14128$as_echo "just compiled" >&6; }
14129  elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14130    # We already found the complete path
14131    ac_dir=`dirname $RANLIB_FOR_TARGET`
14132    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14133$as_echo "pre-installed in $ac_dir" >&6; }
14134  elif test "x$target" = "x$host"; then
14135    # We can use an host tool
14136    RANLIB_FOR_TARGET='$(RANLIB)'
14137    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14138$as_echo "host tool" >&6; }
14139  else
14140    # We need a cross tool
14141    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14142$as_echo "pre-installed" >&6; }
14143  fi
14144fi
14145
14146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14147$as_echo_n "checking where to find the target strip... " >&6; }
14148if test "x${build}" != "x${host}" ; then
14149  if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14150    # We already found the complete path
14151    ac_dir=`dirname $STRIP_FOR_TARGET`
14152    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14153$as_echo "pre-installed in $ac_dir" >&6; }
14154  else
14155    # Canadian cross, just use what we found
14156    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14157$as_echo "pre-installed" >&6; }
14158  fi
14159else
14160  ok=yes
14161  case " ${configdirs} " in
14162    *" binutils "*) ;;
14163    *) ok=no ;;
14164  esac
14165
14166  if test $ok = yes; then
14167    # An in-tree tool is available and we can use it
14168    STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
14169    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14170$as_echo "just compiled" >&6; }
14171  elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14172    # We already found the complete path
14173    ac_dir=`dirname $STRIP_FOR_TARGET`
14174    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14175$as_echo "pre-installed in $ac_dir" >&6; }
14176  elif test "x$target" = "x$host"; then
14177    # We can use an host tool
14178    STRIP_FOR_TARGET='$(STRIP)'
14179    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14180$as_echo "host tool" >&6; }
14181  else
14182    # We need a cross tool
14183    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14184$as_echo "pre-installed" >&6; }
14185  fi
14186fi
14187
14188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14189$as_echo_n "checking where to find the target windres... " >&6; }
14190if test "x${build}" != "x${host}" ; then
14191  if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14192    # We already found the complete path
14193    ac_dir=`dirname $WINDRES_FOR_TARGET`
14194    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14195$as_echo "pre-installed in $ac_dir" >&6; }
14196  else
14197    # Canadian cross, just use what we found
14198    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14199$as_echo "pre-installed" >&6; }
14200  fi
14201else
14202  ok=yes
14203  case " ${configdirs} " in
14204    *" binutils "*) ;;
14205    *) ok=no ;;
14206  esac
14207
14208  if test $ok = yes; then
14209    # An in-tree tool is available and we can use it
14210    WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14211    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14212$as_echo "just compiled" >&6; }
14213  elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14214    # We already found the complete path
14215    ac_dir=`dirname $WINDRES_FOR_TARGET`
14216    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14217$as_echo "pre-installed in $ac_dir" >&6; }
14218  elif test "x$target" = "x$host"; then
14219    # We can use an host tool
14220    WINDRES_FOR_TARGET='$(WINDRES)'
14221    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14222$as_echo "host tool" >&6; }
14223  else
14224    # We need a cross tool
14225    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14226$as_echo "pre-installed" >&6; }
14227  fi
14228fi
14229
14230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14231$as_echo_n "checking where to find the target windmc... " >&6; }
14232if test "x${build}" != "x${host}" ; then
14233  if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14234    # We already found the complete path
14235    ac_dir=`dirname $WINDMC_FOR_TARGET`
14236    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14237$as_echo "pre-installed in $ac_dir" >&6; }
14238  else
14239    # Canadian cross, just use what we found
14240    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14241$as_echo "pre-installed" >&6; }
14242  fi
14243else
14244  ok=yes
14245  case " ${configdirs} " in
14246    *" binutils "*) ;;
14247    *) ok=no ;;
14248  esac
14249
14250  if test $ok = yes; then
14251    # An in-tree tool is available and we can use it
14252    WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14253    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14254$as_echo "just compiled" >&6; }
14255  elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14256    # We already found the complete path
14257    ac_dir=`dirname $WINDMC_FOR_TARGET`
14258    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14259$as_echo "pre-installed in $ac_dir" >&6; }
14260  elif test "x$target" = "x$host"; then
14261    # We can use an host tool
14262    WINDMC_FOR_TARGET='$(WINDMC)'
14263    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14264$as_echo "host tool" >&6; }
14265  else
14266    # We need a cross tool
14267    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14268$as_echo "pre-installed" >&6; }
14269  fi
14270fi
14271
14272
14273
14274
14275
14276# Certain tools may need extra flags.
14277AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14278RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14279NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14280
14281# When building target libraries, except in a Canadian cross, we use
14282# the same toolchain as the compiler we just built.
14283COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14284COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14285COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14286if test $host = $build; then
14287  case " $configdirs " in
14288    *" gcc "*)
14289      COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14290      COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14291      COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14292      ;;
14293  esac
14294fi
14295
14296
14297
14298
14299
14300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14301$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14302# Check whether --enable-maintainer-mode was given.
14303if test "${enable_maintainer_mode+set}" = set; then :
14304  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14305else
14306  USE_MAINTAINER_MODE=no
14307fi
14308
14309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14310$as_echo "$USE_MAINTAINER_MODE" >&6; }
14311
14312
14313if test "$USE_MAINTAINER_MODE" = yes; then
14314  MAINTAINER_MODE_TRUE=
14315  MAINTAINER_MODE_FALSE='#'
14316else
14317  MAINTAINER_MODE_TRUE='#'
14318  MAINTAINER_MODE_FALSE=
14319fi
14320MAINT=$MAINTAINER_MODE_TRUE
14321
14322# ---------------------
14323# GCC bootstrap support
14324# ---------------------
14325
14326# Stage specific cflags for build.
14327stage1_cflags="-g"
14328case $build in
14329  vax-*-*)
14330    case ${GCC} in
14331      yes) stage1_cflags="-g -Wa,-J" ;;
14332      *) stage1_cflags="-g -J" ;;
14333    esac ;;
14334esac
14335
14336# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14337if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14338  saved_CFLAGS="$CFLAGS"
14339
14340  # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14341  CFLAGS="$CFLAGS -fkeep-inline-functions"
14342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14343$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345/* end confdefs.h.  */
14346
14347#if (__GNUC__ < 3) \
14348    || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14349			  || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14350#error http://gcc.gnu.org/PR29382
14351#endif
14352
14353int
14354main ()
14355{
14356
14357  ;
14358  return 0;
14359}
14360_ACEOF
14361if ac_fn_c_try_compile "$LINENO"; then :
14362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14363$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14364else
14365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14366$as_echo "no" >&6; }
14367fi
14368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14369
14370  CFLAGS="$saved_CFLAGS"
14371fi
14372
14373
14374
14375# Enable --enable-checking in stage1 of the compiler.
14376# Check whether --enable-stage1-checking was given.
14377if test "${enable_stage1_checking+set}" = set; then :
14378  enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14379else
14380  if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14381  stage1_checking=--enable-checking=yes,types
14382else
14383  stage1_checking=--enable-checking=$enable_checking,types
14384fi
14385fi
14386
14387
14388
14389# Enable -Werror in bootstrap stage2 and later.
14390# Check whether --enable-werror was given.
14391if test "${enable_werror+set}" = set; then :
14392  enableval=$enable_werror;
14393else
14394  if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14395  enable_werror=yes
14396else
14397  enable_werror=no
14398fi
14399fi
14400
14401case ${enable_werror} in
14402  yes) stage2_werror_flag="--enable-werror-always" ;;
14403  *) stage2_werror_flag="" ;;
14404esac
14405
14406
14407# Specify what files to not compare during bootstrap.
14408
14409compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14410case "$target" in
14411  hppa*64*-*-hpux*) ;;
14412  hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14413esac
14414case " $configdirs " in
14415*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14416esac
14417
14418
14419ac_config_files="$ac_config_files Makefile"
14420
14421cat >confcache <<\_ACEOF
14422# This file is a shell script that caches the results of configure
14423# tests run on this system so they can be shared between configure
14424# scripts and configure runs, see configure's option --config-cache.
14425# It is not useful on other systems.  If it contains results you don't
14426# want to keep, you may remove or edit it.
14427#
14428# config.status only pays attention to the cache file if you give it
14429# the --recheck option to rerun configure.
14430#
14431# `ac_cv_env_foo' variables (set or unset) will be overridden when
14432# loading this file, other *unset* `ac_cv_foo' will be assigned the
14433# following values.
14434
14435_ACEOF
14436
14437# The following way of writing the cache mishandles newlines in values,
14438# but we know of no workaround that is simple, portable, and efficient.
14439# So, we kill variables containing newlines.
14440# Ultrix sh set writes to stderr and can't be redirected directly,
14441# and sets the high bit in the cache file unless we assign to the vars.
14442(
14443  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14444    eval ac_val=\$$ac_var
14445    case $ac_val in #(
14446    *${as_nl}*)
14447      case $ac_var in #(
14448      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14449$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14450      esac
14451      case $ac_var in #(
14452      _ | IFS | as_nl) ;; #(
14453      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14454      *) { eval $ac_var=; unset $ac_var;} ;;
14455      esac ;;
14456    esac
14457  done
14458
14459  (set) 2>&1 |
14460    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14461    *${as_nl}ac_space=\ *)
14462      # `set' does not quote correctly, so add quotes: double-quote
14463      # substitution turns \\\\ into \\, and sed turns \\ into \.
14464      sed -n \
14465	"s/'/'\\\\''/g;
14466	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14467      ;; #(
14468    *)
14469      # `set' quotes correctly as required by POSIX, so do not add quotes.
14470      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14471      ;;
14472    esac |
14473    sort
14474) |
14475  sed '
14476     /^ac_cv_env_/b end
14477     t clear
14478     :clear
14479     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14480     t end
14481     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14482     :end' >>confcache
14483if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14484  if test -w "$cache_file"; then
14485    test "x$cache_file" != "x/dev/null" &&
14486      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14487$as_echo "$as_me: updating cache $cache_file" >&6;}
14488    cat confcache >$cache_file
14489  else
14490    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14491$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14492  fi
14493fi
14494rm -f confcache
14495
14496test "x$prefix" = xNONE && prefix=$ac_default_prefix
14497# Let make expand exec_prefix.
14498test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14499
14500# Transform confdefs.h into DEFS.
14501# Protect against shell expansion while executing Makefile rules.
14502# Protect against Makefile macro expansion.
14503#
14504# If the first sed substitution is executed (which looks for macros that
14505# take arguments), then branch to the quote section.  Otherwise,
14506# look for a macro that doesn't take arguments.
14507ac_script='
14508:mline
14509/\\$/{
14510 N
14511 s,\\\n,,
14512 b mline
14513}
14514t clear
14515:clear
14516s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
14517t quote
14518s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
14519t quote
14520b any
14521:quote
14522s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14523s/\[/\\&/g
14524s/\]/\\&/g
14525s/\$/$$/g
14526H
14527:any
14528${
14529	g
14530	s/^\n//
14531	s/\n/ /g
14532	p
14533}
14534'
14535DEFS=`sed -n "$ac_script" confdefs.h`
14536
14537
14538ac_libobjs=
14539ac_ltlibobjs=
14540for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14541  # 1. Remove the extension, and $U if already installed.
14542  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14543  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14544  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14545  #    will be set to the directory where LIBOBJS objects are built.
14546  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14547  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14548done
14549LIBOBJS=$ac_libobjs
14550
14551LTLIBOBJS=$ac_ltlibobjs
14552
14553
14554
14555: ${CONFIG_STATUS=./config.status}
14556ac_write_fail=0
14557ac_clean_files_save=$ac_clean_files
14558ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14559{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14560$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14561as_write_fail=0
14562cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14563#! $SHELL
14564# Generated by $as_me.
14565# Run this file to recreate the current configuration.
14566# Compiler output produced by configure, useful for debugging
14567# configure, is in config.log if it exists.
14568
14569debug=false
14570ac_cs_recheck=false
14571ac_cs_silent=false
14572
14573SHELL=\${CONFIG_SHELL-$SHELL}
14574export SHELL
14575_ASEOF
14576cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14577## -------------------- ##
14578## M4sh Initialization. ##
14579## -------------------- ##
14580
14581# Be more Bourne compatible
14582DUALCASE=1; export DUALCASE # for MKS sh
14583if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14584  emulate sh
14585  NULLCMD=:
14586  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14587  # is contrary to our usage.  Disable this feature.
14588  alias -g '${1+"$@"}'='"$@"'
14589  setopt NO_GLOB_SUBST
14590else
14591  case `(set -o) 2>/dev/null` in #(
14592  *posix*) :
14593    set -o posix ;; #(
14594  *) :
14595     ;;
14596esac
14597fi
14598
14599
14600as_nl='
14601'
14602export as_nl
14603# Printing a long string crashes Solaris 7 /usr/bin/printf.
14604as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14605as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14606as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14607# Prefer a ksh shell builtin over an external printf program on Solaris,
14608# but without wasting forks for bash or zsh.
14609if test -z "$BASH_VERSION$ZSH_VERSION" \
14610    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14611  as_echo='print -r --'
14612  as_echo_n='print -rn --'
14613elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14614  as_echo='printf %s\n'
14615  as_echo_n='printf %s'
14616else
14617  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14618    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14619    as_echo_n='/usr/ucb/echo -n'
14620  else
14621    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14622    as_echo_n_body='eval
14623      arg=$1;
14624      case $arg in #(
14625      *"$as_nl"*)
14626	expr "X$arg" : "X\\(.*\\)$as_nl";
14627	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14628      esac;
14629      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14630    '
14631    export as_echo_n_body
14632    as_echo_n='sh -c $as_echo_n_body as_echo'
14633  fi
14634  export as_echo_body
14635  as_echo='sh -c $as_echo_body as_echo'
14636fi
14637
14638# The user is always right.
14639if test "${PATH_SEPARATOR+set}" != set; then
14640  PATH_SEPARATOR=:
14641  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14642    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14643      PATH_SEPARATOR=';'
14644  }
14645fi
14646
14647
14648# IFS
14649# We need space, tab and new line, in precisely that order.  Quoting is
14650# there to prevent editors from complaining about space-tab.
14651# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14652# splitting by setting IFS to empty value.)
14653IFS=" ""	$as_nl"
14654
14655# Find who we are.  Look in the path if we contain no directory separator.
14656case $0 in #((
14657  *[\\/]* ) as_myself=$0 ;;
14658  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14659for as_dir in $PATH
14660do
14661  IFS=$as_save_IFS
14662  test -z "$as_dir" && as_dir=.
14663    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14664  done
14665IFS=$as_save_IFS
14666
14667     ;;
14668esac
14669# We did not find ourselves, most probably we were run as `sh COMMAND'
14670# in which case we are not to be found in the path.
14671if test "x$as_myself" = x; then
14672  as_myself=$0
14673fi
14674if test ! -f "$as_myself"; then
14675  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14676  exit 1
14677fi
14678
14679# Unset variables that we do not need and which cause bugs (e.g. in
14680# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14681# suppresses any "Segmentation fault" message there.  '((' could
14682# trigger a bug in pdksh 5.2.14.
14683for as_var in BASH_ENV ENV MAIL MAILPATH
14684do eval test x\${$as_var+set} = xset \
14685  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14686done
14687PS1='$ '
14688PS2='> '
14689PS4='+ '
14690
14691# NLS nuisances.
14692LC_ALL=C
14693export LC_ALL
14694LANGUAGE=C
14695export LANGUAGE
14696
14697# CDPATH.
14698(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14699
14700
14701# as_fn_error ERROR [LINENO LOG_FD]
14702# ---------------------------------
14703# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14704# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14705# script with status $?, using 1 if that was 0.
14706as_fn_error ()
14707{
14708  as_status=$?; test $as_status -eq 0 && as_status=1
14709  if test "$3"; then
14710    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14711    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14712  fi
14713  $as_echo "$as_me: error: $1" >&2
14714  as_fn_exit $as_status
14715} # as_fn_error
14716
14717
14718# as_fn_set_status STATUS
14719# -----------------------
14720# Set $? to STATUS, without forking.
14721as_fn_set_status ()
14722{
14723  return $1
14724} # as_fn_set_status
14725
14726# as_fn_exit STATUS
14727# -----------------
14728# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14729as_fn_exit ()
14730{
14731  set +e
14732  as_fn_set_status $1
14733  exit $1
14734} # as_fn_exit
14735
14736# as_fn_unset VAR
14737# ---------------
14738# Portably unset VAR.
14739as_fn_unset ()
14740{
14741  { eval $1=; unset $1;}
14742}
14743as_unset=as_fn_unset
14744# as_fn_append VAR VALUE
14745# ----------------------
14746# Append the text in VALUE to the end of the definition contained in VAR. Take
14747# advantage of any shell optimizations that allow amortized linear growth over
14748# repeated appends, instead of the typical quadratic growth present in naive
14749# implementations.
14750if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14751  eval 'as_fn_append ()
14752  {
14753    eval $1+=\$2
14754  }'
14755else
14756  as_fn_append ()
14757  {
14758    eval $1=\$$1\$2
14759  }
14760fi # as_fn_append
14761
14762# as_fn_arith ARG...
14763# ------------------
14764# Perform arithmetic evaluation on the ARGs, and store the result in the
14765# global $as_val. Take advantage of shells that can avoid forks. The arguments
14766# must be portable across $(()) and expr.
14767if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14768  eval 'as_fn_arith ()
14769  {
14770    as_val=$(( $* ))
14771  }'
14772else
14773  as_fn_arith ()
14774  {
14775    as_val=`expr "$@" || test $? -eq 1`
14776  }
14777fi # as_fn_arith
14778
14779
14780if expr a : '\(a\)' >/dev/null 2>&1 &&
14781   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14782  as_expr=expr
14783else
14784  as_expr=false
14785fi
14786
14787if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14788  as_basename=basename
14789else
14790  as_basename=false
14791fi
14792
14793if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14794  as_dirname=dirname
14795else
14796  as_dirname=false
14797fi
14798
14799as_me=`$as_basename -- "$0" ||
14800$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14801	 X"$0" : 'X\(//\)$' \| \
14802	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14803$as_echo X/"$0" |
14804    sed '/^.*\/\([^/][^/]*\)\/*$/{
14805	    s//\1/
14806	    q
14807	  }
14808	  /^X\/\(\/\/\)$/{
14809	    s//\1/
14810	    q
14811	  }
14812	  /^X\/\(\/\).*/{
14813	    s//\1/
14814	    q
14815	  }
14816	  s/.*/./; q'`
14817
14818# Avoid depending upon Character Ranges.
14819as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14820as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14821as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14822as_cr_digits='0123456789'
14823as_cr_alnum=$as_cr_Letters$as_cr_digits
14824
14825ECHO_C= ECHO_N= ECHO_T=
14826case `echo -n x` in #(((((
14827-n*)
14828  case `echo 'xy\c'` in
14829  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14830  xy)  ECHO_C='\c';;
14831  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14832       ECHO_T='	';;
14833  esac;;
14834*)
14835  ECHO_N='-n';;
14836esac
14837
14838rm -f conf$$ conf$$.exe conf$$.file
14839if test -d conf$$.dir; then
14840  rm -f conf$$.dir/conf$$.file
14841else
14842  rm -f conf$$.dir
14843  mkdir conf$$.dir 2>/dev/null
14844fi
14845if (echo >conf$$.file) 2>/dev/null; then
14846  if ln -s conf$$.file conf$$ 2>/dev/null; then
14847    as_ln_s='ln -s'
14848    # ... but there are two gotchas:
14849    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14850    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14851    # In both cases, we have to default to `cp -p'.
14852    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14853      as_ln_s='cp -p'
14854  elif ln conf$$.file conf$$ 2>/dev/null; then
14855    as_ln_s=ln
14856  else
14857    as_ln_s='cp -p'
14858  fi
14859else
14860  as_ln_s='cp -p'
14861fi
14862rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14863rmdir conf$$.dir 2>/dev/null
14864
14865
14866# as_fn_mkdir_p
14867# -------------
14868# Create "$as_dir" as a directory, including parents if necessary.
14869as_fn_mkdir_p ()
14870{
14871
14872  case $as_dir in #(
14873  -*) as_dir=./$as_dir;;
14874  esac
14875  test -d "$as_dir" || eval $as_mkdir_p || {
14876    as_dirs=
14877    while :; do
14878      case $as_dir in #(
14879      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14880      *) as_qdir=$as_dir;;
14881      esac
14882      as_dirs="'$as_qdir' $as_dirs"
14883      as_dir=`$as_dirname -- "$as_dir" ||
14884$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14885	 X"$as_dir" : 'X\(//\)[^/]' \| \
14886	 X"$as_dir" : 'X\(//\)$' \| \
14887	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14888$as_echo X"$as_dir" |
14889    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14890	    s//\1/
14891	    q
14892	  }
14893	  /^X\(\/\/\)[^/].*/{
14894	    s//\1/
14895	    q
14896	  }
14897	  /^X\(\/\/\)$/{
14898	    s//\1/
14899	    q
14900	  }
14901	  /^X\(\/\).*/{
14902	    s//\1/
14903	    q
14904	  }
14905	  s/.*/./; q'`
14906      test -d "$as_dir" && break
14907    done
14908    test -z "$as_dirs" || eval "mkdir $as_dirs"
14909  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14910
14911
14912} # as_fn_mkdir_p
14913if mkdir -p . 2>/dev/null; then
14914  as_mkdir_p='mkdir -p "$as_dir"'
14915else
14916  test -d ./-p && rmdir ./-p
14917  as_mkdir_p=false
14918fi
14919
14920if test -x / >/dev/null 2>&1; then
14921  as_test_x='test -x'
14922else
14923  if ls -dL / >/dev/null 2>&1; then
14924    as_ls_L_option=L
14925  else
14926    as_ls_L_option=
14927  fi
14928  as_test_x='
14929    eval sh -c '\''
14930      if test -d "$1"; then
14931	test -d "$1/.";
14932      else
14933	case $1 in #(
14934	-*)set "./$1";;
14935	esac;
14936	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14937	???[sx]*):;;*)false;;esac;fi
14938    '\'' sh
14939  '
14940fi
14941as_executable_p=$as_test_x
14942
14943# Sed expression to map a string onto a valid CPP name.
14944as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14945
14946# Sed expression to map a string onto a valid variable name.
14947as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14948
14949
14950exec 6>&1
14951## ----------------------------------- ##
14952## Main body of $CONFIG_STATUS script. ##
14953## ----------------------------------- ##
14954_ASEOF
14955test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14956
14957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14958# Save the log message, to keep $0 and so on meaningful, and to
14959# report actual input values of CONFIG_FILES etc. instead of their
14960# values after options handling.
14961ac_log="
14962This file was extended by $as_me, which was
14963generated by GNU Autoconf 2.64.  Invocation command line was
14964
14965  CONFIG_FILES    = $CONFIG_FILES
14966  CONFIG_HEADERS  = $CONFIG_HEADERS
14967  CONFIG_LINKS    = $CONFIG_LINKS
14968  CONFIG_COMMANDS = $CONFIG_COMMANDS
14969  $ $0 $@
14970
14971on `(hostname || uname -n) 2>/dev/null | sed 1q`
14972"
14973
14974_ACEOF
14975
14976case $ac_config_files in *"
14977"*) set x $ac_config_files; shift; ac_config_files=$*;;
14978esac
14979
14980
14981
14982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14983# Files that config.status was made for.
14984config_files="$ac_config_files"
14985
14986_ACEOF
14987
14988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14989ac_cs_usage="\
14990\`$as_me' instantiates files and other configuration actions
14991from templates according to the current configuration.  Unless the files
14992and actions are specified as TAGs, all are instantiated by default.
14993
14994Usage: $0 [OPTION]... [TAG]...
14995
14996  -h, --help       print this help, then exit
14997  -V, --version    print version number and configuration settings, then exit
14998  -q, --quiet, --silent
14999                   do not print progress messages
15000  -d, --debug      don't remove temporary files
15001      --recheck    update $as_me by reconfiguring in the same conditions
15002      --file=FILE[:TEMPLATE]
15003                   instantiate the configuration file FILE
15004
15005Configuration files:
15006$config_files
15007
15008Report bugs to the package provider."
15009
15010_ACEOF
15011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15012ac_cs_version="\\
15013config.status
15014configured by $0, generated by GNU Autoconf 2.64,
15015  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15016
15017Copyright (C) 2009 Free Software Foundation, Inc.
15018This config.status script is free software; the Free Software Foundation
15019gives unlimited permission to copy, distribute and modify it."
15020
15021ac_pwd='$ac_pwd'
15022srcdir='$srcdir'
15023INSTALL='$INSTALL'
15024AWK='$AWK'
15025test -n "\$AWK" || AWK=awk
15026_ACEOF
15027
15028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15029# The default lists apply if the user does not specify any file.
15030ac_need_defaults=:
15031while test $# != 0
15032do
15033  case $1 in
15034  --*=*)
15035    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15036    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15037    ac_shift=:
15038    ;;
15039  *)
15040    ac_option=$1
15041    ac_optarg=$2
15042    ac_shift=shift
15043    ;;
15044  esac
15045
15046  case $ac_option in
15047  # Handling of the options.
15048  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15049    ac_cs_recheck=: ;;
15050  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15051    $as_echo "$ac_cs_version"; exit ;;
15052  --debug | --debu | --deb | --de | --d | -d )
15053    debug=: ;;
15054  --file | --fil | --fi | --f )
15055    $ac_shift
15056    case $ac_optarg in
15057    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15058    esac
15059    as_fn_append CONFIG_FILES " '$ac_optarg'"
15060    ac_need_defaults=false;;
15061  --he | --h |  --help | --hel | -h )
15062    $as_echo "$ac_cs_usage"; exit ;;
15063  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15064  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15065    ac_cs_silent=: ;;
15066
15067  # This is an error.
15068  -*) as_fn_error "unrecognized option: \`$1'
15069Try \`$0 --help' for more information." ;;
15070
15071  *) as_fn_append ac_config_targets " $1"
15072     ac_need_defaults=false ;;
15073
15074  esac
15075  shift
15076done
15077
15078ac_configure_extra_args=
15079
15080if $ac_cs_silent; then
15081  exec 6>/dev/null
15082  ac_configure_extra_args="$ac_configure_extra_args --silent"
15083fi
15084
15085_ACEOF
15086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15087if \$ac_cs_recheck; then
15088  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15089  shift
15090  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15091  CONFIG_SHELL='$SHELL'
15092  export CONFIG_SHELL
15093  exec "\$@"
15094fi
15095
15096_ACEOF
15097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15098exec 5>>config.log
15099{
15100  echo
15101  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15102## Running $as_me. ##
15103_ASBOX
15104  $as_echo "$ac_log"
15105} >&5
15106
15107_ACEOF
15108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15109#
15110# INIT-COMMANDS
15111#
15112extrasub_build="$extrasub_build"
15113   extrasub_host="$extrasub_host"
15114   extrasub_target="$extrasub_target"
15115
15116_ACEOF
15117
15118cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15119
15120# Handling of arguments.
15121for ac_config_target in $ac_config_targets
15122do
15123  case $ac_config_target in
15124    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15125
15126  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15127  esac
15128done
15129
15130
15131# If the user did not use the arguments to specify the items to instantiate,
15132# then the envvar interface is used.  Set only those that are not.
15133# We use the long form for the default assignment because of an extremely
15134# bizarre bug on SunOS 4.1.3.
15135if $ac_need_defaults; then
15136  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15137fi
15138
15139# Have a temporary directory for convenience.  Make it in the build tree
15140# simply because there is no reason against having it here, and in addition,
15141# creating and moving files from /tmp can sometimes cause problems.
15142# Hook for its removal unless debugging.
15143# Note that there is a small window in which the directory will not be cleaned:
15144# after its creation but before its name has been assigned to `$tmp'.
15145$debug ||
15146{
15147  tmp=
15148  trap 'exit_status=$?
15149  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15150' 0
15151  trap 'as_fn_exit 1' 1 2 13 15
15152}
15153# Create a (secure) tmp directory for tmp files.
15154
15155{
15156  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15157  test -n "$tmp" && test -d "$tmp"
15158}  ||
15159{
15160  tmp=./conf$$-$RANDOM
15161  (umask 077 && mkdir "$tmp")
15162} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15163
15164# Set up the scripts for CONFIG_FILES section.
15165# No need to generate them if there are no CONFIG_FILES.
15166# This happens for instance with `./config.status config.h'.
15167if test -n "$CONFIG_FILES"; then
15168
15169if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15170  ac_cs_awk_getline=:
15171  ac_cs_awk_pipe_init=
15172  ac_cs_awk_read_file='
15173      while ((getline aline < (F[key])) > 0)
15174	print(aline)
15175      close(F[key])'
15176  ac_cs_awk_pipe_fini=
15177else
15178  ac_cs_awk_getline=false
15179  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15180  ac_cs_awk_read_file='
15181      print "|#_!!_#|"
15182      print "cat " F[key] " &&"
15183      '$ac_cs_awk_pipe_init
15184  # The final `:' finishes the AND list.
15185  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15186fi
15187ac_cr=`echo X | tr X '\015'`
15188# On cygwin, bash can eat \r inside `` if the user requested igncr.
15189# But we know of no other shell where ac_cr would be empty at this
15190# point, so we can use a bashism as a fallback.
15191if test "x$ac_cr" = x; then
15192  eval ac_cr=\$\'\\r\'
15193fi
15194ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15195if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15196  ac_cs_awk_cr='\r'
15197else
15198  ac_cs_awk_cr=$ac_cr
15199fi
15200
15201echo 'BEGIN {' >"$tmp/subs1.awk" &&
15202_ACEOF
15203
15204# Create commands to substitute file output variables.
15205{
15206  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15207  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15208  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15209  echo "_ACAWK" &&
15210  echo "_ACEOF"
15211} >conf$$files.sh &&
15212. ./conf$$files.sh ||
15213  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15214rm -f conf$$files.sh
15215
15216{
15217  echo "cat >conf$$subs.awk <<_ACEOF" &&
15218  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15219  echo "_ACEOF"
15220} >conf$$subs.sh ||
15221  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15222ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15223ac_delim='%!_!# '
15224for ac_last_try in false false false false false :; do
15225  . ./conf$$subs.sh ||
15226    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15227
15228  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15229  if test $ac_delim_n = $ac_delim_num; then
15230    break
15231  elif $ac_last_try; then
15232    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15233  else
15234    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15235  fi
15236done
15237rm -f conf$$subs.sh
15238
15239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15240cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15241_ACEOF
15242sed -n '
15243h
15244s/^/S["/; s/!.*/"]=/
15245p
15246g
15247s/^[^!]*!//
15248:repl
15249t repl
15250s/'"$ac_delim"'$//
15251t delim
15252:nl
15253h
15254s/\(.\{148\}\).*/\1/
15255t more1
15256s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15257p
15258n
15259b repl
15260:more1
15261s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15262p
15263g
15264s/.\{148\}//
15265t nl
15266:delim
15267h
15268s/\(.\{148\}\).*/\1/
15269t more2
15270s/["\\]/\\&/g; s/^/"/; s/$/"/
15271p
15272b
15273:more2
15274s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15275p
15276g
15277s/.\{148\}//
15278t delim
15279' <conf$$subs.awk | sed '
15280/^[^""]/{
15281  N
15282  s/\n//
15283}
15284' >>$CONFIG_STATUS || ac_write_fail=1
15285rm -f conf$$subs.awk
15286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15287_ACAWK
15288cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15289  for (key in S) S_is_set[key] = 1
15290  FS = ""
15291  \$ac_cs_awk_pipe_init
15292}
15293{
15294  line = $ 0
15295  nfields = split(line, field, "@")
15296  substed = 0
15297  len = length(field[1])
15298  for (i = 2; i < nfields; i++) {
15299    key = field[i]
15300    keylen = length(key)
15301    if (S_is_set[key]) {
15302      value = S[key]
15303      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15304      len += length(value) + length(field[++i])
15305      substed = 1
15306    } else
15307      len += 1 + keylen
15308  }
15309  if (nfields == 3 && !substed) {
15310    key = field[2]
15311    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
15312      \$ac_cs_awk_read_file
15313      next
15314    }
15315  }
15316  print line
15317}
15318\$ac_cs_awk_pipe_fini
15319_ACAWK
15320_ACEOF
15321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15322if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15323  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15324else
15325  cat
15326fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15327  || as_fn_error "could not setup config files machinery" "$LINENO" 5
15328_ACEOF
15329
15330# VPATH may cause trouble with some makes, so we remove $(srcdir),
15331# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15332# trailing colons and then remove the whole line if VPATH becomes empty
15333# (actually we leave an empty line to preserve line numbers).
15334if test "x$srcdir" = x.; then
15335  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15336s/:*\$(srcdir):*/:/
15337s/:*\${srcdir}:*/:/
15338s/:*@srcdir@:*/:/
15339s/^\([^=]*=[	 ]*\):*/\1/
15340s/:*$//
15341s/^[^=]*=[	 ]*$//
15342}'
15343fi
15344
15345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15346fi # test -n "$CONFIG_FILES"
15347
15348
15349eval set X "  :F $CONFIG_FILES      "
15350shift
15351for ac_tag
15352do
15353  case $ac_tag in
15354  :[FHLC]) ac_mode=$ac_tag; continue;;
15355  esac
15356  case $ac_mode$ac_tag in
15357  :[FHL]*:*);;
15358  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15359  :[FH]-) ac_tag=-:-;;
15360  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15361  esac
15362  ac_save_IFS=$IFS
15363  IFS=:
15364  set x $ac_tag
15365  IFS=$ac_save_IFS
15366  shift
15367  ac_file=$1
15368  shift
15369
15370  case $ac_mode in
15371  :L) ac_source=$1;;
15372  :[FH])
15373    ac_file_inputs=
15374    for ac_f
15375    do
15376      case $ac_f in
15377      -) ac_f="$tmp/stdin";;
15378      *) # Look for the file first in the build tree, then in the source tree
15379	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15380	 # because $ac_f cannot contain `:'.
15381	 test -f "$ac_f" ||
15382	   case $ac_f in
15383	   [\\/$]*) false;;
15384	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15385	   esac ||
15386	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15387      esac
15388      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15389      as_fn_append ac_file_inputs " '$ac_f'"
15390    done
15391
15392    # Let's still pretend it is `configure' which instantiates (i.e., don't
15393    # use $as_me), people would be surprised to read:
15394    #    /* config.h.  Generated by config.status.  */
15395    configure_input='Generated from '`
15396	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15397	`' by configure.'
15398    if test x"$ac_file" != x-; then
15399      configure_input="$ac_file.  $configure_input"
15400      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15401$as_echo "$as_me: creating $ac_file" >&6;}
15402    fi
15403    # Neutralize special characters interpreted by sed in replacement strings.
15404    case $configure_input in #(
15405    *\&* | *\|* | *\\* )
15406       ac_sed_conf_input=`$as_echo "$configure_input" |
15407       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15408    *) ac_sed_conf_input=$configure_input;;
15409    esac
15410
15411    case $ac_tag in
15412    *:-:* | *:-) cat >"$tmp/stdin" \
15413      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15414    esac
15415    ;;
15416  esac
15417
15418  ac_dir=`$as_dirname -- "$ac_file" ||
15419$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15420	 X"$ac_file" : 'X\(//\)[^/]' \| \
15421	 X"$ac_file" : 'X\(//\)$' \| \
15422	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15423$as_echo X"$ac_file" |
15424    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15425	    s//\1/
15426	    q
15427	  }
15428	  /^X\(\/\/\)[^/].*/{
15429	    s//\1/
15430	    q
15431	  }
15432	  /^X\(\/\/\)$/{
15433	    s//\1/
15434	    q
15435	  }
15436	  /^X\(\/\).*/{
15437	    s//\1/
15438	    q
15439	  }
15440	  s/.*/./; q'`
15441  as_dir="$ac_dir"; as_fn_mkdir_p
15442  ac_builddir=.
15443
15444case "$ac_dir" in
15445.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15446*)
15447  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15448  # A ".." for each directory in $ac_dir_suffix.
15449  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15450  case $ac_top_builddir_sub in
15451  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15452  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15453  esac ;;
15454esac
15455ac_abs_top_builddir=$ac_pwd
15456ac_abs_builddir=$ac_pwd$ac_dir_suffix
15457# for backward compatibility:
15458ac_top_builddir=$ac_top_build_prefix
15459
15460case $srcdir in
15461  .)  # We are building in place.
15462    ac_srcdir=.
15463    ac_top_srcdir=$ac_top_builddir_sub
15464    ac_abs_top_srcdir=$ac_pwd ;;
15465  [\\/]* | ?:[\\/]* )  # Absolute name.
15466    ac_srcdir=$srcdir$ac_dir_suffix;
15467    ac_top_srcdir=$srcdir
15468    ac_abs_top_srcdir=$srcdir ;;
15469  *) # Relative name.
15470    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15471    ac_top_srcdir=$ac_top_build_prefix$srcdir
15472    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15473esac
15474ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15475
15476
15477  case $ac_mode in
15478  :F)
15479  #
15480  # CONFIG_FILE
15481  #
15482
15483  case $INSTALL in
15484  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15485  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15486  esac
15487_ACEOF
15488
15489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15490# If the template does not know about datarootdir, expand it.
15491# FIXME: This hack should be removed a few years after 2.60.
15492ac_datarootdir_hack=; ac_datarootdir_seen=
15493ac_sed_dataroot='
15494/datarootdir/ {
15495  p
15496  q
15497}
15498/@datadir@/p
15499/@docdir@/p
15500/@infodir@/p
15501/@localedir@/p
15502/@mandir@/p'
15503case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15504*datarootdir*) ac_datarootdir_seen=yes;;
15505*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15506  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15507$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15508_ACEOF
15509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15510  ac_datarootdir_hack='
15511  s&@datadir@&$datadir&g
15512  s&@docdir@&$docdir&g
15513  s&@infodir@&$infodir&g
15514  s&@localedir@&$localedir&g
15515  s&@mandir@&$mandir&g
15516  s&\\\${datarootdir}&$datarootdir&g' ;;
15517esac
15518_ACEOF
15519
15520# Neutralize VPATH when `$srcdir' = `.'.
15521# Shell code in configure.ac might set extrasub.
15522# FIXME: do we really want to maintain this feature?
15523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15524ac_sed_extra="$ac_vpsub
15525$extrasub
15526_ACEOF
15527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15528:t
15529/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15530s|@configure_input@|$ac_sed_conf_input|;t t
15531s&@top_builddir@&$ac_top_builddir_sub&;t t
15532s&@top_build_prefix@&$ac_top_build_prefix&;t t
15533s&@srcdir@&$ac_srcdir&;t t
15534s&@abs_srcdir@&$ac_abs_srcdir&;t t
15535s&@top_srcdir@&$ac_top_srcdir&;t t
15536s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15537s&@builddir@&$ac_builddir&;t t
15538s&@abs_builddir@&$ac_abs_builddir&;t t
15539s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15540s&@INSTALL@&$ac_INSTALL&;t t
15541$ac_datarootdir_hack
15542"
15543eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15544if $ac_cs_awk_getline; then
15545  $AWK -f "$tmp/subs.awk"
15546else
15547  $AWK -f "$tmp/subs.awk" | $SHELL
15548fi >$tmp/out \
15549  || as_fn_error "could not create $ac_file" "$LINENO" 5
15550
15551test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15552  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15553  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15554  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15555which seems to be undefined.  Please make sure it is defined." >&5
15556$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15557which seems to be undefined.  Please make sure it is defined." >&2;}
15558
15559  rm -f "$tmp/stdin"
15560  case $ac_file in
15561  -) cat "$tmp/out" && rm -f "$tmp/out";;
15562  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15563  esac \
15564  || as_fn_error "could not create $ac_file" "$LINENO" 5
15565 ;;
15566
15567
15568
15569  esac
15570
15571
15572  case $ac_file$ac_mode in
15573    "Makefile":F) sed "$extrasub_build" Makefile |
15574   sed "$extrasub_host" |
15575   sed "$extrasub_target" > mf$$
15576   mv -f mf$$ Makefile ;;
15577
15578  esac
15579done # for ac_tag
15580
15581
15582as_fn_exit 0
15583_ACEOF
15584ac_clean_files=$ac_clean_files_save
15585
15586test $ac_write_fail = 0 ||
15587  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15588
15589
15590# configure is writing to config.log, and then calls config.status.
15591# config.status does its own redirection, appending to config.log.
15592# Unfortunately, on DOS this fails, as config.log is still kept open
15593# by configure, so config.status won't be able to write to it; its
15594# output is simply discarded.  So we exec the FD to /dev/null,
15595# effectively closing config.log, so it can be properly (re)opened and
15596# appended to by config.status.  When coming back to configure, we
15597# need to make the FD available again.
15598if test "$no_create" != yes; then
15599  ac_cs_success=:
15600  ac_config_status_args=
15601  test "$silent" = yes &&
15602    ac_config_status_args="$ac_config_status_args --quiet"
15603  exec 5>/dev/null
15604  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15605  exec 5>>config.log
15606  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15607  # would make configure fail if this is the last instruction.
15608  $ac_cs_success || as_fn_exit $?
15609fi
15610if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15611  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15612$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15613fi
15614
15615