]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame_incremental - configure
http://sourceware.org/ml/gdb-patches/2012-09/msg00015.html
[thirdparty/binutils-gdb.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233 fi
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376else
377 as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484else
485 as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527exec 7<&0 </dev/null 6>&1
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
538ac_clean_files=
539ac_config_libobj_dir=.
540LIBOBJS=
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
552PACKAGE_URL=
553
554ac_unique_file="move-if-change"
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573READELF_FOR_TARGET
574RANLIB_FOR_TARGET
575OBJDUMP_FOR_TARGET
576NM_FOR_TARGET
577LIPO_FOR_TARGET
578LD_FOR_TARGET
579DLLTOOL_FOR_TARGET
580AS_FOR_TARGET
581AR_FOR_TARGET
582GOC_FOR_TARGET
583GFORTRAN_FOR_TARGET
584GCJ_FOR_TARGET
585GCC_FOR_TARGET
586CXX_FOR_TARGET
587CC_FOR_TARGET
588READELF
589OBJDUMP
590OBJCOPY
591WINDMC
592WINDRES
593STRIP
594RANLIB
595NM
596LIPO
597LD
598DLLTOOL
599AS
600AR
601RUNTEST
602EXPECT
603MAKEINFO
604FLEX
605LEX
606M4
607BISON
608YACC
609WINDRES_FOR_BUILD
610WINDMC_FOR_BUILD
611RANLIB_FOR_BUILD
612NM_FOR_BUILD
613LD_FOR_BUILD
614LDFLAGS_FOR_BUILD
615GOC_FOR_BUILD
616GFORTRAN_FOR_BUILD
617GCJ_FOR_BUILD
618DLLTOOL_FOR_BUILD
619CXX_FOR_BUILD
620CXXFLAGS_FOR_BUILD
621CFLAGS_FOR_BUILD
622CC_FOR_BUILD
623AS_FOR_BUILD
624AR_FOR_BUILD
625target_configdirs
626configdirs
627build_configdirs
628INSTALL_GDB_TK
629GDB_TK
630CONFIGURE_GDB_TK
631build_tooldir
632tooldir
633GCC_SHLIB_SUBDIR
634RPATH_ENVVAR
635target_configargs
636host_configargs
637build_configargs
638BUILD_CONFIG
639LDFLAGS_FOR_TARGET
640CXXFLAGS_FOR_TARGET
641CFLAGS_FOR_TARGET
642DEBUG_PREFIX_CFLAGS_FOR_TARGET
643SYSROOT_CFLAGS_FOR_TARGET
644stage1_languages
645extra_host_libiberty_configure_flags
646clooginc
647clooglibs
648islinc
649isllibs
650poststage1_ldflags
651poststage1_libs
652stage1_libs
653stage1_ldflags
654extra_isl_gmp_configure_flags
655extra_mpc_mpfr_configure_flags
656extra_mpc_gmp_configure_flags
657extra_mpfr_configure_flags
658gmpinc
659gmplibs
660do_compare
661GNATMAKE
662GNATBIND
663ac_ct_CXX
664CXXFLAGS
665CXX
666OBJEXT
667EXEEXT
668ac_ct_CC
669CPPFLAGS
670LDFLAGS
671CFLAGS
672CC
673EXTRA_CONFIGARGS_LIBJAVA
674target_subdir
675host_subdir
676build_subdir
677build_libsubdir
678AWK
679SED
680LN_S
681LN
682INSTALL_DATA
683INSTALL_SCRIPT
684INSTALL_PROGRAM
685target_os
686target_vendor
687target_cpu
688target
689host_os
690host_vendor
691host_cpu
692host
693target_noncanonical
694host_noncanonical
695build_noncanonical
696build_os
697build_vendor
698build_cpu
699build
700TOPLEVEL_CONFIGURE_ARGUMENTS
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files='serialization_dependencies
740host_makefile_frag
741target_makefile_frag
742alphaieee_frag
743ospace_frag'
744ac_user_opts='
745enable_option_checking
746with_build_libsubdir
747enable_gold
748enable_ld
749enable_libquadmath
750enable_libquadmath_support
751enable_libada
752enable_libssp
753enable_static_libjava
754enable_bootstrap
755with_mpc
756with_mpc_include
757with_mpc_lib
758with_mpfr_dir
759with_mpfr
760with_mpfr_include
761with_mpfr_lib
762with_gmp_dir
763with_gmp
764with_gmp_include
765with_gmp_lib
766with_host_libstdcxx
767with_stage1_ldflags
768with_stage1_libs
769with_boot_libs
770with_boot_ldflags
771with_isl
772with_isl_include
773with_isl_lib
774enable_isl_version_check
775with_cloog
776with_cloog_include
777with_cloog_lib
778enable_cloog_version_check
779enable_lto
780enable_stage1_languages
781enable_objc_gc
782with_build_sysroot
783with_debug_prefix_map
784with_build_config
785enable_serial_configure
786with_build_time_tools
787enable_maintainer_mode
788enable_stage1_checking
789enable_werror
790'
791 ac_precious_vars='build_alias
792host_alias
793target_alias
794CC
795CFLAGS
796LDFLAGS
797LIBS
798CPPFLAGS
799CXX
800CXXFLAGS
801CCC
802build_configargs
803host_configargs
804target_configargs
805AR
806AS
807DLLTOOL
808LD
809LIPO
810NM
811RANLIB
812STRIP
813WINDRES
814WINDMC
815OBJCOPY
816OBJDUMP
817READELF
818CC_FOR_TARGET
819CXX_FOR_TARGET
820GCC_FOR_TARGET
821GCJ_FOR_TARGET
822GFORTRAN_FOR_TARGET
823GOC_FOR_TARGET
824AR_FOR_TARGET
825AS_FOR_TARGET
826DLLTOOL_FOR_TARGET
827LD_FOR_TARGET
828LIPO_FOR_TARGET
829NM_FOR_TARGET
830OBJDUMP_FOR_TARGET
831RANLIB_FOR_TARGET
832READELF_FOR_TARGET
833STRIP_FOR_TARGET
834WINDRES_FOR_TARGET
835WINDMC_FOR_TARGET'
836
837
838# Initialize some variables set by options.
839ac_init_help=
840ac_init_version=false
841ac_unrecognized_opts=
842ac_unrecognized_sep=
843# The variables have the same names as the options, with
844# dashes changed to underlines.
845cache_file=/dev/null
846exec_prefix=NONE
847no_create=
848no_recursion=
849prefix=NONE
850program_prefix=NONE
851program_suffix=NONE
852program_transform_name=s,x,x,
853silent=
854site=
855srcdir=
856verbose=
857x_includes=NONE
858x_libraries=NONE
859
860# Installation directory options.
861# These are left unexpanded so users can "make install exec_prefix=/foo"
862# and all the variables that are supposed to be based on exec_prefix
863# by default will actually change.
864# Use braces instead of parens because sh, perl, etc. also accept them.
865# (The list follows the same order as the GNU Coding Standards.)
866bindir='${exec_prefix}/bin'
867sbindir='${exec_prefix}/sbin'
868libexecdir='${exec_prefix}/libexec'
869datarootdir='${prefix}/share'
870datadir='${datarootdir}'
871sysconfdir='${prefix}/etc'
872sharedstatedir='${prefix}/com'
873localstatedir='${prefix}/var'
874includedir='${prefix}/include'
875oldincludedir='/usr/include'
876docdir='${datarootdir}/doc/${PACKAGE}'
877infodir='${datarootdir}/info'
878htmldir='${docdir}'
879dvidir='${docdir}'
880pdfdir='${docdir}'
881psdir='${docdir}'
882libdir='${exec_prefix}/lib'
883localedir='${datarootdir}/locale'
884mandir='${datarootdir}/man'
885
886ac_prev=
887ac_dashdash=
888for ac_option
889do
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
893 ac_prev=
894 continue
895 fi
896
897 case $ac_option in
898 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *) ac_optarg=yes ;;
900 esac
901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
912
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
927
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
932
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949"enable_$ac_useropt"
950"*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
965
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975"enable_$ac_useropt"
976"*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1001
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1006
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1036
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1110
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1169
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179"with_$ac_useropt"
1180"*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1185
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195"with_$ac_useropt"
1196"*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1219
1220 -*) as_fn_error "unrecognized option: \`$ac_option'
1221Try \`$0 --help' for more information."
1222 ;;
1223
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1233
1234 *)
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1240 ;;
1241
1242 esac
1243done
1244
1245if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error "missing argument to $ac_option"
1248fi
1249
1250if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1256fi
1257
1258# Check all directory arguments for consistency.
1259for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1263do
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1277done
1278
1279# There might be people who depend on the old broken behavior: `$host'
1280# used to hold the argument of --host etc.
1281# FIXME: To remove some day.
1282build=$build_alias
1283host=$host_alias
1284target=$target_alias
1285
1286# FIXME: To remove some day.
1287if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1291 If a cross compiler is detected then cross compile mode will be used." >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1294 fi
1295fi
1296
1297ac_tool_prefix=
1298test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300test "$silent" = yes && exec 6>/dev/null
1301
1302
1303ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304ac_ls_di=`ls -di .` &&
1305ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error "working directory cannot be determined"
1307test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error "pwd does not report name of working directory"
1309
1310
1311# Find the source files, if location was not specified.
1312if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320$as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
1338 srcdir=$ac_confdir
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 srcdir=..
1341 fi
1342else
1343 ac_srcdir_defaulted=no
1344fi
1345if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1348fi
1349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350ac_abs_confdir=`(
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1352 pwd)`
1353# When building in place, set srcdir=.
1354if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1356fi
1357# Remove unnecessary trailing slashes from srcdir.
1358# Double slashes in file names in object file debugging info
1359# mess up M-x gdb in Emacs.
1360case $srcdir in
1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362esac
1363case $srcdir in
1364 *" "*)
1365 as_fn_error "path to source, $srcdir, contains spaces"
1366 ;;
1367esac
1368ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1369
1370for ac_var in $ac_precious_vars; do
1371 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_${ac_var}_value=\$${ac_var}
1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375done
1376
1377#
1378# Report the --help message.
1379#
1380if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1383 cat <<_ACEOF
1384\`configure' configures this package to adapt to many kinds of systems.
1385
1386Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389VAR=VALUE. See below for descriptions of some of the useful variables.
1390
1391Defaults for the options are specified in brackets.
1392
1393Configuration:
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403
1404Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
1406 [$ac_default_prefix]
1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1408 [PREFIX]
1409
1410By default, \`make install' will install all the files in
1411\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413for instance \`--prefix=\$HOME'.
1414
1415For better control, use the options below.
1416
1417Fine tuning of the installation directories:
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1437_ACEOF
1438
1439 cat <<\_ACEOF
1440
1441Program names:
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1445
1446System types:
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 --target=TARGET configure for building compilers for TARGET [HOST]
1450_ACEOF
1451fi
1452
1453if test -n "$ac_init_help"; then
1454
1455 cat <<\_ACEOF
1456
1457Optional Features:
1458 --disable-option-checking ignore unrecognized --enable/--with options
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1461 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1462 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1463 --disable-libquadmath do not build libquadmath directory
1464 --disable-libquadmath-support
1465 disable libquadmath support for Fortran
1466 --enable-libada build libada directory
1467 --enable-libssp build libssp directory
1468 --enable-static-libjava[=ARG]
1469 build static libjava [default=no]
1470 --enable-bootstrap enable bootstrapping [yes if native build]
1471 --disable-isl-version-check
1472 disable check for ISL version
1473 --disable-cloog-version-check
1474 disable check for CLooG version
1475 --enable-lto enable link time optimization support
1476 --enable-stage1-languages[=all]
1477 choose additional languages to build during stage1.
1478 Mostly useful for compiler development
1479 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1480 Objective-C runtime
1481 --enable-serial-[{host,target,build}-]configure
1482 force sequential configuration of sub-packages for
1483 the host, target or build machine, or all
1484 sub-packages
1485 --enable-maintainer-mode
1486 enable make rules and dependencies not useful (and
1487 sometimes confusing) to the casual installer
1488 --enable-stage1-checking[=all]
1489 choose additional checking for stage1 of the
1490 compiler
1491 --enable-werror enable -Werror in bootstrap stage2 and later
1492
1493Optional Packages:
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-build-libsubdir=DIR Directory where to find libraries for build system
1497 --with-mpc=PATH specify prefix directory for installed MPC package.
1498 Equivalent to --with-mpc-include=PATH/include plus
1499 --with-mpc-lib=PATH/lib
1500 --with-mpc-include=PATH specify directory for installed MPC include files
1501 --with-mpc-lib=PATH specify directory for the installed MPC library
1502 --with-mpfr-dir=PATH this option has been REMOVED
1503 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1504 Equivalent to --with-mpfr-include=PATH/include plus
1505 --with-mpfr-lib=PATH/lib
1506 --with-mpfr-include=PATH
1507 specify directory for installed MPFR include files
1508 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1509 --with-gmp-dir=PATH this option has been REMOVED
1510 --with-gmp=PATH specify prefix directory for the installed GMP
1511 package. Equivalent to
1512 --with-gmp-include=PATH/include plus
1513 --with-gmp-lib=PATH/lib
1514 --with-gmp-include=PATH specify directory for installed GMP include files
1515 --with-gmp-lib=PATH specify directory for the installed GMP library
1516 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1517 linking with PPL
1518 --with-stage1-ldflags=FLAGS
1519 linker flags for stage1
1520 --with-stage1-libs=LIBS libraries for stage1
1521 --with-boot-libs=LIBS libraries for stage2 and later
1522 --with-boot-ldflags=FLAGS
1523 linker flags for stage2 and later
1524 --with-isl=PATH Specify prefix directory for the installed ISL
1525 package. Equivalent to
1526 --with-isl-include=PATH/include plus
1527 --with-isl-lib=PATH/lib
1528 --with-isl-include=PATH Specify directory for installed ISL include files
1529 --with-isl-lib=PATH Specify the directory for the installed ISL library
1530 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1531 package. Equivalent to
1532 --with-cloog-include=PATH/include plus
1533 --with-cloog-lib=PATH/lib
1534 --with-cloog-include=PATH
1535 Specify directory for installed CLooG include files
1536 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1537 library
1538 --with-build-sysroot=SYSROOT
1539 use sysroot as the system root during the build
1540 --with-debug-prefix-map='A=B C=D ...'
1541 map A to B, C to D ... in debug information
1542 --with-build-config='NAME NAME2...'
1543 use config/NAME.mk build configuration
1544 --with-build-time-tools=PATH
1545 use given path to find target tools during the build
1546
1547Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1555 CXX C++ compiler command
1556 CXXFLAGS C++ compiler flags
1557 build_configargs
1558 additional configure arguments for build directories
1559 host_configargs
1560 additional configure arguments for host directories
1561 target_configargs
1562 additional configure arguments for target directories
1563 AR AR for the host
1564 AS AS for the host
1565 DLLTOOL DLLTOOL for the host
1566 LD LD for the host
1567 LIPO LIPO for the host
1568 NM NM for the host
1569 RANLIB RANLIB for the host
1570 STRIP STRIP for the host
1571 WINDRES WINDRES for the host
1572 WINDMC WINDMC for the host
1573 OBJCOPY OBJCOPY for the host
1574 OBJDUMP OBJDUMP for the host
1575 READELF READELF for the host
1576 CC_FOR_TARGET
1577 CC for the target
1578 CXX_FOR_TARGET
1579 CXX for the target
1580 GCC_FOR_TARGET
1581 GCC for the target
1582 GCJ_FOR_TARGET
1583 GCJ for the target
1584 GFORTRAN_FOR_TARGET
1585 GFORTRAN for the target
1586 GOC_FOR_TARGET
1587 GOC for the target
1588 AR_FOR_TARGET
1589 AR for the target
1590 AS_FOR_TARGET
1591 AS for the target
1592 DLLTOOL_FOR_TARGET
1593 DLLTOOL for the target
1594 LD_FOR_TARGET
1595 LD for the target
1596 LIPO_FOR_TARGET
1597 LIPO for the target
1598 NM_FOR_TARGET
1599 NM for the target
1600 OBJDUMP_FOR_TARGET
1601 OBJDUMP for the target
1602 RANLIB_FOR_TARGET
1603 RANLIB for the target
1604 READELF_FOR_TARGET
1605 READELF for the target
1606 STRIP_FOR_TARGET
1607 STRIP for the target
1608 WINDRES_FOR_TARGET
1609 WINDRES for the target
1610 WINDMC_FOR_TARGET
1611 WINDMC for the target
1612
1613Use these variables to override the choices made by `configure' or to help
1614it to find libraries and programs with nonstandard names/locations.
1615
1616Report bugs to the package provider.
1617_ACEOF
1618ac_status=$?
1619fi
1620
1621if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624 test -d "$ac_dir" ||
1625 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626 continue
1627 ac_builddir=.
1628
1629case "$ac_dir" in
1630.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631*)
1632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 esac ;;
1639esac
1640ac_abs_top_builddir=$ac_pwd
1641ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642# for backward compatibility:
1643ac_top_builddir=$ac_top_build_prefix
1644
1645case $srcdir in
1646 .) # We are building in place.
1647 ac_srcdir=.
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
1651 ac_srcdir=$srcdir$ac_dir_suffix;
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1654 *) # Relative name.
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1658esac
1659ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure" --help=recursive
1669 else
1670 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671 fi || ac_status=$?
1672 cd "$ac_pwd" || { ac_status=$?; break; }
1673 done
1674fi
1675
1676test -n "$ac_init_help" && exit $ac_status
1677if $ac_init_version; then
1678 cat <<\_ACEOF
1679configure
1680generated by GNU Autoconf 2.64
1681
1682Copyright (C) 2009 Free Software Foundation, Inc.
1683This configure script is free software; the Free Software Foundation
1684gives unlimited permission to copy, distribute and modify it.
1685_ACEOF
1686 exit
1687fi
1688
1689## ------------------------ ##
1690## Autoconf initialization. ##
1691## ------------------------ ##
1692
1693# ac_fn_c_try_compile LINENO
1694# --------------------------
1695# Try to compile conftest.$ac_ext, and return whether this succeeded.
1696ac_fn_c_try_compile ()
1697{
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1701case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest.$ac_objext; then :
1719 ac_retval=0
1720else
1721 $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725fi
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 return $ac_retval
1728
1729} # ac_fn_c_try_compile
1730
1731# ac_fn_cxx_try_compile LINENO
1732# ----------------------------
1733# Try to compile conftest.$ac_ext, and return whether this succeeded.
1734ac_fn_cxx_try_compile ()
1735{
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext
1738 if { { ac_try="$ac_compile"
1739case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_compile") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_cxx_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest.$ac_objext; then :
1757 ac_retval=0
1758else
1759 $as_echo "$as_me: failed program was:" >&5
1760sed 's/^/| /' conftest.$ac_ext >&5
1761
1762 ac_retval=1
1763fi
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 return $ac_retval
1766
1767} # ac_fn_cxx_try_compile
1768
1769# ac_fn_c_try_link LINENO
1770# -----------------------
1771# Try to link conftest.$ac_ext, and return whether this succeeded.
1772ac_fn_c_try_link ()
1773{
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext conftest$ac_exeext
1776 if { { ac_try="$ac_link"
1777case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1789 fi
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest$ac_exeext && {
1795 test "$cross_compiling" = yes ||
1796 $as_test_x conftest$ac_exeext
1797 }; then :
1798 ac_retval=0
1799else
1800 $as_echo "$as_me: failed program was:" >&5
1801sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=1
1804fi
1805 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1806 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1807 # interfere with the next link command; also delete a directory that is
1808 # left behind by Apple's compiler. We do this before executing the actions.
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811 return $ac_retval
1812
1813} # ac_fn_c_try_link
1814
1815# ac_fn_c_try_run LINENO
1816# ----------------------
1817# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1818# that executables *can* be run.
1819ac_fn_c_try_run ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { { ac_try="$ac_link"
1823case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826esac
1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828$as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_link") 2>&5
1830 ac_status=$?
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1833 { { case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_try") 2>&5
1840 ac_status=$?
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; }; }; then :
1843 ac_retval=0
1844else
1845 $as_echo "$as_me: program exited with status $ac_status" >&5
1846 $as_echo "$as_me: failed program was:" >&5
1847sed 's/^/| /' conftest.$ac_ext >&5
1848
1849 ac_retval=$ac_status
1850fi
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 return $ac_retval
1854
1855} # ac_fn_c_try_run
1856cat >config.log <<_ACEOF
1857This file contains any messages produced by compilers while
1858running configure, to aid debugging if configure makes a mistake.
1859
1860It was created by $as_me, which was
1861generated by GNU Autoconf 2.64. Invocation command line was
1862
1863 $ $0 $@
1864
1865_ACEOF
1866exec 5>>config.log
1867{
1868cat <<_ASUNAME
1869## --------- ##
1870## Platform. ##
1871## --------- ##
1872
1873hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1874uname -m = `(uname -m) 2>/dev/null || echo unknown`
1875uname -r = `(uname -r) 2>/dev/null || echo unknown`
1876uname -s = `(uname -s) 2>/dev/null || echo unknown`
1877uname -v = `(uname -v) 2>/dev/null || echo unknown`
1878
1879/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1880/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1881
1882/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1883/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1884/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1885/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1886/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1887/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1888/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1889
1890_ASUNAME
1891
1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893for as_dir in $PATH
1894do
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
1897 $as_echo "PATH: $as_dir"
1898 done
1899IFS=$as_save_IFS
1900
1901} >&5
1902
1903cat >&5 <<_ACEOF
1904
1905
1906## ----------- ##
1907## Core tests. ##
1908## ----------- ##
1909
1910_ACEOF
1911
1912
1913# Keep a trace of the command line.
1914# Strip out --no-create and --no-recursion so they do not pile up.
1915# Strip out --silent because we don't want to record it for future runs.
1916# Also quote any args containing shell meta-characters.
1917# Make two passes to allow for proper duplicate-argument suppression.
1918ac_configure_args=
1919ac_configure_args0=
1920ac_configure_args1=
1921ac_must_keep_next=false
1922for ac_pass in 1 2
1923do
1924 for ac_arg
1925 do
1926 case $ac_arg in
1927 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1929 | -silent | --silent | --silen | --sile | --sil)
1930 continue ;;
1931 *\'*)
1932 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1933 esac
1934 case $ac_pass in
1935 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1936 2)
1937 as_fn_append ac_configure_args1 " '$ac_arg'"
1938 if test $ac_must_keep_next = true; then
1939 ac_must_keep_next=false # Got value, back to normal.
1940 else
1941 case $ac_arg in
1942 *=* | --config-cache | -C | -disable-* | --disable-* \
1943 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1944 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1945 | -with-* | --with-* | -without-* | --without-* | --x)
1946 case "$ac_configure_args0 " in
1947 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1948 esac
1949 ;;
1950 -* ) ac_must_keep_next=true ;;
1951 esac
1952 fi
1953 as_fn_append ac_configure_args " '$ac_arg'"
1954 ;;
1955 esac
1956 done
1957done
1958{ ac_configure_args0=; unset ac_configure_args0;}
1959{ ac_configure_args1=; unset ac_configure_args1;}
1960
1961# When interrupted or exit'd, cleanup temporary files, and complete
1962# config.log. We remove comments because anyway the quotes in there
1963# would cause problems or look ugly.
1964# WARNING: Use '\'' to represent an apostrophe within the trap.
1965# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1966trap 'exit_status=$?
1967 # Save into config.log some information that might help in debugging.
1968 {
1969 echo
1970
1971 cat <<\_ASBOX
1972## ---------------- ##
1973## Cache variables. ##
1974## ---------------- ##
1975_ASBOX
1976 echo
1977 # The following way of writing the cache mishandles newlines in values,
1978(
1979 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1980 eval ac_val=\$$ac_var
1981 case $ac_val in #(
1982 *${as_nl}*)
1983 case $ac_var in #(
1984 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1985$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1986 esac
1987 case $ac_var in #(
1988 _ | IFS | as_nl) ;; #(
1989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1990 *) { eval $ac_var=; unset $ac_var;} ;;
1991 esac ;;
1992 esac
1993 done
1994 (set) 2>&1 |
1995 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1996 *${as_nl}ac_space=\ *)
1997 sed -n \
1998 "s/'\''/'\''\\\\'\'''\''/g;
1999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2000 ;; #(
2001 *)
2002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2003 ;;
2004 esac |
2005 sort
2006)
2007 echo
2008
2009 cat <<\_ASBOX
2010## ----------------- ##
2011## Output variables. ##
2012## ----------------- ##
2013_ASBOX
2014 echo
2015 for ac_var in $ac_subst_vars
2016 do
2017 eval ac_val=\$$ac_var
2018 case $ac_val in
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020 esac
2021 $as_echo "$ac_var='\''$ac_val'\''"
2022 done | sort
2023 echo
2024
2025 if test -n "$ac_subst_files"; then
2026 cat <<\_ASBOX
2027## ------------------- ##
2028## File substitutions. ##
2029## ------------------- ##
2030_ASBOX
2031 echo
2032 for ac_var in $ac_subst_files
2033 do
2034 eval ac_val=\$$ac_var
2035 case $ac_val in
2036 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037 esac
2038 $as_echo "$ac_var='\''$ac_val'\''"
2039 done | sort
2040 echo
2041 fi
2042
2043 if test -s confdefs.h; then
2044 cat <<\_ASBOX
2045## ----------- ##
2046## confdefs.h. ##
2047## ----------- ##
2048_ASBOX
2049 echo
2050 cat confdefs.h
2051 echo
2052 fi
2053 test "$ac_signal" != 0 &&
2054 $as_echo "$as_me: caught signal $ac_signal"
2055 $as_echo "$as_me: exit $exit_status"
2056 } >&5
2057 rm -f core *.core core.conftest.* &&
2058 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2059 exit $exit_status
2060' 0
2061for ac_signal in 1 2 13 15; do
2062 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2063done
2064ac_signal=0
2065
2066# confdefs.h avoids OS command line length limits that DEFS can exceed.
2067rm -f -r conftest* confdefs.h
2068
2069$as_echo "/* confdefs.h */" > confdefs.h
2070
2071# Predefined preprocessor variables.
2072
2073cat >>confdefs.h <<_ACEOF
2074#define PACKAGE_NAME "$PACKAGE_NAME"
2075_ACEOF
2076
2077cat >>confdefs.h <<_ACEOF
2078#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2079_ACEOF
2080
2081cat >>confdefs.h <<_ACEOF
2082#define PACKAGE_VERSION "$PACKAGE_VERSION"
2083_ACEOF
2084
2085cat >>confdefs.h <<_ACEOF
2086#define PACKAGE_STRING "$PACKAGE_STRING"
2087_ACEOF
2088
2089cat >>confdefs.h <<_ACEOF
2090#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2091_ACEOF
2092
2093cat >>confdefs.h <<_ACEOF
2094#define PACKAGE_URL "$PACKAGE_URL"
2095_ACEOF
2096
2097
2098# Let the site file select an alternate cache file if it wants to.
2099# Prefer an explicitly selected file to automatically selected ones.
2100ac_site_file1=NONE
2101ac_site_file2=NONE
2102if test -n "$CONFIG_SITE"; then
2103 ac_site_file1=$CONFIG_SITE
2104elif test "x$prefix" != xNONE; then
2105 ac_site_file1=$prefix/share/config.site
2106 ac_site_file2=$prefix/etc/config.site
2107else
2108 ac_site_file1=$ac_default_prefix/share/config.site
2109 ac_site_file2=$ac_default_prefix/etc/config.site
2110fi
2111for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2112do
2113 test "x$ac_site_file" = xNONE && continue
2114 if test -r "$ac_site_file"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2116$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2117 sed 's/^/| /' "$ac_site_file" >&5
2118 . "$ac_site_file"
2119 fi
2120done
2121
2122if test -r "$cache_file"; then
2123 # Some versions of bash will fail to source /dev/null (special
2124 # files actually), so we avoid doing that.
2125 if test -f "$cache_file"; then
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2127$as_echo "$as_me: loading cache $cache_file" >&6;}
2128 case $cache_file in
2129 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2130 *) . "./$cache_file";;
2131 esac
2132 fi
2133else
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2135$as_echo "$as_me: creating cache $cache_file" >&6;}
2136 >$cache_file
2137fi
2138
2139# Check that the precious variables saved in the cache have kept the same
2140# value.
2141ac_cache_corrupted=false
2142for ac_var in $ac_precious_vars; do
2143 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2144 eval ac_new_set=\$ac_env_${ac_var}_set
2145 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2146 eval ac_new_val=\$ac_env_${ac_var}_value
2147 case $ac_old_set,$ac_new_set in
2148 set,)
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2150$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2151 ac_cache_corrupted=: ;;
2152 ,set)
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2154$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2155 ac_cache_corrupted=: ;;
2156 ,);;
2157 *)
2158 if test "x$ac_old_val" != "x$ac_new_val"; then
2159 # differences in whitespace do not lead to failure.
2160 ac_old_val_w=`echo x $ac_old_val`
2161 ac_new_val_w=`echo x $ac_new_val`
2162 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2164$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2165 ac_cache_corrupted=:
2166 else
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2168$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2169 eval $ac_var=\$ac_old_val
2170 fi
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2172$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2174$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2175 fi;;
2176 esac
2177 # Pass precious variables to config.status.
2178 if test "$ac_new_set" = set; then
2179 case $ac_new_val in
2180 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2181 *) ac_arg=$ac_var=$ac_new_val ;;
2182 esac
2183 case " $ac_configure_args " in
2184 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2185 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2186 esac
2187 fi
2188done
2189if $ac_cache_corrupted; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2193$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2194 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2195fi
2196## -------------------- ##
2197## Main body of script. ##
2198## -------------------- ##
2199
2200ac_ext=c
2201ac_cpp='$CPP $CPPFLAGS'
2202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2204ac_compiler_gnu=$ac_cv_c_compiler_gnu
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214progname=$0
2215# if PWD already has a value, it is probably wrong.
2216if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2217
2218# Export original configure arguments for use by sub-configures.
2219# Quote arguments with shell meta charatcers.
2220TOPLEVEL_CONFIGURE_ARGUMENTS=
2221set -- "$progname" "$@"
2222for ac_arg
2223do
2224 case "$ac_arg" in
2225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2226 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2227 # if the argument is of the form -foo=baz, quote the baz part only
2228 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2229 *) ;;
2230 esac
2231 # Add the quoted argument to the list.
2232 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2233done
2234if test "$silent" = yes; then
2235 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2236fi
2237# Remove the initial space we just introduced and, as these will be
2238# expanded by make, quote '$'.
2239TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2240
2241
2242# Find the build, host, and target systems.
2243ac_aux_dir=
2244for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2245 for ac_t in install-sh install.sh shtool; do
2246 if test -f "$ac_dir/$ac_t"; then
2247 ac_aux_dir=$ac_dir
2248 ac_install_sh="$ac_aux_dir/$ac_t -c"
2249 break 2
2250 fi
2251 done
2252done
2253if test -z "$ac_aux_dir"; then
2254 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2255fi
2256
2257# These three variables are undocumented and unsupported,
2258# and are intended to be withdrawn in a future Autoconf release.
2259# They can cause serious problems if a builder's source tree is in a directory
2260# whose full name contains unusual characters.
2261ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2262ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2263ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2264
2265
2266# Make sure we can run config.sub.
2267$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2268 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2269
2270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2271$as_echo_n "checking build system type... " >&6; }
2272if test "${ac_cv_build+set}" = set; then :
2273 $as_echo_n "(cached) " >&6
2274else
2275 ac_build_alias=$build_alias
2276test "x$ac_build_alias" = x &&
2277 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2278test "x$ac_build_alias" = x &&
2279 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2280ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2281 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2282
2283fi
2284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2285$as_echo "$ac_cv_build" >&6; }
2286case $ac_cv_build in
2287*-*-*) ;;
2288*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2289esac
2290build=$ac_cv_build
2291ac_save_IFS=$IFS; IFS='-'
2292set x $ac_cv_build
2293shift
2294build_cpu=$1
2295build_vendor=$2
2296shift; shift
2297# Remember, the first character of IFS is used to create $*,
2298# except with old shells:
2299build_os=$*
2300IFS=$ac_save_IFS
2301case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2302
2303
2304 case ${build_alias} in
2305 "") build_noncanonical=${build} ;;
2306 *) build_noncanonical=${build_alias} ;;
2307esac
2308
2309
2310
2311 case ${host_alias} in
2312 "") host_noncanonical=${build_noncanonical} ;;
2313 *) host_noncanonical=${host_alias} ;;
2314esac
2315
2316
2317
2318 case ${target_alias} in
2319 "") target_noncanonical=${host_noncanonical} ;;
2320 *) target_noncanonical=${target_alias} ;;
2321esac
2322
2323
2324
2325
2326test "$host_noncanonical" = "$target_noncanonical" &&
2327 test "$program_prefix$program_suffix$program_transform_name" = \
2328 NONENONEs,x,x, &&
2329 program_transform_name=s,y,y,
2330
2331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2332$as_echo_n "checking host system type... " >&6; }
2333if test "${ac_cv_host+set}" = set; then :
2334 $as_echo_n "(cached) " >&6
2335else
2336 if test "x$host_alias" = x; then
2337 ac_cv_host=$ac_cv_build
2338else
2339 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2340 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2341fi
2342
2343fi
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2345$as_echo "$ac_cv_host" >&6; }
2346case $ac_cv_host in
2347*-*-*) ;;
2348*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2349esac
2350host=$ac_cv_host
2351ac_save_IFS=$IFS; IFS='-'
2352set x $ac_cv_host
2353shift
2354host_cpu=$1
2355host_vendor=$2
2356shift; shift
2357# Remember, the first character of IFS is used to create $*,
2358# except with old shells:
2359host_os=$*
2360IFS=$ac_save_IFS
2361case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2362
2363
2364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2365$as_echo_n "checking target system type... " >&6; }
2366if test "${ac_cv_target+set}" = set; then :
2367 $as_echo_n "(cached) " >&6
2368else
2369 if test "x$target_alias" = x; then
2370 ac_cv_target=$ac_cv_host
2371else
2372 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2373 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2374fi
2375
2376fi
2377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2378$as_echo "$ac_cv_target" >&6; }
2379case $ac_cv_target in
2380*-*-*) ;;
2381*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2382esac
2383target=$ac_cv_target
2384ac_save_IFS=$IFS; IFS='-'
2385set x $ac_cv_target
2386shift
2387target_cpu=$1
2388target_vendor=$2
2389shift; shift
2390# Remember, the first character of IFS is used to create $*,
2391# except with old shells:
2392target_os=$*
2393IFS=$ac_save_IFS
2394case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2395
2396
2397# The aliases save the names the user supplied, while $host etc.
2398# will get canonicalized.
2399test -n "$target_alias" &&
2400 test "$program_prefix$program_suffix$program_transform_name" = \
2401 NONENONEs,x,x, &&
2402 program_prefix=${target_alias}-
2403
2404test "$program_prefix" != NONE &&
2405 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2406# Use a double $ so make ignores it.
2407test "$program_suffix" != NONE &&
2408 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2409# Double any \ or $.
2410# By default was `s,x,x', remove it if useless.
2411ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2412program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2413
2414
2415
2416# Get 'install' or 'install-sh' and its variants.
2417# Find a good install program. We prefer a C program (faster),
2418# so one script is as good as another. But avoid the broken or
2419# incompatible versions:
2420# SysV /etc/install, /usr/sbin/install
2421# SunOS /usr/etc/install
2422# IRIX /sbin/install
2423# AIX /bin/install
2424# AmigaOS /C/install, which installs bootblocks on floppy discs
2425# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2426# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2427# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2428# OS/2's system install, which has a completely different semantic
2429# ./install, which can be erroneously created by make from ./install.sh.
2430# Reject install programs that cannot install multiple files.
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2432$as_echo_n "checking for a BSD-compatible install... " >&6; }
2433if test -z "$INSTALL"; then
2434if test "${ac_cv_path_install+set}" = set; then :
2435 $as_echo_n "(cached) " >&6
2436else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 # Account for people who put trailing slashes in PATH elements.
2443case $as_dir/ in #((
2444 ./ | .// | /[cC]/* | \
2445 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2446 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2447 /usr/ucb/* ) ;;
2448 *)
2449 # OSF1 and SCO ODT 3.0 have their own names for install.
2450 # Don't use installbsd from OSF since it installs stuff as root
2451 # by default.
2452 for ac_prog in ginstall scoinst install; do
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2455 if test $ac_prog = install &&
2456 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457 # AIX install. It has an incompatible calling convention.
2458 :
2459 elif test $ac_prog = install &&
2460 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # program-specific install script used by HP pwplus--don't use.
2462 :
2463 else
2464 rm -rf conftest.one conftest.two conftest.dir
2465 echo one > conftest.one
2466 echo two > conftest.two
2467 mkdir conftest.dir
2468 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2469 test -s conftest.one && test -s conftest.two &&
2470 test -s conftest.dir/conftest.one &&
2471 test -s conftest.dir/conftest.two
2472 then
2473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2474 break 3
2475 fi
2476 fi
2477 fi
2478 done
2479 done
2480 ;;
2481esac
2482
2483 done
2484IFS=$as_save_IFS
2485
2486rm -rf conftest.one conftest.two conftest.dir
2487
2488fi
2489 if test "${ac_cv_path_install+set}" = set; then
2490 INSTALL=$ac_cv_path_install
2491 else
2492 # As a last resort, use the slow shell script. Don't cache a
2493 # value for INSTALL within a source directory, because that will
2494 # break other packages using the cache if that directory is
2495 # removed, or if the value is a relative name.
2496 INSTALL=$ac_install_sh
2497 fi
2498fi
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2500$as_echo "$INSTALL" >&6; }
2501
2502# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503# It thinks the first close brace ends the variable substitution.
2504test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2505
2506test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2507
2508test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2509
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2511$as_echo_n "checking whether ln works... " >&6; }
2512if test "${acx_cv_prog_LN+set}" = set; then :
2513 $as_echo_n "(cached) " >&6
2514else
2515 rm -f conftestdata_t
2516echo >conftestdata_f
2517if ln conftestdata_f conftestdata_t 2>/dev/null
2518then
2519 acx_cv_prog_LN=ln
2520else
2521 acx_cv_prog_LN=no
2522fi
2523rm -f conftestdata_f conftestdata_t
2524
2525fi
2526if test $acx_cv_prog_LN = no; then
2527 LN="cp"
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2529$as_echo "no, using $LN" >&6; }
2530else
2531 LN="$acx_cv_prog_LN"
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2533$as_echo "yes" >&6; }
2534fi
2535
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2537$as_echo_n "checking whether ln -s works... " >&6; }
2538LN_S=$as_ln_s
2539if test "$LN_S" = "ln -s"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2541$as_echo "yes" >&6; }
2542else
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2544$as_echo "no, using $LN_S" >&6; }
2545fi
2546
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2548$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2549if test "${ac_cv_path_SED+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2551else
2552 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2553 for ac_i in 1 2 3 4 5 6 7; do
2554 ac_script="$ac_script$as_nl$ac_script"
2555 done
2556 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2557 { ac_script=; unset ac_script;}
2558 if test -z "$SED"; then
2559 ac_path_SED_found=false
2560 # Loop through the user's path and test for each of PROGNAME-LIST
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_prog in sed gsed; do
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2569 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2570# Check for GNU ac_path_SED and select it if it is found.
2571 # Check for GNU $ac_path_SED
2572case `"$ac_path_SED" --version 2>&1` in
2573*GNU*)
2574 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2575*)
2576 ac_count=0
2577 $as_echo_n 0123456789 >"conftest.in"
2578 while :
2579 do
2580 cat "conftest.in" "conftest.in" >"conftest.tmp"
2581 mv "conftest.tmp" "conftest.in"
2582 cp "conftest.in" "conftest.nl"
2583 $as_echo '' >> "conftest.nl"
2584 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2586 as_fn_arith $ac_count + 1 && ac_count=$as_val
2587 if test $ac_count -gt ${ac_path_SED_max-0}; then
2588 # Best one so far, save it but keep looking for a better one
2589 ac_cv_path_SED="$ac_path_SED"
2590 ac_path_SED_max=$ac_count
2591 fi
2592 # 10*(2^10) chars as input seems more than enough
2593 test $ac_count -gt 10 && break
2594 done
2595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2596esac
2597
2598 $ac_path_SED_found && break 3
2599 done
2600 done
2601 done
2602IFS=$as_save_IFS
2603 if test -z "$ac_cv_path_SED"; then
2604 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2605 fi
2606else
2607 ac_cv_path_SED=$SED
2608fi
2609
2610fi
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2612$as_echo "$ac_cv_path_SED" >&6; }
2613 SED="$ac_cv_path_SED"
2614 rm -f conftest.sed
2615
2616for ac_prog in gawk mawk nawk awk
2617do
2618 # Extract the first word of "$ac_prog", so it can be a program name with args.
2619set dummy $ac_prog; ac_word=$2
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621$as_echo_n "checking for $ac_word... " >&6; }
2622if test "${ac_cv_prog_AWK+set}" = set; then :
2623 $as_echo_n "(cached) " >&6
2624else
2625 if test -n "$AWK"; then
2626 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2627else
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2635 ac_cv_prog_AWK="$ac_prog"
2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639done
2640 done
2641IFS=$as_save_IFS
2642
2643fi
2644fi
2645AWK=$ac_cv_prog_AWK
2646if test -n "$AWK"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2648$as_echo "$AWK" >&6; }
2649else
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651$as_echo "no" >&6; }
2652fi
2653
2654
2655 test -n "$AWK" && break
2656done
2657
2658
2659srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2660
2661# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2662# a relative path.
2663if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2664 INSTALL="${srcpwd}/install-sh -c"
2665fi
2666
2667# Set srcdir to "." if that's what it is.
2668# This is important for multilib support.
2669pwd=`${PWDCMD-pwd}`
2670if test "${pwd}" = "${srcpwd}" ; then
2671 srcdir=.
2672fi
2673
2674topsrcdir=$srcpwd
2675
2676extra_host_args=
2677
2678### To add a new directory to the tree, first choose whether it is a target
2679### or a host dependent tool. Then put it into the appropriate list
2680### (library or tools, host or target), doing a dependency sort.
2681
2682# Subdirs will be configured in the order listed in build_configdirs,
2683# configdirs, or target_configdirs; see the serialization section below.
2684
2685# Dependency sorting is only needed when *configuration* must be done in
2686# a particular order. In all cases a dependency should be specified in
2687# the Makefile, whether or not it's implicitly specified here.
2688
2689# Double entries in build_configdirs, configdirs, or target_configdirs may
2690# cause circular dependencies and break everything horribly.
2691
2692# these library is used by various programs built for the build
2693# environment
2694#
2695build_libs="build-libiberty"
2696
2697# these tools are built for the build environment
2698build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2699
2700# these libraries are used by various programs built for the host environment
2701#
2702host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2703
2704# these tools are built for the host environment
2705# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2706# know that we are building the simulator.
2707# binutils, gas and ld appear in that order because it makes sense to run
2708# "make check" in that particular order.
2709# If --enable-gold is used, "gold" may replace "ld".
2710host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2711
2712# libgcj represents the runtime libraries only used by gcj.
2713libgcj="target-libffi \
2714 target-zlib \
2715 target-libjava"
2716
2717# these libraries are built for the target environment, and are built after
2718# the host libraries and the host tools (which may be a cross compiler)
2719# Note that libiberty is not a target library.
2720target_libraries="target-libgcc \
2721 target-libgloss \
2722 target-newlib \
2723 target-libgomp \
2724 target-libatomic \
2725 target-libitm \
2726 target-libstdc++-v3 \
2727 target-libmudflap \
2728 target-libssp \
2729 target-libquadmath \
2730 target-libgfortran \
2731 target-boehm-gc \
2732 ${libgcj} \
2733 target-libobjc \
2734 target-libada \
2735 target-libgo"
2736
2737# these tools are built using the target libraries, and are intended to
2738# run only in the target environment
2739#
2740# note: any program that *uses* libraries that are in the "target_libraries"
2741# list belongs in this list.
2742#
2743target_tools="target-rda"
2744
2745################################################################################
2746
2747## All tools belong in one of the four categories, and are assigned above
2748## We assign ${configdirs} this way to remove all embedded newlines. This
2749## is important because configure will choke if they ever get through.
2750## ${configdirs} is directories we build using the host tools.
2751## ${target_configdirs} is directories we build using the target tools.
2752configdirs=`echo ${host_libs} ${host_tools}`
2753target_configdirs=`echo ${target_libraries} ${target_tools}`
2754build_configdirs=`echo ${build_libs} ${build_tools}`
2755
2756
2757
2758################################################################################
2759
2760srcname="gnu development package"
2761
2762# This gets set non-empty for some net releases of packages.
2763appdirs=""
2764
2765# Define is_cross_compiler to save on calls to 'test'.
2766is_cross_compiler=
2767if test x"${host}" = x"${target}" ; then
2768 is_cross_compiler=no
2769else
2770 is_cross_compiler=yes
2771fi
2772
2773# Find the build and target subdir names.
2774
2775# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2776# have matching libraries, they should use host libraries: Makefile.tpl
2777# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2778# However, they still use the build modules, because the corresponding
2779# host modules (e.g. bison) are only built for the host when bootstrap
2780# finishes. So:
2781# - build_subdir is where we find build modules, and never changes.
2782# - build_libsubdir is where we find build libraries, and can be overridden.
2783
2784# Prefix 'build-' so this never conflicts with target_subdir.
2785build_subdir="build-${build_noncanonical}"
2786
2787# Check whether --with-build-libsubdir was given.
2788if test "${with_build_libsubdir+set}" = set; then :
2789 withval=$with_build_libsubdir; build_libsubdir="$withval"
2790else
2791 build_libsubdir="$build_subdir"
2792fi
2793
2794# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2795if ( test $srcdir = . && test -d gcc ) \
2796 || test -d $srcdir/../host-${host_noncanonical}; then
2797 host_subdir="host-${host_noncanonical}"
2798else
2799 host_subdir=.
2800fi
2801# No prefix.
2802target_subdir=${target_noncanonical}
2803
2804# Be sure to cover against remnants of an in-tree build.
2805if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2806 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2807Use a pristine source tree when building in a separate tree" "$LINENO" 5
2808fi
2809
2810# Skipdirs are removed silently.
2811skipdirs=
2812# Noconfigdirs are removed loudly.
2813noconfigdirs=""
2814
2815use_gnu_ld=
2816# Make sure we don't let GNU ld be added if we didn't want it.
2817if test x$with_gnu_ld = xno ; then
2818 use_gnu_ld=no
2819 noconfigdirs="$noconfigdirs ld gold"
2820fi
2821
2822use_gnu_as=
2823# Make sure we don't let GNU as be added if we didn't want it.
2824if test x$with_gnu_as = xno ; then
2825 use_gnu_as=no
2826 noconfigdirs="$noconfigdirs gas"
2827fi
2828
2829use_included_zlib=
2830# Make sure we don't let ZLIB be added if we didn't want it.
2831if test x$with_system_zlib = xyes ; then
2832 use_included_zlib=no
2833 noconfigdirs="$noconfigdirs zlib"
2834fi
2835
2836# some tools are so dependent upon X11 that if we're not building with X,
2837# it's not even worth trying to configure, much less build, that tool.
2838
2839case ${with_x} in
2840 yes | "") ;; # the default value for this tree is that X11 is available
2841 no)
2842 skipdirs="${skipdirs} tk itcl libgui"
2843 # We won't be able to build gdbtk without X.
2844 enable_gdbtk=no
2845 ;;
2846 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2847esac
2848
2849# Some are only suitable for cross toolchains.
2850# Remove these if host=target.
2851cross_only="target-libgloss target-newlib target-opcodes"
2852
2853case $is_cross_compiler in
2854 no) skipdirs="${skipdirs} ${cross_only}" ;;
2855esac
2856
2857# If both --with-headers and --with-libs are specified, default to
2858# --without-newlib.
2859if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2860 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2861 if test x"${with_newlib}" = x ; then
2862 with_newlib=no
2863 fi
2864fi
2865
2866# Recognize --with-newlib/--without-newlib.
2867case ${with_newlib} in
2868 no) skipdirs="${skipdirs} target-newlib" ;;
2869 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2870esac
2871
2872# Handle --enable-gold, --enable-ld.
2873# --disable-gold [--enable-ld]
2874# Build only ld. Default option.
2875# --enable-gold [--enable-ld]
2876# Build both gold and ld. Install gold as "ld.gold", install ld
2877# as "ld.bfd" and "ld".
2878# --enable-gold=default [--enable-ld]
2879# Build both gold and ld. Install gold as "ld.gold" and "ld",
2880# install ld as "ld.bfd".
2881# --enable-gold[=default] --disable-ld
2882# Build only gold, which is then installed as both "ld.gold" and "ld".
2883# --enable-gold --enable-ld=default
2884# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2885# and ld.bfd).
2886# In other words, ld is default
2887# --enable-gold=default --enable-ld=default
2888# Error.
2889
2890default_ld=
2891# Check whether --enable-gold was given.
2892if test "${enable_gold+set}" = set; then :
2893 enableval=$enable_gold; ENABLE_GOLD=$enableval
2894else
2895 ENABLE_GOLD=no
2896fi
2897
2898case "${ENABLE_GOLD}" in
2899 yes|default)
2900 # Check for ELF target.
2901 is_elf=no
2902 case "${target}" in
2903 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2904 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2905 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2906 | *-*-solaris2* | *-*-nto*)
2907 case "${target}" in
2908 *-*-linux*aout* | *-*-linux*oldld*)
2909 ;;
2910 *)
2911 is_elf=yes
2912 ;;
2913 esac
2914 esac
2915
2916 if test "$is_elf" = "yes"; then
2917 # Check for target supported by gold.
2918 case "${target}" in
2919 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2920 configdirs="$configdirs gold"
2921 if test x${ENABLE_GOLD} = xdefault; then
2922 default_ld=gold
2923 fi
2924 ENABLE_GOLD=yes
2925 ;;
2926 esac
2927 fi
2928 ;;
2929 no)
2930 ;;
2931 *)
2932 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2933 ;;
2934esac
2935
2936# Check whether --enable-ld was given.
2937if test "${enable_ld+set}" = set; then :
2938 enableval=$enable_ld; ENABLE_LD=$enableval
2939else
2940 ENABLE_LD=yes
2941fi
2942
2943
2944case "${ENABLE_LD}" in
2945 default)
2946 if test x${default_ld} != x; then
2947 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2948 fi
2949 ;;
2950 yes)
2951 ;;
2952 no)
2953 if test x${ENABLE_GOLD} != xyes; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2955$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2956 fi
2957 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2958 ;;
2959 *)
2960 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2961 ;;
2962esac
2963
2964# Configure extra directories which are host specific
2965
2966case "${host}" in
2967 *-cygwin*)
2968 configdirs="$configdirs libtermcap" ;;
2969esac
2970
2971# A target can indicate whether a language isn't supported for some reason.
2972# Only spaces may be used in this macro; not newlines or tabs.
2973unsupported_languages=
2974
2975# Remove more programs from consideration, based on the host or
2976# target this usually means that a port of the program doesn't
2977# exist yet.
2978
2979case "${host}" in
2980 i[3456789]86-*-msdosdjgpp*)
2981 noconfigdirs="$noconfigdirs tcl tk itcl"
2982 ;;
2983esac
2984
2985
2986# Check whether --enable-libquadmath was given.
2987if test "${enable_libquadmath+set}" = set; then :
2988 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2989else
2990 ENABLE_LIBQUADMATH=yes
2991fi
2992
2993if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2994 noconfigdirs="$noconfigdirs target-libquadmath"
2995fi
2996
2997
2998# Check whether --enable-libquadmath-support was given.
2999if test "${enable_libquadmath_support+set}" = set; then :
3000 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3001else
3002 ENABLE_LIBQUADMATH_SUPPORT=yes
3003fi
3004
3005enable_libquadmath_support=
3006if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3007 enable_libquadmath_support=no
3008fi
3009
3010
3011# Check whether --enable-libada was given.
3012if test "${enable_libada+set}" = set; then :
3013 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3014else
3015 ENABLE_LIBADA=yes
3016fi
3017
3018if test "${ENABLE_LIBADA}" != "yes" ; then
3019 noconfigdirs="$noconfigdirs gnattools"
3020fi
3021
3022# Check whether --enable-libssp was given.
3023if test "${enable_libssp+set}" = set; then :
3024 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3025else
3026 ENABLE_LIBSSP=yes
3027fi
3028
3029
3030# Save it here so that, even in case of --enable-libgcj, if the Java
3031# front-end isn't enabled, we still get libgcj disabled.
3032libgcj_saved=$libgcj
3033case $enable_libgcj in
3034yes)
3035 # If we reset it here, it won't get added to noconfigdirs in the
3036 # target-specific build rules, so it will be forcibly enabled
3037 # (unless the Java language itself isn't enabled).
3038 libgcj=
3039 ;;
3040no)
3041 # Make sure we get it printed in the list of not supported target libs.
3042 # Don't disable libffi, though, other languages use it.
3043 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3044 # Clear libgcj_saved so that even if java is enabled libffi won't be
3045 # built.
3046 libgcj_saved=
3047 ;;
3048esac
3049
3050# Check whether --enable-static-libjava was given.
3051if test "${enable_static_libjava+set}" = set; then :
3052 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3053else
3054 ENABLE_STATIC_LIBJAVA=no
3055fi
3056
3057enable_static_libjava=
3058if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3059 enable_static_libjava=yes
3060fi
3061
3062if test x$enable_static_libjava != xyes ; then
3063 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3064fi
3065
3066
3067# Disable libmudflap on some systems.
3068if test x$enable_libmudflap = x ; then
3069 case "${target}" in
3070 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3071 # Enable libmudflap by default in GNU and friends.
3072 ;;
3073 *-*-freebsd*)
3074 # Enable libmudflap by default in FreeBSD.
3075 ;;
3076 *)
3077 # Disable it by default everywhere else.
3078 noconfigdirs="$noconfigdirs target-libmudflap"
3079 ;;
3080 esac
3081fi
3082
3083# Disable libgomp on non POSIX hosted systems.
3084if test x$enable_libgomp = x ; then
3085 # Enable libgomp by default on hosted POSIX systems.
3086 case "${target}" in
3087 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3088 ;;
3089 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3090 ;;
3091 *-*-solaris2* | *-*-hpux11*)
3092 ;;
3093 *-*-darwin* | *-*-aix*)
3094 ;;
3095 *)
3096 noconfigdirs="$noconfigdirs target-libgomp"
3097 ;;
3098 esac
3099fi
3100
3101# Disable libatomic on unsupported systems.
3102if test -d ${srcdir}/libatomic; then
3103 if test x$enable_libatomic = x; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3105$as_echo_n "checking for libatomic support... " >&6; }
3106 if (srcdir=${srcdir}/libatomic; \
3107 . ${srcdir}/configure.tgt; \
3108 test -n "$UNSUPPORTED")
3109 then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111$as_echo "no" >&6; }
3112 noconfigdirs="$noconfigdirs target-libatomic"
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3115$as_echo "yes" >&6; }
3116 fi
3117 fi
3118fi
3119
3120# Disable libitm on unsupported systems.
3121if test -d ${srcdir}/libitm; then
3122 if test x$enable_libitm = x; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3124$as_echo_n "checking for libitm support... " >&6; }
3125 if (srcdir=${srcdir}/libitm; \
3126 . ${srcdir}/configure.tgt; \
3127 test -n "$UNSUPPORTED")
3128 then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130$as_echo "no" >&6; }
3131 noconfigdirs="$noconfigdirs target-libitm"
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134$as_echo "yes" >&6; }
3135 fi
3136 fi
3137fi
3138
3139# Disable libssp for some systems.
3140case "${target}" in
3141 avr-*-*)
3142 # No hosted I/O support.
3143 noconfigdirs="$noconfigdirs target-libssp"
3144 ;;
3145 powerpc-*-aix* | rs6000-*-aix*)
3146 noconfigdirs="$noconfigdirs target-libssp"
3147 ;;
3148 rl78-*-*)
3149 # libssp uses a misaligned load to trigger a fault, but the RL78
3150 # doesn't fault for those - instead, it gives a build-time error
3151 # for explicit misaligned loads.
3152 noconfigdirs="$noconfigdirs target-libssp"
3153 ;;
3154esac
3155
3156# Disable libstdc++-v3 for some systems.
3157case "${target}" in
3158 *-*-vxworks*)
3159 # VxWorks uses the Dinkumware C++ library.
3160 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3161 ;;
3162 arm*-wince-pe*)
3163 # the C++ libraries don't build on top of CE's C libraries
3164 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3165 ;;
3166 avr-*-*)
3167 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3168 ;;
3169esac
3170
3171# Disable Fortran for some systems.
3172case "${target}" in
3173 mmix-*-*)
3174 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3175 unsupported_languages="$unsupported_languages fortran"
3176 ;;
3177esac
3178
3179# Disable Java if libffi is not supported.
3180case "${target}" in
3181 alpha*-*-*)
3182 ;;
3183 arm*-*-*)
3184 ;;
3185 cris-*-*)
3186 ;;
3187 frv-*-*)
3188 ;;
3189 hppa*-*-linux*)
3190 ;;
3191 hppa*-*-hpux*)
3192 ;;
3193 i?86-*-*)
3194 ;;
3195 ia64*-*-*)
3196 ;;
3197 m32r*-*-*)
3198 ;;
3199 m68k-*-*)
3200 ;;
3201 mips*-*-rtems*)
3202 ;;
3203 mips*-*-linux*)
3204 ;;
3205 powerpc*-*-linux*)
3206 ;;
3207 powerpc-*-darwin*)
3208 ;;
3209 powerpc-*-aix* | rs6000-*-aix*)
3210 ;;
3211 powerpc-*-freebsd*)
3212 ;;
3213 powerpc64-*-freebsd*)
3214 ;;
3215 powerpc*-*-rtems*)
3216 ;;
3217 s390-*-* | s390x-*-*)
3218 ;;
3219 sh-*-* | sh[34]*-*-*)
3220 ;;
3221 sh64-*-* | sh5*-*-*)
3222 ;;
3223 sparc*-*-*)
3224 ;;
3225 x86_64-*-*)
3226 ;;
3227 *-*-*)
3228 unsupported_languages="$unsupported_languages java"
3229 ;;
3230esac
3231
3232# Disable Java, libgcj or related libraries for some systems.
3233case "${target}" in
3234 powerpc-*-darwin*)
3235 ;;
3236 i[3456789]86-*-darwin*)
3237 ;;
3238 x86_64-*-darwin[912]*)
3239 ;;
3240 *-*-darwin*)
3241 noconfigdirs="$noconfigdirs ${libgcj}"
3242 ;;
3243 *-*-netware*)
3244 noconfigdirs="$noconfigdirs ${libgcj}"
3245 ;;
3246 *-*-rtems*)
3247 noconfigdirs="$noconfigdirs ${libgcj}"
3248 ;;
3249 *-*-tpf*)
3250 noconfigdirs="$noconfigdirs ${libgcj}"
3251 ;;
3252 *-*-uclinux*)
3253 noconfigdirs="$noconfigdirs ${libgcj}"
3254 ;;
3255 *-*-vxworks*)
3256 noconfigdirs="$noconfigdirs ${libgcj}"
3257 ;;
3258 alpha*-*-*vms*)
3259 noconfigdirs="$noconfigdirs ${libgcj}"
3260 ;;
3261 arm-wince-pe)
3262 noconfigdirs="$noconfigdirs ${libgcj}"
3263 ;;
3264 arm*-*-symbianelf*)
3265 noconfigdirs="$noconfigdirs ${libgcj}"
3266 ;;
3267 bfin-*-*)
3268 noconfigdirs="$noconfigdirs target-boehm-gc"
3269 ;;
3270 cris-*-* | crisv32-*-*)
3271 unsupported_languages="$unsupported_languages java"
3272 case "${target}" in
3273 *-*-linux*)
3274 ;;
3275 *) # See PR46792 regarding target-libffi.
3276 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3277 esac
3278 ;;
3279 hppa*64*-*-linux*)
3280 # In this case, it's because the hppa64-linux target is for
3281 # the kernel only at this point and has no libc, and thus no
3282 # headers, crt*.o, etc., all of which are needed by these.
3283 unsupported_languages="$unsupported_languages java"
3284 ;;
3285 hppa*64*-*-hpux*)
3286 noconfigdirs="$noconfigdirs ${libgcj}"
3287 ;;
3288 hppa*-hp-hpux11*)
3289 ;;
3290 hppa*-*-hpux*)
3291 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3292 # build on HP-UX 10.20.
3293 noconfigdirs="$noconfigdirs ${libgcj}"
3294 ;;
3295 ia64*-*-*vms*)
3296 noconfigdirs="$noconfigdirs ${libgcj}"
3297 ;;
3298 i[3456789]86-w64-mingw*)
3299 noconfigdirs="$noconfigdirs ${libgcj}"
3300 ;;
3301 i[3456789]86-*-mingw*)
3302 noconfigdirs="$noconfigdirs ${libgcj}"
3303 ;;
3304 x86_64-*-mingw*)
3305 noconfigdirs="$noconfigdirs ${libgcj}"
3306 ;;
3307 mmix-*-*)
3308 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3309 ;;
3310 powerpc-*-aix*)
3311 # copied from rs6000-*-* entry
3312 noconfigdirs="$noconfigdirs ${libgcj}"
3313 ;;
3314 rs6000-*-aix*)
3315 noconfigdirs="$noconfigdirs ${libgcj}"
3316 ;;
3317 *-*-lynxos*)
3318 noconfigdirs="$noconfigdirs ${libgcj}"
3319 ;;
3320esac
3321
3322# Default libgloss CPU subdirectory.
3323libgloss_dir="$target_cpu"
3324
3325case "${target}" in
3326 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3327 libgloss_dir=wince
3328 ;;
3329 arm*-*-*)
3330 libgloss_dir=arm
3331 ;;
3332 cris-*-* | crisv32-*-*)
3333 libgloss_dir=cris
3334 ;;
3335 hppa*-*-*)
3336 libgloss_dir=pa
3337 ;;
3338 i[3456789]86-*-*)
3339 libgloss_dir=i386
3340 ;;
3341 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3342 libgloss_dir=m68hc11
3343 ;;
3344 m68*-*-* | fido-*-*)
3345 libgloss_dir=m68k
3346 ;;
3347 mips*-*-*)
3348 libgloss_dir=mips
3349 ;;
3350 powerpc*-*-*)
3351 libgloss_dir=rs6000
3352 ;;
3353 sparc*-*-*)
3354 libgloss_dir=sparc
3355 ;;
3356esac
3357
3358# Disable newlib and libgloss for various target OSes.
3359case "${target}" in
3360 alpha*-dec-osf*)
3361 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3362 ;;
3363 i[3456789]86-*-linux*)
3364 # This section makes it possible to build newlib natively on linux.
3365 # If we are using a cross compiler then don't configure newlib.
3366 if test x${is_cross_compiler} != xno ; then
3367 noconfigdirs="$noconfigdirs target-newlib"
3368 fi
3369 noconfigdirs="$noconfigdirs target-libgloss"
3370 # If we are not using a cross compiler, do configure newlib.
3371 # Note however, that newlib will only be configured in this situation
3372 # if the --with-newlib option has been given, because otherwise
3373 # 'target-newlib' will appear in skipdirs.
3374 ;;
3375 i[3456789]86-*-rdos*)
3376 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3377 ;;
3378 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3379 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3380 ;;
3381 sparc-*-sunos4*)
3382 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3383 ;;
3384 *-*-aix*)
3385 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3386 ;;
3387 *-*-beos*)
3388 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3389 ;;
3390 *-*-chorusos)
3391 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3392 ;;
3393 *-*-dragonfly*)
3394 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3395 ;;
3396 *-*-freebsd*)
3397 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3398 ;;
3399 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3400 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3401 ;;
3402 *-*-lynxos*)
3403 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3404 ;;
3405 *-*-mingw*)
3406 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3407 ;;
3408 *-*-netbsd*)
3409 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3410 ;;
3411 *-*-netware*)
3412 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3413 ;;
3414 *-*-tpf*)
3415 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3416 ;;
3417 *-*-uclinux*)
3418 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3419 ;;
3420 *-*-vxworks*)
3421 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3422 ;;
3423esac
3424
3425case "${target}" in
3426 *-*-chorusos)
3427 ;;
3428 powerpc-*-darwin*)
3429 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3430 noconfigdirs="$noconfigdirs sim target-rda"
3431 ;;
3432 i[3456789]86-*-darwin*)
3433 noconfigdirs="$noconfigdirs ld gprof"
3434 noconfigdirs="$noconfigdirs sim target-rda"
3435 ;;
3436 x86_64-*-darwin[912]*)
3437 noconfigdirs="$noconfigdirs ld gas gprof"
3438 noconfigdirs="$noconfigdirs sim target-rda"
3439 ;;
3440 *-*-darwin*)
3441 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3442 noconfigdirs="$noconfigdirs sim target-rda"
3443 ;;
3444 *-*-dragonfly*)
3445 ;;
3446 *-*-freebsd*)
3447 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3448 && test -f /usr/local/include/gmp.h; then
3449 with_gmp=/usr/local
3450 fi
3451 ;;
3452 *-*-kaos*)
3453 # Remove unsupported stuff on all kaOS configurations.
3454 noconfigdirs="$noconfigdirs target-libgloss"
3455 ;;
3456 *-*-netbsd*)
3457 ;;
3458 *-*-netware*)
3459 ;;
3460 *-*-rtems*)
3461 noconfigdirs="$noconfigdirs target-libgloss"
3462 ;;
3463 # The tpf target doesn't support gdb yet.
3464 *-*-tpf*)
3465 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3466 ;;
3467 *-*-uclinux*)
3468 noconfigdirs="$noconfigdirs target-rda"
3469 ;;
3470 *-*-vxworks*)
3471 ;;
3472 alpha*-dec-osf*)
3473 # ld works, but does not support shared libraries.
3474 # gas doesn't generate exception information.
3475 noconfigdirs="$noconfigdirs gas ld"
3476 ;;
3477 alpha*-*-*vms*)
3478 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3479 ;;
3480 alpha*-*-*)
3481 # newlib is not 64 bit ready
3482 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3483 ;;
3484 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3485 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3486 ;;
3487 arc-*-*)
3488 noconfigdirs="$noconfigdirs target-libgloss"
3489 ;;
3490 arm-*-pe*)
3491 noconfigdirs="$noconfigdirs target-libgloss"
3492 ;;
3493 arm-*-riscix*)
3494 noconfigdirs="$noconfigdirs ld target-libgloss"
3495 ;;
3496 c4x-*-* | tic4x-*-*)
3497 noconfigdirs="$noconfigdirs target-libgloss"
3498 ;;
3499 tic54x-*-*)
3500 noconfigdirs="$noconfigdirs target-libgloss gdb"
3501 ;;
3502 d10v-*-*)
3503 noconfigdirs="$noconfigdirs target-libgloss"
3504 ;;
3505 d30v-*-*)
3506 noconfigdirs="$noconfigdirs gdb"
3507 ;;
3508 fr30-*-elf*)
3509 noconfigdirs="$noconfigdirs gdb"
3510 ;;
3511 moxie-*-*)
3512 noconfigdirs="$noconfigdirs gprof"
3513 ;;
3514 h8300*-*-*)
3515 noconfigdirs="$noconfigdirs target-libgloss"
3516 ;;
3517 h8500-*-*)
3518 noconfigdirs="$noconfigdirs target-libgloss"
3519 ;;
3520 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3521 ;;
3522 hppa*64*-*-linux*)
3523 ;;
3524 hppa*-*-linux*)
3525 ;;
3526 hppa*-*-*elf* | \
3527 hppa*-*-lites* | \
3528 hppa*-*-openbsd* | \
3529 hppa*64*-*-*)
3530 ;;
3531 hppa*-hp-hpux11*)
3532 noconfigdirs="$noconfigdirs ld"
3533 ;;
3534 hppa*-*-pro*)
3535 ;;
3536 hppa*-*-*)
3537 noconfigdirs="$noconfigdirs ld"
3538 ;;
3539 i960-*-*)
3540 noconfigdirs="$noconfigdirs gdb"
3541 ;;
3542 ia64*-*-elf*)
3543 # No gdb support yet.
3544 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3545 ;;
3546 ia64*-**-hpux*)
3547 # No ld support yet.
3548 noconfigdirs="$noconfigdirs libgui itcl ld"
3549 ;;
3550 ia64*-*-*vms*)
3551 # No ld support yet.
3552 noconfigdirs="$noconfigdirs libgui itcl ld"
3553 ;;
3554 i[3456789]86-w64-mingw*)
3555 ;;
3556 i[3456789]86-*-mingw*)
3557 target_configdirs="$target_configdirs target-winsup"
3558 ;;
3559 *-*-cygwin*)
3560 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3561 noconfigdirs="$noconfigdirs target-libgloss"
3562 # always build newlib if winsup directory is present.
3563 if test -d "$srcdir/winsup/cygwin"; then
3564 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3565 elif test -d "$srcdir/newlib"; then
3566 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3567 fi
3568 ;;
3569 i[3456789]86-*-pe)
3570 noconfigdirs="$noconfigdirs target-libgloss"
3571 ;;
3572 i[3456789]86-*-sco3.2v5*)
3573 # The linker does not yet know about weak symbols in COFF,
3574 # and is not configured to handle mixed ELF and COFF.
3575 noconfigdirs="$noconfigdirs ld target-libgloss"
3576 ;;
3577 i[3456789]86-*-sco*)
3578 noconfigdirs="$noconfigdirs gprof target-libgloss"
3579 ;;
3580 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3581 noconfigdirs="$noconfigdirs target-libgloss"
3582 ;;
3583 i[3456789]86-*-sysv4*)
3584 noconfigdirs="$noconfigdirs target-libgloss"
3585 ;;
3586 i[3456789]86-*-beos*)
3587 noconfigdirs="$noconfigdirs gdb"
3588 ;;
3589 i[3456789]86-*-rdos*)
3590 noconfigdirs="$noconfigdirs gdb"
3591 ;;
3592 mmix-*-*)
3593 noconfigdirs="$noconfigdirs gdb"
3594 ;;
3595 mt-*-*)
3596 noconfigdirs="$noconfigdirs sim"
3597 ;;
3598 powerpc-*-aix*)
3599 # copied from rs6000-*-* entry
3600 noconfigdirs="$noconfigdirs gprof"
3601 ;;
3602 powerpc*-*-winnt* | powerpc*-*-pe*)
3603 target_configdirs="$target_configdirs target-winsup"
3604 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3605 # always build newlib.
3606 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3607 ;;
3608 # This is temporary until we can link against shared libraries
3609 powerpcle-*-solaris*)
3610 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3611 ;;
3612 powerpc-*-beos*)
3613 noconfigdirs="$noconfigdirs gdb"
3614 ;;
3615 rs6000-*-lynxos*)
3616 noconfigdirs="$noconfigdirs gprof"
3617 ;;
3618 rs6000-*-aix*)
3619 noconfigdirs="$noconfigdirs gprof"
3620 ;;
3621 rs6000-*-*)
3622 noconfigdirs="$noconfigdirs gprof"
3623 ;;
3624 m68k-apollo-*)
3625 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3626 ;;
3627 microblaze*)
3628 noconfigdirs="$noconfigdirs gprof"
3629 ;;
3630 mips*-sde-elf*)
3631 if test x$with_newlib = xyes; then
3632 noconfigdirs="$noconfigdirs gprof"
3633 fi
3634 ;;
3635 mips*-*-irix5*)
3636 noconfigdirs="$noconfigdirs gprof target-libgloss"
3637 ;;
3638 mips*-*-irix6*)
3639 noconfigdirs="$noconfigdirs gprof target-libgloss"
3640 ;;
3641 mips*-*-bsd*)
3642 noconfigdirs="$noconfigdirs gprof target-libgloss"
3643 ;;
3644 mips*-*-linux*)
3645 ;;
3646 mips*-*-*)
3647 noconfigdirs="$noconfigdirs gprof"
3648 ;;
3649 sh-*-* | sh64-*-*)
3650 case "${target}" in
3651 sh*-*-elf)
3652 ;;
3653 *)
3654 noconfigdirs="$noconfigdirs target-libgloss" ;;
3655 esac
3656 ;;
3657 sparc-*-sunos4*)
3658 if test x${is_cross_compiler} = xno ; then
3659 use_gnu_ld=no
3660 fi
3661 ;;
3662 tic6x-*-*)
3663 noconfigdirs="$noconfigdirs sim"
3664 ;;
3665 tilepro-*-* | tilegx-*-*)
3666 noconfigdirs="$noconfigdirs sim"
3667 ;;
3668 v810-*-*)
3669 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3670 ;;
3671 vax-*-*)
3672 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3673 ;;
3674esac
3675
3676# If we aren't building newlib, then don't build libgloss, since libgloss
3677# depends upon some newlib header files.
3678case "${noconfigdirs}" in
3679 *target-libgloss*) ;;
3680 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3681esac
3682
3683# Work in distributions that contain no compiler tools, like Autoconf.
3684host_makefile_frag=/dev/null
3685if test -d ${srcdir}/config ; then
3686case "${host}" in
3687 i[3456789]86-*-msdosdjgpp*)
3688 host_makefile_frag="config/mh-djgpp"
3689 ;;
3690 *-cygwin*)
3691
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3693$as_echo_n "checking to see if cat works as expected... " >&6; }
3694echo a >cygwin-cat-check
3695if test `cat cygwin-cat-check` = a ; then
3696 rm cygwin-cat-check
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3698$as_echo "yes" >&6; }
3699else
3700 rm cygwin-cat-check
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702$as_echo "no" >&6; }
3703 as_fn_error "The cat command does not ignore carriage return characters.
3704 Please either mount the build directory in binary mode or run the following
3705 commands before running any configure script:
3706set -o igncr
3707export SHELLOPTS
3708 " "$LINENO" 5
3709fi
3710
3711 host_makefile_frag="config/mh-cygwin"
3712 ;;
3713 *-mingw*)
3714 host_makefile_frag="config/mh-mingw"
3715 ;;
3716 hppa*-hp-hpux10*)
3717 host_makefile_frag="config/mh-pa-hpux10"
3718 ;;
3719 hppa*-hp-hpux*)
3720 host_makefile_frag="config/mh-pa"
3721 ;;
3722 hppa*-*)
3723 host_makefile_frag="config/mh-pa"
3724 ;;
3725 *-*-darwin*)
3726 host_makefile_frag="config/mh-darwin"
3727 ;;
3728 powerpc-*-aix*)
3729 host_makefile_frag="config/mh-ppc-aix"
3730 ;;
3731 rs6000-*-aix*)
3732 host_makefile_frag="config/mh-ppc-aix"
3733 ;;
3734esac
3735fi
3736
3737if test "${build}" != "${host}" ; then
3738 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3739 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3740 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3741 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3742 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3743 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3744 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3745 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3746 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3747 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3748 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3749 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3750 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3751else
3752 AR_FOR_BUILD="\$(AR)"
3753 AS_FOR_BUILD="\$(AS)"
3754 CC_FOR_BUILD="\$(CC)"
3755 CXX_FOR_BUILD="\$(CXX)"
3756 GCJ_FOR_BUILD="\$(GCJ)"
3757 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3758 GOC_FOR_BUILD="\$(GOC)"
3759 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3760 LD_FOR_BUILD="\$(LD)"
3761 NM_FOR_BUILD="\$(NM)"
3762 RANLIB_FOR_BUILD="\$(RANLIB)"
3763 WINDRES_FOR_BUILD="\$(WINDRES)"
3764 WINDMC_FOR_BUILD="\$(WINDMC)"
3765fi
3766
3767ac_ext=c
3768ac_cpp='$CPP $CPPFLAGS'
3769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772if test -n "$ac_tool_prefix"; then
3773 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3774set dummy ${ac_tool_prefix}gcc; ac_word=$2
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3776$as_echo_n "checking for $ac_word... " >&6; }
3777if test "${ac_cv_prog_CC+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
3779else
3780 if test -n "$CC"; then
3781 ac_cv_prog_CC="$CC" # Let the user override the test.
3782else
3783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784for as_dir in $PATH
3785do
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3790 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3792 break 2
3793 fi
3794done
3795 done
3796IFS=$as_save_IFS
3797
3798fi
3799fi
3800CC=$ac_cv_prog_CC
3801if test -n "$CC"; then
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3803$as_echo "$CC" >&6; }
3804else
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806$as_echo "no" >&6; }
3807fi
3808
3809
3810fi
3811if test -z "$ac_cv_prog_CC"; then
3812 ac_ct_CC=$CC
3813 # Extract the first word of "gcc", so it can be a program name with args.
3814set dummy gcc; ac_word=$2
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3816$as_echo_n "checking for $ac_word... " >&6; }
3817if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3818 $as_echo_n "(cached) " >&6
3819else
3820 if test -n "$ac_ct_CC"; then
3821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3822else
3823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824for as_dir in $PATH
3825do
3826 IFS=$as_save_IFS
3827 test -z "$as_dir" && as_dir=.
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3830 ac_cv_prog_ac_ct_CC="gcc"
3831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3832 break 2
3833 fi
3834done
3835 done
3836IFS=$as_save_IFS
3837
3838fi
3839fi
3840ac_ct_CC=$ac_cv_prog_ac_ct_CC
3841if test -n "$ac_ct_CC"; then
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3843$as_echo "$ac_ct_CC" >&6; }
3844else
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846$as_echo "no" >&6; }
3847fi
3848
3849 if test "x$ac_ct_CC" = x; then
3850 CC=""
3851 else
3852 case $cross_compiling:$ac_tool_warned in
3853yes:)
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3856ac_tool_warned=yes ;;
3857esac
3858 CC=$ac_ct_CC
3859 fi
3860else
3861 CC="$ac_cv_prog_CC"
3862fi
3863
3864if test -z "$CC"; then
3865 if test -n "$ac_tool_prefix"; then
3866 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3867set dummy ${ac_tool_prefix}cc; ac_word=$2
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3869$as_echo_n "checking for $ac_word... " >&6; }
3870if test "${ac_cv_prog_CC+set}" = set; then :
3871 $as_echo_n "(cached) " >&6
3872else
3873 if test -n "$CC"; then
3874 ac_cv_prog_CC="$CC" # Let the user override the test.
3875else
3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH
3878do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3883 ac_cv_prog_CC="${ac_tool_prefix}cc"
3884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 break 2
3886 fi
3887done
3888 done
3889IFS=$as_save_IFS
3890
3891fi
3892fi
3893CC=$ac_cv_prog_CC
3894if test -n "$CC"; then
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3896$as_echo "$CC" >&6; }
3897else
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899$as_echo "no" >&6; }
3900fi
3901
3902
3903 fi
3904fi
3905if test -z "$CC"; then
3906 # Extract the first word of "cc", so it can be a program name with args.
3907set dummy cc; ac_word=$2
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909$as_echo_n "checking for $ac_word... " >&6; }
3910if test "${ac_cv_prog_CC+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3912else
3913 if test -n "$CC"; then
3914 ac_cv_prog_CC="$CC" # Let the user override the test.
3915else
3916 ac_prog_rejected=no
3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH
3919do
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3924 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3925 ac_prog_rejected=yes
3926 continue
3927 fi
3928 ac_cv_prog_CC="cc"
3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 break 2
3931 fi
3932done
3933 done
3934IFS=$as_save_IFS
3935
3936if test $ac_prog_rejected = yes; then
3937 # We found a bogon in the path, so make sure we never use it.
3938 set dummy $ac_cv_prog_CC
3939 shift
3940 if test $# != 0; then
3941 # We chose a different compiler from the bogus one.
3942 # However, it has the same basename, so the bogon will be chosen
3943 # first if we set CC to just the basename; use the full file name.
3944 shift
3945 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3946 fi
3947fi
3948fi
3949fi
3950CC=$ac_cv_prog_CC
3951if test -n "$CC"; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3953$as_echo "$CC" >&6; }
3954else
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956$as_echo "no" >&6; }
3957fi
3958
3959
3960fi
3961if test -z "$CC"; then
3962 if test -n "$ac_tool_prefix"; then
3963 for ac_prog in cl.exe
3964 do
3965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3966set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968$as_echo_n "checking for $ac_word... " >&6; }
3969if test "${ac_cv_prog_CC+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3971else
3972 if test -n "$CC"; then
3973 ac_cv_prog_CC="$CC" # Let the user override the test.
3974else
3975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976for as_dir in $PATH
3977do
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3982 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 break 2
3985 fi
3986done
3987 done
3988IFS=$as_save_IFS
3989
3990fi
3991fi
3992CC=$ac_cv_prog_CC
3993if test -n "$CC"; then
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3995$as_echo "$CC" >&6; }
3996else
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998$as_echo "no" >&6; }
3999fi
4000
4001
4002 test -n "$CC" && break
4003 done
4004fi
4005if test -z "$CC"; then
4006 ac_ct_CC=$CC
4007 for ac_prog in cl.exe
4008do
4009 # Extract the first word of "$ac_prog", so it can be a program name with args.
4010set dummy $ac_prog; ac_word=$2
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4012$as_echo_n "checking for $ac_word... " >&6; }
4013if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4014 $as_echo_n "(cached) " >&6
4015else
4016 if test -n "$ac_ct_CC"; then
4017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4018else
4019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4026 ac_cv_prog_ac_ct_CC="$ac_prog"
4027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4028 break 2
4029 fi
4030done
4031 done
4032IFS=$as_save_IFS
4033
4034fi
4035fi
4036ac_ct_CC=$ac_cv_prog_ac_ct_CC
4037if test -n "$ac_ct_CC"; then
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4039$as_echo "$ac_ct_CC" >&6; }
4040else
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4042$as_echo "no" >&6; }
4043fi
4044
4045
4046 test -n "$ac_ct_CC" && break
4047done
4048
4049 if test "x$ac_ct_CC" = x; then
4050 CC=""
4051 else
4052 case $cross_compiling:$ac_tool_warned in
4053yes:)
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4056ac_tool_warned=yes ;;
4057esac
4058 CC=$ac_ct_CC
4059 fi
4060fi
4061
4062fi
4063
4064
4065test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4067as_fn_error "no acceptable C compiler found in \$PATH
4068See \`config.log' for more details." "$LINENO" 5; }
4069
4070# Provide some information about the compiler.
4071$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4072set X $ac_compile
4073ac_compiler=$2
4074for ac_option in --version -v -V -qversion; do
4075 { { ac_try="$ac_compiler $ac_option >&5"
4076case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079esac
4080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4081$as_echo "$ac_try_echo"; } >&5
4082 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4083 ac_status=$?
4084 if test -s conftest.err; then
4085 sed '10a\
4086... rest of stderr output deleted ...
4087 10q' conftest.err >conftest.er1
4088 cat conftest.er1 >&5
4089 rm -f conftest.er1 conftest.err
4090 fi
4091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4092 test $ac_status = 0; }
4093done
4094
4095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096/* end confdefs.h. */
4097
4098int
4099main ()
4100{
4101
4102 ;
4103 return 0;
4104}
4105_ACEOF
4106ac_clean_files_save=$ac_clean_files
4107ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4108# Try to create an executable without -o first, disregard a.out.
4109# It will help us diagnose broken compilers, and finding out an intuition
4110# of exeext.
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4112$as_echo_n "checking for C compiler default output file name... " >&6; }
4113ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4114
4115# The possible output files:
4116ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4117
4118ac_rmfiles=
4119for ac_file in $ac_files
4120do
4121 case $ac_file in
4122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4123 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4124 esac
4125done
4126rm -f $ac_rmfiles
4127
4128if { { ac_try="$ac_link_default"
4129case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132esac
4133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4134$as_echo "$ac_try_echo"; } >&5
4135 (eval "$ac_link_default") 2>&5
4136 ac_status=$?
4137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4138 test $ac_status = 0; }; then :
4139 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4140# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4141# in a Makefile. We should not override ac_cv_exeext if it was cached,
4142# so that the user can short-circuit this test for compilers unknown to
4143# Autoconf.
4144for ac_file in $ac_files ''
4145do
4146 test -f "$ac_file" || continue
4147 case $ac_file in
4148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4149 ;;
4150 [ab].out )
4151 # We found the default executable, but exeext='' is most
4152 # certainly right.
4153 break;;
4154 *.* )
4155 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4156 then :; else
4157 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4158 fi
4159 # We set ac_cv_exeext here because the later test for it is not
4160 # safe: cross compilers may not add the suffix if given an `-o'
4161 # argument, so we may need to know it at that point already.
4162 # Even if this section looks crufty: it has the advantage of
4163 # actually working.
4164 break;;
4165 * )
4166 break;;
4167 esac
4168done
4169test "$ac_cv_exeext" = no && ac_cv_exeext=
4170
4171else
4172 ac_file=''
4173fi
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4175$as_echo "$ac_file" >&6; }
4176if test -z "$ac_file"; then :
4177 $as_echo "$as_me: failed program was:" >&5
4178sed 's/^/| /' conftest.$ac_ext >&5
4179
4180{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4182{ as_fn_set_status 77
4183as_fn_error "C compiler cannot create executables
4184See \`config.log' for more details." "$LINENO" 5; }; }
4185fi
4186ac_exeext=$ac_cv_exeext
4187
4188# Check that the compiler produces executables we can run. If not, either
4189# the compiler is broken, or we cross compile.
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4191$as_echo_n "checking whether the C compiler works... " >&6; }
4192# If not cross compiling, check that we can run a simple program.
4193if test "$cross_compiling" != yes; then
4194 if { ac_try='./$ac_file'
4195 { { case "(($ac_try" in
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4198esac
4199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4200$as_echo "$ac_try_echo"; } >&5
4201 (eval "$ac_try") 2>&5
4202 ac_status=$?
4203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4204 test $ac_status = 0; }; }; then
4205 cross_compiling=no
4206 else
4207 if test "$cross_compiling" = maybe; then
4208 cross_compiling=yes
4209 else
4210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4212as_fn_error "cannot run C compiled programs.
4213If you meant to cross compile, use \`--host'.
4214See \`config.log' for more details." "$LINENO" 5; }
4215 fi
4216 fi
4217fi
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4219$as_echo "yes" >&6; }
4220
4221rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4222ac_clean_files=$ac_clean_files_save
4223# Check that the compiler produces executables we can run. If not, either
4224# the compiler is broken, or we cross compile.
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4226$as_echo_n "checking whether we are cross compiling... " >&6; }
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4228$as_echo "$cross_compiling" >&6; }
4229
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4231$as_echo_n "checking for suffix of executables... " >&6; }
4232if { { ac_try="$ac_link"
4233case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236esac
4237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4238$as_echo "$ac_try_echo"; } >&5
4239 (eval "$ac_link") 2>&5
4240 ac_status=$?
4241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242 test $ac_status = 0; }; then :
4243 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4244# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4245# work properly (i.e., refer to `conftest.exe'), while it won't with
4246# `rm'.
4247for ac_file in conftest.exe conftest conftest.*; do
4248 test -f "$ac_file" || continue
4249 case $ac_file in
4250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4251 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4252 break;;
4253 * ) break;;
4254 esac
4255done
4256else
4257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4259as_fn_error "cannot compute suffix of executables: cannot compile and link
4260See \`config.log' for more details." "$LINENO" 5; }
4261fi
4262rm -f conftest$ac_cv_exeext
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4264$as_echo "$ac_cv_exeext" >&6; }
4265
4266rm -f conftest.$ac_ext
4267EXEEXT=$ac_cv_exeext
4268ac_exeext=$EXEEXT
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4270$as_echo_n "checking for suffix of object files... " >&6; }
4271if test "${ac_cv_objext+set}" = set; then :
4272 $as_echo_n "(cached) " >&6
4273else
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275/* end confdefs.h. */
4276
4277int
4278main ()
4279{
4280
4281 ;
4282 return 0;
4283}
4284_ACEOF
4285rm -f conftest.o conftest.obj
4286if { { ac_try="$ac_compile"
4287case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290esac
4291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4292$as_echo "$ac_try_echo"; } >&5
4293 (eval "$ac_compile") 2>&5
4294 ac_status=$?
4295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296 test $ac_status = 0; }; then :
4297 for ac_file in conftest.o conftest.obj conftest.*; do
4298 test -f "$ac_file" || continue;
4299 case $ac_file in
4300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4301 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4302 break;;
4303 esac
4304done
4305else
4306 $as_echo "$as_me: failed program was:" >&5
4307sed 's/^/| /' conftest.$ac_ext >&5
4308
4309{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4311as_fn_error "cannot compute suffix of object files: cannot compile
4312See \`config.log' for more details." "$LINENO" 5; }
4313fi
4314rm -f conftest.$ac_cv_objext conftest.$ac_ext
4315fi
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4317$as_echo "$ac_cv_objext" >&6; }
4318OBJEXT=$ac_cv_objext
4319ac_objext=$OBJEXT
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4321$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4322if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4324else
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326/* end confdefs.h. */
4327
4328int
4329main ()
4330{
4331#ifndef __GNUC__
4332 choke me
4333#endif
4334
4335 ;
4336 return 0;
4337}
4338_ACEOF
4339if ac_fn_c_try_compile "$LINENO"; then :
4340 ac_compiler_gnu=yes
4341else
4342 ac_compiler_gnu=no
4343fi
4344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345ac_cv_c_compiler_gnu=$ac_compiler_gnu
4346
4347fi
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4349$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4350if test $ac_compiler_gnu = yes; then
4351 GCC=yes
4352else
4353 GCC=
4354fi
4355ac_test_CFLAGS=${CFLAGS+set}
4356ac_save_CFLAGS=$CFLAGS
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4358$as_echo_n "checking whether $CC accepts -g... " >&6; }
4359if test "${ac_cv_prog_cc_g+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4361else
4362 ac_save_c_werror_flag=$ac_c_werror_flag
4363 ac_c_werror_flag=yes
4364 ac_cv_prog_cc_g=no
4365 CFLAGS="-g"
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367/* end confdefs.h. */
4368
4369int
4370main ()
4371{
4372
4373 ;
4374 return 0;
4375}
4376_ACEOF
4377if ac_fn_c_try_compile "$LINENO"; then :
4378 ac_cv_prog_cc_g=yes
4379else
4380 CFLAGS=""
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382/* end confdefs.h. */
4383
4384int
4385main ()
4386{
4387
4388 ;
4389 return 0;
4390}
4391_ACEOF
4392if ac_fn_c_try_compile "$LINENO"; then :
4393
4394else
4395 ac_c_werror_flag=$ac_save_c_werror_flag
4396 CFLAGS="-g"
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398/* end confdefs.h. */
4399
4400int
4401main ()
4402{
4403
4404 ;
4405 return 0;
4406}
4407_ACEOF
4408if ac_fn_c_try_compile "$LINENO"; then :
4409 ac_cv_prog_cc_g=yes
4410fi
4411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412fi
4413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414fi
4415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416 ac_c_werror_flag=$ac_save_c_werror_flag
4417fi
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4419$as_echo "$ac_cv_prog_cc_g" >&6; }
4420if test "$ac_test_CFLAGS" = set; then
4421 CFLAGS=$ac_save_CFLAGS
4422elif test $ac_cv_prog_cc_g = yes; then
4423 if test "$GCC" = yes; then
4424 CFLAGS="-g -O2"
4425 else
4426 CFLAGS="-g"
4427 fi
4428else
4429 if test "$GCC" = yes; then
4430 CFLAGS="-O2"
4431 else
4432 CFLAGS=
4433 fi
4434fi
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4436$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4437if test "${ac_cv_prog_cc_c89+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4439else
4440 ac_cv_prog_cc_c89=no
4441ac_save_CC=$CC
4442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443/* end confdefs.h. */
4444#include <stdarg.h>
4445#include <stdio.h>
4446#include <sys/types.h>
4447#include <sys/stat.h>
4448/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4449struct buf { int x; };
4450FILE * (*rcsopen) (struct buf *, struct stat *, int);
4451static char *e (p, i)
4452 char **p;
4453 int i;
4454{
4455 return p[i];
4456}
4457static char *f (char * (*g) (char **, int), char **p, ...)
4458{
4459 char *s;
4460 va_list v;
4461 va_start (v,p);
4462 s = g (p, va_arg (v,int));
4463 va_end (v);
4464 return s;
4465}
4466
4467/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4468 function prototypes and stuff, but not '\xHH' hex character constants.
4469 These don't provoke an error unfortunately, instead are silently treated
4470 as 'x'. The following induces an error, until -std is added to get
4471 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4472 array size at least. It's necessary to write '\x00'==0 to get something
4473 that's true only with -std. */
4474int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4475
4476/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4477 inside strings and character constants. */
4478#define FOO(x) 'x'
4479int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4480
4481int test (int i, double x);
4482struct s1 {int (*f) (int a);};
4483struct s2 {int (*f) (double a);};
4484int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4485int argc;
4486char **argv;
4487int
4488main ()
4489{
4490return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4491 ;
4492 return 0;
4493}
4494_ACEOF
4495for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4496 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4497do
4498 CC="$ac_save_CC $ac_arg"
4499 if ac_fn_c_try_compile "$LINENO"; then :
4500 ac_cv_prog_cc_c89=$ac_arg
4501fi
4502rm -f core conftest.err conftest.$ac_objext
4503 test "x$ac_cv_prog_cc_c89" != "xno" && break
4504done
4505rm -f conftest.$ac_ext
4506CC=$ac_save_CC
4507
4508fi
4509# AC_CACHE_VAL
4510case "x$ac_cv_prog_cc_c89" in
4511 x)
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4513$as_echo "none needed" >&6; } ;;
4514 xno)
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4516$as_echo "unsupported" >&6; } ;;
4517 *)
4518 CC="$CC $ac_cv_prog_cc_c89"
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4520$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4521esac
4522if test "x$ac_cv_prog_cc_c89" != xno; then :
4523
4524fi
4525
4526ac_ext=c
4527ac_cpp='$CPP $CPPFLAGS'
4528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531
4532ac_ext=cpp
4533ac_cpp='$CXXCPP $CPPFLAGS'
4534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4537if test -z "$CXX"; then
4538 if test -n "$CCC"; then
4539 CXX=$CCC
4540 else
4541 if test -n "$ac_tool_prefix"; then
4542 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4543 do
4544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4545set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547$as_echo_n "checking for $ac_word... " >&6; }
4548if test "${ac_cv_prog_CXX+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4550else
4551 if test -n "$CXX"; then
4552 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4553else
4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4564 fi
4565done
4566 done
4567IFS=$as_save_IFS
4568
4569fi
4570fi
4571CXX=$ac_cv_prog_CXX
4572if test -n "$CXX"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4574$as_echo "$CXX" >&6; }
4575else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
4578fi
4579
4580
4581 test -n "$CXX" && break
4582 done
4583fi
4584if test -z "$CXX"; then
4585 ac_ct_CXX=$CXX
4586 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4587do
4588 # Extract the first word of "$ac_prog", so it can be a program name with args.
4589set dummy $ac_prog; ac_word=$2
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591$as_echo_n "checking for $ac_word... " >&6; }
4592if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4593 $as_echo_n "(cached) " >&6
4594else
4595 if test -n "$ac_ct_CXX"; then
4596 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_prog_ac_ct_CXX="$ac_prog"
4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 break 2
4608 fi
4609done
4610 done
4611IFS=$as_save_IFS
4612
4613fi
4614fi
4615ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4616if test -n "$ac_ct_CXX"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4618$as_echo "$ac_ct_CXX" >&6; }
4619else
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621$as_echo "no" >&6; }
4622fi
4623
4624
4625 test -n "$ac_ct_CXX" && break
4626done
4627
4628 if test "x$ac_ct_CXX" = x; then
4629 CXX="g++"
4630 else
4631 case $cross_compiling:$ac_tool_warned in
4632yes:)
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4635ac_tool_warned=yes ;;
4636esac
4637 CXX=$ac_ct_CXX
4638 fi
4639fi
4640
4641 fi
4642fi
4643# Provide some information about the compiler.
4644$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4645set X $ac_compile
4646ac_compiler=$2
4647for ac_option in --version -v -V -qversion; do
4648 { { ac_try="$ac_compiler $ac_option >&5"
4649case "(($ac_try" in
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4652esac
4653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4654$as_echo "$ac_try_echo"; } >&5
4655 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4656 ac_status=$?
4657 if test -s conftest.err; then
4658 sed '10a\
4659... rest of stderr output deleted ...
4660 10q' conftest.err >conftest.er1
4661 cat conftest.er1 >&5
4662 rm -f conftest.er1 conftest.err
4663 fi
4664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4665 test $ac_status = 0; }
4666done
4667
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4669$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4670if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4671 $as_echo_n "(cached) " >&6
4672else
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674/* end confdefs.h. */
4675
4676int
4677main ()
4678{
4679#ifndef __GNUC__
4680 choke me
4681#endif
4682
4683 ;
4684 return 0;
4685}
4686_ACEOF
4687if ac_fn_cxx_try_compile "$LINENO"; then :
4688 ac_compiler_gnu=yes
4689else
4690 ac_compiler_gnu=no
4691fi
4692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4694
4695fi
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4697$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4698if test $ac_compiler_gnu = yes; then
4699 GXX=yes
4700else
4701 GXX=
4702fi
4703ac_test_CXXFLAGS=${CXXFLAGS+set}
4704ac_save_CXXFLAGS=$CXXFLAGS
4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4706$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4707if test "${ac_cv_prog_cxx_g+set}" = set; then :
4708 $as_echo_n "(cached) " >&6
4709else
4710 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4711 ac_cxx_werror_flag=yes
4712 ac_cv_prog_cxx_g=no
4713 CXXFLAGS="-g"
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715/* end confdefs.h. */
4716
4717int
4718main ()
4719{
4720
4721 ;
4722 return 0;
4723}
4724_ACEOF
4725if ac_fn_cxx_try_compile "$LINENO"; then :
4726 ac_cv_prog_cxx_g=yes
4727else
4728 CXXFLAGS=""
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730/* end confdefs.h. */
4731
4732int
4733main ()
4734{
4735
4736 ;
4737 return 0;
4738}
4739_ACEOF
4740if ac_fn_cxx_try_compile "$LINENO"; then :
4741
4742else
4743 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4744 CXXFLAGS="-g"
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746/* end confdefs.h. */
4747
4748int
4749main ()
4750{
4751
4752 ;
4753 return 0;
4754}
4755_ACEOF
4756if ac_fn_cxx_try_compile "$LINENO"; then :
4757 ac_cv_prog_cxx_g=yes
4758fi
4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760fi
4761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762fi
4763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4765fi
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4767$as_echo "$ac_cv_prog_cxx_g" >&6; }
4768if test "$ac_test_CXXFLAGS" = set; then
4769 CXXFLAGS=$ac_save_CXXFLAGS
4770elif test $ac_cv_prog_cxx_g = yes; then
4771 if test "$GXX" = yes; then
4772 CXXFLAGS="-g -O2"
4773 else
4774 CXXFLAGS="-g"
4775 fi
4776else
4777 if test "$GXX" = yes; then
4778 CXXFLAGS="-O2"
4779 else
4780 CXXFLAGS=
4781 fi
4782fi
4783ac_ext=c
4784ac_cpp='$CPP $CPPFLAGS'
4785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788
4789
4790# We must set the default linker to the linker used by gcc for the correct
4791# operation of libtool. If LD is not defined and we are using gcc, try to
4792# set the LD default to the ld used by gcc.
4793if test -z "$LD"; then
4794 if test "$GCC" = yes; then
4795 case $build in
4796 *-*-mingw*)
4797 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4798 *)
4799 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4800 esac
4801 case $gcc_prog_ld in
4802 # Accept absolute paths.
4803 [\\/]* | [A-Za-z]:[\\/]*)
4804 LD="$gcc_prog_ld" ;;
4805 esac
4806 fi
4807fi
4808
4809
4810
4811
4812if test -n "$ac_tool_prefix"; then
4813 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4814set dummy ${ac_tool_prefix}gnatbind; 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_GNATBIND+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819else
4820 if test -n "$GNATBIND"; then
4821 ac_cv_prog_GNATBIND="$GNATBIND" # 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_GNATBIND="${ac_tool_prefix}gnatbind"
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
4840GNATBIND=$ac_cv_prog_GNATBIND
4841if test -n "$GNATBIND"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4843$as_echo "$GNATBIND" >&6; }
4844else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846$as_echo "no" >&6; }
4847fi
4848
4849
4850fi
4851if test -z "$ac_cv_prog_GNATBIND"; then
4852 ac_ct_GNATBIND=$GNATBIND
4853 # Extract the first word of "gnatbind", so it can be a program name with args.
4854set dummy gnatbind; ac_word=$2
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856$as_echo_n "checking for $ac_word... " >&6; }
4857if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4859else
4860 if test -n "$ac_ct_GNATBIND"; then
4861 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4862else
4863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4873 fi
4874done
4875 done
4876IFS=$as_save_IFS
4877
4878fi
4879fi
4880ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4881if test -n "$ac_ct_GNATBIND"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4883$as_echo "$ac_ct_GNATBIND" >&6; }
4884else
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886$as_echo "no" >&6; }
4887fi
4888
4889 if test "x$ac_ct_GNATBIND" = x; then
4890 GNATBIND="no"
4891 else
4892 case $cross_compiling:$ac_tool_warned in
4893yes:)
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4896ac_tool_warned=yes ;;
4897esac
4898 GNATBIND=$ac_ct_GNATBIND
4899 fi
4900else
4901 GNATBIND="$ac_cv_prog_GNATBIND"
4902fi
4903
4904if test -n "$ac_tool_prefix"; then
4905 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4906set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908$as_echo_n "checking for $ac_word... " >&6; }
4909if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4910 $as_echo_n "(cached) " >&6
4911else
4912 if test -n "$GNATMAKE"; then
4913 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4914else
4915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916for as_dir in $PATH
4917do
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 break 2
4925 fi
4926done
4927 done
4928IFS=$as_save_IFS
4929
4930fi
4931fi
4932GNATMAKE=$ac_cv_prog_GNATMAKE
4933if test -n "$GNATMAKE"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4935$as_echo "$GNATMAKE" >&6; }
4936else
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938$as_echo "no" >&6; }
4939fi
4940
4941
4942fi
4943if test -z "$ac_cv_prog_GNATMAKE"; then
4944 ac_ct_GNATMAKE=$GNATMAKE
4945 # Extract the first word of "gnatmake", so it can be a program name with args.
4946set dummy gnatmake; ac_word=$2
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948$as_echo_n "checking for $ac_word... " >&6; }
4949if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4951else
4952 if test -n "$ac_ct_GNATMAKE"; then
4953 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4954else
4955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956for as_dir in $PATH
4957do
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4965 fi
4966done
4967 done
4968IFS=$as_save_IFS
4969
4970fi
4971fi
4972ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4973if test -n "$ac_ct_GNATMAKE"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4975$as_echo "$ac_ct_GNATMAKE" >&6; }
4976else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978$as_echo "no" >&6; }
4979fi
4980
4981 if test "x$ac_ct_GNATMAKE" = x; then
4982 GNATMAKE="no"
4983 else
4984 case $cross_compiling:$ac_tool_warned in
4985yes:)
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4988ac_tool_warned=yes ;;
4989esac
4990 GNATMAKE=$ac_ct_GNATMAKE
4991 fi
4992else
4993 GNATMAKE="$ac_cv_prog_GNATMAKE"
4994fi
4995
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4997$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4998if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4999 $as_echo_n "(cached) " >&6
5000else
5001 cat >conftest.adb <<EOF
5002procedure conftest is begin null; end conftest;
5003EOF
5004acx_cv_cc_gcc_supports_ada=no
5005# There is a bug in old released versions of GCC which causes the
5006# driver to exit successfully when the appropriate language module
5007# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5008# Therefore we must check for the error message as well as an
5009# unsuccessful exit.
5010# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5011# given a .adb file, but produce no object file. So we must check
5012# if an object file was really produced to guard against this.
5013errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5014if test x"$errors" = x && test -f conftest.$ac_objext; then
5015 acx_cv_cc_gcc_supports_ada=yes
5016fi
5017rm -f conftest.*
5018fi
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5020$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5021
5022if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5023 have_gnat=yes
5024else
5025 have_gnat=no
5026fi
5027
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5029$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5030if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5031 $as_echo_n "(cached) " >&6
5032else
5033 echo abfoo >t1
5034 echo cdfoo >t2
5035 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5036 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5037 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5038 :
5039 else
5040 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5041 fi
5042 fi
5043 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5044 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5045 :
5046 else
5047 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5048 fi
5049 fi
5050 rm t1 t2
5051
5052fi
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5054$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5055do_compare="$gcc_cv_prog_cmp_skip"
5056
5057
5058
5059# Check whether --enable-bootstrap was given.
5060if test "${enable_bootstrap+set}" = set; then :
5061 enableval=$enable_bootstrap;
5062else
5063 enable_bootstrap=default
5064fi
5065
5066
5067# Issue errors and warnings for invalid/strange bootstrap combinations.
5068if test -r $srcdir/gcc/configure; then
5069 have_compiler=yes
5070else
5071 have_compiler=no
5072fi
5073
5074case "$have_compiler:$host:$target:$enable_bootstrap" in
5075 *:*:*:no) ;;
5076
5077 # Default behavior. Enable bootstrap if we have a compiler
5078 # and we are in a native configuration.
5079 yes:$build:$build:default)
5080 enable_bootstrap=yes ;;
5081
5082 *:*:*:default)
5083 enable_bootstrap=no ;;
5084
5085 # We have a compiler and we are in a native configuration, bootstrap is ok
5086 yes:$build:$build:yes)
5087 ;;
5088
5089 # Other configurations, but we have a compiler. Assume the user knows
5090 # what he's doing.
5091 yes:*:*:yes)
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5093$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5094 ;;
5095
5096 # No compiler: if they passed --enable-bootstrap explicitly, fail
5097 no:*:*:yes)
5098 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5099
5100 # Fail if wrong command line
5101 *)
5102 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5103 ;;
5104esac
5105
5106# Used for setting $lt_cv_objdir
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5108$as_echo_n "checking for objdir... " >&6; }
5109if test "${lt_cv_objdir+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5111else
5112 rm -f .libs 2>/dev/null
5113mkdir .libs 2>/dev/null
5114if test -d .libs; then
5115 lt_cv_objdir=.libs
5116else
5117 # MS-DOS does not allow filenames that begin with a dot.
5118 lt_cv_objdir=_libs
5119fi
5120rmdir .libs 2>/dev/null
5121fi
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5123$as_echo "$lt_cv_objdir" >&6; }
5124objdir=$lt_cv_objdir
5125
5126
5127
5128
5129
5130cat >>confdefs.h <<_ACEOF
5131#define LT_OBJDIR "$lt_cv_objdir/"
5132_ACEOF
5133
5134
5135
5136# Check for GMP, MPFR and MPC
5137gmplibs="-lmpc -lmpfr -lgmp"
5138gmpinc=
5139have_gmp=no
5140
5141# Specify a location for mpc
5142# check for this first so it ends up on the link line before mpfr.
5143
5144# Check whether --with-mpc was given.
5145if test "${with_mpc+set}" = set; then :
5146 withval=$with_mpc;
5147fi
5148
5149
5150# Check whether --with-mpc-include was given.
5151if test "${with_mpc_include+set}" = set; then :
5152 withval=$with_mpc_include;
5153fi
5154
5155
5156# Check whether --with-mpc-lib was given.
5157if test "${with_mpc_lib+set}" = set; then :
5158 withval=$with_mpc_lib;
5159fi
5160
5161
5162if test "x$with_mpc" != x; then
5163 gmplibs="-L$with_mpc/lib $gmplibs"
5164 gmpinc="-I$with_mpc/include $gmpinc"
5165fi
5166if test "x$with_mpc_include" != x; then
5167 gmpinc="-I$with_mpc_include $gmpinc"
5168fi
5169if test "x$with_mpc_lib" != x; then
5170 gmplibs="-L$with_mpc_lib $gmplibs"
5171fi
5172if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5173 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5174 gmpinc='-I$$s/mpc/src '"$gmpinc"
5175 # Do not test the mpc version. Assume that it is sufficient, since
5176 # it is in the source tree, and the library has not been built yet
5177 # but it would be included on the link line in the version check below
5178 # hence making the test fail.
5179 have_gmp=yes
5180fi
5181
5182# Specify a location for mpfr
5183# check for this first so it ends up on the link line before gmp.
5184
5185# Check whether --with-mpfr-dir was given.
5186if test "${with_mpfr_dir+set}" = set; then :
5187 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5188Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5189fi
5190
5191
5192
5193# Check whether --with-mpfr was given.
5194if test "${with_mpfr+set}" = set; then :
5195 withval=$with_mpfr;
5196fi
5197
5198
5199# Check whether --with-mpfr-include was given.
5200if test "${with_mpfr_include+set}" = set; then :
5201 withval=$with_mpfr_include;
5202fi
5203
5204
5205# Check whether --with-mpfr-lib was given.
5206if test "${with_mpfr_lib+set}" = set; then :
5207 withval=$with_mpfr_lib;
5208fi
5209
5210
5211if test "x$with_mpfr" != x; then
5212 gmplibs="-L$with_mpfr/lib $gmplibs"
5213 gmpinc="-I$with_mpfr/include $gmpinc"
5214fi
5215if test "x$with_mpfr_include" != x; then
5216 gmpinc="-I$with_mpfr_include $gmpinc"
5217fi
5218if test "x$with_mpfr_lib" != x; then
5219 gmplibs="-L$with_mpfr_lib $gmplibs"
5220fi
5221if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5222 # MPFR v3.1.0 moved the sources into a src sub-directory.
5223 if test -d ${srcdir}/mpfr/src; then
5224 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5225 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5226 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5227 else
5228 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5229 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5230 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5231 fi
5232 # Do not test the mpfr version. Assume that it is sufficient, since
5233 # it is in the source tree, and the library has not been built yet
5234 # but it would be included on the link line in the version check below
5235 # hence making the test fail.
5236 have_gmp=yes
5237fi
5238
5239# Specify a location for gmp
5240
5241# Check whether --with-gmp-dir was given.
5242if test "${with_gmp_dir+set}" = set; then :
5243 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5244Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5245fi
5246
5247
5248
5249# Check whether --with-gmp was given.
5250if test "${with_gmp+set}" = set; then :
5251 withval=$with_gmp;
5252fi
5253
5254
5255# Check whether --with-gmp-include was given.
5256if test "${with_gmp_include+set}" = set; then :
5257 withval=$with_gmp_include;
5258fi
5259
5260
5261# Check whether --with-gmp-lib was given.
5262if test "${with_gmp_lib+set}" = set; then :
5263 withval=$with_gmp_lib;
5264fi
5265
5266
5267
5268if test "x$with_gmp" != x; then
5269 gmplibs="-L$with_gmp/lib $gmplibs"
5270 gmpinc="-I$with_gmp/include $gmpinc"
5271fi
5272if test "x$with_gmp_include" != x; then
5273 gmpinc="-I$with_gmp_include $gmpinc"
5274fi
5275if test "x$with_gmp_lib" != x; then
5276 gmplibs="-L$with_gmp_lib $gmplibs"
5277fi
5278if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5279 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5280 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5281 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5282 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5283 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5284 # Do not test the gmp version. Assume that it is sufficient, since
5285 # it is in the source tree, and the library has not been built yet
5286 # but it would be included on the link line in the version check below
5287 # hence making the test fail.
5288 have_gmp=yes
5289fi
5290
5291if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5292 have_gmp=yes
5293 saved_CFLAGS="$CFLAGS"
5294 CFLAGS="$CFLAGS $gmpinc"
5295 # Check for the recommended and required versions of GMP.
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5297$as_echo_n "checking for the correct version of gmp.h... " >&6; }
5298
5299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300/* end confdefs.h. */
5301#include "gmp.h"
5302int
5303main ()
5304{
5305
5306 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5307 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5308 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5309 choke me
5310 #endif
5311
5312 ;
5313 return 0;
5314}
5315_ACEOF
5316if ac_fn_c_try_compile "$LINENO"; then :
5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318/* end confdefs.h. */
5319#include <gmp.h>
5320int
5321main ()
5322{
5323
5324 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5325 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5326 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5327 choke me
5328 #endif
5329
5330 ;
5331 return 0;
5332}
5333_ACEOF
5334if ac_fn_c_try_compile "$LINENO"; then :
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5336$as_echo "yes" >&6; }
5337else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5339$as_echo "buggy but acceptable" >&6; }
5340fi
5341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5342else
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344$as_echo "no" >&6; }; have_gmp=no
5345fi
5346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5347
5348 # If we have GMP, check the MPFR version.
5349 if test x"$have_gmp" = xyes; then
5350 # Check for the recommended and required versions of MPFR.
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5352$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354/* end confdefs.h. */
5355#include <gmp.h>
5356 #include <mpfr.h>
5357int
5358main ()
5359{
5360
5361 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5362 choke me
5363 #endif
5364
5365 ;
5366 return 0;
5367}
5368_ACEOF
5369if ac_fn_c_try_compile "$LINENO"; then :
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371/* end confdefs.h. */
5372#include <gmp.h>
5373 #include <mpfr.h>
5374int
5375main ()
5376{
5377
5378 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5379 choke me
5380 #endif
5381
5382 ;
5383 return 0;
5384}
5385_ACEOF
5386if ac_fn_c_try_compile "$LINENO"; then :
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5388$as_echo "yes" >&6; }
5389else
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5391$as_echo "buggy but acceptable" >&6; }
5392fi
5393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394else
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396$as_echo "no" >&6; }; have_gmp=no
5397fi
5398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399 fi
5400
5401 # Check for the MPC header version.
5402 if test x"$have_gmp" = xyes ; then
5403 # Check for the recommended and required versions of MPC.
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5405$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407/* end confdefs.h. */
5408#include <mpc.h>
5409int
5410main ()
5411{
5412
5413 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5414 choke me
5415 #endif
5416
5417 ;
5418 return 0;
5419}
5420_ACEOF
5421if ac_fn_c_try_compile "$LINENO"; then :
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423/* end confdefs.h. */
5424#include <mpc.h>
5425int
5426main ()
5427{
5428
5429 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5430 choke me
5431 #endif
5432
5433 ;
5434 return 0;
5435}
5436_ACEOF
5437if ac_fn_c_try_compile "$LINENO"; then :
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5439$as_echo "yes" >&6; }
5440else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5442$as_echo "buggy but acceptable" >&6; }
5443fi
5444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445else
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447$as_echo "no" >&6; }; have_gmp=no
5448fi
5449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 fi
5451
5452 # Now check the MPFR library.
5453 if test x"$have_gmp" = xyes; then
5454 saved_LIBS="$LIBS"
5455 LIBS="$LIBS $gmplibs"
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5457$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459/* end confdefs.h. */
5460#include <mpc.h>
5461int
5462main ()
5463{
5464
5465 mpfr_t n;
5466 mpfr_t x;
5467 mpc_t c;
5468 int t;
5469 mpfr_init (n);
5470 mpfr_init (x);
5471 mpfr_atan2 (n, n, x, GMP_RNDN);
5472 mpfr_erfc (n, x, GMP_RNDN);
5473 mpfr_subnormalize (x, t, GMP_RNDN);
5474 mpfr_clear(n);
5475 mpfr_clear(x);
5476 mpc_init2 (c, 53);
5477 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5478 mpc_cosh (c, c, MPC_RNDNN);
5479 mpc_pow (c, c, c, MPC_RNDNN);
5480 mpc_acosh (c, c, MPC_RNDNN);
5481 mpc_clear (c);
5482
5483 ;
5484 return 0;
5485}
5486_ACEOF
5487if ac_fn_c_try_link "$LINENO"; then :
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5489$as_echo "yes" >&6; }
5490else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492$as_echo "no" >&6; }; have_gmp=no
5493fi
5494rm -f core conftest.err conftest.$ac_objext \
5495 conftest$ac_exeext conftest.$ac_ext
5496 LIBS="$saved_LIBS"
5497 fi
5498
5499 CFLAGS="$saved_CFLAGS"
5500
5501# The library versions listed in the error message below should match
5502# the HARD-minimums enforced above.
5503 if test x$have_gmp != xyes; then
5504 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5505Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5506their locations. Source code for these libraries can be found at
5507their respective hosting sites as well as at
5508ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5509http://gcc.gnu.org/install/prerequisites.html for additional info. If
5510you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5511make sure that you have installed both the libraries and the header
5512files. They may be located in separate packages." "$LINENO" 5
5513 fi
5514fi
5515
5516# Flags needed for both GMP, MPFR and/or MPC.
5517
5518
5519
5520
5521
5522
5523
5524# Allow host libstdc++ to be specified for static linking with PPL.
5525
5526# Check whether --with-host-libstdcxx was given.
5527if test "${with_host_libstdcxx+set}" = set; then :
5528 withval=$with_host_libstdcxx;
5529fi
5530
5531
5532case $with_host_libstdcxx in
5533 no|yes)
5534 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5535 ;;
5536esac
5537
5538# Linker flags to use for stage1 or when not boostrapping.
5539
5540# Check whether --with-stage1-ldflags was given.
5541if test "${with_stage1_ldflags+set}" = set; then :
5542 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5543 stage1_ldflags=
5544 else
5545 stage1_ldflags=$withval
5546 fi
5547else
5548 stage1_ldflags=
5549fi
5550
5551
5552
5553# Libraries to use for stage1 or when not bootstrapping.
5554
5555# Check whether --with-stage1-libs was given.
5556if test "${with_stage1_libs+set}" = set; then :
5557 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5558 stage1_libs=
5559 else
5560 stage1_libs=$withval
5561 fi
5562else
5563 stage1_libs=$with_host_libstdcxx
5564fi
5565
5566
5567
5568# Libraries to use for stage2 and later builds. This defaults to the
5569# argument passed to --with-host-libstdcxx.
5570
5571# Check whether --with-boot-libs was given.
5572if test "${with_boot_libs+set}" = set; then :
5573 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5574 poststage1_libs=
5575 else
5576 poststage1_libs=$withval
5577 fi
5578else
5579 poststage1_libs=$with_host_libstdcxx
5580fi
5581
5582
5583
5584# Linker flags to use for stage2 and later builds.
5585
5586# Check whether --with-boot-ldflags was given.
5587if test "${with_boot_ldflags+set}" = set; then :
5588 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5589 poststage1_ldflags=
5590 else
5591 poststage1_ldflags=$withval
5592 fi
5593else
5594 poststage1_ldflags=
5595 # In stages 2 and 3, default to linking libstdc++ and libgcc
5596 # statically. But if the user explicitly specified the libraries to
5597 # use, trust that they are doing what they want.
5598 if test "$poststage1_libs" = ""; then
5599 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5600 fi
5601fi
5602
5603
5604
5605# Check for ISL
5606
5607
5608# Check whether --with-isl was given.
5609if test "${with_isl+set}" = set; then :
5610 withval=$with_isl;
5611fi
5612
5613
5614# Check whether --with-isl-include was given.
5615if test "${with_isl_include+set}" = set; then :
5616 withval=$with_isl_include;
5617fi
5618
5619
5620# Check whether --with-isl-lib was given.
5621if test "${with_isl_lib+set}" = set; then :
5622 withval=$with_isl_lib;
5623fi
5624
5625
5626 # Check whether --enable-isl-version-check was given.
5627if test "${enable_isl_version_check+set}" = set; then :
5628 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5629else
5630 ENABLE_ISL_CHECK=yes
5631fi
5632
5633
5634 # Initialize isllibs and islinc.
5635 case $with_isl in
5636 no)
5637 isllibs=
5638 islinc=
5639 ;;
5640 "" | yes)
5641 ;;
5642 *)
5643 isllibs="-L$with_isl/lib"
5644 islinc="-I$with_isl/include"
5645 ;;
5646 esac
5647 if test "x${with_isl_include}" != x ; then
5648 islinc="-I$with_isl_include"
5649 fi
5650 if test "x${with_isl_lib}" != x; then
5651 isllibs="-L$with_isl_lib"
5652 fi
5653 if test "x${islinc}" = x && test "x${isllibs}" = x \
5654 && test -d ${srcdir}/isl; then
5655 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5656 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5657 ENABLE_ISL_CHECK=no
5658 fi
5659
5660 isllibs="${isllibs} -lisl"
5661
5662
5663
5664
5665
5666if test "x$with_isl" != "xno"; then
5667
5668 if test "${ENABLE_ISL_CHECK}" = yes ; then
5669 _isl_saved_CFLAGS=$CFLAGS
5670 _isl_saved_LDFLAGS=$LDFLAGS
5671 _isl_saved_LIBS=$LIBS
5672
5673 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5674 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5675 LIBS="${_isl_saved_LIBS} -lisl"
5676 echo $CFLAGS
5677
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5679$as_echo_n "checking for version 0.10 of ISL... " >&6; }
5680if test "${gcc_cv_isl+set}" = set; then :
5681 $as_echo_n "(cached) " >&6
5682else
5683 if test "$cross_compiling" = yes; then :
5684 gcc_cv_isl=yes
5685else
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687/* end confdefs.h. */
5688#include <isl/version.h>
5689 #include <string.h>
5690int
5691main ()
5692{
5693if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5694 return 1;
5695
5696 ;
5697 return 0;
5698}
5699_ACEOF
5700if ac_fn_c_try_run "$LINENO"; then :
5701 gcc_cv_isl=yes
5702else
5703 gcc_cv_isl=no
5704fi
5705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5706 conftest.$ac_objext conftest.beam conftest.$ac_ext
5707fi
5708
5709fi
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5711$as_echo "$gcc_cv_isl" >&6; }
5712
5713 CFLAGS=$_isl_saved_CFLAGS
5714 LDFLAGS=$_isl_saved_LDFLAGS
5715 LIBS=$_isl_saved_LIBS
5716 fi
5717
5718
5719
5720
5721
5722
5723
5724 if test "x${with_isl}" = xno; then
5725 graphite_requested=no
5726 elif test "x${with_isl}" != x \
5727 || test "x${with_isl_include}" != x \
5728 || test "x${with_isl_lib}" != x ; then
5729 graphite_requested=yes
5730 else
5731 graphite_requested=no
5732 fi
5733
5734
5735
5736 if test "${gcc_cv_isl}" = no ; then
5737 isllibs=
5738 islinc=
5739 fi
5740
5741 if test "${graphite_requested}" = yes \
5742 && test "x${isllibs}" = x \
5743 && test "x${islinc}" = x ; then
5744
5745 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5746 fi
5747
5748
5749fi
5750
5751# Check for CLOOG
5752
5753
5754# Check whether --with-cloog was given.
5755if test "${with_cloog+set}" = set; then :
5756 withval=$with_cloog;
5757fi
5758
5759
5760# Check whether --with-cloog-include was given.
5761if test "${with_cloog_include+set}" = set; then :
5762 withval=$with_cloog_include;
5763fi
5764
5765
5766# Check whether --with-cloog-lib was given.
5767if test "${with_cloog_lib+set}" = set; then :
5768 withval=$with_cloog_lib;
5769fi
5770
5771
5772 # Check whether --enable-cloog-version-check was given.
5773if test "${enable_cloog_version_check+set}" = set; then :
5774 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5775else
5776 ENABLE_CLOOG_CHECK=yes
5777fi
5778
5779
5780 # Initialize clooglibs and clooginc.
5781 case $with_cloog in
5782 no)
5783 clooglibs=
5784 clooginc=
5785 ;;
5786 "" | yes)
5787 ;;
5788 *)
5789 clooglibs="-L$with_cloog/lib"
5790 clooginc="-I$with_cloog/include"
5791 ;;
5792 esac
5793 if test "x${with_cloog_include}" != x ; then
5794 clooginc="-I$with_cloog_include"
5795 fi
5796 if test "x${with_cloog_lib}" != x; then
5797 clooglibs="-L$with_cloog_lib"
5798 fi
5799 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
5800 && test -d ${srcdir}/cloog; then
5801 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5802 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
5803 fi
5804
5805 clooginc="-DCLOOG_INT_GMP ${clooginc}"
5806 clooglibs="${clooglibs} -lcloog-isl ${isllibs}"
5807
5808
5809
5810
5811
5812if test "x$isllibs" = x && test "x$islinc" = x; then
5813 clooglibs=
5814 clooginc=
5815elif test "x$with_cloog" != "xno"; then
5816
5817
5818
5819 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5820 _cloog_saved_CFLAGS=$CFLAGS
5821 _cloog_saved_LDFLAGS=$LDFLAGS
5822
5823 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5824 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
5825
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5827$as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5828if test "${gcc_cv_cloog+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5830else
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832/* end confdefs.h. */
5833#include "cloog/version.h"
5834int
5835main ()
5836{
5837#if CLOOG_VERSION_MAJOR != 0 \
5838 || CLOOG_VERSION_MINOR != 17 \
5839 || CLOOG_VERSION_REVISION < 0
5840 choke me
5841 #endif
5842 ;
5843 return 0;
5844}
5845_ACEOF
5846if ac_fn_c_try_compile "$LINENO"; then :
5847 gcc_cv_cloog=yes
5848else
5849 gcc_cv_cloog=no
5850fi
5851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852fi
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5854$as_echo "$gcc_cv_cloog" >&6; }
5855
5856 CFLAGS=$_cloog_saved_CFLAGS
5857 LDFLAGS=$_cloog_saved_LDFLAGS
5858 fi
5859
5860
5861
5862
5863
5864
5865
5866 if test "x${with_cloog}" = xno; then
5867 graphite_requested=no
5868 elif test "x${with_cloog}" != x \
5869 || test "x${with_cloog_include}" != x \
5870 || test "x${with_cloog_lib}" != x ; then
5871 graphite_requested=yes
5872 else
5873 graphite_requested=no
5874 fi
5875
5876
5877
5878 if test "${gcc_cv_cloog}" = no ; then
5879 clooglibs=
5880 clooginc=
5881 fi
5882
5883 if test "${graphite_requested}" = yes \
5884 && test "x${clooglibs}" = x \
5885 && test "x${clooginc}" = x ; then
5886
5887 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
5888 fi
5889
5890
5891fi
5892
5893# If either the ISL or the CLooG check failed, disable builds of in-tree
5894# variants of both
5895if test "x$clooglibs" = x && test "x$clooginc" = x; then
5896 noconfigdirs="$noconfigdirs cloog isl"
5897fi
5898
5899# Check for LTO support.
5900# Check whether --enable-lto was given.
5901if test "${enable_lto+set}" = set; then :
5902 enableval=$enable_lto; enable_lto=$enableval
5903else
5904 enable_lto=yes; default_enable_lto=yes
5905fi
5906
5907
5908
5909
5910
5911target_elf=no
5912case $target in
5913 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5914 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
5915 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5916 target_elf=no
5917 ;;
5918 *)
5919 target_elf=yes
5920 ;;
5921esac
5922
5923if test $target_elf = yes; then :
5924 # ELF platforms build the lto-plugin always.
5925 build_lto_plugin=yes
5926
5927else
5928 if test x"$default_enable_lto" = x"yes" ; then
5929 case $target in
5930 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
5931 # On other non-ELF platforms, LTO has yet to be validated.
5932 *) enable_lto=no ;;
5933 esac
5934 else
5935 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5936 # It would also be nice to check the binutils support, but we don't
5937 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5938 # warn during gcc/ subconfigure; unless you're bootstrapping with
5939 # -flto it won't be needed until after installation anyway.
5940 case $target in
5941 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
5942 *) if test x"$enable_lto" = x"yes"; then
5943 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5944 fi
5945 ;;
5946 esac
5947 fi
5948 # Among non-ELF, only Windows platforms support the lto-plugin so far.
5949 # Build it unless LTO was explicitly disabled.
5950 case $target in
5951 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
5952 *) ;;
5953 esac
5954
5955fi
5956
5957
5958
5959# By default, C and C++ are the only stage 1 languages.
5960stage1_languages=,c,
5961
5962# Target libraries that we bootstrap.
5963bootstrap_target_libs=,target-libgcc,
5964
5965# Figure out what language subdirectories are present.
5966# Look if the user specified --enable-languages="..."; if not, use
5967# the environment variable $LANGUAGES if defined. $LANGUAGES might
5968# go away some day.
5969# NB: embedded tabs in this IF block -- do not untabify
5970if test -d ${srcdir}/gcc; then
5971 if test x"${enable_languages+set}" != xset; then
5972 if test x"${LANGUAGES+set}" = xset; then
5973 enable_languages="${LANGUAGES}"
5974 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5975 else
5976 enable_languages=all
5977 fi
5978 else
5979 if test x"${enable_languages}" = x ||
5980 test x"${enable_languages}" = xyes;
5981 then
5982 echo configure.in: --enable-languages needs at least one language argument 1>&2
5983 exit 1
5984 fi
5985 fi
5986 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5987
5988 # 'f95' is the old name for the 'fortran' language. We issue a warning
5989 # and make the substitution.
5990 case ,${enable_languages}, in
5991 *,f95,*)
5992 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5993 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5994 ;;
5995 esac
5996
5997 # If bootstrapping, C++ must be enabled.
5998 case ",$enable_languages,:$enable_bootstrap" in
5999 *,c++,*:*) ;;
6000 *:yes)
6001 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6002 enable_languages="${enable_languages},c++"
6003 else
6004 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6005 fi
6006 ;;
6007 esac
6008
6009 # First scan to see if an enabled language requires some other language.
6010 # We assume that a given config-lang.in will list all the language
6011 # front ends it requires, even if some are required indirectly.
6012 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6013 case ${lang_frag} in
6014 ..) ;;
6015 # The odd quoting in the next line works around
6016 # an apparent bug in bash 1.12 on linux.
6017 ${srcdir}/gcc/[*]/config-lang.in) ;;
6018 *)
6019 # From the config-lang.in, get $language, $lang_requires, and
6020 # $lang_requires_boot_languages.
6021 language=
6022 lang_requires=
6023 lang_requires_boot_languages=
6024 . ${lang_frag}
6025 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6026 case ,${enable_languages}, in
6027 *,$other,*) ;;
6028 *,all,*) ;;
6029 *,$language,*)
6030 echo " \`$other' language required by \`$language'; enabling" 1>&2
6031 enable_languages="${enable_languages},${other}"
6032 ;;
6033 esac
6034 done
6035 for other in ${lang_requires_boot_languages} ; do
6036 if test "$other" != "c"; then
6037 case ,${enable_stage1_languages}, in
6038 *,$other,*) ;;
6039 *,all,*) ;;
6040 *)
6041 case ,${enable_languages}, in
6042 *,$language,*)
6043 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6044 enable_stage1_languages="$enable_stage1_languages,${other}"
6045 ;;
6046 esac
6047 ;;
6048 esac
6049 fi
6050 done
6051 ;;
6052 esac
6053 done
6054
6055 new_enable_languages=,c,
6056
6057 # If LTO is enabled, add the LTO front end.
6058 extra_host_libiberty_configure_flags=
6059 if test "$enable_lto" = "yes" ; then
6060 case ,${enable_languages}, in
6061 *,lto,*) ;;
6062 *) enable_languages="${enable_languages},lto" ;;
6063 esac
6064 if test "${build_lto_plugin}" = "yes" ; then
6065 configdirs="$configdirs lto-plugin"
6066 extra_host_libiberty_configure_flags=--enable-shared
6067 fi
6068 fi
6069
6070
6071 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6072 potential_languages=,c,
6073
6074 enabled_target_libs=
6075 disabled_target_libs=
6076
6077 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6078 case ${lang_frag} in
6079 ..) ;;
6080 # The odd quoting in the next line works around
6081 # an apparent bug in bash 1.12 on linux.
6082 ${srcdir}/gcc/[*]/config-lang.in) ;;
6083 *)
6084 # From the config-lang.in, get $language, $target_libs,
6085 # $lang_dirs, $boot_language, and $build_by_default
6086 language=
6087 target_libs=
6088 lang_dirs=
6089 subdir_requires=
6090 boot_language=no
6091 build_by_default=yes
6092 . ${lang_frag}
6093 if test x${language} = x; then
6094 echo "${lang_frag} doesn't set \$language." 1>&2
6095 exit 1
6096 fi
6097
6098 if test "$language" = "c++"; then
6099 boot_language=yes
6100 fi
6101
6102 case ,${enable_languages}, in
6103 *,${language},*)
6104 # Language was explicitly selected; include it
6105 # unless it is C, which is enabled by default.
6106 if test "$language" != "c"; then
6107 add_this_lang=yes
6108 fi
6109 ;;
6110 *,all,*)
6111 # 'all' was selected, select it if it is a default language
6112 add_this_lang=${build_by_default}
6113 ;;
6114 *)
6115 add_this_lang=no
6116 ;;
6117 esac
6118
6119 # Disable languages that need other directories if these aren't available.
6120 for i in $subdir_requires; do
6121 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6122 case ,${enable_languages}, in
6123 *,${language},*)
6124 # Specifically requested language; tell them.
6125 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6126 ;;
6127 *)
6128 # Silently disable.
6129 add_this_lang=unsupported
6130 ;;
6131 esac
6132 done
6133
6134 # Disable Ada if no preexisting GNAT is available.
6135 case ,${enable_languages},:${language}:${have_gnat} in
6136 *,${language},*:ada:no)
6137 # Specifically requested language; tell them.
6138 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6139 ;;
6140 *:ada:no)
6141 # Silently disable.
6142 add_this_lang=unsupported
6143 ;;
6144 esac
6145
6146 # Disable a language that is unsupported by the target.
6147 case " $unsupported_languages " in
6148 *" $language "*)
6149 add_this_lang=unsupported
6150 ;;
6151 esac
6152
6153 case $add_this_lang in
6154 unsupported)
6155 # Remove language-dependent dirs.
6156 disabled_target_libs="$disabled_target_libs $target_libs"
6157 noconfigdirs="$noconfigdirs $lang_dirs"
6158 ;;
6159 no)
6160 # Remove language-dependent dirs; still show language as supported.
6161 disabled_target_libs="$disabled_target_libs $target_libs"
6162 noconfigdirs="$noconfigdirs $lang_dirs"
6163 potential_languages="${potential_languages}${language},"
6164 ;;
6165 yes)
6166 new_enable_languages="${new_enable_languages}${language},"
6167 potential_languages="${potential_languages}${language},"
6168 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6169 enabled_target_libs="$enabled_target_libs $target_libs"
6170 case "${boot_language}:,$enable_stage1_languages," in
6171 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6172 # Add to (comma-separated) list of stage 1 languages.
6173 case ",$stage1_languages," in
6174 *,$language,* | ,yes, | ,all,) ;;
6175 *) stage1_languages="${stage1_languages}${language}," ;;
6176 esac
6177 # We need to bootstrap any supporting libraries.
6178 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6179 ;;
6180 esac
6181 ;;
6182 esac
6183 ;;
6184 esac
6185 done
6186
6187 # Add target libraries which are only needed for disabled languages
6188 # to noconfigdirs.
6189 if test -n "$disabled_target_libs"; then
6190 for dir in $disabled_target_libs; do
6191 case " $enabled_target_libs " in
6192 *" ${dir} "*) ;;
6193 *) noconfigdirs="$noconfigdirs $dir" ;;
6194 esac
6195 done
6196 fi
6197
6198 # Check whether --enable-stage1-languages was given.
6199if test "${enable_stage1_languages+set}" = set; then :
6200 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6201 ,no,|,,)
6202 # Set it to something that will have no effect in the loop below
6203 enable_stage1_languages=c ;;
6204 ,yes,)
6205 enable_stage1_languages=`echo $new_enable_languages | \
6206 sed -e "s/^,//" -e "s/,$//" ` ;;
6207 *,all,*)
6208 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6209 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6210 esac
6211
6212 # Add "good" languages from enable_stage1_languages to stage1_languages,
6213 # while "bad" languages go in missing_languages. Leave no duplicates.
6214 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6215 case $potential_languages in
6216 *,$i,*)
6217 case $stage1_languages in
6218 *,$i,*) ;;
6219 *) stage1_languages="$stage1_languages$i," ;;
6220 esac ;;
6221 *)
6222 case $missing_languages in
6223 *,$i,*) ;;
6224 *) missing_languages="$missing_languages$i," ;;
6225 esac ;;
6226 esac
6227 done
6228fi
6229
6230
6231 # Remove leading/trailing commas that were added for simplicity
6232 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6233 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6234 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6235 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6236
6237 if test "x$missing_languages" != x; then
6238 as_fn_error "
6239The following requested languages could not be built: ${missing_languages}
6240Supported languages are: ${potential_languages}" "$LINENO" 5
6241 fi
6242 if test "x$new_enable_languages" != "x$enable_languages"; then
6243 echo The following languages will be built: ${new_enable_languages}
6244 enable_languages="$new_enable_languages"
6245 fi
6246
6247
6248 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6249fi
6250
6251# Handle --disable-<component> generically.
6252for dir in $configdirs $build_configdirs $target_configdirs ; do
6253 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6254 varname=`echo $dirname | sed -e s/+/_/g`
6255 if eval test x\${enable_${varname}} "=" xno ; then
6256 noconfigdirs="$noconfigdirs $dir"
6257 fi
6258done
6259
6260# Check for Boehm's garbage collector
6261# Check whether --enable-objc-gc was given.
6262if test "${enable_objc_gc+set}" = set; then :
6263 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6264 *,objc,*:*:yes:*target-boehm-gc*)
6265 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6266 ;;
6267esac
6268fi
6269
6270
6271# Make sure we only build Boehm's garbage collector if required.
6272case ,${enable_languages},:${enable_objc_gc} in
6273 *,objc,*:yes)
6274 # Keep target-boehm-gc if requested for Objective-C.
6275 ;;
6276 *)
6277 # Otherwise remove target-boehm-gc depending on target-libjava.
6278 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6279 noconfigdirs="$noconfigdirs target-boehm-gc"
6280 fi
6281 ;;
6282esac
6283
6284# Disable libitm if we're not building C++
6285case ,${enable_languages}, in
6286 *,c++,*) ;;
6287 *)
6288 noconfigdirs="$noconfigdirs target-libitm"
6289 ;;
6290esac
6291
6292# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6293# $build_configdirs and $target_configdirs.
6294# If we have the source for $noconfigdirs entries, add them to $notsupp.
6295
6296notsupp=""
6297for dir in . $skipdirs $noconfigdirs ; do
6298 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6299 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6300 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6301 if test -r $srcdir/$dirname/configure ; then
6302 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6303 true
6304 else
6305 notsupp="$notsupp $dir"
6306 fi
6307 fi
6308 fi
6309 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6310 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6311 if test -r $srcdir/$dirname/configure ; then
6312 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6313 true
6314 else
6315 notsupp="$notsupp $dir"
6316 fi
6317 fi
6318 fi
6319 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6320 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6321 if test -r $srcdir/$dirname/configure ; then
6322 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6323 true
6324 else
6325 notsupp="$notsupp $dir"
6326 fi
6327 fi
6328 fi
6329done
6330
6331# Quietly strip out all directories which aren't configurable in this tree.
6332# This relies on all configurable subdirectories being autoconfiscated, which
6333# is now the case.
6334build_configdirs_all="$build_configdirs"
6335build_configdirs=
6336for i in ${build_configdirs_all} ; do
6337 j=`echo $i | sed -e s/build-//g`
6338 if test -f ${srcdir}/$j/configure ; then
6339 build_configdirs="${build_configdirs} $i"
6340 fi
6341done
6342
6343configdirs_all="$configdirs"
6344configdirs=
6345for i in ${configdirs_all} ; do
6346 if test -f ${srcdir}/$i/configure ; then
6347 configdirs="${configdirs} $i"
6348 fi
6349done
6350
6351target_configdirs_all="$target_configdirs"
6352target_configdirs=
6353for i in ${target_configdirs_all} ; do
6354 j=`echo $i | sed -e s/target-//g`
6355 if test -f ${srcdir}/$j/configure ; then
6356 target_configdirs="${target_configdirs} $i"
6357 fi
6358done
6359
6360# Produce a warning message for the subdirs we can't configure.
6361# This isn't especially interesting in the Cygnus tree, but in the individual
6362# FSF releases, it's important to let people know when their machine isn't
6363# supported by the one or two programs in a package.
6364
6365if test -n "${notsupp}" && test -z "${norecursion}" ; then
6366 # If $appdirs is non-empty, at least one of those directories must still
6367 # be configured, or we error out. (E.g., if the gas release supports a
6368 # specified target in some subdirs but not the gas subdir, we shouldn't
6369 # pretend that all is well.)
6370 if test -n "$appdirs" ; then
6371 for dir in $appdirs ; do
6372 if test -r $dir/Makefile.in ; then
6373 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6374 appdirs=""
6375 break
6376 fi
6377 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6378 appdirs=""
6379 break
6380 fi
6381 fi
6382 done
6383 if test -n "$appdirs" ; then
6384 echo "*** This configuration is not supported by this package." 1>&2
6385 exit 1
6386 fi
6387 fi
6388 # Okay, some application will build, or we don't care to check. Still
6389 # notify of subdirs not getting built.
6390 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6391 echo " ${notsupp}" 1>&2
6392 echo " (Any other directories should still work fine.)" 1>&2
6393fi
6394
6395case "$host" in
6396 *msdosdjgpp*)
6397 enable_gdbtk=no ;;
6398esac
6399
6400# To find our prefix, in gcc_cv_tool_prefix.
6401
6402# The user is always right.
6403if test "${PATH_SEPARATOR+set}" != set; then
6404 echo "#! /bin/sh" >conf$$.sh
6405 echo "exit 0" >>conf$$.sh
6406 chmod +x conf$$.sh
6407 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6408 PATH_SEPARATOR=';'
6409 else
6410 PATH_SEPARATOR=:
6411 fi
6412 rm -f conf$$.sh
6413fi
6414
6415
6416
6417if test "x$exec_prefix" = xNONE; then
6418 if test "x$prefix" = xNONE; then
6419 gcc_cv_tool_prefix=$ac_default_prefix
6420 else
6421 gcc_cv_tool_prefix=$prefix
6422 fi
6423else
6424 gcc_cv_tool_prefix=$exec_prefix
6425fi
6426
6427# If there is no compiler in the tree, use the PATH only. In any
6428# case, if there is no compiler in the tree nobody should use
6429# AS_FOR_TARGET and LD_FOR_TARGET.
6430if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6431 gcc_version=`cat $srcdir/gcc/BASE-VER`
6432 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6433 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6434 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6435 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6436 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6437 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6438else
6439 gcc_cv_tool_dirs=
6440fi
6441
6442if test x$build = x$target && test -n "$md_exec_prefix"; then
6443 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6444fi
6445
6446
6447
6448copy_dirs=
6449
6450
6451# Check whether --with-build-sysroot was given.
6452if test "${with_build_sysroot+set}" = set; then :
6453 withval=$with_build_sysroot; if test x"$withval" != x ; then
6454 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6455 fi
6456else
6457 SYSROOT_CFLAGS_FOR_TARGET=
6458fi
6459
6460
6461
6462
6463# Check whether --with-debug-prefix-map was given.
6464if test "${with_debug_prefix_map+set}" = set; then :
6465 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6466 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6467 for debug_map in $withval; do
6468 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6469 done
6470 fi
6471else
6472 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6473fi
6474
6475
6476
6477# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6478# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6479# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6480# We want to ensure that TARGET libraries (which we know are built with
6481# gcc) are built with "-O2 -g", so include those options when setting
6482# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6483if test "x$CFLAGS_FOR_TARGET" = x; then
6484 CFLAGS_FOR_TARGET=$CFLAGS
6485 case " $CFLAGS " in
6486 *" -O2 "*) ;;
6487 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6488 esac
6489 case " $CFLAGS " in
6490 *" -g "* | *" -g3 "*) ;;
6491 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6492 esac
6493fi
6494
6495
6496if test "x$CXXFLAGS_FOR_TARGET" = x; then
6497 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6498 case " $CXXFLAGS " in
6499 *" -O2 "*) ;;
6500 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6501 esac
6502 case " $CXXFLAGS " in
6503 *" -g "* | *" -g3 "*) ;;
6504 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6505 esac
6506fi
6507
6508
6509
6510
6511# Handle --with-headers=XXX. If the value is not "yes", the contents of
6512# the named directory are copied to $(tooldir)/sys-include.
6513if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6514 if test x${is_cross_compiler} = xno ; then
6515 echo 1>&2 '***' --with-headers is only supported when cross compiling
6516 exit 1
6517 fi
6518 if test x"${with_headers}" != xyes ; then
6519 x=${gcc_cv_tool_prefix}
6520 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6521 fi
6522fi
6523
6524# Handle --with-libs=XXX. If the value is not "yes", the contents of
6525# the name directories are copied to $(tooldir)/lib. Multiple directories
6526# are permitted.
6527if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6528 if test x${is_cross_compiler} = xno ; then
6529 echo 1>&2 '***' --with-libs is only supported when cross compiling
6530 exit 1
6531 fi
6532 if test x"${with_libs}" != xyes ; then
6533 # Copy the libraries in reverse order, so that files in the first named
6534 # library override files in subsequent libraries.
6535 x=${gcc_cv_tool_prefix}
6536 for l in ${with_libs}; do
6537 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6538 done
6539 fi
6540fi
6541
6542# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6543#
6544# This is done by determining whether or not the appropriate directory
6545# is available, and by checking whether or not specific configurations
6546# have requested that this magic not happen.
6547#
6548# The command line options always override the explicit settings in
6549# configure.in, and the settings in configure.in override this magic.
6550#
6551# If the default for a toolchain is to use GNU as and ld, and you don't
6552# want to do that, then you should use the --without-gnu-as and
6553# --without-gnu-ld options for the configure script. Similarly, if
6554# the default is to use the included zlib and you don't want to do that,
6555# you should use the --with-system-zlib option for the configure script.
6556
6557if test x${use_gnu_as} = x &&
6558 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6559 with_gnu_as=yes
6560 extra_host_args="$extra_host_args --with-gnu-as"
6561fi
6562
6563if test x${use_gnu_ld} = x &&
6564 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6565 with_gnu_ld=yes
6566 extra_host_args="$extra_host_args --with-gnu-ld"
6567fi
6568
6569if test x${use_included_zlib} = x &&
6570 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6571 :
6572else
6573 with_system_zlib=yes
6574 extra_host_args="$extra_host_args --with-system-zlib"
6575fi
6576
6577# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6578# can detect this case.
6579
6580if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6581 with_newlib=yes
6582 extra_host_args="$extra_host_args --with-newlib"
6583fi
6584
6585# Handle ${copy_dirs}
6586set fnord ${copy_dirs}
6587shift
6588while test $# != 0 ; do
6589 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6590 :
6591 else
6592 echo Copying $1 to $2
6593
6594 # Use the install script to create the directory and all required
6595 # parent directories.
6596 if test -d $2 ; then
6597 :
6598 else
6599 echo >config.temp
6600 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6601 fi
6602
6603 # Copy the directory, assuming we have tar.
6604 # FIXME: Should we use B in the second tar? Not all systems support it.
6605 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6606
6607 # It is the responsibility of the user to correctly adjust all
6608 # symlinks. If somebody can figure out how to handle them correctly
6609 # here, feel free to add the code.
6610
6611 echo $1 > $2/COPIED
6612 fi
6613 shift; shift
6614done
6615
6616# Determine a target-dependent exec_prefix that the installed
6617# gcc will search in. Keep this list sorted by triplet, with
6618# the *-*-osname triplets last.
6619md_exec_prefix=
6620case "${target}" in
6621 i[34567]86-pc-msdosdjgpp*)
6622 md_exec_prefix=/dev/env/DJDIR/bin
6623 ;;
6624 *-*-hpux* | \
6625 *-*-nto-qnx* | \
6626 *-*-solaris2*)
6627 md_exec_prefix=/usr/ccs/bin
6628 ;;
6629esac
6630
6631extra_arflags_for_target=
6632extra_nmflags_for_target=
6633extra_ranlibflags_for_target=
6634target_makefile_frag=/dev/null
6635case "${target}" in
6636 spu-*-*)
6637 target_makefile_frag="config/mt-spu"
6638 ;;
6639 mips*-sde-elf*)
6640 target_makefile_frag="config/mt-sde"
6641 ;;
6642 mipsisa*-*-elfoabi*)
6643 target_makefile_frag="config/mt-mips-elfoabi"
6644 ;;
6645 mips*-*-*linux* | mips*-*-gnu*)
6646 target_makefile_frag="config/mt-mips-gnu"
6647 ;;
6648 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6649 target_makefile_frag="config/mt-gnu"
6650 ;;
6651 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6652 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6653 # commands to handle both 32-bit and 64-bit objects. These flags are
6654 # harmless if we're using GNU nm or ar.
6655 extra_arflags_for_target=" -X32_64"
6656 extra_nmflags_for_target=" -B -X32_64"
6657 ;;
6658esac
6659
6660alphaieee_frag=/dev/null
6661case $target in
6662 alpha*-*-*)
6663 # This just makes sure to use the -mieee option to build target libs.
6664 # This should probably be set individually by each library.
6665 alphaieee_frag="config/mt-alphaieee"
6666 ;;
6667esac
6668
6669# If --enable-target-optspace always use -Os instead of -O2 to build
6670# the target libraries, similarly if it is not specified, use -Os
6671# on selected platforms.
6672ospace_frag=/dev/null
6673case "${enable_target_optspace}:${target}" in
6674 yes:*)
6675 ospace_frag="config/mt-ospace"
6676 ;;
6677 :d30v-*)
6678 ospace_frag="config/mt-d30v"
6679 ;;
6680 :m32r-* | :d10v-* | :fr30-*)
6681 ospace_frag="config/mt-ospace"
6682 ;;
6683 no:* | :*)
6684 ;;
6685 *)
6686 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6687 ;;
6688esac
6689
6690# Some systems (e.g., one of the i386-aix systems the gas testers are
6691# using) don't handle "\$" correctly, so don't use it here.
6692tooldir='${exec_prefix}'/${target_noncanonical}
6693build_tooldir=${tooldir}
6694
6695# Create a .gdbinit file which runs the one in srcdir
6696# and tells GDB to look there for source files.
6697
6698if test -r ${srcdir}/.gdbinit ; then
6699 case ${srcdir} in
6700 .) ;;
6701 *) cat > ./.gdbinit <<EOF
6702# ${NO_EDIT}
6703dir ${srcdir}
6704dir .
6705source ${srcdir}/.gdbinit
6706EOF
6707 ;;
6708 esac
6709fi
6710
6711# Make sure that the compiler is able to generate an executable. If it
6712# can't, we are probably in trouble. We don't care whether we can run the
6713# executable--we might be using a cross compiler--we only care whether it
6714# can be created. At this point the main configure script has set CC.
6715we_are_ok=no
6716echo "int main () { return 0; }" > conftest.c
6717${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6718if test $? = 0 ; then
6719 if test -s conftest || test -s conftest.exe ; then
6720 we_are_ok=yes
6721 fi
6722fi
6723case $we_are_ok in
6724 no)
6725 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6726 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6727 rm -f conftest*
6728 exit 1
6729 ;;
6730esac
6731rm -f conftest*
6732
6733# Decide which environment variable is used to find dynamic libraries.
6734case "${host}" in
6735 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6736 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6737 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6738 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6739esac
6740
6741# On systems where the dynamic library environment variable is PATH,
6742# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6743# built executables to PATH.
6744if test "$RPATH_ENVVAR" = PATH; then
6745 GCC_SHLIB_SUBDIR=/shlib
6746else
6747 GCC_SHLIB_SUBDIR=
6748fi
6749
6750# Record target_configdirs and the configure arguments for target and
6751# build configuration in Makefile.
6752target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6753build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6754
6755# If we are building libgomp, bootstrap it.
6756if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6757 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6758fi
6759
6760# Determine whether gdb needs tk/tcl or not.
6761# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6762# and in that case we want gdb to be built without tk. Ugh!
6763# In fact I believe gdb is the *only* package directly dependent on tk,
6764# so we should be able to put the 'maybe's in unconditionally and
6765# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6766# 100% sure that that's safe though.
6767
6768gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6769case "$enable_gdbtk" in
6770 no)
6771 GDB_TK="" ;;
6772 yes)
6773 GDB_TK="${gdb_tk}" ;;
6774 *)
6775 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6776 # distro. Eventually someone will fix this and move Insight, nee
6777 # gdbtk to a separate directory.
6778 if test -d ${srcdir}/gdb/gdbtk ; then
6779 GDB_TK="${gdb_tk}"
6780 else
6781 GDB_TK=""
6782 fi
6783 ;;
6784esac
6785CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6786INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6787
6788# Strip out unwanted targets.
6789
6790# While at that, we remove Makefiles if we were started for recursive
6791# configuration, so that the top-level Makefile reconfigures them,
6792# like we used to do when configure itself was recursive.
6793
6794# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6795# but now we're fixing up the Makefile ourselves with the additional
6796# commands passed to AC_CONFIG_FILES. Use separate variables
6797# extrasub-{build,host,target} not because there is any reason to split
6798# the substitutions up that way, but only to remain below the limit of
6799# 99 commands in a script, for HP-UX sed.
6800# Do not nest @if/@endif pairs, because configure will not warn you at all.
6801
6802case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6803 yes:yes:*\ gold\ *:*,c++,*) ;;
6804 yes:yes:*\ gold\ *:*)
6805 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6806 ;;
6807esac
6808
6809# Adjust the toplevel makefile according to whether bootstrap was selected.
6810case $enable_bootstrap in
6811 yes)
6812 bootstrap_suffix=bootstrap
6813 BUILD_CONFIG=bootstrap-debug
6814 ;;
6815 no)
6816 bootstrap_suffix=no-bootstrap
6817 BUILD_CONFIG=
6818 ;;
6819esac
6820
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6822$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6823
6824
6825# Check whether --with-build-config was given.
6826if test "${with_build_config+set}" = set; then :
6827 withval=$with_build_config; case $with_build_config in
6828 yes) with_build_config= ;;
6829 no) with_build_config= BUILD_CONFIG= ;;
6830 esac
6831fi
6832
6833
6834if test "x${with_build_config}" != x; then
6835 BUILD_CONFIG=$with_build_config
6836else
6837 case $BUILD_CONFIG in
6838 bootstrap-debug)
6839 if echo "int f (void) { return 0; }" > conftest.c &&
6840 ${CC} -c conftest.c &&
6841 mv conftest.o conftest.o.g0 &&
6842 ${CC} -c -g conftest.c &&
6843 mv conftest.o conftest.o.g &&
6844 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6845 :
6846 else
6847 BUILD_CONFIG=
6848 fi
6849 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6850 ;;
6851 esac
6852fi
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6854$as_echo "$BUILD_CONFIG" >&6; }
6855
6856
6857extrasub_build=
6858for module in ${build_configdirs} ; do
6859 if test -z "${no_recursion}" \
6860 && test -f ${build_subdir}/${module}/Makefile; then
6861 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6862 rm -f ${build_subdir}/${module}/Makefile
6863 fi
6864 extrasub_build="$extrasub_build
6865/^@if build-$module\$/d
6866/^@endif build-$module\$/d
6867/^@if build-$module-$bootstrap_suffix\$/d
6868/^@endif build-$module-$bootstrap_suffix\$/d"
6869done
6870extrasub_host=
6871for module in ${configdirs} ; do
6872 if test -z "${no_recursion}"; then
6873 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6874 if test -f ${file}; then
6875 echo 1>&2 "*** removing ${file} to force reconfigure"
6876 rm -f ${file}
6877 fi
6878 done
6879 fi
6880 extrasub_host="$extrasub_host
6881/^@if $module\$/d
6882/^@endif $module\$/d
6883/^@if $module-$bootstrap_suffix\$/d
6884/^@endif $module-$bootstrap_suffix\$/d"
6885done
6886extrasub_target=
6887for module in ${target_configdirs} ; do
6888 if test -z "${no_recursion}" \
6889 && test -f ${target_subdir}/${module}/Makefile; then
6890 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6891 rm -f ${target_subdir}/${module}/Makefile
6892 fi
6893
6894 # We only bootstrap target libraries listed in bootstrap_target_libs.
6895 case $bootstrap_target_libs in
6896 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6897 *) target_bootstrap_suffix=no-bootstrap ;;
6898 esac
6899
6900 extrasub_target="$extrasub_target
6901/^@if target-$module\$/d
6902/^@endif target-$module\$/d
6903/^@if target-$module-$target_bootstrap_suffix\$/d
6904/^@endif target-$module-$target_bootstrap_suffix\$/d"
6905done
6906
6907# Do the final fixup along with target modules.
6908extrasub_target="$extrasub_target
6909/^@if /,/^@endif /d"
6910
6911# Create the serialization dependencies. This uses a temporary file.
6912
6913# Check whether --enable-serial-configure was given.
6914if test "${enable_serial_configure+set}" = set; then :
6915 enableval=$enable_serial_configure;
6916fi
6917
6918
6919case ${enable_serial_configure} in
6920 yes)
6921 enable_serial_build_configure=yes
6922 enable_serial_host_configure=yes
6923 enable_serial_target_configure=yes
6924 ;;
6925esac
6926
6927# These force 'configure's to be done one at a time, to avoid problems
6928# with contention over a shared config.cache.
6929rm -f serdep.tmp
6930echo '# serdep.tmp' > serdep.tmp
6931olditem=
6932test "x${enable_serial_build_configure}" = xyes &&
6933for item in ${build_configdirs} ; do
6934 case ${olditem} in
6935 "") ;;
6936 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6937 esac
6938 olditem=${item}
6939done
6940olditem=
6941test "x${enable_serial_host_configure}" = xyes &&
6942for item in ${configdirs} ; do
6943 case ${olditem} in
6944 "") ;;
6945 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6946 esac
6947 olditem=${item}
6948done
6949olditem=
6950test "x${enable_serial_target_configure}" = xyes &&
6951for item in ${target_configdirs} ; do
6952 case ${olditem} in
6953 "") ;;
6954 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6955 esac
6956 olditem=${item}
6957done
6958serialization_dependencies=serdep.tmp
6959
6960
6961# Base args. Strip norecursion, cache-file, srcdir, host, build,
6962# target, nonopt, and variable assignments. These are the ones we
6963# might not want to pass down to subconfigures. The exception being
6964# --cache-file=/dev/null, which is used to turn off the use of cache
6965# files altogether, and which should be passed on to subconfigures.
6966# Also strip program-prefix, program-suffix, and program-transform-name,
6967# so that we can pass down a consistent program-transform-name.
6968baseargs=
6969tbaseargs=
6970keep_next=no
6971skip_next=no
6972eval "set -- $ac_configure_args"
6973for ac_arg
6974do
6975 if test X"$skip_next" = X"yes"; then
6976 skip_next=no
6977 continue
6978 fi
6979 if test X"$keep_next" = X"yes"; then
6980 case $ac_arg in
6981 *\'*)
6982 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6983 esac
6984 baseargs="$baseargs '$ac_arg'"
6985 tbaseargs="$tbaseargs '$ac_arg'"
6986 keep_next=no
6987 continue
6988 fi
6989
6990 # Handle separated arguments. Based on the logic generated by
6991 # autoconf 2.59.
6992 case $ac_arg in
6993 *=* | --config-cache | -C | -disable-* | --disable-* \
6994 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6995 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6996 | -with-* | --with-* | -without-* | --without-* | --x)
6997 separate_arg=no
6998 ;;
6999 -*)
7000 separate_arg=yes
7001 ;;
7002 *)
7003 separate_arg=no
7004 ;;
7005 esac
7006
7007 skip_targ=no
7008 case $ac_arg in
7009
7010 --with-* | --without-*)
7011 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7012
7013 case $libopt in
7014 *[-_]include)
7015 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7016 ;;
7017 *[-_]lib)
7018 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7019 ;;
7020 *)
7021 lib=$libopt
7022 ;;
7023 esac
7024
7025
7026 case $lib in
7027 mpc | mpfr | gmp | cloog)
7028 # If we're processing --with-$lib, --with-$lib-include or
7029 # --with-$lib-lib, for one of the libs above, and target is
7030 # different from host, don't pass the current argument to any
7031 # target library's configure.
7032 if test x$is_cross_compiler = xyes; then
7033 skip_targ=yes
7034 fi
7035 ;;
7036 esac
7037 ;;
7038 esac
7039
7040 case "$ac_arg" in
7041 --cache-file=/dev/null | \
7042 -cache-file=/dev/null )
7043 # Handled here to avoid the test to skip args below.
7044 baseargs="$baseargs '$ac_arg'"
7045 tbaseargs="$tbaseargs '$ac_arg'"
7046 # Assert: $separate_arg should always be no.
7047 keep_next=$separate_arg
7048 ;;
7049 --no*)
7050 continue
7051 ;;
7052 --c* | \
7053 --sr* | \
7054 --ho* | \
7055 --bu* | \
7056 --t* | \
7057 --program-* | \
7058 -cache_file* | \
7059 -srcdir* | \
7060 -host* | \
7061 -build* | \
7062 -target* | \
7063 -program-prefix* | \
7064 -program-suffix* | \
7065 -program-transform-name* )
7066 skip_next=$separate_arg
7067 continue
7068 ;;
7069 -*)
7070 # An option. Add it.
7071 case $ac_arg in
7072 *\'*)
7073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7074 esac
7075 baseargs="$baseargs '$ac_arg'"
7076 if test X"$skip_targ" = Xno; then
7077 tbaseargs="$tbaseargs '$ac_arg'"
7078 fi
7079 keep_next=$separate_arg
7080 ;;
7081 *)
7082 # Either a variable assignment, or a nonopt (triplet). Don't
7083 # pass it down; let the Makefile handle this.
7084 continue
7085 ;;
7086 esac
7087done
7088# Remove the initial space we just introduced and, as these will be
7089# expanded by make, quote '$'.
7090baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7091
7092# Add in --program-transform-name, after --program-prefix and
7093# --program-suffix have been applied to it. Autoconf has already
7094# doubled dollar signs and backslashes in program_transform_name; we want
7095# the backslashes un-doubled, and then the entire thing wrapped in single
7096# quotes, because this will be expanded first by make and then by the shell.
7097# Also, because we want to override the logic in subdir configure scripts to
7098# choose program_transform_name, replace any s,x,x, with s,y,y,.
7099sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7100${program_transform_name}
7101EOF_SED
7102gcc_transform_name=`cat conftestsed.out`
7103rm -f conftestsed.out
7104baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7105tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7106if test "$silent" = yes; then
7107 baseargs="$baseargs --silent"
7108 tbaseargs="$tbaseargs --silent"
7109fi
7110baseargs="$baseargs --disable-option-checking"
7111tbaseargs="$tbaseargs --disable-option-checking"
7112
7113# Record and document user additions to sub configure arguments.
7114
7115
7116
7117
7118# For the build-side libraries, we just need to pretend we're native,
7119# and not use the same cache file. Multilibs are neither needed nor
7120# desired.
7121build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7122
7123# For host modules, accept cache file option, or specification as blank.
7124case "${cache_file}" in
7125"") # empty
7126 cache_file_option="" ;;
7127/* | [A-Za-z]:[\\/]* ) # absolute path
7128 cache_file_option="--cache-file=${cache_file}" ;;
7129*) # relative path
7130 cache_file_option="--cache-file=../${cache_file}" ;;
7131esac
7132
7133# Host dirs don't like to share a cache file either, horribly enough.
7134# This seems to be due to autoconf 2.5x stupidity.
7135host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7136
7137target_configargs="$target_configargs ${tbaseargs}"
7138
7139# Passing a --with-cross-host argument lets the target libraries know
7140# whether they are being built with a cross-compiler or being built
7141# native. However, it would be better to use other mechanisms to make the
7142# sorts of decisions they want to make on this basis. Please consider
7143# this option to be deprecated. FIXME.
7144if test x${is_cross_compiler} = xyes ; then
7145 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7146fi
7147
7148# Default to --enable-multilib.
7149if test x${enable_multilib} = x ; then
7150 target_configargs="--enable-multilib ${target_configargs}"
7151fi
7152
7153# Pass --with-newlib if appropriate. Note that target_configdirs has
7154# changed from the earlier setting of with_newlib.
7155if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7156 target_configargs="--with-newlib ${target_configargs}"
7157fi
7158
7159# Different target subdirs use different values of certain variables
7160# (notably CXX). Worse, multilibs use *lots* of different values.
7161# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7162# it doesn't automatically accept command-line overrides of them.
7163# This means it's not safe for target subdirs to share a cache file,
7164# which is disgusting, but there you have it. Hopefully this can be
7165# fixed in future. It's still worthwhile to use a cache file for each
7166# directory. I think.
7167
7168# Pass the appropriate --build, --host, --target and --cache-file arguments.
7169# We need to pass --target, as newer autoconf's requires consistency
7170# for target_alias and gcc doesn't manage it consistently.
7171target_configargs="--cache-file=./config.cache ${target_configargs}"
7172
7173FLAGS_FOR_TARGET=
7174case " $target_configdirs " in
7175 *" newlib "*)
7176 case " $target_configargs " in
7177 *" --with-newlib "*)
7178 case "$target" in
7179 *-cygwin*)
7180 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'
7181 ;;
7182 esac
7183
7184 # If we're not building GCC, don't discard standard headers.
7185 if test -d ${srcdir}/gcc; then
7186 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7187
7188 if test "${build}" != "${host}"; then
7189 # On Canadian crosses, CC_FOR_TARGET will have already been set
7190 # by `configure', so we won't have an opportunity to add -Bgcc/
7191 # to it. This is right: we don't want to search that directory
7192 # for binaries, but we want the header files in there, so add
7193 # them explicitly.
7194 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7195
7196 # Someone might think of using the pre-installed headers on
7197 # Canadian crosses, in case the installed compiler is not fully
7198 # compatible with the compiler being built. In this case, it
7199 # would be better to flag an error than risking having
7200 # incompatible object files being constructed. We can't
7201 # guarantee that an error will be flagged, but let's hope the
7202 # compiler will do it, when presented with incompatible header
7203 # files.
7204 fi
7205 fi
7206
7207 case "${target}-${is_cross_compiler}" in
7208 i[3456789]86-*-linux*-no)
7209 # Here host == target, so we don't need to build gcc,
7210 # so we don't want to discard standard headers.
7211 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7212 ;;
7213 *)
7214 # If we're building newlib, use its generic headers last, but search
7215 # for any libc-related directories first (so make it the last -B
7216 # switch).
7217 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7218
7219 # If we're building libgloss, find the startup file, simulator library
7220 # and linker script.
7221 case " $target_configdirs " in
7222 *" libgloss "*)
7223 # Look for startup file, simulator library and maybe linker script.
7224 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7225 # Look for libnosys.a in case the target needs it.
7226 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7227 # Most targets have the linker script in the source directory.
7228 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7229 ;;
7230 esac
7231 ;;
7232 esac
7233 ;;
7234 esac
7235 ;;
7236esac
7237
7238case "$target" in
7239 x86_64-*mingw* | *-w64-mingw*)
7240 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7241 # however, use a symlink named 'mingw' in ${prefix} .
7242 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7243 ;;
7244 *-mingw*)
7245 # MinGW can't be handled as Cygwin above since it does not use newlib.
7246 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'
7247 ;;
7248esac
7249
7250# Allow the user to override the flags for
7251# our build compiler if desired.
7252if test x"${build}" = x"${host}" ; then
7253 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7254 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7255 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7256fi
7257
7258# On Canadian crosses, we'll be searching the right directories for
7259# the previously-installed cross compiler, so don't bother to add
7260# flags for directories within the install tree of the compiler
7261# being built; programs in there won't even run.
7262if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7263 # Search for pre-installed headers if nothing else fits.
7264 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7265fi
7266
7267if test "x${use_gnu_ld}" = x &&
7268 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7269 # Arrange for us to find uninstalled linker scripts.
7270 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7271fi
7272
7273# Search for other target-specific linker scripts and such.
7274case "${target}" in
7275 mep*)
7276 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7277 ;;
7278esac
7279
7280# Makefile fragments.
7281for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7282do
7283 eval fragval=\$$frag
7284 if test $fragval != /dev/null; then
7285 eval $frag=${srcdir}/$fragval
7286 fi
7287done
7288
7289
7290
7291
7292
7293# Miscellanea: directories, flags, etc.
7294
7295
7296
7297
7298
7299
7300
7301
7302# Build module lists & subconfigure args.
7303
7304
7305
7306# Host module lists & subconfigure args.
7307
7308
7309
7310
7311# Target module lists & subconfigure args.
7312
7313
7314
7315# Build tools.
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333# Generate default definitions for YACC, M4, LEX and other programs that run
7334# on the build machine. These are used if the Makefile can't locate these
7335# programs in objdir.
7336MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7337
7338for ac_prog in 'bison -y' byacc yacc
7339do
7340 # Extract the first word of "$ac_prog", so it can be a program name with args.
7341set dummy $ac_prog; ac_word=$2
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343$as_echo_n "checking for $ac_word... " >&6; }
7344if test "${ac_cv_prog_YACC+set}" = set; then :
7345 $as_echo_n "(cached) " >&6
7346else
7347 if test -n "$YACC"; then
7348 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7349else
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_prog_YACC="$ac_prog"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361done
7362 done
7363IFS=$as_save_IFS
7364
7365fi
7366fi
7367YACC=$ac_cv_prog_YACC
7368if test -n "$YACC"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7370$as_echo "$YACC" >&6; }
7371else
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373$as_echo "no" >&6; }
7374fi
7375
7376
7377 test -n "$YACC" && break
7378done
7379test -n "$YACC" || YACC="$MISSING bison -y"
7380
7381case " $build_configdirs " in
7382 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7383esac
7384
7385for ac_prog in bison
7386do
7387 # Extract the first word of "$ac_prog", so it can be a program name with args.
7388set dummy $ac_prog; ac_word=$2
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390$as_echo_n "checking for $ac_word... " >&6; }
7391if test "${ac_cv_prog_BISON+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7393else
7394 if test -n "$BISON"; then
7395 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7396else
7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7404 ac_cv_prog_BISON="$ac_prog"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7407 fi
7408done
7409 done
7410IFS=$as_save_IFS
7411
7412fi
7413fi
7414BISON=$ac_cv_prog_BISON
7415if test -n "$BISON"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7417$as_echo "$BISON" >&6; }
7418else
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420$as_echo "no" >&6; }
7421fi
7422
7423
7424 test -n "$BISON" && break
7425done
7426test -n "$BISON" || BISON="$MISSING bison"
7427
7428case " $build_configdirs " in
7429 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7430esac
7431
7432for ac_prog in gm4 gnum4 m4
7433do
7434 # Extract the first word of "$ac_prog", so it can be a program name with args.
7435set dummy $ac_prog; ac_word=$2
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437$as_echo_n "checking for $ac_word... " >&6; }
7438if test "${ac_cv_prog_M4+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
7440else
7441 if test -n "$M4"; then
7442 ac_cv_prog_M4="$M4" # Let the user override the test.
7443else
7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_prog_M4="$ac_prog"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7454 fi
7455done
7456 done
7457IFS=$as_save_IFS
7458
7459fi
7460fi
7461M4=$ac_cv_prog_M4
7462if test -n "$M4"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7464$as_echo "$M4" >&6; }
7465else
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467$as_echo "no" >&6; }
7468fi
7469
7470
7471 test -n "$M4" && break
7472done
7473test -n "$M4" || M4="$MISSING m4"
7474
7475case " $build_configdirs " in
7476 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7477esac
7478
7479for ac_prog in flex lex
7480do
7481 # Extract the first word of "$ac_prog", so it can be a program name with args.
7482set dummy $ac_prog; ac_word=$2
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484$as_echo_n "checking for $ac_word... " >&6; }
7485if test "${ac_cv_prog_LEX+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
7487else
7488 if test -n "$LEX"; then
7489 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7490else
7491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_prog_LEX="$ac_prog"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7501 fi
7502done
7503 done
7504IFS=$as_save_IFS
7505
7506fi
7507fi
7508LEX=$ac_cv_prog_LEX
7509if test -n "$LEX"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7511$as_echo "$LEX" >&6; }
7512else
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514$as_echo "no" >&6; }
7515fi
7516
7517
7518 test -n "$LEX" && break
7519done
7520test -n "$LEX" || LEX="$MISSING flex"
7521
7522case " $build_configdirs " in
7523 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7524 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7525esac
7526
7527for ac_prog in flex
7528do
7529 # Extract the first word of "$ac_prog", so it can be a program name with args.
7530set dummy $ac_prog; ac_word=$2
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532$as_echo_n "checking for $ac_word... " >&6; }
7533if test "${ac_cv_prog_FLEX+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7535else
7536 if test -n "$FLEX"; then
7537 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7538else
7539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540for as_dir in $PATH
7541do
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7546 ac_cv_prog_FLEX="$ac_prog"
7547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 break 2
7549 fi
7550done
7551 done
7552IFS=$as_save_IFS
7553
7554fi
7555fi
7556FLEX=$ac_cv_prog_FLEX
7557if test -n "$FLEX"; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7559$as_echo "$FLEX" >&6; }
7560else
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562$as_echo "no" >&6; }
7563fi
7564
7565
7566 test -n "$FLEX" && break
7567done
7568test -n "$FLEX" || FLEX="$MISSING flex"
7569
7570case " $build_configdirs " in
7571 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7572esac
7573
7574for ac_prog in makeinfo
7575do
7576 # Extract the first word of "$ac_prog", so it can be a program name with args.
7577set dummy $ac_prog; ac_word=$2
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579$as_echo_n "checking for $ac_word... " >&6; }
7580if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
7582else
7583 if test -n "$MAKEINFO"; then
7584 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7585else
7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593 ac_cv_prog_MAKEINFO="$ac_prog"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 break 2
7596 fi
7597done
7598 done
7599IFS=$as_save_IFS
7600
7601fi
7602fi
7603MAKEINFO=$ac_cv_prog_MAKEINFO
7604if test -n "$MAKEINFO"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7606$as_echo "$MAKEINFO" >&6; }
7607else
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609$as_echo "no" >&6; }
7610fi
7611
7612
7613 test -n "$MAKEINFO" && break
7614done
7615test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7616
7617case " $build_configdirs " in
7618 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7619 *)
7620
7621 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7622 # higher, else we use the "missing" dummy.
7623 if ${MAKEINFO} --version \
7624 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7625 :
7626 else
7627 MAKEINFO="$MISSING makeinfo"
7628 fi
7629 ;;
7630
7631esac
7632
7633# FIXME: expect and dejagnu may become build tools?
7634
7635for ac_prog in expect
7636do
7637 # Extract the first word of "$ac_prog", so it can be a program name with args.
7638set dummy $ac_prog; ac_word=$2
7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640$as_echo_n "checking for $ac_word... " >&6; }
7641if test "${ac_cv_prog_EXPECT+set}" = set; then :
7642 $as_echo_n "(cached) " >&6
7643else
7644 if test -n "$EXPECT"; then
7645 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7646else
7647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648for as_dir in $PATH
7649do
7650 IFS=$as_save_IFS
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7654 ac_cv_prog_EXPECT="$ac_prog"
7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 break 2
7657 fi
7658done
7659 done
7660IFS=$as_save_IFS
7661
7662fi
7663fi
7664EXPECT=$ac_cv_prog_EXPECT
7665if test -n "$EXPECT"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7667$as_echo "$EXPECT" >&6; }
7668else
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670$as_echo "no" >&6; }
7671fi
7672
7673
7674 test -n "$EXPECT" && break
7675done
7676test -n "$EXPECT" || EXPECT="expect"
7677
7678case " $configdirs " in
7679 *" expect "*)
7680 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7681 ;;
7682esac
7683
7684for ac_prog in runtest
7685do
7686 # Extract the first word of "$ac_prog", so it can be a program name with args.
7687set dummy $ac_prog; ac_word=$2
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689$as_echo_n "checking for $ac_word... " >&6; }
7690if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7691 $as_echo_n "(cached) " >&6
7692else
7693 if test -n "$RUNTEST"; then
7694 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7695else
7696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697for as_dir in $PATH
7698do
7699 IFS=$as_save_IFS
7700 test -z "$as_dir" && as_dir=.
7701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7703 ac_cv_prog_RUNTEST="$ac_prog"
7704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 break 2
7706 fi
7707done
7708 done
7709IFS=$as_save_IFS
7710
7711fi
7712fi
7713RUNTEST=$ac_cv_prog_RUNTEST
7714if test -n "$RUNTEST"; then
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7716$as_echo "$RUNTEST" >&6; }
7717else
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719$as_echo "no" >&6; }
7720fi
7721
7722
7723 test -n "$RUNTEST" && break
7724done
7725test -n "$RUNTEST" || RUNTEST="runtest"
7726
7727case " $configdirs " in
7728 *" dejagnu "*)
7729 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7730 ;;
7731esac
7732
7733
7734# Host tools.
7735ncn_tool_prefix=
7736test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7737ncn_target_tool_prefix=
7738test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7739
7740
7741
7742if test -n "$AR"; then
7743 ac_cv_prog_AR=$AR
7744elif test -n "$ac_cv_prog_AR"; then
7745 AR=$ac_cv_prog_AR
7746fi
7747
7748if test -n "$ac_cv_prog_AR"; then
7749 for ncn_progname in ar; do
7750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7751set dummy ${ncn_progname}; ac_word=$2
7752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753$as_echo_n "checking for $ac_word... " >&6; }
7754if test "${ac_cv_prog_AR+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7756else
7757 if test -n "$AR"; then
7758 ac_cv_prog_AR="$AR" # Let the user override the test.
7759else
7760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761for as_dir in $PATH
7762do
7763 IFS=$as_save_IFS
7764 test -z "$as_dir" && as_dir=.
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7767 ac_cv_prog_AR="${ncn_progname}"
7768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 break 2
7770 fi
7771done
7772 done
7773IFS=$as_save_IFS
7774
7775fi
7776fi
7777AR=$ac_cv_prog_AR
7778if test -n "$AR"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7780$as_echo "$AR" >&6; }
7781else
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783$as_echo "no" >&6; }
7784fi
7785
7786
7787 done
7788fi
7789
7790for ncn_progname in ar; do
7791 if test -n "$ncn_tool_prefix"; then
7792 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7793set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795$as_echo_n "checking for $ac_word... " >&6; }
7796if test "${ac_cv_prog_AR+set}" = set; then :
7797 $as_echo_n "(cached) " >&6
7798else
7799 if test -n "$AR"; then
7800 ac_cv_prog_AR="$AR" # Let the user override the test.
7801else
7802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803for as_dir in $PATH
7804do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7812 fi
7813done
7814 done
7815IFS=$as_save_IFS
7816
7817fi
7818fi
7819AR=$ac_cv_prog_AR
7820if test -n "$AR"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7822$as_echo "$AR" >&6; }
7823else
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825$as_echo "no" >&6; }
7826fi
7827
7828
7829 fi
7830 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7832set dummy ${ncn_progname}; ac_word=$2
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834$as_echo_n "checking for $ac_word... " >&6; }
7835if test "${ac_cv_prog_AR+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
7837else
7838 if test -n "$AR"; then
7839 ac_cv_prog_AR="$AR" # Let the user override the test.
7840else
7841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7848 ac_cv_prog_AR="${ncn_progname}"
7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 break 2
7851 fi
7852done
7853 done
7854IFS=$as_save_IFS
7855
7856fi
7857fi
7858AR=$ac_cv_prog_AR
7859if test -n "$AR"; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7861$as_echo "$AR" >&6; }
7862else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864$as_echo "no" >&6; }
7865fi
7866
7867
7868 fi
7869 test -n "$ac_cv_prog_AR" && break
7870done
7871
7872if test -z "$ac_cv_prog_AR" ; then
7873 set dummy ar
7874 if test $build = $host ; then
7875 AR="$2"
7876 else
7877 AR="${ncn_tool_prefix}$2"
7878 fi
7879fi
7880
7881
7882
7883if test -n "$AS"; then
7884 ac_cv_prog_AS=$AS
7885elif test -n "$ac_cv_prog_AS"; then
7886 AS=$ac_cv_prog_AS
7887fi
7888
7889if test -n "$ac_cv_prog_AS"; then
7890 for ncn_progname in as; do
7891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7892set dummy ${ncn_progname}; ac_word=$2
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894$as_echo_n "checking for $ac_word... " >&6; }
7895if test "${ac_cv_prog_AS+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
7897else
7898 if test -n "$AS"; then
7899 ac_cv_prog_AS="$AS" # Let the user override the test.
7900else
7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902for as_dir in $PATH
7903do
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7908 ac_cv_prog_AS="${ncn_progname}"
7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 break 2
7911 fi
7912done
7913 done
7914IFS=$as_save_IFS
7915
7916fi
7917fi
7918AS=$ac_cv_prog_AS
7919if test -n "$AS"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7921$as_echo "$AS" >&6; }
7922else
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924$as_echo "no" >&6; }
7925fi
7926
7927
7928 done
7929fi
7930
7931for ncn_progname in as; do
7932 if test -n "$ncn_tool_prefix"; then
7933 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7934set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936$as_echo_n "checking for $ac_word... " >&6; }
7937if test "${ac_cv_prog_AS+set}" = set; then :
7938 $as_echo_n "(cached) " >&6
7939else
7940 if test -n "$AS"; then
7941 ac_cv_prog_AS="$AS" # Let the user override the test.
7942else
7943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944for as_dir in $PATH
7945do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7950 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7953 fi
7954done
7955 done
7956IFS=$as_save_IFS
7957
7958fi
7959fi
7960AS=$ac_cv_prog_AS
7961if test -n "$AS"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7963$as_echo "$AS" >&6; }
7964else
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966$as_echo "no" >&6; }
7967fi
7968
7969
7970 fi
7971 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7973set dummy ${ncn_progname}; ac_word=$2
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975$as_echo_n "checking for $ac_word... " >&6; }
7976if test "${ac_cv_prog_AS+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7978else
7979 if test -n "$AS"; then
7980 ac_cv_prog_AS="$AS" # Let the user override the test.
7981else
7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7989 ac_cv_prog_AS="${ncn_progname}"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7992 fi
7993done
7994 done
7995IFS=$as_save_IFS
7996
7997fi
7998fi
7999AS=$ac_cv_prog_AS
8000if test -n "$AS"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8002$as_echo "$AS" >&6; }
8003else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005$as_echo "no" >&6; }
8006fi
8007
8008
8009 fi
8010 test -n "$ac_cv_prog_AS" && break
8011done
8012
8013if test -z "$ac_cv_prog_AS" ; then
8014 set dummy as
8015 if test $build = $host ; then
8016 AS="$2"
8017 else
8018 AS="${ncn_tool_prefix}$2"
8019 fi
8020fi
8021
8022
8023
8024if test -n "$DLLTOOL"; then
8025 ac_cv_prog_DLLTOOL=$DLLTOOL
8026elif test -n "$ac_cv_prog_DLLTOOL"; then
8027 DLLTOOL=$ac_cv_prog_DLLTOOL
8028fi
8029
8030if test -n "$ac_cv_prog_DLLTOOL"; then
8031 for ncn_progname in dlltool; do
8032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8033set dummy ${ncn_progname}; ac_word=$2
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035$as_echo_n "checking for $ac_word... " >&6; }
8036if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8038else
8039 if test -n "$DLLTOOL"; then
8040 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8041else
8042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_prog_DLLTOOL="${ncn_progname}"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8052 fi
8053done
8054 done
8055IFS=$as_save_IFS
8056
8057fi
8058fi
8059DLLTOOL=$ac_cv_prog_DLLTOOL
8060if test -n "$DLLTOOL"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8062$as_echo "$DLLTOOL" >&6; }
8063else
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065$as_echo "no" >&6; }
8066fi
8067
8068
8069 done
8070fi
8071
8072for ncn_progname in dlltool; do
8073 if test -n "$ncn_tool_prefix"; then
8074 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8075set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077$as_echo_n "checking for $ac_word... " >&6; }
8078if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8080else
8081 if test -n "$DLLTOOL"; then
8082 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8083else
8084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085for as_dir in $PATH
8086do
8087 IFS=$as_save_IFS
8088 test -z "$as_dir" && as_dir=.
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8091 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 break 2
8094 fi
8095done
8096 done
8097IFS=$as_save_IFS
8098
8099fi
8100fi
8101DLLTOOL=$ac_cv_prog_DLLTOOL
8102if test -n "$DLLTOOL"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8104$as_echo "$DLLTOOL" >&6; }
8105else
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107$as_echo "no" >&6; }
8108fi
8109
8110
8111 fi
8112 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8114set dummy ${ncn_progname}; ac_word=$2
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116$as_echo_n "checking for $ac_word... " >&6; }
8117if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8118 $as_echo_n "(cached) " >&6
8119else
8120 if test -n "$DLLTOOL"; then
8121 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8122else
8123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124for as_dir in $PATH
8125do
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8130 ac_cv_prog_DLLTOOL="${ncn_progname}"
8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 break 2
8133 fi
8134done
8135 done
8136IFS=$as_save_IFS
8137
8138fi
8139fi
8140DLLTOOL=$ac_cv_prog_DLLTOOL
8141if test -n "$DLLTOOL"; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8143$as_echo "$DLLTOOL" >&6; }
8144else
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146$as_echo "no" >&6; }
8147fi
8148
8149
8150 fi
8151 test -n "$ac_cv_prog_DLLTOOL" && break
8152done
8153
8154if test -z "$ac_cv_prog_DLLTOOL" ; then
8155 set dummy dlltool
8156 if test $build = $host ; then
8157 DLLTOOL="$2"
8158 else
8159 DLLTOOL="${ncn_tool_prefix}$2"
8160 fi
8161fi
8162
8163
8164
8165if test -n "$LD"; then
8166 ac_cv_prog_LD=$LD
8167elif test -n "$ac_cv_prog_LD"; then
8168 LD=$ac_cv_prog_LD
8169fi
8170
8171if test -n "$ac_cv_prog_LD"; then
8172 for ncn_progname in ld; do
8173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8174set dummy ${ncn_progname}; ac_word=$2
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176$as_echo_n "checking for $ac_word... " >&6; }
8177if test "${ac_cv_prog_LD+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
8179else
8180 if test -n "$LD"; then
8181 ac_cv_prog_LD="$LD" # Let the user override the test.
8182else
8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184for as_dir in $PATH
8185do
8186 IFS=$as_save_IFS
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190 ac_cv_prog_LD="${ncn_progname}"
8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 break 2
8193 fi
8194done
8195 done
8196IFS=$as_save_IFS
8197
8198fi
8199fi
8200LD=$ac_cv_prog_LD
8201if test -n "$LD"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8203$as_echo "$LD" >&6; }
8204else
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206$as_echo "no" >&6; }
8207fi
8208
8209
8210 done
8211fi
8212
8213for ncn_progname in ld; do
8214 if test -n "$ncn_tool_prefix"; then
8215 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8216set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218$as_echo_n "checking for $ac_word... " >&6; }
8219if test "${ac_cv_prog_LD+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
8221else
8222 if test -n "$LD"; then
8223 ac_cv_prog_LD="$LD" # Let the user override the test.
8224else
8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226for as_dir in $PATH
8227do
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 break 2
8235 fi
8236done
8237 done
8238IFS=$as_save_IFS
8239
8240fi
8241fi
8242LD=$ac_cv_prog_LD
8243if test -n "$LD"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8245$as_echo "$LD" >&6; }
8246else
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248$as_echo "no" >&6; }
8249fi
8250
8251
8252 fi
8253 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8255set dummy ${ncn_progname}; ac_word=$2
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257$as_echo_n "checking for $ac_word... " >&6; }
8258if test "${ac_cv_prog_LD+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8260else
8261 if test -n "$LD"; then
8262 ac_cv_prog_LD="$LD" # Let the user override the test.
8263else
8264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265for as_dir in $PATH
8266do
8267 IFS=$as_save_IFS
8268 test -z "$as_dir" && as_dir=.
8269 for ac_exec_ext in '' $ac_executable_extensions; do
8270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8271 ac_cv_prog_LD="${ncn_progname}"
8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8273 break 2
8274 fi
8275done
8276 done
8277IFS=$as_save_IFS
8278
8279fi
8280fi
8281LD=$ac_cv_prog_LD
8282if test -n "$LD"; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8284$as_echo "$LD" >&6; }
8285else
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287$as_echo "no" >&6; }
8288fi
8289
8290
8291 fi
8292 test -n "$ac_cv_prog_LD" && break
8293done
8294
8295if test -z "$ac_cv_prog_LD" ; then
8296 set dummy ld
8297 if test $build = $host ; then
8298 LD="$2"
8299 else
8300 LD="${ncn_tool_prefix}$2"
8301 fi
8302fi
8303
8304
8305
8306if test -n "$LIPO"; then
8307 ac_cv_prog_LIPO=$LIPO
8308elif test -n "$ac_cv_prog_LIPO"; then
8309 LIPO=$ac_cv_prog_LIPO
8310fi
8311
8312if test -n "$ac_cv_prog_LIPO"; then
8313 for ncn_progname in lipo; do
8314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8315set dummy ${ncn_progname}; ac_word=$2
8316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317$as_echo_n "checking for $ac_word... " >&6; }
8318if test "${ac_cv_prog_LIPO+set}" = set; then :
8319 $as_echo_n "(cached) " >&6
8320else
8321 if test -n "$LIPO"; then
8322 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8323else
8324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325for as_dir in $PATH
8326do
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8331 ac_cv_prog_LIPO="${ncn_progname}"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 break 2
8334 fi
8335done
8336 done
8337IFS=$as_save_IFS
8338
8339fi
8340fi
8341LIPO=$ac_cv_prog_LIPO
8342if test -n "$LIPO"; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8344$as_echo "$LIPO" >&6; }
8345else
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347$as_echo "no" >&6; }
8348fi
8349
8350
8351 done
8352fi
8353
8354for ncn_progname in lipo; do
8355 if test -n "$ncn_tool_prefix"; then
8356 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8357set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359$as_echo_n "checking for $ac_word... " >&6; }
8360if test "${ac_cv_prog_LIPO+set}" = set; then :
8361 $as_echo_n "(cached) " >&6
8362else
8363 if test -n "$LIPO"; then
8364 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8365else
8366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367for as_dir in $PATH
8368do
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8373 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8375 break 2
8376 fi
8377done
8378 done
8379IFS=$as_save_IFS
8380
8381fi
8382fi
8383LIPO=$ac_cv_prog_LIPO
8384if test -n "$LIPO"; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8386$as_echo "$LIPO" >&6; }
8387else
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389$as_echo "no" >&6; }
8390fi
8391
8392
8393 fi
8394 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8396set dummy ${ncn_progname}; ac_word=$2
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398$as_echo_n "checking for $ac_word... " >&6; }
8399if test "${ac_cv_prog_LIPO+set}" = set; then :
8400 $as_echo_n "(cached) " >&6
8401else
8402 if test -n "$LIPO"; then
8403 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8404else
8405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406for as_dir in $PATH
8407do
8408 IFS=$as_save_IFS
8409 test -z "$as_dir" && as_dir=.
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8412 ac_cv_prog_LIPO="${ncn_progname}"
8413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414 break 2
8415 fi
8416done
8417 done
8418IFS=$as_save_IFS
8419
8420fi
8421fi
8422LIPO=$ac_cv_prog_LIPO
8423if test -n "$LIPO"; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8425$as_echo "$LIPO" >&6; }
8426else
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428$as_echo "no" >&6; }
8429fi
8430
8431
8432 fi
8433 test -n "$ac_cv_prog_LIPO" && break
8434done
8435
8436if test -z "$ac_cv_prog_LIPO" ; then
8437 set dummy lipo
8438 if test $build = $host ; then
8439 LIPO="$2"
8440 else
8441 LIPO="${ncn_tool_prefix}$2"
8442 fi
8443fi
8444
8445
8446
8447if test -n "$NM"; then
8448 ac_cv_prog_NM=$NM
8449elif test -n "$ac_cv_prog_NM"; then
8450 NM=$ac_cv_prog_NM
8451fi
8452
8453if test -n "$ac_cv_prog_NM"; then
8454 for ncn_progname in nm; do
8455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8456set dummy ${ncn_progname}; ac_word=$2
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458$as_echo_n "checking for $ac_word... " >&6; }
8459if test "${ac_cv_prog_NM+set}" = set; then :
8460 $as_echo_n "(cached) " >&6
8461else
8462 if test -n "$NM"; then
8463 ac_cv_prog_NM="$NM" # Let the user override the test.
8464else
8465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466for as_dir in $PATH
8467do
8468 IFS=$as_save_IFS
8469 test -z "$as_dir" && as_dir=.
8470 for ac_exec_ext in '' $ac_executable_extensions; do
8471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8472 ac_cv_prog_NM="${ncn_progname}"
8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474 break 2
8475 fi
8476done
8477 done
8478IFS=$as_save_IFS
8479
8480fi
8481fi
8482NM=$ac_cv_prog_NM
8483if test -n "$NM"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8485$as_echo "$NM" >&6; }
8486else
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488$as_echo "no" >&6; }
8489fi
8490
8491
8492 done
8493fi
8494
8495for ncn_progname in nm; do
8496 if test -n "$ncn_tool_prefix"; then
8497 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8498set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500$as_echo_n "checking for $ac_word... " >&6; }
8501if test "${ac_cv_prog_NM+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
8503else
8504 if test -n "$NM"; then
8505 ac_cv_prog_NM="$NM" # Let the user override the test.
8506else
8507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508for as_dir in $PATH
8509do
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8514 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 break 2
8517 fi
8518done
8519 done
8520IFS=$as_save_IFS
8521
8522fi
8523fi
8524NM=$ac_cv_prog_NM
8525if test -n "$NM"; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8527$as_echo "$NM" >&6; }
8528else
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530$as_echo "no" >&6; }
8531fi
8532
8533
8534 fi
8535 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8537set dummy ${ncn_progname}; ac_word=$2
8538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539$as_echo_n "checking for $ac_word... " >&6; }
8540if test "${ac_cv_prog_NM+set}" = set; then :
8541 $as_echo_n "(cached) " >&6
8542else
8543 if test -n "$NM"; then
8544 ac_cv_prog_NM="$NM" # Let the user override the test.
8545else
8546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547for as_dir in $PATH
8548do
8549 IFS=$as_save_IFS
8550 test -z "$as_dir" && as_dir=.
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8553 ac_cv_prog_NM="${ncn_progname}"
8554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555 break 2
8556 fi
8557done
8558 done
8559IFS=$as_save_IFS
8560
8561fi
8562fi
8563NM=$ac_cv_prog_NM
8564if test -n "$NM"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8566$as_echo "$NM" >&6; }
8567else
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569$as_echo "no" >&6; }
8570fi
8571
8572
8573 fi
8574 test -n "$ac_cv_prog_NM" && break
8575done
8576
8577if test -z "$ac_cv_prog_NM" ; then
8578 set dummy nm
8579 if test $build = $host ; then
8580 NM="$2"
8581 else
8582 NM="${ncn_tool_prefix}$2"
8583 fi
8584fi
8585
8586
8587
8588if test -n "$RANLIB"; then
8589 ac_cv_prog_RANLIB=$RANLIB
8590elif test -n "$ac_cv_prog_RANLIB"; then
8591 RANLIB=$ac_cv_prog_RANLIB
8592fi
8593
8594if test -n "$ac_cv_prog_RANLIB"; then
8595 for ncn_progname in ranlib; do
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_RANLIB+set}" = set; then :
8601 $as_echo_n "(cached) " >&6
8602else
8603 if test -n "$RANLIB"; then
8604 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${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
8623RANLIB=$ac_cv_prog_RANLIB
8624if test -n "$RANLIB"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8626$as_echo "$RANLIB" >&6; }
8627else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629$as_echo "no" >&6; }
8630fi
8631
8632
8633 done
8634fi
8635
8636for ncn_progname in ranlib; do
8637 if test -n "$ncn_tool_prefix"; then
8638 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8639set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641$as_echo_n "checking for $ac_word... " >&6; }
8642if test "${ac_cv_prog_RANLIB+set}" = set; then :
8643 $as_echo_n "(cached) " >&6
8644else
8645 if test -n "$RANLIB"; then
8646 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8647else
8648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649for as_dir in $PATH
8650do
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8655 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8657 break 2
8658 fi
8659done
8660 done
8661IFS=$as_save_IFS
8662
8663fi
8664fi
8665RANLIB=$ac_cv_prog_RANLIB
8666if test -n "$RANLIB"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8668$as_echo "$RANLIB" >&6; }
8669else
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671$as_echo "no" >&6; }
8672fi
8673
8674
8675 fi
8676 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8678set dummy ${ncn_progname}; ac_word=$2
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680$as_echo_n "checking for $ac_word... " >&6; }
8681if test "${ac_cv_prog_RANLIB+set}" = set; then :
8682 $as_echo_n "(cached) " >&6
8683else
8684 if test -n "$RANLIB"; then
8685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8686else
8687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688for as_dir in $PATH
8689do
8690 IFS=$as_save_IFS
8691 test -z "$as_dir" && as_dir=.
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8694 ac_cv_prog_RANLIB="${ncn_progname}"
8695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8696 break 2
8697 fi
8698done
8699 done
8700IFS=$as_save_IFS
8701
8702fi
8703fi
8704RANLIB=$ac_cv_prog_RANLIB
8705if test -n "$RANLIB"; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8707$as_echo "$RANLIB" >&6; }
8708else
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710$as_echo "no" >&6; }
8711fi
8712
8713
8714 fi
8715 test -n "$ac_cv_prog_RANLIB" && break
8716done
8717
8718if test -z "$ac_cv_prog_RANLIB" ; then
8719 RANLIB="true"
8720fi
8721
8722
8723
8724if test -n "$STRIP"; then
8725 ac_cv_prog_STRIP=$STRIP
8726elif test -n "$ac_cv_prog_STRIP"; then
8727 STRIP=$ac_cv_prog_STRIP
8728fi
8729
8730if test -n "$ac_cv_prog_STRIP"; then
8731 for ncn_progname in strip; do
8732 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8733set dummy ${ncn_progname}; ac_word=$2
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735$as_echo_n "checking for $ac_word... " >&6; }
8736if test "${ac_cv_prog_STRIP+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
8738else
8739 if test -n "$STRIP"; then
8740 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8741else
8742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743for as_dir in $PATH
8744do
8745 IFS=$as_save_IFS
8746 test -z "$as_dir" && as_dir=.
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8749 ac_cv_prog_STRIP="${ncn_progname}"
8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751 break 2
8752 fi
8753done
8754 done
8755IFS=$as_save_IFS
8756
8757fi
8758fi
8759STRIP=$ac_cv_prog_STRIP
8760if test -n "$STRIP"; then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8762$as_echo "$STRIP" >&6; }
8763else
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765$as_echo "no" >&6; }
8766fi
8767
8768
8769 done
8770fi
8771
8772for ncn_progname in strip; do
8773 if test -n "$ncn_tool_prefix"; then
8774 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8775set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777$as_echo_n "checking for $ac_word... " >&6; }
8778if test "${ac_cv_prog_STRIP+set}" = set; then :
8779 $as_echo_n "(cached) " >&6
8780else
8781 if test -n "$STRIP"; then
8782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8783else
8784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785for as_dir in $PATH
8786do
8787 IFS=$as_save_IFS
8788 test -z "$as_dir" && as_dir=.
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8791 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8793 break 2
8794 fi
8795done
8796 done
8797IFS=$as_save_IFS
8798
8799fi
8800fi
8801STRIP=$ac_cv_prog_STRIP
8802if test -n "$STRIP"; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8804$as_echo "$STRIP" >&6; }
8805else
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807$as_echo "no" >&6; }
8808fi
8809
8810
8811 fi
8812 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8814set dummy ${ncn_progname}; ac_word=$2
8815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8816$as_echo_n "checking for $ac_word... " >&6; }
8817if test "${ac_cv_prog_STRIP+set}" = set; then :
8818 $as_echo_n "(cached) " >&6
8819else
8820 if test -n "$STRIP"; then
8821 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8822else
8823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824for as_dir in $PATH
8825do
8826 IFS=$as_save_IFS
8827 test -z "$as_dir" && as_dir=.
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8830 ac_cv_prog_STRIP="${ncn_progname}"
8831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 break 2
8833 fi
8834done
8835 done
8836IFS=$as_save_IFS
8837
8838fi
8839fi
8840STRIP=$ac_cv_prog_STRIP
8841if test -n "$STRIP"; then
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8843$as_echo "$STRIP" >&6; }
8844else
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846$as_echo "no" >&6; }
8847fi
8848
8849
8850 fi
8851 test -n "$ac_cv_prog_STRIP" && break
8852done
8853
8854if test -z "$ac_cv_prog_STRIP" ; then
8855 STRIP="true"
8856fi
8857
8858
8859
8860if test -n "$WINDRES"; then
8861 ac_cv_prog_WINDRES=$WINDRES
8862elif test -n "$ac_cv_prog_WINDRES"; then
8863 WINDRES=$ac_cv_prog_WINDRES
8864fi
8865
8866if test -n "$ac_cv_prog_WINDRES"; then
8867 for ncn_progname in windres; do
8868 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8869set dummy ${ncn_progname}; ac_word=$2
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871$as_echo_n "checking for $ac_word... " >&6; }
8872if test "${ac_cv_prog_WINDRES+set}" = set; then :
8873 $as_echo_n "(cached) " >&6
8874else
8875 if test -n "$WINDRES"; then
8876 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8877else
8878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8879for as_dir in $PATH
8880do
8881 IFS=$as_save_IFS
8882 test -z "$as_dir" && as_dir=.
8883 for ac_exec_ext in '' $ac_executable_extensions; do
8884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8885 ac_cv_prog_WINDRES="${ncn_progname}"
8886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8887 break 2
8888 fi
8889done
8890 done
8891IFS=$as_save_IFS
8892
8893fi
8894fi
8895WINDRES=$ac_cv_prog_WINDRES
8896if test -n "$WINDRES"; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8898$as_echo "$WINDRES" >&6; }
8899else
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901$as_echo "no" >&6; }
8902fi
8903
8904
8905 done
8906fi
8907
8908for ncn_progname in windres; do
8909 if test -n "$ncn_tool_prefix"; then
8910 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8911set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8913$as_echo_n "checking for $ac_word... " >&6; }
8914if test "${ac_cv_prog_WINDRES+set}" = set; then :
8915 $as_echo_n "(cached) " >&6
8916else
8917 if test -n "$WINDRES"; then
8918 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8919else
8920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8921for as_dir in $PATH
8922do
8923 IFS=$as_save_IFS
8924 test -z "$as_dir" && as_dir=.
8925 for ac_exec_ext in '' $ac_executable_extensions; do
8926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8927 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8929 break 2
8930 fi
8931done
8932 done
8933IFS=$as_save_IFS
8934
8935fi
8936fi
8937WINDRES=$ac_cv_prog_WINDRES
8938if test -n "$WINDRES"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8940$as_echo "$WINDRES" >&6; }
8941else
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943$as_echo "no" >&6; }
8944fi
8945
8946
8947 fi
8948 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8950set dummy ${ncn_progname}; ac_word=$2
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952$as_echo_n "checking for $ac_word... " >&6; }
8953if test "${ac_cv_prog_WINDRES+set}" = set; then :
8954 $as_echo_n "(cached) " >&6
8955else
8956 if test -n "$WINDRES"; then
8957 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8958else
8959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8960for as_dir in $PATH
8961do
8962 IFS=$as_save_IFS
8963 test -z "$as_dir" && as_dir=.
8964 for ac_exec_ext in '' $ac_executable_extensions; do
8965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8966 ac_cv_prog_WINDRES="${ncn_progname}"
8967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8968 break 2
8969 fi
8970done
8971 done
8972IFS=$as_save_IFS
8973
8974fi
8975fi
8976WINDRES=$ac_cv_prog_WINDRES
8977if test -n "$WINDRES"; then
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8979$as_echo "$WINDRES" >&6; }
8980else
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982$as_echo "no" >&6; }
8983fi
8984
8985
8986 fi
8987 test -n "$ac_cv_prog_WINDRES" && break
8988done
8989
8990if test -z "$ac_cv_prog_WINDRES" ; then
8991 set dummy windres
8992 if test $build = $host ; then
8993 WINDRES="$2"
8994 else
8995 WINDRES="${ncn_tool_prefix}$2"
8996 fi
8997fi
8998
8999
9000
9001if test -n "$WINDMC"; then
9002 ac_cv_prog_WINDMC=$WINDMC
9003elif test -n "$ac_cv_prog_WINDMC"; then
9004 WINDMC=$ac_cv_prog_WINDMC
9005fi
9006
9007if test -n "$ac_cv_prog_WINDMC"; then
9008 for ncn_progname in windmc; do
9009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9010set dummy ${ncn_progname}; ac_word=$2
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012$as_echo_n "checking for $ac_word... " >&6; }
9013if test "${ac_cv_prog_WINDMC+set}" = set; then :
9014 $as_echo_n "(cached) " >&6
9015else
9016 if test -n "$WINDMC"; then
9017 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9018else
9019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020for as_dir in $PATH
9021do
9022 IFS=$as_save_IFS
9023 test -z "$as_dir" && as_dir=.
9024 for ac_exec_ext in '' $ac_executable_extensions; do
9025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9026 ac_cv_prog_WINDMC="${ncn_progname}"
9027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9028 break 2
9029 fi
9030done
9031 done
9032IFS=$as_save_IFS
9033
9034fi
9035fi
9036WINDMC=$ac_cv_prog_WINDMC
9037if test -n "$WINDMC"; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9039$as_echo "$WINDMC" >&6; }
9040else
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042$as_echo "no" >&6; }
9043fi
9044
9045
9046 done
9047fi
9048
9049for ncn_progname in windmc; do
9050 if test -n "$ncn_tool_prefix"; then
9051 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9052set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9054$as_echo_n "checking for $ac_word... " >&6; }
9055if test "${ac_cv_prog_WINDMC+set}" = set; then :
9056 $as_echo_n "(cached) " >&6
9057else
9058 if test -n "$WINDMC"; then
9059 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9060else
9061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062for as_dir in $PATH
9063do
9064 IFS=$as_save_IFS
9065 test -z "$as_dir" && as_dir=.
9066 for ac_exec_ext in '' $ac_executable_extensions; do
9067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9068 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9070 break 2
9071 fi
9072done
9073 done
9074IFS=$as_save_IFS
9075
9076fi
9077fi
9078WINDMC=$ac_cv_prog_WINDMC
9079if test -n "$WINDMC"; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9081$as_echo "$WINDMC" >&6; }
9082else
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084$as_echo "no" >&6; }
9085fi
9086
9087
9088 fi
9089 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9091set dummy ${ncn_progname}; ac_word=$2
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9093$as_echo_n "checking for $ac_word... " >&6; }
9094if test "${ac_cv_prog_WINDMC+set}" = set; then :
9095 $as_echo_n "(cached) " >&6
9096else
9097 if test -n "$WINDMC"; then
9098 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9099else
9100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101for as_dir in $PATH
9102do
9103 IFS=$as_save_IFS
9104 test -z "$as_dir" && as_dir=.
9105 for ac_exec_ext in '' $ac_executable_extensions; do
9106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9107 ac_cv_prog_WINDMC="${ncn_progname}"
9108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9109 break 2
9110 fi
9111done
9112 done
9113IFS=$as_save_IFS
9114
9115fi
9116fi
9117WINDMC=$ac_cv_prog_WINDMC
9118if test -n "$WINDMC"; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9120$as_echo "$WINDMC" >&6; }
9121else
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123$as_echo "no" >&6; }
9124fi
9125
9126
9127 fi
9128 test -n "$ac_cv_prog_WINDMC" && break
9129done
9130
9131if test -z "$ac_cv_prog_WINDMC" ; then
9132 set dummy windmc
9133 if test $build = $host ; then
9134 WINDMC="$2"
9135 else
9136 WINDMC="${ncn_tool_prefix}$2"
9137 fi
9138fi
9139
9140
9141
9142if test -n "$OBJCOPY"; then
9143 ac_cv_prog_OBJCOPY=$OBJCOPY
9144elif test -n "$ac_cv_prog_OBJCOPY"; then
9145 OBJCOPY=$ac_cv_prog_OBJCOPY
9146fi
9147
9148if test -n "$ac_cv_prog_OBJCOPY"; then
9149 for ncn_progname in objcopy; do
9150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9151set dummy ${ncn_progname}; ac_word=$2
9152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9153$as_echo_n "checking for $ac_word... " >&6; }
9154if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
9156else
9157 if test -n "$OBJCOPY"; then
9158 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9159else
9160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161for as_dir in $PATH
9162do
9163 IFS=$as_save_IFS
9164 test -z "$as_dir" && as_dir=.
9165 for ac_exec_ext in '' $ac_executable_extensions; do
9166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9167 ac_cv_prog_OBJCOPY="${ncn_progname}"
9168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9169 break 2
9170 fi
9171done
9172 done
9173IFS=$as_save_IFS
9174
9175fi
9176fi
9177OBJCOPY=$ac_cv_prog_OBJCOPY
9178if test -n "$OBJCOPY"; then
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9180$as_echo "$OBJCOPY" >&6; }
9181else
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9183$as_echo "no" >&6; }
9184fi
9185
9186
9187 done
9188fi
9189
9190for ncn_progname in objcopy; do
9191 if test -n "$ncn_tool_prefix"; then
9192 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9193set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9195$as_echo_n "checking for $ac_word... " >&6; }
9196if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9198else
9199 if test -n "$OBJCOPY"; then
9200 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9201else
9202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9203for as_dir in $PATH
9204do
9205 IFS=$as_save_IFS
9206 test -z "$as_dir" && as_dir=.
9207 for ac_exec_ext in '' $ac_executable_extensions; do
9208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9209 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9211 break 2
9212 fi
9213done
9214 done
9215IFS=$as_save_IFS
9216
9217fi
9218fi
9219OBJCOPY=$ac_cv_prog_OBJCOPY
9220if test -n "$OBJCOPY"; then
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9222$as_echo "$OBJCOPY" >&6; }
9223else
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9225$as_echo "no" >&6; }
9226fi
9227
9228
9229 fi
9230 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9232set dummy ${ncn_progname}; ac_word=$2
9233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9234$as_echo_n "checking for $ac_word... " >&6; }
9235if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9237else
9238 if test -n "$OBJCOPY"; then
9239 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9240else
9241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9242for as_dir in $PATH
9243do
9244 IFS=$as_save_IFS
9245 test -z "$as_dir" && as_dir=.
9246 for ac_exec_ext in '' $ac_executable_extensions; do
9247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9248 ac_cv_prog_OBJCOPY="${ncn_progname}"
9249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9250 break 2
9251 fi
9252done
9253 done
9254IFS=$as_save_IFS
9255
9256fi
9257fi
9258OBJCOPY=$ac_cv_prog_OBJCOPY
9259if test -n "$OBJCOPY"; then
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9261$as_echo "$OBJCOPY" >&6; }
9262else
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9264$as_echo "no" >&6; }
9265fi
9266
9267
9268 fi
9269 test -n "$ac_cv_prog_OBJCOPY" && break
9270done
9271
9272if test -z "$ac_cv_prog_OBJCOPY" ; then
9273 set dummy objcopy
9274 if test $build = $host ; then
9275 OBJCOPY="$2"
9276 else
9277 OBJCOPY="${ncn_tool_prefix}$2"
9278 fi
9279fi
9280
9281
9282
9283if test -n "$OBJDUMP"; then
9284 ac_cv_prog_OBJDUMP=$OBJDUMP
9285elif test -n "$ac_cv_prog_OBJDUMP"; then
9286 OBJDUMP=$ac_cv_prog_OBJDUMP
9287fi
9288
9289if test -n "$ac_cv_prog_OBJDUMP"; then
9290 for ncn_progname in objdump; do
9291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9292set dummy ${ncn_progname}; ac_word=$2
9293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294$as_echo_n "checking for $ac_word... " >&6; }
9295if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9296 $as_echo_n "(cached) " >&6
9297else
9298 if test -n "$OBJDUMP"; then
9299 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9300else
9301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302for as_dir in $PATH
9303do
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9308 ac_cv_prog_OBJDUMP="${ncn_progname}"
9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9310 break 2
9311 fi
9312done
9313 done
9314IFS=$as_save_IFS
9315
9316fi
9317fi
9318OBJDUMP=$ac_cv_prog_OBJDUMP
9319if test -n "$OBJDUMP"; then
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9321$as_echo "$OBJDUMP" >&6; }
9322else
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324$as_echo "no" >&6; }
9325fi
9326
9327
9328 done
9329fi
9330
9331for ncn_progname in objdump; do
9332 if test -n "$ncn_tool_prefix"; then
9333 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9334set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336$as_echo_n "checking for $ac_word... " >&6; }
9337if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9338 $as_echo_n "(cached) " >&6
9339else
9340 if test -n "$OBJDUMP"; then
9341 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9342else
9343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344for as_dir in $PATH
9345do
9346 IFS=$as_save_IFS
9347 test -z "$as_dir" && as_dir=.
9348 for ac_exec_ext in '' $ac_executable_extensions; do
9349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9350 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9352 break 2
9353 fi
9354done
9355 done
9356IFS=$as_save_IFS
9357
9358fi
9359fi
9360OBJDUMP=$ac_cv_prog_OBJDUMP
9361if test -n "$OBJDUMP"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9363$as_echo "$OBJDUMP" >&6; }
9364else
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366$as_echo "no" >&6; }
9367fi
9368
9369
9370 fi
9371 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9373set dummy ${ncn_progname}; ac_word=$2
9374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9375$as_echo_n "checking for $ac_word... " >&6; }
9376if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9377 $as_echo_n "(cached) " >&6
9378else
9379 if test -n "$OBJDUMP"; then
9380 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9381else
9382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383for as_dir in $PATH
9384do
9385 IFS=$as_save_IFS
9386 test -z "$as_dir" && as_dir=.
9387 for ac_exec_ext in '' $ac_executable_extensions; do
9388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9389 ac_cv_prog_OBJDUMP="${ncn_progname}"
9390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9391 break 2
9392 fi
9393done
9394 done
9395IFS=$as_save_IFS
9396
9397fi
9398fi
9399OBJDUMP=$ac_cv_prog_OBJDUMP
9400if test -n "$OBJDUMP"; then
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9402$as_echo "$OBJDUMP" >&6; }
9403else
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405$as_echo "no" >&6; }
9406fi
9407
9408
9409 fi
9410 test -n "$ac_cv_prog_OBJDUMP" && break
9411done
9412
9413if test -z "$ac_cv_prog_OBJDUMP" ; then
9414 set dummy objdump
9415 if test $build = $host ; then
9416 OBJDUMP="$2"
9417 else
9418 OBJDUMP="${ncn_tool_prefix}$2"
9419 fi
9420fi
9421
9422
9423
9424if test -n "$READELF"; then
9425 ac_cv_prog_READELF=$READELF
9426elif test -n "$ac_cv_prog_READELF"; then
9427 READELF=$ac_cv_prog_READELF
9428fi
9429
9430if test -n "$ac_cv_prog_READELF"; then
9431 for ncn_progname in readelf; do
9432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9433set dummy ${ncn_progname}; ac_word=$2
9434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9435$as_echo_n "checking for $ac_word... " >&6; }
9436if test "${ac_cv_prog_READELF+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
9438else
9439 if test -n "$READELF"; then
9440 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9441else
9442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9443for as_dir in $PATH
9444do
9445 IFS=$as_save_IFS
9446 test -z "$as_dir" && as_dir=.
9447 for ac_exec_ext in '' $ac_executable_extensions; do
9448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9449 ac_cv_prog_READELF="${ncn_progname}"
9450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9451 break 2
9452 fi
9453done
9454 done
9455IFS=$as_save_IFS
9456
9457fi
9458fi
9459READELF=$ac_cv_prog_READELF
9460if test -n "$READELF"; then
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9462$as_echo "$READELF" >&6; }
9463else
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465$as_echo "no" >&6; }
9466fi
9467
9468
9469 done
9470fi
9471
9472for ncn_progname in readelf; do
9473 if test -n "$ncn_tool_prefix"; then
9474 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9475set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477$as_echo_n "checking for $ac_word... " >&6; }
9478if test "${ac_cv_prog_READELF+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9480else
9481 if test -n "$READELF"; then
9482 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9483else
9484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9485for as_dir in $PATH
9486do
9487 IFS=$as_save_IFS
9488 test -z "$as_dir" && as_dir=.
9489 for ac_exec_ext in '' $ac_executable_extensions; do
9490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9491 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9493 break 2
9494 fi
9495done
9496 done
9497IFS=$as_save_IFS
9498
9499fi
9500fi
9501READELF=$ac_cv_prog_READELF
9502if test -n "$READELF"; then
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9504$as_echo "$READELF" >&6; }
9505else
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507$as_echo "no" >&6; }
9508fi
9509
9510
9511 fi
9512 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9514set dummy ${ncn_progname}; ac_word=$2
9515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9516$as_echo_n "checking for $ac_word... " >&6; }
9517if test "${ac_cv_prog_READELF+set}" = set; then :
9518 $as_echo_n "(cached) " >&6
9519else
9520 if test -n "$READELF"; then
9521 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9522else
9523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9524for as_dir in $PATH
9525do
9526 IFS=$as_save_IFS
9527 test -z "$as_dir" && as_dir=.
9528 for ac_exec_ext in '' $ac_executable_extensions; do
9529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9530 ac_cv_prog_READELF="${ncn_progname}"
9531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9532 break 2
9533 fi
9534done
9535 done
9536IFS=$as_save_IFS
9537
9538fi
9539fi
9540READELF=$ac_cv_prog_READELF
9541if test -n "$READELF"; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9543$as_echo "$READELF" >&6; }
9544else
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9546$as_echo "no" >&6; }
9547fi
9548
9549
9550 fi
9551 test -n "$ac_cv_prog_READELF" && break
9552done
9553
9554if test -z "$ac_cv_prog_READELF" ; then
9555 set dummy readelf
9556 if test $build = $host ; then
9557 READELF="$2"
9558 else
9559 READELF="${ncn_tool_prefix}$2"
9560 fi
9561fi
9562
9563
9564
9565
9566
9567
9568# Target tools.
9569
9570# Check whether --with-build-time-tools was given.
9571if test "${with_build_time_tools+set}" = set; then :
9572 withval=$with_build_time_tools; case x"$withval" in
9573 x/*) ;;
9574 *)
9575 with_build_time_tools=
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9577$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9578 ;;
9579 esac
9580else
9581 with_build_time_tools=
9582fi
9583
9584
9585
9586
9587if test -n "$CC_FOR_TARGET"; then
9588 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9589elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9590 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9591fi
9592
9593if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9594 for ncn_progname in cc gcc; do
9595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9596set dummy ${ncn_progname}; ac_word=$2
9597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598$as_echo_n "checking for $ac_word... " >&6; }
9599if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9600 $as_echo_n "(cached) " >&6
9601else
9602 if test -n "$CC_FOR_TARGET"; then
9603 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9604else
9605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606for as_dir in $PATH
9607do
9608 IFS=$as_save_IFS
9609 test -z "$as_dir" && as_dir=.
9610 for ac_exec_ext in '' $ac_executable_extensions; do
9611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9612 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9614 break 2
9615 fi
9616done
9617 done
9618IFS=$as_save_IFS
9619
9620fi
9621fi
9622CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9623if test -n "$CC_FOR_TARGET"; then
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9625$as_echo "$CC_FOR_TARGET" >&6; }
9626else
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628$as_echo "no" >&6; }
9629fi
9630
9631
9632 done
9633fi
9634
9635if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9636 for ncn_progname in cc gcc; do
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9638$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9639 if test -x $with_build_time_tools/${ncn_progname}; then
9640 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9642$as_echo "yes" >&6; }
9643 break
9644 else
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9646$as_echo "no" >&6; }
9647 fi
9648 done
9649fi
9650
9651if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9652 for ncn_progname in cc gcc; do
9653 if test -n "$ncn_target_tool_prefix"; then
9654 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9655set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657$as_echo_n "checking for $ac_word... " >&6; }
9658if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9660else
9661 if test -n "$CC_FOR_TARGET"; then
9662 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9663else
9664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665for as_dir in $PATH
9666do
9667 IFS=$as_save_IFS
9668 test -z "$as_dir" && as_dir=.
9669 for ac_exec_ext in '' $ac_executable_extensions; do
9670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9671 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9673 break 2
9674 fi
9675done
9676 done
9677IFS=$as_save_IFS
9678
9679fi
9680fi
9681CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9682if test -n "$CC_FOR_TARGET"; then
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9684$as_echo "$CC_FOR_TARGET" >&6; }
9685else
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687$as_echo "no" >&6; }
9688fi
9689
9690
9691 fi
9692 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9694set dummy ${ncn_progname}; ac_word=$2
9695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9696$as_echo_n "checking for $ac_word... " >&6; }
9697if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9698 $as_echo_n "(cached) " >&6
9699else
9700 if test -n "$CC_FOR_TARGET"; then
9701 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9702else
9703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9704for as_dir in $PATH
9705do
9706 IFS=$as_save_IFS
9707 test -z "$as_dir" && as_dir=.
9708 for ac_exec_ext in '' $ac_executable_extensions; do
9709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9710 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9712 break 2
9713 fi
9714done
9715 done
9716IFS=$as_save_IFS
9717
9718fi
9719fi
9720CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9721if test -n "$CC_FOR_TARGET"; then
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9723$as_echo "$CC_FOR_TARGET" >&6; }
9724else
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9726$as_echo "no" >&6; }
9727fi
9728
9729
9730 fi
9731 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9732 done
9733fi
9734
9735if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9736 set dummy cc gcc
9737 if test $build = $target ; then
9738 CC_FOR_TARGET="$2"
9739 else
9740 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9741 fi
9742else
9743 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9744fi
9745
9746
9747
9748if test -n "$CXX_FOR_TARGET"; then
9749 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9750elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9751 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9752fi
9753
9754if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9755 for ncn_progname in c++ g++ cxx gxx; do
9756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9757set dummy ${ncn_progname}; ac_word=$2
9758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759$as_echo_n "checking for $ac_word... " >&6; }
9760if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9761 $as_echo_n "(cached) " >&6
9762else
9763 if test -n "$CXX_FOR_TARGET"; then
9764 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9765else
9766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767for as_dir in $PATH
9768do
9769 IFS=$as_save_IFS
9770 test -z "$as_dir" && as_dir=.
9771 for ac_exec_ext in '' $ac_executable_extensions; do
9772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9773 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9775 break 2
9776 fi
9777done
9778 done
9779IFS=$as_save_IFS
9780
9781fi
9782fi
9783CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9784if test -n "$CXX_FOR_TARGET"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9786$as_echo "$CXX_FOR_TARGET" >&6; }
9787else
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789$as_echo "no" >&6; }
9790fi
9791
9792
9793 done
9794fi
9795
9796if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9797 for ncn_progname in c++ g++ cxx gxx; do
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9799$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9800 if test -x $with_build_time_tools/${ncn_progname}; then
9801 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9803$as_echo "yes" >&6; }
9804 break
9805 else
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807$as_echo "no" >&6; }
9808 fi
9809 done
9810fi
9811
9812if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9813 for ncn_progname in c++ g++ cxx gxx; do
9814 if test -n "$ncn_target_tool_prefix"; then
9815 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9816set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9818$as_echo_n "checking for $ac_word... " >&6; }
9819if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
9821else
9822 if test -n "$CXX_FOR_TARGET"; then
9823 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9824else
9825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826for as_dir in $PATH
9827do
9828 IFS=$as_save_IFS
9829 test -z "$as_dir" && as_dir=.
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9832 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9834 break 2
9835 fi
9836done
9837 done
9838IFS=$as_save_IFS
9839
9840fi
9841fi
9842CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9843if test -n "$CXX_FOR_TARGET"; then
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9845$as_echo "$CXX_FOR_TARGET" >&6; }
9846else
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848$as_echo "no" >&6; }
9849fi
9850
9851
9852 fi
9853 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9855set dummy ${ncn_progname}; ac_word=$2
9856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857$as_echo_n "checking for $ac_word... " >&6; }
9858if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9859 $as_echo_n "(cached) " >&6
9860else
9861 if test -n "$CXX_FOR_TARGET"; then
9862 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9863else
9864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865for as_dir in $PATH
9866do
9867 IFS=$as_save_IFS
9868 test -z "$as_dir" && as_dir=.
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9871 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9873 break 2
9874 fi
9875done
9876 done
9877IFS=$as_save_IFS
9878
9879fi
9880fi
9881CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9882if test -n "$CXX_FOR_TARGET"; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9884$as_echo "$CXX_FOR_TARGET" >&6; }
9885else
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887$as_echo "no" >&6; }
9888fi
9889
9890
9891 fi
9892 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9893 done
9894fi
9895
9896if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9897 set dummy c++ g++ cxx gxx
9898 if test $build = $target ; then
9899 CXX_FOR_TARGET="$2"
9900 else
9901 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9902 fi
9903else
9904 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9905fi
9906
9907
9908
9909if test -n "$GCC_FOR_TARGET"; then
9910 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9911elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9912 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9913fi
9914
9915if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9916 for ncn_progname in gcc; do
9917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9918set dummy ${ncn_progname}; ac_word=$2
9919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9920$as_echo_n "checking for $ac_word... " >&6; }
9921if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9922 $as_echo_n "(cached) " >&6
9923else
9924 if test -n "$GCC_FOR_TARGET"; then
9925 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9926else
9927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9928for as_dir in $PATH
9929do
9930 IFS=$as_save_IFS
9931 test -z "$as_dir" && as_dir=.
9932 for ac_exec_ext in '' $ac_executable_extensions; do
9933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9934 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9936 break 2
9937 fi
9938done
9939 done
9940IFS=$as_save_IFS
9941
9942fi
9943fi
9944GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9945if test -n "$GCC_FOR_TARGET"; then
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9947$as_echo "$GCC_FOR_TARGET" >&6; }
9948else
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950$as_echo "no" >&6; }
9951fi
9952
9953
9954 done
9955fi
9956
9957if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9958 for ncn_progname in gcc; do
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9960$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9961 if test -x $with_build_time_tools/${ncn_progname}; then
9962 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9964$as_echo "yes" >&6; }
9965 break
9966 else
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968$as_echo "no" >&6; }
9969 fi
9970 done
9971fi
9972
9973if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9974 for ncn_progname in gcc; do
9975 if test -n "$ncn_target_tool_prefix"; then
9976 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9977set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9979$as_echo_n "checking for $ac_word... " >&6; }
9980if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9981 $as_echo_n "(cached) " >&6
9982else
9983 if test -n "$GCC_FOR_TARGET"; then
9984 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9985else
9986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9987for as_dir in $PATH
9988do
9989 IFS=$as_save_IFS
9990 test -z "$as_dir" && as_dir=.
9991 for ac_exec_ext in '' $ac_executable_extensions; do
9992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9993 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9995 break 2
9996 fi
9997done
9998 done
9999IFS=$as_save_IFS
10000
10001fi
10002fi
10003GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10004if test -n "$GCC_FOR_TARGET"; then
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10006$as_echo "$GCC_FOR_TARGET" >&6; }
10007else
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009$as_echo "no" >&6; }
10010fi
10011
10012
10013 fi
10014 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10016set dummy ${ncn_progname}; ac_word=$2
10017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018$as_echo_n "checking for $ac_word... " >&6; }
10019if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10020 $as_echo_n "(cached) " >&6
10021else
10022 if test -n "$GCC_FOR_TARGET"; then
10023 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10024else
10025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026for as_dir in $PATH
10027do
10028 IFS=$as_save_IFS
10029 test -z "$as_dir" && as_dir=.
10030 for ac_exec_ext in '' $ac_executable_extensions; do
10031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10032 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10034 break 2
10035 fi
10036done
10037 done
10038IFS=$as_save_IFS
10039
10040fi
10041fi
10042GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10043if test -n "$GCC_FOR_TARGET"; then
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10045$as_echo "$GCC_FOR_TARGET" >&6; }
10046else
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048$as_echo "no" >&6; }
10049fi
10050
10051
10052 fi
10053 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10054 done
10055fi
10056
10057if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10058 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10059else
10060 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10061fi
10062
10063
10064
10065if test -n "$GCJ_FOR_TARGET"; then
10066 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10067elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10068 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10069fi
10070
10071if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10072 for ncn_progname in gcj; do
10073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10074set dummy ${ncn_progname}; ac_word=$2
10075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076$as_echo_n "checking for $ac_word... " >&6; }
10077if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10078 $as_echo_n "(cached) " >&6
10079else
10080 if test -n "$GCJ_FOR_TARGET"; then
10081 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10082else
10083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $PATH
10085do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10090 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10092 break 2
10093 fi
10094done
10095 done
10096IFS=$as_save_IFS
10097
10098fi
10099fi
10100GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10101if test -n "$GCJ_FOR_TARGET"; then
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10103$as_echo "$GCJ_FOR_TARGET" >&6; }
10104else
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106$as_echo "no" >&6; }
10107fi
10108
10109
10110 done
10111fi
10112
10113if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10114 for ncn_progname in gcj; do
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10116$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10117 if test -x $with_build_time_tools/${ncn_progname}; then
10118 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10120$as_echo "yes" >&6; }
10121 break
10122 else
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124$as_echo "no" >&6; }
10125 fi
10126 done
10127fi
10128
10129if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10130 for ncn_progname in gcj; do
10131 if test -n "$ncn_target_tool_prefix"; then
10132 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10133set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10135$as_echo_n "checking for $ac_word... " >&6; }
10136if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10137 $as_echo_n "(cached) " >&6
10138else
10139 if test -n "$GCJ_FOR_TARGET"; then
10140 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10141else
10142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10143for as_dir in $PATH
10144do
10145 IFS=$as_save_IFS
10146 test -z "$as_dir" && as_dir=.
10147 for ac_exec_ext in '' $ac_executable_extensions; do
10148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10149 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10151 break 2
10152 fi
10153done
10154 done
10155IFS=$as_save_IFS
10156
10157fi
10158fi
10159GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10160if test -n "$GCJ_FOR_TARGET"; then
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10162$as_echo "$GCJ_FOR_TARGET" >&6; }
10163else
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165$as_echo "no" >&6; }
10166fi
10167
10168
10169 fi
10170 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10172set dummy ${ncn_progname}; ac_word=$2
10173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174$as_echo_n "checking for $ac_word... " >&6; }
10175if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
10177else
10178 if test -n "$GCJ_FOR_TARGET"; then
10179 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10180else
10181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182for as_dir in $PATH
10183do
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10188 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 break 2
10191 fi
10192done
10193 done
10194IFS=$as_save_IFS
10195
10196fi
10197fi
10198GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10199if test -n "$GCJ_FOR_TARGET"; then
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10201$as_echo "$GCJ_FOR_TARGET" >&6; }
10202else
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204$as_echo "no" >&6; }
10205fi
10206
10207
10208 fi
10209 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10210 done
10211fi
10212
10213if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10214 set dummy gcj
10215 if test $build = $target ; then
10216 GCJ_FOR_TARGET="$2"
10217 else
10218 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10219 fi
10220else
10221 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10222fi
10223
10224
10225
10226if test -n "$GFORTRAN_FOR_TARGET"; then
10227 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10228elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10229 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10230fi
10231
10232if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10233 for ncn_progname in gfortran; do
10234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10235set dummy ${ncn_progname}; ac_word=$2
10236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237$as_echo_n "checking for $ac_word... " >&6; }
10238if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10239 $as_echo_n "(cached) " >&6
10240else
10241 if test -n "$GFORTRAN_FOR_TARGET"; then
10242 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10243else
10244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10251 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10253 break 2
10254 fi
10255done
10256 done
10257IFS=$as_save_IFS
10258
10259fi
10260fi
10261GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10262if test -n "$GFORTRAN_FOR_TARGET"; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10264$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10265else
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267$as_echo "no" >&6; }
10268fi
10269
10270
10271 done
10272fi
10273
10274if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10275 for ncn_progname in gfortran; do
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10277$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10278 if test -x $with_build_time_tools/${ncn_progname}; then
10279 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10281$as_echo "yes" >&6; }
10282 break
10283 else
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10285$as_echo "no" >&6; }
10286 fi
10287 done
10288fi
10289
10290if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10291 for ncn_progname in gfortran; do
10292 if test -n "$ncn_target_tool_prefix"; then
10293 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10294set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10296$as_echo_n "checking for $ac_word... " >&6; }
10297if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10298 $as_echo_n "(cached) " >&6
10299else
10300 if test -n "$GFORTRAN_FOR_TARGET"; then
10301 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10302else
10303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10304for as_dir in $PATH
10305do
10306 IFS=$as_save_IFS
10307 test -z "$as_dir" && as_dir=.
10308 for ac_exec_ext in '' $ac_executable_extensions; do
10309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10310 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10312 break 2
10313 fi
10314done
10315 done
10316IFS=$as_save_IFS
10317
10318fi
10319fi
10320GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10321if test -n "$GFORTRAN_FOR_TARGET"; then
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10323$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10324else
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10326$as_echo "no" >&6; }
10327fi
10328
10329
10330 fi
10331 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10332 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10333set dummy ${ncn_progname}; ac_word=$2
10334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10335$as_echo_n "checking for $ac_word... " >&6; }
10336if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10337 $as_echo_n "(cached) " >&6
10338else
10339 if test -n "$GFORTRAN_FOR_TARGET"; then
10340 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10341else
10342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10343for as_dir in $PATH
10344do
10345 IFS=$as_save_IFS
10346 test -z "$as_dir" && as_dir=.
10347 for ac_exec_ext in '' $ac_executable_extensions; do
10348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10349 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10351 break 2
10352 fi
10353done
10354 done
10355IFS=$as_save_IFS
10356
10357fi
10358fi
10359GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10360if test -n "$GFORTRAN_FOR_TARGET"; then
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10362$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10363else
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365$as_echo "no" >&6; }
10366fi
10367
10368
10369 fi
10370 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10371 done
10372fi
10373
10374if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10375 set dummy gfortran
10376 if test $build = $target ; then
10377 GFORTRAN_FOR_TARGET="$2"
10378 else
10379 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10380 fi
10381else
10382 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10383fi
10384
10385
10386
10387if test -n "$GOC_FOR_TARGET"; then
10388 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10389elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10390 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10391fi
10392
10393if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10394 for ncn_progname in gccgo; do
10395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10396set dummy ${ncn_progname}; ac_word=$2
10397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10398$as_echo_n "checking for $ac_word... " >&6; }
10399if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10400 $as_echo_n "(cached) " >&6
10401else
10402 if test -n "$GOC_FOR_TARGET"; then
10403 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10404else
10405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406for as_dir in $PATH
10407do
10408 IFS=$as_save_IFS
10409 test -z "$as_dir" && as_dir=.
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10412 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10414 break 2
10415 fi
10416done
10417 done
10418IFS=$as_save_IFS
10419
10420fi
10421fi
10422GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10423if test -n "$GOC_FOR_TARGET"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10425$as_echo "$GOC_FOR_TARGET" >&6; }
10426else
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428$as_echo "no" >&6; }
10429fi
10430
10431
10432 done
10433fi
10434
10435if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10436 for ncn_progname in gccgo; do
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10438$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10439 if test -x $with_build_time_tools/${ncn_progname}; then
10440 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10442$as_echo "yes" >&6; }
10443 break
10444 else
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10446$as_echo "no" >&6; }
10447 fi
10448 done
10449fi
10450
10451if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10452 for ncn_progname in gccgo; do
10453 if test -n "$ncn_target_tool_prefix"; then
10454 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10455set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10457$as_echo_n "checking for $ac_word... " >&6; }
10458if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10459 $as_echo_n "(cached) " >&6
10460else
10461 if test -n "$GOC_FOR_TARGET"; then
10462 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10463else
10464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465for as_dir in $PATH
10466do
10467 IFS=$as_save_IFS
10468 test -z "$as_dir" && as_dir=.
10469 for ac_exec_ext in '' $ac_executable_extensions; do
10470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10471 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 break 2
10474 fi
10475done
10476 done
10477IFS=$as_save_IFS
10478
10479fi
10480fi
10481GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10482if test -n "$GOC_FOR_TARGET"; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10484$as_echo "$GOC_FOR_TARGET" >&6; }
10485else
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10487$as_echo "no" >&6; }
10488fi
10489
10490
10491 fi
10492 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10494set dummy ${ncn_progname}; ac_word=$2
10495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10496$as_echo_n "checking for $ac_word... " >&6; }
10497if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10499else
10500 if test -n "$GOC_FOR_TARGET"; then
10501 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10502else
10503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10504for as_dir in $PATH
10505do
10506 IFS=$as_save_IFS
10507 test -z "$as_dir" && as_dir=.
10508 for ac_exec_ext in '' $ac_executable_extensions; do
10509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10510 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10512 break 2
10513 fi
10514done
10515 done
10516IFS=$as_save_IFS
10517
10518fi
10519fi
10520GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10521if test -n "$GOC_FOR_TARGET"; then
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10523$as_echo "$GOC_FOR_TARGET" >&6; }
10524else
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526$as_echo "no" >&6; }
10527fi
10528
10529
10530 fi
10531 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10532 done
10533fi
10534
10535if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10536 set dummy gccgo
10537 if test $build = $target ; then
10538 GOC_FOR_TARGET="$2"
10539 else
10540 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10541 fi
10542else
10543 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10544fi
10545
10546
10547
10548cat > conftest.c << \EOF
10549#ifdef __GNUC__
10550 gcc_yay;
10551#endif
10552EOF
10553if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10554 have_gcc_for_target=yes
10555else
10556 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10557 have_gcc_for_target=no
10558fi
10559rm conftest.c
10560
10561
10562
10563
10564if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10565 if test -n "$with_build_time_tools"; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10567$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10568 if test -x $with_build_time_tools/ar; then
10569 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10570 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10572$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10573 else
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575$as_echo "no" >&6; }
10576 fi
10577 elif test $build != $host && test $have_gcc_for_target = yes; then
10578 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10579 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10580 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10581 fi
10582fi
10583if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10584 # Extract the first word of "ar", so it can be a program name with args.
10585set dummy ar; ac_word=$2
10586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10587$as_echo_n "checking for $ac_word... " >&6; }
10588if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10589 $as_echo_n "(cached) " >&6
10590else
10591 case $AR_FOR_TARGET in
10592 [\\/]* | ?:[\\/]*)
10593 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10594 ;;
10595 *)
10596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597for as_dir in $gcc_cv_tool_dirs
10598do
10599 IFS=$as_save_IFS
10600 test -z "$as_dir" && as_dir=.
10601 for ac_exec_ext in '' $ac_executable_extensions; do
10602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10603 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10605 break 2
10606 fi
10607done
10608 done
10609IFS=$as_save_IFS
10610
10611 ;;
10612esac
10613fi
10614AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10615if test -n "$AR_FOR_TARGET"; then
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10617$as_echo "$AR_FOR_TARGET" >&6; }
10618else
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620$as_echo "no" >&6; }
10621fi
10622
10623
10624fi
10625if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10626
10627
10628if test -n "$AR_FOR_TARGET"; then
10629 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10630elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10631 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10632fi
10633
10634if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10635 for ncn_progname in ar; do
10636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10637set dummy ${ncn_progname}; ac_word=$2
10638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10639$as_echo_n "checking for $ac_word... " >&6; }
10640if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10641 $as_echo_n "(cached) " >&6
10642else
10643 if test -n "$AR_FOR_TARGET"; then
10644 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10645else
10646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10647for as_dir in $PATH
10648do
10649 IFS=$as_save_IFS
10650 test -z "$as_dir" && as_dir=.
10651 for ac_exec_ext in '' $ac_executable_extensions; do
10652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10653 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10655 break 2
10656 fi
10657done
10658 done
10659IFS=$as_save_IFS
10660
10661fi
10662fi
10663AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10664if test -n "$AR_FOR_TARGET"; then
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10666$as_echo "$AR_FOR_TARGET" >&6; }
10667else
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10669$as_echo "no" >&6; }
10670fi
10671
10672
10673 done
10674fi
10675
10676if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10677 for ncn_progname in ar; do
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10679$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10680 if test -x $with_build_time_tools/${ncn_progname}; then
10681 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10683$as_echo "yes" >&6; }
10684 break
10685 else
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687$as_echo "no" >&6; }
10688 fi
10689 done
10690fi
10691
10692if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10693 for ncn_progname in ar; do
10694 if test -n "$ncn_target_tool_prefix"; then
10695 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10696set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10698$as_echo_n "checking for $ac_word... " >&6; }
10699if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10700 $as_echo_n "(cached) " >&6
10701else
10702 if test -n "$AR_FOR_TARGET"; then
10703 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10704else
10705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10706for as_dir in $PATH
10707do
10708 IFS=$as_save_IFS
10709 test -z "$as_dir" && as_dir=.
10710 for ac_exec_ext in '' $ac_executable_extensions; do
10711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10712 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10714 break 2
10715 fi
10716done
10717 done
10718IFS=$as_save_IFS
10719
10720fi
10721fi
10722AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10723if test -n "$AR_FOR_TARGET"; then
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10725$as_echo "$AR_FOR_TARGET" >&6; }
10726else
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10728$as_echo "no" >&6; }
10729fi
10730
10731
10732 fi
10733 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10735set dummy ${ncn_progname}; ac_word=$2
10736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10737$as_echo_n "checking for $ac_word... " >&6; }
10738if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10739 $as_echo_n "(cached) " >&6
10740else
10741 if test -n "$AR_FOR_TARGET"; then
10742 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10743else
10744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10745for as_dir in $PATH
10746do
10747 IFS=$as_save_IFS
10748 test -z "$as_dir" && as_dir=.
10749 for ac_exec_ext in '' $ac_executable_extensions; do
10750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10751 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10753 break 2
10754 fi
10755done
10756 done
10757IFS=$as_save_IFS
10758
10759fi
10760fi
10761AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10762if test -n "$AR_FOR_TARGET"; then
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10764$as_echo "$AR_FOR_TARGET" >&6; }
10765else
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767$as_echo "no" >&6; }
10768fi
10769
10770
10771 fi
10772 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10773 done
10774fi
10775
10776if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10777 set dummy ar
10778 if test $build = $target ; then
10779 AR_FOR_TARGET="$2"
10780 else
10781 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10782 fi
10783else
10784 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10785fi
10786
10787else
10788 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10789fi
10790
10791
10792
10793
10794if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10795 if test -n "$with_build_time_tools"; then
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10797$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10798 if test -x $with_build_time_tools/as; then
10799 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10800 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10802$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10803 else
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10805$as_echo "no" >&6; }
10806 fi
10807 elif test $build != $host && test $have_gcc_for_target = yes; then
10808 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10809 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10810 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10811 fi
10812fi
10813if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10814 # Extract the first word of "as", so it can be a program name with args.
10815set dummy as; ac_word=$2
10816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10817$as_echo_n "checking for $ac_word... " >&6; }
10818if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
10820else
10821 case $AS_FOR_TARGET in
10822 [\\/]* | ?:[\\/]*)
10823 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10824 ;;
10825 *)
10826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827for as_dir in $gcc_cv_tool_dirs
10828do
10829 IFS=$as_save_IFS
10830 test -z "$as_dir" && as_dir=.
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10833 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10835 break 2
10836 fi
10837done
10838 done
10839IFS=$as_save_IFS
10840
10841 ;;
10842esac
10843fi
10844AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10845if test -n "$AS_FOR_TARGET"; then
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10847$as_echo "$AS_FOR_TARGET" >&6; }
10848else
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10850$as_echo "no" >&6; }
10851fi
10852
10853
10854fi
10855if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10856
10857
10858if test -n "$AS_FOR_TARGET"; then
10859 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10860elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10861 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10862fi
10863
10864if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10865 for ncn_progname in as; do
10866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10867set dummy ${ncn_progname}; ac_word=$2
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10869$as_echo_n "checking for $ac_word... " >&6; }
10870if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10871 $as_echo_n "(cached) " >&6
10872else
10873 if test -n "$AS_FOR_TARGET"; then
10874 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10875else
10876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877for as_dir in $PATH
10878do
10879 IFS=$as_save_IFS
10880 test -z "$as_dir" && as_dir=.
10881 for ac_exec_ext in '' $ac_executable_extensions; do
10882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10883 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10885 break 2
10886 fi
10887done
10888 done
10889IFS=$as_save_IFS
10890
10891fi
10892fi
10893AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10894if test -n "$AS_FOR_TARGET"; then
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10896$as_echo "$AS_FOR_TARGET" >&6; }
10897else
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899$as_echo "no" >&6; }
10900fi
10901
10902
10903 done
10904fi
10905
10906if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10907 for ncn_progname in as; do
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10909$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10910 if test -x $with_build_time_tools/${ncn_progname}; then
10911 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10913$as_echo "yes" >&6; }
10914 break
10915 else
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917$as_echo "no" >&6; }
10918 fi
10919 done
10920fi
10921
10922if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10923 for ncn_progname in as; do
10924 if test -n "$ncn_target_tool_prefix"; then
10925 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10926set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10928$as_echo_n "checking for $ac_word... " >&6; }
10929if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10930 $as_echo_n "(cached) " >&6
10931else
10932 if test -n "$AS_FOR_TARGET"; then
10933 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10934else
10935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936for as_dir in $PATH
10937do
10938 IFS=$as_save_IFS
10939 test -z "$as_dir" && as_dir=.
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10942 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10944 break 2
10945 fi
10946done
10947 done
10948IFS=$as_save_IFS
10949
10950fi
10951fi
10952AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10953if test -n "$AS_FOR_TARGET"; then
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10955$as_echo "$AS_FOR_TARGET" >&6; }
10956else
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958$as_echo "no" >&6; }
10959fi
10960
10961
10962 fi
10963 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10965set dummy ${ncn_progname}; ac_word=$2
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967$as_echo_n "checking for $ac_word... " >&6; }
10968if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
10970else
10971 if test -n "$AS_FOR_TARGET"; then
10972 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10973else
10974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975for as_dir in $PATH
10976do
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10981 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10983 break 2
10984 fi
10985done
10986 done
10987IFS=$as_save_IFS
10988
10989fi
10990fi
10991AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10992if test -n "$AS_FOR_TARGET"; then
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10994$as_echo "$AS_FOR_TARGET" >&6; }
10995else
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997$as_echo "no" >&6; }
10998fi
10999
11000
11001 fi
11002 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11003 done
11004fi
11005
11006if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11007 set dummy as
11008 if test $build = $target ; then
11009 AS_FOR_TARGET="$2"
11010 else
11011 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11012 fi
11013else
11014 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11015fi
11016
11017else
11018 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11019fi
11020
11021
11022
11023
11024if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11025 if test -n "$with_build_time_tools"; then
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11027$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11028 if test -x $with_build_time_tools/dlltool; then
11029 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11030 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11032$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11033 else
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035$as_echo "no" >&6; }
11036 fi
11037 elif test $build != $host && test $have_gcc_for_target = yes; then
11038 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11039 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11040 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11041 fi
11042fi
11043if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11044 # Extract the first word of "dlltool", so it can be a program name with args.
11045set dummy dlltool; ac_word=$2
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11047$as_echo_n "checking for $ac_word... " >&6; }
11048if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11049 $as_echo_n "(cached) " >&6
11050else
11051 case $DLLTOOL_FOR_TARGET in
11052 [\\/]* | ?:[\\/]*)
11053 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11054 ;;
11055 *)
11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057for as_dir in $gcc_cv_tool_dirs
11058do
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11063 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11065 break 2
11066 fi
11067done
11068 done
11069IFS=$as_save_IFS
11070
11071 ;;
11072esac
11073fi
11074DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11075if test -n "$DLLTOOL_FOR_TARGET"; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11077$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11078else
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080$as_echo "no" >&6; }
11081fi
11082
11083
11084fi
11085if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11086
11087
11088if test -n "$DLLTOOL_FOR_TARGET"; then
11089 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11090elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11091 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11092fi
11093
11094if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11095 for ncn_progname in dlltool; do
11096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11097set dummy ${ncn_progname}; ac_word=$2
11098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11099$as_echo_n "checking for $ac_word... " >&6; }
11100if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11101 $as_echo_n "(cached) " >&6
11102else
11103 if test -n "$DLLTOOL_FOR_TARGET"; then
11104 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11105else
11106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107for as_dir in $PATH
11108do
11109 IFS=$as_save_IFS
11110 test -z "$as_dir" && as_dir=.
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11113 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11115 break 2
11116 fi
11117done
11118 done
11119IFS=$as_save_IFS
11120
11121fi
11122fi
11123DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11124if test -n "$DLLTOOL_FOR_TARGET"; then
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11126$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11127else
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129$as_echo "no" >&6; }
11130fi
11131
11132
11133 done
11134fi
11135
11136if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11137 for ncn_progname in dlltool; do
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11139$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11140 if test -x $with_build_time_tools/${ncn_progname}; then
11141 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11143$as_echo "yes" >&6; }
11144 break
11145 else
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147$as_echo "no" >&6; }
11148 fi
11149 done
11150fi
11151
11152if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11153 for ncn_progname in dlltool; do
11154 if test -n "$ncn_target_tool_prefix"; then
11155 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11156set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11158$as_echo_n "checking for $ac_word... " >&6; }
11159if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11160 $as_echo_n "(cached) " >&6
11161else
11162 if test -n "$DLLTOOL_FOR_TARGET"; then
11163 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11164else
11165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11166for as_dir in $PATH
11167do
11168 IFS=$as_save_IFS
11169 test -z "$as_dir" && as_dir=.
11170 for ac_exec_ext in '' $ac_executable_extensions; do
11171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11172 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11174 break 2
11175 fi
11176done
11177 done
11178IFS=$as_save_IFS
11179
11180fi
11181fi
11182DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11183if test -n "$DLLTOOL_FOR_TARGET"; then
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11185$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11186else
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188$as_echo "no" >&6; }
11189fi
11190
11191
11192 fi
11193 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11195set dummy ${ncn_progname}; ac_word=$2
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11197$as_echo_n "checking for $ac_word... " >&6; }
11198if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11199 $as_echo_n "(cached) " >&6
11200else
11201 if test -n "$DLLTOOL_FOR_TARGET"; then
11202 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11203else
11204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205for as_dir in $PATH
11206do
11207 IFS=$as_save_IFS
11208 test -z "$as_dir" && as_dir=.
11209 for ac_exec_ext in '' $ac_executable_extensions; do
11210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11211 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11213 break 2
11214 fi
11215done
11216 done
11217IFS=$as_save_IFS
11218
11219fi
11220fi
11221DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11222if test -n "$DLLTOOL_FOR_TARGET"; then
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11224$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11225else
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227$as_echo "no" >&6; }
11228fi
11229
11230
11231 fi
11232 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11233 done
11234fi
11235
11236if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11237 set dummy dlltool
11238 if test $build = $target ; then
11239 DLLTOOL_FOR_TARGET="$2"
11240 else
11241 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11242 fi
11243else
11244 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11245fi
11246
11247else
11248 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11249fi
11250
11251
11252
11253
11254if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11255 if test -n "$with_build_time_tools"; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11257$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11258 if test -x $with_build_time_tools/ld; then
11259 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11260 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11262$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11263 else
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265$as_echo "no" >&6; }
11266 fi
11267 elif test $build != $host && test $have_gcc_for_target = yes; then
11268 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11269 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11270 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11271 fi
11272fi
11273if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11274 # Extract the first word of "ld", so it can be a program name with args.
11275set dummy ld; ac_word=$2
11276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11277$as_echo_n "checking for $ac_word... " >&6; }
11278if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11279 $as_echo_n "(cached) " >&6
11280else
11281 case $LD_FOR_TARGET in
11282 [\\/]* | ?:[\\/]*)
11283 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11284 ;;
11285 *)
11286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287for as_dir in $gcc_cv_tool_dirs
11288do
11289 IFS=$as_save_IFS
11290 test -z "$as_dir" && as_dir=.
11291 for ac_exec_ext in '' $ac_executable_extensions; do
11292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11293 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11295 break 2
11296 fi
11297done
11298 done
11299IFS=$as_save_IFS
11300
11301 ;;
11302esac
11303fi
11304LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11305if test -n "$LD_FOR_TARGET"; then
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11307$as_echo "$LD_FOR_TARGET" >&6; }
11308else
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11310$as_echo "no" >&6; }
11311fi
11312
11313
11314fi
11315if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11316
11317
11318if test -n "$LD_FOR_TARGET"; then
11319 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11320elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11321 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11322fi
11323
11324if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11325 for ncn_progname in ld; do
11326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11327set dummy ${ncn_progname}; ac_word=$2
11328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11329$as_echo_n "checking for $ac_word... " >&6; }
11330if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11331 $as_echo_n "(cached) " >&6
11332else
11333 if test -n "$LD_FOR_TARGET"; then
11334 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11335else
11336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11337for as_dir in $PATH
11338do
11339 IFS=$as_save_IFS
11340 test -z "$as_dir" && as_dir=.
11341 for ac_exec_ext in '' $ac_executable_extensions; do
11342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11343 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11345 break 2
11346 fi
11347done
11348 done
11349IFS=$as_save_IFS
11350
11351fi
11352fi
11353LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11354if test -n "$LD_FOR_TARGET"; then
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11356$as_echo "$LD_FOR_TARGET" >&6; }
11357else
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359$as_echo "no" >&6; }
11360fi
11361
11362
11363 done
11364fi
11365
11366if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11367 for ncn_progname in ld; do
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11369$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11370 if test -x $with_build_time_tools/${ncn_progname}; then
11371 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11373$as_echo "yes" >&6; }
11374 break
11375 else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377$as_echo "no" >&6; }
11378 fi
11379 done
11380fi
11381
11382if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11383 for ncn_progname in ld; do
11384 if test -n "$ncn_target_tool_prefix"; then
11385 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11386set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388$as_echo_n "checking for $ac_word... " >&6; }
11389if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11390 $as_echo_n "(cached) " >&6
11391else
11392 if test -n "$LD_FOR_TARGET"; then
11393 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11394else
11395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396for as_dir in $PATH
11397do
11398 IFS=$as_save_IFS
11399 test -z "$as_dir" && as_dir=.
11400 for ac_exec_ext in '' $ac_executable_extensions; do
11401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11402 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11404 break 2
11405 fi
11406done
11407 done
11408IFS=$as_save_IFS
11409
11410fi
11411fi
11412LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11413if test -n "$LD_FOR_TARGET"; then
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11415$as_echo "$LD_FOR_TARGET" >&6; }
11416else
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418$as_echo "no" >&6; }
11419fi
11420
11421
11422 fi
11423 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11425set dummy ${ncn_progname}; ac_word=$2
11426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11427$as_echo_n "checking for $ac_word... " >&6; }
11428if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
11430else
11431 if test -n "$LD_FOR_TARGET"; then
11432 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11433else
11434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435for as_dir in $PATH
11436do
11437 IFS=$as_save_IFS
11438 test -z "$as_dir" && as_dir=.
11439 for ac_exec_ext in '' $ac_executable_extensions; do
11440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11441 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11443 break 2
11444 fi
11445done
11446 done
11447IFS=$as_save_IFS
11448
11449fi
11450fi
11451LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11452if test -n "$LD_FOR_TARGET"; then
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11454$as_echo "$LD_FOR_TARGET" >&6; }
11455else
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11457$as_echo "no" >&6; }
11458fi
11459
11460
11461 fi
11462 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11463 done
11464fi
11465
11466if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11467 set dummy ld
11468 if test $build = $target ; then
11469 LD_FOR_TARGET="$2"
11470 else
11471 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11472 fi
11473else
11474 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11475fi
11476
11477else
11478 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11479fi
11480
11481
11482
11483
11484if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11485 if test -n "$with_build_time_tools"; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11487$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11488 if test -x $with_build_time_tools/lipo; then
11489 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11490 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11492$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11493 else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495$as_echo "no" >&6; }
11496 fi
11497 elif test $build != $host && test $have_gcc_for_target = yes; then
11498 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11499 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11500 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11501 fi
11502fi
11503if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11504 # Extract the first word of "lipo", so it can be a program name with args.
11505set dummy lipo; ac_word=$2
11506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507$as_echo_n "checking for $ac_word... " >&6; }
11508if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11509 $as_echo_n "(cached) " >&6
11510else
11511 case $LIPO_FOR_TARGET in
11512 [\\/]* | ?:[\\/]*)
11513 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11514 ;;
11515 *)
11516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517for as_dir in $gcc_cv_tool_dirs
11518do
11519 IFS=$as_save_IFS
11520 test -z "$as_dir" && as_dir=.
11521 for ac_exec_ext in '' $ac_executable_extensions; do
11522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11523 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11525 break 2
11526 fi
11527done
11528 done
11529IFS=$as_save_IFS
11530
11531 ;;
11532esac
11533fi
11534LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11535if test -n "$LIPO_FOR_TARGET"; then
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11537$as_echo "$LIPO_FOR_TARGET" >&6; }
11538else
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540$as_echo "no" >&6; }
11541fi
11542
11543
11544fi
11545if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11546
11547
11548if test -n "$LIPO_FOR_TARGET"; then
11549 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11550elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11551 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11552fi
11553
11554if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11555 for ncn_progname in lipo; do
11556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11557set dummy ${ncn_progname}; ac_word=$2
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11559$as_echo_n "checking for $ac_word... " >&6; }
11560if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11561 $as_echo_n "(cached) " >&6
11562else
11563 if test -n "$LIPO_FOR_TARGET"; then
11564 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11565else
11566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567for as_dir in $PATH
11568do
11569 IFS=$as_save_IFS
11570 test -z "$as_dir" && as_dir=.
11571 for ac_exec_ext in '' $ac_executable_extensions; do
11572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11573 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11575 break 2
11576 fi
11577done
11578 done
11579IFS=$as_save_IFS
11580
11581fi
11582fi
11583LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11584if test -n "$LIPO_FOR_TARGET"; then
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11586$as_echo "$LIPO_FOR_TARGET" >&6; }
11587else
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11589$as_echo "no" >&6; }
11590fi
11591
11592
11593 done
11594fi
11595
11596if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11597 for ncn_progname in lipo; do
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11599$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11600 if test -x $with_build_time_tools/${ncn_progname}; then
11601 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11603$as_echo "yes" >&6; }
11604 break
11605 else
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607$as_echo "no" >&6; }
11608 fi
11609 done
11610fi
11611
11612if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11613 for ncn_progname in lipo; do
11614 if test -n "$ncn_target_tool_prefix"; then
11615 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11616set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11618$as_echo_n "checking for $ac_word... " >&6; }
11619if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11620 $as_echo_n "(cached) " >&6
11621else
11622 if test -n "$LIPO_FOR_TARGET"; then
11623 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11624else
11625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626for as_dir in $PATH
11627do
11628 IFS=$as_save_IFS
11629 test -z "$as_dir" && as_dir=.
11630 for ac_exec_ext in '' $ac_executable_extensions; do
11631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11632 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11634 break 2
11635 fi
11636done
11637 done
11638IFS=$as_save_IFS
11639
11640fi
11641fi
11642LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11643if test -n "$LIPO_FOR_TARGET"; then
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11645$as_echo "$LIPO_FOR_TARGET" >&6; }
11646else
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648$as_echo "no" >&6; }
11649fi
11650
11651
11652 fi
11653 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11655set dummy ${ncn_progname}; ac_word=$2
11656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657$as_echo_n "checking for $ac_word... " >&6; }
11658if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11659 $as_echo_n "(cached) " >&6
11660else
11661 if test -n "$LIPO_FOR_TARGET"; then
11662 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11663else
11664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665for as_dir in $PATH
11666do
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11671 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11673 break 2
11674 fi
11675done
11676 done
11677IFS=$as_save_IFS
11678
11679fi
11680fi
11681LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11682if test -n "$LIPO_FOR_TARGET"; then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11684$as_echo "$LIPO_FOR_TARGET" >&6; }
11685else
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687$as_echo "no" >&6; }
11688fi
11689
11690
11691 fi
11692 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11693 done
11694fi
11695
11696if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11697 set dummy lipo
11698 if test $build = $target ; then
11699 LIPO_FOR_TARGET="$2"
11700 else
11701 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11702 fi
11703else
11704 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11705fi
11706
11707else
11708 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11709fi
11710
11711
11712
11713
11714if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11715 if test -n "$with_build_time_tools"; then
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11717$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11718 if test -x $with_build_time_tools/nm; then
11719 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11720 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11722$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11723 else
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11725$as_echo "no" >&6; }
11726 fi
11727 elif test $build != $host && test $have_gcc_for_target = yes; then
11728 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11729 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11730 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11731 fi
11732fi
11733if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11734 # Extract the first word of "nm", so it can be a program name with args.
11735set dummy nm; ac_word=$2
11736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11737$as_echo_n "checking for $ac_word... " >&6; }
11738if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11739 $as_echo_n "(cached) " >&6
11740else
11741 case $NM_FOR_TARGET in
11742 [\\/]* | ?:[\\/]*)
11743 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11744 ;;
11745 *)
11746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747for as_dir in $gcc_cv_tool_dirs
11748do
11749 IFS=$as_save_IFS
11750 test -z "$as_dir" && as_dir=.
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11753 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11755 break 2
11756 fi
11757done
11758 done
11759IFS=$as_save_IFS
11760
11761 ;;
11762esac
11763fi
11764NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11765if test -n "$NM_FOR_TARGET"; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11767$as_echo "$NM_FOR_TARGET" >&6; }
11768else
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770$as_echo "no" >&6; }
11771fi
11772
11773
11774fi
11775if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11776
11777
11778if test -n "$NM_FOR_TARGET"; then
11779 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11780elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11781 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11782fi
11783
11784if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11785 for ncn_progname in nm; do
11786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11787set dummy ${ncn_progname}; ac_word=$2
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789$as_echo_n "checking for $ac_word... " >&6; }
11790if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11791 $as_echo_n "(cached) " >&6
11792else
11793 if test -n "$NM_FOR_TARGET"; then
11794 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11795else
11796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797for as_dir in $PATH
11798do
11799 IFS=$as_save_IFS
11800 test -z "$as_dir" && as_dir=.
11801 for ac_exec_ext in '' $ac_executable_extensions; do
11802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11803 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11805 break 2
11806 fi
11807done
11808 done
11809IFS=$as_save_IFS
11810
11811fi
11812fi
11813NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11814if test -n "$NM_FOR_TARGET"; then
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11816$as_echo "$NM_FOR_TARGET" >&6; }
11817else
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819$as_echo "no" >&6; }
11820fi
11821
11822
11823 done
11824fi
11825
11826if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11827 for ncn_progname in nm; do
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11829$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11830 if test -x $with_build_time_tools/${ncn_progname}; then
11831 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11833$as_echo "yes" >&6; }
11834 break
11835 else
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837$as_echo "no" >&6; }
11838 fi
11839 done
11840fi
11841
11842if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11843 for ncn_progname in nm; do
11844 if test -n "$ncn_target_tool_prefix"; then
11845 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11846set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848$as_echo_n "checking for $ac_word... " >&6; }
11849if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11850 $as_echo_n "(cached) " >&6
11851else
11852 if test -n "$NM_FOR_TARGET"; then
11853 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11854else
11855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11856for as_dir in $PATH
11857do
11858 IFS=$as_save_IFS
11859 test -z "$as_dir" && as_dir=.
11860 for ac_exec_ext in '' $ac_executable_extensions; do
11861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11862 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11864 break 2
11865 fi
11866done
11867 done
11868IFS=$as_save_IFS
11869
11870fi
11871fi
11872NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11873if test -n "$NM_FOR_TARGET"; then
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11875$as_echo "$NM_FOR_TARGET" >&6; }
11876else
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878$as_echo "no" >&6; }
11879fi
11880
11881
11882 fi
11883 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11885set dummy ${ncn_progname}; ac_word=$2
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11887$as_echo_n "checking for $ac_word... " >&6; }
11888if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11889 $as_echo_n "(cached) " >&6
11890else
11891 if test -n "$NM_FOR_TARGET"; then
11892 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11893else
11894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895for as_dir in $PATH
11896do
11897 IFS=$as_save_IFS
11898 test -z "$as_dir" && as_dir=.
11899 for ac_exec_ext in '' $ac_executable_extensions; do
11900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11901 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11903 break 2
11904 fi
11905done
11906 done
11907IFS=$as_save_IFS
11908
11909fi
11910fi
11911NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11912if test -n "$NM_FOR_TARGET"; then
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11914$as_echo "$NM_FOR_TARGET" >&6; }
11915else
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917$as_echo "no" >&6; }
11918fi
11919
11920
11921 fi
11922 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11923 done
11924fi
11925
11926if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11927 set dummy nm
11928 if test $build = $target ; then
11929 NM_FOR_TARGET="$2"
11930 else
11931 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11932 fi
11933else
11934 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11935fi
11936
11937else
11938 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11939fi
11940
11941
11942
11943
11944if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11945 if test -n "$with_build_time_tools"; then
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11947$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11948 if test -x $with_build_time_tools/objdump; then
11949 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11950 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11952$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11953 else
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955$as_echo "no" >&6; }
11956 fi
11957 elif test $build != $host && test $have_gcc_for_target = yes; then
11958 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11959 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11960 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11961 fi
11962fi
11963if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11964 # Extract the first word of "objdump", so it can be a program name with args.
11965set dummy objdump; ac_word=$2
11966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967$as_echo_n "checking for $ac_word... " >&6; }
11968if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11969 $as_echo_n "(cached) " >&6
11970else
11971 case $OBJDUMP_FOR_TARGET in
11972 [\\/]* | ?:[\\/]*)
11973 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11974 ;;
11975 *)
11976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977for as_dir in $gcc_cv_tool_dirs
11978do
11979 IFS=$as_save_IFS
11980 test -z "$as_dir" && as_dir=.
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11983 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11985 break 2
11986 fi
11987done
11988 done
11989IFS=$as_save_IFS
11990
11991 ;;
11992esac
11993fi
11994OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11995if test -n "$OBJDUMP_FOR_TARGET"; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11997$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11998else
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000$as_echo "no" >&6; }
12001fi
12002
12003
12004fi
12005if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12006
12007
12008if test -n "$OBJDUMP_FOR_TARGET"; then
12009 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12010elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12011 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12012fi
12013
12014if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12015 for ncn_progname in objdump; do
12016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12017set dummy ${ncn_progname}; ac_word=$2
12018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12019$as_echo_n "checking for $ac_word... " >&6; }
12020if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12021 $as_echo_n "(cached) " >&6
12022else
12023 if test -n "$OBJDUMP_FOR_TARGET"; then
12024 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12025else
12026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027for as_dir in $PATH
12028do
12029 IFS=$as_save_IFS
12030 test -z "$as_dir" && as_dir=.
12031 for ac_exec_ext in '' $ac_executable_extensions; do
12032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12033 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12035 break 2
12036 fi
12037done
12038 done
12039IFS=$as_save_IFS
12040
12041fi
12042fi
12043OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12044if test -n "$OBJDUMP_FOR_TARGET"; then
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12046$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12047else
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12049$as_echo "no" >&6; }
12050fi
12051
12052
12053 done
12054fi
12055
12056if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12057 for ncn_progname in objdump; do
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12059$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12060 if test -x $with_build_time_tools/${ncn_progname}; then
12061 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12063$as_echo "yes" >&6; }
12064 break
12065 else
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067$as_echo "no" >&6; }
12068 fi
12069 done
12070fi
12071
12072if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12073 for ncn_progname in objdump; do
12074 if test -n "$ncn_target_tool_prefix"; then
12075 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12076set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12078$as_echo_n "checking for $ac_word... " >&6; }
12079if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12080 $as_echo_n "(cached) " >&6
12081else
12082 if test -n "$OBJDUMP_FOR_TARGET"; then
12083 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12084else
12085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12086for as_dir in $PATH
12087do
12088 IFS=$as_save_IFS
12089 test -z "$as_dir" && as_dir=.
12090 for ac_exec_ext in '' $ac_executable_extensions; do
12091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12092 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12094 break 2
12095 fi
12096done
12097 done
12098IFS=$as_save_IFS
12099
12100fi
12101fi
12102OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12103if test -n "$OBJDUMP_FOR_TARGET"; then
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12105$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12106else
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108$as_echo "no" >&6; }
12109fi
12110
12111
12112 fi
12113 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12114 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12115set dummy ${ncn_progname}; ac_word=$2
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117$as_echo_n "checking for $ac_word... " >&6; }
12118if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12119 $as_echo_n "(cached) " >&6
12120else
12121 if test -n "$OBJDUMP_FOR_TARGET"; then
12122 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12123else
12124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125for as_dir in $PATH
12126do
12127 IFS=$as_save_IFS
12128 test -z "$as_dir" && as_dir=.
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12131 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133 break 2
12134 fi
12135done
12136 done
12137IFS=$as_save_IFS
12138
12139fi
12140fi
12141OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12142if test -n "$OBJDUMP_FOR_TARGET"; then
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12144$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12145else
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147$as_echo "no" >&6; }
12148fi
12149
12150
12151 fi
12152 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12153 done
12154fi
12155
12156if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12157 set dummy objdump
12158 if test $build = $target ; then
12159 OBJDUMP_FOR_TARGET="$2"
12160 else
12161 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12162 fi
12163else
12164 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12165fi
12166
12167else
12168 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12169fi
12170
12171
12172
12173
12174if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12175 if test -n "$with_build_time_tools"; then
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12177$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12178 if test -x $with_build_time_tools/ranlib; then
12179 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12180 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12182$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12183 else
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185$as_echo "no" >&6; }
12186 fi
12187 elif test $build != $host && test $have_gcc_for_target = yes; then
12188 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12189 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12190 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12191 fi
12192fi
12193if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12194 # Extract the first word of "ranlib", so it can be a program name with args.
12195set dummy ranlib; ac_word=$2
12196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197$as_echo_n "checking for $ac_word... " >&6; }
12198if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12199 $as_echo_n "(cached) " >&6
12200else
12201 case $RANLIB_FOR_TARGET in
12202 [\\/]* | ?:[\\/]*)
12203 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12204 ;;
12205 *)
12206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207for as_dir in $gcc_cv_tool_dirs
12208do
12209 IFS=$as_save_IFS
12210 test -z "$as_dir" && as_dir=.
12211 for ac_exec_ext in '' $ac_executable_extensions; do
12212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12213 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12215 break 2
12216 fi
12217done
12218 done
12219IFS=$as_save_IFS
12220
12221 ;;
12222esac
12223fi
12224RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12225if test -n "$RANLIB_FOR_TARGET"; then
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12227$as_echo "$RANLIB_FOR_TARGET" >&6; }
12228else
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12230$as_echo "no" >&6; }
12231fi
12232
12233
12234fi
12235if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12236
12237
12238if test -n "$RANLIB_FOR_TARGET"; then
12239 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12240elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12241 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12242fi
12243
12244if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12245 for ncn_progname in ranlib; do
12246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12247set dummy ${ncn_progname}; ac_word=$2
12248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12249$as_echo_n "checking for $ac_word... " >&6; }
12250if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12251 $as_echo_n "(cached) " >&6
12252else
12253 if test -n "$RANLIB_FOR_TARGET"; then
12254 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12255else
12256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12257for as_dir in $PATH
12258do
12259 IFS=$as_save_IFS
12260 test -z "$as_dir" && as_dir=.
12261 for ac_exec_ext in '' $ac_executable_extensions; do
12262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12263 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12265 break 2
12266 fi
12267done
12268 done
12269IFS=$as_save_IFS
12270
12271fi
12272fi
12273RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12274if test -n "$RANLIB_FOR_TARGET"; then
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12276$as_echo "$RANLIB_FOR_TARGET" >&6; }
12277else
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279$as_echo "no" >&6; }
12280fi
12281
12282
12283 done
12284fi
12285
12286if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12287 for ncn_progname in ranlib; do
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12289$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12290 if test -x $with_build_time_tools/${ncn_progname}; then
12291 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12293$as_echo "yes" >&6; }
12294 break
12295 else
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297$as_echo "no" >&6; }
12298 fi
12299 done
12300fi
12301
12302if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12303 for ncn_progname in ranlib; do
12304 if test -n "$ncn_target_tool_prefix"; then
12305 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12306set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308$as_echo_n "checking for $ac_word... " >&6; }
12309if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
12311else
12312 if test -n "$RANLIB_FOR_TARGET"; then
12313 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12314else
12315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316for as_dir in $PATH
12317do
12318 IFS=$as_save_IFS
12319 test -z "$as_dir" && as_dir=.
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12322 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12324 break 2
12325 fi
12326done
12327 done
12328IFS=$as_save_IFS
12329
12330fi
12331fi
12332RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12333if test -n "$RANLIB_FOR_TARGET"; then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12335$as_echo "$RANLIB_FOR_TARGET" >&6; }
12336else
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338$as_echo "no" >&6; }
12339fi
12340
12341
12342 fi
12343 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12345set dummy ${ncn_progname}; ac_word=$2
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347$as_echo_n "checking for $ac_word... " >&6; }
12348if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12349 $as_echo_n "(cached) " >&6
12350else
12351 if test -n "$RANLIB_FOR_TARGET"; then
12352 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12353else
12354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355for as_dir in $PATH
12356do
12357 IFS=$as_save_IFS
12358 test -z "$as_dir" && as_dir=.
12359 for ac_exec_ext in '' $ac_executable_extensions; do
12360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12361 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12363 break 2
12364 fi
12365done
12366 done
12367IFS=$as_save_IFS
12368
12369fi
12370fi
12371RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12372if test -n "$RANLIB_FOR_TARGET"; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12374$as_echo "$RANLIB_FOR_TARGET" >&6; }
12375else
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377$as_echo "no" >&6; }
12378fi
12379
12380
12381 fi
12382 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12383 done
12384fi
12385
12386if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12387 set dummy ranlib
12388 if test $build = $target ; then
12389 RANLIB_FOR_TARGET="$2"
12390 else
12391 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12392 fi
12393else
12394 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12395fi
12396
12397else
12398 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12399fi
12400
12401
12402
12403
12404if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12405 if test -n "$with_build_time_tools"; then
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12407$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12408 if test -x $with_build_time_tools/readelf; then
12409 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12410 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12412$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12413 else
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415$as_echo "no" >&6; }
12416 fi
12417 elif test $build != $host && test $have_gcc_for_target = yes; then
12418 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12419 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12420 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12421 fi
12422fi
12423if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12424 # Extract the first word of "readelf", so it can be a program name with args.
12425set dummy readelf; ac_word=$2
12426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427$as_echo_n "checking for $ac_word... " >&6; }
12428if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12430else
12431 case $READELF_FOR_TARGET in
12432 [\\/]* | ?:[\\/]*)
12433 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12434 ;;
12435 *)
12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437for as_dir in $gcc_cv_tool_dirs
12438do
12439 IFS=$as_save_IFS
12440 test -z "$as_dir" && as_dir=.
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12443 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12445 break 2
12446 fi
12447done
12448 done
12449IFS=$as_save_IFS
12450
12451 ;;
12452esac
12453fi
12454READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12455if test -n "$READELF_FOR_TARGET"; then
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12457$as_echo "$READELF_FOR_TARGET" >&6; }
12458else
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12460$as_echo "no" >&6; }
12461fi
12462
12463
12464fi
12465if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12466
12467
12468if test -n "$READELF_FOR_TARGET"; then
12469 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12470elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12471 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12472fi
12473
12474if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12475 for ncn_progname in readelf; do
12476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12477set dummy ${ncn_progname}; ac_word=$2
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12479$as_echo_n "checking for $ac_word... " >&6; }
12480if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12481 $as_echo_n "(cached) " >&6
12482else
12483 if test -n "$READELF_FOR_TARGET"; then
12484 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12485else
12486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487for as_dir in $PATH
12488do
12489 IFS=$as_save_IFS
12490 test -z "$as_dir" && as_dir=.
12491 for ac_exec_ext in '' $ac_executable_extensions; do
12492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12493 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12495 break 2
12496 fi
12497done
12498 done
12499IFS=$as_save_IFS
12500
12501fi
12502fi
12503READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12504if test -n "$READELF_FOR_TARGET"; then
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12506$as_echo "$READELF_FOR_TARGET" >&6; }
12507else
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509$as_echo "no" >&6; }
12510fi
12511
12512
12513 done
12514fi
12515
12516if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12517 for ncn_progname in readelf; do
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12519$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12520 if test -x $with_build_time_tools/${ncn_progname}; then
12521 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12523$as_echo "yes" >&6; }
12524 break
12525 else
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527$as_echo "no" >&6; }
12528 fi
12529 done
12530fi
12531
12532if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12533 for ncn_progname in readelf; do
12534 if test -n "$ncn_target_tool_prefix"; then
12535 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12536set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12538$as_echo_n "checking for $ac_word... " >&6; }
12539if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12540 $as_echo_n "(cached) " >&6
12541else
12542 if test -n "$READELF_FOR_TARGET"; then
12543 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12544else
12545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546for as_dir in $PATH
12547do
12548 IFS=$as_save_IFS
12549 test -z "$as_dir" && as_dir=.
12550 for ac_exec_ext in '' $ac_executable_extensions; do
12551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12552 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12554 break 2
12555 fi
12556done
12557 done
12558IFS=$as_save_IFS
12559
12560fi
12561fi
12562READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12563if test -n "$READELF_FOR_TARGET"; then
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12565$as_echo "$READELF_FOR_TARGET" >&6; }
12566else
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568$as_echo "no" >&6; }
12569fi
12570
12571
12572 fi
12573 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12575set dummy ${ncn_progname}; ac_word=$2
12576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577$as_echo_n "checking for $ac_word... " >&6; }
12578if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
12580else
12581 if test -n "$READELF_FOR_TARGET"; then
12582 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12583else
12584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585for as_dir in $PATH
12586do
12587 IFS=$as_save_IFS
12588 test -z "$as_dir" && as_dir=.
12589 for ac_exec_ext in '' $ac_executable_extensions; do
12590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12591 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12593 break 2
12594 fi
12595done
12596 done
12597IFS=$as_save_IFS
12598
12599fi
12600fi
12601READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12602if test -n "$READELF_FOR_TARGET"; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12604$as_echo "$READELF_FOR_TARGET" >&6; }
12605else
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607$as_echo "no" >&6; }
12608fi
12609
12610
12611 fi
12612 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12613 done
12614fi
12615
12616if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12617 set dummy readelf
12618 if test $build = $target ; then
12619 READELF_FOR_TARGET="$2"
12620 else
12621 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12622 fi
12623else
12624 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12625fi
12626
12627else
12628 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12629fi
12630
12631
12632
12633
12634if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12635 if test -n "$with_build_time_tools"; then
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12637$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12638 if test -x $with_build_time_tools/strip; then
12639 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12640 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12642$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12643 else
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645$as_echo "no" >&6; }
12646 fi
12647 elif test $build != $host && test $have_gcc_for_target = yes; then
12648 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12649 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12650 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12651 fi
12652fi
12653if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12654 # Extract the first word of "strip", so it can be a program name with args.
12655set dummy strip; ac_word=$2
12656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12657$as_echo_n "checking for $ac_word... " >&6; }
12658if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12659 $as_echo_n "(cached) " >&6
12660else
12661 case $STRIP_FOR_TARGET in
12662 [\\/]* | ?:[\\/]*)
12663 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12664 ;;
12665 *)
12666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667for as_dir in $gcc_cv_tool_dirs
12668do
12669 IFS=$as_save_IFS
12670 test -z "$as_dir" && as_dir=.
12671 for ac_exec_ext in '' $ac_executable_extensions; do
12672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12673 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12675 break 2
12676 fi
12677done
12678 done
12679IFS=$as_save_IFS
12680
12681 ;;
12682esac
12683fi
12684STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12685if test -n "$STRIP_FOR_TARGET"; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12687$as_echo "$STRIP_FOR_TARGET" >&6; }
12688else
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690$as_echo "no" >&6; }
12691fi
12692
12693
12694fi
12695if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12696
12697
12698if test -n "$STRIP_FOR_TARGET"; then
12699 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12700elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12701 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12702fi
12703
12704if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12705 for ncn_progname in strip; do
12706 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12707set dummy ${ncn_progname}; ac_word=$2
12708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12709$as_echo_n "checking for $ac_word... " >&6; }
12710if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12711 $as_echo_n "(cached) " >&6
12712else
12713 if test -n "$STRIP_FOR_TARGET"; then
12714 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12715else
12716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717for as_dir in $PATH
12718do
12719 IFS=$as_save_IFS
12720 test -z "$as_dir" && as_dir=.
12721 for ac_exec_ext in '' $ac_executable_extensions; do
12722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12723 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12725 break 2
12726 fi
12727done
12728 done
12729IFS=$as_save_IFS
12730
12731fi
12732fi
12733STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12734if test -n "$STRIP_FOR_TARGET"; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12736$as_echo "$STRIP_FOR_TARGET" >&6; }
12737else
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739$as_echo "no" >&6; }
12740fi
12741
12742
12743 done
12744fi
12745
12746if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12747 for ncn_progname in strip; do
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12749$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12750 if test -x $with_build_time_tools/${ncn_progname}; then
12751 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12753$as_echo "yes" >&6; }
12754 break
12755 else
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757$as_echo "no" >&6; }
12758 fi
12759 done
12760fi
12761
12762if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12763 for ncn_progname in strip; do
12764 if test -n "$ncn_target_tool_prefix"; then
12765 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12766set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12768$as_echo_n "checking for $ac_word... " >&6; }
12769if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12770 $as_echo_n "(cached) " >&6
12771else
12772 if test -n "$STRIP_FOR_TARGET"; then
12773 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12774else
12775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12776for as_dir in $PATH
12777do
12778 IFS=$as_save_IFS
12779 test -z "$as_dir" && as_dir=.
12780 for ac_exec_ext in '' $ac_executable_extensions; do
12781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12782 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12784 break 2
12785 fi
12786done
12787 done
12788IFS=$as_save_IFS
12789
12790fi
12791fi
12792STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12793if test -n "$STRIP_FOR_TARGET"; then
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12795$as_echo "$STRIP_FOR_TARGET" >&6; }
12796else
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798$as_echo "no" >&6; }
12799fi
12800
12801
12802 fi
12803 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12805set dummy ${ncn_progname}; ac_word=$2
12806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12807$as_echo_n "checking for $ac_word... " >&6; }
12808if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12809 $as_echo_n "(cached) " >&6
12810else
12811 if test -n "$STRIP_FOR_TARGET"; then
12812 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12813else
12814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12815for as_dir in $PATH
12816do
12817 IFS=$as_save_IFS
12818 test -z "$as_dir" && as_dir=.
12819 for ac_exec_ext in '' $ac_executable_extensions; do
12820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12821 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12823 break 2
12824 fi
12825done
12826 done
12827IFS=$as_save_IFS
12828
12829fi
12830fi
12831STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12832if test -n "$STRIP_FOR_TARGET"; then
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12834$as_echo "$STRIP_FOR_TARGET" >&6; }
12835else
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12837$as_echo "no" >&6; }
12838fi
12839
12840
12841 fi
12842 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12843 done
12844fi
12845
12846if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12847 set dummy strip
12848 if test $build = $target ; then
12849 STRIP_FOR_TARGET="$2"
12850 else
12851 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12852 fi
12853else
12854 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12855fi
12856
12857else
12858 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12859fi
12860
12861
12862
12863
12864if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12865 if test -n "$with_build_time_tools"; then
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12867$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12868 if test -x $with_build_time_tools/windres; then
12869 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12870 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12872$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12873 else
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875$as_echo "no" >&6; }
12876 fi
12877 elif test $build != $host && test $have_gcc_for_target = yes; then
12878 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12879 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12880 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12881 fi
12882fi
12883if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12884 # Extract the first word of "windres", so it can be a program name with args.
12885set dummy windres; ac_word=$2
12886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887$as_echo_n "checking for $ac_word... " >&6; }
12888if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12889 $as_echo_n "(cached) " >&6
12890else
12891 case $WINDRES_FOR_TARGET in
12892 [\\/]* | ?:[\\/]*)
12893 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12894 ;;
12895 *)
12896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897for as_dir in $gcc_cv_tool_dirs
12898do
12899 IFS=$as_save_IFS
12900 test -z "$as_dir" && as_dir=.
12901 for ac_exec_ext in '' $ac_executable_extensions; do
12902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12903 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12905 break 2
12906 fi
12907done
12908 done
12909IFS=$as_save_IFS
12910
12911 ;;
12912esac
12913fi
12914WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12915if test -n "$WINDRES_FOR_TARGET"; then
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12917$as_echo "$WINDRES_FOR_TARGET" >&6; }
12918else
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920$as_echo "no" >&6; }
12921fi
12922
12923
12924fi
12925if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12926
12927
12928if test -n "$WINDRES_FOR_TARGET"; then
12929 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12930elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12931 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12932fi
12933
12934if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12935 for ncn_progname in windres; do
12936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12937set dummy ${ncn_progname}; ac_word=$2
12938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12939$as_echo_n "checking for $ac_word... " >&6; }
12940if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12941 $as_echo_n "(cached) " >&6
12942else
12943 if test -n "$WINDRES_FOR_TARGET"; then
12944 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12945else
12946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947for as_dir in $PATH
12948do
12949 IFS=$as_save_IFS
12950 test -z "$as_dir" && as_dir=.
12951 for ac_exec_ext in '' $ac_executable_extensions; do
12952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12953 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12955 break 2
12956 fi
12957done
12958 done
12959IFS=$as_save_IFS
12960
12961fi
12962fi
12963WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12964if test -n "$WINDRES_FOR_TARGET"; then
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12966$as_echo "$WINDRES_FOR_TARGET" >&6; }
12967else
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969$as_echo "no" >&6; }
12970fi
12971
12972
12973 done
12974fi
12975
12976if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12977 for ncn_progname in windres; do
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12979$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12980 if test -x $with_build_time_tools/${ncn_progname}; then
12981 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12983$as_echo "yes" >&6; }
12984 break
12985 else
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987$as_echo "no" >&6; }
12988 fi
12989 done
12990fi
12991
12992if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12993 for ncn_progname in windres; do
12994 if test -n "$ncn_target_tool_prefix"; then
12995 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12996set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998$as_echo_n "checking for $ac_word... " >&6; }
12999if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
13001else
13002 if test -n "$WINDRES_FOR_TARGET"; then
13003 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13004else
13005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006for as_dir in $PATH
13007do
13008 IFS=$as_save_IFS
13009 test -z "$as_dir" && as_dir=.
13010 for ac_exec_ext in '' $ac_executable_extensions; do
13011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13012 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13014 break 2
13015 fi
13016done
13017 done
13018IFS=$as_save_IFS
13019
13020fi
13021fi
13022WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13023if test -n "$WINDRES_FOR_TARGET"; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13025$as_echo "$WINDRES_FOR_TARGET" >&6; }
13026else
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028$as_echo "no" >&6; }
13029fi
13030
13031
13032 fi
13033 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13034 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13035set dummy ${ncn_progname}; ac_word=$2
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037$as_echo_n "checking for $ac_word... " >&6; }
13038if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13039 $as_echo_n "(cached) " >&6
13040else
13041 if test -n "$WINDRES_FOR_TARGET"; then
13042 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13043else
13044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045for as_dir in $PATH
13046do
13047 IFS=$as_save_IFS
13048 test -z "$as_dir" && as_dir=.
13049 for ac_exec_ext in '' $ac_executable_extensions; do
13050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13051 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13053 break 2
13054 fi
13055done
13056 done
13057IFS=$as_save_IFS
13058
13059fi
13060fi
13061WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13062if test -n "$WINDRES_FOR_TARGET"; then
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13064$as_echo "$WINDRES_FOR_TARGET" >&6; }
13065else
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067$as_echo "no" >&6; }
13068fi
13069
13070
13071 fi
13072 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13073 done
13074fi
13075
13076if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13077 set dummy windres
13078 if test $build = $target ; then
13079 WINDRES_FOR_TARGET="$2"
13080 else
13081 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13082 fi
13083else
13084 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13085fi
13086
13087else
13088 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13089fi
13090
13091
13092
13093
13094if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13095 if test -n "$with_build_time_tools"; then
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13097$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13098 if test -x $with_build_time_tools/windmc; then
13099 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13100 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13102$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13103 else
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105$as_echo "no" >&6; }
13106 fi
13107 elif test $build != $host && test $have_gcc_for_target = yes; then
13108 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13109 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13110 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13111 fi
13112fi
13113if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13114 # Extract the first word of "windmc", so it can be a program name with args.
13115set dummy windmc; ac_word=$2
13116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13117$as_echo_n "checking for $ac_word... " >&6; }
13118if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13119 $as_echo_n "(cached) " >&6
13120else
13121 case $WINDMC_FOR_TARGET in
13122 [\\/]* | ?:[\\/]*)
13123 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13124 ;;
13125 *)
13126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127for as_dir in $gcc_cv_tool_dirs
13128do
13129 IFS=$as_save_IFS
13130 test -z "$as_dir" && as_dir=.
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13133 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13135 break 2
13136 fi
13137done
13138 done
13139IFS=$as_save_IFS
13140
13141 ;;
13142esac
13143fi
13144WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13145if test -n "$WINDMC_FOR_TARGET"; then
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13147$as_echo "$WINDMC_FOR_TARGET" >&6; }
13148else
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13150$as_echo "no" >&6; }
13151fi
13152
13153
13154fi
13155if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13156
13157
13158if test -n "$WINDMC_FOR_TARGET"; then
13159 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13160elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13161 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13162fi
13163
13164if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13165 for ncn_progname in windmc; do
13166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13167set dummy ${ncn_progname}; ac_word=$2
13168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13169$as_echo_n "checking for $ac_word... " >&6; }
13170if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13172else
13173 if test -n "$WINDMC_FOR_TARGET"; then
13174 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13175else
13176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13177for as_dir in $PATH
13178do
13179 IFS=$as_save_IFS
13180 test -z "$as_dir" && as_dir=.
13181 for ac_exec_ext in '' $ac_executable_extensions; do
13182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13183 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13185 break 2
13186 fi
13187done
13188 done
13189IFS=$as_save_IFS
13190
13191fi
13192fi
13193WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13194if test -n "$WINDMC_FOR_TARGET"; then
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13196$as_echo "$WINDMC_FOR_TARGET" >&6; }
13197else
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199$as_echo "no" >&6; }
13200fi
13201
13202
13203 done
13204fi
13205
13206if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13207 for ncn_progname in windmc; do
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13209$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13210 if test -x $with_build_time_tools/${ncn_progname}; then
13211 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13213$as_echo "yes" >&6; }
13214 break
13215 else
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13217$as_echo "no" >&6; }
13218 fi
13219 done
13220fi
13221
13222if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13223 for ncn_progname in windmc; do
13224 if test -n "$ncn_target_tool_prefix"; then
13225 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13226set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13228$as_echo_n "checking for $ac_word... " >&6; }
13229if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13230 $as_echo_n "(cached) " >&6
13231else
13232 if test -n "$WINDMC_FOR_TARGET"; then
13233 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13234else
13235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13236for as_dir in $PATH
13237do
13238 IFS=$as_save_IFS
13239 test -z "$as_dir" && as_dir=.
13240 for ac_exec_ext in '' $ac_executable_extensions; do
13241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13242 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13244 break 2
13245 fi
13246done
13247 done
13248IFS=$as_save_IFS
13249
13250fi
13251fi
13252WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13253if test -n "$WINDMC_FOR_TARGET"; then
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13255$as_echo "$WINDMC_FOR_TARGET" >&6; }
13256else
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13258$as_echo "no" >&6; }
13259fi
13260
13261
13262 fi
13263 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13265set dummy ${ncn_progname}; ac_word=$2
13266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267$as_echo_n "checking for $ac_word... " >&6; }
13268if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13269 $as_echo_n "(cached) " >&6
13270else
13271 if test -n "$WINDMC_FOR_TARGET"; then
13272 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13273else
13274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275for as_dir in $PATH
13276do
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
13279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13281 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13283 break 2
13284 fi
13285done
13286 done
13287IFS=$as_save_IFS
13288
13289fi
13290fi
13291WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13292if test -n "$WINDMC_FOR_TARGET"; then
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13294$as_echo "$WINDMC_FOR_TARGET" >&6; }
13295else
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297$as_echo "no" >&6; }
13298fi
13299
13300
13301 fi
13302 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13303 done
13304fi
13305
13306if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13307 set dummy windmc
13308 if test $build = $target ; then
13309 WINDMC_FOR_TARGET="$2"
13310 else
13311 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13312 fi
13313else
13314 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13315fi
13316
13317else
13318 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13319fi
13320
13321
13322RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13323
13324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13325$as_echo_n "checking where to find the target ar... " >&6; }
13326if test "x${build}" != "x${host}" ; then
13327 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13328 # We already found the complete path
13329 ac_dir=`dirname $AR_FOR_TARGET`
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13331$as_echo "pre-installed in $ac_dir" >&6; }
13332 else
13333 # Canadian cross, just use what we found
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13335$as_echo "pre-installed" >&6; }
13336 fi
13337else
13338 ok=yes
13339 case " ${configdirs} " in
13340 *" binutils "*) ;;
13341 *) ok=no ;;
13342 esac
13343
13344 if test $ok = yes; then
13345 # An in-tree tool is available and we can use it
13346 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13348$as_echo "just compiled" >&6; }
13349 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13350 # We already found the complete path
13351 ac_dir=`dirname $AR_FOR_TARGET`
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13353$as_echo "pre-installed in $ac_dir" >&6; }
13354 elif test "x$target" = "x$host"; then
13355 # We can use an host tool
13356 AR_FOR_TARGET='$(AR)'
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13358$as_echo "host tool" >&6; }
13359 else
13360 # We need a cross tool
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13362$as_echo "pre-installed" >&6; }
13363 fi
13364fi
13365
13366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13367$as_echo_n "checking where to find the target as... " >&6; }
13368if test "x${build}" != "x${host}" ; then
13369 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13370 # We already found the complete path
13371 ac_dir=`dirname $AS_FOR_TARGET`
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13373$as_echo "pre-installed in $ac_dir" >&6; }
13374 else
13375 # Canadian cross, just use what we found
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13377$as_echo "pre-installed" >&6; }
13378 fi
13379else
13380 ok=yes
13381 case " ${configdirs} " in
13382 *" gas "*) ;;
13383 *) ok=no ;;
13384 esac
13385
13386 if test $ok = yes; then
13387 # An in-tree tool is available and we can use it
13388 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13390$as_echo "just compiled" >&6; }
13391 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13392 # We already found the complete path
13393 ac_dir=`dirname $AS_FOR_TARGET`
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13395$as_echo "pre-installed in $ac_dir" >&6; }
13396 elif test "x$target" = "x$host"; then
13397 # We can use an host tool
13398 AS_FOR_TARGET='$(AS)'
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13400$as_echo "host tool" >&6; }
13401 else
13402 # We need a cross tool
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13404$as_echo "pre-installed" >&6; }
13405 fi
13406fi
13407
13408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13409$as_echo_n "checking where to find the target cc... " >&6; }
13410if test "x${build}" != "x${host}" ; then
13411 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13412 # We already found the complete path
13413 ac_dir=`dirname $CC_FOR_TARGET`
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13415$as_echo "pre-installed in $ac_dir" >&6; }
13416 else
13417 # Canadian cross, just use what we found
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13419$as_echo "pre-installed" >&6; }
13420 fi
13421else
13422 ok=yes
13423 case " ${configdirs} " in
13424 *" gcc "*) ;;
13425 *) ok=no ;;
13426 esac
13427
13428 if test $ok = yes; then
13429 # An in-tree tool is available and we can use it
13430 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13432$as_echo "just compiled" >&6; }
13433 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13434 # We already found the complete path
13435 ac_dir=`dirname $CC_FOR_TARGET`
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13437$as_echo "pre-installed in $ac_dir" >&6; }
13438 elif test "x$target" = "x$host"; then
13439 # We can use an host tool
13440 CC_FOR_TARGET='$(CC)'
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13442$as_echo "host tool" >&6; }
13443 else
13444 # We need a cross tool
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13446$as_echo "pre-installed" >&6; }
13447 fi
13448fi
13449
13450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13451$as_echo_n "checking where to find the target c++... " >&6; }
13452if test "x${build}" != "x${host}" ; then
13453 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13454 # We already found the complete path
13455 ac_dir=`dirname $CXX_FOR_TARGET`
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13457$as_echo "pre-installed in $ac_dir" >&6; }
13458 else
13459 # Canadian cross, just use what we found
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13461$as_echo "pre-installed" >&6; }
13462 fi
13463else
13464 ok=yes
13465 case " ${configdirs} " in
13466 *" gcc "*) ;;
13467 *) ok=no ;;
13468 esac
13469 case ,${enable_languages}, in
13470 *,c++,*) ;;
13471 *) ok=no ;;
13472 esac
13473 if test $ok = yes; then
13474 # An in-tree tool is available and we can use it
13475 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13477$as_echo "just compiled" >&6; }
13478 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13479 # We already found the complete path
13480 ac_dir=`dirname $CXX_FOR_TARGET`
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13482$as_echo "pre-installed in $ac_dir" >&6; }
13483 elif test "x$target" = "x$host"; then
13484 # We can use an host tool
13485 CXX_FOR_TARGET='$(CXX)'
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13487$as_echo "host tool" >&6; }
13488 else
13489 # We need a cross tool
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13491$as_echo "pre-installed" >&6; }
13492 fi
13493fi
13494
13495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13496$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13497if test "x${build}" != "x${host}" ; then
13498 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13499 # We already found the complete path
13500 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13502$as_echo "pre-installed in $ac_dir" >&6; }
13503 else
13504 # Canadian cross, just use what we found
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13506$as_echo "pre-installed" >&6; }
13507 fi
13508else
13509 ok=yes
13510 case " ${configdirs} " in
13511 *" gcc "*) ;;
13512 *) ok=no ;;
13513 esac
13514 case ,${enable_languages}, in
13515 *,c++,*) ;;
13516 *) ok=no ;;
13517 esac
13518 if test $ok = yes; then
13519 # An in-tree tool is available and we can use it
13520 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'
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13522$as_echo "just compiled" >&6; }
13523 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13524 # We already found the complete path
13525 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13527$as_echo "pre-installed in $ac_dir" >&6; }
13528 elif test "x$target" = "x$host"; then
13529 # We can use an host tool
13530 RAW_CXX_FOR_TARGET='$(CXX)'
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13532$as_echo "host tool" >&6; }
13533 else
13534 # We need a cross tool
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13536$as_echo "pre-installed" >&6; }
13537 fi
13538fi
13539
13540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13541$as_echo_n "checking where to find the target dlltool... " >&6; }
13542if test "x${build}" != "x${host}" ; then
13543 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13544 # We already found the complete path
13545 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13547$as_echo "pre-installed in $ac_dir" >&6; }
13548 else
13549 # Canadian cross, just use what we found
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13551$as_echo "pre-installed" >&6; }
13552 fi
13553else
13554 ok=yes
13555 case " ${configdirs} " in
13556 *" binutils "*) ;;
13557 *) ok=no ;;
13558 esac
13559
13560 if test $ok = yes; then
13561 # An in-tree tool is available and we can use it
13562 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13564$as_echo "just compiled" >&6; }
13565 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13566 # We already found the complete path
13567 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13569$as_echo "pre-installed in $ac_dir" >&6; }
13570 elif test "x$target" = "x$host"; then
13571 # We can use an host tool
13572 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13574$as_echo "host tool" >&6; }
13575 else
13576 # We need a cross tool
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13578$as_echo "pre-installed" >&6; }
13579 fi
13580fi
13581
13582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13583$as_echo_n "checking where to find the target gcc... " >&6; }
13584if test "x${build}" != "x${host}" ; then
13585 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13586 # We already found the complete path
13587 ac_dir=`dirname $GCC_FOR_TARGET`
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13589$as_echo "pre-installed in $ac_dir" >&6; }
13590 else
13591 # Canadian cross, just use what we found
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13593$as_echo "pre-installed" >&6; }
13594 fi
13595else
13596 ok=yes
13597 case " ${configdirs} " in
13598 *" gcc "*) ;;
13599 *) ok=no ;;
13600 esac
13601
13602 if test $ok = yes; then
13603 # An in-tree tool is available and we can use it
13604 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13606$as_echo "just compiled" >&6; }
13607 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13608 # We already found the complete path
13609 ac_dir=`dirname $GCC_FOR_TARGET`
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13611$as_echo "pre-installed in $ac_dir" >&6; }
13612 elif test "x$target" = "x$host"; then
13613 # We can use an host tool
13614 GCC_FOR_TARGET='$()'
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13616$as_echo "host tool" >&6; }
13617 else
13618 # We need a cross tool
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13620$as_echo "pre-installed" >&6; }
13621 fi
13622fi
13623
13624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13625$as_echo_n "checking where to find the target gcj... " >&6; }
13626if test "x${build}" != "x${host}" ; then
13627 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13628 # We already found the complete path
13629 ac_dir=`dirname $GCJ_FOR_TARGET`
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13631$as_echo "pre-installed in $ac_dir" >&6; }
13632 else
13633 # Canadian cross, just use what we found
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13635$as_echo "pre-installed" >&6; }
13636 fi
13637else
13638 ok=yes
13639 case " ${configdirs} " in
13640 *" gcc "*) ;;
13641 *) ok=no ;;
13642 esac
13643 case ,${enable_languages}, in
13644 *,java,*) ;;
13645 *) ok=no ;;
13646 esac
13647 if test $ok = yes; then
13648 # An in-tree tool is available and we can use it
13649 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13651$as_echo "just compiled" >&6; }
13652 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13653 # We already found the complete path
13654 ac_dir=`dirname $GCJ_FOR_TARGET`
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13656$as_echo "pre-installed in $ac_dir" >&6; }
13657 elif test "x$target" = "x$host"; then
13658 # We can use an host tool
13659 GCJ_FOR_TARGET='$(GCJ)'
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13661$as_echo "host tool" >&6; }
13662 else
13663 # We need a cross tool
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13665$as_echo "pre-installed" >&6; }
13666 fi
13667fi
13668
13669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13670$as_echo_n "checking where to find the target gfortran... " >&6; }
13671if test "x${build}" != "x${host}" ; then
13672 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13673 # We already found the complete path
13674 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13676$as_echo "pre-installed in $ac_dir" >&6; }
13677 else
13678 # Canadian cross, just use what we found
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13680$as_echo "pre-installed" >&6; }
13681 fi
13682else
13683 ok=yes
13684 case " ${configdirs} " in
13685 *" gcc "*) ;;
13686 *) ok=no ;;
13687 esac
13688 case ,${enable_languages}, in
13689 *,fortran,*) ;;
13690 *) ok=no ;;
13691 esac
13692 if test $ok = yes; then
13693 # An in-tree tool is available and we can use it
13694 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13696$as_echo "just compiled" >&6; }
13697 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13698 # We already found the complete path
13699 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13701$as_echo "pre-installed in $ac_dir" >&6; }
13702 elif test "x$target" = "x$host"; then
13703 # We can use an host tool
13704 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13706$as_echo "host tool" >&6; }
13707 else
13708 # We need a cross tool
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13710$as_echo "pre-installed" >&6; }
13711 fi
13712fi
13713
13714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13715$as_echo_n "checking where to find the target gccgo... " >&6; }
13716if test "x${build}" != "x${host}" ; then
13717 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13718 # We already found the complete path
13719 ac_dir=`dirname $GOC_FOR_TARGET`
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13721$as_echo "pre-installed in $ac_dir" >&6; }
13722 else
13723 # Canadian cross, just use what we found
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13725$as_echo "pre-installed" >&6; }
13726 fi
13727else
13728 ok=yes
13729 case " ${configdirs} " in
13730 *" gcc "*) ;;
13731 *) ok=no ;;
13732 esac
13733 case ,${enable_languages}, in
13734 *,go,*) ;;
13735 *) ok=no ;;
13736 esac
13737 if test $ok = yes; then
13738 # An in-tree tool is available and we can use it
13739 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13741$as_echo "just compiled" >&6; }
13742 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13743 # We already found the complete path
13744 ac_dir=`dirname $GOC_FOR_TARGET`
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13746$as_echo "pre-installed in $ac_dir" >&6; }
13747 elif test "x$target" = "x$host"; then
13748 # We can use an host tool
13749 GOC_FOR_TARGET='$(GOC)'
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13751$as_echo "host tool" >&6; }
13752 else
13753 # We need a cross tool
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13755$as_echo "pre-installed" >&6; }
13756 fi
13757fi
13758
13759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13760$as_echo_n "checking where to find the target ld... " >&6; }
13761if test "x${build}" != "x${host}" ; then
13762 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13763 # We already found the complete path
13764 ac_dir=`dirname $LD_FOR_TARGET`
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13766$as_echo "pre-installed in $ac_dir" >&6; }
13767 else
13768 # Canadian cross, just use what we found
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13770$as_echo "pre-installed" >&6; }
13771 fi
13772else
13773 ok=yes
13774 case " ${configdirs} " in
13775 *" ld "*) ;;
13776 *) ok=no ;;
13777 esac
13778
13779 if test $ok = yes; then
13780 # An in-tree tool is available and we can use it
13781 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13783$as_echo "just compiled" >&6; }
13784 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13785 # We already found the complete path
13786 ac_dir=`dirname $LD_FOR_TARGET`
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13788$as_echo "pre-installed in $ac_dir" >&6; }
13789 elif test "x$target" = "x$host"; then
13790 # We can use an host tool
13791 LD_FOR_TARGET='$(LD)'
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13793$as_echo "host tool" >&6; }
13794 else
13795 # We need a cross tool
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13797$as_echo "pre-installed" >&6; }
13798 fi
13799fi
13800
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13802$as_echo_n "checking where to find the target lipo... " >&6; }
13803if test "x${build}" != "x${host}" ; then
13804 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13805 # We already found the complete path
13806 ac_dir=`dirname $LIPO_FOR_TARGET`
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13808$as_echo "pre-installed in $ac_dir" >&6; }
13809 else
13810 # Canadian cross, just use what we found
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13812$as_echo "pre-installed" >&6; }
13813 fi
13814else
13815 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13816 # We already found the complete path
13817 ac_dir=`dirname $LIPO_FOR_TARGET`
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13819$as_echo "pre-installed in $ac_dir" >&6; }
13820 elif test "x$target" = "x$host"; then
13821 # We can use an host tool
13822 LIPO_FOR_TARGET='$(LIPO)'
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13824$as_echo "host tool" >&6; }
13825 else
13826 # We need a cross tool
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13828$as_echo "pre-installed" >&6; }
13829 fi
13830fi
13831
13832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13833$as_echo_n "checking where to find the target nm... " >&6; }
13834if test "x${build}" != "x${host}" ; then
13835 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13836 # We already found the complete path
13837 ac_dir=`dirname $NM_FOR_TARGET`
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13839$as_echo "pre-installed in $ac_dir" >&6; }
13840 else
13841 # Canadian cross, just use what we found
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13843$as_echo "pre-installed" >&6; }
13844 fi
13845else
13846 ok=yes
13847 case " ${configdirs} " in
13848 *" binutils "*) ;;
13849 *) ok=no ;;
13850 esac
13851
13852 if test $ok = yes; then
13853 # An in-tree tool is available and we can use it
13854 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13856$as_echo "just compiled" >&6; }
13857 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13858 # We already found the complete path
13859 ac_dir=`dirname $NM_FOR_TARGET`
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13861$as_echo "pre-installed in $ac_dir" >&6; }
13862 elif test "x$target" = "x$host"; then
13863 # We can use an host tool
13864 NM_FOR_TARGET='$(NM)'
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13866$as_echo "host tool" >&6; }
13867 else
13868 # We need a cross tool
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13870$as_echo "pre-installed" >&6; }
13871 fi
13872fi
13873
13874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13875$as_echo_n "checking where to find the target objdump... " >&6; }
13876if test "x${build}" != "x${host}" ; then
13877 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13878 # We already found the complete path
13879 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13881$as_echo "pre-installed in $ac_dir" >&6; }
13882 else
13883 # Canadian cross, just use what we found
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13885$as_echo "pre-installed" >&6; }
13886 fi
13887else
13888 ok=yes
13889 case " ${configdirs} " in
13890 *" binutils "*) ;;
13891 *) ok=no ;;
13892 esac
13893
13894 if test $ok = yes; then
13895 # An in-tree tool is available and we can use it
13896 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13898$as_echo "just compiled" >&6; }
13899 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13900 # We already found the complete path
13901 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13903$as_echo "pre-installed in $ac_dir" >&6; }
13904 elif test "x$target" = "x$host"; then
13905 # We can use an host tool
13906 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13908$as_echo "host tool" >&6; }
13909 else
13910 # We need a cross tool
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13912$as_echo "pre-installed" >&6; }
13913 fi
13914fi
13915
13916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13917$as_echo_n "checking where to find the target ranlib... " >&6; }
13918if test "x${build}" != "x${host}" ; then
13919 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13920 # We already found the complete path
13921 ac_dir=`dirname $RANLIB_FOR_TARGET`
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13923$as_echo "pre-installed in $ac_dir" >&6; }
13924 else
13925 # Canadian cross, just use what we found
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13927$as_echo "pre-installed" >&6; }
13928 fi
13929else
13930 ok=yes
13931 case " ${configdirs} " in
13932 *" binutils "*) ;;
13933 *) ok=no ;;
13934 esac
13935
13936 if test $ok = yes; then
13937 # An in-tree tool is available and we can use it
13938 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13940$as_echo "just compiled" >&6; }
13941 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13942 # We already found the complete path
13943 ac_dir=`dirname $RANLIB_FOR_TARGET`
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13945$as_echo "pre-installed in $ac_dir" >&6; }
13946 elif test "x$target" = "x$host"; then
13947 # We can use an host tool
13948 RANLIB_FOR_TARGET='$(RANLIB)'
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13950$as_echo "host tool" >&6; }
13951 else
13952 # We need a cross tool
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13954$as_echo "pre-installed" >&6; }
13955 fi
13956fi
13957
13958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
13959$as_echo_n "checking where to find the target readelf... " >&6; }
13960if test "x${build}" != "x${host}" ; then
13961 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13962 # We already found the complete path
13963 ac_dir=`dirname $READELF_FOR_TARGET`
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13965$as_echo "pre-installed in $ac_dir" >&6; }
13966 else
13967 # Canadian cross, just use what we found
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13969$as_echo "pre-installed" >&6; }
13970 fi
13971else
13972 ok=yes
13973 case " ${configdirs} " in
13974 *" binutils "*) ;;
13975 *) ok=no ;;
13976 esac
13977
13978 if test $ok = yes; then
13979 # An in-tree tool is available and we can use it
13980 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13982$as_echo "just compiled" >&6; }
13983 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13984 # We already found the complete path
13985 ac_dir=`dirname $READELF_FOR_TARGET`
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13987$as_echo "pre-installed in $ac_dir" >&6; }
13988 elif test "x$target" = "x$host"; then
13989 # We can use an host tool
13990 READELF_FOR_TARGET='$(READELF)'
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13992$as_echo "host tool" >&6; }
13993 else
13994 # We need a cross tool
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13996$as_echo "pre-installed" >&6; }
13997 fi
13998fi
13999
14000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14001$as_echo_n "checking where to find the target strip... " >&6; }
14002if test "x${build}" != "x${host}" ; then
14003 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14004 # We already found the complete path
14005 ac_dir=`dirname $STRIP_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 else
14009 # Canadian cross, just use what we found
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14011$as_echo "pre-installed" >&6; }
14012 fi
14013else
14014 ok=yes
14015 case " ${configdirs} " in
14016 *" binutils "*) ;;
14017 *) ok=no ;;
14018 esac
14019
14020 if test $ok = yes; then
14021 # An in-tree tool is available and we can use it
14022 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14024$as_echo "just compiled" >&6; }
14025 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14026 # We already found the complete path
14027 ac_dir=`dirname $STRIP_FOR_TARGET`
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14029$as_echo "pre-installed in $ac_dir" >&6; }
14030 elif test "x$target" = "x$host"; then
14031 # We can use an host tool
14032 STRIP_FOR_TARGET='$(STRIP)'
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14034$as_echo "host tool" >&6; }
14035 else
14036 # We need a cross tool
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14038$as_echo "pre-installed" >&6; }
14039 fi
14040fi
14041
14042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14043$as_echo_n "checking where to find the target windres... " >&6; }
14044if test "x${build}" != "x${host}" ; then
14045 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14046 # We already found the complete path
14047 ac_dir=`dirname $WINDRES_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 else
14051 # Canadian cross, just use what we found
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14053$as_echo "pre-installed" >&6; }
14054 fi
14055else
14056 ok=yes
14057 case " ${configdirs} " in
14058 *" binutils "*) ;;
14059 *) ok=no ;;
14060 esac
14061
14062 if test $ok = yes; then
14063 # An in-tree tool is available and we can use it
14064 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14066$as_echo "just compiled" >&6; }
14067 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14068 # We already found the complete path
14069 ac_dir=`dirname $WINDRES_FOR_TARGET`
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14071$as_echo "pre-installed in $ac_dir" >&6; }
14072 elif test "x$target" = "x$host"; then
14073 # We can use an host tool
14074 WINDRES_FOR_TARGET='$(WINDRES)'
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14076$as_echo "host tool" >&6; }
14077 else
14078 # We need a cross tool
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14080$as_echo "pre-installed" >&6; }
14081 fi
14082fi
14083
14084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14085$as_echo_n "checking where to find the target windmc... " >&6; }
14086if test "x${build}" != "x${host}" ; then
14087 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14088 # We already found the complete path
14089 ac_dir=`dirname $WINDMC_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 else
14093 # Canadian cross, just use what we found
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14095$as_echo "pre-installed" >&6; }
14096 fi
14097else
14098 ok=yes
14099 case " ${configdirs} " in
14100 *" binutils "*) ;;
14101 *) ok=no ;;
14102 esac
14103
14104 if test $ok = yes; then
14105 # An in-tree tool is available and we can use it
14106 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14108$as_echo "just compiled" >&6; }
14109 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14110 # We already found the complete path
14111 ac_dir=`dirname $WINDMC_FOR_TARGET`
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14113$as_echo "pre-installed in $ac_dir" >&6; }
14114 elif test "x$target" = "x$host"; then
14115 # We can use an host tool
14116 WINDMC_FOR_TARGET='$(WINDMC)'
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14118$as_echo "host tool" >&6; }
14119 else
14120 # We need a cross tool
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14122$as_echo "pre-installed" >&6; }
14123 fi
14124fi
14125
14126
14127
14128
14129
14130# Certain tools may need extra flags.
14131AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14132RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14133NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14134
14135# When building target libraries, except in a Canadian cross, we use
14136# the same toolchain as the compiler we just built.
14137COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14138COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14139COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14140if test $host = $build; then
14141 case " $configdirs " in
14142 *" gcc "*)
14143 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14144 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14145 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14146 ;;
14147 esac
14148fi
14149
14150
14151
14152
14153
14154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14155$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14156# Check whether --enable-maintainer-mode was given.
14157if test "${enable_maintainer_mode+set}" = set; then :
14158 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14159else
14160 USE_MAINTAINER_MODE=no
14161fi
14162
14163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14164$as_echo "$USE_MAINTAINER_MODE" >&6; }
14165
14166
14167if test "$USE_MAINTAINER_MODE" = yes; then
14168 MAINTAINER_MODE_TRUE=
14169 MAINTAINER_MODE_FALSE='#'
14170else
14171 MAINTAINER_MODE_TRUE='#'
14172 MAINTAINER_MODE_FALSE=
14173fi
14174MAINT=$MAINTAINER_MODE_TRUE
14175
14176# ---------------------
14177# GCC bootstrap support
14178# ---------------------
14179
14180# Stage specific cflags for build.
14181stage1_cflags="-g"
14182case $build in
14183 vax-*-*)
14184 case ${GCC} in
14185 yes) stage1_cflags="-g -Wa,-J" ;;
14186 *) stage1_cflags="-g -J" ;;
14187 esac ;;
14188esac
14189
14190
14191
14192# Enable --enable-checking in stage1 of the compiler.
14193# Check whether --enable-stage1-checking was given.
14194if test "${enable_stage1_checking+set}" = set; then :
14195 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14196else
14197 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14198 stage1_checking=--enable-checking=yes,types
14199else
14200 stage1_checking=--enable-checking=$enable_checking,types
14201fi
14202fi
14203
14204
14205
14206# Enable -Werror in bootstrap stage2 and later.
14207# Check whether --enable-werror was given.
14208if test "${enable_werror+set}" = set; then :
14209 enableval=$enable_werror;
14210else
14211 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14212 enable_werror=yes
14213else
14214 enable_werror=no
14215fi
14216fi
14217
14218case ${enable_werror} in
14219 yes) stage2_werror_flag="--enable-werror-always" ;;
14220 *) stage2_werror_flag="" ;;
14221esac
14222
14223
14224# Specify what files to not compare during bootstrap.
14225
14226compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14227case "$target" in
14228 hppa*64*-*-hpux*) ;;
14229 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14230esac
14231
14232
14233ac_config_files="$ac_config_files Makefile"
14234
14235cat >confcache <<\_ACEOF
14236# This file is a shell script that caches the results of configure
14237# tests run on this system so they can be shared between configure
14238# scripts and configure runs, see configure's option --config-cache.
14239# It is not useful on other systems. If it contains results you don't
14240# want to keep, you may remove or edit it.
14241#
14242# config.status only pays attention to the cache file if you give it
14243# the --recheck option to rerun configure.
14244#
14245# `ac_cv_env_foo' variables (set or unset) will be overridden when
14246# loading this file, other *unset* `ac_cv_foo' will be assigned the
14247# following values.
14248
14249_ACEOF
14250
14251# The following way of writing the cache mishandles newlines in values,
14252# but we know of no workaround that is simple, portable, and efficient.
14253# So, we kill variables containing newlines.
14254# Ultrix sh set writes to stderr and can't be redirected directly,
14255# and sets the high bit in the cache file unless we assign to the vars.
14256(
14257 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14258 eval ac_val=\$$ac_var
14259 case $ac_val in #(
14260 *${as_nl}*)
14261 case $ac_var in #(
14262 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14263$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14264 esac
14265 case $ac_var in #(
14266 _ | IFS | as_nl) ;; #(
14267 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14268 *) { eval $ac_var=; unset $ac_var;} ;;
14269 esac ;;
14270 esac
14271 done
14272
14273 (set) 2>&1 |
14274 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14275 *${as_nl}ac_space=\ *)
14276 # `set' does not quote correctly, so add quotes: double-quote
14277 # substitution turns \\\\ into \\, and sed turns \\ into \.
14278 sed -n \
14279 "s/'/'\\\\''/g;
14280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14281 ;; #(
14282 *)
14283 # `set' quotes correctly as required by POSIX, so do not add quotes.
14284 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14285 ;;
14286 esac |
14287 sort
14288) |
14289 sed '
14290 /^ac_cv_env_/b end
14291 t clear
14292 :clear
14293 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14294 t end
14295 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14296 :end' >>confcache
14297if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14298 if test -w "$cache_file"; then
14299 test "x$cache_file" != "x/dev/null" &&
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14301$as_echo "$as_me: updating cache $cache_file" >&6;}
14302 cat confcache >$cache_file
14303 else
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14305$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14306 fi
14307fi
14308rm -f confcache
14309
14310test "x$prefix" = xNONE && prefix=$ac_default_prefix
14311# Let make expand exec_prefix.
14312test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14313
14314# Transform confdefs.h into DEFS.
14315# Protect against shell expansion while executing Makefile rules.
14316# Protect against Makefile macro expansion.
14317#
14318# If the first sed substitution is executed (which looks for macros that
14319# take arguments), then branch to the quote section. Otherwise,
14320# look for a macro that doesn't take arguments.
14321ac_script='
14322:mline
14323/\\$/{
14324 N
14325 s,\\\n,,
14326 b mline
14327}
14328t clear
14329:clear
14330s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14331t quote
14332s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14333t quote
14334b any
14335:quote
14336s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14337s/\[/\\&/g
14338s/\]/\\&/g
14339s/\$/$$/g
14340H
14341:any
14342${
14343 g
14344 s/^\n//
14345 s/\n/ /g
14346 p
14347}
14348'
14349DEFS=`sed -n "$ac_script" confdefs.h`
14350
14351
14352ac_libobjs=
14353ac_ltlibobjs=
14354for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14355 # 1. Remove the extension, and $U if already installed.
14356 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14357 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14358 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14359 # will be set to the directory where LIBOBJS objects are built.
14360 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14361 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14362done
14363LIBOBJS=$ac_libobjs
14364
14365LTLIBOBJS=$ac_ltlibobjs
14366
14367
14368
14369: ${CONFIG_STATUS=./config.status}
14370ac_write_fail=0
14371ac_clean_files_save=$ac_clean_files
14372ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14373{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14374$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14375as_write_fail=0
14376cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14377#! $SHELL
14378# Generated by $as_me.
14379# Run this file to recreate the current configuration.
14380# Compiler output produced by configure, useful for debugging
14381# configure, is in config.log if it exists.
14382
14383debug=false
14384ac_cs_recheck=false
14385ac_cs_silent=false
14386
14387SHELL=\${CONFIG_SHELL-$SHELL}
14388export SHELL
14389_ASEOF
14390cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14391## -------------------- ##
14392## M4sh Initialization. ##
14393## -------------------- ##
14394
14395# Be more Bourne compatible
14396DUALCASE=1; export DUALCASE # for MKS sh
14397if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14398 emulate sh
14399 NULLCMD=:
14400 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14401 # is contrary to our usage. Disable this feature.
14402 alias -g '${1+"$@"}'='"$@"'
14403 setopt NO_GLOB_SUBST
14404else
14405 case `(set -o) 2>/dev/null` in #(
14406 *posix*) :
14407 set -o posix ;; #(
14408 *) :
14409 ;;
14410esac
14411fi
14412
14413
14414as_nl='
14415'
14416export as_nl
14417# Printing a long string crashes Solaris 7 /usr/bin/printf.
14418as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14419as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14420as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14421# Prefer a ksh shell builtin over an external printf program on Solaris,
14422# but without wasting forks for bash or zsh.
14423if test -z "$BASH_VERSION$ZSH_VERSION" \
14424 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14425 as_echo='print -r --'
14426 as_echo_n='print -rn --'
14427elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14428 as_echo='printf %s\n'
14429 as_echo_n='printf %s'
14430else
14431 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14432 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14433 as_echo_n='/usr/ucb/echo -n'
14434 else
14435 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14436 as_echo_n_body='eval
14437 arg=$1;
14438 case $arg in #(
14439 *"$as_nl"*)
14440 expr "X$arg" : "X\\(.*\\)$as_nl";
14441 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14442 esac;
14443 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14444 '
14445 export as_echo_n_body
14446 as_echo_n='sh -c $as_echo_n_body as_echo'
14447 fi
14448 export as_echo_body
14449 as_echo='sh -c $as_echo_body as_echo'
14450fi
14451
14452# The user is always right.
14453if test "${PATH_SEPARATOR+set}" != set; then
14454 PATH_SEPARATOR=:
14455 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14456 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14457 PATH_SEPARATOR=';'
14458 }
14459fi
14460
14461
14462# IFS
14463# We need space, tab and new line, in precisely that order. Quoting is
14464# there to prevent editors from complaining about space-tab.
14465# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14466# splitting by setting IFS to empty value.)
14467IFS=" "" $as_nl"
14468
14469# Find who we are. Look in the path if we contain no directory separator.
14470case $0 in #((
14471 *[\\/]* ) as_myself=$0 ;;
14472 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14473for as_dir in $PATH
14474do
14475 IFS=$as_save_IFS
14476 test -z "$as_dir" && as_dir=.
14477 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14478 done
14479IFS=$as_save_IFS
14480
14481 ;;
14482esac
14483# We did not find ourselves, most probably we were run as `sh COMMAND'
14484# in which case we are not to be found in the path.
14485if test "x$as_myself" = x; then
14486 as_myself=$0
14487fi
14488if test ! -f "$as_myself"; then
14489 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14490 exit 1
14491fi
14492
14493# Unset variables that we do not need and which cause bugs (e.g. in
14494# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14495# suppresses any "Segmentation fault" message there. '((' could
14496# trigger a bug in pdksh 5.2.14.
14497for as_var in BASH_ENV ENV MAIL MAILPATH
14498do eval test x\${$as_var+set} = xset \
14499 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14500done
14501PS1='$ '
14502PS2='> '
14503PS4='+ '
14504
14505# NLS nuisances.
14506LC_ALL=C
14507export LC_ALL
14508LANGUAGE=C
14509export LANGUAGE
14510
14511# CDPATH.
14512(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14513
14514
14515# as_fn_error ERROR [LINENO LOG_FD]
14516# ---------------------------------
14517# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14518# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14519# script with status $?, using 1 if that was 0.
14520as_fn_error ()
14521{
14522 as_status=$?; test $as_status -eq 0 && as_status=1
14523 if test "$3"; then
14524 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14525 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14526 fi
14527 $as_echo "$as_me: error: $1" >&2
14528 as_fn_exit $as_status
14529} # as_fn_error
14530
14531
14532# as_fn_set_status STATUS
14533# -----------------------
14534# Set $? to STATUS, without forking.
14535as_fn_set_status ()
14536{
14537 return $1
14538} # as_fn_set_status
14539
14540# as_fn_exit STATUS
14541# -----------------
14542# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14543as_fn_exit ()
14544{
14545 set +e
14546 as_fn_set_status $1
14547 exit $1
14548} # as_fn_exit
14549
14550# as_fn_unset VAR
14551# ---------------
14552# Portably unset VAR.
14553as_fn_unset ()
14554{
14555 { eval $1=; unset $1;}
14556}
14557as_unset=as_fn_unset
14558# as_fn_append VAR VALUE
14559# ----------------------
14560# Append the text in VALUE to the end of the definition contained in VAR. Take
14561# advantage of any shell optimizations that allow amortized linear growth over
14562# repeated appends, instead of the typical quadratic growth present in naive
14563# implementations.
14564if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14565 eval 'as_fn_append ()
14566 {
14567 eval $1+=\$2
14568 }'
14569else
14570 as_fn_append ()
14571 {
14572 eval $1=\$$1\$2
14573 }
14574fi # as_fn_append
14575
14576# as_fn_arith ARG...
14577# ------------------
14578# Perform arithmetic evaluation on the ARGs, and store the result in the
14579# global $as_val. Take advantage of shells that can avoid forks. The arguments
14580# must be portable across $(()) and expr.
14581if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14582 eval 'as_fn_arith ()
14583 {
14584 as_val=$(( $* ))
14585 }'
14586else
14587 as_fn_arith ()
14588 {
14589 as_val=`expr "$@" || test $? -eq 1`
14590 }
14591fi # as_fn_arith
14592
14593
14594if expr a : '\(a\)' >/dev/null 2>&1 &&
14595 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14596 as_expr=expr
14597else
14598 as_expr=false
14599fi
14600
14601if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14602 as_basename=basename
14603else
14604 as_basename=false
14605fi
14606
14607if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14608 as_dirname=dirname
14609else
14610 as_dirname=false
14611fi
14612
14613as_me=`$as_basename -- "$0" ||
14614$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14615 X"$0" : 'X\(//\)$' \| \
14616 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14617$as_echo X/"$0" |
14618 sed '/^.*\/\([^/][^/]*\)\/*$/{
14619 s//\1/
14620 q
14621 }
14622 /^X\/\(\/\/\)$/{
14623 s//\1/
14624 q
14625 }
14626 /^X\/\(\/\).*/{
14627 s//\1/
14628 q
14629 }
14630 s/.*/./; q'`
14631
14632# Avoid depending upon Character Ranges.
14633as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14634as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14635as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14636as_cr_digits='0123456789'
14637as_cr_alnum=$as_cr_Letters$as_cr_digits
14638
14639ECHO_C= ECHO_N= ECHO_T=
14640case `echo -n x` in #(((((
14641-n*)
14642 case `echo 'xy\c'` in
14643 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14644 xy) ECHO_C='\c';;
14645 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14646 ECHO_T=' ';;
14647 esac;;
14648*)
14649 ECHO_N='-n';;
14650esac
14651
14652rm -f conf$$ conf$$.exe conf$$.file
14653if test -d conf$$.dir; then
14654 rm -f conf$$.dir/conf$$.file
14655else
14656 rm -f conf$$.dir
14657 mkdir conf$$.dir 2>/dev/null
14658fi
14659if (echo >conf$$.file) 2>/dev/null; then
14660 if ln -s conf$$.file conf$$ 2>/dev/null; then
14661 as_ln_s='ln -s'
14662 # ... but there are two gotchas:
14663 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14664 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14665 # In both cases, we have to default to `cp -p'.
14666 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14667 as_ln_s='cp -p'
14668 elif ln conf$$.file conf$$ 2>/dev/null; then
14669 as_ln_s=ln
14670 else
14671 as_ln_s='cp -p'
14672 fi
14673else
14674 as_ln_s='cp -p'
14675fi
14676rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14677rmdir conf$$.dir 2>/dev/null
14678
14679
14680# as_fn_mkdir_p
14681# -------------
14682# Create "$as_dir" as a directory, including parents if necessary.
14683as_fn_mkdir_p ()
14684{
14685
14686 case $as_dir in #(
14687 -*) as_dir=./$as_dir;;
14688 esac
14689 test -d "$as_dir" || eval $as_mkdir_p || {
14690 as_dirs=
14691 while :; do
14692 case $as_dir in #(
14693 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14694 *) as_qdir=$as_dir;;
14695 esac
14696 as_dirs="'$as_qdir' $as_dirs"
14697 as_dir=`$as_dirname -- "$as_dir" ||
14698$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14699 X"$as_dir" : 'X\(//\)[^/]' \| \
14700 X"$as_dir" : 'X\(//\)$' \| \
14701 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14702$as_echo X"$as_dir" |
14703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14704 s//\1/
14705 q
14706 }
14707 /^X\(\/\/\)[^/].*/{
14708 s//\1/
14709 q
14710 }
14711 /^X\(\/\/\)$/{
14712 s//\1/
14713 q
14714 }
14715 /^X\(\/\).*/{
14716 s//\1/
14717 q
14718 }
14719 s/.*/./; q'`
14720 test -d "$as_dir" && break
14721 done
14722 test -z "$as_dirs" || eval "mkdir $as_dirs"
14723 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14724
14725
14726} # as_fn_mkdir_p
14727if mkdir -p . 2>/dev/null; then
14728 as_mkdir_p='mkdir -p "$as_dir"'
14729else
14730 test -d ./-p && rmdir ./-p
14731 as_mkdir_p=false
14732fi
14733
14734if test -x / >/dev/null 2>&1; then
14735 as_test_x='test -x'
14736else
14737 if ls -dL / >/dev/null 2>&1; then
14738 as_ls_L_option=L
14739 else
14740 as_ls_L_option=
14741 fi
14742 as_test_x='
14743 eval sh -c '\''
14744 if test -d "$1"; then
14745 test -d "$1/.";
14746 else
14747 case $1 in #(
14748 -*)set "./$1";;
14749 esac;
14750 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14751 ???[sx]*):;;*)false;;esac;fi
14752 '\'' sh
14753 '
14754fi
14755as_executable_p=$as_test_x
14756
14757# Sed expression to map a string onto a valid CPP name.
14758as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14759
14760# Sed expression to map a string onto a valid variable name.
14761as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14762
14763
14764exec 6>&1
14765## ----------------------------------- ##
14766## Main body of $CONFIG_STATUS script. ##
14767## ----------------------------------- ##
14768_ASEOF
14769test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14770
14771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14772# Save the log message, to keep $0 and so on meaningful, and to
14773# report actual input values of CONFIG_FILES etc. instead of their
14774# values after options handling.
14775ac_log="
14776This file was extended by $as_me, which was
14777generated by GNU Autoconf 2.64. Invocation command line was
14778
14779 CONFIG_FILES = $CONFIG_FILES
14780 CONFIG_HEADERS = $CONFIG_HEADERS
14781 CONFIG_LINKS = $CONFIG_LINKS
14782 CONFIG_COMMANDS = $CONFIG_COMMANDS
14783 $ $0 $@
14784
14785on `(hostname || uname -n) 2>/dev/null | sed 1q`
14786"
14787
14788_ACEOF
14789
14790case $ac_config_files in *"
14791"*) set x $ac_config_files; shift; ac_config_files=$*;;
14792esac
14793
14794
14795
14796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14797# Files that config.status was made for.
14798config_files="$ac_config_files"
14799
14800_ACEOF
14801
14802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14803ac_cs_usage="\
14804\`$as_me' instantiates files and other configuration actions
14805from templates according to the current configuration. Unless the files
14806and actions are specified as TAGs, all are instantiated by default.
14807
14808Usage: $0 [OPTION]... [TAG]...
14809
14810 -h, --help print this help, then exit
14811 -V, --version print version number and configuration settings, then exit
14812 -q, --quiet, --silent
14813 do not print progress messages
14814 -d, --debug don't remove temporary files
14815 --recheck update $as_me by reconfiguring in the same conditions
14816 --file=FILE[:TEMPLATE]
14817 instantiate the configuration file FILE
14818
14819Configuration files:
14820$config_files
14821
14822Report bugs to the package provider."
14823
14824_ACEOF
14825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14826ac_cs_version="\\
14827config.status
14828configured by $0, generated by GNU Autoconf 2.64,
14829 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14830
14831Copyright (C) 2009 Free Software Foundation, Inc.
14832This config.status script is free software; the Free Software Foundation
14833gives unlimited permission to copy, distribute and modify it."
14834
14835ac_pwd='$ac_pwd'
14836srcdir='$srcdir'
14837INSTALL='$INSTALL'
14838AWK='$AWK'
14839test -n "\$AWK" || AWK=awk
14840_ACEOF
14841
14842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14843# The default lists apply if the user does not specify any file.
14844ac_need_defaults=:
14845while test $# != 0
14846do
14847 case $1 in
14848 --*=*)
14849 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14850 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14851 ac_shift=:
14852 ;;
14853 *)
14854 ac_option=$1
14855 ac_optarg=$2
14856 ac_shift=shift
14857 ;;
14858 esac
14859
14860 case $ac_option in
14861 # Handling of the options.
14862 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14863 ac_cs_recheck=: ;;
14864 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14865 $as_echo "$ac_cs_version"; exit ;;
14866 --debug | --debu | --deb | --de | --d | -d )
14867 debug=: ;;
14868 --file | --fil | --fi | --f )
14869 $ac_shift
14870 case $ac_optarg in
14871 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14872 esac
14873 as_fn_append CONFIG_FILES " '$ac_optarg'"
14874 ac_need_defaults=false;;
14875 --he | --h | --help | --hel | -h )
14876 $as_echo "$ac_cs_usage"; exit ;;
14877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14878 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14879 ac_cs_silent=: ;;
14880
14881 # This is an error.
14882 -*) as_fn_error "unrecognized option: \`$1'
14883Try \`$0 --help' for more information." ;;
14884
14885 *) as_fn_append ac_config_targets " $1"
14886 ac_need_defaults=false ;;
14887
14888 esac
14889 shift
14890done
14891
14892ac_configure_extra_args=
14893
14894if $ac_cs_silent; then
14895 exec 6>/dev/null
14896 ac_configure_extra_args="$ac_configure_extra_args --silent"
14897fi
14898
14899_ACEOF
14900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14901if \$ac_cs_recheck; then
14902 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14903 shift
14904 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14905 CONFIG_SHELL='$SHELL'
14906 export CONFIG_SHELL
14907 exec "\$@"
14908fi
14909
14910_ACEOF
14911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14912exec 5>>config.log
14913{
14914 echo
14915 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14916## Running $as_me. ##
14917_ASBOX
14918 $as_echo "$ac_log"
14919} >&5
14920
14921_ACEOF
14922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14923#
14924# INIT-COMMANDS
14925#
14926extrasub_build="$extrasub_build"
14927 extrasub_host="$extrasub_host"
14928 extrasub_target="$extrasub_target"
14929
14930_ACEOF
14931
14932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14933
14934# Handling of arguments.
14935for ac_config_target in $ac_config_targets
14936do
14937 case $ac_config_target in
14938 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14939
14940 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14941 esac
14942done
14943
14944
14945# If the user did not use the arguments to specify the items to instantiate,
14946# then the envvar interface is used. Set only those that are not.
14947# We use the long form for the default assignment because of an extremely
14948# bizarre bug on SunOS 4.1.3.
14949if $ac_need_defaults; then
14950 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14951fi
14952
14953# Have a temporary directory for convenience. Make it in the build tree
14954# simply because there is no reason against having it here, and in addition,
14955# creating and moving files from /tmp can sometimes cause problems.
14956# Hook for its removal unless debugging.
14957# Note that there is a small window in which the directory will not be cleaned:
14958# after its creation but before its name has been assigned to `$tmp'.
14959$debug ||
14960{
14961 tmp=
14962 trap 'exit_status=$?
14963 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14964' 0
14965 trap 'as_fn_exit 1' 1 2 13 15
14966}
14967# Create a (secure) tmp directory for tmp files.
14968
14969{
14970 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14971 test -n "$tmp" && test -d "$tmp"
14972} ||
14973{
14974 tmp=./conf$$-$RANDOM
14975 (umask 077 && mkdir "$tmp")
14976} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14977
14978# Set up the scripts for CONFIG_FILES section.
14979# No need to generate them if there are no CONFIG_FILES.
14980# This happens for instance with `./config.status config.h'.
14981if test -n "$CONFIG_FILES"; then
14982
14983if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14984 ac_cs_awk_getline=:
14985 ac_cs_awk_pipe_init=
14986 ac_cs_awk_read_file='
14987 while ((getline aline < (F[key])) > 0)
14988 print(aline)
14989 close(F[key])'
14990 ac_cs_awk_pipe_fini=
14991else
14992 ac_cs_awk_getline=false
14993 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14994 ac_cs_awk_read_file='
14995 print "|#_!!_#|"
14996 print "cat " F[key] " &&"
14997 '$ac_cs_awk_pipe_init
14998 # The final `:' finishes the AND list.
14999 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15000fi
15001ac_cr=`echo X | tr X '\015'`
15002# On cygwin, bash can eat \r inside `` if the user requested igncr.
15003# But we know of no other shell where ac_cr would be empty at this
15004# point, so we can use a bashism as a fallback.
15005if test "x$ac_cr" = x; then
15006 eval ac_cr=\$\'\\r\'
15007fi
15008ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15009if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15010 ac_cs_awk_cr='\r'
15011else
15012 ac_cs_awk_cr=$ac_cr
15013fi
15014
15015echo 'BEGIN {' >"$tmp/subs1.awk" &&
15016_ACEOF
15017
15018# Create commands to substitute file output variables.
15019{
15020 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15021 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15022 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15023 echo "_ACAWK" &&
15024 echo "_ACEOF"
15025} >conf$$files.sh &&
15026. ./conf$$files.sh ||
15027 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15028rm -f conf$$files.sh
15029
15030{
15031 echo "cat >conf$$subs.awk <<_ACEOF" &&
15032 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15033 echo "_ACEOF"
15034} >conf$$subs.sh ||
15035 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15036ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15037ac_delim='%!_!# '
15038for ac_last_try in false false false false false :; do
15039 . ./conf$$subs.sh ||
15040 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15041
15042 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15043 if test $ac_delim_n = $ac_delim_num; then
15044 break
15045 elif $ac_last_try; then
15046 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15047 else
15048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15049 fi
15050done
15051rm -f conf$$subs.sh
15052
15053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15054cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15055_ACEOF
15056sed -n '
15057h
15058s/^/S["/; s/!.*/"]=/
15059p
15060g
15061s/^[^!]*!//
15062:repl
15063t repl
15064s/'"$ac_delim"'$//
15065t delim
15066:nl
15067h
15068s/\(.\{148\}\).*/\1/
15069t more1
15070s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15071p
15072n
15073b repl
15074:more1
15075s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15076p
15077g
15078s/.\{148\}//
15079t nl
15080:delim
15081h
15082s/\(.\{148\}\).*/\1/
15083t more2
15084s/["\\]/\\&/g; s/^/"/; s/$/"/
15085p
15086b
15087:more2
15088s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15089p
15090g
15091s/.\{148\}//
15092t delim
15093' <conf$$subs.awk | sed '
15094/^[^""]/{
15095 N
15096 s/\n//
15097}
15098' >>$CONFIG_STATUS || ac_write_fail=1
15099rm -f conf$$subs.awk
15100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15101_ACAWK
15102cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15103 for (key in S) S_is_set[key] = 1
15104 FS = "\a"
15105 \$ac_cs_awk_pipe_init
15106}
15107{
15108 line = $ 0
15109 nfields = split(line, field, "@")
15110 substed = 0
15111 len = length(field[1])
15112 for (i = 2; i < nfields; i++) {
15113 key = field[i]
15114 keylen = length(key)
15115 if (S_is_set[key]) {
15116 value = S[key]
15117 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15118 len += length(value) + length(field[++i])
15119 substed = 1
15120 } else
15121 len += 1 + keylen
15122 }
15123 if (nfields == 3 && !substed) {
15124 key = field[2]
15125 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15126 \$ac_cs_awk_read_file
15127 next
15128 }
15129 }
15130 print line
15131}
15132\$ac_cs_awk_pipe_fini
15133_ACAWK
15134_ACEOF
15135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15136if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15137 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15138else
15139 cat
15140fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15141 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15142_ACEOF
15143
15144# VPATH may cause trouble with some makes, so we remove $(srcdir),
15145# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15146# trailing colons and then remove the whole line if VPATH becomes empty
15147# (actually we leave an empty line to preserve line numbers).
15148if test "x$srcdir" = x.; then
15149 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15150s/:*\$(srcdir):*/:/
15151s/:*\${srcdir}:*/:/
15152s/:*@srcdir@:*/:/
15153s/^\([^=]*=[ ]*\):*/\1/
15154s/:*$//
15155s/^[^=]*=[ ]*$//
15156}'
15157fi
15158
15159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15160fi # test -n "$CONFIG_FILES"
15161
15162
15163eval set X " :F $CONFIG_FILES "
15164shift
15165for ac_tag
15166do
15167 case $ac_tag in
15168 :[FHLC]) ac_mode=$ac_tag; continue;;
15169 esac
15170 case $ac_mode$ac_tag in
15171 :[FHL]*:*);;
15172 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15173 :[FH]-) ac_tag=-:-;;
15174 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15175 esac
15176 ac_save_IFS=$IFS
15177 IFS=:
15178 set x $ac_tag
15179 IFS=$ac_save_IFS
15180 shift
15181 ac_file=$1
15182 shift
15183
15184 case $ac_mode in
15185 :L) ac_source=$1;;
15186 :[FH])
15187 ac_file_inputs=
15188 for ac_f
15189 do
15190 case $ac_f in
15191 -) ac_f="$tmp/stdin";;
15192 *) # Look for the file first in the build tree, then in the source tree
15193 # (if the path is not absolute). The absolute path cannot be DOS-style,
15194 # because $ac_f cannot contain `:'.
15195 test -f "$ac_f" ||
15196 case $ac_f in
15197 [\\/$]*) false;;
15198 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15199 esac ||
15200 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15201 esac
15202 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15203 as_fn_append ac_file_inputs " '$ac_f'"
15204 done
15205
15206 # Let's still pretend it is `configure' which instantiates (i.e., don't
15207 # use $as_me), people would be surprised to read:
15208 # /* config.h. Generated by config.status. */
15209 configure_input='Generated from '`
15210 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15211 `' by configure.'
15212 if test x"$ac_file" != x-; then
15213 configure_input="$ac_file. $configure_input"
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15215$as_echo "$as_me: creating $ac_file" >&6;}
15216 fi
15217 # Neutralize special characters interpreted by sed in replacement strings.
15218 case $configure_input in #(
15219 *\&* | *\|* | *\\* )
15220 ac_sed_conf_input=`$as_echo "$configure_input" |
15221 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15222 *) ac_sed_conf_input=$configure_input;;
15223 esac
15224
15225 case $ac_tag in
15226 *:-:* | *:-) cat >"$tmp/stdin" \
15227 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15228 esac
15229 ;;
15230 esac
15231
15232 ac_dir=`$as_dirname -- "$ac_file" ||
15233$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15234 X"$ac_file" : 'X\(//\)[^/]' \| \
15235 X"$ac_file" : 'X\(//\)$' \| \
15236 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15237$as_echo X"$ac_file" |
15238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15239 s//\1/
15240 q
15241 }
15242 /^X\(\/\/\)[^/].*/{
15243 s//\1/
15244 q
15245 }
15246 /^X\(\/\/\)$/{
15247 s//\1/
15248 q
15249 }
15250 /^X\(\/\).*/{
15251 s//\1/
15252 q
15253 }
15254 s/.*/./; q'`
15255 as_dir="$ac_dir"; as_fn_mkdir_p
15256 ac_builddir=.
15257
15258case "$ac_dir" in
15259.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15260*)
15261 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15262 # A ".." for each directory in $ac_dir_suffix.
15263 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15264 case $ac_top_builddir_sub in
15265 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15266 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15267 esac ;;
15268esac
15269ac_abs_top_builddir=$ac_pwd
15270ac_abs_builddir=$ac_pwd$ac_dir_suffix
15271# for backward compatibility:
15272ac_top_builddir=$ac_top_build_prefix
15273
15274case $srcdir in
15275 .) # We are building in place.
15276 ac_srcdir=.
15277 ac_top_srcdir=$ac_top_builddir_sub
15278 ac_abs_top_srcdir=$ac_pwd ;;
15279 [\\/]* | ?:[\\/]* ) # Absolute name.
15280 ac_srcdir=$srcdir$ac_dir_suffix;
15281 ac_top_srcdir=$srcdir
15282 ac_abs_top_srcdir=$srcdir ;;
15283 *) # Relative name.
15284 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15285 ac_top_srcdir=$ac_top_build_prefix$srcdir
15286 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15287esac
15288ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15289
15290
15291 case $ac_mode in
15292 :F)
15293 #
15294 # CONFIG_FILE
15295 #
15296
15297 case $INSTALL in
15298 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15299 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15300 esac
15301_ACEOF
15302
15303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15304# If the template does not know about datarootdir, expand it.
15305# FIXME: This hack should be removed a few years after 2.60.
15306ac_datarootdir_hack=; ac_datarootdir_seen=
15307ac_sed_dataroot='
15308/datarootdir/ {
15309 p
15310 q
15311}
15312/@datadir@/p
15313/@docdir@/p
15314/@infodir@/p
15315/@localedir@/p
15316/@mandir@/p'
15317case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15318*datarootdir*) ac_datarootdir_seen=yes;;
15319*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15321$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15322_ACEOF
15323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15324 ac_datarootdir_hack='
15325 s&@datadir@&$datadir&g
15326 s&@docdir@&$docdir&g
15327 s&@infodir@&$infodir&g
15328 s&@localedir@&$localedir&g
15329 s&@mandir@&$mandir&g
15330 s&\\\${datarootdir}&$datarootdir&g' ;;
15331esac
15332_ACEOF
15333
15334# Neutralize VPATH when `$srcdir' = `.'.
15335# Shell code in configure.ac might set extrasub.
15336# FIXME: do we really want to maintain this feature?
15337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15338ac_sed_extra="$ac_vpsub
15339$extrasub
15340_ACEOF
15341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15342:t
15343/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15344s|@configure_input@|$ac_sed_conf_input|;t t
15345s&@top_builddir@&$ac_top_builddir_sub&;t t
15346s&@top_build_prefix@&$ac_top_build_prefix&;t t
15347s&@srcdir@&$ac_srcdir&;t t
15348s&@abs_srcdir@&$ac_abs_srcdir&;t t
15349s&@top_srcdir@&$ac_top_srcdir&;t t
15350s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15351s&@builddir@&$ac_builddir&;t t
15352s&@abs_builddir@&$ac_abs_builddir&;t t
15353s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15354s&@INSTALL@&$ac_INSTALL&;t t
15355$ac_datarootdir_hack
15356"
15357eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15358if $ac_cs_awk_getline; then
15359 $AWK -f "$tmp/subs.awk"
15360else
15361 $AWK -f "$tmp/subs.awk" | $SHELL
15362fi >$tmp/out \
15363 || as_fn_error "could not create $ac_file" "$LINENO" 5
15364
15365test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15366 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15369which seems to be undefined. Please make sure it is defined." >&5
15370$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15371which seems to be undefined. Please make sure it is defined." >&2;}
15372
15373 rm -f "$tmp/stdin"
15374 case $ac_file in
15375 -) cat "$tmp/out" && rm -f "$tmp/out";;
15376 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15377 esac \
15378 || as_fn_error "could not create $ac_file" "$LINENO" 5
15379 ;;
15380
15381
15382
15383 esac
15384
15385
15386 case $ac_file$ac_mode in
15387 "Makefile":F) sed "$extrasub_build" Makefile |
15388 sed "$extrasub_host" |
15389 sed "$extrasub_target" > mf$$
15390 mv -f mf$$ Makefile ;;
15391
15392 esac
15393done # for ac_tag
15394
15395
15396as_fn_exit 0
15397_ACEOF
15398ac_clean_files=$ac_clean_files_save
15399
15400test $ac_write_fail = 0 ||
15401 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15402
15403
15404# configure is writing to config.log, and then calls config.status.
15405# config.status does its own redirection, appending to config.log.
15406# Unfortunately, on DOS this fails, as config.log is still kept open
15407# by configure, so config.status won't be able to write to it; its
15408# output is simply discarded. So we exec the FD to /dev/null,
15409# effectively closing config.log, so it can be properly (re)opened and
15410# appended to by config.status. When coming back to configure, we
15411# need to make the FD available again.
15412if test "$no_create" != yes; then
15413 ac_cs_success=:
15414 ac_config_status_args=
15415 test "$silent" = yes &&
15416 ac_config_status_args="$ac_config_status_args --quiet"
15417 exec 5>/dev/null
15418 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15419 exec 5>>config.log
15420 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15421 # would make configure fail if this is the last instruction.
15422 $ac_cs_success || as_fn_exit $?
15423fi
15424if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15426$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15427fi
15428