]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
[thirdparty/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
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.
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
RW
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 :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
RW
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 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
RW
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
c6b750e1
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
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'\" &&
8e957354
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
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
c6b750e1 184do
81ecdfbb
RW
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."
c6b750e1 228 else
81ecdfbb
RW
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."
c6b750e1 233 fi
81ecdfbb
RW
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
c6b750e1 263
81ecdfbb
RW
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
c6b750e1
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c6b750e1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
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'`
c6b750e1 410
c6b750e1
DJ
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
c6b750e1 418
81ecdfbb
RW
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 |
c6b750e1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
c6b750e1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 436 t loop
81ecdfbb 437 s/-\n.*//
c6b750e1 438 ' >$as_me.lineno &&
81ecdfbb
RW
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; }
c6b750e1
DJ
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
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
c6b750e1
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
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';;
c6b750e1
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
c6b750e1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
c6b750e1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 472 as_ln_s='ln -s'
81ecdfbb
RW
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'
c6b750e1 483 fi
c6b750e1
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
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
c6b750e1
DJ
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
81ecdfbb 527exec 7<&0 </dev/null 6>&1
a0da8069 528
c6b750e1
DJ
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
c6b750e1
DJ
534#
535# Initializations.
536#
a0da8069 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
c6b750e1 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
c6b750e1
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
c6b750e1
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
c6b750e1
DJ
553
554ac_unique_file="move-if-change"
81ecdfbb
RW
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
b121d7d4 573READELF_FOR_TARGET
81ecdfbb
RW
574RANLIB_FOR_TARGET
575OBJDUMP_FOR_TARGET
576NM_FOR_TARGET
577LIPO_FOR_TARGET
578LD_FOR_TARGET
579DLLTOOL_FOR_TARGET
580AS_FOR_TARGET
581AR_FOR_TARGET
e552509b 582GOC_FOR_TARGET
81ecdfbb
RW
583GFORTRAN_FOR_TARGET
584GCJ_FOR_TARGET
585GCC_FOR_TARGET
586CXX_FOR_TARGET
587CC_FOR_TARGET
b121d7d4 588READELF
81ecdfbb
RW
589OBJDUMP
590OBJCOPY
591WINDMC
592WINDRES
593STRIP
594RANLIB
595NM
596LIPO
597LD
598DLLTOOL
599AS
600AR
601RUNTEST
602EXPECT
603MAKEINFO
604FLEX
605LEX
606M4
607BISON
608YACC
81ecdfbb
RW
609WINDRES_FOR_BUILD
610WINDMC_FOR_BUILD
611RANLIB_FOR_BUILD
612NM_FOR_BUILD
613LD_FOR_BUILD
614LDFLAGS_FOR_BUILD
e552509b 615GOC_FOR_BUILD
81ecdfbb
RW
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
911e63d0 625target_configdirs
81ecdfbb 626configdirs
81ecdfbb 627build_configdirs
81ecdfbb
RW
628INSTALL_GDB_TK
629GDB_TK
630CONFIGURE_GDB_TK
631build_tooldir
632tooldir
633GCC_SHLIB_SUBDIR
634RPATH_ENVVAR
4074d5f2
RW
635target_configargs
636host_configargs
637build_configargs
96655cc4 638BUILD_CONFIG
91c1f14c 639LDFLAGS_FOR_TARGET
81ecdfbb
RW
640CXXFLAGS_FOR_TARGET
641CFLAGS_FOR_TARGET
642DEBUG_PREFIX_CFLAGS_FOR_TARGET
643SYSROOT_CFLAGS_FOR_TARGET
644stage1_languages
700d40ca 645extra_host_libiberty_configure_flags
81ecdfbb
RW
646clooginc
647clooglibs
7ec59b9e 648islinc
81ecdfbb 649poststage1_ldflags
143754cd 650poststage1_libs
81ecdfbb 651stage1_ldflags
b3676d82 652stage1_libs
7ec59b9e 653extra_isl_gmp_configure_flags
81ecdfbb
RW
654extra_mpc_mpfr_configure_flags
655extra_mpc_gmp_configure_flags
656extra_mpfr_configure_flags
657gmpinc
658gmplibs
659do_compare
660GNATMAKE
661GNATBIND
662ac_ct_CXX
663CXXFLAGS
664CXX
665OBJEXT
666EXEEXT
667ac_ct_CC
668CPPFLAGS
669LDFLAGS
670CFLAGS
671CC
ffdd6afc 672EXTRA_CONFIGARGS_LIBJAVA
81ecdfbb
RW
673target_subdir
674host_subdir
675build_subdir
676build_libsubdir
8e957354
PB
677AWK
678SED
81ecdfbb
RW
679LN_S
680LN
681INSTALL_DATA
682INSTALL_SCRIPT
683INSTALL_PROGRAM
684target_os
685target_vendor
686target_cpu
687target
688host_os
689host_vendor
690host_cpu
691host
692target_noncanonical
693host_noncanonical
694build_noncanonical
695build_os
696build_vendor
697build_cpu
698build
699TOPLEVEL_CONFIGURE_ARGUMENTS
700target_alias
701host_alias
702build_alias
703LIBS
704ECHO_T
705ECHO_N
706ECHO_C
707DEFS
708mandir
709localedir
710libdir
711psdir
712pdfdir
713dvidir
714htmldir
715infodir
716docdir
717oldincludedir
718includedir
719localstatedir
720sharedstatedir
721sysconfdir
722datadir
723datarootdir
724libexecdir
725sbindir
726bindir
727program_transform_name
728prefix
729exec_prefix
730PACKAGE_URL
731PACKAGE_BUGREPORT
732PACKAGE_STRING
733PACKAGE_VERSION
734PACKAGE_TARNAME
735PACKAGE_NAME
736PATH_SEPARATOR
737SHELL'
738ac_subst_files='serialization_dependencies
739host_makefile_frag
740target_makefile_frag
741alphaieee_frag
742ospace_frag'
743ac_user_opts='
744enable_option_checking
745with_build_libsubdir
746enable_gold
c7791212 747enable_ld
89a1e9c3
PB
748enable_libquadmath
749enable_libquadmath_support
81ecdfbb
RW
750enable_libada
751enable_libssp
f66a9a70 752enable_libstdcxx
ffdd6afc
ILT
753enable_static_libjava
754enable_bootstrap
81ecdfbb
RW
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
81ecdfbb 767with_stage1_libs
b3676d82 768with_stage1_ldflags
81ecdfbb 769with_boot_libs
143754cd 770with_boot_ldflags
8e71395b 771with_cloog
7ec59b9e
L
772with_isl
773with_isl_include
774with_isl_lib
775enable_isl_version_check
81ecdfbb
RW
776with_cloog_include
777with_cloog_lib
778enable_cloog_version_check
700d40ca 779enable_lto
81ecdfbb
RW
780enable_stage1_languages
781enable_objc_gc
782with_build_sysroot
783with_debug_prefix_map
96655cc4 784with_build_config
81ecdfbb
RW
785enable_serial_configure
786with_build_time_tools
787enable_maintainer_mode
788enable_stage1_checking
789enable_werror
81ecdfbb
RW
790'
791 ac_precious_vars='build_alias
792host_alias
793target_alias
794CC
795CFLAGS
796LDFLAGS
797LIBS
798CPPFLAGS
799CXX
800CXXFLAGS
801CCC
4074d5f2
RW
802build_configargs
803host_configargs
804target_configargs
81ecdfbb
RW
805AR
806AS
807DLLTOOL
808LD
809LIPO
810NM
811RANLIB
812STRIP
813WINDRES
814WINDMC
815OBJCOPY
816OBJDUMP
b121d7d4 817READELF
81ecdfbb
RW
818CC_FOR_TARGET
819CXX_FOR_TARGET
820GCC_FOR_TARGET
821GCJ_FOR_TARGET
822GFORTRAN_FOR_TARGET
e552509b 823GOC_FOR_TARGET
81ecdfbb
RW
824AR_FOR_TARGET
825AS_FOR_TARGET
826DLLTOOL_FOR_TARGET
827LD_FOR_TARGET
828LIPO_FOR_TARGET
829NM_FOR_TARGET
830OBJDUMP_FOR_TARGET
831RANLIB_FOR_TARGET
b121d7d4 832READELF_FOR_TARGET
81ecdfbb
RW
833STRIP_FOR_TARGET
834WINDRES_FOR_TARGET
835WINDMC_FOR_TARGET'
836
a0da8069
NN
837
838# Initialize some variables set by options.
c6b750e1
DJ
839ac_init_help=
840ac_init_version=false
81ecdfbb
RW
841ac_unrecognized_opts=
842ac_unrecognized_sep=
a0da8069
NN
843# The variables have the same names as the options, with
844# dashes changed to underlines.
c6b750e1 845cache_file=/dev/null
a0da8069 846exec_prefix=NONE
a0da8069 847no_create=
a0da8069
NN
848no_recursion=
849prefix=NONE
850program_prefix=NONE
851program_suffix=NONE
852program_transform_name=s,x,x,
853silent=
854site=
855srcdir=
a0da8069
NN
856verbose=
857x_includes=NONE
858x_libraries=NONE
c6b750e1
DJ
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.
81ecdfbb 865# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
866bindir='${exec_prefix}/bin'
867sbindir='${exec_prefix}/sbin'
868libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
869datarootdir='${prefix}/share'
870datadir='${datarootdir}'
a0da8069
NN
871sysconfdir='${prefix}/etc'
872sharedstatedir='${prefix}/com'
873localstatedir='${prefix}/var'
a0da8069
NN
874includedir='${prefix}/include'
875oldincludedir='/usr/include'
81ecdfbb
RW
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'
252b5132 885
a0da8069 886ac_prev=
81ecdfbb 887ac_dashdash=
a0da8069
NN
888for ac_option
889do
a0da8069
NN
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
81ecdfbb 892 eval $ac_prev=\$ac_option
a0da8069
NN
893 ac_prev=
894 continue
895 fi
252b5132 896
81ecdfbb
RW
897 case $ac_option in
898 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *) ac_optarg=yes ;;
900 esac
a0da8069
NN
901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
81ecdfbb
RW
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
a0da8069
NN
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 911 bindir=$ac_optarg ;;
a0da8069
NN
912
913 -build | --build | --buil | --bui | --bu)
c6b750e1 914 ac_prev=build_alias ;;
a0da8069 915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 916 build_alias=$ac_optarg ;;
a0da8069
NN
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=*)
c6b750e1
DJ
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
a0da8069 927
81ecdfbb 928 -datadir | --datadir | --datadi | --datad)
a0da8069 929 ac_prev=datadir ;;
81ecdfbb 930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 931 datadir=$ac_optarg ;;
a0da8069 932
81ecdfbb
RW
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
a0da8069 940 -disable-* | --disable-*)
81ecdfbb 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 942 # Reject names that are not valid shell variable names.
81ecdfbb
RW
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 ;;
a0da8069
NN
965
966 -enable-* | --enable-*)
81ecdfbb 967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 968 # Reject names that are not valid shell variable names.
81ecdfbb
RW
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=', ';;
a0da8069 979 esac
81ecdfbb 980 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
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=*)
c6b750e1 989 exec_prefix=$ac_optarg ;;
a0da8069
NN
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
c6b750e1
DJ
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 ;;
a0da8069
NN
1001
1002 -host | --host | --hos | --ho)
c6b750e1 1003 ac_prev=host_alias ;;
a0da8069 1004 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1005 host_alias=$ac_optarg ;;
a0da8069 1006
81ecdfbb
RW
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
a0da8069
NN
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=*)
c6b750e1 1018 includedir=$ac_optarg ;;
a0da8069
NN
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1023 infodir=$ac_optarg ;;
a0da8069
NN
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1028 libdir=$ac_optarg ;;
a0da8069
NN
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=*)
c6b750e1 1035 libexecdir=$ac_optarg ;;
a0da8069 1036
81ecdfbb
RW
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
a0da8069 1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1043 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1047 localstatedir=$ac_optarg ;;
a0da8069
NN
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1052 mandir=$ac_optarg ;;
a0da8069
NN
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 \
c6b750e1 1059 | --no-cr | --no-c | -n)
a0da8069
NN
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=*)
c6b750e1 1073 oldincludedir=$ac_optarg ;;
a0da8069
NN
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1078 prefix=$ac_optarg ;;
a0da8069
NN
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=*)
c6b750e1 1085 program_prefix=$ac_optarg ;;
a0da8069
NN
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=*)
c6b750e1 1092 program_suffix=$ac_optarg ;;
a0da8069
NN
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=*)
c6b750e1 1109 program_transform_name=$ac_optarg ;;
a0da8069 1110
81ecdfbb
RW
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
a0da8069
NN
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=*)
c6b750e1 1129 sbindir=$ac_optarg ;;
a0da8069
NN
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=*)
c6b750e1 1140 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
c6b750e1 1145 site=$ac_optarg ;;
a0da8069
NN
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1150 srcdir=$ac_optarg ;;
a0da8069
NN
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=*)
c6b750e1 1157 sysconfdir=$ac_optarg ;;
a0da8069
NN
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1160 ac_prev=target_alias ;;
a0da8069 1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1162 target_alias=$ac_optarg ;;
a0da8069
NN
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
c6b750e1
DJ
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
a0da8069
NN
1169
1170 -with-* | --with-*)
81ecdfbb 1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1172 # Reject names that are not valid shell variable names.
81ecdfbb
RW
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=', ';;
a0da8069 1183 esac
81ecdfbb 1184 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1185
1186 -without-* | --without-*)
81ecdfbb 1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1188 # Reject names that are not valid shell variable names.
81ecdfbb
RW
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 ;;
a0da8069
NN
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=*)
c6b750e1 1211 x_includes=$ac_optarg ;;
a0da8069
NN
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=*)
c6b750e1 1218 x_libraries=$ac_optarg ;;
a0da8069 1219
81ecdfbb
RW
1220 -*) as_fn_error "unrecognized option: \`$ac_option'
1221Try \`$0 --help' for more information."
a0da8069
NN
1222 ;;
1223
c6b750e1
DJ
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
81ecdfbb
RW
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
c6b750e1
DJ
1232 export $ac_envvar ;;
1233
a0da8069 1234 *)
c6b750e1 1235 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1239 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1240 ;;
1241
1242 esac
1243done
1244
1245if test -n "$ac_prev"; then
c6b750e1 1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1247 as_fn_error "missing argument to $ac_option"
a0da8069 1248fi
a0da8069 1249
81ecdfbb
RW
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 ;;
c6b750e1 1255 esac
81ecdfbb 1256fi
a0da8069 1257
81ecdfbb
RW
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
a0da8069 1263do
81ecdfbb
RW
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.
c6b750e1 1272 case $ac_val in
81ecdfbb
RW
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1275 esac
81ecdfbb 1276 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1277done
1278
c6b750e1
DJ
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
376a0e54 1285
c6b750e1
DJ
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
81ecdfbb 1290 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
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
a0da8069 1301
a0da8069 1302
81ecdfbb
RW
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
a0da8069
NN
1311# Find the source files, if location was not specified.
1312if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
81ecdfbb
RW
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'`
a0da8069 1338 srcdir=$ac_confdir
81ecdfbb 1339 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1340 srcdir=..
1341 fi
1342else
1343 ac_srcdir_defaulted=no
1344fi
81ecdfbb
RW
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
6d0cd39e
AM
1363case $srcdir in
1364 *" "*)
1365 as_fn_error "path to source, $srcdir, contains spaces"
1366 ;;
1367esac
9cc8ae67
PB
1368ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1369
81ecdfbb
RW
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
c6b750e1
DJ
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
c6b750e1
DJ
1404Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1406 [$ac_default_prefix]
c6b750e1 1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1408 [PREFIX]
c6b750e1
DJ
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:
81ecdfbb
RW
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]
c6b750e1
DJ
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
a0da8069 1451fi
a0da8069 1452
c6b750e1
DJ
1453if test -n "$ac_init_help"; then
1454
1455 cat <<\_ACEOF
1456
1457Optional Features:
81ecdfbb 1458 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212 1461 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1462 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1463 --disable-libquadmath do not build libquadmath directory
1464 --disable-libquadmath-support
1465 disable libquadmath support for Fortran
521ec477
DD
1466 --enable-libada build libada directory
1467 --enable-libssp build libssp directory
f66a9a70 1468 --disable-libstdcxx do not build libstdc++-v3 directory
ffdd6afc
ILT
1469 --enable-static-libjava[=ARG]
1470 build static libjava [default=no]
1471 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e
L
1472 --disable-isl-version-check
1473 disable check for ISL version
e552509b
ILT
1474 --disable-cloog-version-check
1475 disable check for CLooG version
700d40ca 1476 --enable-lto enable link time optimization support
7837304f
AS
1477 --enable-stage1-languages[=all]
1478 choose additional languages to build during stage1.
1479 Mostly useful for compiler development
1480 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1481 Objective-C runtime
521ec477 1482 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1483 force sequential configuration of sub-packages for
1484 the host, target or build machine, or all
1485 sub-packages
1486 --enable-maintainer-mode
1487 enable make rules and dependencies not useful (and
1488 sometimes confusing) to the casual installer
1489 --enable-stage1-checking[=all]
1490 choose additional checking for stage1 of the
1491 compiler
c6b750e1
DJ
1492 --enable-werror enable -Werror in bootstrap stage2 and later
1493
1494Optional Packages:
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-build-libsubdir=DIR Directory where to find libraries for build system
7837304f
AS
1498 --with-mpc=PATH specify prefix directory for installed MPC package.
1499 Equivalent to --with-mpc-include=PATH/include plus
1500 --with-mpc-lib=PATH/lib
1501 --with-mpc-include=PATH specify directory for installed MPC include files
1502 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1503 --with-mpfr-dir=PATH this option has been REMOVED
1504 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1505 Equivalent to --with-mpfr-include=PATH/include plus
1506 --with-mpfr-lib=PATH/lib
c6b750e1 1507 --with-mpfr-include=PATH
521ec477
DD
1508 specify directory for installed MPFR include files
1509 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1510 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1511 --with-gmp=PATH specify prefix directory for the installed GMP
1512 package. Equivalent to
1513 --with-gmp-include=PATH/include plus
1514 --with-gmp-lib=PATH/lib
521ec477
DD
1515 --with-gmp-include=PATH specify directory for installed GMP include files
1516 --with-gmp-lib=PATH specify directory for the installed GMP library
7837304f
AS
1517 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1518 linking with PPL
b3676d82 1519 --with-stage1-libs=LIBS libraries for stage1
7837304f
AS
1520 --with-stage1-ldflags=FLAGS
1521 linker flags for stage1
7837304f
AS
1522 --with-boot-libs=LIBS libraries for stage2 and later
1523 --with-boot-ldflags=FLAGS
1524 linker flags for stage2 and later
8e71395b
L
1525 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1526 package. Equivalent to
1527 --with-cloog-include=PATH/include plus
1528 --with-cloog-lib=PATH/lib
7ec59b9e 1529 --with-isl=PATH Specify prefix directory for the installed ISL
7837304f 1530 package. Equivalent to
7ec59b9e
L
1531 --with-isl-include=PATH/include plus
1532 --with-isl-lib=PATH/lib
1533 --with-isl-include=PATH Specify directory for installed ISL include files
1534 --with-isl-lib=PATH Specify the directory for the installed ISL library
e552509b
ILT
1535 --with-cloog-include=PATH
1536 Specify directory for installed CLooG include files
1537 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1538 library
521ec477 1539 --with-build-sysroot=SYSROOT
c6b750e1 1540 use sysroot as the system root during the build
8a6ee3ab 1541 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1542 map A to B, C to D ... in debug information
1543 --with-build-config='NAME NAME2...'
1544 use config/NAME.mk build configuration
521ec477 1545 --with-build-time-tools=PATH
c6b750e1 1546 use given path to find target tools during the build
c6b750e1
DJ
1547
1548Some influential environment variables:
1549 CC C compiler command
1550 CFLAGS C compiler flags
1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1552 nonstandard directory <lib dir>
81ecdfbb
RW
1553 LIBS libraries to pass to the linker, e.g. -l<library>
1554 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1555 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1556 CXX C++ compiler command
1557 CXXFLAGS C++ compiler flags
4074d5f2
RW
1558 build_configargs
1559 additional configure arguments for build directories
1560 host_configargs
1561 additional configure arguments for host directories
1562 target_configargs
1563 additional configure arguments for target directories
9a819804
AO
1564 AR AR for the host
1565 AS AS for the host
1566 DLLTOOL DLLTOOL for the host
1567 LD LD for the host
1568 LIPO LIPO for the host
1569 NM NM for the host
1570 RANLIB RANLIB for the host
1571 STRIP STRIP for the host
1572 WINDRES WINDRES for the host
0c24b341 1573 WINDMC WINDMC for the host
9a819804
AO
1574 OBJCOPY OBJCOPY for the host
1575 OBJDUMP OBJDUMP for the host
b121d7d4 1576 READELF READELF for the host
9a819804
AO
1577 CC_FOR_TARGET
1578 CC for the target
1579 CXX_FOR_TARGET
1580 CXX for the target
1581 GCC_FOR_TARGET
1582 GCC for the target
1583 GCJ_FOR_TARGET
1584 GCJ for the target
1585 GFORTRAN_FOR_TARGET
1586 GFORTRAN for the target
e552509b
ILT
1587 GOC_FOR_TARGET
1588 GOC for the target
9a819804
AO
1589 AR_FOR_TARGET
1590 AR for the target
1591 AS_FOR_TARGET
1592 AS for the target
1593 DLLTOOL_FOR_TARGET
1594 DLLTOOL for the target
1595 LD_FOR_TARGET
1596 LD for the target
1597 LIPO_FOR_TARGET
1598 LIPO for the target
1599 NM_FOR_TARGET
1600 NM for the target
1601 OBJDUMP_FOR_TARGET
1602 OBJDUMP for the target
1603 RANLIB_FOR_TARGET
1604 RANLIB for the target
b121d7d4
DD
1605 READELF_FOR_TARGET
1606 READELF for the target
9a819804
AO
1607 STRIP_FOR_TARGET
1608 STRIP for the target
1609 WINDRES_FOR_TARGET
1610 WINDRES for the target
0c24b341
NC
1611 WINDMC_FOR_TARGET
1612 WINDMC for the target
c6b750e1
DJ
1613
1614Use these variables to override the choices made by `configure' or to help
1615it to find libraries and programs with nonstandard names/locations.
1616
81ecdfbb 1617Report bugs to the package provider.
c6b750e1 1618_ACEOF
81ecdfbb 1619ac_status=$?
c6b750e1
DJ
1620fi
1621
1622if test "$ac_init_help" = "recursive"; then
1623 # If there are subdirs, report their specific --help.
c6b750e1 1624 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1625 test -d "$ac_dir" ||
1626 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1627 continue
c6b750e1
DJ
1628 ac_builddir=.
1629
81ecdfbb
RW
1630case "$ac_dir" in
1631.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632*)
1633 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1634 # A ".." for each directory in $ac_dir_suffix.
1635 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1636 case $ac_top_builddir_sub in
1637 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1639 esac ;;
1640esac
1641ac_abs_top_builddir=$ac_pwd
1642ac_abs_builddir=$ac_pwd$ac_dir_suffix
1643# for backward compatibility:
1644ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1645
1646case $srcdir in
81ecdfbb 1647 .) # We are building in place.
c6b750e1 1648 ac_srcdir=.
81ecdfbb
RW
1649 ac_top_srcdir=$ac_top_builddir_sub
1650 ac_abs_top_srcdir=$ac_pwd ;;
1651 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1652 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1653 ac_top_srcdir=$srcdir
1654 ac_abs_top_srcdir=$srcdir ;;
1655 *) # Relative name.
1656 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1657 ac_top_srcdir=$ac_top_build_prefix$srcdir
1658 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1659esac
81ecdfbb
RW
1660ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1661
1662 cd "$ac_dir" || { ac_status=$?; continue; }
1663 # Check for guested configure.
1664 if test -f "$ac_srcdir/configure.gnu"; then
1665 echo &&
1666 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1667 elif test -f "$ac_srcdir/configure"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1670 else
81ecdfbb
RW
1671 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1672 fi || ac_status=$?
1673 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1674 done
1675fi
1676
81ecdfbb 1677test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1678if $ac_init_version; then
1679 cat <<\_ACEOF
81ecdfbb
RW
1680configure
1681generated by GNU Autoconf 2.64
c6b750e1 1682
81ecdfbb 1683Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1684This configure script is free software; the Free Software Foundation
1685gives unlimited permission to copy, distribute and modify it.
1686_ACEOF
81ecdfbb 1687 exit
c6b750e1 1688fi
81ecdfbb
RW
1689
1690## ------------------------ ##
1691## Autoconf initialization. ##
1692## ------------------------ ##
1693
1694# ac_fn_c_try_compile LINENO
1695# --------------------------
1696# Try to compile conftest.$ac_ext, and return whether this succeeded.
1697ac_fn_c_try_compile ()
1698{
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 rm -f conftest.$ac_objext
1701 if { { ac_try="$ac_compile"
1702case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_compile") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && {
1717 test -z "$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 } && test -s conftest.$ac_objext; then :
1720 ac_retval=0
1721else
1722 $as_echo "$as_me: failed program was:" >&5
1723sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726fi
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728 return $ac_retval
1729
1730} # ac_fn_c_try_compile
1731
1732# ac_fn_cxx_try_compile LINENO
1733# ----------------------------
1734# Try to compile conftest.$ac_ext, and return whether this succeeded.
1735ac_fn_cxx_try_compile ()
1736{
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 rm -f conftest.$ac_objext
1739 if { { ac_try="$ac_compile"
1740case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745$as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_compile") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1752 fi
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && {
1755 test -z "$ac_cxx_werror_flag" ||
1756 test ! -s conftest.err
1757 } && test -s conftest.$ac_objext; then :
1758 ac_retval=0
1759else
1760 $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1
1764fi
1765 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766 return $ac_retval
1767
1768} # ac_fn_cxx_try_compile
1769
b3676d82
EB
1770# ac_fn_cxx_try_link LINENO
1771# -------------------------
1772# Try to link conftest.$ac_ext, and return whether this succeeded.
1773ac_fn_cxx_try_link ()
1774{
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 rm -f conftest.$ac_objext conftest$ac_exeext
1777 if { { ac_try="$ac_link"
1778case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781esac
1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783$as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_link") 2>conftest.err
1785 ac_status=$?
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1790 fi
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && {
1793 test -z "$ac_cxx_werror_flag" ||
1794 test ! -s conftest.err
1795 } && test -s conftest$ac_exeext && {
1796 test "$cross_compiling" = yes ||
1797 $as_test_x conftest$ac_exeext
1798 }; then :
1799 ac_retval=0
1800else
1801 $as_echo "$as_me: failed program was:" >&5
1802sed 's/^/| /' conftest.$ac_ext >&5
1803
1804 ac_retval=1
1805fi
1806 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1807 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1808 # interfere with the next link command; also delete a directory that is
1809 # left behind by Apple's compiler. We do this before executing the actions.
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 return $ac_retval
1813
1814} # ac_fn_cxx_try_link
1815
81ecdfbb
RW
1816# ac_fn_c_try_link LINENO
1817# -----------------------
1818# Try to link conftest.$ac_ext, and return whether this succeeded.
1819ac_fn_c_try_link ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext conftest$ac_exeext
1823 if { { ac_try="$ac_link"
1824case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827esac
1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829$as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1836 fi
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest$ac_exeext && {
1842 test "$cross_compiling" = yes ||
1843 $as_test_x conftest$ac_exeext
1844 }; then :
1845 ac_retval=0
1846else
1847 $as_echo "$as_me: failed program was:" >&5
1848sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=1
1851fi
1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854 # interfere with the next link command; also delete a directory that is
1855 # left behind by Apple's compiler. We do this before executing the actions.
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858 return $ac_retval
1859
1860} # ac_fn_c_try_link
7ec59b9e
L
1861
1862# ac_fn_c_try_run LINENO
1863# ----------------------
1864# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1865# that executables *can* be run.
1866ac_fn_c_try_run ()
1867{
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_link"
1870case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873esac
1874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875$as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_link") 2>&5
1877 ac_status=$?
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1880 { { case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883esac
1884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885$as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_try") 2>&5
1887 ac_status=$?
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; }; }; then :
1890 ac_retval=0
1891else
1892 $as_echo "$as_me: program exited with status $ac_status" >&5
1893 $as_echo "$as_me: failed program was:" >&5
1894sed 's/^/| /' conftest.$ac_ext >&5
1895
1896 ac_retval=$ac_status
1897fi
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1900 return $ac_retval
1901
1902} # ac_fn_c_try_run
81ecdfbb 1903cat >config.log <<_ACEOF
c6b750e1
DJ
1904This file contains any messages produced by compilers while
1905running configure, to aid debugging if configure makes a mistake.
1906
1907It was created by $as_me, which was
81ecdfbb 1908generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1909
1910 $ $0 $@
1911
1912_ACEOF
81ecdfbb 1913exec 5>>config.log
c6b750e1
DJ
1914{
1915cat <<_ASUNAME
1916## --------- ##
1917## Platform. ##
1918## --------- ##
1919
1920hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1921uname -m = `(uname -m) 2>/dev/null || echo unknown`
1922uname -r = `(uname -r) 2>/dev/null || echo unknown`
1923uname -s = `(uname -s) 2>/dev/null || echo unknown`
1924uname -v = `(uname -v) 2>/dev/null || echo unknown`
1925
1926/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1927/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1928
1929/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1930/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1931/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1932/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1933/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1934/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1935/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1936
1937_ASUNAME
1938
1939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940for as_dir in $PATH
1941do
1942 IFS=$as_save_IFS
1943 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1944 $as_echo "PATH: $as_dir"
1945 done
1946IFS=$as_save_IFS
c6b750e1
DJ
1947
1948} >&5
1949
1950cat >&5 <<_ACEOF
1951
1952
1953## ----------- ##
1954## Core tests. ##
1955## ----------- ##
1956
1957_ACEOF
1958
1959
1960# Keep a trace of the command line.
1961# Strip out --no-create and --no-recursion so they do not pile up.
1962# Strip out --silent because we don't want to record it for future runs.
1963# Also quote any args containing shell meta-characters.
1964# Make two passes to allow for proper duplicate-argument suppression.
1965ac_configure_args=
1966ac_configure_args0=
1967ac_configure_args1=
c6b750e1
DJ
1968ac_must_keep_next=false
1969for ac_pass in 1 2
1970do
1971 for ac_arg
1972 do
1973 case $ac_arg in
1974 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1976 | -silent | --silent | --silen | --sile | --sil)
1977 continue ;;
81ecdfbb
RW
1978 *\'*)
1979 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1980 esac
1981 case $ac_pass in
81ecdfbb 1982 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1983 2)
81ecdfbb 1984 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1985 if test $ac_must_keep_next = true; then
1986 ac_must_keep_next=false # Got value, back to normal.
1987 else
1988 case $ac_arg in
1989 *=* | --config-cache | -C | -disable-* | --disable-* \
1990 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1991 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1992 | -with-* | --with-* | -without-* | --without-* | --x)
1993 case "$ac_configure_args0 " in
1994 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1995 esac
1996 ;;
1997 -* ) ac_must_keep_next=true ;;
1998 esac
1999 fi
81ecdfbb 2000 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
2001 ;;
2002 esac
2003 done
2004done
81ecdfbb
RW
2005{ ac_configure_args0=; unset ac_configure_args0;}
2006{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
2007
2008# When interrupted or exit'd, cleanup temporary files, and complete
2009# config.log. We remove comments because anyway the quotes in there
2010# would cause problems or look ugly.
81ecdfbb
RW
2011# WARNING: Use '\'' to represent an apostrophe within the trap.
2012# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
2013trap 'exit_status=$?
2014 # Save into config.log some information that might help in debugging.
2015 {
2016 echo
2017
2018 cat <<\_ASBOX
2019## ---------------- ##
2020## Cache variables. ##
2021## ---------------- ##
2022_ASBOX
2023 echo
2024 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2025(
2026 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2027 eval ac_val=\$$ac_var
2028 case $ac_val in #(
2029 *${as_nl}*)
2030 case $ac_var in #(
2031 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2032$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2033 esac
2034 case $ac_var in #(
2035 _ | IFS | as_nl) ;; #(
2036 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2037 *) { eval $ac_var=; unset $ac_var;} ;;
2038 esac ;;
2039 esac
2040 done
c6b750e1 2041 (set) 2>&1 |
81ecdfbb
RW
2042 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2043 *${as_nl}ac_space=\ *)
c6b750e1 2044 sed -n \
81ecdfbb
RW
2045 "s/'\''/'\''\\\\'\'''\''/g;
2046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2047 ;; #(
c6b750e1 2048 *)
81ecdfbb 2049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2050 ;;
81ecdfbb
RW
2051 esac |
2052 sort
2053)
c6b750e1
DJ
2054 echo
2055
2056 cat <<\_ASBOX
2057## ----------------- ##
2058## Output variables. ##
2059## ----------------- ##
2060_ASBOX
2061 echo
2062 for ac_var in $ac_subst_vars
2063 do
81ecdfbb
RW
2064 eval ac_val=\$$ac_var
2065 case $ac_val in
2066 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067 esac
2068 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2069 done | sort
2070 echo
2071
2072 if test -n "$ac_subst_files"; then
2073 cat <<\_ASBOX
81ecdfbb
RW
2074## ------------------- ##
2075## File substitutions. ##
2076## ------------------- ##
c6b750e1
DJ
2077_ASBOX
2078 echo
2079 for ac_var in $ac_subst_files
2080 do
81ecdfbb
RW
2081 eval ac_val=\$$ac_var
2082 case $ac_val in
2083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084 esac
2085 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2086 done | sort
2087 echo
2088 fi
2089
2090 if test -s confdefs.h; then
2091 cat <<\_ASBOX
2092## ----------- ##
2093## confdefs.h. ##
2094## ----------- ##
2095_ASBOX
2096 echo
81ecdfbb 2097 cat confdefs.h
c6b750e1
DJ
2098 echo
2099 fi
2100 test "$ac_signal" != 0 &&
81ecdfbb
RW
2101 $as_echo "$as_me: caught signal $ac_signal"
2102 $as_echo "$as_me: exit $exit_status"
c6b750e1 2103 } >&5
81ecdfbb
RW
2104 rm -f core *.core core.conftest.* &&
2105 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2106 exit $exit_status
81ecdfbb 2107' 0
c6b750e1 2108for ac_signal in 1 2 13 15; do
81ecdfbb 2109 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2110done
2111ac_signal=0
2112
2113# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2114rm -f -r conftest* confdefs.h
2115
2116$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2117
2118# Predefined preprocessor variables.
2119
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_NAME "$PACKAGE_NAME"
2122_ACEOF
2123
c6b750e1
DJ
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2126_ACEOF
2127
c6b750e1
DJ
2128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_VERSION "$PACKAGE_VERSION"
2130_ACEOF
2131
c6b750e1
DJ
2132cat >>confdefs.h <<_ACEOF
2133#define PACKAGE_STRING "$PACKAGE_STRING"
2134_ACEOF
2135
c6b750e1
DJ
2136cat >>confdefs.h <<_ACEOF
2137#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2138_ACEOF
2139
81ecdfbb
RW
2140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_URL "$PACKAGE_URL"
2142_ACEOF
2143
c6b750e1
DJ
2144
2145# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2146# Prefer an explicitly selected file to automatically selected ones.
2147ac_site_file1=NONE
2148ac_site_file2=NONE
2149if test -n "$CONFIG_SITE"; then
2150 ac_site_file1=$CONFIG_SITE
2151elif test "x$prefix" != xNONE; then
2152 ac_site_file1=$prefix/share/config.site
2153 ac_site_file2=$prefix/etc/config.site
2154else
2155 ac_site_file1=$ac_default_prefix/share/config.site
2156 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2157fi
81ecdfbb
RW
2158for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2159do
2160 test "x$ac_site_file" = xNONE && continue
a0da8069 2161 if test -r "$ac_site_file"; then
81ecdfbb
RW
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2163$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2164 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2165 . "$ac_site_file"
2166 fi
2167done
2168
2169if test -r "$cache_file"; then
c6b750e1
DJ
2170 # Some versions of bash will fail to source /dev/null (special
2171 # files actually), so we avoid doing that.
2172 if test -f "$cache_file"; then
81ecdfbb
RW
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2174$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2175 case $cache_file in
81ecdfbb
RW
2176 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2177 *) . "./$cache_file";;
c6b750e1
DJ
2178 esac
2179 fi
a0da8069 2180else
81ecdfbb
RW
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2182$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2183 >$cache_file
2184fi
2185
2186# Check that the precious variables saved in the cache have kept the same
2187# value.
2188ac_cache_corrupted=false
81ecdfbb 2189for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2190 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2191 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2192 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2193 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2194 case $ac_old_set,$ac_new_set in
2195 set,)
81ecdfbb
RW
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2197$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2198 ac_cache_corrupted=: ;;
2199 ,set)
81ecdfbb
RW
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2201$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2202 ac_cache_corrupted=: ;;
2203 ,);;
2204 *)
2205 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2206 # differences in whitespace do not lead to failure.
2207 ac_old_val_w=`echo x $ac_old_val`
2208 ac_new_val_w=`echo x $ac_new_val`
2209 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2211$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2212 ac_cache_corrupted=:
2213 else
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2215$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2216 eval $ac_var=\$ac_old_val
2217 fi
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2219$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2221$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2222 fi;;
2223 esac
2224 # Pass precious variables to config.status.
2225 if test "$ac_new_set" = set; then
2226 case $ac_new_val in
81ecdfbb 2227 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2228 *) ac_arg=$ac_var=$ac_new_val ;;
2229 esac
2230 case " $ac_configure_args " in
2231 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2232 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2233 esac
2234 fi
2235done
2236if $ac_cache_corrupted; then
81ecdfbb
RW
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2240$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2241 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2242fi
81ecdfbb
RW
2243## -------------------- ##
2244## Main body of script. ##
2245## -------------------- ##
a0da8069
NN
2246
2247ac_ext=c
a0da8069 2248ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2251ac_compiler_gnu=$ac_cv_c_compiler_gnu
2252
2253
2254
2255
c6b750e1
DJ
2256
2257
34a0f3cf 2258
c6b750e1 2259
5b553f7e
RW
2260
2261progname=$0
2262# if PWD already has a value, it is probably wrong.
2263if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2264
2265# Export original configure arguments for use by sub-configures.
2266# Quote arguments with shell meta charatcers.
2267TOPLEVEL_CONFIGURE_ARGUMENTS=
2268set -- "$progname" "$@"
2269for ac_arg
2270do
2271 case "$ac_arg" in
2272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2273 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2274 # if the argument is of the form -foo=baz, quote the baz part only
2275 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2276 *) ;;
2277 esac
2278 # Add the quoted argument to the list.
2279 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2280done
2281if test "$silent" = yes; then
2282 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2283fi
2284# Remove the initial space we just introduced and, as these will be
2285# expanded by make, quote '$'.
2286TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2287
c6b750e1
DJ
2288
2289# Find the build, host, and target systems.
a0da8069 2290ac_aux_dir=
81ecdfbb
RW
2291for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2292 for ac_t in install-sh install.sh shtool; do
2293 if test -f "$ac_dir/$ac_t"; then
2294 ac_aux_dir=$ac_dir
2295 ac_install_sh="$ac_aux_dir/$ac_t -c"
2296 break 2
2297 fi
2298 done
a0da8069
NN
2299done
2300if test -z "$ac_aux_dir"; then
81ecdfbb 2301 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2302fi
81ecdfbb
RW
2303
2304# These three variables are undocumented and unsupported,
2305# and are intended to be withdrawn in a future Autoconf release.
2306# They can cause serious problems if a builder's source tree is in a directory
2307# whose full name contains unusual characters.
2308ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2309ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2310ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2311
a0da8069 2312
c6b750e1 2313# Make sure we can run config.sub.
81ecdfbb
RW
2314$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2315 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2316
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2318$as_echo_n "checking build system type... " >&6; }
2319if test "${ac_cv_build+set}" = set; then :
2320 $as_echo_n "(cached) " >&6
2321else
2322 ac_build_alias=$build_alias
2323test "x$ac_build_alias" = x &&
2324 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2325test "x$ac_build_alias" = x &&
2326 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2327ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2328 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2329
2330fi
2331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2332$as_echo "$ac_cv_build" >&6; }
2333case $ac_cv_build in
2334*-*-*) ;;
2335*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2336esac
c6b750e1 2337build=$ac_cv_build
81ecdfbb
RW
2338ac_save_IFS=$IFS; IFS='-'
2339set x $ac_cv_build
2340shift
2341build_cpu=$1
2342build_vendor=$2
2343shift; shift
2344# Remember, the first character of IFS is used to create $*,
2345# except with old shells:
2346build_os=$*
2347IFS=$ac_save_IFS
2348case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2349
a0da8069 2350
c6b750e1
DJ
2351 case ${build_alias} in
2352 "") build_noncanonical=${build} ;;
2353 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2354esac
2355
2356
cac3d6c4 2357
c6b750e1
DJ
2358 case ${host_alias} in
2359 "") host_noncanonical=${build_noncanonical} ;;
2360 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2361esac
2362
cac3d6c4 2363
c6b750e1
DJ
2364
2365 case ${target_alias} in
2366 "") target_noncanonical=${host_noncanonical} ;;
2367 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2368esac
2369
cac3d6c4 2370
c6b750e1
DJ
2371
2372
2373test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2374 test "$program_prefix$program_suffix$program_transform_name" = \
2375 NONENONEs,x,x, &&
c6b750e1 2376 program_transform_name=s,y,y,
cac3d6c4 2377
81ecdfbb
RW
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2379$as_echo_n "checking host system type... " >&6; }
2380if test "${ac_cv_host+set}" = set; then :
2381 $as_echo_n "(cached) " >&6
cac3d6c4 2382else
81ecdfbb
RW
2383 if test "x$host_alias" = x; then
2384 ac_cv_host=$ac_cv_build
2385else
2386 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2387 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2388fi
c6b750e1
DJ
2389
2390fi
81ecdfbb
RW
2391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2392$as_echo "$ac_cv_host" >&6; }
2393case $ac_cv_host in
2394*-*-*) ;;
2395*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2396esac
c6b750e1 2397host=$ac_cv_host
81ecdfbb
RW
2398ac_save_IFS=$IFS; IFS='-'
2399set x $ac_cv_host
2400shift
2401host_cpu=$1
2402host_vendor=$2
2403shift; shift
2404# Remember, the first character of IFS is used to create $*,
2405# except with old shells:
2406host_os=$*
2407IFS=$ac_save_IFS
2408case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2409
2410
81ecdfbb
RW
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2412$as_echo_n "checking target system type... " >&6; }
2413if test "${ac_cv_target+set}" = set; then :
2414 $as_echo_n "(cached) " >&6
c6b750e1 2415else
81ecdfbb
RW
2416 if test "x$target_alias" = x; then
2417 ac_cv_target=$ac_cv_host
2418else
2419 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2420 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2421fi
c6b750e1 2422
cac3d6c4 2423fi
81ecdfbb
RW
2424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2425$as_echo "$ac_cv_target" >&6; }
2426case $ac_cv_target in
2427*-*-*) ;;
2428*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2429esac
c6b750e1 2430target=$ac_cv_target
81ecdfbb
RW
2431ac_save_IFS=$IFS; IFS='-'
2432set x $ac_cv_target
2433shift
2434target_cpu=$1
2435target_vendor=$2
2436shift; shift
2437# Remember, the first character of IFS is used to create $*,
2438# except with old shells:
2439target_os=$*
2440IFS=$ac_save_IFS
2441case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2442
2443
2444# The aliases save the names the user supplied, while $host etc.
2445# will get canonicalized.
2446test -n "$target_alias" &&
2447 test "$program_prefix$program_suffix$program_transform_name" = \
2448 NONENONEs,x,x, &&
2449 program_prefix=${target_alias}-
81ecdfbb 2450
a0da8069 2451test "$program_prefix" != NONE &&
81ecdfbb 2452 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2453# Use a double $ so make ignores it.
2454test "$program_suffix" != NONE &&
81ecdfbb
RW
2455 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2456# Double any \ or $.
c6b750e1 2457# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2458ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2459program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2460
a0da8069
NN
2461
2462
e5c3f801
NN
2463# Get 'install' or 'install-sh' and its variants.
2464# Find a good install program. We prefer a C program (faster),
2465# so one script is as good as another. But avoid the broken or
2466# incompatible versions:
2467# SysV /etc/install, /usr/sbin/install
2468# SunOS /usr/etc/install
2469# IRIX /sbin/install
2470# AIX /bin/install
c6b750e1 2471# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2472# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2473# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2474# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2475# OS/2's system install, which has a completely different semantic
e5c3f801 2476# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2477# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2479$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2480if test -z "$INSTALL"; then
81ecdfbb
RW
2481if test "${ac_cv_path_install+set}" = set; then :
2482 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2483else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485for as_dir in $PATH
2486do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2489 # Account for people who put trailing slashes in PATH elements.
2490case $as_dir/ in #((
2491 ./ | .// | /[cC]/* | \
c6b750e1 2492 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2493 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2494 /usr/ucb/* ) ;;
2495 *)
2496 # OSF1 and SCO ODT 3.0 have their own names for install.
2497 # Don't use installbsd from OSF since it installs stuff as root
2498 # by default.
2499 for ac_prog in ginstall scoinst install; do
2500 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2501 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2502 if test $ac_prog = install &&
c6b750e1 2503 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2504 # AIX install. It has an incompatible calling convention.
2505 :
c6b750e1
DJ
2506 elif test $ac_prog = install &&
2507 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2508 # program-specific install script used by HP pwplus--don't use.
2509 :
e5c3f801 2510 else
58c85be7
RW
2511 rm -rf conftest.one conftest.two conftest.dir
2512 echo one > conftest.one
2513 echo two > conftest.two
2514 mkdir conftest.dir
2515 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2516 test -s conftest.one && test -s conftest.two &&
2517 test -s conftest.dir/conftest.one &&
2518 test -s conftest.dir/conftest.two
2519 then
2520 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2521 break 3
2522 fi
e5c3f801
NN
2523 fi
2524 fi
2525 done
c6b750e1
DJ
2526 done
2527 ;;
2528esac
81ecdfbb
RW
2529
2530 done
2531IFS=$as_save_IFS
c6b750e1 2532
58c85be7 2533rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2534
2535fi
2536 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2537 INSTALL=$ac_cv_path_install
e5c3f801 2538 else
58c85be7
RW
2539 # As a last resort, use the slow shell script. Don't cache a
2540 # value for INSTALL within a source directory, because that will
e5c3f801 2541 # break other packages using the cache if that directory is
58c85be7 2542 # removed, or if the value is a relative name.
c6b750e1 2543 INSTALL=$ac_install_sh
e5c3f801
NN
2544 fi
2545fi
81ecdfbb
RW
2546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2547$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2548
2549# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2550# It thinks the first close brace ends the variable substitution.
2551test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2552
c6b750e1 2553test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2554
2555test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2556
81ecdfbb
RW
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2558$as_echo_n "checking whether ln works... " >&6; }
2559if test "${acx_cv_prog_LN+set}" = set; then :
2560 $as_echo_n "(cached) " >&6
656fdd47
PB
2561else
2562 rm -f conftestdata_t
2563echo >conftestdata_f
2564if ln conftestdata_f conftestdata_t 2>/dev/null
2565then
2566 acx_cv_prog_LN=ln
2567else
2568 acx_cv_prog_LN=no
2569fi
2570rm -f conftestdata_f conftestdata_t
2571
2572fi
2573if test $acx_cv_prog_LN = no; then
2574 LN="cp"
81ecdfbb
RW
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2576$as_echo "no, using $LN" >&6; }
656fdd47
PB
2577else
2578 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2580$as_echo "yes" >&6; }
656fdd47
PB
2581fi
2582
81ecdfbb
RW
2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2584$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2585LN_S=$as_ln_s
2586if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2588$as_echo "yes" >&6; }
cac3d6c4 2589else
81ecdfbb
RW
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2591$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2592fi
2593
8e957354
PB
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2595$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2596if test "${ac_cv_path_SED+set}" = set; then :
2597 $as_echo_n "(cached) " >&6
2598else
2599 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2600 for ac_i in 1 2 3 4 5 6 7; do
2601 ac_script="$ac_script$as_nl$ac_script"
2602 done
2603 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2604 { ac_script=; unset ac_script;}
2605 if test -z "$SED"; then
2606 ac_path_SED_found=false
2607 # Loop through the user's path and test for each of PROGNAME-LIST
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609for as_dir in $PATH
2610do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_prog in sed gsed; do
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2616 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2617# Check for GNU ac_path_SED and select it if it is found.
2618 # Check for GNU $ac_path_SED
2619case `"$ac_path_SED" --version 2>&1` in
2620*GNU*)
2621 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2622*)
2623 ac_count=0
2624 $as_echo_n 0123456789 >"conftest.in"
2625 while :
2626 do
2627 cat "conftest.in" "conftest.in" >"conftest.tmp"
2628 mv "conftest.tmp" "conftest.in"
2629 cp "conftest.in" "conftest.nl"
2630 $as_echo '' >> "conftest.nl"
2631 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2633 as_fn_arith $ac_count + 1 && ac_count=$as_val
2634 if test $ac_count -gt ${ac_path_SED_max-0}; then
2635 # Best one so far, save it but keep looking for a better one
2636 ac_cv_path_SED="$ac_path_SED"
2637 ac_path_SED_max=$ac_count
2638 fi
2639 # 10*(2^10) chars as input seems more than enough
2640 test $ac_count -gt 10 && break
2641 done
2642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2643esac
2644
2645 $ac_path_SED_found && break 3
2646 done
2647 done
2648 done
2649IFS=$as_save_IFS
2650 if test -z "$ac_cv_path_SED"; then
2651 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2652 fi
2653else
2654 ac_cv_path_SED=$SED
2655fi
2656
2657fi
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2659$as_echo "$ac_cv_path_SED" >&6; }
2660 SED="$ac_cv_path_SED"
2661 rm -f conftest.sed
2662
2663for ac_prog in gawk mawk nawk awk
2664do
2665 # Extract the first word of "$ac_prog", so it can be a program name with args.
2666set dummy $ac_prog; ac_word=$2
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668$as_echo_n "checking for $ac_word... " >&6; }
2669if test "${ac_cv_prog_AWK+set}" = set; then :
2670 $as_echo_n "(cached) " >&6
2671else
2672 if test -n "$AWK"; then
2673 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2674else
2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676for as_dir in $PATH
2677do
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2682 ac_cv_prog_AWK="$ac_prog"
2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 break 2
2685 fi
2686done
2687 done
2688IFS=$as_save_IFS
2689
2690fi
2691fi
2692AWK=$ac_cv_prog_AWK
2693if test -n "$AWK"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2695$as_echo "$AWK" >&6; }
2696else
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698$as_echo "no" >&6; }
2699fi
2700
2701
2702 test -n "$AWK" && break
2703done
2704
e5c3f801 2705
0fdbe983
DJ
2706srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2707
2708# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2709# a relative path.
2710if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2711 INSTALL="${srcpwd}/install-sh -c"
2712fi
2713
a0da8069
NN
2714# Set srcdir to "." if that's what it is.
2715# This is important for multilib support.
2716pwd=`${PWDCMD-pwd}`
a0da8069
NN
2717if test "${pwd}" = "${srcpwd}" ; then
2718 srcdir=.
252b5132
RH
2719fi
2720
a0da8069 2721topsrcdir=$srcpwd
252b5132 2722
a0da8069 2723extra_host_args=
afefada0 2724
a0da8069
NN
2725### To add a new directory to the tree, first choose whether it is a target
2726### or a host dependent tool. Then put it into the appropriate list
2727### (library or tools, host or target), doing a dependency sort.
252b5132 2728
c6b750e1 2729# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2730# configdirs, or target_configdirs; see the serialization section below.
252b5132 2731
c6b750e1
DJ
2732# Dependency sorting is only needed when *configuration* must be done in
2733# a particular order. In all cases a dependency should be specified in
a0da8069 2734# the Makefile, whether or not it's implicitly specified here.
252b5132 2735
a0da8069
NN
2736# Double entries in build_configdirs, configdirs, or target_configdirs may
2737# cause circular dependencies and break everything horribly.
252b5132 2738
6a9cf61e
PB
2739# these library is used by various programs built for the build
2740# environment
2741#
2742build_libs="build-libiberty"
2743
2744# these tools are built for the build environment
a90ef4bf 2745build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2746
a0da8069
NN
2747# these libraries are used by various programs built for the host environment
2748#
2bf680c4 2749host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
a0da8069 2750
a0da8069
NN
2751# these tools are built for the host environment
2752# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2753# know that we are building the simulator.
2754# binutils, gas and ld appear in that order because it makes sense to run
2755# "make check" in that particular order.
e6de499b 2756# If --enable-gold is used, "gold" may replace "ld".
a90ef4bf 2757host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
a0da8069
NN
2758
2759# libgcj represents the runtime libraries only used by gcj.
2760libgcj="target-libffi \
a0da8069 2761 target-zlib \
a0da8069
NN
2762 target-libjava"
2763
2764# these libraries are built for the target environment, and are built after
2765# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2766# Note that libiberty is not a target library.
b1299c4e 2767target_libraries="target-libgcc \
2bf680c4 2768 target-libbacktrace \
a0da8069
NN
2769 target-libgloss \
2770 target-newlib \
cff87f51 2771 target-libgomp \
7ec59b9e 2772 target-libatomic \
d32e2926 2773 target-libitm \
b9459e83 2774 target-libstdc++-v3 \
4b1cb4fe 2775 target-libmudflap \
5286fdef 2776 target-libsanitizer \
bb780410 2777 target-libssp \
e552509b 2778 target-libquadmath \
4b1cb4fe 2779 target-libgfortran \
4f0ef2d8 2780 target-boehm-gc \
83326456 2781 ${libgcj} \
a2592b1b 2782 target-libobjc \
e552509b
ILT
2783 target-libada \
2784 target-libgo"
a0da8069 2785
9c14acb8
NN
2786# these tools are built using the target libraries, and are intended to
2787# run only in the target environment
a0da8069 2788#
9c14acb8 2789# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2790# list belongs in this list.
a0da8069 2791#
a90ef4bf 2792target_tools="target-rda"
252b5132 2793
a0da8069 2794################################################################################
252b5132 2795
a0da8069
NN
2796## All tools belong in one of the four categories, and are assigned above
2797## We assign ${configdirs} this way to remove all embedded newlines. This
2798## is important because configure will choke if they ever get through.
2799## ${configdirs} is directories we build using the host tools.
2800## ${target_configdirs} is directories we build using the target tools.
a0da8069 2801configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2802target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2803build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2804
9cc8ae67
PB
2805
2806
a0da8069 2807################################################################################
252b5132 2808
a0da8069 2809srcname="gnu development package"
252b5132 2810
a0da8069
NN
2811# This gets set non-empty for some net releases of packages.
2812appdirs=""
252b5132 2813
a0da8069
NN
2814# Define is_cross_compiler to save on calls to 'test'.
2815is_cross_compiler=
2816if test x"${host}" = x"${target}" ; then
2817 is_cross_compiler=no
252b5132 2818else
a0da8069 2819 is_cross_compiler=yes
c6b750e1 2820fi
252b5132 2821
9175bfc0 2822# Find the build and target subdir names.
dd12c3a8 2823
66a79c16
DJ
2824# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2825# have matching libraries, they should use host libraries: Makefile.tpl
2826# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2827# However, they still use the build modules, because the corresponding
2828# host modules (e.g. bison) are only built for the host when bootstrap
2829# finishes. So:
2830# - build_subdir is where we find build modules, and never changes.
2831# - build_libsubdir is where we find build libraries, and can be overridden.
2832
2833# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2834build_subdir="build-${build_noncanonical}"
c6b750e1 2835
81ecdfbb
RW
2836# Check whether --with-build-libsubdir was given.
2837if test "${with_build_libsubdir+set}" = set; then :
2838 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2839else
2840 build_libsubdir="$build_subdir"
81ecdfbb
RW
2841fi
2842
b00612cc
PB
2843# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2844if ( test $srcdir = . && test -d gcc ) \
2845 || test -d $srcdir/../host-${host_noncanonical}; then
2846 host_subdir="host-${host_noncanonical}"
2847else
2848 host_subdir=.
2849fi
dd12c3a8
NN
2850# No prefix.
2851target_subdir=${target_noncanonical}
c6b750e1 2852
2fd0b40b
RW
2853# Be sure to cover against remnants of an in-tree build.
2854if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2855 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2856Use a pristine source tree when building in a separate tree" "$LINENO" 5
2857fi
252b5132 2858
a0da8069
NN
2859# Skipdirs are removed silently.
2860skipdirs=
2861# Noconfigdirs are removed loudly.
2862noconfigdirs=""
252b5132 2863
a0da8069
NN
2864use_gnu_ld=
2865# Make sure we don't let GNU ld be added if we didn't want it.
2866if test x$with_gnu_ld = xno ; then
2867 use_gnu_ld=no
93f9b408 2868 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2869fi
2870
a0da8069
NN
2871use_gnu_as=
2872# Make sure we don't let GNU as be added if we didn't want it.
2873if test x$with_gnu_as = xno ; then
2874 use_gnu_as=no
2875 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2876fi
2877
700d40ca
ILT
2878use_included_zlib=
2879# Make sure we don't let ZLIB be added if we didn't want it.
2880if test x$with_system_zlib = xyes ; then
2881 use_included_zlib=no
2882 noconfigdirs="$noconfigdirs zlib"
2883fi
2884
c6b750e1 2885# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2886# it's not even worth trying to configure, much less build, that tool.
252b5132 2887
a0da8069
NN
2888case ${with_x} in
2889 yes | "") ;; # the default value for this tree is that X11 is available
2890 no)
675c6968 2891 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2892 # We won't be able to build gdbtk without X.
c6b750e1 2893 enable_gdbtk=no
a0da8069
NN
2894 ;;
2895 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2896esac
252b5132 2897
0377a422 2898# Some are only suitable for cross toolchains.
a0da8069
NN
2899# Remove these if host=target.
2900cross_only="target-libgloss target-newlib target-opcodes"
2901
2902case $is_cross_compiler in
2903 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2904esac
252b5132 2905
a0da8069
NN
2906# If both --with-headers and --with-libs are specified, default to
2907# --without-newlib.
32be62b5
RS
2908if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2909 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2910 if test x"${with_newlib}" = x ; then
2911 with_newlib=no
2912 fi
252b5132
RH
2913fi
2914
a0da8069
NN
2915# Recognize --with-newlib/--without-newlib.
2916case ${with_newlib} in
2917 no) skipdirs="${skipdirs} target-newlib" ;;
2918 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2919esac
252b5132 2920
c7791212
NC
2921# Handle --enable-gold, --enable-ld.
2922# --disable-gold [--enable-ld]
2923# Build only ld. Default option.
d3b50760
L
2924# --enable-gold [--enable-ld]
2925# Build both gold and ld. Install gold as "ld.gold", install ld
2926# as "ld.bfd" and "ld".
2927# --enable-gold=default [--enable-ld]
c7791212
NC
2928# Build both gold and ld. Install gold as "ld.gold" and "ld",
2929# install ld as "ld.bfd".
2930# --enable-gold[=default] --disable-ld
2931# Build only gold, which is then installed as both "ld.gold" and "ld".
2932# --enable-gold --enable-ld=default
d3b50760
L
2933# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2934# and ld.bfd).
c7791212
NC
2935# In other words, ld is default
2936# --enable-gold=default --enable-ld=default
2937# Error.
2938
2939default_ld=
81ecdfbb
RW
2940# Check whether --enable-gold was given.
2941if test "${enable_gold+set}" = set; then :
2942 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2943else
2944 ENABLE_GOLD=no
81ecdfbb
RW
2945fi
2946
c7791212
NC
2947case "${ENABLE_GOLD}" in
2948 yes|default)
e6de499b
NC
2949 # Check for ELF target.
2950 is_elf=no
2951 case "${target}" in
2952 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 2953 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 2954 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2bda3143 2955 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
e6de499b
NC
2956 case "${target}" in
2957 *-*-linux*aout* | *-*-linux*oldld*)
2958 ;;
2959 *)
2960 is_elf=yes
2961 ;;
2962 esac
2963 esac
2964
2965 if test "$is_elf" = "yes"; then
2966 # Check for target supported by gold.
93f9b408 2967 case "${target}" in
5c0b3823 2968 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
c7791212
NC
2969 configdirs="$configdirs gold"
2970 if test x${ENABLE_GOLD} = xdefault; then
2971 default_ld=gold
2972 fi
e6de499b 2973 ENABLE_GOLD=yes
93f9b408
ILT
2974 ;;
2975 esac
e6de499b
NC
2976 fi
2977 ;;
2978 no)
2979 ;;
2980 *)
2981 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2982 ;;
c7791212
NC
2983esac
2984
2985# Check whether --enable-ld was given.
2986if test "${enable_ld+set}" = set; then :
2987 enableval=$enable_ld; ENABLE_LD=$enableval
2988else
2989 ENABLE_LD=yes
2990fi
2991
2992
2993case "${ENABLE_LD}" in
2994 default)
d3b50760 2995 if test x${default_ld} != x; then
c7791212
NC
2996 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2997 fi
2998 ;;
2999 yes)
3000 ;;
3001 no)
3002 if test x${ENABLE_GOLD} != xyes; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3004$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3005 fi
3006 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3007 ;;
3008 *)
3009 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3010 ;;
3011esac
93f9b408 3012
a0da8069 3013# Configure extra directories which are host specific
252b5132 3014
a0da8069
NN
3015case "${host}" in
3016 *-cygwin*)
3017 configdirs="$configdirs libtermcap" ;;
3018esac
252b5132 3019
59f7ec45
HPN
3020# A target can indicate whether a language isn't supported for some reason.
3021# Only spaces may be used in this macro; not newlines or tabs.
3022unsupported_languages=
3023
c6b750e1 3024# Remove more programs from consideration, based on the host or
a0da8069
NN
3025# target this usually means that a port of the program doesn't
3026# exist yet.
252b5132 3027
a0da8069 3028case "${host}" in
3516a403 3029 i[3456789]86-*-msdosdjgpp*)
6a608608 3030 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3031 ;;
a0da8069 3032esac
252b5132 3033
4b1cb4fe 3034
89a1e9c3
PB
3035# Check whether --enable-libquadmath was given.
3036if test "${enable_libquadmath+set}" = set; then :
3037 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3038else
3039 ENABLE_LIBQUADMATH=yes
3040fi
3041
3042if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3043 noconfigdirs="$noconfigdirs target-libquadmath"
3044fi
3045
3046
3047# Check whether --enable-libquadmath-support was given.
3048if test "${enable_libquadmath_support+set}" = set; then :
3049 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3050else
3051 ENABLE_LIBQUADMATH_SUPPORT=yes
3052fi
3053
3054enable_libquadmath_support=
3055if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3056 enable_libquadmath_support=no
3057fi
3058
3059
81ecdfbb
RW
3060# Check whether --enable-libada was given.
3061if test "${enable_libada+set}" = set; then :
3062 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3063else
3064 ENABLE_LIBADA=yes
81ecdfbb
RW
3065fi
3066
a2592b1b 3067if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3068 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3069fi
3070
81ecdfbb
RW
3071# Check whether --enable-libssp was given.
3072if test "${enable_libssp+set}" = set; then :
3073 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3074else
3075 ENABLE_LIBSSP=yes
81ecdfbb
RW
3076fi
3077
5f128533 3078
f66a9a70
L
3079# Check whether --enable-libstdcxx was given.
3080if test "${enable_libstdcxx+set}" = set; then :
3081 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3082else
3083 ENABLE_LIBSTDCXX=default
3084fi
3085
3086if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3087 noconfigdirs="$noconfigdirs libstdc++-v3"
3088fi
3089
a0da8069
NN
3090# Save it here so that, even in case of --enable-libgcj, if the Java
3091# front-end isn't enabled, we still get libgcj disabled.
3092libgcj_saved=$libgcj
3093case $enable_libgcj in
3094yes)
3095 # If we reset it here, it won't get added to noconfigdirs in the
3096 # target-specific build rules, so it will be forcibly enabled
3097 # (unless the Java language itself isn't enabled).
3098 libgcj=
3099 ;;
3100no)
3101 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
3102 # Don't disable libffi, though, other languages use it.
3103 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
33d23ee8
ILT
3104 # Clear libgcj_saved so that even if java is enabled libffi won't be
3105 # built.
3106 libgcj_saved=
a0da8069
NN
3107 ;;
3108esac
252b5132 3109
ffdd6afc
ILT
3110# Check whether --enable-static-libjava was given.
3111if test "${enable_static_libjava+set}" = set; then :
3112 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3113else
3114 ENABLE_STATIC_LIBJAVA=no
3115fi
3116
3117enable_static_libjava=
3118if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3119 enable_static_libjava=yes
3120fi
3121
3122if test x$enable_static_libjava != xyes ; then
3123 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3124fi
3125
4b1cb4fe 3126
a6df5a19
PB
3127# Disable libmudflap on some systems.
3128if test x$enable_libmudflap = x ; then
3e707e94 3129 case "${target}" in
29383458 3130 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 3131 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
3132 ;;
3133 *-*-freebsd*)
3134 # Enable libmudflap by default in FreeBSD.
3135 ;;
3136 *)
3137 # Disable it by default everywhere else.
3138 noconfigdirs="$noconfigdirs target-libmudflap"
3139 ;;
3140 esac
a6df5a19 3141fi
4b1cb4fe 3142
a6df5a19
PB
3143# Disable libgomp on non POSIX hosted systems.
3144if test x$enable_libgomp = x ; then
b3ded179
PB
3145 # Enable libgomp by default on hosted POSIX systems.
3146 case "${target}" in
29383458 3147 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3148 ;;
5b806d27 3149 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3150 ;;
2479f722 3151 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3152 ;;
3153 *-*-darwin* | *-*-aix*)
3154 ;;
3155 *)
3156 noconfigdirs="$noconfigdirs target-libgomp"
3157 ;;
3158 esac
a6df5a19 3159fi
b3ded179 3160
7ec59b9e
L
3161# Disable libatomic on unsupported systems.
3162if test -d ${srcdir}/libatomic; then
3163 if test x$enable_libatomic = x; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3165$as_echo_n "checking for libatomic support... " >&6; }
3166 if (srcdir=${srcdir}/libatomic; \
3167 . ${srcdir}/configure.tgt; \
3168 test -n "$UNSUPPORTED")
3169 then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171$as_echo "no" >&6; }
3172 noconfigdirs="$noconfigdirs target-libatomic"
3173 else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175$as_echo "yes" >&6; }
3176 fi
3177 fi
3178fi
3179
d32e2926
RH
3180# Disable libitm on unsupported systems.
3181if test -d ${srcdir}/libitm; then
3182 if test x$enable_libitm = x; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3184$as_echo_n "checking for libitm support... " >&6; }
3185 if (srcdir=${srcdir}/libitm; \
3186 . ${srcdir}/configure.tgt; \
3187 test -n "$UNSUPPORTED")
3188 then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190$as_echo "no" >&6; }
3191 noconfigdirs="$noconfigdirs target-libitm"
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3194$as_echo "yes" >&6; }
3195 fi
3196 fi
3197fi
3198
5286fdef
L
3199# Disable libsanitizer on unsupported systems.
3200if test -d ${srcdir}/libsanitizer; then
3201 if test x$enable_libsanitizer = x; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3203$as_echo_n "checking for libsanitizer support... " >&6; }
3204 if (srcdir=${srcdir}/libsanitizer; \
3205 . ${srcdir}/configure.tgt; \
3206 test -n "$UNSUPPORTED")
3207 then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209$as_echo "no" >&6; }
3210 noconfigdirs="$noconfigdirs target-libsanitizer"
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213$as_echo "yes" >&6; }
3214 fi
3215 fi
3216fi
3217
1488e230
DE
3218# Disable libquadmath for some systems.
3219case "${target}" in
5286fdef
L
3220 avr-*-*)
3221 noconfigdirs="$noconfigdirs target-libquadmath"
3222 ;;
1488e230
DE
3223 # libquadmath is unused on AIX and libquadmath build process use of
3224 # LD_LIBRARY_PATH can break AIX bootstrap.
3225 powerpc-*-aix* | rs6000-*-aix*)
3226 noconfigdirs="$noconfigdirs target-libquadmath"
3227 ;;
3228esac
3229
065a5627
JM
3230# Disable libssp for some systems.
3231case "${target}" in
3232 avr-*-*)
c5f5c3c2 3233 # No hosted I/O support.
065a5627
JM
3234 noconfigdirs="$noconfigdirs target-libssp"
3235 ;;
3236 powerpc-*-aix* | rs6000-*-aix*)
3237 noconfigdirs="$noconfigdirs target-libssp"
3238 ;;
99c513f6 3239 rl78-*-*)
202e2356
NC
3240 # libssp uses a misaligned load to trigger a fault, but the RL78
3241 # doesn't fault for those - instead, it gives a build-time error
3242 # for explicit misaligned loads.
99c513f6
DD
3243 noconfigdirs="$noconfigdirs target-libssp"
3244 ;;
065a5627
JM
3245esac
3246
065a5627 3247# Disable libstdc++-v3 for some systems.
f66a9a70
L
3248# Allow user to override this if they pass --enable-libstdc++-v3
3249if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3250 case "${target}" in
3251 *-*-vxworks*)
3252 # VxWorks uses the Dinkumware C++ library.
3253 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3254 ;;
3255 arm*-wince-pe*)
3256 # the C++ libraries don't build on top of CE's C libraries
3257 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3258 ;;
3259 avr-*-*)
3260 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3261 ;;
3262 esac
3263fi
065a5627
JM
3264
3265# Disable Fortran for some systems.
3266case "${target}" in
3267 mmix-*-*)
3268 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3269 unsupported_languages="$unsupported_languages fortran"
3270 ;;
3271esac
3272
0827f9a6 3273# Disable Java if libffi is not supported.
9863d716 3274case "${target}" in
0827f9a6
JM
3275 alpha*-*-*)
3276 ;;
3277 arm*-*-*)
3278 ;;
3279 cris-*-*)
3280 ;;
3281 frv-*-*)
3282 ;;
3283 hppa*-*-linux*)
3284 ;;
3285 hppa*-*-hpux*)
3286 ;;
3287 i?86-*-*)
3288 ;;
3289 ia64*-*-*)
3290 ;;
3291 m32r*-*-*)
3292 ;;
3293 m68k-*-*)
3294 ;;
2479f722 3295 mips*-*-rtems*)
0827f9a6
JM
3296 ;;
3297 mips*-*-linux*)
3298 ;;
3299 powerpc*-*-linux*)
3300 ;;
3301 powerpc-*-darwin*)
3302 ;;
3303 powerpc-*-aix* | rs6000-*-aix*)
3304 ;;
3305 powerpc-*-freebsd*)
3306 ;;
3307 powerpc64-*-freebsd*)
3308 ;;
3309 powerpc*-*-rtems*)
9863d716 3310 ;;
0827f9a6
JM
3311 s390-*-* | s390x-*-*)
3312 ;;
3313 sh-*-* | sh[34]*-*-*)
3314 ;;
3315 sh64-*-* | sh5*-*-*)
3316 ;;
3317 sparc*-*-*)
3318 ;;
3319 x86_64-*-*)
3320 ;;
3321 *-*-*)
3322 unsupported_languages="$unsupported_languages java"
3323 ;;
3324esac
3325
3326# Disable Java, libgcj or related libraries for some systems.
3327case "${target}" in
9863d716
JM
3328 powerpc-*-darwin*)
3329 ;;
3330 i[3456789]86-*-darwin*)
3331 ;;
3332 x86_64-*-darwin[912]*)
3333 ;;
3334 *-*-darwin*)
3335 noconfigdirs="$noconfigdirs ${libgcj}"
3336 ;;
9863d716
JM
3337 *-*-netware*)
3338 noconfigdirs="$noconfigdirs ${libgcj}"
3339 ;;
3340 *-*-rtems*)
3341 noconfigdirs="$noconfigdirs ${libgcj}"
3342 ;;
3343 *-*-tpf*)
3344 noconfigdirs="$noconfigdirs ${libgcj}"
3345 ;;
3346 *-*-uclinux*)
3347 noconfigdirs="$noconfigdirs ${libgcj}"
3348 ;;
3349 *-*-vxworks*)
3350 noconfigdirs="$noconfigdirs ${libgcj}"
3351 ;;
9863d716
JM
3352 alpha*-*-*vms*)
3353 noconfigdirs="$noconfigdirs ${libgcj}"
3354 ;;
0827f9a6 3355 arm-wince-pe)
9863d716
JM
3356 noconfigdirs="$noconfigdirs ${libgcj}"
3357 ;;
9863d716
JM
3358 arm*-*-symbianelf*)
3359 noconfigdirs="$noconfigdirs ${libgcj}"
3360 ;;
9863d716 3361 bfin-*-*)
9863d716
JM
3362 noconfigdirs="$noconfigdirs target-boehm-gc"
3363 ;;
9863d716
JM
3364 cris-*-* | crisv32-*-*)
3365 unsupported_languages="$unsupported_languages java"
3366 case "${target}" in
3367 *-*-linux*)
3368 ;;
3369 *) # See PR46792 regarding target-libffi.
3370 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3371 esac
3372 ;;
9863d716
JM
3373 hppa*64*-*-linux*)
3374 # In this case, it's because the hppa64-linux target is for
3375 # the kernel only at this point and has no libc, and thus no
3376 # headers, crt*.o, etc., all of which are needed by these.
82ae827f 3377 unsupported_languages="$unsupported_languages java"
9863d716 3378 ;;
82ae827f 3379 hppa*64*-*-hpux*)
9863d716
JM
3380 noconfigdirs="$noconfigdirs ${libgcj}"
3381 ;;
3382 hppa*-hp-hpux11*)
3383 ;;
82ae827f 3384 hppa*-*-hpux*)
9863d716
JM
3385 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3386 # build on HP-UX 10.20.
3387 noconfigdirs="$noconfigdirs ${libgcj}"
3388 ;;
9863d716
JM
3389 ia64*-*-*vms*)
3390 noconfigdirs="$noconfigdirs ${libgcj}"
3391 ;;
9863d716
JM
3392 i[3456789]86-w64-mingw*)
3393 noconfigdirs="$noconfigdirs ${libgcj}"
3394 ;;
3395 i[3456789]86-*-mingw*)
3396 noconfigdirs="$noconfigdirs ${libgcj}"
3397 ;;
3398 x86_64-*-mingw*)
3399 noconfigdirs="$noconfigdirs ${libgcj}"
3400 ;;
9863d716
JM
3401 mmix-*-*)
3402 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
9863d716
JM
3403 ;;
3404 powerpc-*-aix*)
3405 # copied from rs6000-*-* entry
3406 noconfigdirs="$noconfigdirs ${libgcj}"
3407 ;;
9863d716
JM
3408 rs6000-*-aix*)
3409 noconfigdirs="$noconfigdirs ${libgcj}"
3410 ;;
9863d716
JM
3411 *-*-lynxos*)
3412 noconfigdirs="$noconfigdirs ${libgcj}"
3413 ;;
9863d716
JM
3414esac
3415
a413f71a
ILT
3416# Disable libgo for some systems where it is known to not work.
3417# For testing, you can easily override this with --enable-libgo.
3418if test x$enable_libgo = x; then
3419 case "${target}" in
3420 *-*-darwin*)
3421 # PR 46986
3422 noconfigdirs="$noconfigdirs target-libgo"
3423 ;;
3424 *-*-cygwin* | *-*-mingw*)
3425 noconfigdirs="$noconfigdirs target-libgo"
3426 ;;
3427 *-*-aix*)
3428 noconfigdirs="$noconfigdirs target-libgo"
3429 ;;
3430 esac
3431fi
3432
691bb5a1
DD
3433# Default libgloss CPU subdirectory.
3434libgloss_dir="$target_cpu"
4b1cb4fe 3435
ff46fb8f
JM
3436case "${target}" in
3437 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3438 libgloss_dir=wince
3439 ;;
3440 arm*-*-*)
3441 libgloss_dir=arm
3442 ;;
3443 cris-*-* | crisv32-*-*)
3444 libgloss_dir=cris
3445 ;;
3446 hppa*-*-*)
3447 libgloss_dir=pa
3448 ;;
3449 i[3456789]86-*-*)
3450 libgloss_dir=i386
3451 ;;
3452 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3453 libgloss_dir=m68hc11
3454 ;;
3455 m68*-*-* | fido-*-*)
3456 libgloss_dir=m68k
3457 ;;
3458 mips*-*-*)
3459 libgloss_dir=mips
3460 ;;
3461 powerpc*-*-*)
3462 libgloss_dir=rs6000
3463 ;;
3464 sparc*-*-*)
3465 libgloss_dir=sparc
3466 ;;
3467esac
3468
c7e4b184 3469# Disable newlib and libgloss for various target OSes.
a0da8069 3470case "${target}" in
c7e4b184
JM
3471 alpha*-dec-osf*)
3472 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3473 ;;
3474 i[3456789]86-*-linux*)
3475 # This section makes it possible to build newlib natively on linux.
3476 # If we are using a cross compiler then don't configure newlib.
3477 if test x${is_cross_compiler} != xno ; then
3478 noconfigdirs="$noconfigdirs target-newlib"
3479 fi
3480 noconfigdirs="$noconfigdirs target-libgloss"
3481 # If we are not using a cross compiler, do configure newlib.
3482 # Note however, that newlib will only be configured in this situation
3483 # if the --with-newlib option has been given, because otherwise
3484 # 'target-newlib' will appear in skipdirs.
3485 ;;
3486 i[3456789]86-*-rdos*)
3487 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3488 ;;
3489 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3490 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3491 ;;
3492 sparc-*-sunos4*)
3493 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3494 ;;
3495 *-*-aix*)
3496 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3497 ;;
3498 *-*-beos*)
3499 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3500 ;;
a0da8069 3501 *-*-chorusos)
b2f14e4a 3502 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3503 ;;
c7e4b184
JM
3504 *-*-dragonfly*)
3505 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3506 ;;
3507 *-*-freebsd*)
3508 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3509 ;;
3510 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3511 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3512 ;;
3513 *-*-lynxos*)
3514 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3515 ;;
3516 *-*-mingw*)
3517 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3518 ;;
3519 *-*-netbsd*)
3520 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3521 ;;
3522 *-*-netware*)
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3524 ;;
3525 *-*-tpf*)
3526 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3527 ;;
3528 *-*-uclinux*)
3529 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3530 ;;
3531 *-*-vxworks*)
3532 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3533 ;;
3534esac
3535
3536case "${target}" in
3537 *-*-chorusos)
3538 ;;
24741ab2 3539 powerpc-*-darwin*)
9d39db92 3540 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3541 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3542 ;;
85bd1942
TG
3543 i[3456789]86-*-darwin*)
3544 noconfigdirs="$noconfigdirs ld gprof"
3545 noconfigdirs="$noconfigdirs sim target-rda"
3546 ;;
e8a5fa9c 3547 x86_64-*-darwin[912]*)
652dec25
TG
3548 noconfigdirs="$noconfigdirs ld gas gprof"
3549 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3550 ;;
04d1ab34 3551 *-*-darwin*)
d320aacb 3552 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3553 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3554 ;;
5b806d27 3555 *-*-dragonfly*)
5b806d27 3556 ;;
de0b4a87 3557 *-*-freebsd*)
4b1cb4fe
DD
3558 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3559 && test -f /usr/local/include/gmp.h; then
3560 with_gmp=/usr/local
3561 fi
4b1cb4fe 3562 ;;
f8a495c8
NC
3563 *-*-kaos*)
3564 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3565 noconfigdirs="$noconfigdirs target-libgloss"
3566 ;;
a0da8069 3567 *-*-netbsd*)
a0da8069 3568 ;;
2a3124ca 3569 *-*-netware*)
a0da8069
NN
3570 ;;
3571 *-*-rtems*)
9863d716 3572 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3573 ;;
1587117a
EC
3574 # The tpf target doesn't support gdb yet.
3575 *-*-tpf*)
c7e4b184 3576 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3577 ;;
c1968181 3578 *-*-uclinux*)
c7e4b184 3579 noconfigdirs="$noconfigdirs target-rda"
c1968181 3580 ;;
a0da8069 3581 *-*-vxworks*)
a0da8069
NN
3582 ;;
3583 alpha*-dec-osf*)
3584 # ld works, but does not support shared libraries.
a0da8069 3585 # gas doesn't generate exception information.
c7e4b184 3586 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3587 ;;
3588 alpha*-*-*vms*)
9863d716 3589 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3590 ;;
a0da8069
NN
3591 alpha*-*-*)
3592 # newlib is not 64 bit ready
9863d716 3593 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3594 ;;
a0da8069 3595 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3596 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
3597 ;;
3598 arc-*-*)
782cb41f 3599 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3600 ;;
a0da8069 3601 arm-*-pe*)
9863d716 3602 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3603 ;;
a0da8069 3604 arm-*-riscix*)
b2f14e4a 3605 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3606 ;;
8e71395b
L
3607 avr-*-rtems*)
3608 ;;
3609 avr-*-*)
3610 if test x${with_avrlibc} != xno; then
3611 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3612 fi
3613 ;;
a0da8069 3614 c4x-*-* | tic4x-*-*)
b2f14e4a 3615 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3616 ;;
b2f14e4a
JM
3617 tic54x-*-*)
3618 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3619 ;;
a0da8069 3620 d10v-*-*)
b2f14e4a 3621 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3622 ;;
3623 d30v-*-*)
b2f14e4a 3624 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3625 ;;
3626 fr30-*-elf*)
9863d716 3627 noconfigdirs="$noconfigdirs gdb"
a0da8069 3628 ;;
20135e4c 3629 moxie-*-*)
20135e4c
NC
3630 noconfigdirs="$noconfigdirs gprof"
3631 ;;
a0da8069 3632 h8300*-*-*)
9863d716 3633 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3634 ;;
3635 h8500-*-*)
b2f14e4a 3636 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3637 ;;
caeba88f 3638 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3639 ;;
93cc359e 3640 hppa*64*-*-linux*)
a0da8069 3641 ;;
f0ff0f90 3642 hppa*-*-linux*)
5dcac624 3643 ;;
a0da8069 3644 hppa*-*-*elf* | \
a0da8069
NN
3645 hppa*-*-lites* | \
3646 hppa*-*-openbsd* | \
3647 hppa*64*-*-*)
4f0ef2d8
CD
3648 ;;
3649 hppa*-hp-hpux11*)
0377a422 3650 noconfigdirs="$noconfigdirs ld"
a0da8069 3651 ;;
691bb5a1 3652 hppa*-*-pro*)
691bb5a1 3653 ;;
a0da8069 3654 hppa*-*-*)
9863d716 3655 noconfigdirs="$noconfigdirs ld"
a0da8069 3656 ;;
b07c2aad 3657 i960-*-*)
b2f14e4a 3658 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3659 ;;
a0da8069
NN
3660 ia64*-*-elf*)
3661 # No gdb support yet.
0377a422 3662 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3663 ;;
3664 ia64*-**-hpux*)
92c9a463 3665 # No ld support yet.
9863d716 3666 noconfigdirs="$noconfigdirs libgui itcl ld"
a0da8069 3667 ;;
19e99079 3668 ia64*-*-*vms*)
7ec59b9e
L
3669 # No ld support yet.
3670 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3671 ;;
1f53ca9a 3672 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3673 ;;
3674 i[3456789]86-*-mingw*)
45055374 3675 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3676 ;;
a0da8069
NN
3677 *-*-cygwin*)
3678 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3679 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3680 # always build newlib if winsup directory is present.
45055374 3681 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3682 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3683 elif test -d "$srcdir/newlib"; then
45055374 3684 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3685 fi
c6b750e1 3686 ;;
ec11bdc6 3687 i[3456789]86-*-pe)
782cb41f 3688 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3689 ;;
ec11bdc6 3690 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3691 # The linker does not yet know about weak symbols in COFF,
3692 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3693 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3694 ;;
ec11bdc6 3695 i[3456789]86-*-sco*)
b2f14e4a 3696 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3697 ;;
cff32a7c 3698 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3699 noconfigdirs="$noconfigdirs target-libgloss"
3700 ;;
ec11bdc6 3701 i[3456789]86-*-sysv4*)
b2f14e4a 3702 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3703 ;;
ec11bdc6 3704 i[3456789]86-*-beos*)
c7e4b184 3705 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3706 ;;
b59bea8a 3707 i[3456789]86-*-rdos*)
c7e4b184 3708 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3709 ;;
a0da8069 3710 mmix-*-*)
9863d716 3711 noconfigdirs="$noconfigdirs gdb"
a0da8069 3712 ;;
4970f871 3713 mt-*-*)
cdb9b172
AH
3714 noconfigdirs="$noconfigdirs sim"
3715 ;;
a0da8069
NN
3716 powerpc-*-aix*)
3717 # copied from rs6000-*-* entry
c7e4b184 3718 noconfigdirs="$noconfigdirs gprof"
a0da8069 3719 ;;
93cc359e 3720 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3721 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3722 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3723 # always build newlib.
3724 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3725 ;;
3726 # This is temporary until we can link against shared libraries
3727 powerpcle-*-solaris*)
b2f14e4a 3728 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3729 ;;
3730 powerpc-*-beos*)
c7e4b184 3731 noconfigdirs="$noconfigdirs gdb"
a0da8069 3732 ;;
a0da8069 3733 rs6000-*-lynxos*)
c7e4b184 3734 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3735 ;;
3736 rs6000-*-aix*)
c7e4b184 3737 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3738 ;;
3739 rs6000-*-*)
9863d716 3740 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3741 ;;
3742 m68k-apollo-*)
b2f14e4a 3743 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3744 ;;
25a07265 3745 microblaze*)
9863d716 3746 noconfigdirs="$noconfigdirs gprof"
25a07265 3747 ;;
d09bbf00 3748 mips*-sde-elf* | mips*-mti-elf*)
5bd8be13
RS
3749 if test x$with_newlib = xyes; then
3750 noconfigdirs="$noconfigdirs gprof"
3751 fi
5bd8be13 3752 ;;
a0da8069 3753 mips*-*-irix5*)
b2f14e4a 3754 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3755 ;;
3756 mips*-*-irix6*)
9863d716 3757 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3758 ;;
a0da8069 3759 mips*-*-bsd*)
b2f14e4a 3760 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3761 ;;
a0da8069 3762 mips*-*-linux*)
a0da8069
NN
3763 ;;
3764 mips*-*-*)
9863d716 3765 noconfigdirs="$noconfigdirs gprof"
a0da8069 3766 ;;
dbf85af7 3767 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3768 case "${target}" in
3769 sh*-*-elf)
9863d716 3770 ;;
e8a5fa9c 3771 *)
9863d716 3772 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3773 esac
a0da8069 3774 ;;
a0da8069 3775 sparc-*-sunos4*)
c7e4b184 3776 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3777 use_gnu_ld=no
3778 fi
3779 ;;
619a3713 3780 tic6x-*-*)
40ae9136 3781 noconfigdirs="$noconfigdirs sim"
619a3713 3782 ;;
eb4b2452
NC
3783 tilepro-*-* | tilegx-*-*)
3784 noconfigdirs="$noconfigdirs sim"
3785 ;;
a0da8069 3786 v810-*-*)
b2f14e4a 3787 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3788 ;;
3789 vax-*-*)
9863d716 3790 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3791 ;;
a0da8069 3792esac
252b5132 3793
a0da8069
NN
3794# If we aren't building newlib, then don't build libgloss, since libgloss
3795# depends upon some newlib header files.
3796case "${noconfigdirs}" in
3797 *target-libgloss*) ;;
3798 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3799esac
3800
a0da8069 3801# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3802host_makefile_frag=/dev/null
3803if test -d ${srcdir}/config ; then
3804case "${host}" in
ec11bdc6 3805 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3806 host_makefile_frag="config/mh-djgpp"
3807 ;;
3808 *-cygwin*)
e33b51a6 3809
81ecdfbb
RW
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3811$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3812echo a >cygwin-cat-check
1f53ca9a 3813if test `cat cygwin-cat-check` = a ; then
8ade07e9 3814 rm cygwin-cat-check
81ecdfbb
RW
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3816$as_echo "yes" >&6; }
e33b51a6 3817else
8ade07e9 3818 rm cygwin-cat-check
81ecdfbb
RW
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820$as_echo "no" >&6; }
3821 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3822 Please either mount the build directory in binary mode or run the following
3823 commands before running any configure script:
3824set -o igncr
3825export SHELLOPTS
81ecdfbb 3826 " "$LINENO" 5
e33b51a6 3827fi
e33b51a6 3828
a0da8069
NN
3829 host_makefile_frag="config/mh-cygwin"
3830 ;;
8a1599ab 3831 *-mingw*)
84e7906e 3832 host_makefile_frag="config/mh-mingw"
2d1e8239 3833 ;;
da888c87 3834 hppa*-hp-hpux10*)
da888c87 3835 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3836 ;;
3516a403 3837 hppa*-hp-hpux*)
da888c87
PB
3838 host_makefile_frag="config/mh-pa"
3839 ;;
3840 hppa*-*)
3841 host_makefile_frag="config/mh-pa"
3842 ;;
e552509b
ILT
3843 *-*-darwin*)
3844 host_makefile_frag="config/mh-darwin"
0df3d27f 3845 ;;
f6d183c0
PB
3846 powerpc-*-aix*)
3847 host_makefile_frag="config/mh-ppc-aix"
3848 ;;
3849 rs6000-*-aix*)
3850 host_makefile_frag="config/mh-ppc-aix"
3851 ;;
a0da8069
NN
3852esac
3853fi
3854
9e07f89d 3855if test "${build}" != "${host}" ; then
1576798e
PB
3856 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3857 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3858 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3859 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3860 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3861 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3862 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3863 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3864 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3865 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3866 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3867 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3868 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3869else
3870 AR_FOR_BUILD="\$(AR)"
3871 AS_FOR_BUILD="\$(AS)"
512b7dfb 3872 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3873 CXX_FOR_BUILD="\$(CXX)"
3874 GCJ_FOR_BUILD="\$(GCJ)"
3875 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3876 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3877 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3878 LD_FOR_BUILD="\$(LD)"
3879 NM_FOR_BUILD="\$(NM)"
3880 RANLIB_FOR_BUILD="\$(RANLIB)"
3881 WINDRES_FOR_BUILD="\$(WINDRES)"
3882 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3883fi
3884
3885ac_ext=c
c6b750e1
DJ
3886ac_cpp='$CPP $CPPFLAGS'
3887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890if test -n "$ac_tool_prefix"; then
3891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3892set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894$as_echo_n "checking for $ac_word... " >&6; }
3895if test "${ac_cv_prog_CC+set}" = set; then :
3896 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3897else
3898 if test -n "$CC"; then
3899 ac_cv_prog_CC="$CC" # Let the user override the test.
3900else
3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3910 break 2
3911 fi
3912done
81ecdfbb
RW
3913 done
3914IFS=$as_save_IFS
c6b750e1
DJ
3915
3916fi
3917fi
3918CC=$ac_cv_prog_CC
3919if test -n "$CC"; then
81ecdfbb
RW
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3921$as_echo "$CC" >&6; }
c6b750e1 3922else
81ecdfbb
RW
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924$as_echo "no" >&6; }
c6b750e1
DJ
3925fi
3926
81ecdfbb 3927
c6b750e1
DJ
3928fi
3929if test -z "$ac_cv_prog_CC"; then
3930 ac_ct_CC=$CC
6a9cf61e 3931 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3932set dummy gcc; ac_word=$2
81ecdfbb
RW
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934$as_echo_n "checking for $ac_word... " >&6; }
3935if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3936 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3937else
3938 if test -n "$ac_ct_CC"; then
3939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3940else
3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3948 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3950 break 2
3951 fi
3952done
81ecdfbb
RW
3953 done
3954IFS=$as_save_IFS
c6b750e1
DJ
3955
3956fi
3957fi
3958ac_ct_CC=$ac_cv_prog_ac_ct_CC
3959if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3961$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3962else
81ecdfbb
RW
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964$as_echo "no" >&6; }
c6b750e1
DJ
3965fi
3966
81ecdfbb
RW
3967 if test "x$ac_ct_CC" = x; then
3968 CC=""
3969 else
3970 case $cross_compiling:$ac_tool_warned in
3971yes:)
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3974ac_tool_warned=yes ;;
3975esac
3976 CC=$ac_ct_CC
3977 fi
c6b750e1
DJ
3978else
3979 CC="$ac_cv_prog_CC"
3980fi
3981
3982if test -z "$CC"; then
81ecdfbb
RW
3983 if test -n "$ac_tool_prefix"; then
3984 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3985set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987$as_echo_n "checking for $ac_word... " >&6; }
3988if test "${ac_cv_prog_CC+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
9e07f89d
NN
3990else
3991 if test -n "$CC"; then
3992 ac_cv_prog_CC="$CC" # Let the user override the test.
3993else
c6b750e1
DJ
3994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995for as_dir in $PATH
3996do
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4001 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4003 break 2
4004 fi
4005done
81ecdfbb
RW
4006 done
4007IFS=$as_save_IFS
c6b750e1 4008
9e07f89d
NN
4009fi
4010fi
c6b750e1 4011CC=$ac_cv_prog_CC
9e07f89d 4012if test -n "$CC"; then
81ecdfbb
RW
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014$as_echo "$CC" >&6; }
c6b750e1 4015else
81ecdfbb
RW
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017$as_echo "no" >&6; }
c6b750e1
DJ
4018fi
4019
c6b750e1 4020
81ecdfbb 4021 fi
c6b750e1 4022fi
9e07f89d
NN
4023if test -z "$CC"; then
4024 # Extract the first word of "cc", so it can be a program name with args.
4025set dummy cc; ac_word=$2
81ecdfbb
RW
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027$as_echo_n "checking for $ac_word... " >&6; }
4028if test "${ac_cv_prog_CC+set}" = set; then :
4029 $as_echo_n "(cached) " >&6
9e07f89d
NN
4030else
4031 if test -n "$CC"; then
4032 ac_cv_prog_CC="$CC" # Let the user override the test.
4033else
9e07f89d 4034 ac_prog_rejected=no
c6b750e1
DJ
4035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036for as_dir in $PATH
4037do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
4042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4043 ac_prog_rejected=yes
4044 continue
4045 fi
4046 ac_cv_prog_CC="cc"
81ecdfbb 4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4048 break 2
4049 fi
4050done
81ecdfbb
RW
4051 done
4052IFS=$as_save_IFS
c6b750e1 4053
9e07f89d
NN
4054if test $ac_prog_rejected = yes; then
4055 # We found a bogon in the path, so make sure we never use it.
4056 set dummy $ac_cv_prog_CC
4057 shift
c6b750e1 4058 if test $# != 0; then
9e07f89d
NN
4059 # We chose a different compiler from the bogus one.
4060 # However, it has the same basename, so the bogon will be chosen
4061 # first if we set CC to just the basename; use the full file name.
4062 shift
c6b750e1 4063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4064 fi
4065fi
4066fi
4067fi
c6b750e1 4068CC=$ac_cv_prog_CC
9e07f89d 4069if test -n "$CC"; then
81ecdfbb
RW
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4071$as_echo "$CC" >&6; }
9e07f89d 4072else
81ecdfbb
RW
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074$as_echo "no" >&6; }
9e07f89d
NN
4075fi
4076
81ecdfbb 4077
c6b750e1
DJ
4078fi
4079if test -z "$CC"; then
4080 if test -n "$ac_tool_prefix"; then
81ecdfbb 4081 for ac_prog in cl.exe
c6b750e1
DJ
4082 do
4083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086$as_echo_n "checking for $ac_word... " >&6; }
4087if test "${ac_cv_prog_CC+set}" = set; then :
4088 $as_echo_n "(cached) " >&6
9e07f89d
NN
4089else
4090 if test -n "$CC"; then
4091 ac_cv_prog_CC="$CC" # Let the user override the test.
4092else
c6b750e1
DJ
4093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH
4095do
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4102 break 2
376a0e54 4103 fi
c6b750e1 4104done
81ecdfbb
RW
4105 done
4106IFS=$as_save_IFS
cac3d6c4 4107
c6b750e1
DJ
4108fi
4109fi
4110CC=$ac_cv_prog_CC
4111if test -n "$CC"; then
81ecdfbb
RW
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4113$as_echo "$CC" >&6; }
cac3d6c4 4114else
81ecdfbb
RW
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116$as_echo "no" >&6; }
9e07f89d 4117fi
cac3d6c4 4118
81ecdfbb 4119
c6b750e1
DJ
4120 test -n "$CC" && break
4121 done
cac3d6c4 4122fi
c6b750e1
DJ
4123if test -z "$CC"; then
4124 ac_ct_CC=$CC
81ecdfbb 4125 for ac_prog in cl.exe
c6b750e1
DJ
4126do
4127 # Extract the first word of "$ac_prog", so it can be a program name with args.
4128set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130$as_echo_n "checking for $ac_word... " >&6; }
4131if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
cac3d6c4 4133else
c6b750e1
DJ
4134 if test -n "$ac_ct_CC"; then
4135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4136else
c6b750e1
DJ
4137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138for as_dir in $PATH
4139do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4144 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4146 break 2
4147 fi
4148done
81ecdfbb
RW
4149 done
4150IFS=$as_save_IFS
c6b750e1 4151
cac3d6c4
CM
4152fi
4153fi
c6b750e1
DJ
4154ac_ct_CC=$ac_cv_prog_ac_ct_CC
4155if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4157$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4158else
81ecdfbb
RW
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160$as_echo "no" >&6; }
cac3d6c4 4161fi
376a0e54 4162
81ecdfbb 4163
c6b750e1
DJ
4164 test -n "$ac_ct_CC" && break
4165done
4166
81ecdfbb
RW
4167 if test "x$ac_ct_CC" = x; then
4168 CC=""
4169 else
4170 case $cross_compiling:$ac_tool_warned in
4171yes:)
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4174ac_tool_warned=yes ;;
4175esac
4176 CC=$ac_ct_CC
4177 fi
c6b750e1
DJ
4178fi
4179
4180fi
4181
4182
81ecdfbb
RW
4183test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4185as_fn_error "no acceptable C compiler found in \$PATH
4186See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4187
4188# Provide some information about the compiler.
81ecdfbb
RW
4189$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4190set X $ac_compile
4191ac_compiler=$2
4192for ac_option in --version -v -V -qversion; do
4193 { { ac_try="$ac_compiler $ac_option >&5"
4194case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197esac
4198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4199$as_echo "$ac_try_echo"; } >&5
4200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4201 ac_status=$?
81ecdfbb
RW
4202 if test -s conftest.err; then
4203 sed '10a\
4204... rest of stderr output deleted ...
4205 10q' conftest.err >conftest.er1
4206 cat conftest.er1 >&5
4207 rm -f conftest.er1 conftest.err
4208 fi
4209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4210 test $ac_status = 0; }
4211done
c6b750e1 4212
81ecdfbb 4213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4214/* end confdefs.h. */
4215
4216int
4217main ()
4218{
4219
4220 ;
4221 return 0;
4222}
4223_ACEOF
4224ac_clean_files_save=$ac_clean_files
81ecdfbb 4225ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4226# Try to create an executable without -o first, disregard a.out.
4227# It will help us diagnose broken compilers, and finding out an intuition
4228# of exeext.
81ecdfbb
RW
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4230$as_echo_n "checking for C compiler default output file name... " >&6; }
4231ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4232
4233# The possible output files:
4234ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4235
4236ac_rmfiles=
4237for ac_file in $ac_files
4238do
4239 case $ac_file in
4240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4241 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4242 esac
4243done
4244rm -f $ac_rmfiles
4245
4246if { { ac_try="$ac_link_default"
4247case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250esac
4251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252$as_echo "$ac_try_echo"; } >&5
4253 (eval "$ac_link_default") 2>&5
c6b750e1 4254 ac_status=$?
81ecdfbb
RW
4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256 test $ac_status = 0; }; then :
4257 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4258# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4259# in a Makefile. We should not override ac_cv_exeext if it was cached,
4260# so that the user can short-circuit this test for compilers unknown to
4261# Autoconf.
4262for ac_file in $ac_files ''
c6b750e1
DJ
4263do
4264 test -f "$ac_file" || continue
4265 case $ac_file in
81ecdfbb 4266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4267 ;;
4268 [ab].out )
4269 # We found the default executable, but exeext='' is most
4270 # certainly right.
4271 break;;
4272 *.* )
81ecdfbb
RW
4273 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4274 then :; else
4275 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4276 fi
4277 # We set ac_cv_exeext here because the later test for it is not
4278 # safe: cross compilers may not add the suffix if given an `-o'
4279 # argument, so we may need to know it at that point already.
4280 # Even if this section looks crufty: it has the advantage of
4281 # actually working.
c6b750e1
DJ
4282 break;;
4283 * )
4284 break;;
4285 esac
4286done
81ecdfbb
RW
4287test "$ac_cv_exeext" = no && ac_cv_exeext=
4288
c6b750e1 4289else
81ecdfbb
RW
4290 ac_file=''
4291fi
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4293$as_echo "$ac_file" >&6; }
4294if test -z "$ac_file"; then :
4295 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4296sed 's/^/| /' conftest.$ac_ext >&5
4297
81ecdfbb
RW
4298{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4300{ as_fn_set_status 77
4301as_fn_error "C compiler cannot create executables
4302See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4303fi
c6b750e1 4304ac_exeext=$ac_cv_exeext
c6b750e1 4305
81ecdfbb 4306# Check that the compiler produces executables we can run. If not, either
c6b750e1 4307# the compiler is broken, or we cross compile.
81ecdfbb
RW
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4309$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4310# If not cross compiling, check that we can run a simple program.
4311if test "$cross_compiling" != yes; then
4312 if { ac_try='./$ac_file'
81ecdfbb
RW
4313 { { case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4316esac
4317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318$as_echo "$ac_try_echo"; } >&5
4319 (eval "$ac_try") 2>&5
c6b750e1 4320 ac_status=$?
81ecdfbb
RW
4321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322 test $ac_status = 0; }; }; then
c6b750e1
DJ
4323 cross_compiling=no
4324 else
4325 if test "$cross_compiling" = maybe; then
4326 cross_compiling=yes
4327 else
81ecdfbb
RW
4328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4330as_fn_error "cannot run C compiled programs.
c6b750e1 4331If you meant to cross compile, use \`--host'.
81ecdfbb 4332See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4333 fi
4334 fi
4335fi
81ecdfbb
RW
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4337$as_echo "yes" >&6; }
c6b750e1 4338
81ecdfbb 4339rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4340ac_clean_files=$ac_clean_files_save
81ecdfbb 4341# Check that the compiler produces executables we can run. If not, either
c6b750e1 4342# the compiler is broken, or we cross compile.
81ecdfbb
RW
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4344$as_echo_n "checking whether we are cross compiling... " >&6; }
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4346$as_echo "$cross_compiling" >&6; }
4347
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4349$as_echo_n "checking for suffix of executables... " >&6; }
4350if { { ac_try="$ac_link"
4351case "(($ac_try" in
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4354esac
4355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4356$as_echo "$ac_try_echo"; } >&5
4357 (eval "$ac_link") 2>&5
c6b750e1 4358 ac_status=$?
81ecdfbb
RW
4359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4360 test $ac_status = 0; }; then :
c6b750e1
DJ
4361 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4362# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4363# work properly (i.e., refer to `conftest.exe'), while it won't with
4364# `rm'.
4365for ac_file in conftest.exe conftest conftest.*; do
4366 test -f "$ac_file" || continue
4367 case $ac_file in
81ecdfbb 4368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4369 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4370 break;;
4371 * ) break;;
4372 esac
4373done
4374else
81ecdfbb
RW
4375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4377as_fn_error "cannot compute suffix of executables: cannot compile and link
4378See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4379fi
c6b750e1 4380rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4382$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4383
4384rm -f conftest.$ac_ext
4385EXEEXT=$ac_cv_exeext
4386ac_exeext=$EXEEXT
81ecdfbb
RW
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4388$as_echo_n "checking for suffix of object files... " >&6; }
4389if test "${ac_cv_objext+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
c6b750e1 4391else
81ecdfbb 4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4393/* end confdefs.h. */
4394
4395int
4396main ()
4397{
4398
4399 ;
4400 return 0;
4401}
4402_ACEOF
4403rm -f conftest.o conftest.obj
81ecdfbb
RW
4404if { { ac_try="$ac_compile"
4405case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4408esac
4409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410$as_echo "$ac_try_echo"; } >&5
4411 (eval "$ac_compile") 2>&5
c6b750e1 4412 ac_status=$?
81ecdfbb
RW
4413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; }; then :
4415 for ac_file in conftest.o conftest.obj conftest.*; do
4416 test -f "$ac_file" || continue;
c6b750e1 4417 case $ac_file in
81ecdfbb 4418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4419 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4420 break;;
4421 esac
4422done
cac3d6c4 4423else
81ecdfbb 4424 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4425sed 's/^/| /' conftest.$ac_ext >&5
4426
81ecdfbb
RW
4427{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4429as_fn_error "cannot compute suffix of object files: cannot compile
4430See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4431fi
c6b750e1
DJ
4432rm -f conftest.$ac_cv_objext conftest.$ac_ext
4433fi
81ecdfbb
RW
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4435$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4436OBJEXT=$ac_cv_objext
4437ac_objext=$OBJEXT
81ecdfbb
RW
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4439$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4440if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
c6b750e1 4442else
81ecdfbb 4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4444/* end confdefs.h. */
4445
4446int
4447main ()
4448{
4449#ifndef __GNUC__
4450 choke me
4451#endif
4452
4453 ;
4454 return 0;
4455}
4456_ACEOF
81ecdfbb 4457if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4458 ac_compiler_gnu=yes
4459else
81ecdfbb 4460 ac_compiler_gnu=no
c6b750e1 4461fi
81ecdfbb 4462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4463ac_cv_c_compiler_gnu=$ac_compiler_gnu
4464
4465fi
81ecdfbb
RW
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4467$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4468if test $ac_compiler_gnu = yes; then
4469 GCC=yes
4470else
4471 GCC=
4472fi
c6b750e1
DJ
4473ac_test_CFLAGS=${CFLAGS+set}
4474ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4476$as_echo_n "checking whether $CC accepts -g... " >&6; }
4477if test "${ac_cv_prog_cc_g+set}" = set; then :
4478 $as_echo_n "(cached) " >&6
4479else
4480 ac_save_c_werror_flag=$ac_c_werror_flag
4481 ac_c_werror_flag=yes
4482 ac_cv_prog_cc_g=no
4483 CFLAGS="-g"
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4485/* end confdefs.h. */
4486
4487int
4488main ()
4489{
4490
4491 ;
4492 return 0;
4493}
4494_ACEOF
81ecdfbb 4495if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4496 ac_cv_prog_cc_g=yes
4497else
81ecdfbb
RW
4498 CFLAGS=""
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500/* end confdefs.h. */
4501
4502int
4503main ()
4504{
4505
4506 ;
4507 return 0;
4508}
4509_ACEOF
4510if ac_fn_c_try_compile "$LINENO"; then :
4511
4512else
4513 ac_c_werror_flag=$ac_save_c_werror_flag
4514 CFLAGS="-g"
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516/* end confdefs.h. */
cac3d6c4 4517
81ecdfbb
RW
4518int
4519main ()
4520{
4521
4522 ;
4523 return 0;
4524}
4525_ACEOF
4526if ac_fn_c_try_compile "$LINENO"; then :
4527 ac_cv_prog_cc_g=yes
4528fi
4529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4530fi
81ecdfbb 4531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4532fi
81ecdfbb
RW
4533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534 ac_c_werror_flag=$ac_save_c_werror_flag
4535fi
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4537$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4538if test "$ac_test_CFLAGS" = set; then
c6b750e1 4539 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4540elif test $ac_cv_prog_cc_g = yes; then
4541 if test "$GCC" = yes; then
4542 CFLAGS="-g -O2"
4543 else
4544 CFLAGS="-g"
4545 fi
4546else
4547 if test "$GCC" = yes; then
4548 CFLAGS="-O2"
4549 else
4550 CFLAGS=
4551 fi
4552fi
81ecdfbb
RW
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4554$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4555if test "${ac_cv_prog_cc_c89+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
c6b750e1 4557else
81ecdfbb 4558 ac_cv_prog_cc_c89=no
c6b750e1 4559ac_save_CC=$CC
81ecdfbb 4560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4561/* end confdefs.h. */
4562#include <stdarg.h>
4563#include <stdio.h>
4564#include <sys/types.h>
4565#include <sys/stat.h>
4566/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4567struct buf { int x; };
4568FILE * (*rcsopen) (struct buf *, struct stat *, int);
4569static char *e (p, i)
4570 char **p;
4571 int i;
4572{
4573 return p[i];
4574}
4575static char *f (char * (*g) (char **, int), char **p, ...)
4576{
4577 char *s;
4578 va_list v;
4579 va_start (v,p);
4580 s = g (p, va_arg (v,int));
4581 va_end (v);
4582 return s;
4583}
4584
4585/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4586 function prototypes and stuff, but not '\xHH' hex character constants.
4587 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4588 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4589 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4590 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4591 that's true only with -std. */
c6b750e1
DJ
4592int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4593
81ecdfbb
RW
4594/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4595 inside strings and character constants. */
4596#define FOO(x) 'x'
4597int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4598
c6b750e1
DJ
4599int test (int i, double x);
4600struct s1 {int (*f) (int a);};
4601struct s2 {int (*f) (double a);};
4602int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4603int argc;
4604char **argv;
4605int
4606main ()
4607{
4608return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4609 ;
4610 return 0;
4611}
4612_ACEOF
81ecdfbb
RW
4613for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4614 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4615do
4616 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4617 if ac_fn_c_try_compile "$LINENO"; then :
4618 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4619fi
81ecdfbb
RW
4620rm -f core conftest.err conftest.$ac_objext
4621 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4622done
81ecdfbb 4623rm -f conftest.$ac_ext
c6b750e1
DJ
4624CC=$ac_save_CC
4625
4626fi
81ecdfbb
RW
4627# AC_CACHE_VAL
4628case "x$ac_cv_prog_cc_c89" in
4629 x)
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4631$as_echo "none needed" >&6; } ;;
4632 xno)
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4634$as_echo "unsupported" >&6; } ;;
c6b750e1 4635 *)
81ecdfbb
RW
4636 CC="$CC $ac_cv_prog_cc_c89"
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4638$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4639esac
81ecdfbb 4640if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4641
c6b750e1
DJ
4642fi
4643
c6b750e1
DJ
4644ac_ext=c
4645ac_cpp='$CPP $CPPFLAGS'
4646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4648ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4649
81ecdfbb 4650ac_ext=cpp
18f6b6ee
PB
4651ac_cpp='$CXXCPP $CPPFLAGS'
4652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4655if test -z "$CXX"; then
4656 if test -n "$CCC"; then
4657 CXX=$CCC
4658 else
4659 if test -n "$ac_tool_prefix"; then
4660 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4661 do
4662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4663set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4665$as_echo_n "checking for $ac_word... " >&6; }
4666if test "${ac_cv_prog_CXX+set}" = set; then :
4667 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4668else
4669 if test -n "$CXX"; then
4670 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4671else
4672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673for as_dir in $PATH
4674do
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4679 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4681 break 2
4682 fi
4683done
81ecdfbb
RW
4684 done
4685IFS=$as_save_IFS
512b7dfb 4686
18f6b6ee
PB
4687fi
4688fi
4689CXX=$ac_cv_prog_CXX
4690if test -n "$CXX"; then
81ecdfbb
RW
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4692$as_echo "$CXX" >&6; }
18f6b6ee 4693else
81ecdfbb
RW
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695$as_echo "no" >&6; }
18f6b6ee
PB
4696fi
4697
81ecdfbb 4698
18f6b6ee
PB
4699 test -n "$CXX" && break
4700 done
4701fi
4702if test -z "$CXX"; then
4703 ac_ct_CXX=$CXX
81ecdfbb 4704 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4705do
4706 # Extract the first word of "$ac_prog", so it can be a program name with args.
4707set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709$as_echo_n "checking for $ac_word... " >&6; }
4710if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4711 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4712else
4713 if test -n "$ac_ct_CXX"; then
4714 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4715else
4716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717for as_dir in $PATH
4718do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4723 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4725 break 2
512b7dfb 4726 fi
18f6b6ee 4727done
81ecdfbb
RW
4728 done
4729IFS=$as_save_IFS
512b7dfb 4730
18f6b6ee
PB
4731fi
4732fi
4733ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4734if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4736$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4737else
81ecdfbb
RW
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739$as_echo "no" >&6; }
18f6b6ee
PB
4740fi
4741
81ecdfbb 4742
18f6b6ee
PB
4743 test -n "$ac_ct_CXX" && break
4744done
18f6b6ee 4745
81ecdfbb
RW
4746 if test "x$ac_ct_CXX" = x; then
4747 CXX="g++"
4748 else
4749 case $cross_compiling:$ac_tool_warned in
4750yes:)
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4753ac_tool_warned=yes ;;
4754esac
4755 CXX=$ac_ct_CXX
4756 fi
18f6b6ee
PB
4757fi
4758
81ecdfbb
RW
4759 fi
4760fi
18f6b6ee 4761# Provide some information about the compiler.
81ecdfbb
RW
4762$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4763set X $ac_compile
4764ac_compiler=$2
4765for ac_option in --version -v -V -qversion; do
4766 { { ac_try="$ac_compiler $ac_option >&5"
4767case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4770esac
4771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4772$as_echo "$ac_try_echo"; } >&5
4773 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4774 ac_status=$?
81ecdfbb
RW
4775 if test -s conftest.err; then
4776 sed '10a\
4777... rest of stderr output deleted ...
4778 10q' conftest.err >conftest.er1
4779 cat conftest.er1 >&5
4780 rm -f conftest.er1 conftest.err
4781 fi
4782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4783 test $ac_status = 0; }
4784done
18f6b6ee 4785
81ecdfbb
RW
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4787$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4788if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
18f6b6ee 4790else
81ecdfbb 4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4792/* end confdefs.h. */
4793
4794int
4795main ()
4796{
4797#ifndef __GNUC__
4798 choke me
4799#endif
4800
4801 ;
4802 return 0;
4803}
4804_ACEOF
81ecdfbb 4805if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4806 ac_compiler_gnu=yes
4807else
81ecdfbb 4808 ac_compiler_gnu=no
18f6b6ee 4809fi
81ecdfbb 4810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4811ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4812
4813fi
81ecdfbb
RW
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4815$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4816if test $ac_compiler_gnu = yes; then
4817 GXX=yes
4818else
4819 GXX=
4820fi
18f6b6ee
PB
4821ac_test_CXXFLAGS=${CXXFLAGS+set}
4822ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4824$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4825if test "${ac_cv_prog_cxx_g+set}" = set; then :
4826 $as_echo_n "(cached) " >&6
4827else
4828 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4829 ac_cxx_werror_flag=yes
4830 ac_cv_prog_cxx_g=no
4831 CXXFLAGS="-g"
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4833/* end confdefs.h. */
4834
4835int
4836main ()
4837{
4838
4839 ;
4840 return 0;
4841}
4842_ACEOF
81ecdfbb 4843if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4844 ac_cv_prog_cxx_g=yes
4845else
81ecdfbb
RW
4846 CXXFLAGS=""
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4848/* end confdefs.h. */
81ecdfbb 4849
18f6b6ee
PB
4850int
4851main ()
4852{
81ecdfbb 4853
18f6b6ee
PB
4854 ;
4855 return 0;
4856}
4857_ACEOF
81ecdfbb 4858if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4859
81ecdfbb
RW
4860else
4861 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4862 CXXFLAGS="-g"
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4864/* end confdefs.h. */
81ecdfbb 4865
18f6b6ee
PB
4866int
4867main ()
4868{
81ecdfbb 4869
18f6b6ee
PB
4870 ;
4871 return 0;
4872}
4873_ACEOF
81ecdfbb
RW
4874if ac_fn_cxx_try_compile "$LINENO"; then :
4875 ac_cv_prog_cxx_g=yes
18f6b6ee 4876fi
81ecdfbb
RW
4877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878fi
4879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880fi
4881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4883fi
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4885$as_echo "$ac_cv_prog_cxx_g" >&6; }
4886if test "$ac_test_CXXFLAGS" = set; then
4887 CXXFLAGS=$ac_save_CXXFLAGS
4888elif test $ac_cv_prog_cxx_g = yes; then
4889 if test "$GXX" = yes; then
4890 CXXFLAGS="-g -O2"
4891 else
4892 CXXFLAGS="-g"
4893 fi
4894else
4895 if test "$GXX" = yes; then
4896 CXXFLAGS="-O2"
4897 else
4898 CXXFLAGS=
4899 fi
18f6b6ee 4900fi
18f6b6ee
PB
4901ac_ext=c
4902ac_cpp='$CPP $CPPFLAGS'
4903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4905ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906
4907
4908# We must set the default linker to the linker used by gcc for the correct
4909# operation of libtool. If LD is not defined and we are using gcc, try to
4910# set the LD default to the ld used by gcc.
4911if test -z "$LD"; then
4912 if test "$GCC" = yes; then
4913 case $build in
4914 *-*-mingw*)
4915 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4916 *)
4917 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4918 esac
4919 case $gcc_prog_ld in
4920 # Accept absolute paths.
4921 [\\/]* | [A-Za-z]:[\\/]*)
4922 LD="$gcc_prog_ld" ;;
4923 esac
4924 fi
512b7dfb
PB
4925fi
4926
b3676d82
EB
4927# Check whether -static-libstdc++ -static-libgcc is supported.
4928have_static_libs=no
4929if test "$GCC" = yes; then
4930 saved_LDFLAGS="$LDFLAGS"
4931
4932 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4934$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4935 ac_ext=cpp
4936ac_cpp='$CXXCPP $CPPFLAGS'
4937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4940
4941
4942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943/* end confdefs.h. */
a882be68
EB
4944
4945#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4946#error -static-libstdc++ not implemented
4947#endif
b3676d82
EB
4948int main() {}
4949_ACEOF
4950if ac_fn_cxx_try_link "$LINENO"; then :
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4952$as_echo "yes" >&6; }; have_static_libs=yes
4953else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955$as_echo "no" >&6; }
4956fi
4957rm -f core conftest.err conftest.$ac_objext \
4958 conftest$ac_exeext conftest.$ac_ext
4959 ac_ext=c
4960ac_cpp='$CPP $CPPFLAGS'
4961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963ac_compiler_gnu=$ac_cv_c_compiler_gnu
4964
4965
4966 LDFLAGS="$saved_LDFLAGS"
4967fi
4968
512b7dfb
PB
4969
4970
4971
c6b750e1 4972if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4973 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4974set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976$as_echo_n "checking for $ac_word... " >&6; }
4977if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
9e07f89d 4979else
512b7dfb
PB
4980 if test -n "$GNATBIND"; then
4981 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4982else
c6b750e1
DJ
4983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984for as_dir in $PATH
4985do
4986 IFS=$as_save_IFS
4987 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4990 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4992 break 2
4993 fi
4994done
81ecdfbb
RW
4995 done
4996IFS=$as_save_IFS
c6b750e1 4997
9e07f89d
NN
4998fi
4999fi
512b7dfb
PB
5000GNATBIND=$ac_cv_prog_GNATBIND
5001if test -n "$GNATBIND"; then
81ecdfbb
RW
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5003$as_echo "$GNATBIND" >&6; }
9e07f89d 5004else
81ecdfbb
RW
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006$as_echo "no" >&6; }
9e07f89d
NN
5007fi
5008
81ecdfbb 5009
c6b750e1 5010fi
512b7dfb
PB
5011if test -z "$ac_cv_prog_GNATBIND"; then
5012 ac_ct_GNATBIND=$GNATBIND
5013 # Extract the first word of "gnatbind", so it can be a program name with args.
5014set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016$as_echo_n "checking for $ac_word... " >&6; }
5017if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5018 $as_echo_n "(cached) " >&6
9e07f89d 5019else
512b7dfb
PB
5020 if test -n "$ac_ct_GNATBIND"; then
5021 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5022else
c6b750e1
DJ
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5030 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5032 break 2
5033 fi
5034done
81ecdfbb
RW
5035 done
5036IFS=$as_save_IFS
c6b750e1 5037
9e07f89d
NN
5038fi
5039fi
512b7dfb
PB
5040ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5041if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5043$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5044else
81ecdfbb
RW
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046$as_echo "no" >&6; }
9e07f89d
NN
5047fi
5048
81ecdfbb
RW
5049 if test "x$ac_ct_GNATBIND" = x; then
5050 GNATBIND="no"
5051 else
5052 case $cross_compiling:$ac_tool_warned in
5053yes:)
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5056ac_tool_warned=yes ;;
5057esac
5058 GNATBIND=$ac_ct_GNATBIND
5059 fi
24ff9987 5060else
512b7dfb 5061 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5062fi
5063
7df2cd5d 5064if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5065 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5066set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068$as_echo_n "checking for $ac_word... " >&6; }
5069if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5070 $as_echo_n "(cached) " >&6
7df2cd5d 5071else
512b7dfb
PB
5072 if test -n "$GNATMAKE"; then
5073 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5074else
5075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076for as_dir in $PATH
5077do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5082 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5084 break 2
5085 fi
5086done
81ecdfbb
RW
5087 done
5088IFS=$as_save_IFS
7df2cd5d
PB
5089
5090fi
5091fi
512b7dfb
PB
5092GNATMAKE=$ac_cv_prog_GNATMAKE
5093if test -n "$GNATMAKE"; then
81ecdfbb
RW
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5095$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5096else
81ecdfbb
RW
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098$as_echo "no" >&6; }
7df2cd5d
PB
5099fi
5100
81ecdfbb 5101
7df2cd5d 5102fi
512b7dfb
PB
5103if test -z "$ac_cv_prog_GNATMAKE"; then
5104 ac_ct_GNATMAKE=$GNATMAKE
5105 # Extract the first word of "gnatmake", so it can be a program name with args.
5106set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108$as_echo_n "checking for $ac_word... " >&6; }
5109if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
7df2cd5d 5111else
512b7dfb
PB
5112 if test -n "$ac_ct_GNATMAKE"; then
5113 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5114else
5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5122 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5124 break 2
5125 fi
5126done
81ecdfbb
RW
5127 done
5128IFS=$as_save_IFS
7df2cd5d 5129
7df2cd5d
PB
5130fi
5131fi
512b7dfb
PB
5132ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5133if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5135$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5136else
81ecdfbb
RW
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138$as_echo "no" >&6; }
7df2cd5d
PB
5139fi
5140
81ecdfbb
RW
5141 if test "x$ac_ct_GNATMAKE" = x; then
5142 GNATMAKE="no"
5143 else
5144 case $cross_compiling:$ac_tool_warned in
5145yes:)
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5148ac_tool_warned=yes ;;
5149esac
5150 GNATMAKE=$ac_ct_GNATMAKE
5151 fi
7df2cd5d 5152else
512b7dfb 5153 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5154fi
5155
81ecdfbb
RW
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5157$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5158if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5159 $as_echo_n "(cached) " >&6
9e07f89d
NN
5160else
5161 cat >conftest.adb <<EOF
5162procedure conftest is begin null; end conftest;
5163EOF
5164acx_cv_cc_gcc_supports_ada=no
5165# There is a bug in old released versions of GCC which causes the
5166# driver to exit successfully when the appropriate language module
5167# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5168# Therefore we must check for the error message as well as an
5169# unsuccessful exit.
b8908782
DD
5170# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5171# given a .adb file, but produce no object file. So we must check
5172# if an object file was really produced to guard against this.
9e07f89d 5173errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5174if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5175 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5176fi
5177rm -f conftest.*
5178fi
81ecdfbb
RW
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5180$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5181
64b986c0 5182if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5183 have_gnat=yes
5184else
5185 have_gnat=no
5186fi
5187
81ecdfbb
RW
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5189$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5190if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
b8908782
DD
5192else
5193 echo abfoo >t1
5194 echo cdfoo >t2
5195 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5196 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5197 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5198 :
5199 else
5200 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5201 fi
5202 fi
b8908782
DD
5203 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5204 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5205 :
b8908782
DD
5206 else
5207 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5208 fi
5209 fi
5210 rm t1 t2
5211
5212fi
81ecdfbb
RW
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5214$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5215do_compare="$gcc_cv_prog_cmp_skip"
5216
5217
9e07f89d 5218
ffdd6afc
ILT
5219# Check whether --enable-bootstrap was given.
5220if test "${enable_bootstrap+set}" = set; then :
5221 enableval=$enable_bootstrap;
5222else
5223 enable_bootstrap=default
5224fi
5225
5226
5227# Issue errors and warnings for invalid/strange bootstrap combinations.
5228if test -r $srcdir/gcc/configure; then
5229 have_compiler=yes
5230else
5231 have_compiler=no
5232fi
5233
5234case "$have_compiler:$host:$target:$enable_bootstrap" in
5235 *:*:*:no) ;;
5236
5237 # Default behavior. Enable bootstrap if we have a compiler
5238 # and we are in a native configuration.
5239 yes:$build:$build:default)
5240 enable_bootstrap=yes ;;
5241
5242 *:*:*:default)
5243 enable_bootstrap=no ;;
5244
5245 # We have a compiler and we are in a native configuration, bootstrap is ok
5246 yes:$build:$build:yes)
5247 ;;
5248
5249 # Other configurations, but we have a compiler. Assume the user knows
5250 # what he's doing.
5251 yes:*:*:yes)
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5253$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5254 ;;
5255
5256 # No compiler: if they passed --enable-bootstrap explicitly, fail
5257 no:*:*:yes)
5258 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5259
5260 # Fail if wrong command line
5261 *)
5262 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5263 ;;
5264esac
5265
d5f2ee2e
KG
5266# Used for setting $lt_cv_objdir
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5268$as_echo_n "checking for objdir... " >&6; }
5269if test "${lt_cv_objdir+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5271else
5272 rm -f .libs 2>/dev/null
5273mkdir .libs 2>/dev/null
5274if test -d .libs; then
5275 lt_cv_objdir=.libs
5276else
5277 # MS-DOS does not allow filenames that begin with a dot.
5278 lt_cv_objdir=_libs
5279fi
5280rmdir .libs 2>/dev/null
5281fi
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5283$as_echo "$lt_cv_objdir" >&6; }
5284objdir=$lt_cv_objdir
5285
5286
5287
5288
5289
5290cat >>confdefs.h <<_ACEOF
5291#define LT_OBJDIR "$lt_cv_objdir/"
5292_ACEOF
5293
5294
5295
e8a5fa9c 5296# Check for GMP, MPFR and MPC
d9b76ff9 5297gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5298gmpinc=
4b900473 5299have_gmp=no
e8a5fa9c
RW
5300
5301# Specify a location for mpc
5302# check for this first so it ends up on the link line before mpfr.
5303
81ecdfbb
RW
5304# Check whether --with-mpc was given.
5305if test "${with_mpc+set}" = set; then :
5306 withval=$with_mpc;
5307fi
e8a5fa9c 5308
e8a5fa9c 5309
e552509b 5310# Check whether --with-mpc-include was given.
81ecdfbb
RW
5311if test "${with_mpc_include+set}" = set; then :
5312 withval=$with_mpc_include;
5313fi
e8a5fa9c 5314
e8a5fa9c 5315
e552509b 5316# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5317if test "${with_mpc_lib+set}" = set; then :
5318 withval=$with_mpc_lib;
5319fi
e8a5fa9c 5320
e8a5fa9c
RW
5321
5322if test "x$with_mpc" != x; then
d9b76ff9
KG
5323 gmplibs="-L$with_mpc/lib $gmplibs"
5324 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5325fi
5326if test "x$with_mpc_include" != x; then
d9b76ff9 5327 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5328fi
5329if test "x$with_mpc_lib" != x; then
d9b76ff9 5330 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5331fi
5332if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5333 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5334 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5335 # Do not test the mpc version. Assume that it is sufficient, since
5336 # it is in the source tree, and the library has not been built yet
5337 # but it would be included on the link line in the version check below
5338 # hence making the test fail.
d9b76ff9 5339 have_gmp=yes
e8a5fa9c 5340fi
4b900473 5341
11b04d1f
DD
5342# Specify a location for mpfr
5343# check for this first so it ends up on the link line before gmp.
c6b750e1 5344
81ecdfbb
RW
5345# Check whether --with-mpfr-dir was given.
5346if test "${with_mpfr_dir+set}" = set; then :
5347 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5348Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5349fi
5350
11b04d1f
DD
5351
5352
81ecdfbb
RW
5353# Check whether --with-mpfr was given.
5354if test "${with_mpfr+set}" = set; then :
5355 withval=$with_mpfr;
5356fi
c6b750e1 5357
11b04d1f 5358
e552509b 5359# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5360if test "${with_mpfr_include+set}" = set; then :
5361 withval=$with_mpfr_include;
5362fi
c6b750e1 5363
8a0d8a5c 5364
e552509b 5365# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5366if test "${with_mpfr_lib+set}" = set; then :
5367 withval=$with_mpfr_lib;
5368fi
8a0d8a5c 5369
11b04d1f
DD
5370
5371if test "x$with_mpfr" != x; then
5372 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5373 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5374fi
8a0d8a5c 5375if test "x$with_mpfr_include" != x; then
d9b76ff9 5376 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5377fi
5378if test "x$with_mpfr_lib" != x; then
5379 gmplibs="-L$with_mpfr_lib $gmplibs"
5380fi
4b900473 5381if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21
NC
5382 # MPFR v3.1.0 moved the sources into a src sub-directory.
5383 if test -d ${srcdir}/mpfr/src; then
5384 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5385 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5386 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5387 else
5388 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5389 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5390 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5391 fi
4b900473
PB
5392 # Do not test the mpfr version. Assume that it is sufficient, since
5393 # it is in the source tree, and the library has not been built yet
5394 # but it would be included on the link line in the version check below
5395 # hence making the test fail.
5396 have_gmp=yes
5397fi
11b04d1f 5398
4b1cb4fe 5399# Specify a location for gmp
c6b750e1 5400
81ecdfbb
RW
5401# Check whether --with-gmp-dir was given.
5402if test "${with_gmp_dir+set}" = set; then :
5403 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5404Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5405fi
5406
4b1cb4fe
DD
5407
5408
81ecdfbb
RW
5409# Check whether --with-gmp was given.
5410if test "${with_gmp+set}" = set; then :
5411 withval=$with_gmp;
5412fi
c6b750e1 5413
4b1cb4fe 5414
e552509b 5415# Check whether --with-gmp-include was given.
81ecdfbb
RW
5416if test "${with_gmp_include+set}" = set; then :
5417 withval=$with_gmp_include;
5418fi
c6b750e1 5419
8a0d8a5c 5420
e552509b 5421# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5422if test "${with_gmp_lib+set}" = set; then :
5423 withval=$with_gmp_lib;
5424fi
8a0d8a5c
PB
5425
5426
4b1cb4fe 5427
11b04d1f
DD
5428if test "x$with_gmp" != x; then
5429 gmplibs="-L$with_gmp/lib $gmplibs"
5430 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5431fi
8a0d8a5c
PB
5432if test "x$with_gmp_include" != x; then
5433 gmpinc="-I$with_gmp_include $gmpinc"
5434fi
5435if test "x$with_gmp_lib" != x; then
5436 gmplibs="-L$with_gmp_lib $gmplibs"
5437fi
4b900473 5438if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5439 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5440 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5441 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5442 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5443 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5444 # Do not test the gmp version. Assume that it is sufficient, since
5445 # it is in the source tree, and the library has not been built yet
5446 # but it would be included on the link line in the version check below
5447 # hence making the test fail.
5448 have_gmp=yes
5449fi
4b1cb4fe 5450
ceb92e78 5451if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5452 have_gmp=yes
5453 saved_CFLAGS="$CFLAGS"
5454 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5455 # Check for the recommended and required versions of GMP.
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5457$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5458
5459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5460/* end confdefs.h. */
5461#include "gmp.h"
5462int
5463main ()
5464{
5465
5466 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5467 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5468 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5469 choke me
5470 #endif
5471
5472 ;
5473 return 0;
5474}
5475_ACEOF
5476if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5478/* end confdefs.h. */
a6b5846e 5479#include <gmp.h>
c6b750e1
DJ
5480int
5481main ()
5482{
4b1cb4fe 5483
a6b5846e
KG
5484 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5485 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5486 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5487 choke me
5488 #endif
c6b750e1
DJ
5489
5490 ;
5491 return 0;
5492}
5493_ACEOF
81ecdfbb
RW
5494if ac_fn_c_try_compile "$LINENO"; then :
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5496$as_echo "yes" >&6; }
a6b5846e
KG
5497else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5499$as_echo "buggy but acceptable" >&6; }
5500fi
5501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5502else
81ecdfbb
RW
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5505fi
81ecdfbb 5506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5507
e8a5fa9c 5508 # If we have GMP, check the MPFR version.
4b900473 5509 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5510 # Check for the recommended and required versions of MPFR.
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5512$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5514/* end confdefs.h. */
9b134994 5515#include <gmp.h>
4b900473 5516 #include <mpfr.h>
c6b750e1
DJ
5517int
5518main ()
5519{
9b134994 5520
7ec59b9e 5521 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5522 choke me
5523 #endif
c6b750e1
DJ
5524
5525 ;
5526 return 0;
5527}
5528_ACEOF
81ecdfbb
RW
5529if ac_fn_c_try_compile "$LINENO"; then :
5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5531/* end confdefs.h. */
4b1cb4fe 5532#include <gmp.h>
4b900473 5533 #include <mpfr.h>
c6b750e1
DJ
5534int
5535main ()
5536{
9dbaa842 5537
a6b5846e 5538 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5539 choke me
5540 #endif
e8a5fa9c
RW
5541
5542 ;
5543 return 0;
5544}
5545_ACEOF
81ecdfbb
RW
5546if ac_fn_c_try_compile "$LINENO"; then :
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5548$as_echo "yes" >&6; }
e8a5fa9c 5549else
81ecdfbb
RW
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5551$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5552fi
81ecdfbb 5553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5554else
81ecdfbb
RW
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5557fi
81ecdfbb 5558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5559 fi
5560
5561 # Check for the MPC header version.
d9b76ff9 5562 if test x"$have_gmp" = xyes ; then
a6b5846e 5563 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5565$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5567/* end confdefs.h. */
5568#include <mpc.h>
5569int
5570main ()
5571{
5572
a6b5846e
KG
5573 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5574 choke me
5575 #endif
5576
5577 ;
5578 return 0;
5579}
5580_ACEOF
5581if ac_fn_c_try_compile "$LINENO"; then :
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583/* end confdefs.h. */
5584#include <mpc.h>
5585int
5586main ()
5587{
5588
5589 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5590 choke me
5591 #endif
5592
5593 ;
5594 return 0;
5595}
5596_ACEOF
81ecdfbb
RW
5597if ac_fn_c_try_compile "$LINENO"; then :
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5599$as_echo "yes" >&6; }
a6b5846e
KG
5600else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5602$as_echo "buggy but acceptable" >&6; }
5603fi
5604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5605else
81ecdfbb 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5607$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5608fi
81ecdfbb 5609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5610 fi
5611
5612 # Now check the MPFR library.
5613 if test x"$have_gmp" = xyes; then
5614 saved_LIBS="$LIBS"
5615 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5617$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5619/* end confdefs.h. */
d9b76ff9 5620#include <mpc.h>
e8a5fa9c
RW
5621int
5622main ()
5623{
5624
5625 mpfr_t n;
5626 mpfr_t x;
d9b76ff9 5627 mpc_t c;
e8a5fa9c
RW
5628 int t;
5629 mpfr_init (n);
5630 mpfr_init (x);
5631 mpfr_atan2 (n, n, x, GMP_RNDN);
5632 mpfr_erfc (n, x, GMP_RNDN);
5633 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5634 mpfr_clear(n);
5635 mpfr_clear(x);
5636 mpc_init2 (c, 53);
5637 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5638 mpc_cosh (c, c, MPC_RNDNN);
5639 mpc_pow (c, c, c, MPC_RNDNN);
5640 mpc_acosh (c, c, MPC_RNDNN);
5641 mpc_clear (c);
c6b750e1
DJ
5642
5643 ;
5644 return 0;
5645}
5646_ACEOF
81ecdfbb
RW
5647if ac_fn_c_try_link "$LINENO"; then :
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5649$as_echo "yes" >&6; }
c6b750e1 5650else
81ecdfbb
RW
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5653fi
81ecdfbb
RW
5654rm -f core conftest.err conftest.$ac_objext \
5655 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5656 LIBS="$saved_LIBS"
5657 fi
5658
4b900473 5659 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5660
a6b5846e
KG
5661# The library versions listed in the error message below should match
5662# the HARD-minimums enforced above.
4b900473 5663 if test x$have_gmp != xyes; then
7ec59b9e 5664 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5665Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5666their locations. Source code for these libraries can be found at
5667their respective hosting sites as well as at
5668ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5669http://gcc.gnu.org/install/prerequisites.html for additional info. If
5670you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5671make sure that you have installed both the libraries and the header
5672files. They may be located in separate packages." "$LINENO" 5
4b900473 5673 fi
9dbaa842
DD
5674fi
5675
e8a5fa9c
RW
5676# Flags needed for both GMP, MPFR and/or MPC.
5677
5678
5679
4b1cb4fe
DD
5680
5681
5682
7ec59b9e 5683
29383458
JM
5684# Allow host libstdc++ to be specified for static linking with PPL.
5685
81ecdfbb
RW
5686# Check whether --with-host-libstdcxx was given.
5687if test "${with_host_libstdcxx+set}" = set; then :
5688 withval=$with_host_libstdcxx;
5689fi
29383458 5690
29383458
JM
5691
5692case $with_host_libstdcxx in
5693 no|yes)
81ecdfbb 5694 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5695 ;;
5696esac
e28c595f 5697
b3676d82 5698# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 5699
b3676d82
EB
5700# Check whether --with-stage1-libs was given.
5701if test "${with_stage1_libs+set}" = set; then :
5702 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5703 stage1_libs=
e8a5fa9c 5704 else
b3676d82 5705 stage1_libs=$withval
e8a5fa9c
RW
5706 fi
5707else
b3676d82 5708 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5709fi
5710
e8a5fa9c
RW
5711
5712
b3676d82 5713# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 5714
b3676d82
EB
5715# Check whether --with-stage1-ldflags was given.
5716if test "${with_stage1_ldflags+set}" = set; then :
5717 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5718 stage1_ldflags=
e8a5fa9c 5719 else
b3676d82 5720 stage1_ldflags=$withval
e8a5fa9c
RW
5721 fi
5722else
b3676d82
EB
5723 stage1_ldflags=
5724 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5725 # if supported. But if the user explicitly specified the libraries to use,
5726 # trust that they are doing what they want.
5727 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5728 stage1_ldflags="-static-libstdc++ -static-libgcc"
5729 fi
81ecdfbb
RW
5730fi
5731
e8a5fa9c
RW
5732
5733
e8a5fa9c
RW
5734# Libraries to use for stage2 and later builds. This defaults to the
5735# argument passed to --with-host-libstdcxx.
5736
81ecdfbb
RW
5737# Check whether --with-boot-libs was given.
5738if test "${with_boot_libs+set}" = set; then :
5739 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5740 poststage1_libs=
5741 else
5742 poststage1_libs=$withval
5743 fi
5744else
5745 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5746fi
5747
e8a5fa9c
RW
5748
5749
143754cd
NC
5750# Linker flags to use for stage2 and later builds.
5751
5752# Check whether --with-boot-ldflags was given.
5753if test "${with_boot_ldflags+set}" = set; then :
5754 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5755 poststage1_ldflags=
5756 else
5757 poststage1_ldflags=$withval
5758 fi
5759else
5760 poststage1_ldflags=
4f11b223
ILT
5761 # In stages 2 and 3, default to linking libstdc++ and libgcc
5762 # statically. But if the user explicitly specified the libraries to
5763 # use, trust that they are doing what they want.
5764 if test "$poststage1_libs" = ""; then
143754cd
NC
5765 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5766 fi
5767fi
5768
5769
5770
8e71395b
L
5771# GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5772# Basic setup is inlined here, actual checks are in config/cloog.m4 and
5773# config/isl.m4
5774
5775
5776# Check whether --with-cloog was given.
5777if test "${with_cloog+set}" = set; then :
5778 withval=$with_cloog;
5779fi
e28c595f
JM
5780
5781
7ec59b9e
L
5782# Check whether --with-isl was given.
5783if test "${with_isl+set}" = set; then :
5784 withval=$with_isl;
81ecdfbb 5785fi
e28c595f 5786
e28c595f 5787
8e71395b
L
5788# Treat either --without-cloog or --without-isl as a request to disable
5789# GRAPHITE support and skip all following checks.
5790if test "x$with_isl" != "xno" &&
5791 test "x$with_cloog" != "xno"; then
5792 # Check for ISL
5793
5794
7ec59b9e
L
5795# Check whether --with-isl-include was given.
5796if test "${with_isl_include+set}" = set; then :
5797 withval=$with_isl_include;
81ecdfbb
RW
5798fi
5799
e28c595f 5800
7ec59b9e
L
5801# Check whether --with-isl-lib was given.
5802if test "${with_isl_lib+set}" = set; then :
5803 withval=$with_isl_lib;
81ecdfbb 5804fi
e28c595f 5805
e28c595f 5806
7ec59b9e
L
5807 # Check whether --enable-isl-version-check was given.
5808if test "${enable_isl_version_check+set}" = set; then :
5809 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5810else
5811 ENABLE_ISL_CHECK=yes
b123da99
SP
5812fi
5813
5814
7ec59b9e
L
5815 # Initialize isllibs and islinc.
5816 case $with_isl in
5817 no)
5818 isllibs=
5819 islinc=
5820 ;;
5821 "" | yes)
5822 ;;
5823 *)
5824 isllibs="-L$with_isl/lib"
5825 islinc="-I$with_isl/include"
5826 ;;
5827 esac
5828 if test "x${with_isl_include}" != x ; then
5829 islinc="-I$with_isl_include"
5830 fi
5831 if test "x${with_isl_lib}" != x; then
5832 isllibs="-L$with_isl_lib"
5833 fi
5834 if test "x${islinc}" = x && test "x${isllibs}" = x \
5835 && test -d ${srcdir}/isl; then
5836 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5837 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5838 ENABLE_ISL_CHECK=no
3dae1673
JBG
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5840$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
7ec59b9e 5841 fi
b123da99 5842
b123da99 5843
e28c595f 5844
7ec59b9e
L
5845 if test "${ENABLE_ISL_CHECK}" = yes ; then
5846 _isl_saved_CFLAGS=$CFLAGS
5847 _isl_saved_LDFLAGS=$LDFLAGS
5848 _isl_saved_LIBS=$LIBS
5849
5850 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5851 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5852 LIBS="${_isl_saved_LIBS} -lisl"
7ec59b9e
L
5853
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5855$as_echo_n "checking for version 0.10 of ISL... " >&6; }
3dae1673 5856 if test "$cross_compiling" = yes; then :
7ec59b9e
L
5857 gcc_cv_isl=yes
5858else
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b123da99 5860/* end confdefs.h. */
7ec59b9e
L
5861#include <isl/version.h>
5862 #include <string.h>
b123da99
SP
5863int
5864main ()
5865{
7ec59b9e
L
5866if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5867 return 1;
5868
b123da99
SP
5869 ;
5870 return 0;
5871}
5872_ACEOF
7ec59b9e
L
5873if ac_fn_c_try_run "$LINENO"; then :
5874 gcc_cv_isl=yes
e28c595f 5875else
7ec59b9e 5876 gcc_cv_isl=no
b123da99 5877fi
7ec59b9e
L
5878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5879 conftest.$ac_objext conftest.beam conftest.$ac_ext
b123da99 5880fi
7ec59b9e 5881
3dae1673
JBG
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5883$as_echo "$gcc_cv_isl" >&6; }
5884
5885 CFLAGS=$_isl_saved_CFLAGS
5886 LDFLAGS=$_isl_saved_LDFLAGS
5887 LIBS=$_isl_saved_LIBS
5888 fi
5889
5890
5891 if test "${gcc_cv_isl}" = no ; then
5892
5893 if test "${ENABLE_ISL_CHECK}" = yes ; then
5894 _isl_saved_CFLAGS=$CFLAGS
5895 _isl_saved_LDFLAGS=$LDFLAGS
5896 _isl_saved_LIBS=$LIBS
5897
5898 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5899 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5900 LIBS="${_isl_saved_LIBS} -lisl"
3dae1673
JBG
5901
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5903$as_echo_n "checking for version 0.11 of ISL... " >&6; }
5904 if test "$cross_compiling" = yes; then :
5905 gcc_cv_isl=yes
5906else
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908/* end confdefs.h. */
5909#include <isl/version.h>
5910 #include <string.h>
5911int
5912main ()
5913{
5914if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5915 return 1;
5916
5917 ;
5918 return 0;
5919}
5920_ACEOF
5921if ac_fn_c_try_run "$LINENO"; then :
5922 gcc_cv_isl=yes
5923else
5924 gcc_cv_isl=no
5925fi
5926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5927 conftest.$ac_objext conftest.beam conftest.$ac_ext
81ecdfbb 5928fi
3dae1673
JBG
5929
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
7ec59b9e 5931$as_echo "$gcc_cv_isl" >&6; }
81ecdfbb 5932
7ec59b9e
L
5933 CFLAGS=$_isl_saved_CFLAGS
5934 LDFLAGS=$_isl_saved_LDFLAGS
5935 LIBS=$_isl_saved_LIBS
b123da99 5936 fi
e28c595f 5937
b123da99 5938
3dae1673 5939 fi
e28c595f 5940
e28c595f 5941
7ec59b9e
L
5942
5943
7ec59b9e
L
5944 if test "x${with_isl}" = xno; then
5945 graphite_requested=no
5946 elif test "x${with_isl}" != x \
5947 || test "x${with_isl_include}" != x \
5948 || test "x${with_isl_lib}" != x ; then
5949 graphite_requested=yes
5950 else
5951 graphite_requested=no
b123da99 5952 fi
e28c595f 5953
e28c595f
JM
5954
5955
7ec59b9e
L
5956 if test "${gcc_cv_isl}" = no ; then
5957 isllibs=
5958 islinc=
5959 fi
e28c595f 5960
7ec59b9e
L
5961 if test "${graphite_requested}" = yes \
5962 && test "x${isllibs}" = x \
5963 && test "x${islinc}" = x ; then
e28c595f 5964
7ec59b9e
L
5965 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5966 fi
e552509b 5967
e28c595f
JM
5968
5969
8e71395b
L
5970 if test "x$gcc_cv_isl" != "xno"; then
5971 # Check for CLOOG
81ecdfbb 5972
e28c595f 5973
e552509b 5974# Check whether --with-cloog-include was given.
81ecdfbb
RW
5975if test "${with_cloog_include+set}" = set; then :
5976 withval=$with_cloog_include;
5977fi
e28c595f 5978
e28c595f 5979
e552509b 5980# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5981if test "${with_cloog_lib+set}" = set; then :
5982 withval=$with_cloog_lib;
5983fi
e28c595f 5984
e28c595f 5985
e552509b
ILT
5986 # Check whether --enable-cloog-version-check was given.
5987if test "${enable_cloog_version_check+set}" = set; then :
5988 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5989else
5990 ENABLE_CLOOG_CHECK=yes
5991fi
5992
5993
5994 # Initialize clooglibs and clooginc.
5995 case $with_cloog in
5996 no)
5997 clooglibs=
5998 clooginc=
5999 ;;
6000 "" | yes)
6001 ;;
6002 *)
6003 clooglibs="-L$with_cloog/lib"
6004 clooginc="-I$with_cloog/include"
6005 ;;
6006 esac
6007 if test "x${with_cloog_include}" != x ; then
6008 clooginc="-I$with_cloog_include"
6009 fi
6010 if test "x${with_cloog_lib}" != x; then
6011 clooglibs="-L$with_cloog_lib"
6012 fi
3dae1673 6013 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
7ec59b9e
L
6014 && test -d ${srcdir}/cloog; then
6015 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6016 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
3dae1673
JBG
6017 ENABLE_CLOOG_CHECK=no
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6019$as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
8d8eef9a
RW
6020 fi
6021
7ec59b9e 6022 clooginc="-DCLOOG_INT_GMP ${clooginc}"
8e71395b 6023 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
e28c595f 6024
e552509b
ILT
6025
6026
6027
6028
6029 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6030 _cloog_saved_CFLAGS=$CFLAGS
6031 _cloog_saved_LDFLAGS=$LDFLAGS
6032
7ec59b9e
L
6033 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6034 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
e552509b 6035
7ec59b9e
L
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6037$as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
3dae1673 6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e552509b 6039/* end confdefs.h. */
7ec59b9e 6040#include "cloog/version.h"
e552509b
ILT
6041int
6042main ()
6043{
6044#if CLOOG_VERSION_MAJOR != 0 \
7ec59b9e
L
6045 || CLOOG_VERSION_MINOR != 17 \
6046 || CLOOG_VERSION_REVISION < 0
e552509b
ILT
6047 choke me
6048 #endif
6049 ;
6050 return 0;
6051}
6052_ACEOF
6053if ac_fn_c_try_compile "$LINENO"; then :
7ec59b9e 6054 gcc_cv_cloog=yes
e552509b 6055else
7ec59b9e 6056 gcc_cv_cloog=no
e552509b
ILT
6057fi
6058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3dae1673
JBG
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6060$as_echo "$gcc_cv_cloog" >&6; }
6061
6062 CFLAGS=$_cloog_saved_CFLAGS
6063 LDFLAGS=$_cloog_saved_LDFLAGS
6064 fi
6065
6066
6067 if test "${gcc_cv_cloog}" = no ; then
6068
6069
6070
6071 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6072 _cloog_saved_CFLAGS=$CFLAGS
6073 _cloog_saved_LDFLAGS=$LDFLAGS
6074
6075 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6076 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6077
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6079$as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081/* end confdefs.h. */
6082#include "cloog/version.h"
6083int
6084main ()
6085{
6086#if CLOOG_VERSION_MAJOR != 0 \
6087 || CLOOG_VERSION_MINOR != 18 \
6088 || CLOOG_VERSION_REVISION < 0
6089 choke me
6090 #endif
6091 ;
6092 return 0;
6093}
6094_ACEOF
6095if ac_fn_c_try_compile "$LINENO"; then :
6096 gcc_cv_cloog=yes
6097else
6098 gcc_cv_cloog=no
e552509b 6099fi
3dae1673
JBG
6100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
7ec59b9e 6102$as_echo "$gcc_cv_cloog" >&6; }
e552509b
ILT
6103
6104 CFLAGS=$_cloog_saved_CFLAGS
6105 LDFLAGS=$_cloog_saved_LDFLAGS
6106 fi
6107
6108
3dae1673 6109 fi
e552509b 6110
e28c595f 6111
e28c595f
JM
6112
6113
6114
8d8eef9a
RW
6115 if test "x${with_cloog}" = xno; then
6116 graphite_requested=no
6117 elif test "x${with_cloog}" != x \
e552509b
ILT
6118 || test "x${with_cloog_include}" != x \
6119 || test "x${with_cloog_lib}" != x ; then
6120 graphite_requested=yes
6121 else
6122 graphite_requested=no
6123 fi
6124
6125
6126
7ec59b9e 6127 if test "${gcc_cv_cloog}" = no ; then
e552509b
ILT
6128 clooglibs=
6129 clooginc=
6130 fi
6131
6132 if test "${graphite_requested}" = yes \
6133 && test "x${clooglibs}" = x \
6134 && test "x${clooginc}" = x ; then
6135
8e71395b 6136 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
e552509b
ILT
6137 fi
6138
6139
8e71395b 6140 fi
e552509b
ILT
6141fi
6142
7ec59b9e
L
6143# If either the ISL or the CLooG check failed, disable builds of in-tree
6144# variants of both
8e71395b
L
6145if test "x$with_isl" = xno ||
6146 test "x$with_cloog" = xno ||
6147 test "x$gcc_cv_cloog" = xno ||
6148 test "x$gcc_cv_isl" = xno; then
7ec59b9e 6149 noconfigdirs="$noconfigdirs cloog isl"
8e71395b
L
6150 islinc=
6151 clooginc=
6152 clooglibs=
7ec59b9e
L
6153fi
6154
8e71395b
L
6155
6156
6157
6158
6159
700d40ca
ILT
6160# Check for LTO support.
6161# Check whether --enable-lto was given.
6162if test "${enable_lto+set}" = set; then :
6163 enableval=$enable_lto; enable_lto=$enableval
6164else
6165 enable_lto=yes; default_enable_lto=yes
6166fi
6167
6168
143754cd 6169
e49e5c92
DK
6170
6171
6172target_elf=no
6173case $target in
6174 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6175 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 6176 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
6177 target_elf=no
6178 ;;
6179 *)
6180 target_elf=yes
6181 ;;
6182esac
6183
6184if test $target_elf = yes; then :
74cea91b
DK
6185 # ELF platforms build the lto-plugin always.
6186 build_lto_plugin=yes
e49e5c92 6187
e49e5c92
DK
6188else
6189 if test x"$default_enable_lto" = x"yes" ; then
29821356 6190 case $target in
899b04ef 6191 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
74cea91b 6192 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6193 *) enable_lto=no ;;
6194 esac
e49e5c92 6195 else
29821356
RW
6196 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6197 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6198 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6199 # warn during gcc/ subconfigure; unless you're bootstrapping with
6200 # -flto it won't be needed until after installation anyway.
6201 case $target in
a8eb3f0a 6202 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6203 *) if test x"$enable_lto" = x"yes"; then
6204 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6205 fi
6206 ;;
6207 esac
6208 fi
a8eb3f0a 6209 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6210 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6211 case $target in
74cea91b 6212 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6213 *) ;;
6214 esac
74cea91b 6215
e49e5c92
DK
6216fi
6217
700d40ca 6218
e28c595f 6219
7ec59b9e 6220# By default, C and C++ are the only stage 1 languages.
9b134994 6221stage1_languages=,c,
1d39f329 6222
e8a5fa9c 6223# Target libraries that we bootstrap.
2aa2364a 6224bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6225
9e07f89d
NN
6226# Figure out what language subdirectories are present.
6227# Look if the user specified --enable-languages="..."; if not, use
6228# the environment variable $LANGUAGES if defined. $LANGUAGES might
6229# go away some day.
6230# NB: embedded tabs in this IF block -- do not untabify
6231if test -d ${srcdir}/gcc; then
6232 if test x"${enable_languages+set}" != xset; then
6233 if test x"${LANGUAGES+set}" = xset; then
6234 enable_languages="${LANGUAGES}"
6235 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6236 else
6237 enable_languages=all
6238 fi
6239 else
6240 if test x"${enable_languages}" = x ||
6241 test x"${enable_languages}" = xyes;
6242 then
6243 echo configure.in: --enable-languages needs at least one language argument 1>&2
6244 exit 1
6245 fi
6246 fi
6247 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6248
096f7d00
DE
6249 # 'f95' is the old name for the 'fortran' language. We issue a warning
6250 # and make the substitution.
6251 case ,${enable_languages}, in
6252 *,f95,*)
6253 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6254 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6255 ;;
6256 esac
6257
7ec59b9e
L
6258 # If bootstrapping, C++ must be enabled.
6259 case ",$enable_languages,:$enable_bootstrap" in
6260 *,c++,*:*) ;;
6261 *:yes)
ffdd6afc
ILT
6262 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6263 enable_languages="${enable_languages},c++"
6264 else
7ec59b9e 6265 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6266 fi
6267 ;;
6268 esac
6269
9e07f89d
NN
6270 # First scan to see if an enabled language requires some other language.
6271 # We assume that a given config-lang.in will list all the language
6272 # front ends it requires, even if some are required indirectly.
6273 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6274 case ${lang_frag} in
6275 ..) ;;
6276 # The odd quoting in the next line works around
6277 # an apparent bug in bash 1.12 on linux.
6278 ${srcdir}/gcc/[*]/config-lang.in) ;;
6279 *)
e552509b
ILT
6280 # From the config-lang.in, get $language, $lang_requires, and
6281 # $lang_requires_boot_languages.
9e07f89d
NN
6282 language=
6283 lang_requires=
e552509b 6284 lang_requires_boot_languages=
9e07f89d 6285 . ${lang_frag}
e552509b 6286 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6287 case ,${enable_languages}, in
6288 *,$other,*) ;;
6289 *,all,*) ;;
6290 *,$language,*)
6291 echo " \`$other' language required by \`$language'; enabling" 1>&2
6292 enable_languages="${enable_languages},${other}"
6293 ;;
6294 esac
6295 done
e552509b
ILT
6296 for other in ${lang_requires_boot_languages} ; do
6297 if test "$other" != "c"; then
6298 case ,${enable_stage1_languages}, in
6299 *,$other,*) ;;
6300 *,all,*) ;;
6301 *)
6302 case ,${enable_languages}, in
6303 *,$language,*)
6304 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6305 enable_stage1_languages="$enable_stage1_languages,${other}"
6306 ;;
6307 esac
6308 ;;
6309 esac
6310 fi
6311 done
9e07f89d
NN
6312 ;;
6313 esac
6314 done
6315
9b134994 6316 new_enable_languages=,c,
700d40ca
ILT
6317
6318 # If LTO is enabled, add the LTO front end.
6319 extra_host_libiberty_configure_flags=
6320 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6321 case ,${enable_languages}, in
6322 *,lto,*) ;;
6323 *) enable_languages="${enable_languages},lto" ;;
6324 esac
a8eb3f0a 6325 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6326 configdirs="$configdirs lto-plugin"
6327 extra_host_libiberty_configure_flags=--enable-shared
6328 fi
6329 fi
6330
6331
9e07f89d 6332 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6333 potential_languages=,c,
9e07f89d 6334
9e1a94f4
ILT
6335 enabled_target_libs=
6336 disabled_target_libs=
6337
9e07f89d
NN
6338 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6339 case ${lang_frag} in
6340 ..) ;;
6341 # The odd quoting in the next line works around
6342 # an apparent bug in bash 1.12 on linux.
6343 ${srcdir}/gcc/[*]/config-lang.in) ;;
6344 *)
c6b750e1 6345 # From the config-lang.in, get $language, $target_libs,
1d39f329 6346 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6347 language=
6348 target_libs=
6349 lang_dirs=
64ce424c 6350 subdir_requires=
9b134994
PB
6351 boot_language=no
6352 build_by_default=yes
9e07f89d 6353 . ${lang_frag}
9b134994
PB
6354 if test x${language} = x; then
6355 echo "${lang_frag} doesn't set \$language." 1>&2
6356 exit 1
6357 fi
6358
ffdd6afc 6359 if test "$language" = "c++"; then
7ec59b9e 6360 boot_language=yes
e8a5fa9c
RW
6361 fi
6362
8e71395b 6363 add_this_lang=no
9b134994
PB
6364 case ,${enable_languages}, in
6365 *,${language},*)
7ec59b9e
L
6366 # Language was explicitly selected; include it
6367 # unless it is C, which is enabled by default.
6368 if test "$language" != "c"; then
6369 add_this_lang=yes
6370 fi
9e07f89d 6371 ;;
9b134994
PB
6372 *,all,*)
6373 # 'all' was selected, select it if it is a default language
8e71395b
L
6374 if test "$language" != "c"; then
6375 add_this_lang=${build_by_default}
6376 fi
9e07f89d
NN
6377 ;;
6378 esac
4b1cb4fe 6379
64ce424c 6380 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6381 for i in $subdir_requires; do
3d3adb43 6382 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6383 case ,${enable_languages}, in
6384 *,${language},*)
6385 # Specifically requested language; tell them.
81ecdfbb 6386 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6387 ;;
6388 *)
6389 # Silently disable.
9b134994 6390 add_this_lang=unsupported
64ce424c
PB
6391 ;;
6392 esac
6393 done
6394
9b134994
PB
6395 # Disable Ada if no preexisting GNAT is available.
6396 case ,${enable_languages},:${language}:${have_gnat} in
6397 *,${language},*:ada:no)
6398 # Specifically requested language; tell them.
81ecdfbb 6399 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6400 ;;
6401 *:ada:no)
6402 # Silently disable.
6403 add_this_lang=unsupported
6404 ;;
6405 esac
6406
59f7ec45
HPN
6407 # Disable a language that is unsupported by the target.
6408 case " $unsupported_languages " in
6409 *" $language "*)
9b134994 6410 add_this_lang=unsupported
59f7ec45
HPN
6411 ;;
6412 esac
6413
4b1cb4fe 6414 case $add_this_lang in
9b134994 6415 unsupported)
9e07f89d 6416 # Remove language-dependent dirs.
9e1a94f4
ILT
6417 disabled_target_libs="$disabled_target_libs $target_libs"
6418 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6419 ;;
9b134994
PB
6420 no)
6421 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6422 disabled_target_libs="$disabled_target_libs $target_libs"
6423 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6424 potential_languages="${potential_languages}${language},"
6425 ;;
6426 yes)
6427 new_enable_languages="${new_enable_languages}${language},"
6428 potential_languages="${potential_languages}${language},"
1d39f329 6429 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6430 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6431 case "${boot_language}:,$enable_stage1_languages," in
6432 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6433 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6434 case ",$stage1_languages," in
6435 *,$language,* | ,yes, | ,all,) ;;
6436 *) stage1_languages="${stage1_languages}${language}," ;;
6437 esac
e8a5fa9c
RW
6438 # We need to bootstrap any supporting libraries.
6439 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6440 ;;
6441 esac
6442 ;;
9e07f89d
NN
6443 esac
6444 ;;
6445 esac
6446 done
6447
9e1a94f4
ILT
6448 # Add target libraries which are only needed for disabled languages
6449 # to noconfigdirs.
6450 if test -n "$disabled_target_libs"; then
6451 for dir in $disabled_target_libs; do
6452 case " $enabled_target_libs " in
6453 *" ${dir} "*) ;;
6454 *) noconfigdirs="$noconfigdirs $dir" ;;
6455 esac
6456 done
6457 fi
6458
81ecdfbb
RW
6459 # Check whether --enable-stage1-languages was given.
6460if test "${enable_stage1_languages+set}" = set; then :
6461 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6462 ,no,|,,)
6463 # Set it to something that will have no effect in the loop below
6464 enable_stage1_languages=c ;;
6465 ,yes,)
6466 enable_stage1_languages=`echo $new_enable_languages | \
6467 sed -e "s/^,//" -e "s/,$//" ` ;;
6468 *,all,*)
6469 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6470 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6471 esac
6472
6473 # Add "good" languages from enable_stage1_languages to stage1_languages,
6474 # while "bad" languages go in missing_languages. Leave no duplicates.
6475 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6476 case $potential_languages in
6477 *,$i,*)
6478 case $stage1_languages in
6479 *,$i,*) ;;
6480 *) stage1_languages="$stage1_languages$i," ;;
6481 esac ;;
6482 *)
6483 case $missing_languages in
6484 *,$i,*) ;;
6485 *) missing_languages="$missing_languages$i," ;;
6486 esac ;;
6487 esac
6488 done
81ecdfbb
RW
6489fi
6490
9b134994
PB
6491
6492 # Remove leading/trailing commas that were added for simplicity
6493 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6494 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6495 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6496 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6497
9e07f89d 6498 if test "x$missing_languages" != x; then
81ecdfbb 6499 as_fn_error "
27258dd4 6500The following requested languages could not be built: ${missing_languages}
81ecdfbb 6501Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6502 fi
9e07f89d
NN
6503 if test "x$new_enable_languages" != "x$enable_languages"; then
6504 echo The following languages will be built: ${new_enable_languages}
9b134994 6505 enable_languages="$new_enable_languages"
9e07f89d 6506 fi
9b134994 6507
c6b750e1 6508
81ec575a 6509 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6510fi
6511
a6df5a19
PB
6512# Handle --disable-<component> generically.
6513for dir in $configdirs $build_configdirs $target_configdirs ; do
6514 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6515 varname=`echo $dirname | sed -e s/+/_/g`
6516 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6517 noconfigdirs="$noconfigdirs $dir"
6518 fi
6519done
6520
4f0ef2d8 6521# Check for Boehm's garbage collector
81ecdfbb
RW
6522# Check whether --enable-objc-gc was given.
6523if test "${enable_objc_gc+set}" = set; then :
6524 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6525 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6526 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6527 ;;
6528esac
81ecdfbb
RW
6529fi
6530
4f0ef2d8
CD
6531
6532# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6533case ,${enable_languages},:${enable_objc_gc} in
6534 *,objc,*:yes)
4f0ef2d8
CD
6535 # Keep target-boehm-gc if requested for Objective-C.
6536 ;;
4f0ef2d8 6537 *)
d42c4017
DA
6538 # Otherwise remove target-boehm-gc depending on target-libjava.
6539 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6540 noconfigdirs="$noconfigdirs target-boehm-gc"
6541 fi
4f0ef2d8
CD
6542 ;;
6543esac
6544
c23b5043 6545# Disable libitm and libsanitizer if we're not building C++
7ec59b9e
L
6546case ,${enable_languages}, in
6547 *,c++,*) ;;
6548 *)
c23b5043 6549 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
7ec59b9e
L
6550 ;;
6551esac
6552
caeba88f
AL
6553# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6554# $build_configdirs and $target_configdirs.
9e07f89d
NN
6555# If we have the source for $noconfigdirs entries, add them to $notsupp.
6556
6557notsupp=""
6558for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6559 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6560 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6561 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6562 if test -r $srcdir/$dirname/configure ; then
6563 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6564 true
6565 else
6566 notsupp="$notsupp $dir"
6567 fi
6568 fi
6569 fi
caeba88f
AL
6570 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6571 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6572 if test -r $srcdir/$dirname/configure ; then
6573 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6574 true
6575 else
6576 notsupp="$notsupp $dir"
6577 fi
6578 fi
6579 fi
9e07f89d
NN
6580 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6581 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6582 if test -r $srcdir/$dirname/configure ; then
6583 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6584 true
6585 else
6586 notsupp="$notsupp $dir"
6587 fi
6588 fi
6589 fi
6590done
6591
9e07f89d
NN
6592# Quietly strip out all directories which aren't configurable in this tree.
6593# This relies on all configurable subdirectories being autoconfiscated, which
6594# is now the case.
6a9cf61e
PB
6595build_configdirs_all="$build_configdirs"
6596build_configdirs=
6597for i in ${build_configdirs_all} ; do
c6b750e1 6598 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6599 if test -f ${srcdir}/$j/configure ; then
6600 build_configdirs="${build_configdirs} $i"
6601 fi
6602done
6603
9e07f89d
NN
6604configdirs_all="$configdirs"
6605configdirs=
6606for i in ${configdirs_all} ; do
6607 if test -f ${srcdir}/$i/configure ; then
6608 configdirs="${configdirs} $i"
6609 fi
6610done
6a9cf61e 6611
9e07f89d
NN
6612target_configdirs_all="$target_configdirs"
6613target_configdirs=
6614for i in ${target_configdirs_all} ; do
c6b750e1 6615 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6616 if test -f ${srcdir}/$j/configure ; then
6617 target_configdirs="${target_configdirs} $i"
6618 fi
6619done
6620
6621# Produce a warning message for the subdirs we can't configure.
6622# This isn't especially interesting in the Cygnus tree, but in the individual
6623# FSF releases, it's important to let people know when their machine isn't
6624# supported by the one or two programs in a package.
6625
6626if test -n "${notsupp}" && test -z "${norecursion}" ; then
6627 # If $appdirs is non-empty, at least one of those directories must still
6628 # be configured, or we error out. (E.g., if the gas release supports a
6629 # specified target in some subdirs but not the gas subdir, we shouldn't
6630 # pretend that all is well.)
6631 if test -n "$appdirs" ; then
6632 for dir in $appdirs ; do
6633 if test -r $dir/Makefile.in ; then
6634 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6635 appdirs=""
6636 break
6637 fi
6a9cf61e 6638 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6639 appdirs=""
6640 break
6641 fi
6642 fi
6643 done
6644 if test -n "$appdirs" ; then
6645 echo "*** This configuration is not supported by this package." 1>&2
6646 exit 1
6647 fi
6648 fi
6649 # Okay, some application will build, or we don't care to check. Still
6650 # notify of subdirs not getting built.
6651 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6652 echo " ${notsupp}" 1>&2
6653 echo " (Any other directories should still work fine.)" 1>&2
6654fi
6655
6656case "$host" in
6657 *msdosdjgpp*)
6658 enable_gdbtk=no ;;
6659esac
6660
18f6b6ee
PB
6661# To find our prefix, in gcc_cv_tool_prefix.
6662
6663# The user is always right.
6664if test "${PATH_SEPARATOR+set}" != set; then
6665 echo "#! /bin/sh" >conf$$.sh
6666 echo "exit 0" >>conf$$.sh
6667 chmod +x conf$$.sh
6668 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6669 PATH_SEPARATOR=';'
6670 else
6671 PATH_SEPARATOR=:
6672 fi
6673 rm -f conf$$.sh
6674fi
6675
6676
6677
6678if test "x$exec_prefix" = xNONE; then
6679 if test "x$prefix" = xNONE; then
6680 gcc_cv_tool_prefix=$ac_default_prefix
6681 else
6682 gcc_cv_tool_prefix=$prefix
6683 fi
6684else
6685 gcc_cv_tool_prefix=$exec_prefix
6686fi
6687
6688# If there is no compiler in the tree, use the PATH only. In any
6689# case, if there is no compiler in the tree nobody should use
6690# AS_FOR_TARGET and LD_FOR_TARGET.
6691if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6692 gcc_version=`cat $srcdir/gcc/BASE-VER`
6693 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6694 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6695 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6696 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6697 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6698 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6699else
6700 gcc_cv_tool_dirs=
6701fi
6702
6703if test x$build = x$target && test -n "$md_exec_prefix"; then
6704 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6705fi
6706
6707
6708
9e07f89d
NN
6709copy_dirs=
6710
c6b750e1 6711
81ecdfbb
RW
6712# Check whether --with-build-sysroot was given.
6713if test "${with_build_sysroot+set}" = set; then :
6714 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6715 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6716 fi
6717else
6718 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6719fi
a19b6204
MM
6720
6721
8a6ee3ab 6722
81ecdfbb
RW
6723
6724# Check whether --with-debug-prefix-map was given.
6725if test "${with_debug_prefix_map+set}" = set; then :
6726 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6727 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6728 for debug_map in $withval; do
6729 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6730 done
6731 fi
6732else
6733 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6734fi
6735
8a6ee3ab
JM
6736
6737
7f6ef0c0
PB
6738# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6739# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6740# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6741# We want to ensure that TARGET libraries (which we know are built with
6742# gcc) are built with "-O2 -g", so include those options when setting
6743# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6744if test "x$CFLAGS_FOR_TARGET" = x; then
6745 CFLAGS_FOR_TARGET=$CFLAGS
6746 case " $CFLAGS " in
6747 *" -O2 "*) ;;
68f107fa 6748 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6749 esac
6750 case " $CFLAGS " in
6751 *" -g "* | *" -g3 "*) ;;
68f107fa 6752 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6753 esac
6754fi
6755
6756
6757if test "x$CXXFLAGS_FOR_TARGET" = x; then
6758 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6759 case " $CXXFLAGS " in
6760 *" -O2 "*) ;;
68f107fa 6761 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6762 esac
6763 case " $CXXFLAGS " in
6764 *" -g "* | *" -g3 "*) ;;
68f107fa 6765 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6766 esac
6767fi
6768
6769
91c1f14c
DK
6770
6771
9e07f89d
NN
6772# Handle --with-headers=XXX. If the value is not "yes", the contents of
6773# the named directory are copied to $(tooldir)/sys-include.
6774if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6775 if test x${is_cross_compiler} = xno ; then
6776 echo 1>&2 '***' --with-headers is only supported when cross compiling
6777 exit 1
6778 fi
6779 if test x"${with_headers}" != xyes ; then
18f6b6ee 6780 x=${gcc_cv_tool_prefix}
c6b750e1 6781 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6782 fi
6783fi
6784
6785# Handle --with-libs=XXX. If the value is not "yes", the contents of
6786# the name directories are copied to $(tooldir)/lib. Multiple directories
6787# are permitted.
6788if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6789 if test x${is_cross_compiler} = xno ; then
6790 echo 1>&2 '***' --with-libs is only supported when cross compiling
6791 exit 1
6792 fi
6793 if test x"${with_libs}" != xyes ; then
6794 # Copy the libraries in reverse order, so that files in the first named
6795 # library override files in subsequent libraries.
18f6b6ee 6796 x=${gcc_cv_tool_prefix}
9e07f89d 6797 for l in ${with_libs}; do
c6b750e1 6798 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6799 done
6800 fi
6801fi
6802
700d40ca 6803# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6804#
6805# This is done by determining whether or not the appropriate directory
6806# is available, and by checking whether or not specific configurations
6807# have requested that this magic not happen.
c6b750e1
DJ
6808#
6809# The command line options always override the explicit settings in
2429c060
PB
6810# configure.in, and the settings in configure.in override this magic.
6811#
c6b750e1 6812# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6813# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6814# --without-gnu-ld options for the configure script. Similarly, if
6815# the default is to use the included zlib and you don't want to do that,
6816# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6817
6818if test x${use_gnu_as} = x &&
6819 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6820 with_gnu_as=yes
6821 extra_host_args="$extra_host_args --with-gnu-as"
6822fi
6823
6824if test x${use_gnu_ld} = x &&
93f9b408 6825 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6826 with_gnu_ld=yes
6827 extra_host_args="$extra_host_args --with-gnu-ld"
6828fi
6829
700d40ca
ILT
6830if test x${use_included_zlib} = x &&
6831 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6832 :
6833else
6834 with_system_zlib=yes
6835 extra_host_args="$extra_host_args --with-system-zlib"
6836fi
6837
2429c060
PB
6838# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6839# can detect this case.
6840
6841if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6842 with_newlib=yes
6843 extra_host_args="$extra_host_args --with-newlib"
6844fi
6845
9e07f89d
NN
6846# Handle ${copy_dirs}
6847set fnord ${copy_dirs}
6848shift
6849while test $# != 0 ; do
6850 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6851 :
6852 else
6853 echo Copying $1 to $2
6854
6855 # Use the install script to create the directory and all required
6856 # parent directories.
6857 if test -d $2 ; then
6858 :
6859 else
6860 echo >config.temp
6861 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6862 fi
6863
6864 # Copy the directory, assuming we have tar.
6865 # FIXME: Should we use B in the second tar? Not all systems support it.
6866 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6867
6868 # It is the responsibility of the user to correctly adjust all
6869 # symlinks. If somebody can figure out how to handle them correctly
6870 # here, feel free to add the code.
6871
6872 echo $1 > $2/COPIED
6873 fi
6874 shift; shift
6875done
6876
2429c060
PB
6877# Determine a target-dependent exec_prefix that the installed
6878# gcc will search in. Keep this list sorted by triplet, with
6879# the *-*-osname triplets last.
6880md_exec_prefix=
6881case "${target}" in
521ec477 6882 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6883 md_exec_prefix=/dev/env/DJDIR/bin
6884 ;;
2429c060 6885 *-*-hpux* | \
2429c060 6886 *-*-nto-qnx* | \
1f111696 6887 *-*-solaris2*)
2429c060
PB
6888 md_exec_prefix=/usr/ccs/bin
6889 ;;
6890esac
6891
a0da8069
NN
6892extra_arflags_for_target=
6893extra_nmflags_for_target=
6894extra_ranlibflags_for_target=
6895target_makefile_frag=/dev/null
6896case "${target}" in
77d7106f
AM
6897 spu-*-*)
6898 target_makefile_frag="config/mt-spu"
6899 ;;
d09bbf00 6900 mips*-sde-elf* | mips*-mti-elf*)
429acdec
RS
6901 target_makefile_frag="config/mt-sde"
6902 ;;
f3b1e08e
RS
6903 mipsisa*-*-elfoabi*)
6904 target_makefile_frag="config/mt-mips-elfoabi"
6905 ;;
e7c8859c
RS
6906 mips*-*-*linux* | mips*-*-gnu*)
6907 target_makefile_frag="config/mt-mips-gnu"
6908 ;;
29383458 6909 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6910 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6911 ;;
6912 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6913 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6914 # commands to handle both 32-bit and 64-bit objects. These flags are
6915 # harmless if we're using GNU nm or ar.
6916 extra_arflags_for_target=" -X32_64"
6917 extra_nmflags_for_target=" -B -X32_64"
6918 ;;
a0da8069
NN
6919esac
6920
6921alphaieee_frag=/dev/null
6922case $target in
6923 alpha*-*-*)
6924 # This just makes sure to use the -mieee option to build target libs.
6925 # This should probably be set individually by each library.
6926 alphaieee_frag="config/mt-alphaieee"
6927 ;;
6928esac
6929
6930# If --enable-target-optspace always use -Os instead of -O2 to build
6931# the target libraries, similarly if it is not specified, use -Os
6932# on selected platforms.
6933ospace_frag=/dev/null
6934case "${enable_target_optspace}:${target}" in
6935 yes:*)
6936 ospace_frag="config/mt-ospace"
6937 ;;
6938 :d30v-*)
6939 ospace_frag="config/mt-d30v"
6940 ;;
6941 :m32r-* | :d10v-* | :fr30-*)
6942 ospace_frag="config/mt-ospace"
6943 ;;
6944 no:* | :*)
6945 ;;
6946 *)
6947 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6948 ;;
6949esac
6950
a0da8069
NN
6951# Some systems (e.g., one of the i386-aix systems the gas testers are
6952# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6953tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6954build_tooldir=${tooldir}
6955
a0da8069
NN
6956# Create a .gdbinit file which runs the one in srcdir
6957# and tells GDB to look there for source files.
6958
6959if test -r ${srcdir}/.gdbinit ; then
6960 case ${srcdir} in
6961 .) ;;
6962 *) cat > ./.gdbinit <<EOF
6963# ${NO_EDIT}
6964dir ${srcdir}
6965dir .
6966source ${srcdir}/.gdbinit
6967EOF
6968 ;;
6969 esac
6970fi
6971
a0da8069
NN
6972# Make sure that the compiler is able to generate an executable. If it
6973# can't, we are probably in trouble. We don't care whether we can run the
6974# executable--we might be using a cross compiler--we only care whether it
6975# can be created. At this point the main configure script has set CC.
6976we_are_ok=no
6977echo "int main () { return 0; }" > conftest.c
6978${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6979if test $? = 0 ; then
6980 if test -s conftest || test -s conftest.exe ; then
6981 we_are_ok=yes
6982 fi
c6b750e1 6983fi
a0da8069
NN
6984case $we_are_ok in
6985 no)
6986 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6987 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6988 rm -f conftest*
6989 exit 1
6990 ;;
6991esac
6992rm -f conftest*
6993
3bbd2f8f 6994# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6995case "${host}" in
6996 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 6997 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6998 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6999 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7000esac
7001
3bbd2f8f 7002# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7003# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7004# built executables to PATH.
3bbd2f8f
AL
7005if test "$RPATH_ENVVAR" = PATH; then
7006 GCC_SHLIB_SUBDIR=/shlib
7007else
7008 GCC_SHLIB_SUBDIR=
7009fi
7010
a0da8069
NN
7011# Record target_configdirs and the configure arguments for target and
7012# build configuration in Makefile.
7013target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7014build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 7015
2aa2364a
JR
7016# If we are building libgomp, bootstrap it.
7017if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7018 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7019fi
7020
5eb08693
L
7021# If we are building libsanitizer, bootstrap it.
7022if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1 ; then
7023 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7024fi
7025
a0da8069
NN
7026# Determine whether gdb needs tk/tcl or not.
7027# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7028# and in that case we want gdb to be built without tk. Ugh!
7029# In fact I believe gdb is the *only* package directly dependent on tk,
7030# so we should be able to put the 'maybe's in unconditionally and
7031# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7032# 100% sure that that's safe though.
c180f501 7033
675c6968 7034gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7035case "$enable_gdbtk" in
7036 no)
7037 GDB_TK="" ;;
c180f501
AC
7038 yes)
7039 GDB_TK="${gdb_tk}" ;;
a0da8069 7040 *)
c180f501
AC
7041 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7042 # distro. Eventually someone will fix this and move Insight, nee
7043 # gdbtk to a separate directory.
7044 if test -d ${srcdir}/gdb/gdbtk ; then
7045 GDB_TK="${gdb_tk}"
7046 else
7047 GDB_TK=""
7048 fi
7049 ;;
a0da8069 7050esac
907be67c
DJ
7051CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7052INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7053
6bd3dfaa 7054# Strip out unwanted targets.
dd12c3a8
NN
7055
7056# While at that, we remove Makefiles if we were started for recursive
7057# configuration, so that the top-level Makefile reconfigures them,
7058# like we used to do when configure itself was recursive.
dd12c3a8 7059
06a51eac
RW
7060# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7061# but now we're fixing up the Makefile ourselves with the additional
7062# commands passed to AC_CONFIG_FILES. Use separate variables
7063# extrasub-{build,host,target} not because there is any reason to split
7064# the substitutions up that way, but only to remain below the limit of
7065# 99 commands in a script, for HP-UX sed.
7066# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7067
16b1ad29
RW
7068case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7069 yes:yes:*\ gold\ *:*,c++,*) ;;
7070 yes:yes:*\ gold\ *:*)
7071 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7072 ;;
7073esac
7074
9cb3fa6f 7075# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 7076case $enable_bootstrap in
319cab08 7077 yes)
96655cc4
AO
7078 bootstrap_suffix=bootstrap
7079 BUILD_CONFIG=bootstrap-debug
7080 ;;
319cab08 7081 no)
96655cc4
AO
7082 bootstrap_suffix=no-bootstrap
7083 BUILD_CONFIG=
7084 ;;
319cab08
PB
7085esac
7086
96655cc4
AO
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7088$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7089
7090
7091# Check whether --with-build-config was given.
7092if test "${with_build_config+set}" = set; then :
7093 withval=$with_build_config; case $with_build_config in
7094 yes) with_build_config= ;;
7095 no) with_build_config= BUILD_CONFIG= ;;
7096 esac
7097fi
7098
7099
7100if test "x${with_build_config}" != x; then
7101 BUILD_CONFIG=$with_build_config
7102else
7103 case $BUILD_CONFIG in
7104 bootstrap-debug)
7105 if echo "int f (void) { return 0; }" > conftest.c &&
7106 ${CC} -c conftest.c &&
7107 mv conftest.o conftest.o.g0 &&
7108 ${CC} -c -g conftest.c &&
7109 mv conftest.o conftest.o.g &&
a009f2e7 7110 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
7111 :
7112 else
7113 BUILD_CONFIG=
7114 fi
7115 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7116 ;;
7117 esac
7118fi
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7120$as_echo "$BUILD_CONFIG" >&6; }
7121
7122
06a51eac 7123extrasub_build=
6a9cf61e 7124for module in ${build_configdirs} ; do
498d4a71
CF
7125 if test -z "${no_recursion}" \
7126 && test -f ${build_subdir}/${module}/Makefile; then
7127 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7128 rm -f ${build_subdir}/${module}/Makefile
7129 fi
06a51eac 7130 extrasub_build="$extrasub_build
498d4a71
CF
7131/^@if build-$module\$/d
7132/^@endif build-$module\$/d
7133/^@if build-$module-$bootstrap_suffix\$/d
7134/^@endif build-$module-$bootstrap_suffix\$/d"
7135done
06a51eac 7136extrasub_host=
498d4a71 7137for module in ${configdirs} ; do
80911fe1 7138 if test -z "${no_recursion}"; then
8cf39b1b 7139 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7140 if test -f ${file}; then
7141 echo 1>&2 "*** removing ${file} to force reconfigure"
7142 rm -f ${file}
7143 fi
7144 done
498d4a71 7145 fi
06a51eac 7146 extrasub_host="$extrasub_host
498d4a71
CF
7147/^@if $module\$/d
7148/^@endif $module\$/d
7149/^@if $module-$bootstrap_suffix\$/d
7150/^@endif $module-$bootstrap_suffix\$/d"
7151done
06a51eac 7152extrasub_target=
498d4a71
CF
7153for module in ${target_configdirs} ; do
7154 if test -z "${no_recursion}" \
7155 && test -f ${target_subdir}/${module}/Makefile; then
7156 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7157 rm -f ${target_subdir}/${module}/Makefile
7158 fi
e8a5fa9c
RW
7159
7160 # We only bootstrap target libraries listed in bootstrap_target_libs.
7161 case $bootstrap_target_libs in
7162 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7163 *) target_bootstrap_suffix=no-bootstrap ;;
7164 esac
7165
06a51eac 7166 extrasub_target="$extrasub_target
498d4a71
CF
7167/^@if target-$module\$/d
7168/^@endif target-$module\$/d
e8a5fa9c
RW
7169/^@if target-$module-$target_bootstrap_suffix\$/d
7170/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7171done
7172
06a51eac
RW
7173# Do the final fixup along with target modules.
7174extrasub_target="$extrasub_target
6bd3dfaa 7175/^@if /,/^@endif /d"
a0da8069
NN
7176
7177# Create the serialization dependencies. This uses a temporary file.
7178
81ecdfbb
RW
7179# Check whether --enable-serial-configure was given.
7180if test "${enable_serial_configure+set}" = set; then :
7181 enableval=$enable_serial_configure;
7182fi
e6bfb94a
AO
7183
7184
1047cb91
DD
7185case ${enable_serial_configure} in
7186 yes)
7187 enable_serial_build_configure=yes
7188 enable_serial_host_configure=yes
7189 enable_serial_target_configure=yes
7190 ;;
7191esac
7192
a0da8069
NN
7193# These force 'configure's to be done one at a time, to avoid problems
7194# with contention over a shared config.cache.
7195rm -f serdep.tmp
e6bfb94a 7196echo '# serdep.tmp' > serdep.tmp
a0da8069 7197olditem=
1047cb91 7198test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7199for item in ${build_configdirs} ; do
7200 case ${olditem} in
7201 "") ;;
e6bfb94a 7202 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7203 esac
7204 olditem=${item}
7205done
7206olditem=
1047cb91 7207test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7208for item in ${configdirs} ; do
7209 case ${olditem} in
7210 "") ;;
e6bfb94a 7211 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7212 esac
7213 olditem=${item}
7214done
7215olditem=
1047cb91 7216test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7217for item in ${target_configdirs} ; do
7218 case ${olditem} in
7219 "") ;;
e6bfb94a 7220 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7221 esac
7222 olditem=${item}
7223done
7224serialization_dependencies=serdep.tmp
7225
7226
e6bfb94a 7227# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7228# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7229# might not want to pass down to subconfigures. The exception being
7230# --cache-file=/dev/null, which is used to turn off the use of cache
7231# files altogether, and which should be passed on to subconfigures.
7232# Also strip program-prefix, program-suffix, and program-transform-name,
7233# so that we can pass down a consistent program-transform-name.
c6b750e1 7234baseargs=
65b4571a 7235tbaseargs=
c6b750e1
DJ
7236keep_next=no
7237skip_next=no
7238eval "set -- $ac_configure_args"
18f6b6ee
PB
7239for ac_arg
7240do
c6b750e1
DJ
7241 if test X"$skip_next" = X"yes"; then
7242 skip_next=no
7243 continue
7244 fi
7245 if test X"$keep_next" = X"yes"; then
7246 case $ac_arg in
7247 *\'*)
7248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7249 esac
7250 baseargs="$baseargs '$ac_arg'"
65b4571a 7251 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7252 keep_next=no
7253 continue
7254 fi
7255
7256 # Handle separated arguments. Based on the logic generated by
7257 # autoconf 2.59.
7258 case $ac_arg in
7259 *=* | --config-cache | -C | -disable-* | --disable-* \
7260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7262 | -with-* | --with-* | -without-* | --without-* | --x)
7263 separate_arg=no
7264 ;;
7265 -*)
7266 separate_arg=yes
7267 ;;
7268 *)
7269 separate_arg=no
7270 ;;
7271 esac
7272
65b4571a
AO
7273 skip_targ=no
7274 case $ac_arg in
7275
7276 --with-* | --without-*)
7277 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7278
7279 case $libopt in
7280 *[-_]include)
7281 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7282 ;;
7283 *[-_]lib)
7284 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7285 ;;
7286 *)
7287 lib=$libopt
7288 ;;
7289 esac
7290
7291
7292 case $lib in
7ec59b9e 7293 mpc | mpfr | gmp | cloog)
65b4571a
AO
7294 # If we're processing --with-$lib, --with-$lib-include or
7295 # --with-$lib-lib, for one of the libs above, and target is
7296 # different from host, don't pass the current argument to any
7297 # target library's configure.
7298 if test x$is_cross_compiler = xyes; then
7299 skip_targ=yes
7300 fi
7301 ;;
7302 esac
7303 ;;
7304 esac
7305
c6b750e1 7306 case "$ac_arg" in
30167e0a
NC
7307 --cache-file=/dev/null | \
7308 -cache-file=/dev/null )
7309 # Handled here to avoid the test to skip args below.
7310 baseargs="$baseargs '$ac_arg'"
65b4571a 7311 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7312 # Assert: $separate_arg should always be no.
7313 keep_next=$separate_arg
7314 ;;
c6b750e1
DJ
7315 --no*)
7316 continue
7317 ;;
7318 --c* | \
7319 --sr* | \
7320 --ho* | \
7321 --bu* | \
7322 --t* | \
7323 --program-* | \
7324 -cache_file* | \
7325 -srcdir* | \
7326 -host* | \
7327 -build* | \
7328 -target* | \
7329 -program-prefix* | \
7330 -program-suffix* | \
7331 -program-transform-name* )
7332 skip_next=$separate_arg
7333 continue
7334 ;;
7335 -*)
7336 # An option. Add it.
7337 case $ac_arg in
7338 *\'*)
7339 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7340 esac
7341 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7342 if test X"$skip_targ" = Xno; then
7343 tbaseargs="$tbaseargs '$ac_arg'"
7344 fi
c6b750e1
DJ
7345 keep_next=$separate_arg
7346 ;;
7347 *)
7348 # Either a variable assignment, or a nonopt (triplet). Don't
7349 # pass it down; let the Makefile handle this.
7350 continue
7351 ;;
7352 esac
7353done
7354# Remove the initial space we just introduced and, as these will be
7355# expanded by make, quote '$'.
7356baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7357
f27d4f92
DJ
7358# Add in --program-transform-name, after --program-prefix and
7359# --program-suffix have been applied to it. Autoconf has already
7360# doubled dollar signs and backslashes in program_transform_name; we want
7361# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7362# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7363# Also, because we want to override the logic in subdir configure scripts to
7364# choose program_transform_name, replace any s,x,x, with s,y,y,.
7365sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7366${program_transform_name}
7367EOF_SED
7368gcc_transform_name=`cat conftestsed.out`
7369rm -f conftestsed.out
7370baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7371tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7372if test "$silent" = yes; then
7373 baseargs="$baseargs --silent"
65b4571a 7374 tbaseargs="$tbaseargs --silent"
2444379b 7375fi
34a0f3cf 7376baseargs="$baseargs --disable-option-checking"
65b4571a 7377tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7378
4074d5f2
RW
7379# Record and document user additions to sub configure arguments.
7380
7381
7382
7383
a0da8069
NN
7384# For the build-side libraries, we just need to pretend we're native,
7385# and not use the same cache file. Multilibs are neither needed nor
7386# desired.
4074d5f2 7387build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7388
7389# For host modules, accept cache file option, or specification as blank.
7390case "${cache_file}" in
7391"") # empty
7392 cache_file_option="" ;;
7393/* | [A-Za-z]:[\\/]* ) # absolute path
7394 cache_file_option="--cache-file=${cache_file}" ;;
7395*) # relative path
7396 cache_file_option="--cache-file=../${cache_file}" ;;
7397esac
7398
82252c06
NN
7399# Host dirs don't like to share a cache file either, horribly enough.
7400# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7401host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7402
65b4571a 7403target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7404
7405# Passing a --with-cross-host argument lets the target libraries know
7406# whether they are being built with a cross-compiler or being built
7407# native. However, it would be better to use other mechanisms to make the
7408# sorts of decisions they want to make on this basis. Please consider
7409# this option to be deprecated. FIXME.
7410if test x${is_cross_compiler} = xyes ; then
c6b750e1 7411 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7412fi
7413
938d2b74
RW
7414# Default to --enable-multilib.
7415if test x${enable_multilib} = x ; then
a0da8069 7416 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7417fi
a0da8069
NN
7418
7419# Pass --with-newlib if appropriate. Note that target_configdirs has
7420# changed from the earlier setting of with_newlib.
7421if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7422 target_configargs="--with-newlib ${target_configargs}"
7423fi
7424
95036d20
NN
7425# Different target subdirs use different values of certain variables
7426# (notably CXX). Worse, multilibs use *lots* of different values.
7427# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7428# it doesn't automatically accept command-line overrides of them.
7429# This means it's not safe for target subdirs to share a cache file,
7430# which is disgusting, but there you have it. Hopefully this can be
7431# fixed in future. It's still worthwhile to use a cache file for each
7432# directory. I think.
7433
ae380b45
MS
7434# Pass the appropriate --build, --host, --target and --cache-file arguments.
7435# We need to pass --target, as newer autoconf's requires consistency
7436# for target_alias and gcc doesn't manage it consistently.
4b900473 7437target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7438
a0da8069
NN
7439FLAGS_FOR_TARGET=
7440case " $target_configdirs " in
7441 *" newlib "*)
7442 case " $target_configargs " in
7443 *" --with-newlib "*)
7444 case "$target" in
1f53ca9a 7445 *-cygwin*)
6d94c122 7446 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7447 ;;
a0da8069
NN
7448 esac
7449
7450 # If we're not building GCC, don't discard standard headers.
7451 if test -d ${srcdir}/gcc; then
7452 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7453
7454 if test "${build}" != "${host}"; then
7455 # On Canadian crosses, CC_FOR_TARGET will have already been set
7456 # by `configure', so we won't have an opportunity to add -Bgcc/
7457 # to it. This is right: we don't want to search that directory
7458 # for binaries, but we want the header files in there, so add
7459 # them explicitly.
e552509b 7460 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7461
7462 # Someone might think of using the pre-installed headers on
7463 # Canadian crosses, in case the installed compiler is not fully
7464 # compatible with the compiler being built. In this case, it
7465 # would be better to flag an error than risking having
7466 # incompatible object files being constructed. We can't
7467 # guarantee that an error will be flagged, but let's hope the
7468 # compiler will do it, when presented with incompatible header
7469 # files.
7470 fi
7471 fi
7472
7473 case "${target}-${is_cross_compiler}" in
ec11bdc6 7474 i[3456789]86-*-linux*-no)
a0da8069
NN
7475 # Here host == target, so we don't need to build gcc,
7476 # so we don't want to discard standard headers.
7477 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7478 ;;
7479 *)
7480 # If we're building newlib, use its generic headers last, but search
7481 # for any libc-related directories first (so make it the last -B
7482 # switch).
7483 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
7484
7485 # If we're building libgloss, find the startup file, simulator library
7486 # and linker script.
7487 case " $target_configdirs " in
7488 *" libgloss "*)
7489 # Look for startup file, simulator library and maybe linker script.
7490 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7491 # Look for libnosys.a in case the target needs it.
7492 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7493 # Most targets have the linker script in the source directory.
7494 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7495 ;;
7496 esac
a0da8069
NN
7497 ;;
7498 esac
7499 ;;
7500 esac
7501 ;;
7502esac
1f53ca9a 7503
45055374 7504case "$target" in
1f53ca9a
AO
7505 x86_64-*mingw* | *-w64-mingw*)
7506 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7507 # however, use a symlink named 'mingw' in ${prefix} .
7508 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7509 ;;
7510 *-mingw*)
7511 # MinGW can't be handled as Cygwin above since it does not use newlib.
7512 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'
7513 ;;
45055374 7514esac
a0da8069 7515
5fbad20a
DD
7516# Allow the user to override the flags for
7517# our build compiler if desired.
c66487f8
NC
7518if test x"${build}" = x"${host}" ; then
7519 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7520 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7521 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7522fi
5fbad20a 7523
a0da8069
NN
7524# On Canadian crosses, we'll be searching the right directories for
7525# the previously-installed cross compiler, so don't bother to add
7526# flags for directories within the install tree of the compiler
7527# being built; programs in there won't even run.
7528if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7529 # Search for pre-installed headers if nothing else fits.
bba45b8b 7530 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
7531fi
7532
7533if test "x${use_gnu_ld}" = x &&
7534 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7535 # Arrange for us to find uninstalled linker scripts.
b00612cc 7536 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7537fi
7538
a481dbb7
DD
7539# Search for other target-specific linker scripts and such.
7540case "${target}" in
4e206d7e
DB
7541 mep*)
7542 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7543 ;;
7544esac
7545
a0da8069 7546# Makefile fragments.
3e707e94
PB
7547for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7548do
7549 eval fragval=\$$frag
7550 if test $fragval != /dev/null; then
7551 eval $frag=${srcdir}/$fragval
7552 fi
7553done
a0da8069
NN
7554
7555
7556
7557
7558
7559# Miscellanea: directories, flags, etc.
7560
7561
7562
7563
7564
7565
7566
3bbd2f8f 7567
6a9cf61e 7568# Build module lists & subconfigure args.
a0da8069
NN
7569
7570
7571
be01d343
PB
7572# Host module lists & subconfigure args.
7573
7574
7575
911e63d0 7576
be01d343
PB
7577# Target module lists & subconfigure args.
7578
7579
7580
7581# Build tools.
7582
7583
7584
1576798e
PB
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
be01d343
PB
7599# Generate default definitions for YACC, M4, LEX and other programs that run
7600# on the build machine. These are used if the Makefile can't locate these
7601# programs in objdir.
7602MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7603
7604for ac_prog in 'bison -y' byacc yacc
7605do
c6b750e1 7606 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7607set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609$as_echo_n "checking for $ac_word... " >&6; }
7610if test "${ac_cv_prog_YACC+set}" = set; then :
7611 $as_echo_n "(cached) " >&6
be01d343
PB
7612else
7613 if test -n "$YACC"; then
7614 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7615else
c6b750e1
DJ
7616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617for as_dir in $PATH
7618do
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7623 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7625 break 2
7626 fi
7627done
81ecdfbb
RW
7628 done
7629IFS=$as_save_IFS
c6b750e1 7630
be01d343
PB
7631fi
7632fi
c6b750e1 7633YACC=$ac_cv_prog_YACC
be01d343 7634if test -n "$YACC"; then
81ecdfbb
RW
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7636$as_echo "$YACC" >&6; }
be01d343 7637else
81ecdfbb
RW
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639$as_echo "no" >&6; }
be01d343
PB
7640fi
7641
81ecdfbb 7642
c6b750e1 7643 test -n "$YACC" && break
be01d343
PB
7644done
7645test -n "$YACC" || YACC="$MISSING bison -y"
7646
7647case " $build_configdirs " in
7648 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7649esac
7650
7651for ac_prog in bison
7652do
c6b750e1 7653 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7654set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656$as_echo_n "checking for $ac_word... " >&6; }
7657if test "${ac_cv_prog_BISON+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
be01d343
PB
7659else
7660 if test -n "$BISON"; then
7661 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7662else
c6b750e1
DJ
7663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664for as_dir in $PATH
7665do
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7670 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7672 break 2
7673 fi
7674done
81ecdfbb
RW
7675 done
7676IFS=$as_save_IFS
c6b750e1 7677
be01d343
PB
7678fi
7679fi
c6b750e1 7680BISON=$ac_cv_prog_BISON
be01d343 7681if test -n "$BISON"; then
81ecdfbb
RW
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7683$as_echo "$BISON" >&6; }
be01d343 7684else
81ecdfbb
RW
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686$as_echo "no" >&6; }
be01d343
PB
7687fi
7688
81ecdfbb 7689
c6b750e1 7690 test -n "$BISON" && break
be01d343
PB
7691done
7692test -n "$BISON" || BISON="$MISSING bison"
7693
7694case " $build_configdirs " in
7695 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7696esac
7697
7698for ac_prog in gm4 gnum4 m4
7699do
c6b750e1 7700 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7701set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703$as_echo_n "checking for $ac_word... " >&6; }
7704if test "${ac_cv_prog_M4+set}" = set; then :
7705 $as_echo_n "(cached) " >&6
be01d343
PB
7706else
7707 if test -n "$M4"; then
7708 ac_cv_prog_M4="$M4" # Let the user override the test.
7709else
c6b750e1
DJ
7710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711for as_dir in $PATH
7712do
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7717 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7719 break 2
7720 fi
7721done
81ecdfbb
RW
7722 done
7723IFS=$as_save_IFS
c6b750e1 7724
be01d343
PB
7725fi
7726fi
c6b750e1 7727M4=$ac_cv_prog_M4
be01d343 7728if test -n "$M4"; then
81ecdfbb
RW
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7730$as_echo "$M4" >&6; }
be01d343 7731else
81ecdfbb
RW
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733$as_echo "no" >&6; }
be01d343
PB
7734fi
7735
81ecdfbb 7736
c6b750e1 7737 test -n "$M4" && break
be01d343
PB
7738done
7739test -n "$M4" || M4="$MISSING m4"
7740
7741case " $build_configdirs " in
7742 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7743esac
7744
7745for ac_prog in flex lex
7746do
c6b750e1 7747 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7748set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750$as_echo_n "checking for $ac_word... " >&6; }
7751if test "${ac_cv_prog_LEX+set}" = set; then :
7752 $as_echo_n "(cached) " >&6
be01d343
PB
7753else
7754 if test -n "$LEX"; then
7755 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7756else
c6b750e1
DJ
7757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758for as_dir in $PATH
7759do
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7764 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7766 break 2
7767 fi
7768done
81ecdfbb
RW
7769 done
7770IFS=$as_save_IFS
c6b750e1 7771
be01d343
PB
7772fi
7773fi
c6b750e1 7774LEX=$ac_cv_prog_LEX
be01d343 7775if test -n "$LEX"; then
81ecdfbb
RW
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7777$as_echo "$LEX" >&6; }
be01d343 7778else
81ecdfbb
RW
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780$as_echo "no" >&6; }
be01d343
PB
7781fi
7782
81ecdfbb 7783
c6b750e1 7784 test -n "$LEX" && break
be01d343
PB
7785done
7786test -n "$LEX" || LEX="$MISSING flex"
7787
7788case " $build_configdirs " in
7789 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7790 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7791esac
7792
7793for ac_prog in flex
7794do
c6b750e1 7795 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7796set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798$as_echo_n "checking for $ac_word... " >&6; }
7799if test "${ac_cv_prog_FLEX+set}" = set; then :
7800 $as_echo_n "(cached) " >&6
be01d343
PB
7801else
7802 if test -n "$FLEX"; then
7803 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7804else
c6b750e1
DJ
7805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806for as_dir in $PATH
7807do
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7812 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7814 break 2
7815 fi
7816done
81ecdfbb
RW
7817 done
7818IFS=$as_save_IFS
c6b750e1 7819
be01d343
PB
7820fi
7821fi
c6b750e1 7822FLEX=$ac_cv_prog_FLEX
be01d343 7823if test -n "$FLEX"; then
81ecdfbb
RW
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7825$as_echo "$FLEX" >&6; }
be01d343 7826else
81ecdfbb
RW
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828$as_echo "no" >&6; }
be01d343
PB
7829fi
7830
81ecdfbb 7831
c6b750e1 7832 test -n "$FLEX" && break
be01d343
PB
7833done
7834test -n "$FLEX" || FLEX="$MISSING flex"
7835
7836case " $build_configdirs " in
7837 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7838esac
7839
7840for ac_prog in makeinfo
7841do
c6b750e1 7842 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7843set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845$as_echo_n "checking for $ac_word... " >&6; }
7846if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
be01d343
PB
7848else
7849 if test -n "$MAKEINFO"; then
7850 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7851else
c6b750e1
DJ
7852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853for as_dir in $PATH
7854do
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7857 for ac_exec_ext in '' $ac_executable_extensions; do
7858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7859 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7861 break 2
7862 fi
7863done
81ecdfbb
RW
7864 done
7865IFS=$as_save_IFS
c6b750e1 7866
be01d343
PB
7867fi
7868fi
c6b750e1 7869MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7870if test -n "$MAKEINFO"; then
81ecdfbb
RW
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7872$as_echo "$MAKEINFO" >&6; }
be01d343 7873else
81ecdfbb
RW
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875$as_echo "no" >&6; }
be01d343
PB
7876fi
7877
81ecdfbb 7878
c6b750e1 7879 test -n "$MAKEINFO" && break
be01d343
PB
7880done
7881test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7882
7883case " $build_configdirs " in
7884 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7885 *)
7886
10ad8ef3 7887 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7888 # higher, else we use the "missing" dummy.
7889 if ${MAKEINFO} --version \
10ad8ef3 7890 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7891 :
7892 else
7893 MAKEINFO="$MISSING makeinfo"
7894 fi
7895 ;;
7896
7897esac
a0da8069 7898
be01d343 7899# FIXME: expect and dejagnu may become build tools?
a0da8069 7900
be01d343
PB
7901for ac_prog in expect
7902do
c6b750e1 7903 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7904set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906$as_echo_n "checking for $ac_word... " >&6; }
7907if test "${ac_cv_prog_EXPECT+set}" = set; then :
7908 $as_echo_n "(cached) " >&6
be01d343
PB
7909else
7910 if test -n "$EXPECT"; then
7911 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7912else
c6b750e1
DJ
7913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914for as_dir in $PATH
7915do
7916 IFS=$as_save_IFS
7917 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7920 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7922 break 2
7923 fi
7924done
81ecdfbb
RW
7925 done
7926IFS=$as_save_IFS
c6b750e1 7927
be01d343
PB
7928fi
7929fi
c6b750e1 7930EXPECT=$ac_cv_prog_EXPECT
be01d343 7931if test -n "$EXPECT"; then
81ecdfbb
RW
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7933$as_echo "$EXPECT" >&6; }
be01d343 7934else
81ecdfbb
RW
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936$as_echo "no" >&6; }
be01d343 7937fi
a0da8069 7938
81ecdfbb 7939
c6b750e1 7940 test -n "$EXPECT" && break
be01d343
PB
7941done
7942test -n "$EXPECT" || EXPECT="expect"
a0da8069 7943
be01d343
PB
7944case " $configdirs " in
7945 *" expect "*)
7946 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7947 ;;
7948esac
a0da8069 7949
be01d343
PB
7950for ac_prog in runtest
7951do
c6b750e1 7952 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7953set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955$as_echo_n "checking for $ac_word... " >&6; }
7956if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7957 $as_echo_n "(cached) " >&6
be01d343
PB
7958else
7959 if test -n "$RUNTEST"; then
7960 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7961else
c6b750e1
DJ
7962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7969 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7971 break 2
7972 fi
7973done
81ecdfbb
RW
7974 done
7975IFS=$as_save_IFS
c6b750e1 7976
be01d343
PB
7977fi
7978fi
c6b750e1 7979RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7980if test -n "$RUNTEST"; then
81ecdfbb
RW
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7982$as_echo "$RUNTEST" >&6; }
be01d343 7983else
81ecdfbb
RW
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985$as_echo "no" >&6; }
be01d343 7986fi
a0da8069 7987
81ecdfbb 7988
c6b750e1 7989 test -n "$RUNTEST" && break
be01d343
PB
7990done
7991test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7992
be01d343
PB
7993case " $configdirs " in
7994 *" dejagnu "*)
6b89cc21 7995 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7996 ;;
7997esac
a0da8069
NN
7998
7999
a0da8069 8000# Host tools.
859789af
AC
8001ncn_tool_prefix=
8002test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8003ncn_target_tool_prefix=
8004test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8005
9a819804
AO
8006
8007
8008if test -n "$AR"; then
8009 ac_cv_prog_AR=$AR
8010elif test -n "$ac_cv_prog_AR"; then
8011 AR=$ac_cv_prog_AR
8012fi
8013
8014if test -n "$ac_cv_prog_AR"; then
8015 for ncn_progname in ar; do
8016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8017set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019$as_echo_n "checking for $ac_word... " >&6; }
8020if test "${ac_cv_prog_AR+set}" = set; then :
8021 $as_echo_n "(cached) " >&6
9a819804
AO
8022else
8023 if test -n "$AR"; then
8024 ac_cv_prog_AR="$AR" # Let the user override the test.
8025else
8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8033 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8035 break 2
8036 fi
8037done
81ecdfbb
RW
8038 done
8039IFS=$as_save_IFS
9a819804
AO
8040
8041fi
8042fi
8043AR=$ac_cv_prog_AR
8044if test -n "$AR"; then
81ecdfbb
RW
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8046$as_echo "$AR" >&6; }
9a819804 8047else
81ecdfbb
RW
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
9a819804
AO
8050fi
8051
81ecdfbb 8052
9a819804
AO
8053 done
8054fi
8055
8056for ncn_progname in ar; do
05cbd757
PB
8057 if test -n "$ncn_tool_prefix"; then
8058 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8059set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061$as_echo_n "checking for $ac_word... " >&6; }
8062if test "${ac_cv_prog_AR+set}" = set; then :
8063 $as_echo_n "(cached) " >&6
859789af
AC
8064else
8065 if test -n "$AR"; then
8066 ac_cv_prog_AR="$AR" # Let the user override the test.
8067else
c6b750e1
DJ
8068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069for as_dir in $PATH
8070do
8071 IFS=$as_save_IFS
8072 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8073 for ac_exec_ext in '' $ac_executable_extensions; do
8074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8075 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8077 break 2
8078 fi
8079done
81ecdfbb
RW
8080 done
8081IFS=$as_save_IFS
c6b750e1 8082
859789af
AC
8083fi
8084fi
c6b750e1 8085AR=$ac_cv_prog_AR
859789af 8086if test -n "$AR"; then
81ecdfbb
RW
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8088$as_echo "$AR" >&6; }
859789af 8089else
81ecdfbb
RW
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091$as_echo "no" >&6; }
859789af
AC
8092fi
8093
81ecdfbb 8094
05cbd757
PB
8095 fi
8096 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8098set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100$as_echo_n "checking for $ac_word... " >&6; }
8101if test "${ac_cv_prog_AR+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
859789af 8103else
05cbd757
PB
8104 if test -n "$AR"; then
8105 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8106else
c6b750e1
DJ
8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8114 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8116 break 2
8117 fi
8118done
81ecdfbb
RW
8119 done
8120IFS=$as_save_IFS
c6b750e1 8121
859789af
AC
8122fi
8123fi
c6b750e1 8124AR=$ac_cv_prog_AR
05cbd757 8125if test -n "$AR"; then
81ecdfbb
RW
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8127$as_echo "$AR" >&6; }
859789af 8128else
81ecdfbb
RW
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130$as_echo "no" >&6; }
859789af 8131fi
c6b750e1 8132
81ecdfbb 8133
05cbd757
PB
8134 fi
8135 test -n "$ac_cv_prog_AR" && break
8136done
8137
8138if test -z "$ac_cv_prog_AR" ; then
8139 set dummy ar
8140 if test $build = $host ; then
8141 AR="$2"
859789af 8142 else
05cbd757 8143 AR="${ncn_tool_prefix}$2"
859789af 8144 fi
859789af
AC
8145fi
8146
9a819804
AO
8147
8148
8149if test -n "$AS"; then
8150 ac_cv_prog_AS=$AS
8151elif test -n "$ac_cv_prog_AS"; then
8152 AS=$ac_cv_prog_AS
8153fi
8154
8155if test -n "$ac_cv_prog_AS"; then
8156 for ncn_progname in as; do
8157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8158set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160$as_echo_n "checking for $ac_word... " >&6; }
8161if test "${ac_cv_prog_AS+set}" = set; then :
8162 $as_echo_n "(cached) " >&6
9a819804
AO
8163else
8164 if test -n "$AS"; then
8165 ac_cv_prog_AS="$AS" # Let the user override the test.
8166else
8167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168for as_dir in $PATH
8169do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8174 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8176 break 2
8177 fi
8178done
81ecdfbb
RW
8179 done
8180IFS=$as_save_IFS
9a819804
AO
8181
8182fi
8183fi
8184AS=$ac_cv_prog_AS
8185if test -n "$AS"; then
81ecdfbb
RW
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8187$as_echo "$AS" >&6; }
9a819804 8188else
81ecdfbb
RW
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190$as_echo "no" >&6; }
9a819804
AO
8191fi
8192
81ecdfbb 8193
9a819804
AO
8194 done
8195fi
8196
8197for ncn_progname in as; do
05cbd757
PB
8198 if test -n "$ncn_tool_prefix"; then
8199 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8200set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202$as_echo_n "checking for $ac_word... " >&6; }
8203if test "${ac_cv_prog_AS+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
859789af
AC
8205else
8206 if test -n "$AS"; then
8207 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8208else
8209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210for as_dir in $PATH
8211do
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8216 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8218 break 2
8219 fi
8220done
81ecdfbb
RW
8221 done
8222IFS=$as_save_IFS
c6b750e1 8223
859789af
AC
8224fi
8225fi
c6b750e1 8226AS=$ac_cv_prog_AS
859789af 8227if test -n "$AS"; then
81ecdfbb
RW
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8229$as_echo "$AS" >&6; }
859789af 8230else
81ecdfbb
RW
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232$as_echo "no" >&6; }
859789af
AC
8233fi
8234
81ecdfbb 8235
05cbd757
PB
8236 fi
8237 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8239set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241$as_echo_n "checking for $ac_word... " >&6; }
8242if test "${ac_cv_prog_AS+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
859789af 8244else
05cbd757
PB
8245 if test -n "$AS"; then
8246 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8247else
c6b750e1
DJ
8248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249for as_dir in $PATH
8250do
8251 IFS=$as_save_IFS
8252 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8255 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8257 break 2
8258 fi
8259done
81ecdfbb
RW
8260 done
8261IFS=$as_save_IFS
c6b750e1 8262
859789af
AC
8263fi
8264fi
c6b750e1 8265AS=$ac_cv_prog_AS
05cbd757 8266if test -n "$AS"; then
81ecdfbb
RW
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8268$as_echo "$AS" >&6; }
859789af 8269else
81ecdfbb
RW
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271$as_echo "no" >&6; }
859789af 8272fi
c6b750e1 8273
81ecdfbb 8274
05cbd757
PB
8275 fi
8276 test -n "$ac_cv_prog_AS" && break
8277done
8278
8279if test -z "$ac_cv_prog_AS" ; then
8280 set dummy as
8281 if test $build = $host ; then
8282 AS="$2"
859789af 8283 else
05cbd757 8284 AS="${ncn_tool_prefix}$2"
859789af 8285 fi
859789af
AC
8286fi
8287
9a819804
AO
8288
8289
8290if test -n "$DLLTOOL"; then
8291 ac_cv_prog_DLLTOOL=$DLLTOOL
8292elif test -n "$ac_cv_prog_DLLTOOL"; then
8293 DLLTOOL=$ac_cv_prog_DLLTOOL
8294fi
8295
8296if test -n "$ac_cv_prog_DLLTOOL"; then
8297 for ncn_progname in dlltool; do
8298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8299set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301$as_echo_n "checking for $ac_word... " >&6; }
8302if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
9a819804
AO
8304else
8305 if test -n "$DLLTOOL"; then
8306 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8307else
8308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309for as_dir in $PATH
8310do
8311 IFS=$as_save_IFS
8312 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8315 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8317 break 2
8318 fi
8319done
81ecdfbb
RW
8320 done
8321IFS=$as_save_IFS
9a819804
AO
8322
8323fi
8324fi
8325DLLTOOL=$ac_cv_prog_DLLTOOL
8326if test -n "$DLLTOOL"; then
81ecdfbb
RW
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8328$as_echo "$DLLTOOL" >&6; }
9a819804 8329else
81ecdfbb
RW
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331$as_echo "no" >&6; }
9a819804
AO
8332fi
8333
81ecdfbb 8334
9a819804
AO
8335 done
8336fi
8337
8338for ncn_progname in dlltool; do
05cbd757
PB
8339 if test -n "$ncn_tool_prefix"; then
8340 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8341set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343$as_echo_n "checking for $ac_word... " >&6; }
8344if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8345 $as_echo_n "(cached) " >&6
859789af
AC
8346else
8347 if test -n "$DLLTOOL"; then
8348 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8349else
c6b750e1
DJ
8350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351for as_dir in $PATH
8352do
8353 IFS=$as_save_IFS
8354 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8355 for ac_exec_ext in '' $ac_executable_extensions; do
8356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8357 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8359 break 2
8360 fi
8361done
81ecdfbb
RW
8362 done
8363IFS=$as_save_IFS
c6b750e1 8364
859789af
AC
8365fi
8366fi
c6b750e1 8367DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8368if test -n "$DLLTOOL"; then
81ecdfbb
RW
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8370$as_echo "$DLLTOOL" >&6; }
859789af 8371else
81ecdfbb
RW
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373$as_echo "no" >&6; }
859789af
AC
8374fi
8375
81ecdfbb 8376
05cbd757
PB
8377 fi
8378 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8380set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382$as_echo_n "checking for $ac_word... " >&6; }
8383if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
859789af 8385else
05cbd757
PB
8386 if test -n "$DLLTOOL"; then
8387 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8388else
c6b750e1
DJ
8389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390for as_dir in $PATH
8391do
8392 IFS=$as_save_IFS
8393 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8396 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8398 break 2
8399 fi
8400done
81ecdfbb
RW
8401 done
8402IFS=$as_save_IFS
c6b750e1 8403
859789af
AC
8404fi
8405fi
c6b750e1 8406DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8407if test -n "$DLLTOOL"; then
81ecdfbb
RW
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8409$as_echo "$DLLTOOL" >&6; }
859789af 8410else
81ecdfbb
RW
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412$as_echo "no" >&6; }
859789af 8413fi
c6b750e1 8414
81ecdfbb 8415
05cbd757
PB
8416 fi
8417 test -n "$ac_cv_prog_DLLTOOL" && break
8418done
8419
8420if test -z "$ac_cv_prog_DLLTOOL" ; then
8421 set dummy dlltool
8422 if test $build = $host ; then
8423 DLLTOOL="$2"
859789af 8424 else
05cbd757 8425 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8426 fi
859789af
AC
8427fi
8428
9a819804
AO
8429
8430
8431if test -n "$LD"; then
8432 ac_cv_prog_LD=$LD
8433elif test -n "$ac_cv_prog_LD"; then
8434 LD=$ac_cv_prog_LD
8435fi
8436
8437if test -n "$ac_cv_prog_LD"; then
8438 for ncn_progname in ld; do
8439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8440set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442$as_echo_n "checking for $ac_word... " >&6; }
8443if test "${ac_cv_prog_LD+set}" = set; then :
8444 $as_echo_n "(cached) " >&6
9a819804
AO
8445else
8446 if test -n "$LD"; then
8447 ac_cv_prog_LD="$LD" # Let the user override the test.
8448else
8449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450for as_dir in $PATH
8451do
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8456 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8458 break 2
8459 fi
8460done
81ecdfbb
RW
8461 done
8462IFS=$as_save_IFS
9a819804
AO
8463
8464fi
8465fi
8466LD=$ac_cv_prog_LD
8467if test -n "$LD"; then
81ecdfbb
RW
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8469$as_echo "$LD" >&6; }
9a819804 8470else
81ecdfbb
RW
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472$as_echo "no" >&6; }
9a819804
AO
8473fi
8474
81ecdfbb 8475
9a819804
AO
8476 done
8477fi
8478
8479for ncn_progname in ld; do
05cbd757
PB
8480 if test -n "$ncn_tool_prefix"; then
8481 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8482set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484$as_echo_n "checking for $ac_word... " >&6; }
8485if test "${ac_cv_prog_LD+set}" = set; then :
8486 $as_echo_n "(cached) " >&6
859789af
AC
8487else
8488 if test -n "$LD"; then
8489 ac_cv_prog_LD="$LD" # Let the user override the test.
8490else
c6b750e1
DJ
8491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492for as_dir in $PATH
8493do
8494 IFS=$as_save_IFS
8495 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8498 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8500 break 2
8501 fi
8502done
81ecdfbb
RW
8503 done
8504IFS=$as_save_IFS
c6b750e1 8505
859789af
AC
8506fi
8507fi
c6b750e1 8508LD=$ac_cv_prog_LD
859789af 8509if test -n "$LD"; then
81ecdfbb
RW
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8511$as_echo "$LD" >&6; }
859789af 8512else
81ecdfbb
RW
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514$as_echo "no" >&6; }
859789af
AC
8515fi
8516
81ecdfbb 8517
05cbd757
PB
8518 fi
8519 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8521set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523$as_echo_n "checking for $ac_word... " >&6; }
8524if test "${ac_cv_prog_LD+set}" = set; then :
8525 $as_echo_n "(cached) " >&6
859789af 8526else
05cbd757
PB
8527 if test -n "$LD"; then
8528 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8529else
c6b750e1
DJ
8530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531for as_dir in $PATH
8532do
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8537 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8539 break 2
8540 fi
8541done
81ecdfbb
RW
8542 done
8543IFS=$as_save_IFS
c6b750e1 8544
859789af
AC
8545fi
8546fi
c6b750e1 8547LD=$ac_cv_prog_LD
05cbd757 8548if test -n "$LD"; then
81ecdfbb
RW
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8550$as_echo "$LD" >&6; }
859789af 8551else
81ecdfbb
RW
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553$as_echo "no" >&6; }
859789af 8554fi
c6b750e1 8555
81ecdfbb 8556
05cbd757
PB
8557 fi
8558 test -n "$ac_cv_prog_LD" && break
8559done
8560
8561if test -z "$ac_cv_prog_LD" ; then
8562 set dummy ld
8563 if test $build = $host ; then
8564 LD="$2"
859789af 8565 else
05cbd757 8566 LD="${ncn_tool_prefix}$2"
859789af 8567 fi
859789af
AC
8568fi
8569
9a819804
AO
8570
8571
8572if test -n "$LIPO"; then
8573 ac_cv_prog_LIPO=$LIPO
8574elif test -n "$ac_cv_prog_LIPO"; then
8575 LIPO=$ac_cv_prog_LIPO
8576fi
8577
8578if test -n "$ac_cv_prog_LIPO"; then
8579 for ncn_progname in lipo; do
8580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8581set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583$as_echo_n "checking for $ac_word... " >&6; }
8584if test "${ac_cv_prog_LIPO+set}" = set; then :
8585 $as_echo_n "(cached) " >&6
9a819804
AO
8586else
8587 if test -n "$LIPO"; then
8588 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8589else
8590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591for as_dir in $PATH
8592do
8593 IFS=$as_save_IFS
8594 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8597 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8599 break 2
8600 fi
8601done
81ecdfbb
RW
8602 done
8603IFS=$as_save_IFS
9a819804
AO
8604
8605fi
8606fi
8607LIPO=$ac_cv_prog_LIPO
8608if test -n "$LIPO"; then
81ecdfbb
RW
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8610$as_echo "$LIPO" >&6; }
9a819804 8611else
81ecdfbb
RW
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613$as_echo "no" >&6; }
9a819804
AO
8614fi
8615
81ecdfbb 8616
9a819804
AO
8617 done
8618fi
8619
8620for ncn_progname in lipo; do
be01d343
PB
8621 if test -n "$ncn_tool_prefix"; then
8622 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8623set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8625$as_echo_n "checking for $ac_word... " >&6; }
8626if test "${ac_cv_prog_LIPO+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
be01d343
PB
8628else
8629 if test -n "$LIPO"; then
8630 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8631else
c6b750e1
DJ
8632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633for as_dir in $PATH
8634do
8635 IFS=$as_save_IFS
8636 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8637 for ac_exec_ext in '' $ac_executable_extensions; do
8638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8639 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8641 break 2
8642 fi
8643done
81ecdfbb
RW
8644 done
8645IFS=$as_save_IFS
c6b750e1 8646
be01d343
PB
8647fi
8648fi
c6b750e1 8649LIPO=$ac_cv_prog_LIPO
be01d343 8650if test -n "$LIPO"; then
81ecdfbb
RW
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8652$as_echo "$LIPO" >&6; }
be01d343 8653else
81ecdfbb
RW
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8655$as_echo "no" >&6; }
be01d343
PB
8656fi
8657
81ecdfbb 8658
be01d343
PB
8659 fi
8660 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8662set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664$as_echo_n "checking for $ac_word... " >&6; }
8665if test "${ac_cv_prog_LIPO+set}" = set; then :
8666 $as_echo_n "(cached) " >&6
be01d343
PB
8667else
8668 if test -n "$LIPO"; then
8669 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8670else
c6b750e1
DJ
8671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672for as_dir in $PATH
8673do
8674 IFS=$as_save_IFS
8675 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8676 for ac_exec_ext in '' $ac_executable_extensions; do
8677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8678 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8680 break 2
8681 fi
8682done
81ecdfbb
RW
8683 done
8684IFS=$as_save_IFS
c6b750e1 8685
be01d343
PB
8686fi
8687fi
c6b750e1 8688LIPO=$ac_cv_prog_LIPO
be01d343 8689if test -n "$LIPO"; then
81ecdfbb
RW
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8691$as_echo "$LIPO" >&6; }
be01d343 8692else
81ecdfbb
RW
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694$as_echo "no" >&6; }
be01d343 8695fi
c6b750e1 8696
81ecdfbb 8697
be01d343
PB
8698 fi
8699 test -n "$ac_cv_prog_LIPO" && break
8700done
8701
8702if test -z "$ac_cv_prog_LIPO" ; then
8703 set dummy lipo
8704 if test $build = $host ; then
8705 LIPO="$2"
8706 else
8707 LIPO="${ncn_tool_prefix}$2"
8708 fi
8709fi
8710
9a819804
AO
8711
8712
8713if test -n "$NM"; then
8714 ac_cv_prog_NM=$NM
8715elif test -n "$ac_cv_prog_NM"; then
8716 NM=$ac_cv_prog_NM
8717fi
8718
8719if test -n "$ac_cv_prog_NM"; then
8720 for ncn_progname in nm; do
8721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8722set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724$as_echo_n "checking for $ac_word... " >&6; }
8725if test "${ac_cv_prog_NM+set}" = set; then :
8726 $as_echo_n "(cached) " >&6
859789af
AC
8727else
8728 if test -n "$NM"; then
8729 ac_cv_prog_NM="$NM" # Let the user override the test.
8730else
c6b750e1
DJ
8731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732for as_dir in $PATH
8733do
8734 IFS=$as_save_IFS
8735 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8738 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8740 break 2
8741 fi
8742done
81ecdfbb
RW
8743 done
8744IFS=$as_save_IFS
c6b750e1 8745
859789af
AC
8746fi
8747fi
c6b750e1 8748NM=$ac_cv_prog_NM
859789af 8749if test -n "$NM"; then
81ecdfbb
RW
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8751$as_echo "$NM" >&6; }
859789af 8752else
81ecdfbb
RW
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754$as_echo "no" >&6; }
859789af
AC
8755fi
8756
81ecdfbb 8757
9a819804
AO
8758 done
8759fi
8760
8761for ncn_progname in nm; do
8762 if test -n "$ncn_tool_prefix"; then
8763 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8764set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766$as_echo_n "checking for $ac_word... " >&6; }
8767if test "${ac_cv_prog_NM+set}" = set; then :
8768 $as_echo_n "(cached) " >&6
859789af 8769else
05cbd757
PB
8770 if test -n "$NM"; then
8771 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8772else
c6b750e1
DJ
8773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774for as_dir in $PATH
8775do
8776 IFS=$as_save_IFS
8777 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8780 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8782 break 2
8783 fi
8784done
81ecdfbb
RW
8785 done
8786IFS=$as_save_IFS
c6b750e1 8787
859789af
AC
8788fi
8789fi
c6b750e1 8790NM=$ac_cv_prog_NM
05cbd757 8791if test -n "$NM"; then
81ecdfbb
RW
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8793$as_echo "$NM" >&6; }
859789af 8794else
81ecdfbb
RW
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796$as_echo "no" >&6; }
859789af 8797fi
c6b750e1 8798
81ecdfbb 8799
05cbd757 8800 fi
9a819804
AO
8801 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8803set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805$as_echo_n "checking for $ac_word... " >&6; }
8806if test "${ac_cv_prog_NM+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
9a819804
AO
8808else
8809 if test -n "$NM"; then
8810 ac_cv_prog_NM="$NM" # Let the user override the test.
8811else
8812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813for as_dir in $PATH
8814do
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8819 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8821 break 2
8822 fi
8823done
81ecdfbb
RW
8824 done
8825IFS=$as_save_IFS
9a819804
AO
8826
8827fi
8828fi
8829NM=$ac_cv_prog_NM
8830if test -n "$NM"; then
81ecdfbb
RW
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8832$as_echo "$NM" >&6; }
9a819804 8833else
81ecdfbb
RW
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835$as_echo "no" >&6; }
9a819804
AO
8836fi
8837
81ecdfbb 8838
9a819804
AO
8839 fi
8840 test -n "$ac_cv_prog_NM" && break
8841done
8842
8843if test -z "$ac_cv_prog_NM" ; then
8844 set dummy nm
8845 if test $build = $host ; then
8846 NM="$2"
8847 else
8848 NM="${ncn_tool_prefix}$2"
8849 fi
8850fi
8851
8852
8853
8854if test -n "$RANLIB"; then
8855 ac_cv_prog_RANLIB=$RANLIB
8856elif test -n "$ac_cv_prog_RANLIB"; then
8857 RANLIB=$ac_cv_prog_RANLIB
8858fi
8859
8860if test -n "$ac_cv_prog_RANLIB"; then
8861 for ncn_progname in ranlib; do
8862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8863set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8865$as_echo_n "checking for $ac_word... " >&6; }
8866if test "${ac_cv_prog_RANLIB+set}" = set; then :
8867 $as_echo_n "(cached) " >&6
9a819804
AO
8868else
8869 if test -n "$RANLIB"; then
8870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8871else
8872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873for as_dir in $PATH
8874do
8875 IFS=$as_save_IFS
8876 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8877 for ac_exec_ext in '' $ac_executable_extensions; do
8878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8879 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8881 break 2
8882 fi
8883done
81ecdfbb
RW
8884 done
8885IFS=$as_save_IFS
9a819804
AO
8886
8887fi
8888fi
8889RANLIB=$ac_cv_prog_RANLIB
8890if test -n "$RANLIB"; then
81ecdfbb
RW
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8892$as_echo "$RANLIB" >&6; }
9a819804 8893else
81ecdfbb
RW
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895$as_echo "no" >&6; }
9a819804
AO
8896fi
8897
81ecdfbb 8898
9a819804
AO
8899 done
8900fi
859789af 8901
9a819804 8902for ncn_progname in ranlib; do
05cbd757
PB
8903 if test -n "$ncn_tool_prefix"; then
8904 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8905set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8907$as_echo_n "checking for $ac_word... " >&6; }
8908if test "${ac_cv_prog_RANLIB+set}" = set; then :
8909 $as_echo_n "(cached) " >&6
859789af
AC
8910else
8911 if test -n "$RANLIB"; then
8912 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8913else
c6b750e1
DJ
8914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915for as_dir in $PATH
8916do
8917 IFS=$as_save_IFS
8918 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8919 for ac_exec_ext in '' $ac_executable_extensions; do
8920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8921 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8923 break 2
8924 fi
8925done
81ecdfbb
RW
8926 done
8927IFS=$as_save_IFS
c6b750e1 8928
859789af
AC
8929fi
8930fi
c6b750e1 8931RANLIB=$ac_cv_prog_RANLIB
859789af 8932if test -n "$RANLIB"; then
81ecdfbb
RW
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8934$as_echo "$RANLIB" >&6; }
859789af 8935else
81ecdfbb
RW
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937$as_echo "no" >&6; }
859789af
AC
8938fi
8939
81ecdfbb 8940
05cbd757
PB
8941 fi
8942 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8944set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8946$as_echo_n "checking for $ac_word... " >&6; }
8947if test "${ac_cv_prog_RANLIB+set}" = set; then :
8948 $as_echo_n "(cached) " >&6
859789af 8949else
05cbd757
PB
8950 if test -n "$RANLIB"; then
8951 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8952else
c6b750e1
DJ
8953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8954for as_dir in $PATH
8955do
8956 IFS=$as_save_IFS
8957 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8958 for ac_exec_ext in '' $ac_executable_extensions; do
8959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8960 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8962 break 2
8963 fi
8964done
81ecdfbb
RW
8965 done
8966IFS=$as_save_IFS
c6b750e1 8967
859789af
AC
8968fi
8969fi
c6b750e1 8970RANLIB=$ac_cv_prog_RANLIB
05cbd757 8971if test -n "$RANLIB"; then
81ecdfbb
RW
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8973$as_echo "$RANLIB" >&6; }
859789af 8974else
81ecdfbb
RW
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976$as_echo "no" >&6; }
859789af 8977fi
c6b750e1 8978
81ecdfbb 8979
859789af 8980 fi
05cbd757
PB
8981 test -n "$ac_cv_prog_RANLIB" && break
8982done
8983
8984if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 8985 RANLIB="true"
859789af
AC
8986fi
8987
9a819804
AO
8988
8989
8990if test -n "$STRIP"; then
8991 ac_cv_prog_STRIP=$STRIP
8992elif test -n "$ac_cv_prog_STRIP"; then
8993 STRIP=$ac_cv_prog_STRIP
8994fi
8995
8996if test -n "$ac_cv_prog_STRIP"; then
8997 for ncn_progname in strip; do
8998 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8999set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9001$as_echo_n "checking for $ac_word... " >&6; }
9002if test "${ac_cv_prog_STRIP+set}" = set; then :
9003 $as_echo_n "(cached) " >&6
9a819804
AO
9004else
9005 if test -n "$STRIP"; then
9006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9007else
9008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009for as_dir in $PATH
9010do
9011 IFS=$as_save_IFS
9012 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9013 for ac_exec_ext in '' $ac_executable_extensions; do
9014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9015 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9017 break 2
9018 fi
9019done
81ecdfbb
RW
9020 done
9021IFS=$as_save_IFS
9a819804
AO
9022
9023fi
9024fi
9025STRIP=$ac_cv_prog_STRIP
9026if test -n "$STRIP"; then
81ecdfbb
RW
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9028$as_echo "$STRIP" >&6; }
9a819804 9029else
81ecdfbb
RW
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031$as_echo "no" >&6; }
9a819804
AO
9032fi
9033
81ecdfbb 9034
9a819804
AO
9035 done
9036fi
9037
9038for ncn_progname in strip; do
be01d343
PB
9039 if test -n "$ncn_tool_prefix"; then
9040 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9041set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043$as_echo_n "checking for $ac_word... " >&6; }
9044if test "${ac_cv_prog_STRIP+set}" = set; then :
9045 $as_echo_n "(cached) " >&6
be01d343
PB
9046else
9047 if test -n "$STRIP"; then
9048 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9049else
c6b750e1
DJ
9050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051for as_dir in $PATH
9052do
9053 IFS=$as_save_IFS
9054 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9055 for ac_exec_ext in '' $ac_executable_extensions; do
9056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9057 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9059 break 2
9060 fi
9061done
81ecdfbb
RW
9062 done
9063IFS=$as_save_IFS
c6b750e1 9064
be01d343
PB
9065fi
9066fi
c6b750e1 9067STRIP=$ac_cv_prog_STRIP
be01d343 9068if test -n "$STRIP"; then
81ecdfbb
RW
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9070$as_echo "$STRIP" >&6; }
be01d343 9071else
81ecdfbb
RW
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073$as_echo "no" >&6; }
be01d343
PB
9074fi
9075
81ecdfbb 9076
be01d343
PB
9077 fi
9078 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9080set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9082$as_echo_n "checking for $ac_word... " >&6; }
9083if test "${ac_cv_prog_STRIP+set}" = set; then :
9084 $as_echo_n "(cached) " >&6
be01d343
PB
9085else
9086 if test -n "$STRIP"; then
9087 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9088else
c6b750e1
DJ
9089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090for as_dir in $PATH
9091do
9092 IFS=$as_save_IFS
9093 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9094 for ac_exec_ext in '' $ac_executable_extensions; do
9095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9096 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9098 break 2
9099 fi
9100done
81ecdfbb
RW
9101 done
9102IFS=$as_save_IFS
c6b750e1 9103
be01d343
PB
9104fi
9105fi
c6b750e1 9106STRIP=$ac_cv_prog_STRIP
be01d343 9107if test -n "$STRIP"; then
81ecdfbb
RW
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9109$as_echo "$STRIP" >&6; }
be01d343 9110else
81ecdfbb
RW
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112$as_echo "no" >&6; }
be01d343 9113fi
c6b750e1 9114
81ecdfbb 9115
be01d343
PB
9116 fi
9117 test -n "$ac_cv_prog_STRIP" && break
9118done
9119
9120if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9121 STRIP="true"
be01d343
PB
9122fi
9123
9a819804
AO
9124
9125
9126if test -n "$WINDRES"; then
9127 ac_cv_prog_WINDRES=$WINDRES
9128elif test -n "$ac_cv_prog_WINDRES"; then
9129 WINDRES=$ac_cv_prog_WINDRES
9130fi
9131
9132if test -n "$ac_cv_prog_WINDRES"; then
9133 for ncn_progname in windres; do
9134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9135set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137$as_echo_n "checking for $ac_word... " >&6; }
9138if test "${ac_cv_prog_WINDRES+set}" = set; then :
9139 $as_echo_n "(cached) " >&6
9a819804
AO
9140else
9141 if test -n "$WINDRES"; then
9142 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9143else
9144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145for as_dir in $PATH
9146do
9147 IFS=$as_save_IFS
9148 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9151 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9153 break 2
9154 fi
9155done
81ecdfbb
RW
9156 done
9157IFS=$as_save_IFS
9a819804
AO
9158
9159fi
9160fi
9161WINDRES=$ac_cv_prog_WINDRES
9162if test -n "$WINDRES"; then
81ecdfbb
RW
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9164$as_echo "$WINDRES" >&6; }
9a819804 9165else
81ecdfbb
RW
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167$as_echo "no" >&6; }
9a819804
AO
9168fi
9169
81ecdfbb 9170
9a819804
AO
9171 done
9172fi
9173
9174for ncn_progname in windres; do
05cbd757
PB
9175 if test -n "$ncn_tool_prefix"; then
9176 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9177set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179$as_echo_n "checking for $ac_word... " >&6; }
9180if test "${ac_cv_prog_WINDRES+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
859789af
AC
9182else
9183 if test -n "$WINDRES"; then
9184 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9185else
c6b750e1
DJ
9186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187for as_dir in $PATH
9188do
9189 IFS=$as_save_IFS
9190 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9191 for ac_exec_ext in '' $ac_executable_extensions; do
9192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9193 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9195 break 2
9196 fi
9197done
81ecdfbb
RW
9198 done
9199IFS=$as_save_IFS
c6b750e1 9200
859789af
AC
9201fi
9202fi
c6b750e1 9203WINDRES=$ac_cv_prog_WINDRES
859789af 9204if test -n "$WINDRES"; then
81ecdfbb
RW
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9206$as_echo "$WINDRES" >&6; }
859789af 9207else
81ecdfbb
RW
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209$as_echo "no" >&6; }
859789af
AC
9210fi
9211
81ecdfbb 9212
05cbd757
PB
9213 fi
9214 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9216set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9218$as_echo_n "checking for $ac_word... " >&6; }
9219if test "${ac_cv_prog_WINDRES+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
859789af 9221else
05cbd757
PB
9222 if test -n "$WINDRES"; then
9223 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9224else
c6b750e1
DJ
9225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226for as_dir in $PATH
9227do
9228 IFS=$as_save_IFS
9229 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9230 for ac_exec_ext in '' $ac_executable_extensions; do
9231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9232 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9234 break 2
9235 fi
9236done
81ecdfbb
RW
9237 done
9238IFS=$as_save_IFS
c6b750e1 9239
859789af
AC
9240fi
9241fi
c6b750e1 9242WINDRES=$ac_cv_prog_WINDRES
05cbd757 9243if test -n "$WINDRES"; then
81ecdfbb
RW
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9245$as_echo "$WINDRES" >&6; }
859789af 9246else
81ecdfbb
RW
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248$as_echo "no" >&6; }
859789af 9249fi
c6b750e1 9250
81ecdfbb 9251
05cbd757
PB
9252 fi
9253 test -n "$ac_cv_prog_WINDRES" && break
9254done
9255
9256if test -z "$ac_cv_prog_WINDRES" ; then
9257 set dummy windres
9258 if test $build = $host ; then
9259 WINDRES="$2"
859789af 9260 else
05cbd757 9261 WINDRES="${ncn_tool_prefix}$2"
859789af 9262 fi
859789af
AC
9263fi
9264
9a819804
AO
9265
9266
0c24b341
NC
9267if test -n "$WINDMC"; then
9268 ac_cv_prog_WINDMC=$WINDMC
9269elif test -n "$ac_cv_prog_WINDMC"; then
9270 WINDMC=$ac_cv_prog_WINDMC
9271fi
9272
9273if test -n "$ac_cv_prog_WINDMC"; then
9274 for ncn_progname in windmc; do
9275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9276set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9278$as_echo_n "checking for $ac_word... " >&6; }
9279if test "${ac_cv_prog_WINDMC+set}" = set; then :
9280 $as_echo_n "(cached) " >&6
0c24b341
NC
9281else
9282 if test -n "$WINDMC"; then
9283 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9284else
9285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286for as_dir in $PATH
9287do
9288 IFS=$as_save_IFS
9289 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9290 for ac_exec_ext in '' $ac_executable_extensions; do
9291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9292 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9294 break 2
9295 fi
9296done
81ecdfbb
RW
9297 done
9298IFS=$as_save_IFS
0c24b341
NC
9299
9300fi
9301fi
9302WINDMC=$ac_cv_prog_WINDMC
9303if test -n "$WINDMC"; then
81ecdfbb
RW
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9305$as_echo "$WINDMC" >&6; }
0c24b341 9306else
81ecdfbb
RW
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308$as_echo "no" >&6; }
0c24b341
NC
9309fi
9310
81ecdfbb 9311
0c24b341
NC
9312 done
9313fi
9314
9315for ncn_progname in windmc; do
9316 if test -n "$ncn_tool_prefix"; then
9317 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9318set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9320$as_echo_n "checking for $ac_word... " >&6; }
9321if test "${ac_cv_prog_WINDMC+set}" = set; then :
9322 $as_echo_n "(cached) " >&6
0c24b341
NC
9323else
9324 if test -n "$WINDMC"; then
9325 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9326else
9327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9328for as_dir in $PATH
9329do
9330 IFS=$as_save_IFS
9331 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9332 for ac_exec_ext in '' $ac_executable_extensions; do
9333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9334 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9336 break 2
9337 fi
9338done
81ecdfbb
RW
9339 done
9340IFS=$as_save_IFS
0c24b341
NC
9341
9342fi
9343fi
9344WINDMC=$ac_cv_prog_WINDMC
9345if test -n "$WINDMC"; then
81ecdfbb
RW
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9347$as_echo "$WINDMC" >&6; }
0c24b341 9348else
81ecdfbb
RW
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350$as_echo "no" >&6; }
0c24b341
NC
9351fi
9352
81ecdfbb 9353
0c24b341
NC
9354 fi
9355 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9357set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9359$as_echo_n "checking for $ac_word... " >&6; }
9360if test "${ac_cv_prog_WINDMC+set}" = set; then :
9361 $as_echo_n "(cached) " >&6
0c24b341
NC
9362else
9363 if test -n "$WINDMC"; then
9364 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9365else
9366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9367for as_dir in $PATH
9368do
9369 IFS=$as_save_IFS
9370 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9371 for ac_exec_ext in '' $ac_executable_extensions; do
9372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9373 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9375 break 2
9376 fi
9377done
81ecdfbb
RW
9378 done
9379IFS=$as_save_IFS
0c24b341
NC
9380
9381fi
9382fi
9383WINDMC=$ac_cv_prog_WINDMC
9384if test -n "$WINDMC"; then
81ecdfbb
RW
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9386$as_echo "$WINDMC" >&6; }
0c24b341 9387else
81ecdfbb
RW
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9389$as_echo "no" >&6; }
0c24b341
NC
9390fi
9391
81ecdfbb 9392
0c24b341
NC
9393 fi
9394 test -n "$ac_cv_prog_WINDMC" && break
9395done
9396
9397if test -z "$ac_cv_prog_WINDMC" ; then
9398 set dummy windmc
9399 if test $build = $host ; then
9400 WINDMC="$2"
9401 else
9402 WINDMC="${ncn_tool_prefix}$2"
9403 fi
9404fi
9405
9406
9407
9a819804
AO
9408if test -n "$OBJCOPY"; then
9409 ac_cv_prog_OBJCOPY=$OBJCOPY
9410elif test -n "$ac_cv_prog_OBJCOPY"; then
9411 OBJCOPY=$ac_cv_prog_OBJCOPY
9412fi
9413
9414if test -n "$ac_cv_prog_OBJCOPY"; then
9415 for ncn_progname in objcopy; do
9416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9417set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419$as_echo_n "checking for $ac_word... " >&6; }
9420if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9421 $as_echo_n "(cached) " >&6
9a819804
AO
9422else
9423 if test -n "$OBJCOPY"; then
9424 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9425else
9426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427for as_dir in $PATH
9428do
9429 IFS=$as_save_IFS
9430 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9431 for ac_exec_ext in '' $ac_executable_extensions; do
9432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9433 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9435 break 2
9436 fi
9437done
81ecdfbb
RW
9438 done
9439IFS=$as_save_IFS
9a819804
AO
9440
9441fi
9442fi
9443OBJCOPY=$ac_cv_prog_OBJCOPY
9444if test -n "$OBJCOPY"; then
81ecdfbb
RW
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9446$as_echo "$OBJCOPY" >&6; }
9a819804 9447else
81ecdfbb
RW
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449$as_echo "no" >&6; }
9a819804
AO
9450fi
9451
81ecdfbb 9452
9a819804
AO
9453 done
9454fi
9455
9456for ncn_progname in objcopy; do
05cbd757
PB
9457 if test -n "$ncn_tool_prefix"; then
9458 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9459set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9461$as_echo_n "checking for $ac_word... " >&6; }
9462if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9463 $as_echo_n "(cached) " >&6
859789af
AC
9464else
9465 if test -n "$OBJCOPY"; then
9466 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9467else
c6b750e1
DJ
9468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9469for as_dir in $PATH
9470do
9471 IFS=$as_save_IFS
9472 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9473 for ac_exec_ext in '' $ac_executable_extensions; do
9474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9475 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9477 break 2
9478 fi
9479done
81ecdfbb
RW
9480 done
9481IFS=$as_save_IFS
c6b750e1 9482
859789af
AC
9483fi
9484fi
c6b750e1 9485OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9486if test -n "$OBJCOPY"; then
81ecdfbb
RW
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9488$as_echo "$OBJCOPY" >&6; }
859789af 9489else
81ecdfbb
RW
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491$as_echo "no" >&6; }
859789af
AC
9492fi
9493
81ecdfbb 9494
05cbd757
PB
9495 fi
9496 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9498set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9500$as_echo_n "checking for $ac_word... " >&6; }
9501if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9502 $as_echo_n "(cached) " >&6
859789af 9503else
05cbd757
PB
9504 if test -n "$OBJCOPY"; then
9505 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9506else
c6b750e1
DJ
9507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508for as_dir in $PATH
9509do
9510 IFS=$as_save_IFS
9511 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9512 for ac_exec_ext in '' $ac_executable_extensions; do
9513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9514 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9516 break 2
9517 fi
9518done
81ecdfbb
RW
9519 done
9520IFS=$as_save_IFS
c6b750e1 9521
859789af
AC
9522fi
9523fi
c6b750e1 9524OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9525if test -n "$OBJCOPY"; then
81ecdfbb
RW
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9527$as_echo "$OBJCOPY" >&6; }
859789af 9528else
81ecdfbb
RW
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530$as_echo "no" >&6; }
859789af 9531fi
c6b750e1 9532
81ecdfbb 9533
05cbd757
PB
9534 fi
9535 test -n "$ac_cv_prog_OBJCOPY" && break
9536done
9537
9538if test -z "$ac_cv_prog_OBJCOPY" ; then
9539 set dummy objcopy
9540 if test $build = $host ; then
9541 OBJCOPY="$2"
859789af 9542 else
05cbd757 9543 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9544 fi
859789af
AC
9545fi
9546
9a819804
AO
9547
9548
9549if test -n "$OBJDUMP"; then
9550 ac_cv_prog_OBJDUMP=$OBJDUMP
9551elif test -n "$ac_cv_prog_OBJDUMP"; then
9552 OBJDUMP=$ac_cv_prog_OBJDUMP
9553fi
9554
9555if test -n "$ac_cv_prog_OBJDUMP"; then
9556 for ncn_progname in objdump; do
9557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9558set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560$as_echo_n "checking for $ac_word... " >&6; }
9561if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9562 $as_echo_n "(cached) " >&6
9a819804
AO
9563else
9564 if test -n "$OBJDUMP"; then
9565 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9566else
9567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568for as_dir in $PATH
9569do
9570 IFS=$as_save_IFS
9571 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9572 for ac_exec_ext in '' $ac_executable_extensions; do
9573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9574 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9576 break 2
9577 fi
9578done
81ecdfbb
RW
9579 done
9580IFS=$as_save_IFS
9a819804
AO
9581
9582fi
9583fi
9584OBJDUMP=$ac_cv_prog_OBJDUMP
9585if test -n "$OBJDUMP"; then
81ecdfbb
RW
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9587$as_echo "$OBJDUMP" >&6; }
9a819804 9588else
81ecdfbb
RW
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590$as_echo "no" >&6; }
9a819804
AO
9591fi
9592
81ecdfbb 9593
9a819804
AO
9594 done
9595fi
9596
9597for ncn_progname in objdump; do
05cbd757
PB
9598 if test -n "$ncn_tool_prefix"; then
9599 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9600set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9602$as_echo_n "checking for $ac_word... " >&6; }
9603if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9604 $as_echo_n "(cached) " >&6
859789af
AC
9605else
9606 if test -n "$OBJDUMP"; then
9607 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9608else
c6b750e1
DJ
9609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610for as_dir in $PATH
9611do
9612 IFS=$as_save_IFS
9613 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9614 for ac_exec_ext in '' $ac_executable_extensions; do
9615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9616 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9618 break 2
9619 fi
9620done
81ecdfbb
RW
9621 done
9622IFS=$as_save_IFS
c6b750e1 9623
859789af
AC
9624fi
9625fi
c6b750e1 9626OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9627if test -n "$OBJDUMP"; then
81ecdfbb
RW
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9629$as_echo "$OBJDUMP" >&6; }
859789af 9630else
81ecdfbb
RW
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632$as_echo "no" >&6; }
859789af
AC
9633fi
9634
81ecdfbb 9635
05cbd757
PB
9636 fi
9637 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9638 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9639set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9641$as_echo_n "checking for $ac_word... " >&6; }
9642if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9643 $as_echo_n "(cached) " >&6
859789af 9644else
05cbd757
PB
9645 if test -n "$OBJDUMP"; then
9646 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9647else
c6b750e1
DJ
9648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9649for as_dir in $PATH
9650do
9651 IFS=$as_save_IFS
9652 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9653 for ac_exec_ext in '' $ac_executable_extensions; do
9654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9655 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9657 break 2
9658 fi
9659done
81ecdfbb
RW
9660 done
9661IFS=$as_save_IFS
c6b750e1 9662
859789af
AC
9663fi
9664fi
c6b750e1 9665OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9666if test -n "$OBJDUMP"; then
81ecdfbb
RW
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9668$as_echo "$OBJDUMP" >&6; }
859789af 9669else
81ecdfbb
RW
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671$as_echo "no" >&6; }
859789af 9672fi
c6b750e1 9673
81ecdfbb 9674
05cbd757
PB
9675 fi
9676 test -n "$ac_cv_prog_OBJDUMP" && break
9677done
9678
9679if test -z "$ac_cv_prog_OBJDUMP" ; then
9680 set dummy objdump
9681 if test $build = $host ; then
9682 OBJDUMP="$2"
859789af 9683 else
05cbd757 9684 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9685 fi
859789af
AC
9686fi
9687
a0da8069
NN
9688
9689
b121d7d4
DD
9690if test -n "$READELF"; then
9691 ac_cv_prog_READELF=$READELF
9692elif test -n "$ac_cv_prog_READELF"; then
9693 READELF=$ac_cv_prog_READELF
9694fi
9695
9696if test -n "$ac_cv_prog_READELF"; then
9697 for ncn_progname in readelf; do
9698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9699set dummy ${ncn_progname}; ac_word=$2
9700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9701$as_echo_n "checking for $ac_word... " >&6; }
9702if test "${ac_cv_prog_READELF+set}" = set; then :
9703 $as_echo_n "(cached) " >&6
9704else
9705 if test -n "$READELF"; then
9706 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9707else
9708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9709for as_dir in $PATH
9710do
9711 IFS=$as_save_IFS
9712 test -z "$as_dir" && as_dir=.
9713 for ac_exec_ext in '' $ac_executable_extensions; do
9714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9715 ac_cv_prog_READELF="${ncn_progname}"
9716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9717 break 2
9718 fi
9719done
9720 done
9721IFS=$as_save_IFS
9722
9723fi
9724fi
9725READELF=$ac_cv_prog_READELF
9726if test -n "$READELF"; then
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9728$as_echo "$READELF" >&6; }
9729else
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9731$as_echo "no" >&6; }
9732fi
9733
9734
9735 done
9736fi
9737
9738for ncn_progname in readelf; do
9739 if test -n "$ncn_tool_prefix"; then
9740 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9741set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9743$as_echo_n "checking for $ac_word... " >&6; }
9744if test "${ac_cv_prog_READELF+set}" = set; then :
9745 $as_echo_n "(cached) " >&6
9746else
9747 if test -n "$READELF"; then
9748 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9749else
9750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9751for as_dir in $PATH
9752do
9753 IFS=$as_save_IFS
9754 test -z "$as_dir" && as_dir=.
9755 for ac_exec_ext in '' $ac_executable_extensions; do
9756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9757 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9759 break 2
9760 fi
9761done
9762 done
9763IFS=$as_save_IFS
9764
9765fi
9766fi
9767READELF=$ac_cv_prog_READELF
9768if test -n "$READELF"; then
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9770$as_echo "$READELF" >&6; }
9771else
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773$as_echo "no" >&6; }
9774fi
9775
9776
9777 fi
9778 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9779 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9780set dummy ${ncn_progname}; ac_word=$2
9781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782$as_echo_n "checking for $ac_word... " >&6; }
9783if test "${ac_cv_prog_READELF+set}" = set; then :
9784 $as_echo_n "(cached) " >&6
9785else
9786 if test -n "$READELF"; then
9787 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9788else
9789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790for as_dir in $PATH
9791do
9792 IFS=$as_save_IFS
9793 test -z "$as_dir" && as_dir=.
9794 for ac_exec_ext in '' $ac_executable_extensions; do
9795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9796 ac_cv_prog_READELF="${ncn_progname}"
9797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9798 break 2
9799 fi
9800done
9801 done
9802IFS=$as_save_IFS
9803
9804fi
9805fi
9806READELF=$ac_cv_prog_READELF
9807if test -n "$READELF"; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9809$as_echo "$READELF" >&6; }
9810else
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812$as_echo "no" >&6; }
9813fi
9814
9815
9816 fi
9817 test -n "$ac_cv_prog_READELF" && break
9818done
9819
9820if test -z "$ac_cv_prog_READELF" ; then
9821 set dummy readelf
9822 if test $build = $host ; then
9823 READELF="$2"
9824 else
9825 READELF="${ncn_tool_prefix}$2"
9826 fi
9827fi
9828
9829
9830
a0da8069
NN
9831
9832
9833
be01d343 9834# Target tools.
c6b750e1 9835
81ecdfbb
RW
9836# Check whether --with-build-time-tools was given.
9837if test "${with_build_time_tools+set}" = set; then :
9838 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9839 x/*) ;;
9840 *)
9841 with_build_time_tools=
81ecdfbb
RW
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9843$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9844 ;;
9845 esac
859789af 9846else
2429c060 9847 with_build_time_tools=
81ecdfbb
RW
9848fi
9849
859789af 9850
9a819804
AO
9851
9852
9853if test -n "$CC_FOR_TARGET"; then
9854 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9855elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9856 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9857fi
9858
9859if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9860 for ncn_progname in cc gcc; do
9861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9862set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9864$as_echo_n "checking for $ac_word... " >&6; }
9865if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9866 $as_echo_n "(cached) " >&6
9a819804
AO
9867else
9868 if test -n "$CC_FOR_TARGET"; then
9869 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9870else
9871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872for as_dir in $PATH
9873do
9874 IFS=$as_save_IFS
9875 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9876 for ac_exec_ext in '' $ac_executable_extensions; do
9877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9878 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9880 break 2
9881 fi
9882done
81ecdfbb
RW
9883 done
9884IFS=$as_save_IFS
9a819804
AO
9885
9886fi
9887fi
9888CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9889if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9891$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9892else
81ecdfbb
RW
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894$as_echo "no" >&6; }
9a819804
AO
9895fi
9896
81ecdfbb 9897
9a819804
AO
9898 done
9899fi
9900
9901if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9902 for ncn_progname in cc gcc; do
81ecdfbb
RW
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9904$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9905 if test -x $with_build_time_tools/${ncn_progname}; then
9906 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9908$as_echo "yes" >&6; }
cac3d6c4 9909 break
2429c060 9910 else
81ecdfbb
RW
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9912$as_echo "no" >&6; }
cac3d6c4
CM
9913 fi
9914 done
55db4b87
PB
9915fi
9916
2429c060
PB
9917if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9918 for ncn_progname in cc gcc; do
9919 if test -n "$ncn_target_tool_prefix"; then
9920 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9921set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9923$as_echo_n "checking for $ac_word... " >&6; }
9924if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9925 $as_echo_n "(cached) " >&6
55db4b87
PB
9926else
9927 if test -n "$CC_FOR_TARGET"; then
9928 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9929else
c6b750e1
DJ
9930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931for as_dir in $PATH
9932do
9933 IFS=$as_save_IFS
9934 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9935 for ac_exec_ext in '' $ac_executable_extensions; do
9936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9937 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9939 break 2
9940 fi
9941done
81ecdfbb
RW
9942 done
9943IFS=$as_save_IFS
c6b750e1 9944
55db4b87
PB
9945fi
9946fi
c6b750e1 9947CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9948if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9950$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9951else
81ecdfbb
RW
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953$as_echo "no" >&6; }
55db4b87
PB
9954fi
9955
81ecdfbb 9956
2429c060
PB
9957 fi
9958 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9960set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9962$as_echo_n "checking for $ac_word... " >&6; }
9963if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9964 $as_echo_n "(cached) " >&6
55db4b87 9965else
05cbd757
PB
9966 if test -n "$CC_FOR_TARGET"; then
9967 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9968else
c6b750e1
DJ
9969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9970for as_dir in $PATH
9971do
9972 IFS=$as_save_IFS
9973 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9974 for ac_exec_ext in '' $ac_executable_extensions; do
9975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9976 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9978 break 2
9979 fi
9980done
81ecdfbb
RW
9981 done
9982IFS=$as_save_IFS
c6b750e1 9983
55db4b87
PB
9984fi
9985fi
c6b750e1 9986CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9987if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9989$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9990else
81ecdfbb
RW
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9992$as_echo "no" >&6; }
55db4b87 9993fi
c6b750e1 9994
81ecdfbb 9995
2429c060
PB
9996 fi
9997 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9998 done
9999fi
c6b750e1 10000
05cbd757
PB
10001if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10002 set dummy cc gcc
10003 if test $build = $target ; then
10004 CC_FOR_TARGET="$2"
55db4b87 10005 else
05cbd757 10006 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10007 fi
d3f5afc4
MS
10008else
10009 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10010fi
10011
9a819804
AO
10012
10013
10014if test -n "$CXX_FOR_TARGET"; then
10015 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10016elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10017 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10018fi
10019
10020if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10021 for ncn_progname in c++ g++ cxx gxx; do
10022 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10023set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10025$as_echo_n "checking for $ac_word... " >&6; }
10026if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10027 $as_echo_n "(cached) " >&6
9a819804
AO
10028else
10029 if test -n "$CXX_FOR_TARGET"; then
10030 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10031else
10032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10033for as_dir in $PATH
10034do
10035 IFS=$as_save_IFS
10036 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10037 for ac_exec_ext in '' $ac_executable_extensions; do
10038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10039 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10041 break 2
10042 fi
10043done
81ecdfbb
RW
10044 done
10045IFS=$as_save_IFS
9a819804
AO
10046
10047fi
10048fi
10049CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10050if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10052$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10053else
81ecdfbb
RW
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055$as_echo "no" >&6; }
9a819804
AO
10056fi
10057
81ecdfbb 10058
9a819804
AO
10059 done
10060fi
10061
10062if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10063 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10065$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10066 if test -x $with_build_time_tools/${ncn_progname}; then
10067 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10069$as_echo "yes" >&6; }
2429c060
PB
10070 break
10071 else
81ecdfbb
RW
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10073$as_echo "no" >&6; }
2429c060
PB
10074 fi
10075 done
10076fi
10077
10078if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10079 for ncn_progname in c++ g++ cxx gxx; do
10080 if test -n "$ncn_target_tool_prefix"; then
10081 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10082set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10084$as_echo_n "checking for $ac_word... " >&6; }
10085if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10086 $as_echo_n "(cached) " >&6
55db4b87
PB
10087else
10088 if test -n "$CXX_FOR_TARGET"; then
10089 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10090else
c6b750e1
DJ
10091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10092for as_dir in $PATH
10093do
10094 IFS=$as_save_IFS
10095 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10096 for ac_exec_ext in '' $ac_executable_extensions; do
10097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10098 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10100 break 2
10101 fi
10102done
81ecdfbb
RW
10103 done
10104IFS=$as_save_IFS
c6b750e1 10105
55db4b87
PB
10106fi
10107fi
c6b750e1 10108CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10109if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10111$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10112else
81ecdfbb
RW
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114$as_echo "no" >&6; }
55db4b87
PB
10115fi
10116
81ecdfbb 10117
2429c060
PB
10118 fi
10119 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10121set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123$as_echo_n "checking for $ac_word... " >&6; }
10124if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10125 $as_echo_n "(cached) " >&6
55db4b87 10126else
05cbd757
PB
10127 if test -n "$CXX_FOR_TARGET"; then
10128 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10129else
c6b750e1
DJ
10130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131for as_dir in $PATH
10132do
10133 IFS=$as_save_IFS
10134 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10135 for ac_exec_ext in '' $ac_executable_extensions; do
10136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10137 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10139 break 2
10140 fi
10141done
81ecdfbb
RW
10142 done
10143IFS=$as_save_IFS
c6b750e1 10144
55db4b87
PB
10145fi
10146fi
c6b750e1 10147CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10148if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10150$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10151else
81ecdfbb
RW
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153$as_echo "no" >&6; }
55db4b87 10154fi
c6b750e1 10155
81ecdfbb 10156
2429c060
PB
10157 fi
10158 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10159 done
10160fi
c6b750e1 10161
05cbd757
PB
10162if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10163 set dummy c++ g++ cxx gxx
10164 if test $build = $target ; then
10165 CXX_FOR_TARGET="$2"
55db4b87 10166 else
05cbd757 10167 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10168 fi
d3f5afc4
MS
10169else
10170 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10171fi
10172
9a819804
AO
10173
10174
10175if test -n "$GCC_FOR_TARGET"; then
10176 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10177elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10178 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10179fi
10180
10181if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10182 for ncn_progname in gcc; do
10183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10184set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10186$as_echo_n "checking for $ac_word... " >&6; }
10187if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10188 $as_echo_n "(cached) " >&6
9a819804
AO
10189else
10190 if test -n "$GCC_FOR_TARGET"; then
10191 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10192else
10193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194for as_dir in $PATH
10195do
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10200 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10202 break 2
10203 fi
10204done
81ecdfbb
RW
10205 done
10206IFS=$as_save_IFS
9a819804
AO
10207
10208fi
10209fi
10210GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10211if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10213$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10214else
81ecdfbb
RW
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216$as_echo "no" >&6; }
9a819804
AO
10217fi
10218
81ecdfbb 10219
9a819804
AO
10220 done
10221fi
10222
10223if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10224 for ncn_progname in gcc; do
81ecdfbb
RW
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10226$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10227 if test -x $with_build_time_tools/${ncn_progname}; then
10228 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10230$as_echo "yes" >&6; }
2429c060
PB
10231 break
10232 else
81ecdfbb
RW
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234$as_echo "no" >&6; }
2429c060
PB
10235 fi
10236 done
10237fi
10238
10239if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10240 for ncn_progname in gcc; do
10241 if test -n "$ncn_target_tool_prefix"; then
10242 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10243set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10245$as_echo_n "checking for $ac_word... " >&6; }
10246if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10247 $as_echo_n "(cached) " >&6
859789af 10248else
2429c060
PB
10249 if test -n "$GCC_FOR_TARGET"; then
10250 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10251else
c6b750e1
DJ
10252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253for as_dir in $PATH
10254do
10255 IFS=$as_save_IFS
10256 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10257 for ac_exec_ext in '' $ac_executable_extensions; do
10258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10259 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10261 break 2
10262 fi
10263done
81ecdfbb
RW
10264 done
10265IFS=$as_save_IFS
c6b750e1 10266
55db4b87
PB
10267fi
10268fi
c6b750e1 10269GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10270if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10272$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10273else
81ecdfbb
RW
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275$as_echo "no" >&6; }
55db4b87
PB
10276fi
10277
81ecdfbb 10278
2429c060
PB
10279 fi
10280 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10282set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10284$as_echo_n "checking for $ac_word... " >&6; }
10285if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10286 $as_echo_n "(cached) " >&6
55db4b87 10287else
05cbd757
PB
10288 if test -n "$GCC_FOR_TARGET"; then
10289 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10290else
c6b750e1
DJ
10291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292for as_dir in $PATH
10293do
10294 IFS=$as_save_IFS
10295 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10296 for ac_exec_ext in '' $ac_executable_extensions; do
10297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10298 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10300 break 2
10301 fi
10302done
81ecdfbb
RW
10303 done
10304IFS=$as_save_IFS
c6b750e1 10305
55db4b87
PB
10306fi
10307fi
c6b750e1 10308GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10309if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10311$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10312else
81ecdfbb
RW
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10314$as_echo "no" >&6; }
55db4b87 10315fi
c6b750e1 10316
81ecdfbb 10317
2429c060
PB
10318 fi
10319 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10320 done
10321fi
c6b750e1 10322
05cbd757
PB
10323if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10324 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10325else
10326 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10327fi
10328
9a819804
AO
10329
10330
10331if test -n "$GCJ_FOR_TARGET"; then
10332 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10333elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10334 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10335fi
10336
10337if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10338 for ncn_progname in gcj; do
10339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10340set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10342$as_echo_n "checking for $ac_word... " >&6; }
10343if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10344 $as_echo_n "(cached) " >&6
9a819804
AO
10345else
10346 if test -n "$GCJ_FOR_TARGET"; then
10347 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10348else
10349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350for as_dir in $PATH
10351do
10352 IFS=$as_save_IFS
10353 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10354 for ac_exec_ext in '' $ac_executable_extensions; do
10355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10356 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10358 break 2
10359 fi
10360done
81ecdfbb
RW
10361 done
10362IFS=$as_save_IFS
9a819804
AO
10363
10364fi
10365fi
10366GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10367if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10369$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10370else
81ecdfbb
RW
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372$as_echo "no" >&6; }
9a819804
AO
10373fi
10374
81ecdfbb 10375
9a819804
AO
10376 done
10377fi
10378
10379if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10380 for ncn_progname in gcj; do
81ecdfbb
RW
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10382$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10383 if test -x $with_build_time_tools/${ncn_progname}; then
10384 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10386$as_echo "yes" >&6; }
2429c060
PB
10387 break
10388 else
81ecdfbb
RW
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390$as_echo "no" >&6; }
2429c060
PB
10391 fi
10392 done
10393fi
10394
10395if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10396 for ncn_progname in gcj; do
10397 if test -n "$ncn_target_tool_prefix"; then
10398 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10399set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401$as_echo_n "checking for $ac_word... " >&6; }
10402if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10403 $as_echo_n "(cached) " >&6
55db4b87
PB
10404else
10405 if test -n "$GCJ_FOR_TARGET"; then
10406 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10407else
c6b750e1
DJ
10408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409for as_dir in $PATH
10410do
10411 IFS=$as_save_IFS
10412 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10415 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10417 break 2
10418 fi
10419done
81ecdfbb
RW
10420 done
10421IFS=$as_save_IFS
c6b750e1 10422
55db4b87
PB
10423fi
10424fi
9a819804
AO
10425GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10426if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10428$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10429else
81ecdfbb
RW
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431$as_echo "no" >&6; }
9a819804
AO
10432fi
10433
81ecdfbb 10434
9a819804
AO
10435 fi
10436 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10438set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10440$as_echo_n "checking for $ac_word... " >&6; }
10441if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10442 $as_echo_n "(cached) " >&6
9a819804
AO
10443else
10444 if test -n "$GCJ_FOR_TARGET"; then
10445 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10446else
10447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448for as_dir in $PATH
10449do
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10454 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10456 break 2
10457 fi
10458done
81ecdfbb
RW
10459 done
10460IFS=$as_save_IFS
9a819804
AO
10461
10462fi
10463fi
10464GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10465if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10467$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10468else
81ecdfbb
RW
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10470$as_echo "no" >&6; }
9a819804
AO
10471fi
10472
81ecdfbb 10473
9a819804
AO
10474 fi
10475 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10476 done
10477fi
10478
10479if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10480 set dummy gcj
10481 if test $build = $target ; then
10482 GCJ_FOR_TARGET="$2"
10483 else
10484 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10485 fi
d3f5afc4
MS
10486else
10487 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10488fi
10489
10490
10491
10492if test -n "$GFORTRAN_FOR_TARGET"; then
10493 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10494elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10495 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10496fi
10497
9a819804
AO
10498if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10499 for ncn_progname in gfortran; do
10500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10501set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10503$as_echo_n "checking for $ac_word... " >&6; }
10504if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10505 $as_echo_n "(cached) " >&6
55db4b87 10506else
9a819804
AO
10507 if test -n "$GFORTRAN_FOR_TARGET"; then
10508 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10509else
c6b750e1
DJ
10510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511for as_dir in $PATH
10512do
10513 IFS=$as_save_IFS
10514 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10515 for ac_exec_ext in '' $ac_executable_extensions; do
10516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10517 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10519 break 2
10520 fi
10521done
81ecdfbb
RW
10522 done
10523IFS=$as_save_IFS
c6b750e1 10524
55db4b87
PB
10525fi
10526fi
9a819804
AO
10527GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10528if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10530$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10531else
81ecdfbb
RW
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10533$as_echo "no" >&6; }
55db4b87 10534fi
c6b750e1 10535
81ecdfbb 10536
2429c060
PB
10537 done
10538fi
c6b750e1 10539
9a819804 10540if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10541 for ncn_progname in gfortran; do
81ecdfbb
RW
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10543$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10544 if test -x $with_build_time_tools/${ncn_progname}; then
10545 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10547$as_echo "yes" >&6; }
2429c060
PB
10548 break
10549 else
81ecdfbb
RW
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551$as_echo "no" >&6; }
2429c060
PB
10552 fi
10553 done
10554fi
10555
10556if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10557 for ncn_progname in gfortran; do
10558 if test -n "$ncn_target_tool_prefix"; then
10559 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10560set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562$as_echo_n "checking for $ac_word... " >&6; }
10563if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10564 $as_echo_n "(cached) " >&6
55db4b87
PB
10565else
10566 if test -n "$GFORTRAN_FOR_TARGET"; then
10567 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10568else
c6b750e1
DJ
10569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570for as_dir in $PATH
10571do
10572 IFS=$as_save_IFS
10573 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10574 for ac_exec_ext in '' $ac_executable_extensions; do
10575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10576 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10578 break 2
10579 fi
10580done
81ecdfbb
RW
10581 done
10582IFS=$as_save_IFS
c6b750e1 10583
55db4b87
PB
10584fi
10585fi
c6b750e1 10586GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10587if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10589$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10590else
81ecdfbb
RW
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592$as_echo "no" >&6; }
55db4b87
PB
10593fi
10594
81ecdfbb 10595
2429c060
PB
10596 fi
10597 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10598 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10599set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10601$as_echo_n "checking for $ac_word... " >&6; }
10602if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10603 $as_echo_n "(cached) " >&6
55db4b87 10604else
05cbd757 10605 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10606 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10607else
10608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609for as_dir in $PATH
10610do
10611 IFS=$as_save_IFS
10612 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10613 for ac_exec_ext in '' $ac_executable_extensions; do
10614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10615 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10617 break 2
10618 fi
10619done
81ecdfbb
RW
10620 done
10621IFS=$as_save_IFS
c6b750e1 10622
55db4b87
PB
10623fi
10624fi
c6b750e1 10625GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10626if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10628$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10629else
81ecdfbb
RW
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631$as_echo "no" >&6; }
55db4b87 10632fi
c6b750e1 10633
81ecdfbb 10634
2429c060
PB
10635 fi
10636 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10637 done
10638fi
c6b750e1 10639
05cbd757
PB
10640if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10641 set dummy gfortran
10642 if test $build = $target ; then
10643 GFORTRAN_FOR_TARGET="$2"
55db4b87 10644 else
05cbd757 10645 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10646 fi
d3f5afc4
MS
10647else
10648 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10649fi
10650
2429c060
PB
10651
10652
e552509b
ILT
10653if test -n "$GOC_FOR_TARGET"; then
10654 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10655elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10656 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10657fi
10658
10659if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10660 for ncn_progname in gccgo; do
10661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10662set dummy ${ncn_progname}; ac_word=$2
10663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664$as_echo_n "checking for $ac_word... " >&6; }
10665if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10666 $as_echo_n "(cached) " >&6
10667else
10668 if test -n "$GOC_FOR_TARGET"; then
10669 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10670else
10671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672for as_dir in $PATH
10673do
10674 IFS=$as_save_IFS
10675 test -z "$as_dir" && as_dir=.
10676 for ac_exec_ext in '' $ac_executable_extensions; do
10677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10678 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10680 break 2
10681 fi
10682done
10683 done
10684IFS=$as_save_IFS
10685
10686fi
10687fi
10688GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10689if test -n "$GOC_FOR_TARGET"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10691$as_echo "$GOC_FOR_TARGET" >&6; }
10692else
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694$as_echo "no" >&6; }
10695fi
10696
10697
10698 done
10699fi
10700
10701if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10702 for ncn_progname in gccgo; do
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10704$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10705 if test -x $with_build_time_tools/${ncn_progname}; then
10706 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10708$as_echo "yes" >&6; }
10709 break
10710 else
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712$as_echo "no" >&6; }
10713 fi
10714 done
10715fi
10716
10717if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10718 for ncn_progname in gccgo; do
10719 if test -n "$ncn_target_tool_prefix"; then
10720 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10721set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10723$as_echo_n "checking for $ac_word... " >&6; }
10724if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10725 $as_echo_n "(cached) " >&6
10726else
10727 if test -n "$GOC_FOR_TARGET"; then
10728 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10729else
10730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10731for as_dir in $PATH
10732do
10733 IFS=$as_save_IFS
10734 test -z "$as_dir" && as_dir=.
10735 for ac_exec_ext in '' $ac_executable_extensions; do
10736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10737 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10739 break 2
10740 fi
10741done
10742 done
10743IFS=$as_save_IFS
10744
10745fi
10746fi
10747GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10748if test -n "$GOC_FOR_TARGET"; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10750$as_echo "$GOC_FOR_TARGET" >&6; }
10751else
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10753$as_echo "no" >&6; }
10754fi
10755
10756
10757 fi
10758 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10760set dummy ${ncn_progname}; ac_word=$2
10761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10762$as_echo_n "checking for $ac_word... " >&6; }
10763if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10764 $as_echo_n "(cached) " >&6
10765else
10766 if test -n "$GOC_FOR_TARGET"; then
10767 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10768else
10769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10770for as_dir in $PATH
10771do
10772 IFS=$as_save_IFS
10773 test -z "$as_dir" && as_dir=.
10774 for ac_exec_ext in '' $ac_executable_extensions; do
10775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10776 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10778 break 2
10779 fi
10780done
10781 done
10782IFS=$as_save_IFS
10783
10784fi
10785fi
10786GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10787if test -n "$GOC_FOR_TARGET"; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10789$as_echo "$GOC_FOR_TARGET" >&6; }
10790else
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10792$as_echo "no" >&6; }
10793fi
10794
10795
10796 fi
10797 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10798 done
10799fi
10800
10801if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10802 set dummy gccgo
10803 if test $build = $target ; then
10804 GOC_FOR_TARGET="$2"
10805 else
10806 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10807 fi
10808else
10809 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10810fi
10811
10812
10813
2429c060
PB
10814cat > conftest.c << \EOF
10815#ifdef __GNUC__
10816 gcc_yay;
10817#endif
10818EOF
10819if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10820 have_gcc_for_target=yes
859789af 10821else
2429c060
PB
10822 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10823 have_gcc_for_target=no
859789af 10824fi
2429c060
PB
10825rm conftest.c
10826
10827
10828
859789af 10829
2429c060
PB
10830if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10831 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10833$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10834 if test -x $with_build_time_tools/ar; then
10835 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10836 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10838$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10839 else
81ecdfbb
RW
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841$as_echo "no" >&6; }
3a35eeb3 10842 fi
2429c060
PB
10843 elif test $build != $host && test $have_gcc_for_target = yes; then
10844 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10845 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10846 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10847 fi
2429c060 10848fi
c6b750e1 10849if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10850 # Extract the first word of "ar", so it can be a program name with args.
10851set dummy ar; ac_word=$2
81ecdfbb
RW
10852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10853$as_echo_n "checking for $ac_word... " >&6; }
10854if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10855 $as_echo_n "(cached) " >&6
859789af 10856else
c6b750e1
DJ
10857 case $AR_FOR_TARGET in
10858 [\\/]* | ?:[\\/]*)
2429c060
PB
10859 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10860 ;;
2429c060 10861 *)
c6b750e1
DJ
10862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10863for as_dir in $gcc_cv_tool_dirs
10864do
10865 IFS=$as_save_IFS
10866 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10867 for ac_exec_ext in '' $ac_executable_extensions; do
10868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10869 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10871 break 2
10872 fi
10873done
81ecdfbb
RW
10874 done
10875IFS=$as_save_IFS
c6b750e1 10876
2429c060
PB
10877 ;;
10878esac
859789af 10879fi
c6b750e1 10880AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10881if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10883$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10884else
81ecdfbb
RW
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886$as_echo "no" >&6; }
859789af 10887fi
05cbd757 10888
81ecdfbb 10889
2429c060
PB
10890fi
10891if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10892
10893
10894if test -n "$AR_FOR_TARGET"; then
10895 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10896elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10897 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10898fi
10899
10900if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10901 for ncn_progname in ar; do
10902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10903set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10905$as_echo_n "checking for $ac_word... " >&6; }
10906if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10907 $as_echo_n "(cached) " >&6
9a819804
AO
10908else
10909 if test -n "$AR_FOR_TARGET"; then
10910 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10911else
10912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913for as_dir in $PATH
10914do
10915 IFS=$as_save_IFS
10916 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10917 for ac_exec_ext in '' $ac_executable_extensions; do
10918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10919 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10921 break 2
10922 fi
10923done
81ecdfbb
RW
10924 done
10925IFS=$as_save_IFS
9a819804
AO
10926
10927fi
10928fi
10929AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10930if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10932$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10933else
81ecdfbb
RW
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935$as_echo "no" >&6; }
9a819804
AO
10936fi
10937
81ecdfbb 10938
9a819804
AO
10939 done
10940fi
10941
10942if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10943 for ncn_progname in ar; do
81ecdfbb
RW
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10945$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10946 if test -x $with_build_time_tools/${ncn_progname}; then
10947 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10949$as_echo "yes" >&6; }
2429c060
PB
10950 break
10951 else
81ecdfbb
RW
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953$as_echo "no" >&6; }
2429c060
PB
10954 fi
10955 done
859789af
AC
10956fi
10957
2429c060
PB
10958if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10959 for ncn_progname in ar; do
10960 if test -n "$ncn_target_tool_prefix"; then
10961 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10962set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10964$as_echo_n "checking for $ac_word... " >&6; }
10965if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10966 $as_echo_n "(cached) " >&6
7e0f7140 10967else
2429c060
PB
10968 if test -n "$AR_FOR_TARGET"; then
10969 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10970else
c6b750e1
DJ
10971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972for as_dir in $PATH
10973do
10974 IFS=$as_save_IFS
10975 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10976 for ac_exec_ext in '' $ac_executable_extensions; do
10977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10978 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10980 break 2
10981 fi
10982done
81ecdfbb
RW
10983 done
10984IFS=$as_save_IFS
c6b750e1 10985
7e0f7140
GK
10986fi
10987fi
c6b750e1 10988AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10989if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10991$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10992else
81ecdfbb
RW
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994$as_echo "no" >&6; }
7e0f7140
GK
10995fi
10996
81ecdfbb 10997
2429c060
PB
10998 fi
10999 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11001set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11003$as_echo_n "checking for $ac_word... " >&6; }
11004if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11005 $as_echo_n "(cached) " >&6
7e0f7140 11006else
2429c060
PB
11007 if test -n "$AR_FOR_TARGET"; then
11008 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11009else
c6b750e1
DJ
11010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011for as_dir in $PATH
11012do
11013 IFS=$as_save_IFS
11014 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11015 for ac_exec_ext in '' $ac_executable_extensions; do
11016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11017 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11019 break 2
11020 fi
11021done
81ecdfbb
RW
11022 done
11023IFS=$as_save_IFS
c6b750e1 11024
7e0f7140
GK
11025fi
11026fi
c6b750e1 11027AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11028if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11030$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11031else
81ecdfbb
RW
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033$as_echo "no" >&6; }
7e0f7140 11034fi
c6b750e1 11035
81ecdfbb 11036
2429c060
PB
11037 fi
11038 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11039 done
11040fi
c6b750e1 11041
2429c060
PB
11042if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11043 set dummy ar
7e0f7140 11044 if test $build = $target ; then
2429c060 11045 AR_FOR_TARGET="$2"
7e0f7140 11046 else
2429c060 11047 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11048 fi
d3f5afc4
MS
11049else
11050 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11051fi
11052
3a35eeb3
PB
11053else
11054 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11055fi
11056
11057
11058
11059
11060if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11061 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11063$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11064 if test -x $with_build_time_tools/as; then
11065 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11066 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11068$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11069 else
81ecdfbb
RW
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071$as_echo "no" >&6; }
3a35eeb3 11072 fi
2429c060
PB
11073 elif test $build != $host && test $have_gcc_for_target = yes; then
11074 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11075 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11076 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11077 fi
11078fi
c6b750e1 11079if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11080 # Extract the first word of "as", so it can be a program name with args.
11081set dummy as; ac_word=$2
81ecdfbb
RW
11082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11083$as_echo_n "checking for $ac_word... " >&6; }
11084if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11085 $as_echo_n "(cached) " >&6
2429c060 11086else
c6b750e1
DJ
11087 case $AS_FOR_TARGET in
11088 [\\/]* | ?:[\\/]*)
2429c060
PB
11089 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11090 ;;
2429c060 11091 *)
c6b750e1
DJ
11092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11093for as_dir in $gcc_cv_tool_dirs
11094do
11095 IFS=$as_save_IFS
11096 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11097 for ac_exec_ext in '' $ac_executable_extensions; do
11098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11099 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11101 break 2
11102 fi
11103done
81ecdfbb
RW
11104 done
11105IFS=$as_save_IFS
c6b750e1 11106
2429c060
PB
11107 ;;
11108esac
11109fi
c6b750e1 11110AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11111if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11113$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11114else
81ecdfbb
RW
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116$as_echo "no" >&6; }
2429c060
PB
11117fi
11118
81ecdfbb 11119
2429c060
PB
11120fi
11121if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11122
11123
11124if test -n "$AS_FOR_TARGET"; then
11125 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11126elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11127 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11128fi
11129
11130if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11131 for ncn_progname in as; do
11132 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11133set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11135$as_echo_n "checking for $ac_word... " >&6; }
11136if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11137 $as_echo_n "(cached) " >&6
9a819804
AO
11138else
11139 if test -n "$AS_FOR_TARGET"; then
11140 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11141else
11142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11143for as_dir in $PATH
11144do
11145 IFS=$as_save_IFS
11146 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11147 for ac_exec_ext in '' $ac_executable_extensions; do
11148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11149 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11151 break 2
11152 fi
11153done
81ecdfbb
RW
11154 done
11155IFS=$as_save_IFS
9a819804
AO
11156
11157fi
11158fi
11159AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11160if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11162$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11163else
81ecdfbb
RW
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165$as_echo "no" >&6; }
9a819804
AO
11166fi
11167
81ecdfbb 11168
9a819804
AO
11169 done
11170fi
11171
11172if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11173 for ncn_progname in as; do
81ecdfbb
RW
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11175$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11176 if test -x $with_build_time_tools/${ncn_progname}; then
11177 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11179$as_echo "yes" >&6; }
2429c060
PB
11180 break
11181 else
81ecdfbb
RW
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183$as_echo "no" >&6; }
2429c060
PB
11184 fi
11185 done
11186fi
11187
11188if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11189 for ncn_progname in as; do
11190 if test -n "$ncn_target_tool_prefix"; then
11191 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11192set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11194$as_echo_n "checking for $ac_word... " >&6; }
11195if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11196 $as_echo_n "(cached) " >&6
2429c060
PB
11197else
11198 if test -n "$AS_FOR_TARGET"; then
11199 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11200else
c6b750e1
DJ
11201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202for as_dir in $PATH
11203do
11204 IFS=$as_save_IFS
11205 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11208 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11210 break 2
11211 fi
11212done
81ecdfbb
RW
11213 done
11214IFS=$as_save_IFS
c6b750e1 11215
2429c060
PB
11216fi
11217fi
c6b750e1 11218AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11219if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11221$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11222else
81ecdfbb
RW
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224$as_echo "no" >&6; }
2429c060
PB
11225fi
11226
81ecdfbb 11227
2429c060
PB
11228 fi
11229 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11231set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11233$as_echo_n "checking for $ac_word... " >&6; }
11234if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11235 $as_echo_n "(cached) " >&6
2429c060
PB
11236else
11237 if test -n "$AS_FOR_TARGET"; then
11238 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11239else
c6b750e1
DJ
11240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11241for as_dir in $PATH
11242do
11243 IFS=$as_save_IFS
11244 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11245 for ac_exec_ext in '' $ac_executable_extensions; do
11246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11247 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11249 break 2
11250 fi
11251done
81ecdfbb
RW
11252 done
11253IFS=$as_save_IFS
c6b750e1 11254
2429c060
PB
11255fi
11256fi
c6b750e1 11257AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11258if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11260$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11261else
81ecdfbb
RW
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263$as_echo "no" >&6; }
2429c060 11264fi
c6b750e1 11265
81ecdfbb 11266
2429c060
PB
11267 fi
11268 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11269 done
11270fi
c6b750e1 11271
2429c060
PB
11272if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11273 set dummy as
11274 if test $build = $target ; then
11275 AS_FOR_TARGET="$2"
11276 else
11277 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11278 fi
d3f5afc4
MS
11279else
11280 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11281fi
11282
3a35eeb3
PB
11283else
11284 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11285fi
11286
11287
11288
11289
11290if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11291 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11293$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11294 if test -x $with_build_time_tools/dlltool; then
11295 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11296 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11298$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11299 else
81ecdfbb
RW
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11301$as_echo "no" >&6; }
3a35eeb3 11302 fi
2429c060
PB
11303 elif test $build != $host && test $have_gcc_for_target = yes; then
11304 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11305 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11306 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11307 fi
11308fi
c6b750e1 11309if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11310 # Extract the first word of "dlltool", so it can be a program name with args.
11311set dummy dlltool; ac_word=$2
81ecdfbb
RW
11312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11313$as_echo_n "checking for $ac_word... " >&6; }
11314if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
2429c060 11316else
c6b750e1
DJ
11317 case $DLLTOOL_FOR_TARGET in
11318 [\\/]* | ?:[\\/]*)
2429c060
PB
11319 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11320 ;;
2429c060 11321 *)
c6b750e1
DJ
11322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11323for as_dir in $gcc_cv_tool_dirs
11324do
11325 IFS=$as_save_IFS
11326 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11327 for ac_exec_ext in '' $ac_executable_extensions; do
11328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11329 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11331 break 2
11332 fi
11333done
81ecdfbb
RW
11334 done
11335IFS=$as_save_IFS
c6b750e1 11336
2429c060
PB
11337 ;;
11338esac
11339fi
c6b750e1 11340DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11341if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11343$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11344else
81ecdfbb
RW
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346$as_echo "no" >&6; }
2429c060
PB
11347fi
11348
81ecdfbb 11349
2429c060
PB
11350fi
11351if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11352
11353
11354if test -n "$DLLTOOL_FOR_TARGET"; then
11355 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11356elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11357 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11358fi
11359
11360if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11361 for ncn_progname in dlltool; do
11362 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11363set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11365$as_echo_n "checking for $ac_word... " >&6; }
11366if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11367 $as_echo_n "(cached) " >&6
9a819804
AO
11368else
11369 if test -n "$DLLTOOL_FOR_TARGET"; then
11370 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11371else
11372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373for as_dir in $PATH
11374do
11375 IFS=$as_save_IFS
11376 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11377 for ac_exec_ext in '' $ac_executable_extensions; do
11378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11379 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11381 break 2
11382 fi
11383done
81ecdfbb
RW
11384 done
11385IFS=$as_save_IFS
9a819804
AO
11386
11387fi
11388fi
11389DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11390if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11392$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11393else
81ecdfbb
RW
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11395$as_echo "no" >&6; }
9a819804
AO
11396fi
11397
81ecdfbb 11398
9a819804
AO
11399 done
11400fi
11401
11402if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11403 for ncn_progname in dlltool; do
81ecdfbb
RW
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11405$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11406 if test -x $with_build_time_tools/${ncn_progname}; then
11407 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11409$as_echo "yes" >&6; }
2429c060
PB
11410 break
11411 else
81ecdfbb
RW
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413$as_echo "no" >&6; }
2429c060
PB
11414 fi
11415 done
11416fi
11417
11418if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11419 for ncn_progname in dlltool; do
11420 if test -n "$ncn_target_tool_prefix"; then
11421 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11422set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11424$as_echo_n "checking for $ac_word... " >&6; }
11425if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11426 $as_echo_n "(cached) " >&6
2429c060
PB
11427else
11428 if test -n "$DLLTOOL_FOR_TARGET"; then
11429 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11430else
c6b750e1
DJ
11431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432for as_dir in $PATH
11433do
11434 IFS=$as_save_IFS
11435 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11436 for ac_exec_ext in '' $ac_executable_extensions; do
11437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11438 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11440 break 2
11441 fi
11442done
81ecdfbb
RW
11443 done
11444IFS=$as_save_IFS
c6b750e1 11445
2429c060
PB
11446fi
11447fi
c6b750e1 11448DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11449if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11451$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11452else
81ecdfbb
RW
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454$as_echo "no" >&6; }
2429c060
PB
11455fi
11456
81ecdfbb 11457
2429c060
PB
11458 fi
11459 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11461set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11463$as_echo_n "checking for $ac_word... " >&6; }
11464if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11465 $as_echo_n "(cached) " >&6
2429c060
PB
11466else
11467 if test -n "$DLLTOOL_FOR_TARGET"; then
11468 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11469else
c6b750e1
DJ
11470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471for as_dir in $PATH
11472do
11473 IFS=$as_save_IFS
11474 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11475 for ac_exec_ext in '' $ac_executable_extensions; do
11476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11477 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11479 break 2
11480 fi
11481done
81ecdfbb
RW
11482 done
11483IFS=$as_save_IFS
c6b750e1 11484
2429c060
PB
11485fi
11486fi
c6b750e1 11487DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11488if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11490$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11491else
81ecdfbb
RW
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493$as_echo "no" >&6; }
2429c060 11494fi
c6b750e1 11495
81ecdfbb 11496
2429c060
PB
11497 fi
11498 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11499 done
11500fi
c6b750e1 11501
2429c060
PB
11502if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11503 set dummy dlltool
11504 if test $build = $target ; then
11505 DLLTOOL_FOR_TARGET="$2"
11506 else
11507 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11508 fi
d3f5afc4
MS
11509else
11510 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11511fi
11512
3a35eeb3
PB
11513else
11514 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11515fi
11516
11517
11518
11519
11520if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11521 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11523$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11524 if test -x $with_build_time_tools/ld; then
11525 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11526 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11528$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11529 else
81ecdfbb
RW
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531$as_echo "no" >&6; }
3a35eeb3 11532 fi
2429c060
PB
11533 elif test $build != $host && test $have_gcc_for_target = yes; then
11534 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11535 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11536 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11537 fi
11538fi
c6b750e1 11539if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11540 # Extract the first word of "ld", so it can be a program name with args.
11541set dummy ld; ac_word=$2
81ecdfbb
RW
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11543$as_echo_n "checking for $ac_word... " >&6; }
11544if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11545 $as_echo_n "(cached) " >&6
2429c060 11546else
c6b750e1
DJ
11547 case $LD_FOR_TARGET in
11548 [\\/]* | ?:[\\/]*)
2429c060
PB
11549 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11550 ;;
2429c060 11551 *)
c6b750e1
DJ
11552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11553for as_dir in $gcc_cv_tool_dirs
11554do
11555 IFS=$as_save_IFS
11556 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11557 for ac_exec_ext in '' $ac_executable_extensions; do
11558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11559 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11561 break 2
11562 fi
11563done
81ecdfbb
RW
11564 done
11565IFS=$as_save_IFS
c6b750e1 11566
2429c060
PB
11567 ;;
11568esac
11569fi
c6b750e1 11570LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11571if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11573$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11574else
81ecdfbb
RW
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576$as_echo "no" >&6; }
2429c060
PB
11577fi
11578
81ecdfbb 11579
2429c060
PB
11580fi
11581if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11582
11583
11584if test -n "$LD_FOR_TARGET"; then
11585 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11586elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11587 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11588fi
11589
11590if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11591 for ncn_progname in ld; do
11592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11593set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11595$as_echo_n "checking for $ac_word... " >&6; }
11596if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11597 $as_echo_n "(cached) " >&6
9a819804
AO
11598else
11599 if test -n "$LD_FOR_TARGET"; then
11600 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11601else
11602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11603for as_dir in $PATH
11604do
11605 IFS=$as_save_IFS
11606 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11607 for ac_exec_ext in '' $ac_executable_extensions; do
11608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11609 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11611 break 2
11612 fi
11613done
81ecdfbb
RW
11614 done
11615IFS=$as_save_IFS
9a819804
AO
11616
11617fi
11618fi
11619LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11620if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11622$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11623else
81ecdfbb
RW
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11625$as_echo "no" >&6; }
9a819804
AO
11626fi
11627
81ecdfbb 11628
9a819804
AO
11629 done
11630fi
11631
11632if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11633 for ncn_progname in ld; do
81ecdfbb
RW
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11635$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11636 if test -x $with_build_time_tools/${ncn_progname}; then
11637 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11639$as_echo "yes" >&6; }
2429c060
PB
11640 break
11641 else
81ecdfbb
RW
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643$as_echo "no" >&6; }
2429c060
PB
11644 fi
11645 done
11646fi
11647
11648if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11649 for ncn_progname in ld; do
11650 if test -n "$ncn_target_tool_prefix"; then
11651 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11652set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11654$as_echo_n "checking for $ac_word... " >&6; }
11655if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11656 $as_echo_n "(cached) " >&6
2429c060
PB
11657else
11658 if test -n "$LD_FOR_TARGET"; then
11659 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11660else
c6b750e1
DJ
11661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662for as_dir in $PATH
11663do
11664 IFS=$as_save_IFS
11665 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11666 for ac_exec_ext in '' $ac_executable_extensions; do
11667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11668 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11670 break 2
11671 fi
11672done
81ecdfbb
RW
11673 done
11674IFS=$as_save_IFS
c6b750e1 11675
2429c060
PB
11676fi
11677fi
c6b750e1 11678LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11679if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11681$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11682else
81ecdfbb
RW
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684$as_echo "no" >&6; }
2429c060
PB
11685fi
11686
81ecdfbb 11687
2429c060
PB
11688 fi
11689 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11691set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693$as_echo_n "checking for $ac_word... " >&6; }
11694if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11695 $as_echo_n "(cached) " >&6
2429c060
PB
11696else
11697 if test -n "$LD_FOR_TARGET"; then
11698 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11699else
c6b750e1
DJ
11700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701for as_dir in $PATH
11702do
11703 IFS=$as_save_IFS
11704 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11705 for ac_exec_ext in '' $ac_executable_extensions; do
11706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11707 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11709 break 2
11710 fi
11711done
81ecdfbb
RW
11712 done
11713IFS=$as_save_IFS
c6b750e1 11714
2429c060
PB
11715fi
11716fi
c6b750e1 11717LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11718if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11720$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11721else
81ecdfbb
RW
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723$as_echo "no" >&6; }
2429c060 11724fi
c6b750e1 11725
81ecdfbb 11726
2429c060
PB
11727 fi
11728 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11729 done
11730fi
c6b750e1 11731
2429c060
PB
11732if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11733 set dummy ld
11734 if test $build = $target ; then
11735 LD_FOR_TARGET="$2"
11736 else
11737 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11738 fi
d3f5afc4
MS
11739else
11740 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11741fi
11742
3a35eeb3
PB
11743else
11744 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11745fi
11746
11747
11748
11749
11750if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11751 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11753$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11754 if test -x $with_build_time_tools/lipo; then
11755 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11756 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11758$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11759 else
81ecdfbb
RW
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761$as_echo "no" >&6; }
3a35eeb3 11762 fi
2429c060
PB
11763 elif test $build != $host && test $have_gcc_for_target = yes; then
11764 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11765 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11766 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11767 fi
11768fi
9a819804
AO
11769if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11770 # Extract the first word of "lipo", so it can be a program name with args.
11771set dummy lipo; ac_word=$2
81ecdfbb
RW
11772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11773$as_echo_n "checking for $ac_word... " >&6; }
11774if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11775 $as_echo_n "(cached) " >&6
9a819804
AO
11776else
11777 case $LIPO_FOR_TARGET in
11778 [\\/]* | ?:[\\/]*)
11779 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11780 ;;
11781 *)
11782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11783for as_dir in $gcc_cv_tool_dirs
11784do
11785 IFS=$as_save_IFS
11786 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11787 for ac_exec_ext in '' $ac_executable_extensions; do
11788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11789 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11791 break 2
11792 fi
11793done
81ecdfbb
RW
11794 done
11795IFS=$as_save_IFS
9a819804
AO
11796
11797 ;;
11798esac
11799fi
11800LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11801if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11803$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11804else
81ecdfbb
RW
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806$as_echo "no" >&6; }
9a819804
AO
11807fi
11808
81ecdfbb 11809
9a819804
AO
11810fi
11811if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11812
11813
11814if test -n "$LIPO_FOR_TARGET"; then
11815 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11816elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11817 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11818fi
11819
11820if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11821 for ncn_progname in lipo; do
11822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11823set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825$as_echo_n "checking for $ac_word... " >&6; }
11826if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11827 $as_echo_n "(cached) " >&6
2429c060 11828else
9a819804
AO
11829 if test -n "$LIPO_FOR_TARGET"; then
11830 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11831else
11832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833for as_dir in $PATH
c6b750e1
DJ
11834do
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11839 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11841 break 2
11842 fi
11843done
81ecdfbb
RW
11844 done
11845IFS=$as_save_IFS
c6b750e1 11846
2429c060 11847fi
9a819804
AO
11848fi
11849LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11850if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11852$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11853else
81ecdfbb
RW
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855$as_echo "no" >&6; }
2429c060
PB
11856fi
11857
81ecdfbb 11858
9a819804 11859 done
2429c060 11860fi
9a819804
AO
11861
11862if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11863 for ncn_progname in lipo; do
81ecdfbb
RW
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11865$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11866 if test -x $with_build_time_tools/${ncn_progname}; then
11867 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11869$as_echo "yes" >&6; }
2429c060
PB
11870 break
11871 else
81ecdfbb
RW
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873$as_echo "no" >&6; }
2429c060
PB
11874 fi
11875 done
11876fi
11877
11878if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11879 for ncn_progname in lipo; do
11880 if test -n "$ncn_target_tool_prefix"; then
11881 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11882set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11884$as_echo_n "checking for $ac_word... " >&6; }
11885if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11886 $as_echo_n "(cached) " >&6
2429c060
PB
11887else
11888 if test -n "$LIPO_FOR_TARGET"; then
11889 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11890else
c6b750e1
DJ
11891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892for as_dir in $PATH
11893do
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11898 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11900 break 2
11901 fi
11902done
81ecdfbb
RW
11903 done
11904IFS=$as_save_IFS
c6b750e1 11905
2429c060
PB
11906fi
11907fi
c6b750e1 11908LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11909if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11911$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11912else
81ecdfbb
RW
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914$as_echo "no" >&6; }
2429c060
PB
11915fi
11916
81ecdfbb 11917
2429c060
PB
11918 fi
11919 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11921set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11923$as_echo_n "checking for $ac_word... " >&6; }
11924if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
2429c060
PB
11926else
11927 if test -n "$LIPO_FOR_TARGET"; then
11928 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11929else
c6b750e1
DJ
11930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11931for as_dir in $PATH
11932do
11933 IFS=$as_save_IFS
11934 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11935 for ac_exec_ext in '' $ac_executable_extensions; do
11936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11937 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11939 break 2
11940 fi
11941done
81ecdfbb
RW
11942 done
11943IFS=$as_save_IFS
c6b750e1 11944
2429c060
PB
11945fi
11946fi
c6b750e1 11947LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11948if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11950$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11951else
81ecdfbb
RW
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11953$as_echo "no" >&6; }
2429c060 11954fi
c6b750e1 11955
81ecdfbb 11956
2429c060
PB
11957 fi
11958 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11959 done
11960fi
c6b750e1 11961
2429c060
PB
11962if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11963 set dummy lipo
11964 if test $build = $target ; then
11965 LIPO_FOR_TARGET="$2"
11966 else
11967 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11968 fi
d3f5afc4
MS
11969else
11970 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11971fi
11972
3a35eeb3
PB
11973else
11974 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11975fi
11976
11977
11978
11979
11980if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11981 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11983$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11984 if test -x $with_build_time_tools/nm; then
11985 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11986 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11988$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11989 else
81ecdfbb
RW
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991$as_echo "no" >&6; }
3a35eeb3 11992 fi
2429c060
PB
11993 elif test $build != $host && test $have_gcc_for_target = yes; then
11994 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11995 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11996 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11997 fi
11998fi
c6b750e1 11999if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12000 # Extract the first word of "nm", so it can be a program name with args.
12001set dummy nm; ac_word=$2
81ecdfbb
RW
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12003$as_echo_n "checking for $ac_word... " >&6; }
12004if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12005 $as_echo_n "(cached) " >&6
2429c060 12006else
c6b750e1
DJ
12007 case $NM_FOR_TARGET in
12008 [\\/]* | ?:[\\/]*)
2429c060
PB
12009 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12010 ;;
2429c060 12011 *)
c6b750e1
DJ
12012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12013for as_dir in $gcc_cv_tool_dirs
12014do
12015 IFS=$as_save_IFS
12016 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12017 for ac_exec_ext in '' $ac_executable_extensions; do
12018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12019 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12021 break 2
12022 fi
12023done
81ecdfbb
RW
12024 done
12025IFS=$as_save_IFS
c6b750e1 12026
2429c060
PB
12027 ;;
12028esac
12029fi
c6b750e1 12030NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12031if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12033$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12034else
81ecdfbb
RW
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036$as_echo "no" >&6; }
2429c060
PB
12037fi
12038
81ecdfbb 12039
2429c060
PB
12040fi
12041if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12042
12043
12044if test -n "$NM_FOR_TARGET"; then
12045 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12046elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12047 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12048fi
12049
12050if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12051 for ncn_progname in nm; do
12052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12053set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12055$as_echo_n "checking for $ac_word... " >&6; }
12056if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
9a819804
AO
12058else
12059 if test -n "$NM_FOR_TARGET"; then
12060 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12061else
12062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12063for as_dir in $PATH
12064do
12065 IFS=$as_save_IFS
12066 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12067 for ac_exec_ext in '' $ac_executable_extensions; do
12068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12069 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12071 break 2
12072 fi
12073done
81ecdfbb
RW
12074 done
12075IFS=$as_save_IFS
9a819804
AO
12076
12077fi
12078fi
12079NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12080if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12082$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12083else
81ecdfbb
RW
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085$as_echo "no" >&6; }
9a819804
AO
12086fi
12087
81ecdfbb 12088
9a819804
AO
12089 done
12090fi
12091
12092if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12093 for ncn_progname in nm; do
81ecdfbb
RW
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12095$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12096 if test -x $with_build_time_tools/${ncn_progname}; then
12097 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12099$as_echo "yes" >&6; }
2429c060
PB
12100 break
12101 else
81ecdfbb
RW
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103$as_echo "no" >&6; }
2429c060
PB
12104 fi
12105 done
12106fi
12107
12108if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12109 for ncn_progname in nm; do
12110 if test -n "$ncn_target_tool_prefix"; then
12111 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12112set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12114$as_echo_n "checking for $ac_word... " >&6; }
12115if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12116 $as_echo_n "(cached) " >&6
859789af 12117else
55db4b87
PB
12118 if test -n "$NM_FOR_TARGET"; then
12119 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12120else
c6b750e1
DJ
12121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122for as_dir in $PATH
12123do
12124 IFS=$as_save_IFS
12125 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12128 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12130 break 2
12131 fi
12132done
81ecdfbb
RW
12133 done
12134IFS=$as_save_IFS
c6b750e1 12135
859789af
AC
12136fi
12137fi
c6b750e1 12138NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12139if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12141$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12142else
81ecdfbb
RW
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144$as_echo "no" >&6; }
859789af
AC
12145fi
12146
81ecdfbb 12147
2429c060
PB
12148 fi
12149 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12151set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12153$as_echo_n "checking for $ac_word... " >&6; }
12154if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12155 $as_echo_n "(cached) " >&6
859789af 12156else
05cbd757
PB
12157 if test -n "$NM_FOR_TARGET"; then
12158 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12159else
c6b750e1
DJ
12160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161for as_dir in $PATH
12162do
12163 IFS=$as_save_IFS
12164 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12165 for ac_exec_ext in '' $ac_executable_extensions; do
12166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12167 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12169 break 2
12170 fi
12171done
81ecdfbb
RW
12172 done
12173IFS=$as_save_IFS
c6b750e1 12174
859789af
AC
12175fi
12176fi
c6b750e1 12177NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12178if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12180$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12181else
81ecdfbb
RW
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183$as_echo "no" >&6; }
859789af 12184fi
c6b750e1 12185
81ecdfbb 12186
2429c060
PB
12187 fi
12188 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12189 done
12190fi
c6b750e1 12191
05cbd757
PB
12192if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12193 set dummy nm
12194 if test $build = $target ; then
12195 NM_FOR_TARGET="$2"
859789af 12196 else
05cbd757 12197 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12198 fi
d3f5afc4
MS
12199else
12200 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12201fi
12202
3a35eeb3
PB
12203else
12204 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12205fi
12206
12207
12208
12209
12210if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12211 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12213$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12214 if test -x $with_build_time_tools/objdump; then
12215 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12216 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12218$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12219 else
81ecdfbb
RW
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12221$as_echo "no" >&6; }
3a35eeb3 12222 fi
2429c060
PB
12223 elif test $build != $host && test $have_gcc_for_target = yes; then
12224 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12225 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12226 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12227 fi
12228fi
c6b750e1 12229if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12230 # Extract the first word of "objdump", so it can be a program name with args.
12231set dummy objdump; ac_word=$2
81ecdfbb
RW
12232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12233$as_echo_n "checking for $ac_word... " >&6; }
12234if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
2429c060 12236else
c6b750e1
DJ
12237 case $OBJDUMP_FOR_TARGET in
12238 [\\/]* | ?:[\\/]*)
2429c060
PB
12239 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12240 ;;
2429c060 12241 *)
c6b750e1
DJ
12242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243for as_dir in $gcc_cv_tool_dirs
12244do
12245 IFS=$as_save_IFS
12246 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12247 for ac_exec_ext in '' $ac_executable_extensions; do
12248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12249 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12251 break 2
12252 fi
12253done
81ecdfbb
RW
12254 done
12255IFS=$as_save_IFS
c6b750e1 12256
2429c060
PB
12257 ;;
12258esac
12259fi
c6b750e1 12260OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12261if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12263$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12264else
81ecdfbb
RW
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266$as_echo "no" >&6; }
2429c060
PB
12267fi
12268
81ecdfbb 12269
2429c060
PB
12270fi
12271if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12272
12273
12274if test -n "$OBJDUMP_FOR_TARGET"; then
12275 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12276elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12277 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12278fi
12279
12280if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12281 for ncn_progname in objdump; do
12282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12283set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285$as_echo_n "checking for $ac_word... " >&6; }
12286if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12287 $as_echo_n "(cached) " >&6
9a819804
AO
12288else
12289 if test -n "$OBJDUMP_FOR_TARGET"; then
12290 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12291else
12292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293for as_dir in $PATH
12294do
12295 IFS=$as_save_IFS
12296 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12297 for ac_exec_ext in '' $ac_executable_extensions; do
12298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12299 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12301 break 2
12302 fi
12303done
81ecdfbb
RW
12304 done
12305IFS=$as_save_IFS
9a819804
AO
12306
12307fi
12308fi
12309OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12310if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12312$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12313else
81ecdfbb
RW
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315$as_echo "no" >&6; }
9a819804
AO
12316fi
12317
81ecdfbb 12318
9a819804
AO
12319 done
12320fi
12321
12322if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12323 for ncn_progname in objdump; do
81ecdfbb
RW
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12325$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12326 if test -x $with_build_time_tools/${ncn_progname}; then
12327 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12329$as_echo "yes" >&6; }
2429c060
PB
12330 break
12331 else
81ecdfbb
RW
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333$as_echo "no" >&6; }
2429c060
PB
12334 fi
12335 done
12336fi
12337
12338if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12339 for ncn_progname in objdump; do
12340 if test -n "$ncn_target_tool_prefix"; then
12341 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12342set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344$as_echo_n "checking for $ac_word... " >&6; }
12345if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12346 $as_echo_n "(cached) " >&6
5ae72758
DJ
12347else
12348 if test -n "$OBJDUMP_FOR_TARGET"; then
12349 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12350else
c6b750e1
DJ
12351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12352for as_dir in $PATH
12353do
12354 IFS=$as_save_IFS
12355 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12356 for ac_exec_ext in '' $ac_executable_extensions; do
12357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12358 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12360 break 2
12361 fi
12362done
81ecdfbb
RW
12363 done
12364IFS=$as_save_IFS
c6b750e1 12365
5ae72758
DJ
12366fi
12367fi
c6b750e1 12368OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12369if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12371$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12372else
81ecdfbb
RW
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374$as_echo "no" >&6; }
5ae72758
DJ
12375fi
12376
81ecdfbb 12377
2429c060
PB
12378 fi
12379 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12381set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12383$as_echo_n "checking for $ac_word... " >&6; }
12384if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12385 $as_echo_n "(cached) " >&6
5ae72758
DJ
12386else
12387 if test -n "$OBJDUMP_FOR_TARGET"; then
12388 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12389else
c6b750e1
DJ
12390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12391for as_dir in $PATH
12392do
12393 IFS=$as_save_IFS
12394 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12395 for ac_exec_ext in '' $ac_executable_extensions; do
12396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12397 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12399 break 2
12400 fi
12401done
81ecdfbb
RW
12402 done
12403IFS=$as_save_IFS
c6b750e1 12404
5ae72758
DJ
12405fi
12406fi
c6b750e1 12407OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12408if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12410$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12411else
81ecdfbb
RW
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413$as_echo "no" >&6; }
5ae72758 12414fi
c6b750e1 12415
81ecdfbb 12416
2429c060
PB
12417 fi
12418 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12419 done
12420fi
c6b750e1 12421
5ae72758
DJ
12422if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12423 set dummy objdump
12424 if test $build = $target ; then
12425 OBJDUMP_FOR_TARGET="$2"
12426 else
12427 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12428 fi
d3f5afc4
MS
12429else
12430 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12431fi
12432
3a35eeb3
PB
12433else
12434 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12435fi
12436
12437
12438
12439
12440if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12441 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12443$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12444 if test -x $with_build_time_tools/ranlib; then
12445 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12446 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12448$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12449 else
81ecdfbb
RW
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12451$as_echo "no" >&6; }
3a35eeb3 12452 fi
2429c060
PB
12453 elif test $build != $host && test $have_gcc_for_target = yes; then
12454 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12455 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12456 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12457 fi
12458fi
c6b750e1 12459if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12460 # Extract the first word of "ranlib", so it can be a program name with args.
12461set dummy ranlib; ac_word=$2
81ecdfbb
RW
12462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12463$as_echo_n "checking for $ac_word... " >&6; }
12464if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12465 $as_echo_n "(cached) " >&6
2429c060 12466else
c6b750e1
DJ
12467 case $RANLIB_FOR_TARGET in
12468 [\\/]* | ?:[\\/]*)
2429c060
PB
12469 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12470 ;;
2429c060 12471 *)
c6b750e1
DJ
12472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473for as_dir in $gcc_cv_tool_dirs
12474do
12475 IFS=$as_save_IFS
12476 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12477 for ac_exec_ext in '' $ac_executable_extensions; do
12478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12479 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12481 break 2
12482 fi
12483done
81ecdfbb
RW
12484 done
12485IFS=$as_save_IFS
c6b750e1 12486
2429c060
PB
12487 ;;
12488esac
12489fi
c6b750e1 12490RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12491if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12493$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12494else
81ecdfbb
RW
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496$as_echo "no" >&6; }
2429c060
PB
12497fi
12498
81ecdfbb 12499
2429c060
PB
12500fi
12501if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12502
12503
12504if test -n "$RANLIB_FOR_TARGET"; then
12505 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12506elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12507 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12508fi
12509
12510if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12511 for ncn_progname in ranlib; do
12512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12513set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515$as_echo_n "checking for $ac_word... " >&6; }
12516if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12517 $as_echo_n "(cached) " >&6
9a819804
AO
12518else
12519 if test -n "$RANLIB_FOR_TARGET"; then
12520 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12521else
12522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523for as_dir in $PATH
12524do
12525 IFS=$as_save_IFS
12526 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12527 for ac_exec_ext in '' $ac_executable_extensions; do
12528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12529 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12531 break 2
12532 fi
12533done
81ecdfbb
RW
12534 done
12535IFS=$as_save_IFS
9a819804
AO
12536
12537fi
12538fi
12539RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12540if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12542$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12543else
81ecdfbb
RW
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545$as_echo "no" >&6; }
9a819804
AO
12546fi
12547
81ecdfbb 12548
9a819804
AO
12549 done
12550fi
12551
12552if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12553 for ncn_progname in ranlib; do
81ecdfbb
RW
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12555$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12556 if test -x $with_build_time_tools/${ncn_progname}; then
12557 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12559$as_echo "yes" >&6; }
2429c060
PB
12560 break
12561 else
81ecdfbb
RW
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563$as_echo "no" >&6; }
2429c060
PB
12564 fi
12565 done
12566fi
12567
12568if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12569 for ncn_progname in ranlib; do
12570 if test -n "$ncn_target_tool_prefix"; then
12571 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12572set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12574$as_echo_n "checking for $ac_word... " >&6; }
12575if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12576 $as_echo_n "(cached) " >&6
859789af 12577else
55db4b87
PB
12578 if test -n "$RANLIB_FOR_TARGET"; then
12579 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12580else
c6b750e1
DJ
12581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12582for as_dir in $PATH
12583do
12584 IFS=$as_save_IFS
12585 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12586 for ac_exec_ext in '' $ac_executable_extensions; do
12587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12588 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12590 break 2
12591 fi
12592done
81ecdfbb
RW
12593 done
12594IFS=$as_save_IFS
c6b750e1 12595
859789af
AC
12596fi
12597fi
c6b750e1 12598RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12599if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12601$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12602else
81ecdfbb
RW
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604$as_echo "no" >&6; }
859789af
AC
12605fi
12606
81ecdfbb 12607
2429c060
PB
12608 fi
12609 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12611set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12613$as_echo_n "checking for $ac_word... " >&6; }
12614if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12615 $as_echo_n "(cached) " >&6
859789af 12616else
05cbd757
PB
12617 if test -n "$RANLIB_FOR_TARGET"; then
12618 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12619else
c6b750e1
DJ
12620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12621for as_dir in $PATH
12622do
12623 IFS=$as_save_IFS
12624 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12625 for ac_exec_ext in '' $ac_executable_extensions; do
12626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12627 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12629 break 2
12630 fi
12631done
81ecdfbb
RW
12632 done
12633IFS=$as_save_IFS
c6b750e1 12634
859789af
AC
12635fi
12636fi
c6b750e1 12637RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12638if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12640$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12641else
81ecdfbb
RW
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643$as_echo "no" >&6; }
859789af 12644fi
c6b750e1 12645
81ecdfbb 12646
2429c060
PB
12647 fi
12648 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12649 done
12650fi
c6b750e1 12651
2429c060
PB
12652if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12653 set dummy ranlib
12654 if test $build = $target ; then
12655 RANLIB_FOR_TARGET="$2"
12656 else
12657 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12658 fi
d3f5afc4
MS
12659else
12660 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12661fi
05cbd757 12662
3a35eeb3
PB
12663else
12664 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12665fi
12666
2429c060
PB
12667
12668
12669
b121d7d4
DD
12670if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12671 if test -n "$with_build_time_tools"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12673$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12674 if test -x $with_build_time_tools/readelf; then
12675 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12676 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12678$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12679 else
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681$as_echo "no" >&6; }
12682 fi
12683 elif test $build != $host && test $have_gcc_for_target = yes; then
12684 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12685 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12686 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12687 fi
12688fi
12689if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12690 # Extract the first word of "readelf", so it can be a program name with args.
12691set dummy readelf; ac_word=$2
12692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693$as_echo_n "checking for $ac_word... " >&6; }
12694if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12695 $as_echo_n "(cached) " >&6
12696else
12697 case $READELF_FOR_TARGET in
12698 [\\/]* | ?:[\\/]*)
12699 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12700 ;;
12701 *)
12702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12703for as_dir in $gcc_cv_tool_dirs
12704do
12705 IFS=$as_save_IFS
12706 test -z "$as_dir" && as_dir=.
12707 for ac_exec_ext in '' $ac_executable_extensions; do
12708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12709 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12711 break 2
12712 fi
12713done
12714 done
12715IFS=$as_save_IFS
12716
12717 ;;
12718esac
12719fi
12720READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12721if test -n "$READELF_FOR_TARGET"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12723$as_echo "$READELF_FOR_TARGET" >&6; }
12724else
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726$as_echo "no" >&6; }
12727fi
12728
12729
12730fi
12731if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12732
12733
12734if test -n "$READELF_FOR_TARGET"; then
12735 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12736elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12737 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12738fi
12739
12740if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12741 for ncn_progname in readelf; do
12742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12743set dummy ${ncn_progname}; ac_word=$2
12744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12745$as_echo_n "checking for $ac_word... " >&6; }
12746if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12747 $as_echo_n "(cached) " >&6
12748else
12749 if test -n "$READELF_FOR_TARGET"; then
12750 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12751else
12752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753for as_dir in $PATH
12754do
12755 IFS=$as_save_IFS
12756 test -z "$as_dir" && as_dir=.
12757 for ac_exec_ext in '' $ac_executable_extensions; do
12758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12759 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12761 break 2
12762 fi
12763done
12764 done
12765IFS=$as_save_IFS
12766
12767fi
12768fi
12769READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12770if test -n "$READELF_FOR_TARGET"; then
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12772$as_echo "$READELF_FOR_TARGET" >&6; }
12773else
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775$as_echo "no" >&6; }
12776fi
12777
12778
12779 done
12780fi
12781
12782if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12783 for ncn_progname in readelf; do
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12785$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12786 if test -x $with_build_time_tools/${ncn_progname}; then
12787 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12789$as_echo "yes" >&6; }
12790 break
12791 else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793$as_echo "no" >&6; }
12794 fi
12795 done
12796fi
12797
12798if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12799 for ncn_progname in readelf; do
12800 if test -n "$ncn_target_tool_prefix"; then
12801 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12802set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12804$as_echo_n "checking for $ac_word... " >&6; }
12805if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12806 $as_echo_n "(cached) " >&6
12807else
12808 if test -n "$READELF_FOR_TARGET"; then
12809 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12810else
12811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812for as_dir in $PATH
12813do
12814 IFS=$as_save_IFS
12815 test -z "$as_dir" && as_dir=.
12816 for ac_exec_ext in '' $ac_executable_extensions; do
12817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12818 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12820 break 2
12821 fi
12822done
12823 done
12824IFS=$as_save_IFS
12825
12826fi
12827fi
12828READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12829if test -n "$READELF_FOR_TARGET"; then
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12831$as_echo "$READELF_FOR_TARGET" >&6; }
12832else
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834$as_echo "no" >&6; }
12835fi
12836
12837
12838 fi
12839 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12841set dummy ${ncn_progname}; ac_word=$2
12842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12843$as_echo_n "checking for $ac_word... " >&6; }
12844if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12845 $as_echo_n "(cached) " >&6
12846else
12847 if test -n "$READELF_FOR_TARGET"; then
12848 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12849else
12850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851for as_dir in $PATH
12852do
12853 IFS=$as_save_IFS
12854 test -z "$as_dir" && as_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12857 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12859 break 2
12860 fi
12861done
12862 done
12863IFS=$as_save_IFS
12864
12865fi
12866fi
12867READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12868if test -n "$READELF_FOR_TARGET"; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12870$as_echo "$READELF_FOR_TARGET" >&6; }
12871else
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873$as_echo "no" >&6; }
12874fi
12875
12876
12877 fi
12878 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12879 done
12880fi
12881
12882if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12883 set dummy readelf
12884 if test $build = $target ; then
12885 READELF_FOR_TARGET="$2"
12886 else
12887 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12888 fi
12889else
12890 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12891fi
12892
12893else
12894 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12895fi
12896
12897
12898
12899
2429c060
PB
12900if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12901 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12903$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12904 if test -x $with_build_time_tools/strip; then
12905 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12906 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12908$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12909 else
81ecdfbb
RW
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911$as_echo "no" >&6; }
3a35eeb3 12912 fi
2429c060
PB
12913 elif test $build != $host && test $have_gcc_for_target = yes; then
12914 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12915 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12916 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12917 fi
12918fi
c6b750e1 12919if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12920 # Extract the first word of "strip", so it can be a program name with args.
12921set dummy strip; ac_word=$2
81ecdfbb
RW
12922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12923$as_echo_n "checking for $ac_word... " >&6; }
12924if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12925 $as_echo_n "(cached) " >&6
2429c060 12926else
c6b750e1
DJ
12927 case $STRIP_FOR_TARGET in
12928 [\\/]* | ?:[\\/]*)
2429c060
PB
12929 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12930 ;;
2429c060 12931 *)
c6b750e1
DJ
12932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12933for as_dir in $gcc_cv_tool_dirs
12934do
12935 IFS=$as_save_IFS
12936 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12937 for ac_exec_ext in '' $ac_executable_extensions; do
12938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12939 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12941 break 2
12942 fi
12943done
81ecdfbb
RW
12944 done
12945IFS=$as_save_IFS
c6b750e1 12946
2429c060
PB
12947 ;;
12948esac
12949fi
c6b750e1 12950STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12951if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12953$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12954else
81ecdfbb
RW
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956$as_echo "no" >&6; }
2429c060
PB
12957fi
12958
81ecdfbb 12959
2429c060
PB
12960fi
12961if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12962
12963
12964if test -n "$STRIP_FOR_TARGET"; then
12965 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12966elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12967 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12968fi
12969
12970if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12971 for ncn_progname in strip; do
12972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12973set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12975$as_echo_n "checking for $ac_word... " >&6; }
12976if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12977 $as_echo_n "(cached) " >&6
9a819804
AO
12978else
12979 if test -n "$STRIP_FOR_TARGET"; then
12980 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12981else
12982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12983for as_dir in $PATH
12984do
12985 IFS=$as_save_IFS
12986 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12987 for ac_exec_ext in '' $ac_executable_extensions; do
12988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12989 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12991 break 2
12992 fi
12993done
81ecdfbb
RW
12994 done
12995IFS=$as_save_IFS
9a819804
AO
12996
12997fi
12998fi
12999STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13000if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13002$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13003else
81ecdfbb
RW
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13005$as_echo "no" >&6; }
9a819804
AO
13006fi
13007
81ecdfbb 13008
9a819804
AO
13009 done
13010fi
13011
13012if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13013 for ncn_progname in strip; do
81ecdfbb
RW
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13015$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13016 if test -x $with_build_time_tools/${ncn_progname}; then
13017 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13019$as_echo "yes" >&6; }
2429c060
PB
13020 break
13021 else
81ecdfbb
RW
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023$as_echo "no" >&6; }
2429c060
PB
13024 fi
13025 done
13026fi
13027
13028if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13029 for ncn_progname in strip; do
13030 if test -n "$ncn_target_tool_prefix"; then
13031 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13032set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13034$as_echo_n "checking for $ac_word... " >&6; }
13035if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13036 $as_echo_n "(cached) " >&6
7e0f7140
GK
13037else
13038 if test -n "$STRIP_FOR_TARGET"; then
13039 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13040else
13041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042for as_dir in $PATH
13043do
13044 IFS=$as_save_IFS
13045 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13046 for ac_exec_ext in '' $ac_executable_extensions; do
13047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13048 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13050 break 2
13051 fi
13052done
81ecdfbb
RW
13053 done
13054IFS=$as_save_IFS
c6b750e1 13055
7e0f7140
GK
13056fi
13057fi
c6b750e1 13058STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13059if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13061$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13062else
81ecdfbb
RW
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13064$as_echo "no" >&6; }
7e0f7140
GK
13065fi
13066
81ecdfbb 13067
2429c060
PB
13068 fi
13069 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13071set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13073$as_echo_n "checking for $ac_word... " >&6; }
13074if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13075 $as_echo_n "(cached) " >&6
7e0f7140
GK
13076else
13077 if test -n "$STRIP_FOR_TARGET"; then
13078 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13079else
c6b750e1
DJ
13080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13081for as_dir in $PATH
13082do
13083 IFS=$as_save_IFS
13084 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13085 for ac_exec_ext in '' $ac_executable_extensions; do
13086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13087 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13089 break 2
13090 fi
13091done
81ecdfbb
RW
13092 done
13093IFS=$as_save_IFS
c6b750e1 13094
7e0f7140
GK
13095fi
13096fi
c6b750e1 13097STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13098if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13100$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13101else
81ecdfbb
RW
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13103$as_echo "no" >&6; }
7e0f7140 13104fi
c6b750e1 13105
81ecdfbb 13106
2429c060
PB
13107 fi
13108 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13109 done
13110fi
c6b750e1 13111
7e0f7140
GK
13112if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13113 set dummy strip
13114 if test $build = $target ; then
13115 STRIP_FOR_TARGET="$2"
13116 else
13117 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13118 fi
d3f5afc4
MS
13119else
13120 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13121fi
13122
3a35eeb3
PB
13123else
13124 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13125fi
13126
13127
13128
13129
13130if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13131 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13133$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13134 if test -x $with_build_time_tools/windres; then
13135 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13136 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13138$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13139 else
81ecdfbb
RW
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141$as_echo "no" >&6; }
3a35eeb3 13142 fi
2429c060
PB
13143 elif test $build != $host && test $have_gcc_for_target = yes; then
13144 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13145 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13146 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13147 fi
13148fi
c6b750e1 13149if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13150 # Extract the first word of "windres", so it can be a program name with args.
13151set dummy windres; ac_word=$2
81ecdfbb
RW
13152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13153$as_echo_n "checking for $ac_word... " >&6; }
13154if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13155 $as_echo_n "(cached) " >&6
2429c060 13156else
c6b750e1
DJ
13157 case $WINDRES_FOR_TARGET in
13158 [\\/]* | ?:[\\/]*)
2429c060
PB
13159 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13160 ;;
2429c060 13161 *)
c6b750e1
DJ
13162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163for as_dir in $gcc_cv_tool_dirs
13164do
13165 IFS=$as_save_IFS
13166 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13167 for ac_exec_ext in '' $ac_executable_extensions; do
13168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13169 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13171 break 2
13172 fi
13173done
81ecdfbb
RW
13174 done
13175IFS=$as_save_IFS
c6b750e1 13176
2429c060
PB
13177 ;;
13178esac
13179fi
c6b750e1 13180WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13181if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13183$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13184else
81ecdfbb
RW
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186$as_echo "no" >&6; }
2429c060
PB
13187fi
13188
81ecdfbb 13189
2429c060
PB
13190fi
13191if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13192
13193
13194if test -n "$WINDRES_FOR_TARGET"; then
13195 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13196elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13197 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13198fi
13199
13200if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13201 for ncn_progname in windres; do
13202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13203set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205$as_echo_n "checking for $ac_word... " >&6; }
13206if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13207 $as_echo_n "(cached) " >&6
9a819804
AO
13208else
13209 if test -n "$WINDRES_FOR_TARGET"; then
13210 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13211else
13212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13213for as_dir in $PATH
13214do
13215 IFS=$as_save_IFS
13216 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13217 for ac_exec_ext in '' $ac_executable_extensions; do
13218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13219 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13221 break 2
13222 fi
13223done
81ecdfbb
RW
13224 done
13225IFS=$as_save_IFS
9a819804
AO
13226
13227fi
13228fi
13229WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13230if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13232$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13233else
81ecdfbb
RW
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13235$as_echo "no" >&6; }
9a819804
AO
13236fi
13237
81ecdfbb 13238
9a819804
AO
13239 done
13240fi
13241
13242if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13243 for ncn_progname in windres; do
81ecdfbb
RW
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13245$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13246 if test -x $with_build_time_tools/${ncn_progname}; then
13247 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13249$as_echo "yes" >&6; }
2429c060
PB
13250 break
13251 else
81ecdfbb
RW
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253$as_echo "no" >&6; }
2429c060
PB
13254 fi
13255 done
13256fi
13257
13258if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13259 for ncn_progname in windres; do
13260 if test -n "$ncn_target_tool_prefix"; then
13261 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13262set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13264$as_echo_n "checking for $ac_word... " >&6; }
13265if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13266 $as_echo_n "(cached) " >&6
859789af 13267else
55db4b87
PB
13268 if test -n "$WINDRES_FOR_TARGET"; then
13269 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13270else
c6b750e1
DJ
13271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272for as_dir in $PATH
13273do
13274 IFS=$as_save_IFS
13275 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13276 for ac_exec_ext in '' $ac_executable_extensions; do
13277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13278 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13280 break 2
13281 fi
13282done
81ecdfbb
RW
13283 done
13284IFS=$as_save_IFS
c6b750e1 13285
859789af
AC
13286fi
13287fi
c6b750e1 13288WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13289if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13291$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13292else
81ecdfbb
RW
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294$as_echo "no" >&6; }
859789af
AC
13295fi
13296
81ecdfbb 13297
2429c060
PB
13298 fi
13299 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13301set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13303$as_echo_n "checking for $ac_word... " >&6; }
13304if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13305 $as_echo_n "(cached) " >&6
859789af 13306else
05cbd757
PB
13307 if test -n "$WINDRES_FOR_TARGET"; then
13308 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13309else
c6b750e1
DJ
13310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13311for as_dir in $PATH
13312do
13313 IFS=$as_save_IFS
13314 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13315 for ac_exec_ext in '' $ac_executable_extensions; do
13316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13317 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13319 break 2
13320 fi
13321done
81ecdfbb
RW
13322 done
13323IFS=$as_save_IFS
c6b750e1 13324
859789af
AC
13325fi
13326fi
c6b750e1 13327WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13328if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13330$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13331else
81ecdfbb
RW
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333$as_echo "no" >&6; }
859789af 13334fi
c6b750e1 13335
81ecdfbb 13336
2429c060
PB
13337 fi
13338 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13339 done
13340fi
c6b750e1 13341
05cbd757
PB
13342if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13343 set dummy windres
13344 if test $build = $target ; then
13345 WINDRES_FOR_TARGET="$2"
859789af 13346 else
05cbd757 13347 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13348 fi
d3f5afc4
MS
13349else
13350 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13351fi
13352
3a35eeb3
PB
13353else
13354 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13355fi
13356
852e5f18 13357
0c24b341
NC
13358
13359
13360if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13361 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13363$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13364 if test -x $with_build_time_tools/windmc; then
13365 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13366 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13368$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13369 else
81ecdfbb
RW
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13371$as_echo "no" >&6; }
0c24b341
NC
13372 fi
13373 elif test $build != $host && test $have_gcc_for_target = yes; then
13374 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13375 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13376 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13377 fi
13378fi
13379if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13380 # Extract the first word of "windmc", so it can be a program name with args.
13381set dummy windmc; ac_word=$2
81ecdfbb
RW
13382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13383$as_echo_n "checking for $ac_word... " >&6; }
13384if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13385 $as_echo_n "(cached) " >&6
0c24b341
NC
13386else
13387 case $WINDMC_FOR_TARGET in
13388 [\\/]* | ?:[\\/]*)
13389 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13390 ;;
13391 *)
13392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13393for as_dir in $gcc_cv_tool_dirs
13394do
13395 IFS=$as_save_IFS
13396 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13397 for ac_exec_ext in '' $ac_executable_extensions; do
13398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13399 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13401 break 2
13402 fi
13403done
81ecdfbb
RW
13404 done
13405IFS=$as_save_IFS
0c24b341
NC
13406
13407 ;;
13408esac
13409fi
13410WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13411if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13413$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13414else
81ecdfbb
RW
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416$as_echo "no" >&6; }
0c24b341
NC
13417fi
13418
81ecdfbb 13419
0c24b341
NC
13420fi
13421if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13422
13423
13424if test -n "$WINDMC_FOR_TARGET"; then
13425 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13426elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13427 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13428fi
13429
13430if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13431 for ncn_progname in windmc; do
13432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13433set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13435$as_echo_n "checking for $ac_word... " >&6; }
13436if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13437 $as_echo_n "(cached) " >&6
0c24b341
NC
13438else
13439 if test -n "$WINDMC_FOR_TARGET"; then
13440 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13441else
13442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13443for as_dir in $PATH
13444do
13445 IFS=$as_save_IFS
13446 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13447 for ac_exec_ext in '' $ac_executable_extensions; do
13448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13449 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13451 break 2
13452 fi
13453done
81ecdfbb
RW
13454 done
13455IFS=$as_save_IFS
0c24b341
NC
13456
13457fi
13458fi
13459WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13460if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13462$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13463else
81ecdfbb
RW
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465$as_echo "no" >&6; }
0c24b341
NC
13466fi
13467
81ecdfbb 13468
0c24b341
NC
13469 done
13470fi
13471
13472if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13473 for ncn_progname in windmc; do
81ecdfbb
RW
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13475$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13476 if test -x $with_build_time_tools/${ncn_progname}; then
13477 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13479$as_echo "yes" >&6; }
0c24b341
NC
13480 break
13481 else
81ecdfbb
RW
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483$as_echo "no" >&6; }
0c24b341
NC
13484 fi
13485 done
13486fi
13487
13488if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13489 for ncn_progname in windmc; do
13490 if test -n "$ncn_target_tool_prefix"; then
13491 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13492set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13494$as_echo_n "checking for $ac_word... " >&6; }
13495if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13496 $as_echo_n "(cached) " >&6
0c24b341
NC
13497else
13498 if test -n "$WINDMC_FOR_TARGET"; then
13499 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13500else
13501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502for as_dir in $PATH
13503do
13504 IFS=$as_save_IFS
13505 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13506 for ac_exec_ext in '' $ac_executable_extensions; do
13507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13508 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13510 break 2
13511 fi
13512done
81ecdfbb
RW
13513 done
13514IFS=$as_save_IFS
0c24b341
NC
13515
13516fi
13517fi
13518WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13519if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13521$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13522else
81ecdfbb
RW
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13524$as_echo "no" >&6; }
0c24b341
NC
13525fi
13526
81ecdfbb 13527
0c24b341
NC
13528 fi
13529 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13531set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13533$as_echo_n "checking for $ac_word... " >&6; }
13534if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13535 $as_echo_n "(cached) " >&6
0c24b341
NC
13536else
13537 if test -n "$WINDMC_FOR_TARGET"; then
13538 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13539else
13540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13541for as_dir in $PATH
13542do
13543 IFS=$as_save_IFS
13544 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13545 for ac_exec_ext in '' $ac_executable_extensions; do
13546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13547 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13549 break 2
13550 fi
13551done
81ecdfbb
RW
13552 done
13553IFS=$as_save_IFS
0c24b341
NC
13554
13555fi
13556fi
13557WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13558if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13560$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13561else
81ecdfbb
RW
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13563$as_echo "no" >&6; }
0c24b341
NC
13564fi
13565
81ecdfbb 13566
0c24b341
NC
13567 fi
13568 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13569 done
13570fi
13571
13572if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13573 set dummy windmc
13574 if test $build = $target ; then
13575 WINDMC_FOR_TARGET="$2"
13576 else
13577 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13578 fi
13579else
13580 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13581fi
13582
13583else
13584 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13585fi
13586
13587
be01d343
PB
13588RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13589
81ecdfbb
RW
13590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13591$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13592if test "x${build}" != "x${host}" ; then
2429c060
PB
13593 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13594 # We already found the complete path
b8025f34 13595 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13597$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13598 else
13599 # Canadian cross, just use what we found
81ecdfbb
RW
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13601$as_echo "pre-installed" >&6; }
2429c060 13602 fi
be01d343
PB
13603else
13604 ok=yes
13605 case " ${configdirs} " in
13606 *" binutils "*) ;;
13607 *) ok=no ;;
13608 esac
c6b750e1 13609
be01d343
PB
13610 if test $ok = yes; then
13611 # An in-tree tool is available and we can use it
13612 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13614$as_echo "just compiled" >&6; }
2429c060
PB
13615 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13616 # We already found the complete path
b8025f34 13617 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13619$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13620 elif test "x$target" = "x$host"; then
13621 # We can use an host tool
13622 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13624$as_echo "host tool" >&6; }
be01d343
PB
13625 else
13626 # We need a cross tool
81ecdfbb
RW
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13628$as_echo "pre-installed" >&6; }
be01d343
PB
13629 fi
13630fi
4b900473 13631
81ecdfbb
RW
13632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13633$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13634if test "x${build}" != "x${host}" ; then
2429c060
PB
13635 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13636 # We already found the complete path
b8025f34 13637 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13639$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13640 else
13641 # Canadian cross, just use what we found
81ecdfbb
RW
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13643$as_echo "pre-installed" >&6; }
2429c060 13644 fi
be01d343
PB
13645else
13646 ok=yes
13647 case " ${configdirs} " in
13648 *" gas "*) ;;
13649 *) ok=no ;;
13650 esac
c6b750e1 13651
be01d343
PB
13652 if test $ok = yes; then
13653 # An in-tree tool is available and we can use it
13654 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13656$as_echo "just compiled" >&6; }
2429c060
PB
13657 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13658 # We already found the complete path
b8025f34 13659 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13661$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13662 elif test "x$target" = "x$host"; then
13663 # We can use an host tool
13664 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13666$as_echo "host tool" >&6; }
be01d343
PB
13667 else
13668 # We need a cross tool
81ecdfbb
RW
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13670$as_echo "pre-installed" >&6; }
be01d343
PB
13671 fi
13672fi
4b900473 13673
81ecdfbb
RW
13674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13675$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13676if test "x${build}" != "x${host}" ; then
2429c060
PB
13677 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13678 # We already found the complete path
b8025f34 13679 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13681$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13682 else
13683 # Canadian cross, just use what we found
81ecdfbb
RW
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13685$as_echo "pre-installed" >&6; }
2429c060 13686 fi
be01d343
PB
13687else
13688 ok=yes
13689 case " ${configdirs} " in
13690 *" gcc "*) ;;
13691 *) ok=no ;;
13692 esac
c6b750e1 13693
be01d343
PB
13694 if test $ok = yes; then
13695 # An in-tree tool is available and we can use it
13696 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13698$as_echo "just compiled" >&6; }
2429c060
PB
13699 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13700 # We already found the complete path
b8025f34 13701 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13703$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13704 elif test "x$target" = "x$host"; then
13705 # We can use an host tool
13706 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13708$as_echo "host tool" >&6; }
be01d343
PB
13709 else
13710 # We need a cross tool
81ecdfbb
RW
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13712$as_echo "pre-installed" >&6; }
be01d343
PB
13713 fi
13714fi
4b900473 13715
81ecdfbb
RW
13716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13717$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13718if test "x${build}" != "x${host}" ; then
2429c060
PB
13719 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13720 # We already found the complete path
b8025f34 13721 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13723$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13724 else
13725 # Canadian cross, just use what we found
81ecdfbb
RW
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13727$as_echo "pre-installed" >&6; }
2429c060 13728 fi
be01d343
PB
13729else
13730 ok=yes
13731 case " ${configdirs} " in
13732 *" gcc "*) ;;
13733 *) ok=no ;;
13734 esac
13735 case ,${enable_languages}, in
13736 *,c++,*) ;;
13737 *) ok=no ;;
13738 esac
13739 if test $ok = yes; then
13740 # An in-tree tool is available and we can use it
d2489204 13741 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13743$as_echo "just compiled" >&6; }
2429c060
PB
13744 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13745 # We already found the complete path
b8025f34 13746 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13748$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13749 elif test "x$target" = "x$host"; then
13750 # We can use an host tool
13751 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13753$as_echo "host tool" >&6; }
be01d343
PB
13754 else
13755 # We need a cross tool
81ecdfbb
RW
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13757$as_echo "pre-installed" >&6; }
be01d343
PB
13758 fi
13759fi
4b900473 13760
81ecdfbb
RW
13761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13762$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13763if test "x${build}" != "x${host}" ; then
2429c060
PB
13764 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13765 # We already found the complete path
b8025f34 13766 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13768$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13769 else
13770 # Canadian cross, just use what we found
81ecdfbb
RW
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13772$as_echo "pre-installed" >&6; }
2429c060 13773 fi
be01d343
PB
13774else
13775 ok=yes
13776 case " ${configdirs} " in
13777 *" gcc "*) ;;
13778 *) ok=no ;;
13779 esac
13780 case ,${enable_languages}, in
13781 *,c++,*) ;;
13782 *) ok=no ;;
13783 esac
13784 if test $ok = yes; then
13785 # An in-tree tool is available and we can use it
13786 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'
81ecdfbb
RW
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13788$as_echo "just compiled" >&6; }
2429c060
PB
13789 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13790 # We already found the complete path
b8025f34 13791 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13793$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13794 elif test "x$target" = "x$host"; then
13795 # We can use an host tool
13796 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13798$as_echo "host tool" >&6; }
be01d343
PB
13799 else
13800 # We need a cross tool
81ecdfbb
RW
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13802$as_echo "pre-installed" >&6; }
be01d343
PB
13803 fi
13804fi
4b900473 13805
81ecdfbb
RW
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13807$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13808if test "x${build}" != "x${host}" ; then
2429c060
PB
13809 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13810 # We already found the complete path
b8025f34 13811 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13813$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13814 else
13815 # Canadian cross, just use what we found
81ecdfbb
RW
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13817$as_echo "pre-installed" >&6; }
2429c060 13818 fi
be01d343
PB
13819else
13820 ok=yes
13821 case " ${configdirs} " in
13822 *" binutils "*) ;;
13823 *) ok=no ;;
13824 esac
c6b750e1 13825
be01d343
PB
13826 if test $ok = yes; then
13827 # An in-tree tool is available and we can use it
13828 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13830$as_echo "just compiled" >&6; }
2429c060
PB
13831 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13832 # We already found the complete path
b8025f34 13833 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13835$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13836 elif test "x$target" = "x$host"; then
13837 # We can use an host tool
13838 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13840$as_echo "host tool" >&6; }
be01d343
PB
13841 else
13842 # We need a cross tool
81ecdfbb
RW
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13844$as_echo "pre-installed" >&6; }
be01d343
PB
13845 fi
13846fi
4b900473 13847
81ecdfbb
RW
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13849$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13850if test "x${build}" != "x${host}" ; then
2429c060
PB
13851 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13852 # We already found the complete path
b8025f34 13853 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13855$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13856 else
13857 # Canadian cross, just use what we found
81ecdfbb
RW
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13859$as_echo "pre-installed" >&6; }
2429c060 13860 fi
be01d343
PB
13861else
13862 ok=yes
13863 case " ${configdirs} " in
13864 *" gcc "*) ;;
13865 *) ok=no ;;
13866 esac
c6b750e1 13867
be01d343
PB
13868 if test $ok = yes; then
13869 # An in-tree tool is available and we can use it
13870 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13872$as_echo "just compiled" >&6; }
2429c060
PB
13873 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13874 # We already found the complete path
b8025f34 13875 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13877$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13878 elif test "x$target" = "x$host"; then
13879 # We can use an host tool
13880 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13882$as_echo "host tool" >&6; }
be01d343
PB
13883 else
13884 # We need a cross tool
81ecdfbb
RW
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13886$as_echo "pre-installed" >&6; }
be01d343
PB
13887 fi
13888fi
4b900473 13889
81ecdfbb
RW
13890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13891$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13892if test "x${build}" != "x${host}" ; then
2429c060
PB
13893 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13894 # We already found the complete path
b8025f34 13895 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13897$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13898 else
13899 # Canadian cross, just use what we found
81ecdfbb
RW
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13901$as_echo "pre-installed" >&6; }
2429c060 13902 fi
be01d343
PB
13903else
13904 ok=yes
13905 case " ${configdirs} " in
13906 *" gcc "*) ;;
13907 *) ok=no ;;
13908 esac
13909 case ,${enable_languages}, in
13910 *,java,*) ;;
13911 *) ok=no ;;
13912 esac
13913 if test $ok = yes; then
13914 # An in-tree tool is available and we can use it
13915 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13917$as_echo "just compiled" >&6; }
2429c060
PB
13918 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13919 # We already found the complete path
b8025f34 13920 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13922$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13923 elif test "x$target" = "x$host"; then
13924 # We can use an host tool
13925 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13927$as_echo "host tool" >&6; }
be01d343
PB
13928 else
13929 # We need a cross tool
81ecdfbb
RW
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13931$as_echo "pre-installed" >&6; }
be01d343
PB
13932 fi
13933fi
4b900473 13934
81ecdfbb
RW
13935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13936$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13937if test "x${build}" != "x${host}" ; then
2429c060
PB
13938 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13939 # We already found the complete path
b8025f34 13940 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13942$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13943 else
13944 # Canadian cross, just use what we found
81ecdfbb
RW
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13946$as_echo "pre-installed" >&6; }
2429c060 13947 fi
be01d343
PB
13948else
13949 ok=yes
13950 case " ${configdirs} " in
13951 *" gcc "*) ;;
13952 *) ok=no ;;
13953 esac
13954 case ,${enable_languages}, in
13955 *,fortran,*) ;;
13956 *) ok=no ;;
13957 esac
13958 if test $ok = yes; then
13959 # An in-tree tool is available and we can use it
13960 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13962$as_echo "just compiled" >&6; }
2429c060
PB
13963 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13964 # We already found the complete path
b8025f34 13965 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13967$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13968 elif test "x$target" = "x$host"; then
13969 # We can use an host tool
13970 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13972$as_echo "host tool" >&6; }
be01d343
PB
13973 else
13974 # We need a cross tool
81ecdfbb
RW
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13976$as_echo "pre-installed" >&6; }
be01d343
PB
13977 fi
13978fi
4b900473 13979
e552509b
ILT
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13981$as_echo_n "checking where to find the target gccgo... " >&6; }
13982if test "x${build}" != "x${host}" ; then
13983 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13984 # We already found the complete path
13985 ac_dir=`dirname $GOC_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 else
13989 # Canadian cross, just use what we found
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13991$as_echo "pre-installed" >&6; }
13992 fi
13993else
13994 ok=yes
13995 case " ${configdirs} " in
13996 *" gcc "*) ;;
13997 *) ok=no ;;
13998 esac
13999 case ,${enable_languages}, in
14000 *,go,*) ;;
14001 *) ok=no ;;
14002 esac
14003 if test $ok = yes; then
14004 # An in-tree tool is available and we can use it
14005 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14007$as_echo "just compiled" >&6; }
14008 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14009 # We already found the complete path
14010 ac_dir=`dirname $GOC_FOR_TARGET`
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14012$as_echo "pre-installed in $ac_dir" >&6; }
14013 elif test "x$target" = "x$host"; then
14014 # We can use an host tool
14015 GOC_FOR_TARGET='$(GOC)'
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14017$as_echo "host tool" >&6; }
14018 else
14019 # We need a cross tool
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14021$as_echo "pre-installed" >&6; }
14022 fi
14023fi
14024
81ecdfbb
RW
14025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14026$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14027if test "x${build}" != "x${host}" ; then
2429c060
PB
14028 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14029 # We already found the complete path
b8025f34 14030 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14032$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14033 else
14034 # Canadian cross, just use what we found
81ecdfbb
RW
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14036$as_echo "pre-installed" >&6; }
2429c060 14037 fi
be01d343
PB
14038else
14039 ok=yes
14040 case " ${configdirs} " in
14041 *" ld "*) ;;
14042 *) ok=no ;;
14043 esac
c6b750e1 14044
be01d343
PB
14045 if test $ok = yes; then
14046 # An in-tree tool is available and we can use it
14047 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14049$as_echo "just compiled" >&6; }
2429c060
PB
14050 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14051 # We already found the complete path
b8025f34 14052 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14054$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14055 elif test "x$target" = "x$host"; then
14056 # We can use an host tool
14057 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14059$as_echo "host tool" >&6; }
be01d343
PB
14060 else
14061 # We need a cross tool
81ecdfbb
RW
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14063$as_echo "pre-installed" >&6; }
be01d343
PB
14064 fi
14065fi
4b900473 14066
81ecdfbb
RW
14067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14068$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14069if test "x${build}" != "x${host}" ; then
2429c060
PB
14070 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14071 # We already found the complete path
b8025f34 14072 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14074$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14075 else
14076 # Canadian cross, just use what we found
81ecdfbb
RW
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14078$as_echo "pre-installed" >&6; }
2429c060 14079 fi
be01d343 14080else
2429c060
PB
14081 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14082 # We already found the complete path
b8025f34 14083 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14085$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14086 elif test "x$target" = "x$host"; then
be01d343
PB
14087 # We can use an host tool
14088 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14090$as_echo "host tool" >&6; }
be01d343
PB
14091 else
14092 # We need a cross tool
81ecdfbb
RW
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14094$as_echo "pre-installed" >&6; }
be01d343
PB
14095 fi
14096fi
4b900473 14097
81ecdfbb
RW
14098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14099$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14100if test "x${build}" != "x${host}" ; then
2429c060
PB
14101 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14102 # We already found the complete path
b8025f34 14103 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14105$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14106 else
14107 # Canadian cross, just use what we found
81ecdfbb
RW
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14109$as_echo "pre-installed" >&6; }
2429c060 14110 fi
be01d343
PB
14111else
14112 ok=yes
14113 case " ${configdirs} " in
14114 *" binutils "*) ;;
14115 *) ok=no ;;
14116 esac
c6b750e1 14117
be01d343
PB
14118 if test $ok = yes; then
14119 # An in-tree tool is available and we can use it
14120 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14122$as_echo "just compiled" >&6; }
2429c060
PB
14123 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14124 # We already found the complete path
b8025f34 14125 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14127$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14128 elif test "x$target" = "x$host"; then
14129 # We can use an host tool
14130 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14132$as_echo "host tool" >&6; }
be01d343
PB
14133 else
14134 # We need a cross tool
81ecdfbb
RW
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14136$as_echo "pre-installed" >&6; }
be01d343
PB
14137 fi
14138fi
4b900473 14139
81ecdfbb
RW
14140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14141$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14142if test "x${build}" != "x${host}" ; then
2429c060
PB
14143 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14144 # We already found the complete path
b8025f34 14145 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14147$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14148 else
14149 # Canadian cross, just use what we found
81ecdfbb
RW
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14151$as_echo "pre-installed" >&6; }
2429c060 14152 fi
be01d343
PB
14153else
14154 ok=yes
14155 case " ${configdirs} " in
14156 *" binutils "*) ;;
14157 *) ok=no ;;
14158 esac
c6b750e1 14159
be01d343
PB
14160 if test $ok = yes; then
14161 # An in-tree tool is available and we can use it
14162 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14164$as_echo "just compiled" >&6; }
2429c060
PB
14165 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14166 # We already found the complete path
b8025f34 14167 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14169$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14170 elif test "x$target" = "x$host"; then
14171 # We can use an host tool
14172 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14174$as_echo "host tool" >&6; }
be01d343
PB
14175 else
14176 # We need a cross tool
81ecdfbb
RW
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14178$as_echo "pre-installed" >&6; }
be01d343
PB
14179 fi
14180fi
4b900473 14181
81ecdfbb
RW
14182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14183$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14184if test "x${build}" != "x${host}" ; then
2429c060
PB
14185 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14186 # We already found the complete path
b8025f34 14187 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14189$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14190 else
14191 # Canadian cross, just use what we found
81ecdfbb
RW
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14193$as_echo "pre-installed" >&6; }
2429c060 14194 fi
be01d343
PB
14195else
14196 ok=yes
14197 case " ${configdirs} " in
14198 *" binutils "*) ;;
14199 *) ok=no ;;
14200 esac
c6b750e1 14201
be01d343
PB
14202 if test $ok = yes; then
14203 # An in-tree tool is available and we can use it
14204 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14206$as_echo "just compiled" >&6; }
2429c060
PB
14207 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14208 # We already found the complete path
b8025f34 14209 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14211$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14212 elif test "x$target" = "x$host"; then
14213 # We can use an host tool
14214 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14216$as_echo "host tool" >&6; }
be01d343
PB
14217 else
14218 # We need a cross tool
81ecdfbb
RW
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14220$as_echo "pre-installed" >&6; }
be01d343
PB
14221 fi
14222fi
4b900473 14223
b121d7d4
DD
14224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14225$as_echo_n "checking where to find the target readelf... " >&6; }
14226if test "x${build}" != "x${host}" ; then
14227 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14228 # We already found the complete path
14229 ac_dir=`dirname $READELF_FOR_TARGET`
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14231$as_echo "pre-installed in $ac_dir" >&6; }
14232 else
14233 # Canadian cross, just use what we found
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14235$as_echo "pre-installed" >&6; }
14236 fi
14237else
14238 ok=yes
14239 case " ${configdirs} " in
14240 *" binutils "*) ;;
14241 *) ok=no ;;
14242 esac
14243
14244 if test $ok = yes; then
14245 # An in-tree tool is available and we can use it
14246 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14248$as_echo "just compiled" >&6; }
14249 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14250 # We already found the complete path
14251 ac_dir=`dirname $READELF_FOR_TARGET`
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14253$as_echo "pre-installed in $ac_dir" >&6; }
14254 elif test "x$target" = "x$host"; then
14255 # We can use an host tool
14256 READELF_FOR_TARGET='$(READELF)'
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14258$as_echo "host tool" >&6; }
14259 else
14260 # We need a cross tool
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14262$as_echo "pre-installed" >&6; }
14263 fi
14264fi
14265
81ecdfbb
RW
14266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14267$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14268if test "x${build}" != "x${host}" ; then
2429c060
PB
14269 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14270 # We already found the complete path
b8025f34 14271 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14273$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14274 else
14275 # Canadian cross, just use what we found
81ecdfbb
RW
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14277$as_echo "pre-installed" >&6; }
2429c060 14278 fi
be01d343
PB
14279else
14280 ok=yes
14281 case " ${configdirs} " in
14282 *" binutils "*) ;;
14283 *) ok=no ;;
14284 esac
c6b750e1 14285
be01d343
PB
14286 if test $ok = yes; then
14287 # An in-tree tool is available and we can use it
9b980aa1 14288 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14290$as_echo "just compiled" >&6; }
2429c060
PB
14291 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14292 # We already found the complete path
b8025f34 14293 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14295$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14296 elif test "x$target" = "x$host"; then
14297 # We can use an host tool
14298 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14300$as_echo "host tool" >&6; }
be01d343
PB
14301 else
14302 # We need a cross tool
81ecdfbb
RW
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14304$as_echo "pre-installed" >&6; }
be01d343
PB
14305 fi
14306fi
4b900473 14307
81ecdfbb
RW
14308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14309$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14310if test "x${build}" != "x${host}" ; then
2429c060
PB
14311 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14312 # We already found the complete path
b8025f34 14313 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14315$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14316 else
14317 # Canadian cross, just use what we found
81ecdfbb
RW
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14319$as_echo "pre-installed" >&6; }
2429c060 14320 fi
be01d343
PB
14321else
14322 ok=yes
14323 case " ${configdirs} " in
14324 *" binutils "*) ;;
14325 *) ok=no ;;
14326 esac
c6b750e1 14327
be01d343
PB
14328 if test $ok = yes; then
14329 # An in-tree tool is available and we can use it
14330 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14332$as_echo "just compiled" >&6; }
2429c060
PB
14333 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14334 # We already found the complete path
b8025f34 14335 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14337$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14338 elif test "x$target" = "x$host"; then
14339 # We can use an host tool
14340 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14342$as_echo "host tool" >&6; }
be01d343
PB
14343 else
14344 # We need a cross tool
81ecdfbb
RW
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14346$as_echo "pre-installed" >&6; }
be01d343 14347 fi
a0da8069 14348fi
54752a6b 14349
81ecdfbb
RW
14350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14351$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14352if test "x${build}" != "x${host}" ; then
14353 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14354 # We already found the complete path
14355 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14357$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14358 else
14359 # Canadian cross, just use what we found
81ecdfbb
RW
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14361$as_echo "pre-installed" >&6; }
0c24b341
NC
14362 fi
14363else
14364 ok=yes
14365 case " ${configdirs} " in
14366 *" binutils "*) ;;
14367 *) ok=no ;;
14368 esac
14369
14370 if test $ok = yes; then
14371 # An in-tree tool is available and we can use it
14372 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14374$as_echo "just compiled" >&6; }
0c24b341
NC
14375 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14376 # We already found the complete path
14377 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14379$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14380 elif test "x$target" = "x$host"; then
14381 # We can use an host tool
14382 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14384$as_echo "host tool" >&6; }
0c24b341
NC
14385 else
14386 # We need a cross tool
81ecdfbb
RW
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14388$as_echo "pre-installed" >&6; }
0c24b341
NC
14389 fi
14390fi
14391
54752a6b
NN
14392
14393
be01d343 14394
4b900473 14395
a0da8069
NN
14396# Certain tools may need extra flags.
14397AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14398RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14399NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14400
be01d343
PB
14401# When building target libraries, except in a Canadian cross, we use
14402# the same toolchain as the compiler we just built.
14403COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14404COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14405COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14406if test $host = $build; then
14407 case " $configdirs " in
14408 *" gcc "*)
14409 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14410 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14411 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14412 ;;
14413 esac
14414fi
14415
14416
14417
14418
14419
81ecdfbb
RW
14420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14421$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14422# Check whether --enable-maintainer-mode was given.
14423if test "${enable_maintainer_mode+set}" = set; then :
14424 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14425else
14426 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14427fi
14428
14429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14430$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14431
14432
14433if test "$USE_MAINTAINER_MODE" = yes; then
14434 MAINTAINER_MODE_TRUE=
14435 MAINTAINER_MODE_FALSE='#'
14436else
14437 MAINTAINER_MODE_TRUE='#'
14438 MAINTAINER_MODE_FALSE=
c6b750e1 14439fi
3d5e36ae
AO
14440MAINT=$MAINTAINER_MODE_TRUE
14441
1d39f329
NN
14442# ---------------------
14443# GCC bootstrap support
14444# ---------------------
14445
14446# Stage specific cflags for build.
14447stage1_cflags="-g"
14448case $build in
14449 vax-*-*)
14450 case ${GCC} in
14451 yes) stage1_cflags="-g -Wa,-J" ;;
14452 *) stage1_cflags="-g -J" ;;
14453 esac ;;
1d39f329
NN
14454esac
14455
1d89b610 14456
1d39f329 14457
8a0d8a5c 14458# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14459# Check whether --enable-stage1-checking was given.
14460if test "${enable_stage1_checking+set}" = set; then :
14461 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14462else
5566c1fa 14463 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14464 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14465else
5566c1fa 14466 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14467fi
81ecdfbb 14468fi
8a0d8a5c
PB
14469
14470
c6b750e1 14471
81ecdfbb
RW
14472# Enable -Werror in bootstrap stage2 and later.
14473# Check whether --enable-werror was given.
14474if test "${enable_werror+set}" = set; then :
14475 enableval=$enable_werror;
1d39f329 14476else
a0323144 14477 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14478 enable_werror=yes
79fcd0ec
PB
14479else
14480 enable_werror=no
14481fi
81ecdfbb
RW
14482fi
14483
1a6f2dc7
NN
14484case ${enable_werror} in
14485 yes) stage2_werror_flag="--enable-werror-always" ;;
14486 *) stage2_werror_flag="" ;;
1d39f329
NN
14487esac
14488
14489
e8a5fa9c
RW
14490# Specify what files to not compare during bootstrap.
14491
14492compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14493case "$target" in
14494 hppa*64*-*-hpux*) ;;
14495 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
1488e230 14496 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14497esac
14498
14499
81ecdfbb
RW
14500ac_config_files="$ac_config_files Makefile"
14501
c6b750e1 14502cat >confcache <<\_ACEOF
a0da8069
NN
14503# This file is a shell script that caches the results of configure
14504# tests run on this system so they can be shared between configure
c6b750e1
DJ
14505# scripts and configure runs, see configure's option --config-cache.
14506# It is not useful on other systems. If it contains results you don't
14507# want to keep, you may remove or edit it.
a0da8069 14508#
c6b750e1
DJ
14509# config.status only pays attention to the cache file if you give it
14510# the --recheck option to rerun configure.
a0da8069 14511#
c6b750e1
DJ
14512# `ac_cv_env_foo' variables (set or unset) will be overridden when
14513# loading this file, other *unset* `ac_cv_foo' will be assigned the
14514# following values.
14515
14516_ACEOF
14517
a0da8069
NN
14518# The following way of writing the cache mishandles newlines in values,
14519# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14520# So, we kill variables containing newlines.
a0da8069
NN
14521# Ultrix sh set writes to stderr and can't be redirected directly,
14522# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14523(
14524 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14525 eval ac_val=\$$ac_var
14526 case $ac_val in #(
14527 *${as_nl}*)
14528 case $ac_var in #(
14529 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14530$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14531 esac
14532 case $ac_var in #(
14533 _ | IFS | as_nl) ;; #(
14534 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14535 *) { eval $ac_var=; unset $ac_var;} ;;
14536 esac ;;
14537 esac
14538 done
14539
c6b750e1 14540 (set) 2>&1 |
81ecdfbb
RW
14541 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14542 *${as_nl}ac_space=\ *)
14543 # `set' does not quote correctly, so add quotes: double-quote
14544 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14545 sed -n \
14546 "s/'/'\\\\''/g;
14547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14548 ;; #(
c6b750e1
DJ
14549 *)
14550 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14551 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14552 ;;
81ecdfbb
RW
14553 esac |
14554 sort
14555) |
c6b750e1 14556 sed '
81ecdfbb 14557 /^ac_cv_env_/b end
c6b750e1 14558 t clear
81ecdfbb 14559 :clear
c6b750e1
DJ
14560 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14561 t end
81ecdfbb
RW
14562 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14563 :end' >>confcache
14564if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14565 if test -w "$cache_file"; then
14566 test "x$cache_file" != "x/dev/null" &&
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14568$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14569 cat confcache >$cache_file
a0da8069 14570 else
81ecdfbb
RW
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14572$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14573 fi
852e5f18 14574fi
a0da8069 14575rm -f confcache
852e5f18 14576
a0da8069
NN
14577test "x$prefix" = xNONE && prefix=$ac_default_prefix
14578# Let make expand exec_prefix.
14579test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14580
a0da8069
NN
14581# Transform confdefs.h into DEFS.
14582# Protect against shell expansion while executing Makefile rules.
14583# Protect against Makefile macro expansion.
c6b750e1
DJ
14584#
14585# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14586# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14587# look for a macro that doesn't take arguments.
81ecdfbb
RW
14588ac_script='
14589:mline
14590/\\$/{
14591 N
14592 s,\\\n,,
14593 b mline
14594}
c6b750e1 14595t clear
81ecdfbb
RW
14596:clear
14597s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14598t quote
81ecdfbb 14599s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14600t quote
81ecdfbb
RW
14601b any
14602:quote
14603s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14604s/\[/\\&/g
14605s/\]/\\&/g
14606s/\$/$$/g
14607H
14608:any
14609${
14610 g
14611 s/^\n//
14612 s/\n/ /g
14613 p
14614}
14615'
14616DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14617
14618
14619ac_libobjs=
14620ac_ltlibobjs=
14621for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14622 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14623 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14624 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14625 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14626 # will be set to the directory where LIBOBJS objects are built.
14627 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14628 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14629done
14630LIBOBJS=$ac_libobjs
852e5f18 14631
c6b750e1 14632LTLIBOBJS=$ac_ltlibobjs
376a0e54 14633
cac3d6c4 14634
c6b750e1
DJ
14635
14636: ${CONFIG_STATUS=./config.status}
81ecdfbb 14637ac_write_fail=0
c6b750e1
DJ
14638ac_clean_files_save=$ac_clean_files
14639ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14640{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14641$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14642as_write_fail=0
14643cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14644#! $SHELL
14645# Generated by $as_me.
a0da8069 14646# Run this file to recreate the current configuration.
a0da8069 14647# Compiler output produced by configure, useful for debugging
c6b750e1 14648# configure, is in config.log if it exists.
376a0e54 14649
c6b750e1
DJ
14650debug=false
14651ac_cs_recheck=false
14652ac_cs_silent=false
c6b750e1 14653
81ecdfbb
RW
14654SHELL=\${CONFIG_SHELL-$SHELL}
14655export SHELL
14656_ASEOF
14657cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14658## -------------------- ##
14659## M4sh Initialization. ##
14660## -------------------- ##
14661
14662# Be more Bourne compatible
14663DUALCASE=1; export DUALCASE # for MKS sh
14664if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14665 emulate sh
14666 NULLCMD=:
81ecdfbb 14667 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14668 # is contrary to our usage. Disable this feature.
14669 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14670 setopt NO_GLOB_SUBST
14671else
14672 case `(set -o) 2>/dev/null` in #(
14673 *posix*) :
14674 set -o posix ;; #(
14675 *) :
14676 ;;
14677esac
c6b750e1 14678fi
c6b750e1 14679
81ecdfbb
RW
14680
14681as_nl='
14682'
14683export as_nl
14684# Printing a long string crashes Solaris 7 /usr/bin/printf.
14685as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14686as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14687as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14688# Prefer a ksh shell builtin over an external printf program on Solaris,
14689# but without wasting forks for bash or zsh.
14690if test -z "$BASH_VERSION$ZSH_VERSION" \
14691 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14692 as_echo='print -r --'
14693 as_echo_n='print -rn --'
14694elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14695 as_echo='printf %s\n'
14696 as_echo_n='printf %s'
14697else
14698 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14699 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14700 as_echo_n='/usr/ucb/echo -n'
14701 else
14702 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14703 as_echo_n_body='eval
14704 arg=$1;
14705 case $arg in #(
14706 *"$as_nl"*)
14707 expr "X$arg" : "X\\(.*\\)$as_nl";
14708 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14709 esac;
14710 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14711 '
14712 export as_echo_n_body
14713 as_echo_n='sh -c $as_echo_n_body as_echo'
14714 fi
14715 export as_echo_body
14716 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14717fi
14718
81ecdfbb
RW
14719# The user is always right.
14720if test "${PATH_SEPARATOR+set}" != set; then
14721 PATH_SEPARATOR=:
14722 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14723 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14724 PATH_SEPARATOR=';'
14725 }
14726fi
14727
14728
14729# IFS
14730# We need space, tab and new line, in precisely that order. Quoting is
14731# there to prevent editors from complaining about space-tab.
14732# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14733# splitting by setting IFS to empty value.)
14734IFS=" "" $as_nl"
14735
14736# Find who we are. Look in the path if we contain no directory separator.
14737case $0 in #((
14738 *[\\/]* ) as_myself=$0 ;;
14739 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14740for as_dir in $PATH
14741do
14742 IFS=$as_save_IFS
14743 test -z "$as_dir" && as_dir=.
14744 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14745 done
14746IFS=$as_save_IFS
14747
14748 ;;
14749esac
14750# We did not find ourselves, most probably we were run as `sh COMMAND'
14751# in which case we are not to be found in the path.
14752if test "x$as_myself" = x; then
14753 as_myself=$0
14754fi
14755if test ! -f "$as_myself"; then
14756 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14757 exit 1
14758fi
c6b750e1 14759
81ecdfbb
RW
14760# Unset variables that we do not need and which cause bugs (e.g. in
14761# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14762# suppresses any "Segmentation fault" message there. '((' could
14763# trigger a bug in pdksh 5.2.14.
14764for as_var in BASH_ENV ENV MAIL MAILPATH
14765do eval test x\${$as_var+set} = xset \
14766 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14767done
c6b750e1
DJ
14768PS1='$ '
14769PS2='> '
14770PS4='+ '
14771
14772# NLS nuisances.
81ecdfbb
RW
14773LC_ALL=C
14774export LC_ALL
14775LANGUAGE=C
14776export LANGUAGE
14777
14778# CDPATH.
14779(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14780
14781
14782# as_fn_error ERROR [LINENO LOG_FD]
14783# ---------------------------------
14784# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14785# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14786# script with status $?, using 1 if that was 0.
14787as_fn_error ()
14788{
14789 as_status=$?; test $as_status -eq 0 && as_status=1
14790 if test "$3"; then
14791 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14792 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14793 fi
81ecdfbb
RW
14794 $as_echo "$as_me: error: $1" >&2
14795 as_fn_exit $as_status
14796} # as_fn_error
14797
14798
14799# as_fn_set_status STATUS
14800# -----------------------
14801# Set $? to STATUS, without forking.
14802as_fn_set_status ()
14803{
14804 return $1
14805} # as_fn_set_status
14806
14807# as_fn_exit STATUS
14808# -----------------
14809# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14810as_fn_exit ()
14811{
14812 set +e
14813 as_fn_set_status $1
14814 exit $1
14815} # as_fn_exit
14816
14817# as_fn_unset VAR
14818# ---------------
14819# Portably unset VAR.
14820as_fn_unset ()
14821{
14822 { eval $1=; unset $1;}
14823}
14824as_unset=as_fn_unset
14825# as_fn_append VAR VALUE
14826# ----------------------
14827# Append the text in VALUE to the end of the definition contained in VAR. Take
14828# advantage of any shell optimizations that allow amortized linear growth over
14829# repeated appends, instead of the typical quadratic growth present in naive
14830# implementations.
14831if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14832 eval 'as_fn_append ()
14833 {
14834 eval $1+=\$2
14835 }'
14836else
14837 as_fn_append ()
14838 {
14839 eval $1=\$$1\$2
14840 }
14841fi # as_fn_append
14842
14843# as_fn_arith ARG...
14844# ------------------
14845# Perform arithmetic evaluation on the ARGs, and store the result in the
14846# global $as_val. Take advantage of shells that can avoid forks. The arguments
14847# must be portable across $(()) and expr.
14848if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14849 eval 'as_fn_arith ()
14850 {
14851 as_val=$(( $* ))
14852 }'
14853else
14854 as_fn_arith ()
14855 {
14856 as_val=`expr "$@" || test $? -eq 1`
14857 }
14858fi # as_fn_arith
14859
c6b750e1 14860
81ecdfbb
RW
14861if expr a : '\(a\)' >/dev/null 2>&1 &&
14862 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14863 as_expr=expr
14864else
14865 as_expr=false
14866fi
14867
81ecdfbb 14868if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14869 as_basename=basename
14870else
14871 as_basename=false
14872fi
14873
81ecdfbb
RW
14874if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14875 as_dirname=dirname
14876else
14877 as_dirname=false
14878fi
c6b750e1 14879
81ecdfbb 14880as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14881$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14882 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14883 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14884$as_echo X/"$0" |
14885 sed '/^.*\/\([^/][^/]*\)\/*$/{
14886 s//\1/
14887 q
14888 }
14889 /^X\/\(\/\/\)$/{
14890 s//\1/
14891 q
14892 }
14893 /^X\/\(\/\).*/{
14894 s//\1/
14895 q
14896 }
14897 s/.*/./; q'`
c6b750e1 14898
c6b750e1
DJ
14899# Avoid depending upon Character Ranges.
14900as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14901as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14902as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14903as_cr_digits='0123456789'
14904as_cr_alnum=$as_cr_Letters$as_cr_digits
14905
81ecdfbb
RW
14906ECHO_C= ECHO_N= ECHO_T=
14907case `echo -n x` in #(((((
14908-n*)
14909 case `echo 'xy\c'` in
14910 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14911 xy) ECHO_C='\c';;
14912 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14913 ECHO_T=' ';;
14914 esac;;
14915*)
14916 ECHO_N='-n';;
c6b750e1
DJ
14917esac
14918
81ecdfbb
RW
14919rm -f conf$$ conf$$.exe conf$$.file
14920if test -d conf$$.dir; then
14921 rm -f conf$$.dir/conf$$.file
c6b750e1 14922else
81ecdfbb
RW
14923 rm -f conf$$.dir
14924 mkdir conf$$.dir 2>/dev/null
c6b750e1 14925fi
81ecdfbb
RW
14926if (echo >conf$$.file) 2>/dev/null; then
14927 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14928 as_ln_s='ln -s'
81ecdfbb
RW
14929 # ... but there are two gotchas:
14930 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14931 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14932 # In both cases, we have to default to `cp -p'.
14933 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14934 as_ln_s='cp -p'
14935 elif ln conf$$.file conf$$ 2>/dev/null; then
14936 as_ln_s=ln
14937 else
14938 as_ln_s='cp -p'
c6b750e1 14939 fi
c6b750e1
DJ
14940else
14941 as_ln_s='cp -p'
14942fi
81ecdfbb
RW
14943rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14944rmdir conf$$.dir 2>/dev/null
14945
14946
14947# as_fn_mkdir_p
14948# -------------
14949# Create "$as_dir" as a directory, including parents if necessary.
14950as_fn_mkdir_p ()
14951{
14952
14953 case $as_dir in #(
14954 -*) as_dir=./$as_dir;;
14955 esac
14956 test -d "$as_dir" || eval $as_mkdir_p || {
14957 as_dirs=
14958 while :; do
14959 case $as_dir in #(
14960 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14961 *) as_qdir=$as_dir;;
14962 esac
14963 as_dirs="'$as_qdir' $as_dirs"
14964 as_dir=`$as_dirname -- "$as_dir" ||
14965$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14966 X"$as_dir" : 'X\(//\)[^/]' \| \
14967 X"$as_dir" : 'X\(//\)$' \| \
14968 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14969$as_echo X"$as_dir" |
14970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14971 s//\1/
14972 q
14973 }
14974 /^X\(\/\/\)[^/].*/{
14975 s//\1/
14976 q
14977 }
14978 /^X\(\/\/\)$/{
14979 s//\1/
14980 q
14981 }
14982 /^X\(\/\).*/{
14983 s//\1/
14984 q
14985 }
14986 s/.*/./; q'`
14987 test -d "$as_dir" && break
14988 done
14989 test -z "$as_dirs" || eval "mkdir $as_dirs"
14990 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14991
c6b750e1 14992
81ecdfbb 14993} # as_fn_mkdir_p
c6b750e1 14994if mkdir -p . 2>/dev/null; then
81ecdfbb 14995 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14996else
14997 test -d ./-p && rmdir ./-p
14998 as_mkdir_p=false
14999fi
15000
81ecdfbb
RW
15001if test -x / >/dev/null 2>&1; then
15002 as_test_x='test -x'
15003else
15004 if ls -dL / >/dev/null 2>&1; then
15005 as_ls_L_option=L
15006 else
15007 as_ls_L_option=
15008 fi
15009 as_test_x='
15010 eval sh -c '\''
15011 if test -d "$1"; then
15012 test -d "$1/.";
15013 else
15014 case $1 in #(
15015 -*)set "./$1";;
15016 esac;
15017 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15018 ???[sx]*):;;*)false;;esac;fi
15019 '\'' sh
15020 '
15021fi
15022as_executable_p=$as_test_x
c6b750e1
DJ
15023
15024# Sed expression to map a string onto a valid CPP name.
15025as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15026
15027# Sed expression to map a string onto a valid variable name.
15028as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15029
15030
c6b750e1 15031exec 6>&1
81ecdfbb
RW
15032## ----------------------------------- ##
15033## Main body of $CONFIG_STATUS script. ##
15034## ----------------------------------- ##
15035_ASEOF
15036test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15037
15038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15039# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15040# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15041# values after options handling.
15042ac_log="
c6b750e1 15043This file was extended by $as_me, which was
81ecdfbb 15044generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
15045
15046 CONFIG_FILES = $CONFIG_FILES
15047 CONFIG_HEADERS = $CONFIG_HEADERS
15048 CONFIG_LINKS = $CONFIG_LINKS
15049 CONFIG_COMMANDS = $CONFIG_COMMANDS
15050 $ $0 $@
15051
81ecdfbb
RW
15052on `(hostname || uname -n) 2>/dev/null | sed 1q`
15053"
15054
c6b750e1
DJ
15055_ACEOF
15056
81ecdfbb
RW
15057case $ac_config_files in *"
15058"*) set x $ac_config_files; shift; ac_config_files=$*;;
15059esac
c6b750e1 15060
c6b750e1 15061
c6b750e1 15062
81ecdfbb
RW
15063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15064# Files that config.status was made for.
15065config_files="$ac_config_files"
c6b750e1 15066
81ecdfbb 15067_ACEOF
c6b750e1 15068
81ecdfbb 15069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15070ac_cs_usage="\
81ecdfbb
RW
15071\`$as_me' instantiates files and other configuration actions
15072from templates according to the current configuration. Unless the files
15073and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15074
81ecdfbb 15075Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15076
15077 -h, --help print this help, then exit
81ecdfbb
RW
15078 -V, --version print version number and configuration settings, then exit
15079 -q, --quiet, --silent
15080 do not print progress messages
c6b750e1
DJ
15081 -d, --debug don't remove temporary files
15082 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15083 --file=FILE[:TEMPLATE]
15084 instantiate the configuration file FILE
c6b750e1
DJ
15085
15086Configuration files:
15087$config_files
15088
81ecdfbb 15089Report bugs to the package provider."
c6b750e1 15090
81ecdfbb
RW
15091_ACEOF
15092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
15093ac_cs_version="\\
15094config.status
81ecdfbb
RW
15095configured by $0, generated by GNU Autoconf 2.64,
15096 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 15097
81ecdfbb 15098Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
15099This config.status script is free software; the Free Software Foundation
15100gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15101
15102ac_pwd='$ac_pwd'
15103srcdir='$srcdir'
15104INSTALL='$INSTALL'
8e957354 15105AWK='$AWK'
81ecdfbb 15106test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15107_ACEOF
15108
81ecdfbb
RW
15109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15110# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15111ac_need_defaults=:
15112while test $# != 0
a0da8069 15113do
c6b750e1
DJ
15114 case $1 in
15115 --*=*)
81ecdfbb
RW
15116 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15117 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15118 ac_shift=:
15119 ;;
81ecdfbb 15120 *)
c6b750e1
DJ
15121 ac_option=$1
15122 ac_optarg=$2
15123 ac_shift=shift
15124 ;;
c6b750e1
DJ
15125 esac
15126
15127 case $ac_option in
15128 # Handling of the options.
a0da8069 15129 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15130 ac_cs_recheck=: ;;
81ecdfbb
RW
15131 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15132 $as_echo "$ac_cs_version"; exit ;;
15133 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15134 debug=: ;;
15135 --file | --fil | --fi | --f )
15136 $ac_shift
81ecdfbb
RW
15137 case $ac_optarg in
15138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15139 esac
15140 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15141 ac_need_defaults=false;;
81ecdfbb
RW
15142 --he | --h | --help | --hel | -h )
15143 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15146 ac_cs_silent=: ;;
15147
15148 # This is an error.
81ecdfbb
RW
15149 -*) as_fn_error "unrecognized option: \`$1'
15150Try \`$0 --help' for more information." ;;
c6b750e1 15151
81ecdfbb
RW
15152 *) as_fn_append ac_config_targets " $1"
15153 ac_need_defaults=false ;;
c6b750e1 15154
376a0e54 15155 esac
c6b750e1 15156 shift
376a0e54
CM
15157done
15158
c6b750e1 15159ac_configure_extra_args=
376a0e54 15160
c6b750e1
DJ
15161if $ac_cs_silent; then
15162 exec 6>/dev/null
15163 ac_configure_extra_args="$ac_configure_extra_args --silent"
15164fi
376a0e54 15165
c6b750e1 15166_ACEOF
81ecdfbb 15167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15168if \$ac_cs_recheck; then
81ecdfbb
RW
15169 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15170 shift
15171 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15172 CONFIG_SHELL='$SHELL'
15173 export CONFIG_SHELL
15174 exec "\$@"
c6b750e1
DJ
15175fi
15176
15177_ACEOF
81ecdfbb
RW
15178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15179exec 5>>config.log
15180{
15181 echo
15182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15183## Running $as_me. ##
15184_ASBOX
15185 $as_echo "$ac_log"
15186} >&5
c6b750e1 15187
81ecdfbb
RW
15188_ACEOF
15189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15190#
15191# INIT-COMMANDS
15192#
15193extrasub_build="$extrasub_build"
15194 extrasub_host="$extrasub_host"
15195 extrasub_target="$extrasub_target"
15196
81ecdfbb 15197_ACEOF
c6b750e1 15198
81ecdfbb 15199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15200
81ecdfbb 15201# Handling of arguments.
c6b750e1
DJ
15202for ac_config_target in $ac_config_targets
15203do
81ecdfbb
RW
15204 case $ac_config_target in
15205 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15206
15207 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15208 esac
15209done
15210
81ecdfbb 15211
c6b750e1
DJ
15212# If the user did not use the arguments to specify the items to instantiate,
15213# then the envvar interface is used. Set only those that are not.
15214# We use the long form for the default assignment because of an extremely
15215# bizarre bug on SunOS 4.1.3.
15216if $ac_need_defaults; then
15217 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15218fi
15219
15220# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15221# simply because there is no reason against having it here, and in addition,
c6b750e1 15222# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15223# Hook for its removal unless debugging.
15224# Note that there is a small window in which the directory will not be cleaned:
15225# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15226$debug ||
15227{
81ecdfbb
RW
15228 tmp=
15229 trap 'exit_status=$?
15230 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15231' 0
15232 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15233}
c6b750e1
DJ
15234# Create a (secure) tmp directory for tmp files.
15235
15236{
81ecdfbb 15237 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
15238 test -n "$tmp" && test -d "$tmp"
15239} ||
15240{
81ecdfbb
RW
15241 tmp=./conf$$-$RANDOM
15242 (umask 077 && mkdir "$tmp")
15243} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15244
15245# Set up the scripts for CONFIG_FILES section.
15246# No need to generate them if there are no CONFIG_FILES.
15247# This happens for instance with `./config.status config.h'.
15248if test -n "$CONFIG_FILES"; then
15249
15250if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15251 ac_cs_awk_getline=:
15252 ac_cs_awk_pipe_init=
15253 ac_cs_awk_read_file='
15254 while ((getline aline < (F[key])) > 0)
15255 print(aline)
15256 close(F[key])'
15257 ac_cs_awk_pipe_fini=
15258else
15259 ac_cs_awk_getline=false
15260 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15261 ac_cs_awk_read_file='
15262 print "|#_!!_#|"
15263 print "cat " F[key] " &&"
15264 '$ac_cs_awk_pipe_init
15265 # The final `:' finishes the AND list.
15266 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15267fi
15268ac_cr=`echo X | tr X '\015'`
15269# On cygwin, bash can eat \r inside `` if the user requested igncr.
15270# But we know of no other shell where ac_cr would be empty at this
15271# point, so we can use a bashism as a fallback.
15272if test "x$ac_cr" = x; then
15273 eval ac_cr=\$\'\\r\'
15274fi
15275ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15276if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15277 ac_cs_awk_cr='\r'
15278else
15279 ac_cs_awk_cr=$ac_cr
15280fi
15281
15282echo 'BEGIN {' >"$tmp/subs1.awk" &&
15283_ACEOF
15284
15285# Create commands to substitute file output variables.
c6b750e1 15286{
81ecdfbb
RW
15287 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15288 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15289 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15290 echo "_ACAWK" &&
15291 echo "_ACEOF"
15292} >conf$$files.sh &&
15293. ./conf$$files.sh ||
15294 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15295rm -f conf$$files.sh
c6b750e1 15296
81ecdfbb
RW
15297{
15298 echo "cat >conf$$subs.awk <<_ACEOF" &&
15299 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15300 echo "_ACEOF"
15301} >conf$$subs.sh ||
15302 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15303ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15304ac_delim='%!_!# '
15305for ac_last_try in false false false false false :; do
15306 . ./conf$$subs.sh ||
15307 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15308
15309 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15310 if test $ac_delim_n = $ac_delim_num; then
15311 break
15312 elif $ac_last_try; then
15313 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15314 else
15315 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15316 fi
15317done
15318rm -f conf$$subs.sh
15319
15320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15321cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15322_ACEOF
81ecdfbb
RW
15323sed -n '
15324h
15325s/^/S["/; s/!.*/"]=/
15326p
15327g
15328s/^[^!]*!//
15329:repl
15330t repl
15331s/'"$ac_delim"'$//
15332t delim
15333:nl
15334h
15335s/\(.\{148\}\).*/\1/
15336t more1
15337s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15338p
15339n
15340b repl
15341:more1
15342s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15343p
15344g
15345s/.\{148\}//
15346t nl
15347:delim
15348h
15349s/\(.\{148\}\).*/\1/
15350t more2
15351s/["\\]/\\&/g; s/^/"/; s/$/"/
15352p
15353b
15354:more2
15355s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15356p
15357g
15358s/.\{148\}//
15359t delim
15360' <conf$$subs.awk | sed '
15361/^[^""]/{
15362 N
15363 s/\n//
15364}
15365' >>$CONFIG_STATUS || ac_write_fail=1
15366rm -f conf$$subs.awk
15367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15368_ACAWK
15369cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15370 for (key in S) S_is_set[key] = 1
15371 FS = "\a"
15372 \$ac_cs_awk_pipe_init
15373}
15374{
15375 line = $ 0
15376 nfields = split(line, field, "@")
15377 substed = 0
15378 len = length(field[1])
15379 for (i = 2; i < nfields; i++) {
15380 key = field[i]
15381 keylen = length(key)
15382 if (S_is_set[key]) {
15383 value = S[key]
15384 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15385 len += length(value) + length(field[++i])
15386 substed = 1
15387 } else
15388 len += 1 + keylen
15389 }
15390 if (nfields == 3 && !substed) {
15391 key = field[2]
15392 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15393 \$ac_cs_awk_read_file
15394 next
15395 }
15396 }
15397 print line
15398}
15399\$ac_cs_awk_pipe_fini
15400_ACAWK
15401_ACEOF
15402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15403if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15404 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15405else
15406 cat
15407fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15408 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15409_ACEOF
15410
15411# VPATH may cause trouble with some makes, so we remove $(srcdir),
15412# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15413# trailing colons and then remove the whole line if VPATH becomes empty
15414# (actually we leave an empty line to preserve line numbers).
15415if test "x$srcdir" = x.; then
15416 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15417s/:*\$(srcdir):*/:/
15418s/:*\${srcdir}:*/:/
15419s/:*@srcdir@:*/:/
15420s/^\([^=]*=[ ]*\):*/\1/
15421s/:*$//
15422s/^[^=]*=[ ]*$//
15423}'
15424fi
c6b750e1 15425
81ecdfbb
RW
15426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15427fi # test -n "$CONFIG_FILES"
c6b750e1 15428
c6b750e1 15429
81ecdfbb
RW
15430eval set X " :F $CONFIG_FILES "
15431shift
15432for ac_tag
15433do
15434 case $ac_tag in
15435 :[FHLC]) ac_mode=$ac_tag; continue;;
15436 esac
15437 case $ac_mode$ac_tag in
15438 :[FHL]*:*);;
15439 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15440 :[FH]-) ac_tag=-:-;;
15441 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15442 esac
15443 ac_save_IFS=$IFS
15444 IFS=:
15445 set x $ac_tag
15446 IFS=$ac_save_IFS
15447 shift
15448 ac_file=$1
15449 shift
252b5132 15450
81ecdfbb
RW
15451 case $ac_mode in
15452 :L) ac_source=$1;;
15453 :[FH])
15454 ac_file_inputs=
15455 for ac_f
15456 do
15457 case $ac_f in
15458 -) ac_f="$tmp/stdin";;
15459 *) # Look for the file first in the build tree, then in the source tree
15460 # (if the path is not absolute). The absolute path cannot be DOS-style,
15461 # because $ac_f cannot contain `:'.
15462 test -f "$ac_f" ||
15463 case $ac_f in
15464 [\\/$]*) false;;
15465 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15466 esac ||
15467 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15468 esac
15469 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15470 as_fn_append ac_file_inputs " '$ac_f'"
15471 done
c6b750e1 15472
81ecdfbb
RW
15473 # Let's still pretend it is `configure' which instantiates (i.e., don't
15474 # use $as_me), people would be surprised to read:
15475 # /* config.h. Generated by config.status. */
15476 configure_input='Generated from '`
15477 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15478 `' by configure.'
15479 if test x"$ac_file" != x-; then
15480 configure_input="$ac_file. $configure_input"
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15482$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15483 fi
81ecdfbb
RW
15484 # Neutralize special characters interpreted by sed in replacement strings.
15485 case $configure_input in #(
15486 *\&* | *\|* | *\\* )
15487 ac_sed_conf_input=`$as_echo "$configure_input" |
15488 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15489 *) ac_sed_conf_input=$configure_input;;
15490 esac
cac3d6c4 15491
81ecdfbb
RW
15492 case $ac_tag in
15493 *:-:* | *:-) cat >"$tmp/stdin" \
15494 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15495 esac
15496 ;;
a0da8069 15497 esac
252b5132 15498
81ecdfbb 15499 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15500$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15501 X"$ac_file" : 'X\(//\)[^/]' \| \
15502 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15503 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15504$as_echo X"$ac_file" |
15505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15506 s//\1/
15507 q
15508 }
15509 /^X\(\/\/\)[^/].*/{
15510 s//\1/
15511 q
15512 }
15513 /^X\(\/\/\)$/{
15514 s//\1/
15515 q
15516 }
15517 /^X\(\/\).*/{
15518 s//\1/
15519 q
15520 }
15521 s/.*/./; q'`
15522 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15523 ac_builddir=.
252b5132 15524
81ecdfbb
RW
15525case "$ac_dir" in
15526.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15527*)
15528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15529 # A ".." for each directory in $ac_dir_suffix.
15530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15531 case $ac_top_builddir_sub in
15532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15534 esac ;;
15535esac
15536ac_abs_top_builddir=$ac_pwd
15537ac_abs_builddir=$ac_pwd$ac_dir_suffix
15538# for backward compatibility:
15539ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15540
15541case $srcdir in
81ecdfbb 15542 .) # We are building in place.
c6b750e1 15543 ac_srcdir=.
81ecdfbb
RW
15544 ac_top_srcdir=$ac_top_builddir_sub
15545 ac_abs_top_srcdir=$ac_pwd ;;
15546 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15547 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15548 ac_top_srcdir=$srcdir
15549 ac_abs_top_srcdir=$srcdir ;;
15550 *) # Relative name.
15551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15552 ac_top_srcdir=$ac_top_build_prefix$srcdir
15553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15554esac
81ecdfbb 15555ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15556
252b5132 15557
81ecdfbb
RW
15558 case $ac_mode in
15559 :F)
15560 #
15561 # CONFIG_FILE
15562 #
c6b750e1
DJ
15563
15564 case $INSTALL in
15565 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15566 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15567 esac
81ecdfbb 15568_ACEOF
252b5132 15569
81ecdfbb
RW
15570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15571# If the template does not know about datarootdir, expand it.
15572# FIXME: This hack should be removed a few years after 2.60.
15573ac_datarootdir_hack=; ac_datarootdir_seen=
15574ac_sed_dataroot='
15575/datarootdir/ {
15576 p
15577 q
15578}
15579/@datadir@/p
15580/@docdir@/p
15581/@infodir@/p
15582/@localedir@/p
15583/@mandir@/p'
15584case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15585*datarootdir*) ac_datarootdir_seen=yes;;
15586*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15588$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15589_ACEOF
81ecdfbb
RW
15590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15591 ac_datarootdir_hack='
15592 s&@datadir@&$datadir&g
15593 s&@docdir@&$docdir&g
15594 s&@infodir@&$infodir&g
15595 s&@localedir@&$localedir&g
15596 s&@mandir@&$mandir&g
15597 s&\\\${datarootdir}&$datarootdir&g' ;;
15598esac
15599_ACEOF
15600
15601# Neutralize VPATH when `$srcdir' = `.'.
15602# Shell code in configure.ac might set extrasub.
15603# FIXME: do we really want to maintain this feature?
15604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15605ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15606$extrasub
15607_ACEOF
81ecdfbb 15608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15609:t
15610/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15611s|@configure_input@|$ac_sed_conf_input|;t t
15612s&@top_builddir@&$ac_top_builddir_sub&;t t
15613s&@top_build_prefix@&$ac_top_build_prefix&;t t
15614s&@srcdir@&$ac_srcdir&;t t
15615s&@abs_srcdir@&$ac_abs_srcdir&;t t
15616s&@top_srcdir@&$ac_top_srcdir&;t t
15617s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15618s&@builddir@&$ac_builddir&;t t
15619s&@abs_builddir@&$ac_abs_builddir&;t t
15620s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15621s&@INSTALL@&$ac_INSTALL&;t t
15622$ac_datarootdir_hack
15623"
15624eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15625if $ac_cs_awk_getline; then
15626 $AWK -f "$tmp/subs.awk"
15627else
15628 $AWK -f "$tmp/subs.awk" | $SHELL
15629fi >$tmp/out \
15630 || as_fn_error "could not create $ac_file" "$LINENO" 5
15631
15632test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15633 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15634 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15636which seems to be undefined. Please make sure it is defined." >&5
15637$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15638which seems to be undefined. Please make sure it is defined." >&2;}
15639
15640 rm -f "$tmp/stdin"
15641 case $ac_file in
15642 -) cat "$tmp/out" && rm -f "$tmp/out";;
15643 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15644 esac \
15645 || as_fn_error "could not create $ac_file" "$LINENO" 5
15646 ;;
c148b4cb 15647
c148b4cb 15648
c148b4cb 15649
81ecdfbb
RW
15650 esac
15651
06a51eac
RW
15652
15653 case $ac_file$ac_mode in
15654 "Makefile":F) sed "$extrasub_build" Makefile |
15655 sed "$extrasub_host" |
15656 sed "$extrasub_target" > mf$$
15657 mv -f mf$$ Makefile ;;
15658
15659 esac
81ecdfbb
RW
15660done # for ac_tag
15661
15662
15663as_fn_exit 0
c6b750e1 15664_ACEOF
c6b750e1
DJ
15665ac_clean_files=$ac_clean_files_save
15666
81ecdfbb
RW
15667test $ac_write_fail = 0 ||
15668 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15669
c6b750e1
DJ
15670
15671# configure is writing to config.log, and then calls config.status.
15672# config.status does its own redirection, appending to config.log.
15673# Unfortunately, on DOS this fails, as config.log is still kept open
15674# by configure, so config.status won't be able to write to it; its
15675# output is simply discarded. So we exec the FD to /dev/null,
15676# effectively closing config.log, so it can be properly (re)opened and
15677# appended to by config.status. When coming back to configure, we
15678# need to make the FD available again.
15679if test "$no_create" != yes; then
15680 ac_cs_success=:
15681 ac_config_status_args=
15682 test "$silent" = yes &&
15683 ac_config_status_args="$ac_config_status_args --quiet"
15684 exec 5>/dev/null
15685 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15686 exec 5>>config.log
15687 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15688 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15689 $ac_cs_success || as_fn_exit $?
15690fi
15691if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15693$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15694fi
c148b4cb 15695